po-docs: Update the list of output manpages.
[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: https://bugzilla.redhat.com/\n"
10 "POT-Creation-Date: 2011-07-15 17:18+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 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Language: uk\n"
18 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
19
20 #. type: =head1
21 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3
22 #: ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
23 #: ../tools/virt-win-reg.pl:35 ../tools/virt-list-filesystems.pl:30
24 #: ../tools/virt-tar.pl:31 ../tools/virt-make-fs.pl:35
25 #: ../tools/virt-list-partitions.pl:30
26 msgid "NAME"
27 msgstr "НАЗВА"
28
29 #. type: textblock
30 #: ../src/guestfs.pod:5
31 msgid "guestfs - Library for accessing and modifying virtual machine images"
32 msgstr ""
33 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
34 "машин"
35
36 #. type: =head1
37 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7
38 #: ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
39 #: ../tools/virt-win-reg.pl:39 ../tools/virt-list-filesystems.pl:34
40 #: ../tools/virt-tar.pl:35 ../tools/virt-make-fs.pl:39
41 #: ../tools/virt-list-partitions.pl:34
42 msgid "SYNOPSIS"
43 msgstr "КОРОТКИЙ ОПИС"
44
45 #. type: verbatim
46 #: ../src/guestfs.pod:9
47 #, no-wrap
48 msgid ""
49 " #include <guestfs.h>\n"
50 " \n"
51 msgstr ""
52 " #include <guestfs.h>\n"
53 " \n"
54
55 #. type: verbatim
56 #: ../src/guestfs.pod:11
57 #, no-wrap
58 msgid ""
59 " guestfs_h *g = guestfs_create ();\n"
60 " guestfs_add_drive (g, \"guest.img\");\n"
61 " guestfs_launch (g);\n"
62 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
63 " guestfs_touch (g, \"/hello\");\n"
64 " guestfs_umount (g, \"/\");\n"
65 " guestfs_close (g);\n"
66 "\n"
67 msgstr ""
68 " guestfs_h *g = guestfs_create ();\n"
69 " guestfs_add_drive (g, \"guest.img\");\n"
70 " guestfs_launch (g);\n"
71 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
72 " guestfs_touch (g, \"/hello\");\n"
73 " guestfs_umount (g, \"/\");\n"
74 " guestfs_close (g);\n"
75 "\n"
76
77 #. type: verbatim
78 #: ../src/guestfs.pod:19
79 #, no-wrap
80 msgid ""
81 " cc prog.c -o prog -lguestfs\n"
82 "or:\n"
83 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
84 "\n"
85 msgstr ""
86 " cc prog.c -o prog -lguestfs\n"
87 "або:\n"
88 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
89 "\n"
90
91 #. type: =head1
92 #: ../src/guestfs.pod:23 ../fish/guestfish.pod:30
93 #: ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20
94 #: ../tools/virt-win-reg.pl:63 ../tools/virt-list-filesystems.pl:40
95 #: ../tools/virt-tar.pl:77 ../tools/virt-make-fs.pl:47
96 #: ../tools/virt-list-partitions.pl:40
97 msgid "DESCRIPTION"
98 msgstr "ОПИС"
99
100 #. type: textblock
101 #: ../src/guestfs.pod:25
102 msgid ""
103 "Libguestfs is a library for accessing and modifying guest disk images.  "
104 "Amongst the things this is good for: making batch configuration changes to "
105 "guests, getting disk used/free statistics (see also: virt-df), migrating "
106 "between virtualization systems (see also: virt-p2v), performing partial "
107 "backups, performing partial guest clones, cloning guests and changing "
108 "registry/UUID/hostname info, and much else besides."
109 msgstr ""
110
111 #. type: textblock
112 #: ../src/guestfs.pod:33
113 msgid ""
114 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest"
115 " filesystem that Linux and qemu can, including but not limited to: ext2/3/4,"
116 " btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
117 "qcow2, vmdk."
118 msgstr ""
119
120 #. type: textblock
121 #: ../src/guestfs.pod:38
122 msgid ""
123 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
124 "what filesystem is in each LV, etc.).  It can also run commands in the "
125 "context of the guest.  Also you can access filesystems over FUSE."
126 msgstr ""
127
128 #. type: textblock
129 #: ../src/guestfs.pod:43
130 msgid ""
131 "Libguestfs is a library that can be linked with C and C++ management "
132 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java,"
133 " PHP, Haskell or C#).  You can also use it from shell scripts or the command"
134 " line."
135 msgstr ""
136
137 #. type: textblock
138 #: ../src/guestfs.pod:48
139 msgid ""
140 "You don't need to be root to use libguestfs, although obviously you do need "
141 "enough permissions to access the disk images."
142 msgstr ""
143
144 #. type: textblock
145 #: ../src/guestfs.pod:51
146 msgid ""
147 "Libguestfs is a large API because it can do many things.  For a gentle "
148 "introduction, please read the L</API OVERVIEW> section next."
149 msgstr ""
150
151 #. type: textblock
152 #: ../src/guestfs.pod:54
153 msgid ""
154 "There are also some example programs in the L<guestfs-examples(3)> manual "
155 "page."
156 msgstr ""
157
158 #. type: =head1
159 #: ../src/guestfs.pod:57
160 msgid "API OVERVIEW"
161 msgstr "ОГЛЯД API"
162
163 #. type: textblock
164 #: ../src/guestfs.pod:59
165 msgid ""
166 "This section provides a gentler overview of the libguestfs API.  We also try"
167 " to group API calls together, where that may not be obvious from reading "
168 "about the individual calls in the main section of this manual."
169 msgstr ""
170
171 #. type: =head2
172 #: ../src/guestfs.pod:64
173 msgid "HANDLES"
174 msgstr "ОБРОБНИКИ"
175
176 #. type: textblock
177 #: ../src/guestfs.pod:66
178 msgid ""
179 "Before you can use libguestfs calls, you have to create a handle.  Then you "
180 "must add at least one disk image to the handle, followed by launching the "
181 "handle, then performing whatever operations you want, and finally closing "
182 "the handle.  By convention we use the single letter C<g> for the name of the"
183 " handle variable, although of course you can use any name you want."
184 msgstr ""
185
186 #. type: textblock
187 #: ../src/guestfs.pod:73
188 msgid ""
189 "The general structure of all libguestfs-using programs looks like this:"
190 msgstr ""
191
192 #. type: verbatim
193 #: ../src/guestfs.pod:76
194 #, no-wrap
195 msgid ""
196 " guestfs_h *g = guestfs_create ();\n"
197 " \n"
198 msgstr ""
199 " guestfs_h *g = guestfs_create ();\n"
200 " \n"
201
202 #. type: verbatim
203 #: ../src/guestfs.pod:78
204 #, no-wrap
205 msgid ""
206 " /* Call guestfs_add_drive additional times if there are\n"
207 "  * multiple disk images.\n"
208 "  */\n"
209 " guestfs_add_drive (g, \"guest.img\");\n"
210 " \n"
211 msgstr ""
212
213 #. type: verbatim
214 #: ../src/guestfs.pod:83
215 #, no-wrap
216 msgid ""
217 " /* Most manipulation calls won't work until you've launched\n"
218 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
219 "  * and _before_ other commands.\n"
220 "  */\n"
221 " guestfs_launch (g);\n"
222 " \n"
223 msgstr ""
224
225 #. type: verbatim
226 #: ../src/guestfs.pod:89
227 #, no-wrap
228 msgid ""
229 " /* Now you can examine what partitions, LVs etc are available.\n"
230 "  */\n"
231 " char **partitions = guestfs_list_partitions (g);\n"
232 " char **logvols = guestfs_lvs (g);\n"
233 " \n"
234 msgstr ""
235 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
236 "  */\n"
237 " char **partitions = guestfs_list_partitions (g);\n"
238 " char **logvols = guestfs_lvs (g);\n"
239 " \n"
240
241 #. type: verbatim
242 #: ../src/guestfs.pod:94
243 #, no-wrap
244 msgid ""
245 " /* To access a filesystem in the image, you must mount it.\n"
246 "  */\n"
247 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
248 " \n"
249 msgstr ""
250 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
251 "  */\n"
252 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
253 " \n"
254
255 #. type: verbatim
256 #: ../src/guestfs.pod:98
257 #, no-wrap
258 msgid ""
259 " /* Now you can perform filesystem actions on the guest\n"
260 "  * disk image.\n"
261 "  */\n"
262 " guestfs_touch (g, \"/hello\");\n"
263 " \n"
264 msgstr ""
265
266 #. type: verbatim
267 #: ../src/guestfs.pod:103
268 #, no-wrap
269 msgid ""
270 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
271 "  * it is done automatically when you close the handle.  See\n"
272 "  * discussion of autosync in this page.\n"
273 "  */\n"
274 " guestfs_sync (g);\n"
275 " \n"
276 msgstr ""
277
278 #. type: verbatim
279 #: ../src/guestfs.pod:109
280 #, no-wrap
281 msgid ""
282 " /* Close the handle 'g'. */\n"
283 " guestfs_close (g);\n"
284 "\n"
285 msgstr ""
286 " /* Закрити дескриптор 'g'. */\n"
287 " guestfs_close (g);\n"
288 "\n"
289
290 #. type: textblock
291 #: ../src/guestfs.pod:112
292 msgid ""
293 "The code above doesn't include any error checking.  In real code you should "
294 "check return values carefully for errors.  In general all functions that "
295 "return integers return C<-1> on error, and all functions that return "
296 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
297 "how to handle errors, and consult the documentation for each function call "
298 "below to see precisely how they return error indications.  See L<guestfs-"
299 "examples(3)> for fully worked examples."
300 msgstr ""
301
302 #. type: =head2
303 #: ../src/guestfs.pod:121
304 msgid "DISK IMAGES"
305 msgstr "ОБРАЗИ ДИСКІВ"
306
307 #. type: textblock
308 #: ../src/guestfs.pod:123
309 msgid ""
310 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
311 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
312 "actual block device, or simply an empty file of zeroes that you have created"
313 " through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all"
314 " of these."
315 msgstr ""
316
317 #. type: textblock
318 #: ../src/guestfs.pod:129
319 msgid ""
320 "The call you should use in modern code for adding drives is "
321 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
322 "specifying that the format is raw, do:"
323 msgstr ""
324
325 #. type: verbatim
326 #: ../src/guestfs.pod:133
327 #, no-wrap
328 msgid ""
329 " guestfs_add_drive_opts (g, filename,\n"
330 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
331 "                         -1);\n"
332 "\n"
333 msgstr ""
334 " guestfs_add_drive_opts (g, filename,\n"
335 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
336 "                         -1);\n"
337 "\n"
338
339 #. type: textblock
340 #: ../src/guestfs.pod:137
341 msgid "You can add a disk read-only using:"
342 msgstr "Ви можете додати диск у режимі лише читання:"
343
344 #. type: verbatim
345 #: ../src/guestfs.pod:139
346 #, no-wrap
347 msgid ""
348 " guestfs_add_drive_opts (g, filename,\n"
349 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
350 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
351 "                         -1);\n"
352 "\n"
353 msgstr ""
354 " guestfs_add_drive_opts (g, filename,\n"
355 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
356 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
357 "                         -1);\n"
358 "\n"
359
360 #. type: textblock
361 #: ../src/guestfs.pod:144
362 msgid ""
363 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
364 "libguestfs won't modify the file."
365 msgstr ""
366
367 #. type: textblock
368 #: ../src/guestfs.pod:147
369 msgid ""
370 "Be extremely cautious if the disk image is in use, eg. if it is being used "
371 "by a virtual machine.  Adding it read-write will almost certainly cause disk"
372 " corruption, but adding it read-only is safe."
373 msgstr ""
374
375 #. type: textblock
376 #: ../src/guestfs.pod:151
377 msgid ""
378 "You must add at least one disk image, and you may add multiple disk images."
379 "  In the API, the disk images are usually referred to as C</dev/sda> (for "
380 "the first one you added), C</dev/sdb> (for the second one you added), etc."
381 msgstr ""
382
383 #. type: textblock
384 #: ../src/guestfs.pod:156
385 msgid ""
386 "Once L</guestfs_launch> has been called you cannot add any more images.  You"
387 " can call L</guestfs_list_devices> to get a list of the device names, in the"
388 " order that you added them.  See also L</BLOCK DEVICE NAMING> below."
389 msgstr ""
390
391 #. type: =head2
392 #: ../src/guestfs.pod:161
393 msgid "MOUNTING"
394 msgstr "МОНТУВАННЯ"
395
396 #. type: textblock
397 #: ../src/guestfs.pod:163
398 msgid ""
399 "Before you can read or write files, create directories and so on in a disk "
400 "image that contains filesystems, you have to mount those filesystems using "
401 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that"
402 " a disk image contains (for example) one partition with a filesystem on that"
403 " partition, then you can mount it directly:"
404 msgstr ""
405
406 #. type: verbatim
407 #: ../src/guestfs.pod:170
408 #, no-wrap
409 msgid ""
410 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
411 "\n"
412 msgstr ""
413 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
414 "\n"
415
416 #. type: textblock
417 #: ../src/guestfs.pod:172
418 msgid ""
419 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
420 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
421 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
422 "that these are libguestfs virtual devices, and are nothing to do with host "
423 "devices."
424 msgstr ""
425
426 #. type: textblock
427 #: ../src/guestfs.pod:178
428 msgid ""
429 "If you are given a disk image and you don't know what it contains then you "
430 "have to find out.  Libguestfs can do that too: use "
431 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
432 "and LVs, and either try mounting each to see what is mountable, or else "
433 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
434 "filesystems, use L</guestfs_list_filesystems>."
435 msgstr ""
436
437 #. type: textblock
438 #: ../src/guestfs.pod:186
439 msgid ""
440 "Libguestfs also has a set of APIs for inspection of unknown disk images (see"
441 " L</INSPECTION> below).  But you might find it easier to look at higher "
442 "level programs built on top of libguestfs, in particular L<virt-"
443 "inspector(1)>."
444 msgstr ""
445
446 #. type: textblock
447 #: ../src/guestfs.pod:191
448 msgid ""
449 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
450 "several other variations of the C<guestfs_mount_*> call."
451 msgstr ""
452
453 #. type: =head2
454 #: ../src/guestfs.pod:194
455 msgid "FILESYSTEM ACCESS AND MODIFICATION"
456 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
457
458 #. type: textblock
459 #: ../src/guestfs.pod:196
460 msgid ""
461 "The majority of the libguestfs API consists of fairly low-level calls for "
462 "accessing and modifying the files, directories, symlinks etc on mounted "
463 "filesystems.  There are over a hundred such calls which you can find listed "
464 "in detail below in this man page, and we don't even pretend to cover them "
465 "all in this overview."
466 msgstr ""
467
468 #. type: textblock
469 #: ../src/guestfs.pod:202
470 msgid ""
471 "Specify filenames as full paths, starting with C<\"/\"> and including the "
472 "mount point."
473 msgstr ""
474 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
475 "точкою монтування."
476
477 #. type: textblock
478 #: ../src/guestfs.pod:205
479 msgid ""
480 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
481 "the file called C<\"etc/passwd\"> then you could do:"
482 msgstr ""
483 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
484 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
485 "таким кодом:"
486
487 #. type: verbatim
488 #: ../src/guestfs.pod:208
489 #, no-wrap
490 msgid ""
491 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
492 "\n"
493 msgstr ""
494 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
495 "\n"
496
497 #. type: textblock
498 #: ../src/guestfs.pod:210
499 msgid ""
500 "This would return C<data> as a newly allocated buffer containing the full "
501 "content of that file (with some conditions: see also L</DOWNLOADING> below),"
502 " or C<NULL> if there was an error."
503 msgstr ""
504
505 #. type: textblock
506 #: ../src/guestfs.pod:214
507 msgid ""
508 "As another example, to create a top-level directory on that filesystem "
509 "called C<\"var\"> you would do:"
510 msgstr ""
511
512 #. type: verbatim
513 #: ../src/guestfs.pod:217
514 #, no-wrap
515 msgid ""
516 " guestfs_mkdir (g, \"/var\");\n"
517 "\n"
518 msgstr ""
519 " guestfs_mkdir (g, \"/var\");\n"
520 "\n"
521
522 #. type: textblock
523 #: ../src/guestfs.pod:219
524 msgid "To create a symlink you could do:"
525 msgstr ""
526 "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
527
528 #. type: verbatim
529 #: ../src/guestfs.pod:221
530 #, no-wrap
531 msgid ""
532 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
533 "               \"/etc/rc3.d/S30portmap\");\n"
534 "\n"
535 msgstr ""
536 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
537 "               \"/etc/rc3.d/S30portmap\");\n"
538 "\n"
539
540 #. type: textblock
541 #: ../src/guestfs.pod:224
542 msgid ""
543 "Libguestfs will reject attempts to use relative paths and there is no "
544 "concept of a current working directory."
545 msgstr ""
546
547 #. type: textblock
548 #: ../src/guestfs.pod:227
549 msgid ""
550 "Libguestfs can return errors in many situations: for example if the "
551 "filesystem isn't writable, or if a file or directory that you requested "
552 "doesn't exist.  If you are using the C API (documented here)  you have to "
553 "check for those error conditions after each call.  (Other language bindings "
554 "turn these errors into exceptions)."
555 msgstr ""
556
557 #. type: textblock
558 #: ../src/guestfs.pod:233
559 msgid ""
560 "File writes are affected by the per-handle umask, set by calling "
561 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
562 msgstr ""
563
564 #. type: =head2
565 #: ../src/guestfs.pod:236
566 msgid "PARTITIONING"
567 msgstr "ПОДІЛ НА РОЗДІЛИ"
568
569 #. type: textblock
570 #: ../src/guestfs.pod:238
571 msgid ""
572 "Libguestfs contains API calls to read, create and modify partition tables on"
573 " disk images."
574 msgstr ""
575
576 #. type: textblock
577 #: ../src/guestfs.pod:241
578 msgid ""
579 "In the common case where you want to create a single partition covering the "
580 "whole disk, you should use the L</guestfs_part_disk> call:"
581 msgstr ""
582
583 #. type: verbatim
584 #: ../src/guestfs.pod:245
585 #, no-wrap
586 msgid ""
587 " const char *parttype = \"mbr\";\n"
588 " if (disk_is_larger_than_2TB)\n"
589 "   parttype = \"gpt\";\n"
590 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
591 "\n"
592 msgstr ""
593 " const char *parttype = \"mbr\";\n"
594 " if (disk_is_larger_than_2TB)\n"
595 "   parttype = \"gpt\";\n"
596 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
597 "\n"
598
599 #. type: textblock
600 #: ../src/guestfs.pod:250
601 msgid ""
602 "Obviously this effectively wipes anything that was on that disk image "
603 "before."
604 msgstr ""
605
606 #. type: =head2
607 #: ../src/guestfs.pod:253
608 msgid "LVM2"
609 msgstr "LVM2"
610
611 #. type: textblock
612 #: ../src/guestfs.pod:255
613 msgid ""
614 "Libguestfs provides access to a large part of the LVM2 API, such as "
615 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
616 "unless you familiarize yourself with the concepts of physical volumes, "
617 "volume groups and logical volumes."
618 msgstr ""
619
620 #. type: textblock
621 #: ../src/guestfs.pod:260
622 msgid ""
623 "This author strongly recommends reading the LVM HOWTO, online at "
624 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
625 msgstr ""
626
627 #. type: =head2
628 #: ../src/guestfs.pod:263
629 msgid "DOWNLOADING"
630 msgstr "ОТРИМАННЯ ДАНИХ"
631
632 #. type: textblock
633 #: ../src/guestfs.pod:265
634 msgid ""
635 "Use L</guestfs_cat> to download small, text only files.  This call is "
636 "limited to files which are less than 2 MB and which cannot contain any ASCII"
637 " NUL (C<\\0>) characters.  However the API is very simple to use."
638 msgstr ""
639
640 #. type: textblock
641 #: ../src/guestfs.pod:269
642 msgid ""
643 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
644 "bit data, since it returns a (pointer, size) pair.  However it is still "
645 "limited to \"small\" files, less than 2 MB."
646 msgstr ""
647
648 #. type: textblock
649 #: ../src/guestfs.pod:273
650 msgid ""
651 "L</guestfs_download> can be used to download any file, with no limits on "
652 "content or size (even files larger than 4 GB)."
653 msgstr ""
654
655 #. type: textblock
656 #: ../src/guestfs.pod:276
657 msgid ""
658 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
659 msgstr ""
660
661 #. type: =head2
662 #: ../src/guestfs.pod:279
663 msgid "UPLOADING"
664 msgstr "ВИВАНТАЖЕННЯ"
665
666 #. type: textblock
667 #: ../src/guestfs.pod:281
668 msgid ""
669 "It's often the case that you want to write a file or files to the disk "
670 "image."
671 msgstr ""
672
673 #. type: textblock
674 #: ../src/guestfs.pod:284
675 msgid ""
676 "To write a small file with fixed content, use L</guestfs_write>.  To create "
677 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
678 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
679 "variety of other functions for creating test files, for example "
680 "L</guestfs_fill> and L</guestfs_fill_pattern>."
681 msgstr ""
682
683 #. type: textblock
684 #: ../src/guestfs.pod:290
685 msgid ""
686 "To upload a single file, use L</guestfs_upload>.  This call has no limits on"
687 " file content or size (even files larger than 4 GB)."
688 msgstr ""
689
690 #. type: textblock
691 #: ../src/guestfs.pod:293
692 msgid ""
693 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
694 msgstr ""
695
696 #. type: textblock
697 #: ../src/guestfs.pod:295
698 msgid ""
699 "However the fastest way to upload I<large numbers of arbitrary files> is to "
700 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
701 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add"
702 " the drive in a predictable way (eg. adding it last after all other drives) "
703 "then you can get the device name from L</guestfs_list_devices> and mount it "
704 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
705 "sometimes non-portable between kernel versions, and they don't support "
706 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
707 "using a label or UUID, use an ISO image instead."
708 msgstr ""
709
710 #. type: =head2
711 #: ../src/guestfs.pod:306
712 msgid "COPYING"
713 msgstr "КОПІЮВАННЯ"
714
715 #. type: textblock
716 #: ../src/guestfs.pod:308
717 msgid ""
718 "There are various different commands for copying between files and devices "
719 "and in and out of the guest filesystem.  These are summarised in the table "
720 "below."
721 msgstr ""
722
723 #. type: =item
724 #: ../src/guestfs.pod:314
725 msgid "B<file> to B<file>"
726 msgstr "B<файл> у B<файл>"
727
728 #. type: textblock
729 #: ../src/guestfs.pod:316
730 msgid ""
731 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
732 "directories recursively."
733 msgstr ""
734
735 #. type: =item
736 #: ../src/guestfs.pod:319
737 msgid "B<file or device> to B<file or device>"
738 msgstr "B<файл або пристрій> у B<файл або пристрій>"
739
740 #. type: textblock
741 #: ../src/guestfs.pod:321
742 msgid ""
743 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and"
744 " devices in the guest."
745 msgstr ""
746
747 #. type: textblock
748 #: ../src/guestfs.pod:324
749 msgid "Example: duplicate the contents of an LV:"
750 msgstr ""
751
752 #. type: verbatim
753 #: ../src/guestfs.pod:326
754 #, no-wrap
755 msgid ""
756 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
757 "\n"
758 msgstr ""
759 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
760 "\n"
761
762 #. type: textblock
763 #: ../src/guestfs.pod:328
764 msgid ""
765 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
766 "(C</dev/VG/Original>).  To copy less than the whole source device, use "
767 "L</guestfs_copy_size>."
768 msgstr ""
769
770 #. type: =item
771 #: ../src/guestfs.pod:332
772 msgid "B<file on the host> to B<file or device>"
773 msgstr ""
774
775 #. type: textblock
776 #: ../src/guestfs.pod:334
777 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
778 msgstr ""
779
780 #. type: =item
781 #: ../src/guestfs.pod:336
782 msgid "B<file or device> to B<file on the host>"
783 msgstr ""
784
785 #. type: textblock
786 #: ../src/guestfs.pod:338
787 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
788 msgstr ""
789
790 #. type: =head2
791 #: ../src/guestfs.pod:342
792 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
793 msgstr ""
794
795 #. type: textblock
796 #: ../src/guestfs.pod:344
797 msgid ""
798 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
799 "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
800 "appears you can only upload and download to files.  However many Un*x-like "
801 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
802 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
803 "stderr, and arbitrary file descriptor N."
804 msgstr ""
805
806 #. type: textblock
807 #: ../src/guestfs.pod:352
808 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
809 msgstr ""
810
811 #. type: verbatim
812 #: ../src/guestfs.pod:355
813 #, no-wrap
814 msgid ""
815 " guestfs_download (g, filename, \"/dev/stdout\");\n"
816 "\n"
817 msgstr ""
818 " guestfs_download (g, filename, \"/dev/stdout\");\n"
819 "\n"
820
821 #. type: textblock
822 #: ../src/guestfs.pod:357
823 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
824 msgstr ""
825
826 #. type: verbatim
827 #: ../src/guestfs.pod:359
828 #, no-wrap
829 msgid ""
830 " char devfd[64];\n"
831 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
832 " guestfs_tar_out (g, \"/\", devfd);\n"
833 "\n"
834 msgstr ""
835 " char devfd[64];\n"
836 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
837 " guestfs_tar_out (g, \"/\", devfd);\n"
838 "\n"
839
840 #. type: =head2
841 #: ../src/guestfs.pod:363
842 msgid "LISTING FILES"
843 msgstr "СПИСКИ ФАЙЛІВ"
844
845 #. type: textblock
846 #: ../src/guestfs.pod:365
847 msgid ""
848 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
849 "L<guestfish(1)>-equivalent command C<ll>)."
850 msgstr ""
851
852 #. type: textblock
853 #: ../src/guestfs.pod:368
854 msgid ""
855 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
856 "programs, as a flat list of strings."
857 msgstr ""
858
859 #. type: textblock
860 #: ../src/guestfs.pod:371
861 msgid ""
862 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
863 "directory, plus additional information about each one.  It is more "
864 "equivalent to using the L<readdir(3)> call on a local filesystem."
865 msgstr ""
866
867 #. type: textblock
868 #: ../src/guestfs.pod:375
869 msgid ""
870 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
871 "files."
872 msgstr ""
873
874 #. type: =head2
875 #: ../src/guestfs.pod:378
876 msgid "RUNNING COMMANDS"
877 msgstr "ВИКОНАННЯ КОМАНД"
878
879 #. type: textblock
880 #: ../src/guestfs.pod:380
881 msgid ""
882 "Although libguestfs is primarily an API for manipulating files inside guest "
883 "images, we also provide some limited facilities for running commands inside "
884 "guests."
885 msgstr ""
886
887 #. type: textblock
888 #: ../src/guestfs.pod:384
889 msgid "There are many limitations to this:"
890 msgstr ""
891
892 #. type: =item
893 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
894 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
895 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1064
896 #: ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077
897 #: ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112
898 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142
899 #: ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154
900 #: ../src/guestfs.pod:1643 ../src/guestfs.pod:1648 ../src/guestfs.pod:1652
901 #: ../src/guestfs.pod:1754 ../src/guestfs.pod:1759 ../src/guestfs.pod:1763
902 #: ../src/guestfs.pod:1773 ../src/guestfs.pod:2047 ../src/guestfs.pod:2052
903 #: ../src/guestfs.pod:2058 ../src/guestfs.pod:2066 ../src/guestfs.pod:2420
904 #: ../src/guestfs.pod:2426 ../src/guestfs.pod:2431 ../src/guestfs.pod:2437
905 #: ../src/guestfs.pod:3011 ../src/guestfs.pod:3015 ../src/guestfs.pod:3019
906 #: ../src/guestfs.pod:3023 ../src/guestfs-actions.pod:15
907 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:583
908 #: ../src/guestfs-actions.pod:591 ../src/guestfs-actions.pod:598
909 #: ../src/guestfs-actions.pod:605 ../src/guestfs-actions.pod:1662
910 #: ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1670
911 #: ../src/guestfs-actions.pod:1674 ../src/guestfs-actions.pod:1682
912 #: ../src/guestfs-actions.pod:1686 ../src/guestfs-actions.pod:1690
913 #: ../src/guestfs-actions.pod:1700 ../src/guestfs-actions.pod:1704
914 #: ../src/guestfs-actions.pod:1708 ../src/guestfs-actions.pod:1846
915 #: ../src/guestfs-actions.pod:1850 ../src/guestfs-actions.pod:1855
916 #: ../src/guestfs-actions.pod:1860 ../src/guestfs-actions.pod:1921
917 #: ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1930
918 #: ../src/guestfs-actions.pod:2857 ../src/guestfs-actions.pod:2863
919 #: ../src/guestfs-actions.pod:2871 ../src/guestfs-actions.pod:2878
920 #: ../src/guestfs-actions.pod:2885 ../fish/guestfish.pod:445
921 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
922 #: ../fish/guestfish.pod:457 ../fish/guestfish-actions.pod:13
923 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:385
924 #: ../fish/guestfish-actions.pod:393 ../fish/guestfish-actions.pod:400
925 #: ../fish/guestfish-actions.pod:407 ../fish/guestfish-actions.pod:1099
926 #: ../fish/guestfish-actions.pod:1103 ../fish/guestfish-actions.pod:1107
927 #: ../fish/guestfish-actions.pod:1111 ../fish/guestfish-actions.pod:1119
928 #: ../fish/guestfish-actions.pod:1123 ../fish/guestfish-actions.pod:1127
929 #: ../fish/guestfish-actions.pod:1137 ../fish/guestfish-actions.pod:1141
930 #: ../fish/guestfish-actions.pod:1145 ../fish/guestfish-actions.pod:1235
931 #: ../fish/guestfish-actions.pod:1239 ../fish/guestfish-actions.pod:1244
932 #: ../fish/guestfish-actions.pod:1249 ../fish/guestfish-actions.pod:1291
933 #: ../fish/guestfish-actions.pod:1295 ../fish/guestfish-actions.pod:1300
934 #: ../fish/guestfish-actions.pod:1933 ../fish/guestfish-actions.pod:1939
935 #: ../fish/guestfish-actions.pod:1947 ../fish/guestfish-actions.pod:1954
936 #: ../fish/guestfish-actions.pod:1961 ../tools/virt-win-reg.pl:195
937 #: ../tools/virt-win-reg.pl:200 ../tools/virt-win-reg.pl:206
938 #: ../tools/virt-win-reg.pl:708 ../tools/virt-win-reg.pl:714
939 #: ../tools/virt-win-reg.pl:720
940 msgid "*"
941 msgstr "*"
942
943 #. type: textblock
944 #: ../src/guestfs.pod:390
945 msgid ""
946 "The kernel version that the command runs under will be different from what "
947 "it expects."
948 msgstr ""
949
950 #. type: textblock
951 #: ../src/guestfs.pod:395
952 msgid ""
953 "If the command needs to communicate with daemons, then most likely they "
954 "won't be running."
955 msgstr ""
956
957 #. type: textblock
958 #: ../src/guestfs.pod:400
959 msgid "The command will be running in limited memory."
960 msgstr ""
961
962 #. type: textblock
963 #: ../src/guestfs.pod:404
964 msgid ""
965 "The network may not be available unless you enable it (see "
966 "L</guestfs_set_network>)."
967 msgstr ""
968
969 #. type: textblock
970 #: ../src/guestfs.pod:409
971 msgid "Only supports Linux guests (not Windows, BSD, etc)."
972 msgstr ""
973
974 #. type: textblock
975 #: ../src/guestfs.pod:413
976 msgid ""
977 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
978 msgstr ""
979
980 #. type: textblock
981 #: ../src/guestfs.pod:418
982 msgid ""
983 "For SELinux guests, you may need to enable SELinux and load policy first.  "
984 "See L</SELINUX> in this manpage."
985 msgstr ""
986
987 #. type: textblock
988 #: ../src/guestfs.pod:423
989 msgid ""
990 "I<Security:> It is not safe to run commands from untrusted, possibly "
991 "malicious guests.  These commands may attempt to exploit your program by "
992 "sending unexpected output.  They could also try to exploit the Linux kernel "
993 "or qemu provided by the libguestfs appliance.  They could use the network "
994 "provided by the libguestfs appliance to bypass ordinary network partitions "
995 "and firewalls.  They could use the elevated privileges or different SELinux "
996 "context of your program to their advantage."
997 msgstr ""
998
999 #. type: textblock
1000 #: ../src/guestfs.pod:432
1001 msgid ""
1002 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
1003 "(a script which runs when the guest next boots normally), and to have this "
1004 "script run the commands you want in the normal context of the running guest,"
1005 " network security and so on.  For information about other security issues, "
1006 "see L</SECURITY>."
1007 msgstr ""
1008
1009 #. type: textblock
1010 #: ../src/guestfs.pod:440
1011 msgid ""
1012 "The two main API calls to run commands are L</guestfs_command> and "
1013 "L</guestfs_sh> (there are also variations)."
1014 msgstr ""
1015
1016 #. type: textblock
1017 #: ../src/guestfs.pod:443
1018 msgid ""
1019 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
1020 "shell globs, redirections, etc will work."
1021 msgstr ""
1022
1023 #. type: =head2
1024 #: ../src/guestfs.pod:446
1025 msgid "CONFIGURATION FILES"
1026 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
1027
1028 #. type: textblock
1029 #: ../src/guestfs.pod:448
1030 msgid ""
1031 "To read and write configuration files in Linux guest filesystems, we "
1032 "strongly recommend using Augeas.  For example, Augeas understands how to "
1033 "read and write, say, a Linux shadow password file or X.org configuration "
1034 "file, and so avoids you having to write that code."
1035 msgstr ""
1036
1037 #. type: textblock
1038 #: ../src/guestfs.pod:453
1039 msgid ""
1040 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't"
1041 " document Augeas itself here because there is excellent documentation on the"
1042 " L<http://augeas.net/> website."
1043 msgstr ""
1044
1045 #. type: textblock
1046 #: ../src/guestfs.pod:457
1047 msgid ""
1048 "If you don't want to use Augeas (you fool!) then try calling "
1049 "L</guestfs_read_lines> to get the file as a list of lines which you can "
1050 "iterate over."
1051 msgstr ""
1052
1053 #. type: =head2
1054 #: ../src/guestfs.pod:461
1055 msgid "SELINUX"
1056 msgstr "SELINUX"
1057
1058 #. type: textblock
1059 #: ../src/guestfs.pod:463
1060 msgid ""
1061 "We support SELinux guests.  To ensure that labeling happens correctly in "
1062 "SELinux guests, you need to enable SELinux and load the guest's policy:"
1063 msgstr ""
1064
1065 #. type: =item
1066 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1257 ../src/guestfs.pod:1395
1067 #: ../src/guestfs.pod:2465
1068 msgid "1."
1069 msgstr "1."
1070
1071 #. type: textblock
1072 #: ../src/guestfs.pod:471
1073 msgid "Before launching, do:"
1074 msgstr ""
1075
1076 #. type: verbatim
1077 #: ../src/guestfs.pod:473
1078 #, no-wrap
1079 msgid ""
1080 " guestfs_set_selinux (g, 1);\n"
1081 "\n"
1082 msgstr ""
1083 " guestfs_set_selinux (g, 1);\n"
1084 "\n"
1085
1086 #. type: =item
1087 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1261 ../src/guestfs.pod:1399
1088 #: ../src/guestfs.pod:2490
1089 msgid "2."
1090 msgstr "2."
1091
1092 #. type: textblock
1093 #: ../src/guestfs.pod:477
1094 msgid ""
1095 "After mounting the guest's filesystem(s), load the policy.  This is best "
1096 "done by running the L<load_policy(8)> command in the guest itself:"
1097 msgstr ""
1098
1099 #. type: verbatim
1100 #: ../src/guestfs.pod:481
1101 #, no-wrap
1102 msgid ""
1103 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
1104 "\n"
1105 msgstr ""
1106 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
1107 "\n"
1108
1109 #. type: textblock
1110 #: ../src/guestfs.pod:483
1111 msgid ""
1112 "(Older versions of C<load_policy> require you to specify the name of the "
1113 "policy file)."
1114 msgstr ""
1115
1116 #. type: =item
1117 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1405
1118 msgid "3."
1119 msgstr "3."
1120
1121 #. type: textblock
1122 #: ../src/guestfs.pod:488
1123 msgid ""
1124 "Optionally, set the security context for the API.  The correct security "
1125 "context to use can only be known by inspecting the guest.  As an example:"
1126 msgstr ""
1127
1128 #. type: verbatim
1129 #: ../src/guestfs.pod:492
1130 #, no-wrap
1131 msgid ""
1132 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1133 "\n"
1134 msgstr ""
1135 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1136 "\n"
1137
1138 #. type: textblock
1139 #: ../src/guestfs.pod:496
1140 msgid "This will work for running commands and editing existing files."
1141 msgstr ""
1142
1143 #. type: textblock
1144 #: ../src/guestfs.pod:498
1145 msgid ""
1146 "When new files are created, you may need to label them explicitly, for "
1147 "example by running the external command C<restorecon pathname>."
1148 msgstr ""
1149
1150 #. type: =head2
1151 #: ../src/guestfs.pod:502
1152 msgid "UMASK"
1153 msgstr "UMASK"
1154
1155 #. type: textblock
1156 #: ../src/guestfs.pod:504
1157 msgid ""
1158 "Certain calls are affected by the current file mode creation mask (the "
1159 "\"umask\").  In particular ones which create files or directories, such as "
1160 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1161 "either the default mode that the file is created with or modifies the mode "
1162 "that you supply."
1163 msgstr ""
1164
1165 #. type: textblock
1166 #: ../src/guestfs.pod:510
1167 msgid ""
1168 "The default umask is C<022>, so files are created with modes such as C<0644>"
1169 " and directories with C<0755>."
1170 msgstr ""
1171
1172 #. type: textblock
1173 #: ../src/guestfs.pod:513
1174 msgid ""
1175 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1176 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
1177 "L</guestfs_chmod> after creating each file or directory."
1178 msgstr ""
1179
1180 #. type: textblock
1181 #: ../src/guestfs.pod:517
1182 msgid "For more information about umask, see L<umask(2)>."
1183 msgstr ""
1184
1185 #. type: =head1
1186 #: ../src/guestfs.pod:519 ../fish/guestfish.pod:825
1187 msgid "ENCRYPTED DISKS"
1188 msgstr "ЗАШИФРОВАНІ ДИСКИ"
1189
1190 #. type: textblock
1191 #: ../src/guestfs.pod:521
1192 msgid ""
1193 "Libguestfs allows you to access Linux guests which have been encrypted using"
1194 " whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1195 "standard.  This includes nearly all whole disk encryption systems used by "
1196 "modern Linux guests."
1197 msgstr ""
1198
1199 #. type: textblock
1200 #: ../src/guestfs.pod:527
1201 msgid ""
1202 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1203 "returns the string C<crypto_LUKS>)."
1204 msgstr ""
1205
1206 #. type: textblock
1207 #: ../src/guestfs.pod:530
1208 msgid ""
1209 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1210 "will require the passphrase!"
1211 msgstr ""
1212
1213 #. type: textblock
1214 #: ../src/guestfs.pod:533
1215 msgid ""
1216 "Opening a LUKS device creates a new device mapper device called "
1217 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
1218 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
1219 "decrypted from and encrypted to the underlying block device respectively."
1220 msgstr ""
1221
1222 #. type: textblock
1223 #: ../src/guestfs.pod:539
1224 msgid ""
1225 "LVM volume groups on the device can be made visible by calling "
1226 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
1227 "volume(s) can now be mounted in the usual way."
1228 msgstr ""
1229
1230 #. type: textblock
1231 #: ../src/guestfs.pod:543
1232 msgid ""
1233 "Use the reverse process to close a LUKS device.  Unmount any logical volumes"
1234 " on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1235 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
1236 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1237 "underlying encrypted block device)."
1238 msgstr ""
1239
1240 #. type: =head2
1241 #: ../src/guestfs.pod:550
1242 msgid "INSPECTION"
1243 msgstr "ПЕРЕВІРКА"
1244
1245 #. type: textblock
1246 #: ../src/guestfs.pod:552
1247 msgid ""
1248 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1249 "contains operating systems, an install CD or a live CD.  (These APIs used to"
1250 " be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since"
1251 " version 1.5.3 the most frequently used part of this library has been "
1252 "rewritten in C and moved into the core code)."
1253 msgstr ""
1254
1255 #. type: textblock
1256 #: ../src/guestfs.pod:559
1257 msgid ""
1258 "Add all disks belonging to the unknown virtual machine and call "
1259 "L</guestfs_launch> in the usual way."
1260 msgstr ""
1261
1262 #. type: textblock
1263 #: ../src/guestfs.pod:562
1264 msgid ""
1265 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls"
1266 " and certain heuristics, and returns a list of operating systems that were "
1267 "found.  An empty list means none were found.  A single element is the root "
1268 "filesystem of the operating system.  For dual- or multi-boot guests, "
1269 "multiple roots can be returned, each one corresponding to a separate "
1270 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1271 "world of virtualization, but since this scenario can happen, we have built "
1272 "libguestfs to deal with it.)"
1273 msgstr ""
1274
1275 #. type: textblock
1276 #: ../src/guestfs.pod:571
1277 msgid ""
1278 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1279 "to get additional details about that operating system.  For example, call "
1280 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for"
1281 " Windows and Linux-based operating systems respectively."
1282 msgstr ""
1283
1284 #. type: textblock
1285 #: ../src/guestfs.pod:577
1286 msgid ""
1287 "Un*x-like and Linux-based operating systems usually consist of several "
1288 "filesystems which are mounted at boot time (for example, a separate boot "
1289 "partition mounted on C</boot>).  The inspection rules are able to detect how"
1290 " filesystems correspond to mount points.  Call "
1291 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1292 "hash table like this example:"
1293 msgstr ""
1294
1295 #. type: verbatim
1296 #: ../src/guestfs.pod:584
1297 #, no-wrap
1298 msgid ""
1299 " /boot => /dev/sda1\n"
1300 " /     => /dev/vg_guest/lv_root\n"
1301 " /usr  => /dev/vg_guest/lv_usr\n"
1302 "\n"
1303 msgstr ""
1304 " /boot => /dev/sda1\n"
1305 " /     => /dev/vg_guest/lv_root\n"
1306 " /usr  => /dev/vg_guest/lv_usr\n"
1307 "\n"
1308
1309 #. type: textblock
1310 #: ../src/guestfs.pod:588
1311 msgid ""
1312 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1313 "filesystems as suggested."
1314 msgstr ""
1315
1316 #. type: textblock
1317 #: ../src/guestfs.pod:591
1318 msgid ""
1319 "Be careful to mount filesystems in the right order (eg. C</> before "
1320 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
1321 "work."
1322 msgstr ""
1323
1324 #. type: textblock
1325 #: ../src/guestfs.pod:595
1326 msgid ""
1327 "Inspection currently only works for some common operating systems.  "
1328 "Contributors are welcome to send patches for other operating systems that we"
1329 " currently cannot detect."
1330 msgstr ""
1331
1332 #. type: textblock
1333 #: ../src/guestfs.pod:599
1334 msgid ""
1335 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1336 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1337 "encrypted devices."
1338 msgstr ""
1339
1340 #. type: textblock
1341 #: ../src/guestfs.pod:603
1342 msgid ""
1343 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1344 "inspection and caches the results in the guest handle.  Subsequent calls to "
1345 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1346 "read the disks.  If you change the content of the guest disks, you can redo "
1347 "inspection by calling L</guestfs_inspect_os> again.  "
1348 "(L</guestfs_inspect_list_applications> works a little differently from the "
1349 "other calls and does read the disks.  See documentation for that function "
1350 "for details)."
1351 msgstr ""
1352
1353 #. type: =head3
1354 #: ../src/guestfs.pod:612
1355 msgid "INSPECTING INSTALL DISKS"
1356 msgstr ""
1357
1358 #. type: textblock
1359 #: ../src/guestfs.pod:614
1360 msgid ""
1361 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
1362 "CDs and more."
1363 msgstr ""
1364
1365 #. type: textblock
1366 #: ../src/guestfs.pod:617
1367 msgid ""
1368 "Call L</guestfs_inspect_get_format> to return the format of the operating "
1369 "system, which currently can be C<installed> (a regular operating system) or "
1370 "C<installer> (some sort of install disk)."
1371 msgstr ""
1372
1373 #. type: textblock
1374 #: ../src/guestfs.pod:621
1375 msgid ""
1376 "Further information is available about the operating system that can be "
1377 "installed using the regular inspection APIs like "
1378 "L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
1379 "etc."
1380 msgstr ""
1381
1382 #. type: textblock
1383 #: ../src/guestfs.pod:626
1384 msgid ""
1385 "Some additional information specific to installer disks is also available "
1386 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
1387 "L</guestfs_inspect_is_multipart> calls."
1388 msgstr ""
1389
1390 #. type: =head2
1391 #: ../src/guestfs.pod:631
1392 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1393 msgstr ""
1394
1395 #. type: textblock
1396 #: ../src/guestfs.pod:633
1397 msgid ""
1398 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www"
1399 ".ntfs-3g.org/> driver."
1400 msgstr ""
1401
1402 #. type: =head3
1403 #: ../src/guestfs.pod:636
1404 msgid "DRIVE LETTERS AND PATHS"
1405 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
1406
1407 #. type: textblock
1408 #: ../src/guestfs.pod:638
1409 msgid ""
1410 "DOS and Windows still use drive letters, and the filesystems are always "
1411 "treated as case insensitive by Windows itself, and therefore you might find "
1412 "a Windows configuration file referring to a path like "
1413 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
1414 "that directory might be referred to as C</WINDOWS/System32>."
1415 msgstr ""
1416
1417 #. type: textblock
1418 #: ../src/guestfs.pod:644
1419 msgid ""
1420 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
1421 "L</guestfs_inspect_get_drive_mappings>)"
1422 msgstr ""
1423
1424 #. type: textblock
1425 #: ../src/guestfs.pod:647
1426 msgid ""
1427 "Dealing with separator characters (backslash vs forward slash) is outside "
1428 "the scope of libguestfs, but usually a simple character replacement will "
1429 "work."
1430 msgstr ""
1431
1432 #. type: textblock
1433 #: ../src/guestfs.pod:651
1434 msgid ""
1435 "To resolve the case insensitivity of paths, call "
1436 "L</guestfs_case_sensitive_path>."
1437 msgstr ""
1438
1439 #. type: =head3
1440 #: ../src/guestfs.pod:654
1441 msgid "ACCESSING THE WINDOWS REGISTRY"
1442 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
1443
1444 #. type: textblock
1445 #: ../src/guestfs.pod:656
1446 msgid ""
1447 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1448 "files, through the library C<hivex> which is part of the libguestfs project "
1449 "although ships as a separate tarball.  You have to locate and download the "
1450 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1451 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-"
1452 "win-reg(1)> for more help on this issue."
1453 msgstr ""
1454
1455 #. type: =head3
1456 #: ../src/guestfs.pod:664
1457 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
1458 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
1459
1460 #. type: textblock
1461 #: ../src/guestfs.pod:666
1462 msgid ""
1463 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
1464 "provide something which looks like a Linux symlink.  The way it tries to do "
1465 "the rewriting is described here:"
1466 msgstr ""
1467
1468 #. type: textblock
1469 #: ../src/guestfs.pod:670
1470 msgid ""
1471 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1472 "symbolic-links/>"
1473 msgstr ""
1474 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1475 "symbolic-links/>"
1476
1477 #. type: textblock
1478 #: ../src/guestfs.pod:672
1479 msgid ""
1480 "The essential problem is that ntfs-3g simply does not have enough "
1481 "information to do a correct job.  NTFS links can contain drive letters and "
1482 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
1483 "It is almost certainly the case that libguestfs callers should ignore what "
1484 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
1485 msgstr ""
1486
1487 #. type: textblock
1488 #: ../src/guestfs.pod:679
1489 msgid ""
1490 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
1491 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
1492 "attribute, and read the raw reparse data from that (you can find the format "
1493 "documented in various places around the web)."
1494 msgstr ""
1495
1496 #. type: =head3
1497 #: ../src/guestfs.pod:684
1498 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
1499 msgstr ""
1500
1501 #. type: textblock
1502 #: ../src/guestfs.pod:686
1503 msgid ""
1504 "There are other useful extended attributes that can be read from ntfs-3g "
1505 "filesystems (using L</guestfs_getxattr>).  See:"
1506 msgstr ""
1507
1508 #. type: textblock
1509 #: ../src/guestfs.pod:689
1510 msgid ""
1511 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1512 msgstr ""
1513 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1514
1515 #. type: =head2
1516 #: ../src/guestfs.pod:691
1517 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1518 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
1519
1520 #. type: textblock
1521 #: ../src/guestfs.pod:693
1522 msgid ""
1523 "Although we don't want to discourage you from using the C API, we will "
1524 "mention here that the same API is also available in other languages."
1525 msgstr ""
1526
1527 #. type: textblock
1528 #: ../src/guestfs.pod:696
1529 msgid ""
1530 "The API is broadly identical in all supported languages.  This means that "
1531 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)>"
1532 " in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
1533 "OCaml.  In other words, a straightforward, predictable isomorphism between "
1534 "each language."
1535 msgstr ""
1536
1537 #. type: textblock
1538 #: ../src/guestfs.pod:702
1539 msgid ""
1540 "Error messages are automatically transformed into exceptions if the language"
1541 " supports it."
1542 msgstr ""
1543
1544 #. type: textblock
1545 #: ../src/guestfs.pod:705
1546 msgid ""
1547 "We don't try to \"object orientify\" parts of the API in OO languages, "
1548 "although contributors are welcome to write higher level APIs above what we "
1549 "provide in their favourite languages if they wish."
1550 msgstr ""
1551
1552 #. type: =item
1553 #: ../src/guestfs.pod:711
1554 msgid "B<C++>"
1555 msgstr "B<C++>"
1556
1557 #. type: textblock
1558 #: ../src/guestfs.pod:713
1559 msgid ""
1560 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1561 "identical to the C API.  C++ classes and exceptions are not used."
1562 msgstr ""
1563
1564 #. type: =item
1565 #: ../src/guestfs.pod:717
1566 msgid "B<C#>"
1567 msgstr "B<C#>"
1568
1569 #. type: textblock
1570 #: ../src/guestfs.pod:719
1571 msgid ""
1572 "The C# bindings are highly experimental.  Please read the warnings at the "
1573 "top of C<csharp/Libguestfs.cs>."
1574 msgstr ""
1575
1576 #. type: =item
1577 #: ../src/guestfs.pod:722
1578 msgid "B<Haskell>"
1579 msgstr "B<Haskell>"
1580
1581 #. type: textblock
1582 #: ../src/guestfs.pod:724
1583 msgid ""
1584 "This is the only language binding that is working but incomplete.  Only "
1585 "calls which return simple integers have been bound in Haskell, and we are "
1586 "looking for help to complete this binding."
1587 msgstr ""
1588
1589 #. type: =item
1590 #: ../src/guestfs.pod:728
1591 msgid "B<Java>"
1592 msgstr "B<Java>"
1593
1594 #. type: textblock
1595 #: ../src/guestfs.pod:730
1596 msgid ""
1597 "Full documentation is contained in the Javadoc which is distributed with "
1598 "libguestfs."
1599 msgstr ""
1600
1601 #. type: =item
1602 #: ../src/guestfs.pod:733
1603 msgid "B<OCaml>"
1604 msgstr "B<OCaml>"
1605
1606 #. type: textblock
1607 #: ../src/guestfs.pod:735
1608 msgid "See L<guestfs-ocaml(3)>."
1609 msgstr "Див. L<guestfs-ocaml(3)>."
1610
1611 #. type: =item
1612 #: ../src/guestfs.pod:737
1613 msgid "B<Perl>"
1614 msgstr "B<Perl>"
1615
1616 #. type: textblock
1617 #: ../src/guestfs.pod:739
1618 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
1619 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
1620
1621 #. type: =item
1622 #: ../src/guestfs.pod:741
1623 msgid "B<PHP>"
1624 msgstr "B<PHP>"
1625
1626 #. type: textblock
1627 #: ../src/guestfs.pod:743
1628 msgid ""
1629 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1630 "the php-libguestfs package for your distribution."
1631 msgstr ""
1632
1633 #. type: textblock
1634 #: ../src/guestfs.pod:746
1635 msgid "The PHP binding only works correctly on 64 bit machines."
1636 msgstr ""
1637
1638 #. type: =item
1639 #: ../src/guestfs.pod:748
1640 msgid "B<Python>"
1641 msgstr "B<Python>"
1642
1643 #. type: textblock
1644 #: ../src/guestfs.pod:750
1645 msgid "See L<guestfs-python(3)>."
1646 msgstr "Див. L<guestfs-python(3)>."
1647
1648 #. type: =item
1649 #: ../src/guestfs.pod:752
1650 msgid "B<Ruby>"
1651 msgstr "B<Ruby>"
1652
1653 #. type: textblock
1654 #: ../src/guestfs.pod:754
1655 msgid "See L<guestfs-ruby(3)>."
1656 msgstr "Див. L<guestfs-ruby(3)>."
1657
1658 #. type: =item
1659 #: ../src/guestfs.pod:756
1660 msgid "B<shell scripts>"
1661 msgstr "B<скрипти оболонки>"
1662
1663 #. type: textblock
1664 #: ../src/guestfs.pod:758
1665 msgid "See L<guestfish(1)>."
1666 msgstr "Див. L<guestfish(1)>."
1667
1668 #. type: =head2
1669 #: ../src/guestfs.pod:762
1670 msgid "LIBGUESTFS GOTCHAS"
1671 msgstr ""
1672
1673 #. type: textblock
1674 #: ../src/guestfs.pod:764
1675 msgid ""
1676 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1677 "system [...] that works in the way it is documented but is counterintuitive "
1678 "and almost invites mistakes.\""
1679 msgstr ""
1680
1681 #. type: textblock
1682 #: ../src/guestfs.pod:768
1683 msgid ""
1684 "Since we developed libguestfs and the associated tools, there are several "
1685 "things we would have designed differently, but are now stuck with for "
1686 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0"
1687 " release, you can expect these to change.  Beware of them."
1688 msgstr ""
1689
1690 #. type: =item
1691 #: ../src/guestfs.pod:776
1692 msgid "Autosync / forgetting to sync."
1693 msgstr ""
1694
1695 #. type: textblock
1696 #: ../src/guestfs.pod:778
1697 msgid ""
1698 "I<Update:> Autosync is enabled by default for all API users starting from "
1699 "libguestfs 1.5.24.  This section only applies to older versions."
1700 msgstr ""
1701
1702 #. type: textblock
1703 #: ../src/guestfs.pod:781
1704 msgid ""
1705 "When modifying a filesystem from C or another language, you B<must> unmount "
1706 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1707 "libguestfs handle.  You can also call:"
1708 msgstr ""
1709
1710 #. type: verbatim
1711 #: ../src/guestfs.pod:785
1712 #, no-wrap
1713 msgid ""
1714 " guestfs_set_autosync (g, 1);\n"
1715 "\n"
1716 msgstr ""
1717 " guestfs_set_autosync (g, 1);\n"
1718 "\n"
1719
1720 #. type: textblock
1721 #: ../src/guestfs.pod:787
1722 msgid ""
1723 "to have the unmount/sync done automatically for you when the handle 'g' is "
1724 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
1725 "q.v.)"
1726 msgstr ""
1727
1728 #. type: textblock
1729 #: ../src/guestfs.pod:791
1730 msgid ""
1731 "If you forget to do this, then it is entirely possible that your changes "
1732 "won't be written out, or will be partially written, or (very rarely) that "
1733 "you'll get disk corruption."
1734 msgstr ""
1735
1736 #. type: textblock
1737 #: ../src/guestfs.pod:795
1738 msgid ""
1739 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1740 "guestfish scripts that forget to sync will work just fine, which can make "
1741 "this very puzzling if you are trying to debug a problem."
1742 msgstr ""
1743
1744 #. type: =item
1745 #: ../src/guestfs.pod:799
1746 msgid "Mount option C<-o sync> should not be the default."
1747 msgstr ""
1748
1749 #. type: textblock
1750 #: ../src/guestfs.pod:801
1751 msgid ""
1752 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly."
1753 "  However C<-o sync> does not add any reliability benefit, but does have a "
1754 "very large performance impact."
1755 msgstr ""
1756
1757 #. type: textblock
1758 #: ../src/guestfs.pod:805
1759 msgid ""
1760 "The work around is to use L</guestfs_mount_options> and set the mount "
1761 "options that you actually want to use."
1762 msgstr ""
1763
1764 #. type: =item
1765 #: ../src/guestfs.pod:808
1766 msgid "Read-only should be the default."
1767 msgstr ""
1768
1769 #. type: textblock
1770 #: ../src/guestfs.pod:810
1771 msgid ""
1772 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1773 "specify I<--rw> if you want to make changes to the image."
1774 msgstr ""
1775
1776 #. type: textblock
1777 #: ../src/guestfs.pod:813
1778 msgid "This would reduce the potential to corrupt live VM images."
1779 msgstr ""
1780
1781 #. type: textblock
1782 #: ../src/guestfs.pod:815
1783 msgid ""
1784 "Note that many filesystems change the disk when you just mount and unmount, "
1785 "even if you didn't perform any writes.  You need to use "
1786 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
1787 msgstr ""
1788
1789 #. type: =item
1790 #: ../src/guestfs.pod:819
1791 msgid "guestfish command line is hard to use."
1792 msgstr ""
1793
1794 #. type: textblock
1795 #: ../src/guestfs.pod:821
1796 msgid ""
1797 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1798 "examination).  It tries to run a guestfish command C<disk.img> which doesn't"
1799 " exist, so it fails.  In earlier versions of guestfish the error message was"
1800 " also unintuitive, but we have corrected this since.  Like the Bourne shell,"
1801 " we should have used C<guestfish -c command> to run commands."
1802 msgstr ""
1803
1804 #. type: =item
1805 #: ../src/guestfs.pod:828
1806 msgid "guestfish megabyte modifiers don't work right on all commands"
1807 msgstr ""
1808
1809 #. type: textblock
1810 #: ../src/guestfs.pod:830
1811 msgid ""
1812 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1813 "other modifiers).  What guestfish actually does is to multiply the number "
1814 "part by the modifier part and pass the result to the C API.  However this "
1815 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1816 "expecting some other unit (eg. megabytes)."
1817 msgstr ""
1818
1819 #. type: textblock
1820 #: ../src/guestfs.pod:837
1821 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1822 msgstr ""
1823
1824 #. type: verbatim
1825 #: ../src/guestfs.pod:839
1826 #, no-wrap
1827 msgid ""
1828 " lvcreate LV VG 100M\n"
1829 "\n"
1830 msgstr ""
1831 " lvcreate LV VG 100M\n"
1832 "\n"
1833
1834 #. type: textblock
1835 #: ../src/guestfs.pod:841
1836 msgid ""
1837 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1838 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1839 "megabytes * megabytes) logical volume.  The error message you get from this "
1840 "is also a little obscure."
1841 msgstr ""
1842
1843 #. type: textblock
1844 #: ../src/guestfs.pod:846
1845 msgid ""
1846 "This could be fixed in the generator by specially marking parameters and "
1847 "return values which take bytes or other units."
1848 msgstr ""
1849
1850 #. type: =item
1851 #: ../src/guestfs.pod:849
1852 msgid "Ambiguity between devices and paths"
1853 msgstr ""
1854
1855 #. type: textblock
1856 #: ../src/guestfs.pod:851
1857 msgid ""
1858 "There is a subtle ambiguity in the API between a device name (eg. "
1859 "C</dev/sdb2>) and a similar pathname.  A file might just happen to be called"
1860 " C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1861 msgstr ""
1862
1863 #. type: textblock
1864 #: ../src/guestfs.pod:856
1865 msgid ""
1866 "In the current API we usually resolve this ambiguity by having two separate "
1867 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1868 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1869 "detecting if the path supplied begins with C</dev/>."
1870 msgstr ""
1871
1872 #. type: textblock
1873 #: ../src/guestfs.pod:862
1874 msgid ""
1875 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1876 "make paths/devices into structured names.  One way to do this would be to "
1877 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1878 "aspect of grub.  Another way would be to use a structured type, equivalent "
1879 "to this OCaml type:"
1880 msgstr ""
1881
1882 #. type: verbatim
1883 #: ../src/guestfs.pod:868
1884 #, no-wrap
1885 msgid ""
1886 " type path = Path of string | Device of int | Partition of int * int\n"
1887 "\n"
1888 msgstr ""
1889
1890 #. type: textblock
1891 #: ../src/guestfs.pod:870
1892 msgid "which would allow you to pass arguments like:"
1893 msgstr ""
1894
1895 #. type: verbatim
1896 #: ../src/guestfs.pod:872
1897 #, no-wrap
1898 msgid ""
1899 " Path \"/foo/bar\"\n"
1900 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1901 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1902 " Path \"/dev/sdb2\"    (* not a device *)\n"
1903 "\n"
1904 msgstr ""
1905
1906 #. type: textblock
1907 #: ../src/guestfs.pod:877
1908 msgid ""
1909 "As you can see there are still problems to resolve even with this "
1910 "representation.  Also consider how it might work in guestfish."
1911 msgstr ""
1912
1913 #. type: =head2
1914 #: ../src/guestfs.pod:882
1915 msgid "KEYS AND PASSPHRASES"
1916 msgstr "КЛЮЧІ І ПАРОЛІ"
1917
1918 #. type: textblock
1919 #: ../src/guestfs.pod:884
1920 msgid ""
1921 "Certain libguestfs calls take a parameter that contains sensitive key "
1922 "material, passed in as a C string."
1923 msgstr ""
1924
1925 #. type: textblock
1926 #: ../src/guestfs.pod:887
1927 msgid ""
1928 "In the future we would hope to change the libguestfs implementation so that "
1929 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1930 "swap.  However this is I<not> done at the moment, because of the complexity "
1931 "of such an implementation."
1932 msgstr ""
1933
1934 #. type: textblock
1935 #: ../src/guestfs.pod:892
1936 msgid ""
1937 "Therefore you should be aware that any key parameter you pass to libguestfs "
1938 "might end up being written out to the swap partition.  If this is a concern,"
1939 " scrub the swap partition or don't use libguestfs on encrypted devices."
1940 msgstr ""
1941
1942 #. type: =head2
1943 #: ../src/guestfs.pod:897
1944 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1945 msgstr ""
1946
1947 #. type: textblock
1948 #: ../src/guestfs.pod:899
1949 msgid ""
1950 "All high-level libguestfs actions are synchronous.  If you want to use "
1951 "libguestfs asynchronously then you must create a thread."
1952 msgstr ""
1953
1954 #. type: textblock
1955 #: ../src/guestfs.pod:902
1956 msgid ""
1957 "Only use the handle from a single thread.  Either use the handle exclusively"
1958 " from one thread, or provide your own mutex so that two threads cannot issue"
1959 " calls on the same handle at the same time."
1960 msgstr ""
1961
1962 #. type: textblock
1963 #: ../src/guestfs.pod:906
1964 msgid ""
1965 "See the graphical program guestfs-browser for one possible architecture for "
1966 "multithreaded programs using libvirt and libguestfs."
1967 msgstr ""
1968
1969 #. type: =head2
1970 #: ../src/guestfs.pod:909
1971 msgid "PATH"
1972 msgstr "ШЛЯХ"
1973
1974 #. type: textblock
1975 #: ../src/guestfs.pod:911
1976 msgid ""
1977 "Libguestfs needs a supermin appliance, which it finds by looking along an "
1978 "internal path."
1979 msgstr ""
1980
1981 #. type: textblock
1982 #: ../src/guestfs.pod:914
1983 msgid ""
1984 "By default it looks for these in the directory C<$libdir/guestfs> (eg. "
1985 "C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1986 msgstr ""
1987
1988 #. type: textblock
1989 #: ../src/guestfs.pod:917
1990 msgid ""
1991 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH>"
1992 " to change the directories that libguestfs will search in.  The value is a "
1993 "colon-separated list of paths.  The current directory is I<not> searched "
1994 "unless the path contains an empty element or C<.>.  For example "
1995 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1996 "then C</usr/lib/guestfs>."
1997 msgstr ""
1998
1999 #. type: =head2
2000 #: ../src/guestfs.pod:924
2001 msgid "QEMU WRAPPERS"
2002 msgstr ""
2003
2004 #. type: textblock
2005 #: ../src/guestfs.pod:926
2006 msgid ""
2007 "If you want to compile your own qemu, run qemu from a non-standard location,"
2008 " or pass extra arguments to qemu, then you can write a shell-script wrapper "
2009 "around qemu."
2010 msgstr ""
2011
2012 #. type: textblock
2013 #: ../src/guestfs.pod:930
2014 msgid ""
2015 "There is one important rule to remember: you I<must C<exec qemu>> as the "
2016 "last command in the shell script (so that qemu replaces the shell and "
2017 "becomes the direct child of the libguestfs-using program).  If you don't do "
2018 "this, then the qemu process won't be cleaned up correctly."
2019 msgstr ""
2020
2021 #. type: textblock
2022 #: ../src/guestfs.pod:935
2023 msgid ""
2024 "Here is an example of a wrapper, where I have built my own copy of qemu from"
2025 " source:"
2026 msgstr ""
2027
2028 #. type: verbatim
2029 #: ../src/guestfs.pod:938
2030 #, no-wrap
2031 msgid ""
2032 " #!/bin/sh -\n"
2033 " qemudir=/home/rjones/d/qemu\n"
2034 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
2035 "\n"
2036 msgstr ""
2037 " #!/bin/sh -\n"
2038 " qemudir=/home/rjones/d/qemu\n"
2039 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
2040 "\n"
2041
2042 #. type: textblock
2043 #: ../src/guestfs.pod:942
2044 msgid ""
2045 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
2046 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
2047 "example:"
2048 msgstr ""
2049
2050 #. type: verbatim
2051 #: ../src/guestfs.pod:946
2052 #, no-wrap
2053 msgid ""
2054 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
2055 "\n"
2056 msgstr ""
2057 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
2058 "\n"
2059
2060 #. type: textblock
2061 #: ../src/guestfs.pod:948
2062 msgid ""
2063 "Note that libguestfs also calls qemu with the -help and -version options in "
2064 "order to determine features."
2065 msgstr ""
2066
2067 #. type: =head2
2068 #: ../src/guestfs.pod:951
2069 msgid "ATTACHING TO RUNNING DAEMONS"
2070 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
2071
2072 #. type: textblock
2073 #: ../src/guestfs.pod:953
2074 msgid ""
2075 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
2076 "babies.  Use with caution."
2077 msgstr ""
2078
2079 #. type: textblock
2080 #: ../src/guestfs.pod:956
2081 msgid ""
2082 "I<Note (2):> This section explains how to attach to a running daemon from a "
2083 "low level perspective.  For most users, simply using virt tools such as "
2084 "L<guestfish(1)> with the I<--live> option will \"just work\"."
2085 msgstr ""
2086
2087 #. type: =head3
2088 #: ../src/guestfs.pod:960
2089 msgid "Using guestfs_set_attach_method"
2090 msgstr "За допомогою guestfs_set_attach_method"
2091
2092 #. type: textblock
2093 #: ../src/guestfs.pod:962
2094 msgid ""
2095 "By calling L</guestfs_set_attach_method> you can change how the library "
2096 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
2097 "L</ARCHITECTURE> for some background)."
2098 msgstr ""
2099
2100 #. type: textblock
2101 #: ../src/guestfs.pod:966
2102 msgid ""
2103 "The normal attach method is C<appliance>, where a small appliance is created"
2104 " containing the daemon, and then the library connects to this."
2105 msgstr ""
2106
2107 #. type: textblock
2108 #: ../src/guestfs.pod:969
2109 msgid ""
2110 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
2111 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
2112 "daemon over the Unix domain socket."
2113 msgstr ""
2114
2115 #. type: textblock
2116 #: ../src/guestfs.pod:973
2117 msgid ""
2118 "The normal use for this is to connect to a running virtual machine that "
2119 "contains a C<guestfsd> daemon, and send commands so you can read and write "
2120 "files inside the live virtual machine."
2121 msgstr ""
2122
2123 #. type: =head3
2124 #: ../src/guestfs.pod:977
2125 msgid "Using guestfs_add_domain with live flag"
2126 msgstr "За допомогою guestfs_add_domain з прапорцем live"
2127
2128 #. type: textblock
2129 #: ../src/guestfs.pod:979
2130 msgid ""
2131 "L</guestfs_add_domain> provides some help for getting the correct attach "
2132 "method.  If you pass the C<live> option to this function, then (if the "
2133 "virtual machine is running) it will examine the libvirt XML looking for a "
2134 "virtio-serial channel to connect to:"
2135 msgstr ""
2136
2137 #. type: verbatim
2138 #: ../src/guestfs.pod:985
2139 #, no-wrap
2140 msgid ""
2141 " <domain>\n"
2142 "   ...\n"
2143 "   <devices>\n"
2144 "     ...\n"
2145 "     <channel type='unix'>\n"
2146 "       <source mode='bind' path='/path/to/socket'/>\n"
2147 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
2148 "     </channel>\n"
2149 "     ...\n"
2150 "   </devices>\n"
2151 " </domain>\n"
2152 "\n"
2153 msgstr ""
2154 " <domain>\n"
2155 "   ...\n"
2156 "   <devices>\n"
2157 "     ...\n"
2158 "     <channel type='unix'>\n"
2159 "       <source mode='bind' path='/path/to/socket'/>\n"
2160 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
2161 "     </channel>\n"
2162 "     ...\n"
2163 "   </devices>\n"
2164 " </domain>\n"
2165 "\n"
2166
2167 #. type: textblock
2168 #: ../src/guestfs.pod:997
2169 msgid ""
2170 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
2171 "method to C<unix:/path/to/socket>."
2172 msgstr ""
2173
2174 #. type: textblock
2175 #: ../src/guestfs.pod:1000
2176 msgid ""
2177 "Some of the libguestfs tools (including guestfish) support a I<--live> "
2178 "option which is passed through to L</guestfs_add_domain> thus allowing you "
2179 "to attach to and modify live virtual machines."
2180 msgstr ""
2181
2182 #. type: textblock
2183 #: ../src/guestfs.pod:1004
2184 msgid ""
2185 "The virtual machine needs to have been set up beforehand so that it has the "
2186 "virtio-serial channel and so that guestfsd is running inside it."
2187 msgstr ""
2188
2189 #. type: =head2
2190 #: ../src/guestfs.pod:1008
2191 msgid "ABI GUARANTEE"
2192 msgstr "ГАРАНТІЯ ЩОДО ABI"
2193
2194 #. type: textblock
2195 #: ../src/guestfs.pod:1010
2196 msgid ""
2197 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2198 "actions as outlined in this section.  Although we will deprecate some "
2199 "actions, for example if they get replaced by newer calls, we will keep the "
2200 "old actions forever.  This allows you the developer to program in confidence"
2201 " against the libguestfs API."
2202 msgstr ""
2203
2204 #. type: =head2
2205 #: ../src/guestfs.pod:1016
2206 msgid "BLOCK DEVICE NAMING"
2207 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
2208
2209 #. type: textblock
2210 #: ../src/guestfs.pod:1018
2211 msgid ""
2212 "In the kernel there is now quite a profusion of schemata for naming block "
2213 "devices (in this context, by I<block device> I mean a physical or virtual "
2214 "hard drive).  The original Linux IDE driver used names starting with "
2215 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme,"
2216 " C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
2217 "replacement for the old IDE driver (particularly for SATA devices) those "
2218 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
2219 "machines with paravirtualized drivers.  This has created several different "
2220 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
2221 "Xen PV disks."
2222 msgstr ""
2223
2224 #. type: textblock
2225 #: ../src/guestfs.pod:1030
2226 msgid ""
2227 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2228 "Linux kernel to access block devices.  We can run a variety of appliances "
2229 "based on a variety of Linux kernels."
2230 msgstr ""
2231
2232 #. type: textblock
2233 #: ../src/guestfs.pod:1034
2234 msgid ""
2235 "This causes a problem for libguestfs because many API calls use device or "
2236 "partition names.  Working scripts and the recipe (example) scripts that we "
2237 "make available over the internet could fail if the naming scheme changes."
2238 msgstr ""
2239
2240 #. type: textblock
2241 #: ../src/guestfs.pod:1039
2242 msgid ""
2243 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2244 "Internally C</dev/sd*> names are translated, if necessary, to other names as"
2245 " required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any"
2246 " device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2247 msgstr ""
2248
2249 #. type: textblock
2250 #: ../src/guestfs.pod:1045
2251 msgid ""
2252 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>,"
2253 " L</guestfs_list_partitions> and similar calls return the true names of the "
2254 "devices and partitions as known to the appliance."
2255 msgstr ""
2256
2257 #. type: =head3
2258 #: ../src/guestfs.pod:1050
2259 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2260 msgstr ""
2261
2262 #. type: textblock
2263 #: ../src/guestfs.pod:1052
2264 msgid ""
2265 "Usually this translation is transparent.  However in some (very rare)  cases"
2266 " you may need to know the exact algorithm.  Such cases include where you use"
2267 " L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
2268 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
2269 msgstr ""
2270
2271 #. type: textblock
2272 #: ../src/guestfs.pod:1058
2273 msgid ""
2274 "The algorithm is applied only to I<parameters> which are known to be either "
2275 "device or partition names.  Return values from functions such as "
2276 "L</guestfs_list_devices> are never changed."
2277 msgstr ""
2278
2279 #. type: textblock
2280 #: ../src/guestfs.pod:1066
2281 msgid "Is the string a parameter which is a device or partition name?"
2282 msgstr ""
2283
2284 #. type: textblock
2285 #: ../src/guestfs.pod:1070
2286 msgid "Does the string begin with C</dev/sd>?"
2287 msgstr "Чи починається рядок з C</dev/sd>?"
2288
2289 #. type: textblock
2290 #: ../src/guestfs.pod:1074
2291 msgid ""
2292 "Does the named device exist? If so, we use that device.  However if I<not> "
2293 "then we continue with this algorithm."
2294 msgstr ""
2295
2296 #. type: textblock
2297 #: ../src/guestfs.pod:1079
2298 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2299 msgstr ""
2300
2301 #. type: textblock
2302 #: ../src/guestfs.pod:1081
2303 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2304 msgstr ""
2305
2306 #. type: textblock
2307 #: ../src/guestfs.pod:1083
2308 msgid "If that named device exists, use it.  If not, continue."
2309 msgstr ""
2310
2311 #. type: textblock
2312 #: ../src/guestfs.pod:1087
2313 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2314 msgstr ""
2315
2316 #. type: textblock
2317 #: ../src/guestfs.pod:1089
2318 msgid "If that named device exists, use it.  If not, return an error."
2319 msgstr ""
2320
2321 #. type: =head3
2322 #: ../src/guestfs.pod:1093
2323 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2324 msgstr ""
2325
2326 #. type: textblock
2327 #: ../src/guestfs.pod:1095
2328 msgid ""
2329 "Although the standard naming scheme and automatic translation is useful for "
2330 "simple programs and guestfish scripts, for larger programs it is best not to"
2331 " rely on this mechanism."
2332 msgstr ""
2333
2334 #. type: textblock
2335 #: ../src/guestfs.pod:1099
2336 msgid ""
2337 "Where possible for maximum future portability programs using libguestfs "
2338 "should use these future-proof techniques:"
2339 msgstr ""
2340
2341 #. type: textblock
2342 #: ../src/guestfs.pod:1106
2343 msgid ""
2344 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2345 "device names, and then use those names directly."
2346 msgstr ""
2347
2348 #. type: textblock
2349 #: ../src/guestfs.pod:1109
2350 msgid ""
2351 "Since those device names exist by definition, they will never be translated."
2352 msgstr ""
2353
2354 #. type: textblock
2355 #: ../src/guestfs.pod:1114
2356 msgid ""
2357 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2358 "filesystem labels."
2359 msgstr ""
2360
2361 #. type: =head1
2362 #: ../src/guestfs.pod:1119
2363 msgid "SECURITY"
2364 msgstr "БЕЗПЕКА"
2365
2366 #. type: textblock
2367 #: ../src/guestfs.pod:1121
2368 msgid ""
2369 "This section discusses security implications of using libguestfs, "
2370 "particularly with untrusted or malicious guests or disk images."
2371 msgstr ""
2372
2373 #. type: =head2
2374 #: ../src/guestfs.pod:1124
2375 msgid "GENERAL SECURITY CONSIDERATIONS"
2376 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
2377
2378 #. type: textblock
2379 #: ../src/guestfs.pod:1126
2380 msgid ""
2381 "Be careful with any files or data that you download from a guest (by "
2382 "\"download\" we mean not just the L</guestfs_download> command but any "
2383 "command that reads files, filenames, directories or anything else from a "
2384 "disk image).  An attacker could manipulate the data to fool your program "
2385 "into doing the wrong thing.  Consider cases such as:"
2386 msgstr ""
2387
2388 #. type: textblock
2389 #: ../src/guestfs.pod:1136
2390 msgid "the data (file etc) not being present"
2391 msgstr ""
2392
2393 #. type: textblock
2394 #: ../src/guestfs.pod:1140
2395 msgid "being present but empty"
2396 msgstr ""
2397
2398 #. type: textblock
2399 #: ../src/guestfs.pod:1144
2400 msgid "being much larger than normal"
2401 msgstr ""
2402
2403 #. type: textblock
2404 #: ../src/guestfs.pod:1148
2405 msgid "containing arbitrary 8 bit data"
2406 msgstr ""
2407
2408 #. type: textblock
2409 #: ../src/guestfs.pod:1152
2410 msgid "being in an unexpected character encoding"
2411 msgstr ""
2412
2413 #. type: textblock
2414 #: ../src/guestfs.pod:1156
2415 msgid "containing homoglyphs."
2416 msgstr ""
2417
2418 #. type: =head2
2419 #: ../src/guestfs.pod:1160
2420 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2421 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
2422
2423 #. type: textblock
2424 #: ../src/guestfs.pod:1162
2425 msgid ""
2426 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2427 "(VFS) module can sometimes be escalated into exploits by deliberately "
2428 "creating a malicious, malformed filesystem.  These exploits are very severe "
2429 "for two reasons.  Firstly there are very many filesystem drivers in the "
2430 "kernel, and many of them are infrequently used and not much developer "
2431 "attention has been paid to the code.  Linux userspace helps potential "
2432 "crackers by detecting the filesystem type and automatically choosing the "
2433 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2434 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2435 "exploit (worse in some ways), giving immediate and total access to the "
2436 "system right down to the hardware level."
2437 msgstr ""
2438
2439 #. type: textblock
2440 #: ../src/guestfs.pod:1175
2441 msgid ""
2442 "That explains why you should never mount a filesystem from an untrusted "
2443 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2444 "inside a qemu virtual machine, usually running as a non-root user.  The "
2445 "attacker would need to write a filesystem which first exploited the kernel, "
2446 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2447 "the libguestfs protocol, and finally to be as serious as the host kernel "
2448 "exploit it would need to escalate its privileges to root.  This multi-step "
2449 "escalation, performed by a static piece of data, is thought to be extremely "
2450 "hard to do, although we never say 'never' about security issues."
2451 msgstr ""
2452
2453 #. type: textblock
2454 #: ../src/guestfs.pod:1186
2455 msgid ""
2456 "In any case callers can reduce the attack surface by forcing the filesystem "
2457 "type when mounting (use L</guestfs_mount_vfs>)."
2458 msgstr ""
2459
2460 #. type: =head2
2461 #: ../src/guestfs.pod:1189
2462 msgid "PROTOCOL SECURITY"
2463 msgstr "ЗАХИСТ ПРОТОКОЛУ"
2464
2465 #. type: textblock
2466 #: ../src/guestfs.pod:1191
2467 msgid ""
2468 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a"
2469 " defined upper message size.  However a program that uses libguestfs must "
2470 "also take care - for example you can write a program that downloads a binary"
2471 " from a disk image and executes it locally, and no amount of protocol "
2472 "security will save you from the consequences."
2473 msgstr ""
2474
2475 #. type: =head2
2476 #: ../src/guestfs.pod:1197
2477 msgid "INSPECTION SECURITY"
2478 msgstr ""
2479
2480 #. type: textblock
2481 #: ../src/guestfs.pod:1199
2482 msgid ""
2483 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2484 "directly from the guest, and these could contain any 8 bit data.  Callers "
2485 "should be careful to escape these before printing them to a structured file "
2486 "(for example, use HTML escaping if creating a web page)."
2487 msgstr ""
2488
2489 #. type: textblock
2490 #: ../src/guestfs.pod:1205
2491 msgid ""
2492 "Guest configuration may be altered in unusual ways by the administrator of "
2493 "the virtual machine, and may not reflect reality (particularly for untrusted"
2494 " or actively malicious guests).  For example we parse the hostname from "
2495 "configuration files like C</etc/sysconfig/network> that we find in the "
2496 "guest, but the guest administrator can easily manipulate these files to "
2497 "provide the wrong hostname."
2498 msgstr ""
2499
2500 #. type: textblock
2501 #: ../src/guestfs.pod:1213
2502 msgid ""
2503 "The inspection API parses guest configuration using two external libraries: "
2504 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2505 "designed to be robust in the face of malicious data, although denial of "
2506 "service attacks are still possible, for example with oversized configuration"
2507 " files."
2508 msgstr ""
2509
2510 #. type: =head2
2511 #: ../src/guestfs.pod:1219
2512 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2513 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
2514
2515 #. type: textblock
2516 #: ../src/guestfs.pod:1221
2517 msgid ""
2518 "Be very cautious about running commands from the guest.  By running a "
2519 "command in the guest, you are giving CPU time to a binary that you do not "
2520 "control, under the same user account as the library, albeit wrapped in qemu "
2521 "virtualization.  More information and alternatives can be found in the "
2522 "section L</RUNNING COMMANDS>."
2523 msgstr ""
2524
2525 #. type: =head2
2526 #: ../src/guestfs.pod:1227
2527 msgid "CVE-2010-3851"
2528 msgstr "CVE-2010-3851"
2529
2530 #. type: textblock
2531 #: ../src/guestfs.pod:1229
2532 msgid "https://bugzilla.redhat.com/642934"
2533 msgstr "https://bugzilla.redhat.com/642934"
2534
2535 #. type: textblock
2536 #: ../src/guestfs.pod:1231
2537 msgid ""
2538 "This security bug concerns the automatic disk format detection that qemu "
2539 "does on disk images."
2540 msgstr ""
2541
2542 #. type: textblock
2543 #: ../src/guestfs.pod:1234
2544 msgid ""
2545 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2546 "images like qcow2 contain a special header.  Qemu deals with this by looking"
2547 " for one of the known headers, and if none is found then assuming the disk "
2548 "image must be raw."
2549 msgstr ""
2550
2551 #. type: textblock
2552 #: ../src/guestfs.pod:1239
2553 msgid ""
2554 "This allows a guest which has been given a raw disk image to write some "
2555 "other header.  At next boot (or when the disk image is accessed by "
2556 "libguestfs) qemu would do autodetection and think the disk image format was,"
2557 " say, qcow2 based on the header written by the guest."
2558 msgstr ""
2559
2560 #. type: textblock
2561 #: ../src/guestfs.pod:1244
2562 msgid ""
2563 "This in itself would not be a problem, but qcow2 offers many features, one "
2564 "of which is to allow a disk image to refer to another image (called the "
2565 "\"backing disk\").  It does this by placing the path to the backing disk "
2566 "into the qcow2 header.  This path is not validated and could point to any "
2567 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2568 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2569 "control of the attacker."
2570 msgstr ""
2571
2572 #. type: textblock
2573 #: ../src/guestfs.pod:1252
2574 msgid ""
2575 "In libguestfs this is rather hard to exploit except under two circumstances:"
2576 msgstr ""
2577
2578 #. type: textblock
2579 #: ../src/guestfs.pod:1259
2580 msgid "You have enabled the network or have opened the disk in write mode."
2581 msgstr ""
2582
2583 #. type: textblock
2584 #: ../src/guestfs.pod:1263
2585 msgid ""
2586 "You are also running untrusted code from the guest (see L</RUNNING "
2587 "COMMANDS>)."
2588 msgstr ""
2589
2590 #. type: textblock
2591 #: ../src/guestfs.pod:1268
2592 msgid ""
2593 "The way to avoid this is to specify the expected disk format when adding "
2594 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2595 "should always do this if the disk is raw format, and it's a good idea for "
2596 "other cases too."
2597 msgstr ""
2598
2599 #. type: textblock
2600 #: ../src/guestfs.pod:1273
2601 msgid ""
2602 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2603 "format is fetched from libvirt and passed through."
2604 msgstr ""
2605
2606 #. type: textblock
2607 #: ../src/guestfs.pod:1276
2608 msgid ""
2609 "For libguestfs tools, use the I<--format> command line parameter as "
2610 "appropriate."
2611 msgstr ""
2612
2613 #. type: =head1
2614 #: ../src/guestfs.pod:1279
2615 msgid "CONNECTION MANAGEMENT"
2616 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
2617
2618 #. type: =head2
2619 #: ../src/guestfs.pod:1281
2620 msgid "guestfs_h *"
2621 msgstr "guestfs_h *"
2622
2623 #. type: textblock
2624 #: ../src/guestfs.pod:1283
2625 msgid ""
2626 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2627 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2628 "handle and release all resources used."
2629 msgstr ""
2630
2631 #. type: textblock
2632 #: ../src/guestfs.pod:1287
2633 msgid ""
2634 "For information on using multiple handles and threads, see the section "
2635 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
2636 msgstr ""
2637
2638 #. type: =head2
2639 #: ../src/guestfs.pod:1290
2640 msgid "guestfs_create"
2641 msgstr "guestfs_create"
2642
2643 #. type: verbatim
2644 #: ../src/guestfs.pod:1292
2645 #, no-wrap
2646 msgid ""
2647 " guestfs_h *guestfs_create (void);\n"
2648 "\n"
2649 msgstr ""
2650 " guestfs_h *guestfs_create (void);\n"
2651 "\n"
2652
2653 #. type: textblock
2654 #: ../src/guestfs.pod:1294
2655 msgid "Create a connection handle."
2656 msgstr "Створити дескриптор з’єднання."
2657
2658 #. type: textblock
2659 #: ../src/guestfs.pod:1296
2660 msgid ""
2661 "On success this returns a non-NULL pointer to a handle.  On error it returns"
2662 " NULL."
2663 msgstr ""
2664
2665 #. type: textblock
2666 #: ../src/guestfs.pod:1299
2667 msgid ""
2668 "You have to \"configure\" the handle after creating it.  This includes "
2669 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
2670 "handle at least once."
2671 msgstr ""
2672
2673 #. type: textblock
2674 #: ../src/guestfs.pod:1303
2675 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2676 msgstr ""
2677
2678 #. type: textblock
2679 #: ../src/guestfs.pod:1305
2680 msgid ""
2681 "You may also want to configure error handling for the handle.  See the "
2682 "L</ERROR HANDLING> section below."
2683 msgstr ""
2684
2685 #. type: =head2
2686 #: ../src/guestfs.pod:1308
2687 msgid "guestfs_close"
2688 msgstr "guestfs_close"
2689
2690 #. type: verbatim
2691 #: ../src/guestfs.pod:1310
2692 #, no-wrap
2693 msgid ""
2694 " void guestfs_close (guestfs_h *g);\n"
2695 "\n"
2696 msgstr ""
2697 " void guestfs_close (guestfs_h *g);\n"
2698 "\n"
2699
2700 #. type: textblock
2701 #: ../src/guestfs.pod:1312
2702 msgid "This closes the connection handle and frees up all resources used."
2703 msgstr ""
2704
2705 #. type: textblock
2706 #: ../src/guestfs.pod:1314
2707 msgid ""
2708 "If autosync was set on the handle and the handle was launched, then this "
2709 "implicitly calls various functions to unmount filesystems and sync the disk."
2710 "  See L</guestfs_set_autosync> for more details."
2711 msgstr ""
2712
2713 #. type: textblock
2714 #: ../src/guestfs.pod:1318
2715 msgid "If a close callback was set on the handle, then it is called."
2716 msgstr ""
2717
2718 #. type: =head1
2719 #: ../src/guestfs.pod:1320
2720 msgid "ERROR HANDLING"
2721 msgstr "ОБРОБКА ПОМИЛОК"
2722
2723 #. type: textblock
2724 #: ../src/guestfs.pod:1322
2725 msgid ""
2726 "API functions can return errors.  For example, almost all functions that "
2727 "return C<int> will return C<-1> to indicate an error."
2728 msgstr ""
2729
2730 #. type: textblock
2731 #: ../src/guestfs.pod:1325
2732 msgid ""
2733 "Additional information is available for errors: an error message string and "
2734 "optionally an error number (errno) if the thing that failed was a system "
2735 "call."
2736 msgstr ""
2737
2738 #. type: textblock
2739 #: ../src/guestfs.pod:1329
2740 msgid ""
2741 "You can get at the additional information about the last error on the handle"
2742 " by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by "
2743 "setting up an error handler with L</guestfs_set_error_handler>."
2744 msgstr ""
2745
2746 #. type: textblock
2747 #: ../src/guestfs.pod:1334
2748 msgid ""
2749 "When the handle is created, a default error handler is installed which "
2750 "prints the error message string to C<stderr>.  For small short-running "
2751 "command line programs it is sufficient to do:"
2752 msgstr ""
2753
2754 #. type: verbatim
2755 #: ../src/guestfs.pod:1338
2756 #, no-wrap
2757 msgid ""
2758 " if (guestfs_launch (g) == -1)\n"
2759 "   exit (EXIT_FAILURE);\n"
2760 "\n"
2761 msgstr ""
2762 " if (guestfs_launch (g) == -1)\n"
2763 "   exit (EXIT_FAILURE);\n"
2764 "\n"
2765
2766 #. type: textblock
2767 #: ../src/guestfs.pod:1341
2768 msgid ""
2769 "since the default error handler will ensure that an error message has been "
2770 "printed to C<stderr> before the program exits."
2771 msgstr ""
2772
2773 #. type: textblock
2774 #: ../src/guestfs.pod:1344
2775 msgid ""
2776 "For other programs the caller will almost certainly want to install an "
2777 "alternate error handler or do error handling in-line like this:"
2778 msgstr ""
2779
2780 #. type: verbatim
2781 #: ../src/guestfs.pod:1347
2782 #, no-wrap
2783 msgid ""
2784 " g = guestfs_create ();\n"
2785 " \n"
2786 msgstr ""
2787 " g = guestfs_create ();\n"
2788 " \n"
2789
2790 #. type: verbatim
2791 #: ../src/guestfs.pod:1349
2792 #, no-wrap
2793 msgid ""
2794 " /* This disables the default behaviour of printing errors\n"
2795 "    on stderr. */\n"
2796 " guestfs_set_error_handler (g, NULL, NULL);\n"
2797 " \n"
2798 msgstr ""
2799
2800 #. type: verbatim
2801 #: ../src/guestfs.pod:1353
2802 #, no-wrap
2803 msgid ""
2804 " if (guestfs_launch (g) == -1) {\n"
2805 "   /* Examine the error message and print it etc. */\n"
2806 "   char *msg = guestfs_last_error (g);\n"
2807 "   int errnum = guestfs_last_errno (g);\n"
2808 "   fprintf (stderr, \"%s\\n\", msg);\n"
2809 "   /* ... */\n"
2810 "  }\n"
2811 "\n"
2812 msgstr ""
2813 " if (guestfs_launch (g) == -1) {\n"
2814 "   /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
2815 "   char *msg = guestfs_last_error (g);\n"
2816 "   int errnum = guestfs_last_errno (g);\n"
2817 "   fprintf (stderr, \"%s\\n\", msg);\n"
2818 "   /* ... */\n"
2819 "  }\n"
2820 "\n"
2821
2822 #. type: textblock
2823 #: ../src/guestfs.pod:1361
2824 msgid ""
2825 "Out of memory errors are handled differently.  The default action is to call"
2826 " L<abort(3)>.  If this is undesirable, then you can set a handler using "
2827 "L</guestfs_set_out_of_memory_handler>."
2828 msgstr ""
2829
2830 #. type: textblock
2831 #: ../src/guestfs.pod:1365
2832 msgid ""
2833 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2834 "because there is no handle if this happens there is no way to get additional"
2835 " error information.  However L</guestfs_create> is supposed to be a "
2836 "lightweight operation which can only fail because of insufficient memory (it"
2837 " returns NULL in this case)."
2838 msgstr ""
2839
2840 #. type: =head2
2841 #: ../src/guestfs.pod:1371
2842 msgid "guestfs_last_error"
2843 msgstr "guestfs_last_error"
2844
2845 #. type: verbatim
2846 #: ../src/guestfs.pod:1373
2847 #, no-wrap
2848 msgid ""
2849 " const char *guestfs_last_error (guestfs_h *g);\n"
2850 "\n"
2851 msgstr ""
2852 " const char *guestfs_last_error (guestfs_h *g);\n"
2853 "\n"
2854
2855 #. type: textblock
2856 #: ../src/guestfs.pod:1375
2857 msgid ""
2858 "This returns the last error message that happened on C<g>.  If there has not"
2859 " been an error since the handle was created, then this returns C<NULL>."
2860 msgstr ""
2861
2862 #. type: textblock
2863 #: ../src/guestfs.pod:1379
2864 msgid ""
2865 "The lifetime of the returned string is until the next error occurs, or "
2866 "L</guestfs_close> is called."
2867 msgstr ""
2868
2869 #. type: =head2
2870 #: ../src/guestfs.pod:1382
2871 msgid "guestfs_last_errno"
2872 msgstr "guestfs_last_errno"
2873
2874 #. type: verbatim
2875 #: ../src/guestfs.pod:1384
2876 #, no-wrap
2877 msgid ""
2878 " int guestfs_last_errno (guestfs_h *g);\n"
2879 "\n"
2880 msgstr ""
2881 " int guestfs_last_errno (guestfs_h *g);\n"
2882 "\n"
2883
2884 #. type: textblock
2885 #: ../src/guestfs.pod:1386
2886 msgid "This returns the last error number (errno) that happened on C<g>."
2887 msgstr ""
2888
2889 #. type: textblock
2890 #: ../src/guestfs.pod:1388
2891 msgid "If successful, an errno integer not equal to zero is returned."
2892 msgstr ""
2893
2894 #. type: textblock
2895 #: ../src/guestfs.pod:1390
2896 msgid ""
2897 "If no error, this returns 0.  This call can return 0 in three situations:"
2898 msgstr ""
2899
2900 #. type: textblock
2901 #: ../src/guestfs.pod:1397
2902 msgid "There has not been any error on the handle."
2903 msgstr ""
2904
2905 #. type: textblock
2906 #: ../src/guestfs.pod:1401
2907 msgid ""
2908 "There has been an error but the errno was meaningless.  This corresponds to "
2909 "the case where the error did not come from a failed system call, but for "
2910 "some other reason."
2911 msgstr ""
2912
2913 #. type: textblock
2914 #: ../src/guestfs.pod:1407
2915 msgid ""
2916 "There was an error from a failed system call, but for some reason the errno "
2917 "was not captured and returned.  This usually indicates a bug in libguestfs."
2918 msgstr ""
2919
2920 #. type: textblock
2921 #: ../src/guestfs.pod:1413
2922 msgid ""
2923 "Libguestfs tries to convert the errno from inside the applicance into a "
2924 "corresponding errno for the caller (not entirely trivial: the appliance "
2925 "might be running a completely different operating system from the library "
2926 "and error numbers are not standardized across Un*xen).  If this could not be"
2927 " done, then the error is translated to C<EINVAL>.  In practice this should "
2928 "only happen in very rare circumstances."
2929 msgstr ""
2930
2931 #. type: =head2
2932 #: ../src/guestfs.pod:1421
2933 msgid "guestfs_set_error_handler"
2934 msgstr "guestfs_set_error_handler"
2935
2936 #. type: verbatim
2937 #: ../src/guestfs.pod:1423
2938 #, no-wrap
2939 msgid ""
2940 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2941 "                                           void *opaque,\n"
2942 "                                           const char *msg);\n"
2943 " void guestfs_set_error_handler (guestfs_h *g,\n"
2944 "                                 guestfs_error_handler_cb cb,\n"
2945 "                                 void *opaque);\n"
2946 "\n"
2947 msgstr ""
2948 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2949 "                                           void *opaque,\n"
2950 "                                           const char *msg);\n"
2951 " void guestfs_set_error_handler (guestfs_h *g,\n"
2952 "                                 guestfs_error_handler_cb cb,\n"
2953 "                                 void *opaque);\n"
2954 "\n"
2955
2956 #. type: textblock
2957 #: ../src/guestfs.pod:1430
2958 msgid ""
2959 "The callback C<cb> will be called if there is an error.  The parameters "
2960 "passed to the callback are an opaque data pointer and the error message "
2961 "string."
2962 msgstr ""
2963
2964 #. type: textblock
2965 #: ../src/guestfs.pod:1434
2966 msgid ""
2967 "C<errno> is not passed to the callback.  To get that the callback must call "
2968 "L</guestfs_last_errno>."
2969 msgstr ""
2970
2971 #. type: textblock
2972 #: ../src/guestfs.pod:1437
2973 msgid ""
2974 "Note that the message string C<msg> is freed as soon as the callback "
2975 "function returns, so if you want to stash it somewhere you must make your "
2976 "own copy."
2977 msgstr ""
2978
2979 #. type: textblock
2980 #: ../src/guestfs.pod:1441
2981 msgid "The default handler prints messages on C<stderr>."
2982 msgstr ""
2983
2984 #. type: textblock
2985 #: ../src/guestfs.pod:1443
2986 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2987 msgstr ""
2988
2989 #. type: =head2
2990 #: ../src/guestfs.pod:1445
2991 msgid "guestfs_get_error_handler"
2992 msgstr "guestfs_get_error_handler"
2993
2994 #. type: verbatim
2995 #: ../src/guestfs.pod:1447
2996 #, no-wrap
2997 msgid ""
2998 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2999 "                                                     void **opaque_rtn);\n"
3000 "\n"
3001 msgstr ""
3002 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
3003 "                                                     void **opaque_rtn);\n"
3004 "\n"
3005
3006 #. type: textblock
3007 #: ../src/guestfs.pod:1450
3008 msgid "Returns the current error handler callback."
3009 msgstr ""
3010
3011 #. type: =head2
3012 #: ../src/guestfs.pod:1452
3013 msgid "guestfs_set_out_of_memory_handler"
3014 msgstr "guestfs_set_out_of_memory_handler"
3015
3016 #. type: verbatim
3017 #: ../src/guestfs.pod:1454
3018 #, no-wrap
3019 msgid ""
3020 " typedef void (*guestfs_abort_cb) (void);\n"
3021 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
3022 "                                        guestfs_abort_cb);\n"
3023 "\n"
3024 msgstr ""
3025 " typedef void (*guestfs_abort_cb) (void);\n"
3026 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
3027 "                                        guestfs_abort_cb);\n"
3028 "\n"
3029
3030 #. type: textblock
3031 #: ../src/guestfs.pod:1458
3032 msgid ""
3033 "The callback C<cb> will be called if there is an out of memory situation.  "
3034 "I<Note this callback must not return>."
3035 msgstr ""
3036
3037 #. type: textblock
3038 #: ../src/guestfs.pod:1461
3039 msgid "The default is to call L<abort(3)>."
3040 msgstr ""
3041
3042 #. type: textblock
3043 #: ../src/guestfs.pod:1463
3044 msgid ""
3045 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
3046 msgstr ""
3047
3048 #. type: =head2
3049 #: ../src/guestfs.pod:1466
3050 msgid "guestfs_get_out_of_memory_handler"
3051 msgstr "guestfs_get_out_of_memory_handler"
3052
3053 #. type: verbatim
3054 #: ../src/guestfs.pod:1468
3055 #, no-wrap
3056 msgid ""
3057 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
3058 "\n"
3059 msgstr ""
3060 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
3061 "\n"
3062
3063 #. type: textblock
3064 #: ../src/guestfs.pod:1470
3065 msgid "This returns the current out of memory handler."
3066 msgstr ""
3067
3068 #. type: =head1
3069 #: ../src/guestfs.pod:1472
3070 msgid "API CALLS"
3071 msgstr "ВИКЛИКИ API"
3072
3073 #. type: textblock
3074 #: ../src/guestfs.pod:1474 ../fish/guestfish.pod:1068
3075 msgid "@ACTIONS@"
3076 msgstr "@ACTIONS@"
3077
3078 #. type: =head1
3079 #: ../src/guestfs.pod:1476
3080 msgid "STRUCTURES"
3081 msgstr "СТРУКТУРИ"
3082
3083 #. type: textblock
3084 #: ../src/guestfs.pod:1478
3085 msgid "@STRUCTS@"
3086 msgstr "@STRUCTS@"
3087
3088 #. type: =head1
3089 #: ../src/guestfs.pod:1480
3090 msgid "AVAILABILITY"
3091 msgstr "ДОСТУПНІСТЬ"
3092
3093 #. type: =head2
3094 #: ../src/guestfs.pod:1482
3095 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
3096 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
3097
3098 #. type: textblock
3099 #: ../src/guestfs.pod:1484
3100 msgid ""
3101 "Using L</guestfs_available> you can test availability of the following "
3102 "groups of functions.  This test queries the appliance to see if the "
3103 "appliance you are currently using supports the functionality."
3104 msgstr ""
3105
3106 #. type: textblock
3107 #: ../src/guestfs.pod:1489
3108 msgid "@AVAILABILITY@"
3109 msgstr "@AVAILABILITY@"
3110
3111 #. type: =head2
3112 #: ../src/guestfs.pod:1491
3113 msgid "GUESTFISH supported COMMAND"
3114 msgstr ""
3115
3116 #. type: textblock
3117 #: ../src/guestfs.pod:1493
3118 msgid ""
3119 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
3120 "prints out the available groups and whether they are supported by this build"
3121 " of libguestfs.  Note however that you have to do C<run> first."
3122 msgstr ""
3123
3124 #. type: =head2
3125 #: ../src/guestfs.pod:1498
3126 msgid "SINGLE CALLS AT COMPILE TIME"
3127 msgstr ""
3128
3129 #. type: textblock
3130 #: ../src/guestfs.pod:1500
3131 msgid ""
3132 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
3133 "function, such as:"
3134 msgstr ""
3135
3136 #. type: verbatim
3137 #: ../src/guestfs.pod:1503
3138 #, no-wrap
3139 msgid ""
3140 " #define LIBGUESTFS_HAVE_DD 1\n"
3141 "\n"
3142 msgstr ""
3143 " #define LIBGUESTFS_HAVE_DD 1\n"
3144 "\n"
3145
3146 #. type: textblock
3147 #: ../src/guestfs.pod:1505
3148 msgid "if L</guestfs_dd> is available."
3149 msgstr ""
3150
3151 #. type: textblock
3152 #: ../src/guestfs.pod:1507
3153 msgid ""
3154 "Before version 1.5.8, if you needed to test whether a single libguestfs "
3155 "function is available at compile time, we recommended using build tools such"
3156 " as autoconf or cmake.  For example in autotools you could use:"
3157 msgstr ""
3158
3159 #. type: verbatim
3160 #: ../src/guestfs.pod:1512
3161 #, no-wrap
3162 msgid ""
3163 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
3164 " AC_CHECK_FUNCS([guestfs_dd])\n"
3165 "\n"
3166 msgstr ""
3167 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
3168 " AC_CHECK_FUNCS([guestfs_dd])\n"
3169 "\n"
3170
3171 #. type: textblock
3172 #: ../src/guestfs.pod:1515
3173 msgid ""
3174 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined"
3175 " in your program."
3176 msgstr ""
3177
3178 #. type: =head2
3179 #: ../src/guestfs.pod:1518
3180 msgid "SINGLE CALLS AT RUN TIME"
3181 msgstr ""
3182
3183 #. type: textblock
3184 #: ../src/guestfs.pod:1520
3185 msgid ""
3186 "Testing at compile time doesn't guarantee that a function really exists in "
3187 "the library.  The reason is that you might be dynamically linked against a "
3188 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
3189 "This situation unfortunately results in a segmentation fault, which is a "
3190 "shortcoming of the C dynamic linking system itself."
3191 msgstr ""
3192
3193 #. type: textblock
3194 #: ../src/guestfs.pod:1527
3195 msgid ""
3196 "You can use L<dlopen(3)> to test if a function is available at run time, as "
3197 "in this example program (note that you still need the compile time check as "
3198 "well):"
3199 msgstr ""
3200
3201 #. type: verbatim
3202 #: ../src/guestfs.pod:1531
3203 #, no-wrap
3204 msgid ""
3205 " #include <stdio.h>\n"
3206 " #include <stdlib.h>\n"
3207 " #include <unistd.h>\n"
3208 " #include <dlfcn.h>\n"
3209 " #include <guestfs.h>\n"
3210 " \n"
3211 msgstr ""
3212 " #include <stdio.h>\n"
3213 " #include <stdlib.h>\n"
3214 " #include <unistd.h>\n"
3215 " #include <dlfcn.h>\n"
3216 " #include <guestfs.h>\n"
3217 " \n"
3218
3219 #. type: verbatim
3220 #: ../src/guestfs.pod:1537
3221 #, no-wrap
3222 msgid ""
3223 " main ()\n"
3224 " {\n"
3225 " #ifdef LIBGUESTFS_HAVE_DD\n"
3226 "   void *dl;\n"
3227 "   int has_function;\n"
3228 " \n"
3229 msgstr ""
3230 " main ()\n"
3231 " {\n"
3232 " #ifdef LIBGUESTFS_HAVE_DD\n"
3233 "   void *dl;\n"
3234 "   int has_function;\n"
3235 " \n"
3236
3237 #. type: verbatim
3238 #: ../src/guestfs.pod:1543
3239 #, no-wrap
3240 msgid ""
3241 "   /* Test if the function guestfs_dd is really available. */\n"
3242 "   dl = dlopen (NULL, RTLD_LAZY);\n"
3243 "   if (!dl) {\n"
3244 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
3245 "     exit (EXIT_FAILURE);\n"
3246 "   }\n"
3247 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
3248 "   dlclose (dl);\n"
3249 " \n"
3250 msgstr ""
3251
3252 #. type: verbatim
3253 #: ../src/guestfs.pod:1552
3254 #, no-wrap
3255 msgid ""
3256 "   if (!has_function)\n"
3257 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
3258 "   else {\n"
3259 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
3260 "     /* Now it's safe to call\n"
3261 "     guestfs_dd (g, \"foo\", \"bar\");\n"
3262 "     */\n"
3263 "   }\n"
3264 " #else\n"
3265 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
3266 " #endif\n"
3267 "  }\n"
3268 "\n"
3269 msgstr ""
3270
3271 #. type: textblock
3272 #: ../src/guestfs.pod:1565
3273 msgid ""
3274 "You may think the above is an awful lot of hassle, and it is.  There are "
3275 "other ways outside of the C linking system to ensure that this kind of "
3276 "incompatibility never arises, such as using package versioning:"
3277 msgstr ""
3278
3279 #. type: verbatim
3280 #: ../src/guestfs.pod:1570
3281 #, no-wrap
3282 msgid ""
3283 " Requires: libguestfs >= 1.0.80\n"
3284 "\n"
3285 msgstr ""
3286
3287 #. type: =head1
3288 #: ../src/guestfs.pod:1572
3289 msgid "CALLS WITH OPTIONAL ARGUMENTS"
3290 msgstr ""
3291
3292 #. type: textblock
3293 #: ../src/guestfs.pod:1574
3294 msgid ""
3295 "A recent feature of the API is the introduction of calls which take optional"
3296 " arguments.  In C these are declared 3 ways.  The main way is as a call "
3297 "which takes variable arguments (ie. C<...>), as in this example:"
3298 msgstr ""
3299
3300 #. type: verbatim
3301 #: ../src/guestfs.pod:1579
3302 #, no-wrap
3303 msgid ""
3304 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
3305 "\n"
3306 msgstr ""
3307 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
3308 "\n"
3309
3310 #. type: textblock
3311 #: ../src/guestfs.pod:1581
3312 msgid ""
3313 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
3314 "call with no optional arguments specified:"
3315 msgstr ""
3316
3317 #. type: verbatim
3318 #: ../src/guestfs.pod:1584
3319 #, no-wrap
3320 msgid ""
3321 " guestfs_add_drive_opts (g, filename, -1);\n"
3322 "\n"
3323 msgstr ""
3324 " guestfs_add_drive_opts (g, filename, -1);\n"
3325 "\n"
3326
3327 #. type: textblock
3328 #: ../src/guestfs.pod:1586
3329 msgid "With a single optional argument:"
3330 msgstr ""
3331
3332 #. type: verbatim
3333 #: ../src/guestfs.pod:1588
3334 #, no-wrap
3335 msgid ""
3336 " guestfs_add_drive_opts (g, filename,\n"
3337 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3338 "                         -1);\n"
3339 "\n"
3340 msgstr ""
3341 " guestfs_add_drive_opts (g, filename,\n"
3342 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3343 "                         -1);\n"
3344 "\n"
3345
3346 #. type: textblock
3347 #: ../src/guestfs.pod:1592
3348 msgid "With two:"
3349 msgstr ""
3350
3351 #. type: verbatim
3352 #: ../src/guestfs.pod:1594
3353 #, no-wrap
3354 msgid ""
3355 " guestfs_add_drive_opts (g, filename,\n"
3356 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3357 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
3358 "                         -1);\n"
3359 "\n"
3360 msgstr ""
3361 " guestfs_add_drive_opts (g, filename,\n"
3362 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3363 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
3364 "                         -1);\n"
3365 "\n"
3366
3367 #. type: textblock
3368 #: ../src/guestfs.pod:1599
3369 msgid ""
3370 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
3371 "happen!"
3372 msgstr ""
3373
3374 #. type: =head2
3375 #: ../src/guestfs.pod:1602
3376 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
3377 msgstr ""
3378
3379 #. type: textblock
3380 #: ../src/guestfs.pod:1604
3381 msgid ""
3382 "The second variant has the same name with the suffix C<_va>, which works the"
3383 " same way but takes a C<va_list>.  See the C manual for details.  For the "
3384 "example function, this is declared:"
3385 msgstr ""
3386
3387 #. type: verbatim
3388 #: ../src/guestfs.pod:1608
3389 #, no-wrap
3390 msgid ""
3391 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3392 "                                va_list args);\n"
3393 "\n"
3394 msgstr ""
3395 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3396 "                                va_list args);\n"
3397 "\n"
3398
3399 #. type: =head2
3400 #: ../src/guestfs.pod:1611
3401 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
3402 msgstr ""
3403
3404 #. type: textblock
3405 #: ../src/guestfs.pod:1613
3406 msgid ""
3407 "The third variant is useful where you need to construct these calls.  You "
3408 "pass in a structure where you fill in the optional fields.  The structure "
3409 "has a bitmask as the first element which you must set to indicate which "
3410 "fields you have filled in.  For our example function the structure and call "
3411 "are declared:"
3412 msgstr ""
3413
3414 #. type: verbatim
3415 #: ../src/guestfs.pod:1619
3416 #, no-wrap
3417 msgid ""
3418 " struct guestfs_add_drive_opts_argv {\n"
3419 "   uint64_t bitmask;\n"
3420 "   int readonly;\n"
3421 "   const char *format;\n"
3422 "   /* ... */\n"
3423 " };\n"
3424 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3425 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3426 "\n"
3427 msgstr ""
3428 " struct guestfs_add_drive_opts_argv {\n"
3429 "   uint64_t bitmask;\n"
3430 "   int readonly;\n"
3431 "   const char *format;\n"
3432 "   /* ... */\n"
3433 " };\n"
3434 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3435 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3436 "\n"
3437
3438 #. type: textblock
3439 #: ../src/guestfs.pod:1628
3440 msgid "You could call it like this:"
3441 msgstr ""
3442
3443 #. type: verbatim
3444 #: ../src/guestfs.pod:1630
3445 #, no-wrap
3446 msgid ""
3447 " struct guestfs_add_drive_opts_argv optargs = {\n"
3448 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3449 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3450 "   .readonly = 1,\n"
3451 "   .format = \"qcow2\"\n"
3452 " };\n"
3453 " \n"
3454 msgstr ""
3455 " struct guestfs_add_drive_opts_argv optargs = {\n"
3456 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3457 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3458 "   .readonly = 1,\n"
3459 "   .format = \"qcow2\"\n"
3460 " };\n"
3461 " \n"
3462
3463 #. type: verbatim
3464 #: ../src/guestfs.pod:1637
3465 #, no-wrap
3466 msgid ""
3467 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3468 "\n"
3469 msgstr ""
3470 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3471 "\n"
3472
3473 #. type: textblock
3474 #: ../src/guestfs.pod:1639 ../src/guestfs-actions.pod:11
3475 #: ../src/guestfs-actions.pod:1917 ../src/guestfs-actions.pod:2853
3476 #: ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1287
3477 #: ../fish/guestfish-actions.pod:1929 ../tools/virt-win-reg.pl:704
3478 msgid "Notes:"
3479 msgstr "Нотатки:"
3480
3481 #. type: textblock
3482 #: ../src/guestfs.pod:1645
3483 msgid ""
3484 "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3485 msgstr ""
3486
3487 #. type: textblock
3488 #: ../src/guestfs.pod:1650
3489 msgid "You do not need to fill in all fields of the structure."
3490 msgstr ""
3491
3492 #. type: textblock
3493 #: ../src/guestfs.pod:1654
3494 msgid ""
3495 "There must be a one-to-one correspondence between fields of the structure "
3496 "that are filled in, and bits set in the bitmask."
3497 msgstr ""
3498
3499 #. type: =head2
3500 #: ../src/guestfs.pod:1659
3501 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3502 msgstr ""
3503
3504 #. type: textblock
3505 #: ../src/guestfs.pod:1661
3506 msgid ""
3507 "In other languages, optional arguments are expressed in the way that is "
3508 "natural for that language.  We refer you to the language-specific "
3509 "documentation for more details on that."
3510 msgstr ""
3511
3512 #. type: textblock
3513 #: ../src/guestfs.pod:1665
3514 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3515 msgstr ""
3516
3517 #. type: =head2
3518 #: ../src/guestfs.pod:1667
3519 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3520 msgstr ""
3521
3522 #. type: textblock
3523 #: ../src/guestfs.pod:1669
3524 msgid ""
3525 "B<Note:> This section documents the generic event mechanism introduced in "
3526 "libguestfs 1.10, which you should use in new code if possible.  The old "
3527 "functions C<guestfs_set_log_message_callback>, "
3528 "C<guestfs_set_subprocess_quit_callback>, "
3529 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
3530 "C<guestfs_set_progress_callback> are no longer documented in this manual "
3531 "page.  Because of the ABI guarantee, the old functions continue to work."
3532 msgstr ""
3533
3534 #. type: textblock
3535 #: ../src/guestfs.pod:1678
3536 msgid ""
3537 "Handles generate events when certain things happen, such as log messages "
3538 "being generated, progress messages during long-running operations, or the "
3539 "handle being closed.  The API calls described below let you register a "
3540 "callback to be called when events happen.  You can register multiple "
3541 "callbacks (for the same, different or overlapping sets of events), and "
3542 "individually remove callbacks.  If callbacks are not removed, then they "
3543 "remain in force until the handle is closed."
3544 msgstr ""
3545
3546 #. type: textblock
3547 #: ../src/guestfs.pod:1686
3548 msgid ""
3549 "In the current implementation, events are only generated synchronously: that"
3550 " means that events (and hence callbacks) can only happen while you are in "
3551 "the middle of making another libguestfs call.  The callback is called in the"
3552 " same thread."
3553 msgstr ""
3554
3555 #. type: textblock
3556 #: ../src/guestfs.pod:1691
3557 msgid ""
3558 "Events may contain a payload, usually nothing (void), an array of 64 bit "
3559 "unsigned integers, or a message buffer.  Payloads are discussed later on."
3560 msgstr ""
3561
3562 #. type: =head3
3563 #: ../src/guestfs.pod:1695
3564 msgid "CLASSES OF EVENTS"
3565 msgstr ""
3566
3567 #. type: =item
3568 #: ../src/guestfs.pod:1699
3569 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
3570 msgstr ""
3571
3572 #. type: textblock
3573 #: ../src/guestfs.pod:1702
3574 msgid ""
3575 "The callback function will be called while the handle is being closed "
3576 "(synchronously from L</guestfs_close>)."
3577 msgstr ""
3578
3579 #. type: textblock
3580 #: ../src/guestfs.pod:1705
3581 msgid ""
3582 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3583 "handles that are open when the program exits.  This means that this callback"
3584 " might be called indirectly from L<exit(3)>, which can cause unexpected "
3585 "problems in higher-level languages (eg. if your HLL interpreter has already "
3586 "been cleaned up by the time this is called, and if your callback then jumps "
3587 "into some HLL function)."
3588 msgstr ""
3589
3590 #. type: textblock
3591 #: ../src/guestfs.pod:1712
3592 msgid ""
3593 "If no callback is registered: the handle is closed without any callback "
3594 "being invoked."
3595 msgstr ""
3596
3597 #. type: =item
3598 #: ../src/guestfs.pod:1715
3599 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
3600 msgstr ""
3601
3602 #. type: textblock
3603 #: ../src/guestfs.pod:1718
3604 msgid ""
3605 "The callback function will be called when the child process quits, either "
3606 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3607 "corresponds to a transition from any state to the CONFIG state)."
3608 msgstr ""
3609
3610 #. type: textblock
3611 #: ../src/guestfs.pod:1722 ../src/guestfs.pod:1731
3612 msgid "If no callback is registered: the event is ignored."
3613 msgstr ""
3614
3615 #. type: =item
3616 #: ../src/guestfs.pod:1724
3617 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
3618 msgstr ""
3619
3620 #. type: textblock
3621 #: ../src/guestfs.pod:1727
3622 msgid ""
3623 "The callback function will be called when the child process becomes ready "
3624 "first time after it has been launched.  (This corresponds to a transition "
3625 "from LAUNCHING to the READY state)."
3626 msgstr ""
3627
3628 #. type: =item
3629 #: ../src/guestfs.pod:1733
3630 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
3631 msgstr ""
3632
3633 #. type: textblock
3634 #: ../src/guestfs.pod:1736
3635 msgid ""
3636 "Some long-running operations can generate progress messages.  If this "
3637 "callback is registered, then it will be called each time a progress message "
3638 "is generated (usually two seconds after the operation started, and three "
3639 "times per second thereafter until it completes, although the frequency may "
3640 "change in future versions)."
3641 msgstr ""
3642
3643 #. type: textblock
3644 #: ../src/guestfs.pod:1742
3645 msgid ""
3646 "The callback receives in the payload four unsigned 64 bit numbers which are "
3647 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
3648 msgstr ""
3649
3650 #. type: textblock
3651 #: ../src/guestfs.pod:1745
3652 msgid ""
3653 "The units of C<total> are not defined, although for some operations C<total>"
3654 " may relate in some way to the amount of data to be transferred (eg. in "
3655 "bytes or megabytes), and C<position> may be the portion which has been "
3656 "transferred."
3657 msgstr ""
3658
3659 #. type: textblock
3660 #: ../src/guestfs.pod:1750
3661 msgid "The only defined and stable parts of the API are:"
3662 msgstr ""
3663
3664 #. type: textblock
3665 #: ../src/guestfs.pod:1756
3666 msgid ""
3667 "The callback can display to the user some type of progress bar or indicator "
3668 "which shows the ratio of C<position>:C<total>."
3669 msgstr ""
3670
3671 #. type: textblock
3672 #: ../src/guestfs.pod:1761
3673 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3674 msgstr ""
3675
3676 #. type: textblock
3677 #: ../src/guestfs.pod:1765
3678 msgid ""
3679 "If any progress notification is sent during a call, then a final progress "
3680 "notification is always sent when C<position> = C<total> (I<unless> the call "
3681 "fails with an error)."
3682 msgstr ""
3683
3684 #. type: textblock
3685 #: ../src/guestfs.pod:1769
3686 msgid ""
3687 "This is to simplify caller code, so callers can easily set the progress "
3688 "indicator to \"100%\" at the end of the operation, without requiring special"
3689 " code to detect this case."
3690 msgstr ""
3691
3692 #. type: textblock
3693 #: ../src/guestfs.pod:1775
3694 msgid ""
3695 "For some calls we are unable to estimate the progress of the call, but we "
3696 "can still generate progress messages to indicate activity.  This is known as"
3697 " \"pulse mode\", and is directly supported by certain progress bar "
3698 "implementations (eg. GtkProgressBar)."
3699 msgstr ""
3700
3701 #. type: textblock
3702 #: ../src/guestfs.pod:1780
3703 msgid ""
3704 "For these calls, zero or more progress messages are generated with "
3705 "C<position = 0> and C<total = 1>, followed by a final message with "
3706 "C<position = total = 1>."
3707 msgstr ""
3708
3709 #. type: textblock
3710 #: ../src/guestfs.pod:1784
3711 msgid ""
3712 "As noted above, if the call fails with an error then the final message may "
3713 "not be generated."
3714 msgstr ""
3715
3716 #. type: textblock
3717 #: ../src/guestfs.pod:1789
3718 msgid ""
3719 "The callback also receives the procedure number (C<proc_nr>) and serial "
3720 "number (C<serial>) of the call.  These are only useful for debugging "
3721 "protocol issues, and the callback can normally ignore them.  The callback "
3722 "may want to print these numbers in error messages or debugging messages."
3723 msgstr ""
3724
3725 #. type: textblock
3726 #: ../src/guestfs.pod:1795
3727 msgid "If no callback is registered: progress messages are discarded."
3728 msgstr ""
3729
3730 #. type: =item
3731 #: ../src/guestfs.pod:1797
3732 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
3733 msgstr ""
3734
3735 #. type: textblock
3736 #: ../src/guestfs.pod:1800
3737 msgid ""
3738 "The callback function is called whenever a log message is generated by qemu,"
3739 " the appliance kernel, guestfsd (daemon), or utility programs."
3740 msgstr ""
3741
3742 #. type: textblock
3743 #: ../src/guestfs.pod:1803
3744 msgid ""
3745 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
3746 "(L</guestfs_launch>) then additional debug messages are generated."
3747 msgstr ""
3748
3749 #. type: textblock
3750 #: ../src/guestfs.pod:1806 ../src/guestfs.pod:1820
3751 msgid ""
3752 "If no callback is registered: the messages are discarded unless the verbose "
3753 "flag is set in which case they are sent to stderr.  You can override the "
3754 "printing of verbose messages to stderr by setting up a callback."
3755 msgstr ""
3756
3757 #. type: =item
3758 #: ../src/guestfs.pod:1811
3759 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
3760 msgstr ""
3761
3762 #. type: textblock
3763 #: ../src/guestfs.pod:1814
3764 msgid ""
3765 "The callback function is called whenever a log message is generated by the "
3766 "library part of libguestfs."
3767 msgstr ""
3768
3769 #. type: textblock
3770 #: ../src/guestfs.pod:1817
3771 msgid ""
3772 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
3773 "messages are generated."
3774 msgstr ""
3775
3776 #. type: =item
3777 #: ../src/guestfs.pod:1825
3778 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
3779 msgstr ""
3780
3781 #. type: textblock
3782 #: ../src/guestfs.pod:1828
3783 msgid ""
3784 "The callback function is called whenever a trace message is generated.  This"
3785 " only applies if the trace flag (L</guestfs_set_trace>) is set."
3786 msgstr ""
3787
3788 #. type: textblock
3789 #: ../src/guestfs.pod:1831
3790 msgid ""
3791 "If no callback is registered: the messages are sent to stderr.  You can "
3792 "override the printing of trace messages to stderr by setting up a callback."
3793 msgstr ""
3794
3795 #. type: =head3
3796 #: ../src/guestfs.pod:1837
3797 msgid "guestfs_set_event_callback"
3798 msgstr ""
3799
3800 #. type: verbatim
3801 #: ../src/guestfs.pod:1839
3802 #, no-wrap
3803 msgid ""
3804 " int guestfs_set_event_callback (guestfs_h *g,\n"
3805 "                                 guestfs_event_callback cb,\n"
3806 "                                 uint64_t event_bitmask,\n"
3807 "                                 int flags,\n"
3808 "                                 void *opaque);\n"
3809 "\n"
3810 msgstr ""
3811
3812 #. type: textblock
3813 #: ../src/guestfs.pod:1845
3814 msgid ""
3815 "This function registers a callback (C<cb>) for all event classes in the "
3816 "C<event_bitmask>."
3817 msgstr ""
3818
3819 #. type: textblock
3820 #: ../src/guestfs.pod:1848
3821 msgid ""
3822 "For example, to register for all log message events, you could call this "
3823 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>."
3824 "  To register a single callback for all possible classes of events, use "
3825 "C<GUESTFS_EVENT_ALL>."
3826 msgstr ""
3827
3828 #. type: textblock
3829 #: ../src/guestfs.pod:1854
3830 msgid "C<flags> should always be passed as 0."
3831 msgstr ""
3832
3833 #. type: textblock
3834 #: ../src/guestfs.pod:1856
3835 msgid ""
3836 "C<opaque> is an opaque pointer which is passed to the callback.  You can use"
3837 " it for any purpose."
3838 msgstr ""
3839
3840 #. type: textblock
3841 #: ../src/guestfs.pod:1859
3842 msgid ""
3843 "The return value is the event handle (an integer) which you can use to "
3844 "delete the callback (see below)."
3845 msgstr ""
3846
3847 #. type: textblock
3848 #: ../src/guestfs.pod:1862
3849 msgid ""
3850 "If there is an error, this function returns C<-1>, and sets the error in the"
3851 " handle in the usual way (see L</guestfs_last_error> etc.)"
3852 msgstr ""
3853
3854 #. type: textblock
3855 #: ../src/guestfs.pod:1865
3856 msgid ""
3857 "Callbacks remain in effect until they are deleted, or until the handle is "
3858 "closed."
3859 msgstr ""
3860
3861 #. type: textblock
3862 #: ../src/guestfs.pod:1868
3863 msgid ""
3864 "In the case where multiple callbacks are registered for a particular event "
3865 "class, all of the callbacks are called.  The order in which multiple "
3866 "callbacks are called is not defined."
3867 msgstr ""
3868
3869 #. type: =head3
3870 #: ../src/guestfs.pod:1872
3871 msgid "guestfs_delete_event_callback"
3872 msgstr ""
3873
3874 #. type: verbatim
3875 #: ../src/guestfs.pod:1874
3876 #, no-wrap
3877 msgid ""
3878 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
3879 "\n"
3880 msgstr ""
3881
3882 #. type: textblock
3883 #: ../src/guestfs.pod:1876
3884 msgid ""
3885 "Delete a callback that was previously registered.  C<event_handle> should be"
3886 " the integer that was returned by a previous call to "
3887 "C<guestfs_set_event_callback> on the same handle."
3888 msgstr ""
3889
3890 #. type: =head3
3891 #: ../src/guestfs.pod:1880
3892 msgid "guestfs_event_callback"
3893 msgstr ""
3894
3895 #. type: verbatim
3896 #: ../src/guestfs.pod:1882
3897 #, no-wrap
3898 msgid ""
3899 " typedef void (*guestfs_event_callback) (\n"
3900 "                  guestfs_h *g,\n"
3901 "                  void *opaque,\n"
3902 "                  uint64_t event,\n"
3903 "                  int event_handle,\n"
3904 "                  int flags,\n"
3905 "                  const char *buf, size_t buf_len,\n"
3906 "                  const uint64_t *array, size_t array_len);\n"
3907 "\n"
3908 msgstr ""
3909
3910 #. type: textblock
3911 #: ../src/guestfs.pod:1891
3912 msgid ""
3913 "This is the type of the event callback function that you have to provide."
3914 msgstr ""
3915
3916 #. type: textblock
3917 #: ../src/guestfs.pod:1894
3918 msgid ""
3919 "The basic parameters are: the handle (C<g>), the opaque user pointer "
3920 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
3921 "handle, and C<flags> which in the current API you should ignore."
3922 msgstr ""
3923
3924 #. type: textblock
3925 #: ../src/guestfs.pod:1898
3926 msgid ""
3927 "The remaining parameters contain the event payload (if any).  Each event may"
3928 " contain a payload, which usually relates to the event class, but for future"
3929 " proofing your code should be written to handle any payload for any event "
3930 "class."
3931 msgstr ""
3932
3933 #. type: textblock
3934 #: ../src/guestfs.pod:1903
3935 msgid ""
3936 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
3937 "there is no message buffer).  Note that this message buffer can contain "
3938 "arbitrary 8 bit data, including NUL bytes."
3939 msgstr ""
3940
3941 #. type: textblock
3942 #: ../src/guestfs.pod:1907
3943 msgid ""
3944 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
3945 "moment this is only used for progress messages."
3946 msgstr ""
3947
3948 #. type: =head3
3949 #: ../src/guestfs.pod:1910
3950 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
3951 msgstr ""
3952
3953 #. type: textblock
3954 #: ../src/guestfs.pod:1912
3955 msgid ""
3956 "One motivation for the generic event API was to allow GUI programs to "
3957 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
3958 "unconditionally to C<stderr>."
3959 msgstr ""
3960
3961 #. type: textblock
3962 #: ../src/guestfs.pod:1916
3963 msgid ""
3964 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
3965 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
3966 "messages are not events; you must capture error messages separately)."
3967 msgstr ""
3968
3969 #. type: textblock
3970 #: ../src/guestfs.pod:1921
3971 msgid ""
3972 "Programs have to set up a callback to capture the classes of events of "
3973 "interest:"
3974 msgstr ""
3975
3976 #. type: verbatim
3977 #: ../src/guestfs.pod:1924
3978 #, no-wrap
3979 msgid ""
3980 " int eh =\n"
3981 "   guestfs_set_event_callback\n"
3982 "     (g, message_callback,\n"
3983 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
3984 "      GUESTFS_EVENT_TRACE,\n"
3985 "      0, NULL) == -1)\n"
3986 " if (eh == -1) {\n"
3987 "   // handle error in the usual way\n"
3988 " }\n"
3989 "\n"
3990 msgstr ""
3991
3992 #. type: textblock
3993 #: ../src/guestfs.pod:1934
3994 msgid ""
3995 "The callback can then direct messages to the appropriate place.  In this "
3996 "example, messages are directed to syslog:"
3997 msgstr ""
3998
3999 #. type: verbatim
4000 #: ../src/guestfs.pod:1937
4001 #, no-wrap
4002 msgid ""
4003 " static void\n"
4004 " message_callback (\n"
4005 "         guestfs_h *g,\n"
4006 "         void *opaque,\n"
4007 "         uint64_t event,\n"
4008 "         int event_handle,\n"
4009 "         int flags,\n"
4010 "         const char *buf, size_t buf_len,\n"
4011 "         const uint64_t *array, size_t array_len)\n"
4012 " {\n"
4013 "   const int priority = LOG_USER|LOG_INFO;\n"
4014 "   if (buf_len > 0)\n"
4015 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
4016 " }\n"
4017 "\n"
4018 msgstr ""
4019
4020 #. type: =head1
4021 #: ../src/guestfs.pod:1952
4022 msgid "CANCELLING LONG TRANSFERS"
4023 msgstr ""
4024
4025 #. type: textblock
4026 #: ../src/guestfs.pod:1954
4027 msgid ""
4028 "Some operations can be cancelled by the caller while they are in progress.  "
4029 "Currently only operations that involve uploading or downloading data can be "
4030 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
4031 "parameters in the generator)."
4032 msgstr ""
4033
4034 #. type: =head2
4035 #: ../src/guestfs.pod:1959
4036 msgid "guestfs_user_cancel"
4037 msgstr ""
4038
4039 #. type: verbatim
4040 #: ../src/guestfs.pod:1961
4041 #, no-wrap
4042 msgid ""
4043 " void guestfs_user_cancel (guestfs_h *g);\n"
4044 "\n"
4045 msgstr ""
4046
4047 #. type: textblock
4048 #: ../src/guestfs.pod:1963
4049 msgid ""
4050 "C<guestfs_user_cancel> cancels the current upload or download operation."
4051 msgstr ""
4052
4053 #. type: textblock
4054 #: ../src/guestfs.pod:1966
4055 msgid ""
4056 "Unlike most other libguestfs calls, this function is signal safe and thread "
4057 "safe.  You can call it from a signal handler or from another thread, without"
4058 " needing to do any locking."
4059 msgstr ""
4060
4061 #. type: textblock
4062 #: ../src/guestfs.pod:1970
4063 msgid ""
4064 "The transfer that was in progress (if there is one) will stop shortly "
4065 "afterwards, and will return an error.  The errno (see "
4066 "L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find"
4067 " out if the operation was cancelled or failed because of another error."
4068 msgstr ""
4069
4070 #. type: textblock
4071 #: ../src/guestfs.pod:1976
4072 msgid ""
4073 "No cleanup is performed: for example, if a file was being uploaded then "
4074 "after cancellation there may be a partially uploaded file.  It is the "
4075 "caller's responsibility to clean up if necessary."
4076 msgstr ""
4077
4078 #. type: textblock
4079 #: ../src/guestfs.pod:1980
4080 msgid ""
4081 "There are two common places that you might call C<guestfs_user_cancel>."
4082 msgstr ""
4083
4084 #. type: textblock
4085 #: ../src/guestfs.pod:1982
4086 msgid ""
4087 "In an interactive text-based program, you might call it from a C<SIGINT> "
4088 "signal handler so that pressing C<^C> cancels the current operation.  (You "
4089 "also need to call L</guestfs_set_pgroup> so that child processes don't "
4090 "receive the C<^C> signal)."
4091 msgstr ""
4092
4093 #. type: textblock
4094 #: ../src/guestfs.pod:1987
4095 msgid ""
4096 "In a graphical program, when the main thread is displaying a progress bar "
4097 "with a cancel button, wire up the cancel button to call this function."
4098 msgstr ""
4099
4100 #. type: =head1
4101 #: ../src/guestfs.pod:1991
4102 msgid "PRIVATE DATA AREA"
4103 msgstr ""
4104
4105 #. type: textblock
4106 #: ../src/guestfs.pod:1993
4107 msgid ""
4108 "You can attach named pieces of private data to the libguestfs handle, fetch "
4109 "them by name, and walk over them, for the lifetime of the handle.  This is "
4110 "called the private data area and is only available from the C API."
4111 msgstr ""
4112
4113 #. type: textblock
4114 #: ../src/guestfs.pod:1998
4115 msgid "To attach a named piece of data, use the following call:"
4116 msgstr ""
4117
4118 #. type: verbatim
4119 #: ../src/guestfs.pod:2000
4120 #, no-wrap
4121 msgid ""
4122 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
4123 "\n"
4124 msgstr ""
4125 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
4126 "\n"
4127
4128 #. type: textblock
4129 #: ../src/guestfs.pod:2002
4130 msgid ""
4131 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
4132 "pointer (which can be C<NULL>).  Any previous item with the same key is "
4133 "overwritten."
4134 msgstr ""
4135
4136 #. type: textblock
4137 #: ../src/guestfs.pod:2006
4138 msgid ""
4139 "You can use any C<key> you want, but your key should I<not> start with an "
4140 "underscore character.  Keys beginning with an underscore character are "
4141 "reserved for internal libguestfs purposes (eg. for implementing language "
4142 "bindings).  It is recommended that you prefix the key with some unique "
4143 "string to avoid collisions with other users."
4144 msgstr ""
4145
4146 #. type: textblock
4147 #: ../src/guestfs.pod:2012
4148 msgid "To retrieve the pointer, use:"
4149 msgstr ""
4150
4151 #. type: verbatim
4152 #: ../src/guestfs.pod:2014
4153 #, no-wrap
4154 msgid ""
4155 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
4156 "\n"
4157 msgstr ""
4158 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
4159 "\n"
4160
4161 #. type: textblock
4162 #: ../src/guestfs.pod:2016
4163 msgid ""
4164 "This function returns C<NULL> if either no data is found associated with "
4165 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
4166 "C<NULL>."
4167 msgstr ""
4168
4169 #. type: textblock
4170 #: ../src/guestfs.pod:2020
4171 msgid ""
4172 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
4173 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
4174 "all.  In particular, libguestfs does I<not> try to free the data when the "
4175 "handle is closed.  If the data must be freed, then the caller must either "
4176 "free it before calling L</guestfs_close> or must set up a close callback to "
4177 "do it (see L</GUESTFS_EVENT_CLOSE>)."
4178 msgstr ""
4179
4180 #. type: textblock
4181 #: ../src/guestfs.pod:2027
4182 msgid "To walk over all entries, use these two functions:"
4183 msgstr ""
4184
4185 #. type: verbatim
4186 #: ../src/guestfs.pod:2029
4187 #, no-wrap
4188 msgid ""
4189 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
4190 "\n"
4191 msgstr ""
4192
4193 #. type: verbatim
4194 #: ../src/guestfs.pod:2031
4195 #, no-wrap
4196 msgid ""
4197 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
4198 "\n"
4199 msgstr ""
4200
4201 #. type: textblock
4202 #: ../src/guestfs.pod:2033
4203 msgid ""
4204 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does"
4205 " not have any particular meaning -- keys are not returned in any defined "
4206 "order).  A pointer to the key is returned in C<*key_rtn> and the "
4207 "corresponding data pointer is returned from the function.  C<NULL> is "
4208 "returned if there are no keys stored in the handle."
4209 msgstr ""
4210
4211 #. type: textblock
4212 #: ../src/guestfs.pod:2039
4213 msgid ""
4214 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
4215 "value of this function is also C<NULL> is there are no further entries to "
4216 "return."
4217 msgstr ""
4218
4219 #. type: textblock
4220 #: ../src/guestfs.pod:2043
4221 msgid "Notes about walking over entries:"
4222 msgstr ""
4223
4224 #. type: textblock
4225 #: ../src/guestfs.pod:2049
4226 msgid ""
4227 "You must not call C<guestfs_set_private> while walking over the entries."
4228 msgstr ""
4229
4230 #. type: textblock
4231 #: ../src/guestfs.pod:2054
4232 msgid ""
4233 "The handle maintains an internal iterator which is reset when you call "
4234 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
4235 "call C<guestfs_set_private>."
4236 msgstr ""
4237
4238 #. type: textblock
4239 #: ../src/guestfs.pod:2060
4240 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
4241 msgstr ""
4242
4243 #. type: verbatim
4244 #: ../src/guestfs.pod:2062
4245 #, no-wrap
4246 msgid ""
4247 " guestfs_set_private (g, key, NULL);\n"
4248 "\n"
4249 msgstr ""
4250
4251 #. type: textblock
4252 #: ../src/guestfs.pod:2064
4253 msgid "then that C<key> is not returned when walking."
4254 msgstr ""
4255
4256 #. type: textblock
4257 #: ../src/guestfs.pod:2068
4258 msgid ""
4259 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
4260 "C<guestfs_next_private> or C<guestfs_set_private>."
4261 msgstr ""
4262
4263 #. type: textblock
4264 #: ../src/guestfs.pod:2074
4265 msgid ""
4266 "The following example code shows how to print all keys and data pointers "
4267 "that are associated with the handle C<g>:"
4268 msgstr ""
4269
4270 #. type: verbatim
4271 #: ../src/guestfs.pod:2077
4272 #, no-wrap
4273 msgid ""
4274 " const char *key;\n"
4275 " void *data = guestfs_first_private (g, &key);\n"
4276 " while (data != NULL)\n"
4277 "   {\n"
4278 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
4279 "     data = guestfs_next_private (g, &key);\n"
4280 "   }\n"
4281 "\n"
4282 msgstr ""
4283
4284 #. type: textblock
4285 #: ../src/guestfs.pod:2085
4286 msgid ""
4287 "More commonly you are only interested in keys that begin with an "
4288 "application-specific prefix C<foo_>.  Modify the loop like so:"
4289 msgstr ""
4290
4291 #. type: verbatim
4292 #: ../src/guestfs.pod:2088
4293 #, no-wrap
4294 msgid ""
4295 " const char *key;\n"
4296 " void *data = guestfs_first_private (g, &key);\n"
4297 " while (data != NULL)\n"
4298 "   {\n"
4299 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4300 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
4301 "     data = guestfs_next_private (g, &key);\n"
4302 "   }\n"
4303 "\n"
4304 msgstr ""
4305
4306 #. type: textblock
4307 #: ../src/guestfs.pod:2097
4308 msgid ""
4309 "If you need to modify keys while walking, then you have to jump back to the "
4310 "beginning of the loop.  For example, to delete all keys prefixed with "
4311 "C<foo_>:"
4312 msgstr ""
4313
4314 #. type: verbatim
4315 #: ../src/guestfs.pod:2101
4316 #, no-wrap
4317 msgid ""
4318 "  const char *key;\n"
4319 "  void *data;\n"
4320 " again:\n"
4321 "  data = guestfs_first_private (g, &key);\n"
4322 "  while (data != NULL)\n"
4323 "    {\n"
4324 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4325 "        {\n"
4326 "          guestfs_set_private (g, key, NULL);\n"
4327 "          /* note that 'key' pointer is now invalid, and so is\n"
4328 "             the internal iterator */\n"
4329 "          goto again;\n"
4330 "        }\n"
4331 "      data = guestfs_next_private (g, &key);\n"
4332 "    }\n"
4333 "\n"
4334 msgstr ""
4335
4336 #. type: textblock
4337 #: ../src/guestfs.pod:2117
4338 msgid ""
4339 "Note that the above loop is guaranteed to terminate because the keys are "
4340 "being deleted, but other manipulations of keys within the loop might not "
4341 "terminate unless you also maintain an indication of which keys have been "
4342 "visited."
4343 msgstr ""
4344
4345 #. type: =end
4346 #: ../src/guestfs.pod:2122 ../src/guestfs.pod:2127
4347 msgid "html"
4348 msgstr "html"
4349
4350 #. type: textblock
4351 #: ../src/guestfs.pod:2124
4352 msgid ""
4353 "<!-- old anchor for the next section --> <a "
4354 "name=\"state_machine_and_low_level_event_api\"/>"
4355 msgstr ""
4356 "<!-- old anchor for the next section --> <a "
4357 "name=\"state_machine_and_low_level_event_api\"/>"
4358
4359 #. type: =head1
4360 #: ../src/guestfs.pod:2129
4361 msgid "ARCHITECTURE"
4362 msgstr "АРХІТЕКТУРА"
4363
4364 #. type: textblock
4365 #: ../src/guestfs.pod:2131
4366 msgid ""
4367 "Internally, libguestfs is implemented by running an appliance (a special "
4368 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
4369 "process of the main program."
4370 msgstr ""
4371
4372 #. type: verbatim
4373 #: ../src/guestfs.pod:2135
4374 #, no-wrap
4375 msgid ""
4376 "  ___________________\n"
4377 " /                   \\\n"
4378 " | main program      |\n"
4379 " |                   |\n"
4380 " |                   |           child process / appliance\n"
4381 " |                   |           __________________________\n"
4382 " |                   |          / qemu                     \\\n"
4383 " +-------------------+   RPC    |      +-----------------+ |\n"
4384 " | libguestfs     <--------------------> guestfsd        | |\n"
4385 " |                   |          |      +-----------------+ |\n"
4386 " \\___________________/          |      | Linux kernel    | |\n"
4387 "                                |      +--^--------------+ |\n"
4388 "                                \\_________|________________/\n"
4389 "                                          |\n"
4390 "                                   _______v______\n"
4391 "                                  /              \\\n"
4392 "                                  | Device or    |\n"
4393 "                                  | disk image   |\n"
4394 "                                  \\______________/\n"
4395 "\n"
4396 msgstr ""
4397
4398 #. type: textblock
4399 #: ../src/guestfs.pod:2155
4400 msgid ""
4401 "The library, linked to the main program, creates the child process and hence"
4402 " the appliance in the L</guestfs_launch> function."
4403 msgstr ""
4404
4405 #. type: textblock
4406 #: ../src/guestfs.pod:2158
4407 msgid ""
4408 "Inside the appliance is a Linux kernel and a complete stack of userspace "
4409 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
4410 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
4411 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs"
4412 " API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
4413 "attached to the qemu process which translates device access by the "
4414 "appliance's Linux kernel into accesses to the image."
4415 msgstr ""
4416
4417 #. type: textblock
4418 #: ../src/guestfs.pod:2167
4419 msgid ""
4420 "A common misunderstanding is that the appliance \"is\" the virtual machine."
4421 "  Although the disk image you are attached to might also be used by some "
4422 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
4423 "care if both libguestfs's qemu process and your virtual machine are trying "
4424 "to update the disk image at the same time, since these usually results in "
4425 "massive disk corruption)."
4426 msgstr ""
4427
4428 #. type: =head1
4429 #: ../src/guestfs.pod:2174
4430 msgid "STATE MACHINE"
4431 msgstr "СКІНЧЕННИЙ АВТОМАТ"
4432
4433 #. type: textblock
4434 #: ../src/guestfs.pod:2176
4435 msgid "libguestfs uses a state machine to model the child process:"
4436 msgstr ""
4437
4438 #. type: verbatim
4439 #: ../src/guestfs.pod:2178
4440 #, no-wrap
4441 msgid ""
4442 "                         |\n"
4443 "                    guestfs_create\n"
4444 "                         |\n"
4445 "                         |\n"
4446 "                     ____V_____\n"
4447 "                    /          \\\n"
4448 "                    |  CONFIG  |\n"
4449 "                    \\__________/\n"
4450 "                     ^ ^   ^  \\\n"
4451 "                    /  |    \\  \\ guestfs_launch\n"
4452 "                   /   |    _\\__V______\n"
4453 "                  /    |   /           \\\n"
4454 "                 /     |   | LAUNCHING |\n"
4455 "                /      |   \\___________/\n"
4456 "               /       |       /\n"
4457 "              /        |  guestfs_launch\n"
4458 "             /         |     /\n"
4459 "    ______  /        __|____V\n"
4460 "   /      \\ ------> /        \\\n"
4461 "   | BUSY |         | READY  |\n"
4462 "   \\______/ <------ \\________/\n"
4463 "\n"
4464 msgstr ""
4465
4466 #. type: textblock
4467 #: ../src/guestfs.pod:2200
4468 msgid ""
4469 "The normal transitions are (1) CONFIG (when the handle is created, but there"
4470 " is no child process), (2) LAUNCHING (when the child process is booting up),"
4471 " (3) alternating between READY and BUSY as commands are issued to, and "
4472 "carried out by, the child process."
4473 msgstr ""
4474
4475 #. type: textblock
4476 #: ../src/guestfs.pod:2205
4477 msgid ""
4478 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
4479 "asynchronously at any time (eg. due to some internal error), and that causes"
4480 " the state to transition back to CONFIG."
4481 msgstr ""
4482
4483 #. type: textblock
4484 #: ../src/guestfs.pod:2209
4485 msgid ""
4486 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
4487 "issued when in the CONFIG state."
4488 msgstr ""
4489
4490 #. type: textblock
4491 #: ../src/guestfs.pod:2212
4492 msgid ""
4493 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
4494 "L</guestfs_launch> blocks until the child process is READY to accept "
4495 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
4496 "moves the state from CONFIG to LAUNCHING while it is running."
4497 msgstr ""
4498
4499 #. type: textblock
4500 #: ../src/guestfs.pod:2218
4501 msgid ""
4502 "API actions such as L</guestfs_mount> can only be issued when in the READY "
4503 "state.  These API calls block waiting for the command to be carried out (ie."
4504 " the state to transition to BUSY and then back to READY).  There are no non-"
4505 "blocking versions, and no way to issue more than one command per handle at "
4506 "the same time."
4507 msgstr ""
4508
4509 #. type: textblock
4510 #: ../src/guestfs.pod:2224
4511 msgid ""
4512 "Finally, the child process sends asynchronous messages back to the main "
4513 "program, such as kernel log messages.  You can register a callback to "
4514 "receive these messages."
4515 msgstr ""
4516
4517 #. type: =head1
4518 #: ../src/guestfs.pod:2228
4519 msgid "INTERNALS"
4520 msgstr ""
4521
4522 #. type: =head2
4523 #: ../src/guestfs.pod:2230
4524 msgid "COMMUNICATION PROTOCOL"
4525 msgstr ""
4526
4527 #. type: textblock
4528 #: ../src/guestfs.pod:2232
4529 msgid ""
4530 "Don't rely on using this protocol directly.  This section documents how it "
4531 "currently works, but it may change at any time."
4532 msgstr ""
4533
4534 #. type: textblock
4535 #: ../src/guestfs.pod:2235
4536 msgid ""
4537 "The protocol used to talk between the library and the daemon running inside "
4538 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
4539 "1014, RFC 1832, RFC 4506)."
4540 msgstr ""
4541
4542 #. type: textblock
4543 #: ../src/guestfs.pod:2239
4544 msgid ""
4545 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
4546 "this file is automatically generated)."
4547 msgstr ""
4548
4549 #. type: textblock
4550 #: ../src/guestfs.pod:2242
4551 msgid ""
4552 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
4553 "and C<FileOut> parameters, which are handled with very simple request/reply "
4554 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
4555 "parameters, which use the same request and reply messages, but they may also"
4556 " be followed by files sent using a chunked encoding."
4557 msgstr ""
4558
4559 #. type: =head3
4560 #: ../src/guestfs.pod:2249
4561 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
4562 msgstr ""
4563
4564 #. type: textblock
4565 #: ../src/guestfs.pod:2251
4566 msgid "For ordinary functions, the request message is:"
4567 msgstr ""
4568
4569 #. type: verbatim
4570 #: ../src/guestfs.pod:2253
4571 #, no-wrap
4572 msgid ""
4573 " total length (header + arguments,\n"
4574 "      but not including the length word itself)\n"
4575 " struct guestfs_message_header (encoded as XDR)\n"
4576 " struct guestfs_<foo>_args (encoded as XDR)\n"
4577 "\n"
4578 msgstr ""
4579
4580 #. type: textblock
4581 #: ../src/guestfs.pod:2258
4582 msgid ""
4583 "The total length field allows the daemon to allocate a fixed size buffer "
4584 "into which it slurps the rest of the message.  As a result, the total length"
4585 " is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the"
4586 " effective size of any request is limited to somewhere under this size."
4587 msgstr ""
4588
4589 #. type: textblock
4590 #: ../src/guestfs.pod:2264
4591 msgid ""
4592 "Note also that many functions don't take any arguments, in which case the "
4593 "C<guestfs_I<foo>_args> is completely omitted."
4594 msgstr ""
4595
4596 #. type: textblock
4597 #: ../src/guestfs.pod:2267
4598 msgid ""
4599 "The header contains the procedure number (C<guestfs_proc>) which is how the "
4600 "receiver knows what type of args structure to expect, or none at all."
4601 msgstr ""
4602
4603 #. type: textblock
4604 #: ../src/guestfs.pod:2271
4605 msgid ""
4606 "For functions that take optional arguments, the optional arguments are "
4607 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
4608 "arguments.  A bitmask in the header indicates which optional arguments are "
4609 "meaningful.  The bitmask is also checked to see if it contains bits set "
4610 "which the daemon does not know about (eg. if more optional arguments were "
4611 "added in a later version of the library), and this causes the call to be "
4612 "rejected."
4613 msgstr ""
4614
4615 #. type: textblock
4616 #: ../src/guestfs.pod:2279
4617 msgid "The reply message for ordinary functions is:"
4618 msgstr ""
4619
4620 #. type: verbatim
4621 #: ../src/guestfs.pod:2281
4622 #, no-wrap
4623 msgid ""
4624 " total length (header + ret,\n"
4625 "      but not including the length word itself)\n"
4626 " struct guestfs_message_header (encoded as XDR)\n"
4627 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4628 "\n"
4629 msgstr ""
4630
4631 #. type: textblock
4632 #: ../src/guestfs.pod:2286
4633 msgid ""
4634 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
4635 "functions that return no formal return values."
4636 msgstr ""
4637
4638 #. type: textblock
4639 #: ../src/guestfs.pod:2289
4640 msgid ""
4641 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
4642 msgstr ""
4643
4644 #. type: textblock
4645 #: ../src/guestfs.pod:2292
4646 msgid ""
4647 "In the case of an error, a flag is set in the header, and the reply message "
4648 "is slightly changed:"
4649 msgstr ""
4650
4651 #. type: verbatim
4652 #: ../src/guestfs.pod:2295
4653 #, no-wrap
4654 msgid ""
4655 " total length (header + error,\n"
4656 "      but not including the length word itself)\n"
4657 " struct guestfs_message_header (encoded as XDR)\n"
4658 " struct guestfs_message_error (encoded as XDR)\n"
4659 "\n"
4660 msgstr ""
4661
4662 #. type: textblock
4663 #: ../src/guestfs.pod:2300
4664 msgid ""
4665 "The C<guestfs_message_error> structure contains the error message as a "
4666 "string."
4667 msgstr ""
4668
4669 #. type: =head3
4670 #: ../src/guestfs.pod:2303
4671 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
4672 msgstr ""
4673
4674 #. type: textblock
4675 #: ../src/guestfs.pod:2305
4676 msgid ""
4677 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
4678 "The normal request message is sent (see above).  However this is followed by"
4679 " a sequence of file chunks."
4680 msgstr ""
4681
4682 #. type: verbatim
4683 #: ../src/guestfs.pod:2309
4684 #, no-wrap
4685 msgid ""
4686 " total length (header + arguments,\n"
4687 "      but not including the length word itself,\n"
4688 "      and not including the chunks)\n"
4689 " struct guestfs_message_header (encoded as XDR)\n"
4690 " struct guestfs_<foo>_args (encoded as XDR)\n"
4691 " sequence of chunks for FileIn param #0\n"
4692 " sequence of chunks for FileIn param #1 etc.\n"
4693 "\n"
4694 msgstr ""
4695
4696 #. type: textblock
4697 #: ../src/guestfs.pod:2317
4698 msgid "The \"sequence of chunks\" is:"
4699 msgstr ""
4700
4701 #. type: verbatim
4702 #: ../src/guestfs.pod:2319
4703 #, no-wrap
4704 msgid ""
4705 " length of chunk (not including length word itself)\n"
4706 " struct guestfs_chunk (encoded as XDR)\n"
4707 " length of chunk\n"
4708 " struct guestfs_chunk (encoded as XDR)\n"
4709 "   ...\n"
4710 " length of chunk\n"
4711 " struct guestfs_chunk (with data.data_len == 0)\n"
4712 "\n"
4713 msgstr ""
4714
4715 #. type: textblock
4716 #: ../src/guestfs.pod:2327
4717 msgid ""
4718 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
4719 "is set in the final chunk to indicate either successful completion or early "
4720 "cancellation."
4721 msgstr ""
4722
4723 #. type: textblock
4724 #: ../src/guestfs.pod:2331
4725 msgid ""
4726 "At time of writing there are no functions that have more than one FileIn "
4727 "parameter.  However this is (theoretically) supported, by sending the "
4728 "sequence of chunks for each FileIn parameter one after another (from left to"
4729 " right)."
4730 msgstr ""
4731
4732 #. type: textblock
4733 #: ../src/guestfs.pod:2336
4734 msgid ""
4735 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
4736 "transfer.  The library does this by sending a chunk with a special flag set "
4737 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
4738 "RPC, does I<not> send any reply, and goes back to reading the next request."
4739 msgstr ""
4740
4741 #. type: textblock
4742 #: ../src/guestfs.pod:2342
4743 msgid ""
4744 "The daemon may also cancel.  It does this by writing a special word "
4745 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
4746 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
4747 "cancel chunk).  The special word is chosen so that even if cancellation "
4748 "happens right at the end of the transfer (after the library has finished "
4749 "writing and has started listening for the reply), the \"spurious\" cancel "
4750 "flag will not be confused with the reply message."
4751 msgstr ""
4752
4753 #. type: textblock
4754 #: ../src/guestfs.pod:2351
4755 msgid ""
4756 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
4757 "limit), and also files where the size is not known in advance (eg. from "
4758 "pipes or sockets).  However the chunks are rather small "
4759 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need"
4760 " to keep much in memory."
4761 msgstr ""
4762
4763 #. type: =head3
4764 #: ../src/guestfs.pod:2357
4765 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
4766 msgstr ""
4767
4768 #. type: textblock
4769 #: ../src/guestfs.pod:2359
4770 msgid ""
4771 "The protocol for FileOut parameters is exactly the same as for FileIn "
4772 "parameters, but with the roles of daemon and library reversed."
4773 msgstr ""
4774
4775 #. type: verbatim
4776 #: ../src/guestfs.pod:2362
4777 #, no-wrap
4778 msgid ""
4779 " total length (header + ret,\n"
4780 "      but not including the length word itself,\n"
4781 "      and not including the chunks)\n"
4782 " struct guestfs_message_header (encoded as XDR)\n"
4783 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4784 " sequence of chunks for FileOut param #0\n"
4785 " sequence of chunks for FileOut param #1 etc.\n"
4786 "\n"
4787 msgstr ""
4788
4789 #. type: =head3
4790 #: ../src/guestfs.pod:2370
4791 msgid "INITIAL MESSAGE"
4792 msgstr ""
4793
4794 #. type: textblock
4795 #: ../src/guestfs.pod:2372
4796 msgid ""
4797 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
4798 "which indicates that the guest and daemon is alive.  This is what "
4799 "L</guestfs_launch> waits for."
4800 msgstr ""
4801
4802 #. type: =head3
4803 #: ../src/guestfs.pod:2376
4804 msgid "PROGRESS NOTIFICATION MESSAGES"
4805 msgstr ""
4806
4807 #. type: textblock
4808 #: ../src/guestfs.pod:2378
4809 msgid ""
4810 "The daemon may send progress notification messages at any time.  These are "
4811 "distinguished by the normal length word being replaced by "
4812 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
4813 msgstr ""
4814
4815 #. type: textblock
4816 #: ../src/guestfs.pod:2382
4817 msgid ""
4818 "The library turns them into progress callbacks (see "
4819 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
4820 "them if not."
4821 msgstr ""
4822
4823 #. type: textblock
4824 #: ../src/guestfs.pod:2386
4825 msgid ""
4826 "The daemon self-limits the frequency of progress messages it sends (see "
4827 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
4828 "messages."
4829 msgstr ""
4830
4831 #. type: =head1
4832 #: ../src/guestfs.pod:2390
4833 msgid "LIBGUESTFS VERSION NUMBERS"
4834 msgstr ""
4835
4836 #. type: textblock
4837 #: ../src/guestfs.pod:2392
4838 msgid ""
4839 "Since April 2010, libguestfs has started to make separate development and "
4840 "stable releases, along with corresponding branches in our git repository.  "
4841 "These separate releases can be identified by version number:"
4842 msgstr ""
4843
4844 #. type: verbatim
4845 #: ../src/guestfs.pod:2397
4846 #, no-wrap
4847 msgid ""
4848 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
4849 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
4850 "       |\n"
4851 "       v\n"
4852 " 1  .  3  .  5\n"
4853 " ^           ^\n"
4854 " |           |\n"
4855 " |           `-------- sub-version\n"
4856 " |\n"
4857 " `------ always '1' because we don't change the ABI\n"
4858 "\n"
4859 msgstr ""
4860
4861 #. type: textblock
4862 #: ../src/guestfs.pod:2408
4863 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
4864 msgstr ""
4865
4866 #. type: textblock
4867 #: ../src/guestfs.pod:2410
4868 msgid ""
4869 "As time passes we cherry pick fixes from the development branch and backport"
4870 " those into the stable branch, the effect being that the stable branch "
4871 "should get more stable and less buggy over time.  So the stable releases are"
4872 " ideal for people who don't need new features but would just like the "
4873 "software to work."
4874 msgstr ""
4875
4876 #. type: textblock
4877 #: ../src/guestfs.pod:2416
4878 msgid "Our criteria for backporting changes are:"
4879 msgstr ""
4880
4881 #. type: textblock
4882 #: ../src/guestfs.pod:2422
4883 msgid ""
4884 "Documentation changes which don't affect any code are backported unless the "
4885 "documentation refers to a future feature which is not in stable."
4886 msgstr ""
4887
4888 #. type: textblock
4889 #: ../src/guestfs.pod:2428
4890 msgid ""
4891 "Bug fixes which are not controversial, fix obvious problems, and have been "
4892 "well tested are backported."
4893 msgstr ""
4894
4895 #. type: textblock
4896 #: ../src/guestfs.pod:2433
4897 msgid ""
4898 "Simple rearrangements of code which shouldn't affect how it works get "
4899 "backported.  This is so that the code in the two branches doesn't get too "
4900 "far out of step, allowing us to backport future fixes more easily."
4901 msgstr ""
4902
4903 #. type: textblock
4904 #: ../src/guestfs.pod:2439
4905 msgid ""
4906 "We I<don't> backport new features, new APIs, new tools etc, except in one "
4907 "exceptional case: the new feature is required in order to implement an "
4908 "important bug fix."
4909 msgstr ""
4910
4911 #. type: textblock
4912 #: ../src/guestfs.pod:2445
4913 msgid ""
4914 "A new stable branch starts when we think the new features in development are"
4915 " substantial and compelling enough over the current stable branch to warrant"
4916 " it.  When that happens we create new stable and development versions 1.N.0 "
4917 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
4918 "stable at this point, but by backporting fixes from development, that branch"
4919 " will stabilize over time."
4920 msgstr ""
4921
4922 #. type: =head1
4923 #: ../src/guestfs.pod:2453
4924 msgid "EXTENDING LIBGUESTFS"
4925 msgstr ""
4926
4927 #. type: =head2
4928 #: ../src/guestfs.pod:2455
4929 msgid "ADDING A NEW API ACTION"
4930 msgstr ""
4931
4932 #. type: textblock
4933 #: ../src/guestfs.pod:2457
4934 msgid ""
4935 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
4936 "documentation) are generated, and this makes it easy to extend the "
4937 "libguestfs API."
4938 msgstr ""
4939
4940 #. type: textblock
4941 #: ../src/guestfs.pod:2461
4942 msgid "To add a new API action there are two changes:"
4943 msgstr ""
4944
4945 #. type: textblock
4946 #: ../src/guestfs.pod:2467
4947 msgid ""
4948 "You need to add a description of the call (name, parameters, return type, "
4949 "tests, documentation) to C<generator/generator_actions.ml>."
4950 msgstr ""
4951
4952 #. type: textblock
4953 #: ../src/guestfs.pod:2470
4954 msgid ""
4955 "There are two sorts of API action, depending on whether the call goes "
4956 "through to the daemon in the appliance, or is serviced entirely by the "
4957 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the"
4958 " former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
4959 "an example of the latter, since a trace flag is maintained in the handle and"
4960 " all tracing is done on the library side."
4961 msgstr ""
4962
4963 #. type: textblock
4964 #: ../src/guestfs.pod:2478
4965 msgid ""
4966 "Most new actions are of the first type, and get added to the "
4967 "C<daemon_functions> list.  Each function has a unique procedure number used "
4968 "in the RPC protocol which is assigned to that action when we publish "
4969 "libguestfs and cannot be reused.  Take the latest procedure number and "
4970 "increment it."
4971 msgstr ""
4972
4973 #. type: textblock
4974 #: ../src/guestfs.pod:2484
4975 msgid ""
4976 "For library-only actions of the second type, add to the "
4977 "C<non_daemon_functions> list.  Since these functions are serviced by the "
4978 "library and do not travel over the RPC mechanism to the daemon, these "
4979 "functions do not need a procedure number, and so the procedure number is set"
4980 " to C<-1>."
4981 msgstr ""
4982
4983 #. type: textblock
4984 #: ../src/guestfs.pod:2492
4985 msgid "Implement the action (in C):"
4986 msgstr ""
4987
4988 #. type: textblock
4989 #: ../src/guestfs.pod:2494
4990 msgid ""
4991 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
4992 "C<daemon/> directory."
4993 msgstr ""
4994
4995 #. type: textblock
4996 #: ../src/guestfs.pod:2497
4997 msgid ""
4998 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
4999 "(note: double underscore) in the C<src/> directory."
5000 msgstr ""
5001
5002 #. type: textblock
5003 #: ../src/guestfs.pod:2500
5004 msgid "In either case, use another function as an example of what to do."
5005 msgstr ""
5006
5007 #. type: textblock
5008 #: ../src/guestfs.pod:2504
5009 msgid "After making these changes, use C<make> to compile."
5010 msgstr ""
5011
5012 #. type: textblock
5013 #: ../src/guestfs.pod:2506
5014 msgid ""
5015 "Note that you don't need to implement the RPC, language bindings, manual "
5016 "pages or anything else.  It's all automatically generated from the OCaml "
5017 "description."
5018 msgstr ""
5019
5020 #. type: =head2
5021 #: ../src/guestfs.pod:2510
5022 msgid "ADDING TESTS FOR AN API ACTION"
5023 msgstr ""
5024
5025 #. type: textblock
5026 #: ../src/guestfs.pod:2512
5027 msgid ""
5028 "You can supply zero or as many tests as you want per API call.  The tests "
5029 "can either be added as part of the API description "
5030 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
5031 "drop a script into C<regressions/>.  Note that adding a script to "
5032 "C<regressions/> is slower, so if possible use the first method."
5033 msgstr ""
5034
5035 #. type: textblock
5036 #: ../src/guestfs.pod:2518
5037 msgid ""
5038 "The following describes the test environment used when you add an API test "
5039 "in C<generator_actions.ml>."
5040 msgstr ""
5041
5042 #. type: textblock
5043 #: ../src/guestfs.pod:2521
5044 msgid "The test environment has 4 block devices:"
5045 msgstr ""
5046
5047 #. type: =item
5048 #: ../src/guestfs.pod:2525
5049 msgid "C</dev/sda> 500MB"
5050 msgstr "C</dev/sda> 500 МБ"
5051
5052 #. type: textblock
5053 #: ../src/guestfs.pod:2527
5054 msgid "General block device for testing."
5055 msgstr ""
5056
5057 #. type: =item
5058 #: ../src/guestfs.pod:2529
5059 msgid "C</dev/sdb> 50MB"
5060 msgstr "C</dev/sdb> 50 МБ"
5061
5062 #. type: textblock
5063 #: ../src/guestfs.pod:2531
5064 msgid ""
5065 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
5066 "operations."
5067 msgstr ""
5068
5069 #. type: =item
5070 #: ../src/guestfs.pod:2534
5071 msgid "C</dev/sdc> 10MB"
5072 msgstr "C</dev/sdc> 10 МБ"
5073
5074 #. type: textblock
5075 #: ../src/guestfs.pod:2536
5076 msgid "Used in a few tests where two block devices are needed."
5077 msgstr ""
5078
5079 #. type: =item
5080 #: ../src/guestfs.pod:2538
5081 msgid "C</dev/sdd>"
5082 msgstr "C</dev/sdd>"
5083
5084 #. type: textblock
5085 #: ../src/guestfs.pod:2540
5086 msgid "ISO with fixed content (see C<images/test.iso>)."
5087 msgstr ""
5088
5089 #. type: textblock
5090 #: ../src/guestfs.pod:2544
5091 msgid ""
5092 "To be able to run the tests in a reasonable amount of time, the libguestfs "
5093 "appliance and block devices are reused between tests.  So don't try testing "
5094 "L</guestfs_kill_subprocess> :-x"
5095 msgstr ""
5096
5097 #. type: textblock
5098 #: ../src/guestfs.pod:2548
5099 msgid ""
5100 "Each test starts with an initial scenario, selected using one of the "
5101 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
5102 "initialize the disks mentioned above in a particular way as documented in "
5103 "C<generator_types.ml>.  You should not assume anything about the previous "
5104 "contents of other disks that are not initialized."
5105 msgstr ""
5106
5107 #. type: textblock
5108 #: ../src/guestfs.pod:2554
5109 msgid ""
5110 "You can add a prerequisite clause to any individual test.  This is a run-"
5111 "time check, which, if it fails, causes the test to be skipped.  Useful if "
5112 "testing a command which might not work on all variations of libguestfs "
5113 "builds.  A test that has prerequisite of C<Always> means to run "
5114 "unconditionally."
5115 msgstr ""
5116
5117 #. type: textblock
5118 #: ../src/guestfs.pod:2560
5119 msgid ""
5120 "In addition, packagers can skip individual tests by setting environment "
5121 "variables before running C<make check>."
5122 msgstr ""
5123
5124 #. type: verbatim
5125 #: ../src/guestfs.pod:2563
5126 #, no-wrap
5127 msgid ""
5128 " SKIP_TEST_<CMD>_<NUM>=1\n"
5129 "\n"
5130 msgstr ""
5131
5132 #. type: textblock
5133 #: ../src/guestfs.pod:2565
5134 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
5135 msgstr ""
5136
5137 #. type: textblock
5138 #: ../src/guestfs.pod:2567
5139 msgid "or:"
5140 msgstr "або:"
5141
5142 #. type: verbatim
5143 #: ../src/guestfs.pod:2569
5144 #, no-wrap
5145 msgid ""
5146 " SKIP_TEST_<CMD>=1\n"
5147 "\n"
5148 msgstr ""
5149
5150 #. type: textblock
5151 #: ../src/guestfs.pod:2571
5152 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
5153 msgstr ""
5154
5155 #. type: textblock
5156 #: ../src/guestfs.pod:2573
5157 msgid "Packagers can run only certain tests by setting for example:"
5158 msgstr ""
5159
5160 #. type: verbatim
5161 #: ../src/guestfs.pod:2575
5162 #, no-wrap
5163 msgid ""
5164 " TEST_ONLY=\"vfs_type zerofree\"\n"
5165 "\n"
5166 msgstr ""
5167
5168 #. type: textblock
5169 #: ../src/guestfs.pod:2577
5170 msgid ""
5171 "See C<capitests/tests.c> for more details of how these environment variables"
5172 " work."
5173 msgstr ""
5174
5175 #. type: =head2
5176 #: ../src/guestfs.pod:2580
5177 msgid "DEBUGGING NEW API ACTIONS"
5178 msgstr ""
5179
5180 #. type: textblock
5181 #: ../src/guestfs.pod:2582
5182 msgid "Test new actions work before submitting them."
5183 msgstr ""
5184
5185 #. type: textblock
5186 #: ../src/guestfs.pod:2584
5187 msgid "You can use guestfish to try out new commands."
5188 msgstr ""
5189
5190 #. type: textblock
5191 #: ../src/guestfs.pod:2586
5192 msgid ""
5193 "Debugging the daemon is a problem because it runs inside a minimal "
5194 "environment.  However you can fprintf messages in the daemon to stderr, and "
5195 "they will show up if you use C<guestfish -v>."
5196 msgstr ""
5197
5198 #. type: =head2
5199 #: ../src/guestfs.pod:2590
5200 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
5201 msgstr ""
5202
5203 #. type: textblock
5204 #: ../src/guestfs.pod:2592
5205 msgid ""
5206 "Our C source code generally adheres to some basic code-formatting "
5207 "conventions.  The existing code base is not totally consistent on this "
5208 "front, but we do prefer that contributed code be formatted similarly.  In "
5209 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
5210 "indentation level, and other than that, follow the K&R style."
5211 msgstr ""
5212
5213 #. type: textblock
5214 #: ../src/guestfs.pod:2598
5215 msgid ""
5216 "If you use Emacs, add the following to one of one of your start-up files "
5217 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
5218 msgstr ""
5219
5220 #. type: verbatim
5221 #: ../src/guestfs.pod:2601
5222 #, no-wrap
5223 msgid ""
5224 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
5225 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
5226 " (add-hook 'find-file-hook\n"
5227 "     '(lambda () (if (and buffer-file-name\n"
5228 "                          (string-match \"/libguestfs\\\\>\"\n"
5229 "                              (buffer-file-name))\n"
5230 "                          (not (string-equal mode-name \"Change Log\"))\n"
5231 "                          (not (string-equal mode-name \"Makefile\")))\n"
5232 "                     (setq indent-tabs-mode nil))))\n"
5233 " \n"
5234 msgstr ""
5235
5236 #. type: verbatim
5237 #: ../src/guestfs.pod:2611
5238 #, no-wrap
5239 msgid ""
5240 " ;;; When editing C sources in libguestfs, use this style.\n"
5241 " (defun libguestfs-c-mode ()\n"
5242 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
5243 "   (interactive)\n"
5244 "   (c-set-style \"K&R\")\n"
5245 "   (setq c-indent-level 2)\n"
5246 "   (setq c-basic-offset 2))\n"
5247 " (add-hook 'c-mode-hook\n"
5248 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
5249 "                               (buffer-file-name))\n"
5250 "                           (libguestfs-c-mode))))\n"
5251 "\n"
5252 msgstr ""
5253
5254 #. type: textblock
5255 #: ../src/guestfs.pod:2623
5256 msgid "Enable warnings when compiling (and fix any problems this finds):"
5257 msgstr ""
5258
5259 #. type: verbatim
5260 #: ../src/guestfs.pod:2626
5261 #, no-wrap
5262 msgid ""
5263 " ./configure --enable-gcc-warnings\n"
5264 "\n"
5265 msgstr ""
5266 " ./configure --enable-gcc-warnings\n"
5267 "\n"
5268
5269 #. type: textblock
5270 #: ../src/guestfs.pod:2628
5271 msgid "Useful targets are:"
5272 msgstr ""
5273
5274 #. type: verbatim
5275 #: ../src/guestfs.pod:2630
5276 #, no-wrap
5277 msgid ""
5278 " make syntax-check  # checks the syntax of the C code\n"
5279 " make check         # runs the test suite\n"
5280 "\n"
5281 msgstr ""
5282
5283 #. type: =head2
5284 #: ../src/guestfs.pod:2633
5285 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
5286 msgstr ""
5287
5288 #. type: textblock
5289 #: ../src/guestfs.pod:2635
5290 msgid ""
5291 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>,"
5292 " which are used to do shell quoting."
5293 msgstr ""
5294
5295 #. type: =item
5296 #: ../src/guestfs.pod:2640
5297 msgid "%Q"
5298 msgstr "%Q"
5299
5300 #. type: textblock
5301 #: ../src/guestfs.pod:2642
5302 msgid ""
5303 "Simple shell quoted string.  Any spaces or other shell characters are "
5304 "escaped for you."
5305 msgstr ""
5306
5307 #. type: =item
5308 #: ../src/guestfs.pod:2645
5309 msgid "%R"
5310 msgstr "%R"
5311
5312 #. type: textblock
5313 #: ../src/guestfs.pod:2647
5314 msgid ""
5315 "Same as C<%Q> except the string is treated as a path which is prefixed by "
5316 "the sysroot."
5317 msgstr ""
5318
5319 #. type: textblock
5320 #: ../src/guestfs.pod:2652 ../fish/guestfish.pod:242 ../fish/guestfish.pod:673
5321 msgid "For example:"
5322 msgstr "Приклад:"
5323
5324 #. type: verbatim
5325 #: ../src/guestfs.pod:2654
5326 #, no-wrap
5327 msgid ""
5328 " asprintf (&cmd, \"cat %R\", path);\n"
5329 "\n"
5330 msgstr ""
5331
5332 #. type: textblock
5333 #: ../src/guestfs.pod:2656
5334 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
5335 msgstr ""
5336
5337 #. type: textblock
5338 #: ../src/guestfs.pod:2658
5339 msgid ""
5340 "I<Note:> Do I<not> use these when you are passing parameters to the "
5341 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
5342 "because they are not passed via the shell (instead, straight to exec).  You "
5343 "probably want to use the C<sysroot_path()> function however."
5344 msgstr ""
5345
5346 #. type: =head2
5347 #: ../src/guestfs.pod:2664
5348 msgid "SUBMITTING YOUR NEW API ACTIONS"
5349 msgstr ""
5350
5351 #. type: textblock
5352 #: ../src/guestfs.pod:2666
5353 msgid ""
5354 "Submit patches to the mailing list: "
5355 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
5356 "L<rjones@redhat.com>."
5357 msgstr ""
5358
5359 #. type: =head2
5360 #: ../src/guestfs.pod:2670
5361 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
5362 msgstr ""
5363
5364 #. type: textblock
5365 #: ../src/guestfs.pod:2672
5366 msgid "We support i18n (gettext anyhow) in the library."
5367 msgstr ""
5368
5369 #. type: textblock
5370 #: ../src/guestfs.pod:2674
5371 msgid ""
5372 "However many messages come from the daemon, and we don't translate those at "
5373 "the moment.  One reason is that the appliance generally has all locale files"
5374 " removed from it, because they take up a lot of space.  So we'd have to "
5375 "readd some of those, as well as copying our PO files into the appliance."
5376 msgstr ""
5377
5378 #. type: textblock
5379 #: ../src/guestfs.pod:2680
5380 msgid ""
5381 "Debugging messages are never translated, since they are intended for the "
5382 "programmers."
5383 msgstr ""
5384
5385 #. type: =head2
5386 #: ../src/guestfs.pod:2683
5387 msgid "SOURCE CODE SUBDIRECTORIES"
5388 msgstr ""
5389
5390 #. type: =item
5391 #: ../src/guestfs.pod:2687 ../src/guestfs-actions.pod:6174
5392 #: ../fish/guestfish-actions.pod:4072
5393 msgid "C<appliance>"
5394 msgstr "C<appliance>"
5395
5396 #. type: textblock
5397 #: ../src/guestfs.pod:2689
5398 msgid "The libguestfs appliance, build scripts and so on."
5399 msgstr ""
5400
5401 #. type: =item
5402 #: ../src/guestfs.pod:2691
5403 msgid "C<capitests>"
5404 msgstr "C<capitests>"
5405
5406 #. type: textblock
5407 #: ../src/guestfs.pod:2693
5408 msgid "Automated tests of the C API."
5409 msgstr ""
5410
5411 #. type: =item
5412 #: ../src/guestfs.pod:2695
5413 msgid "C<cat>"
5414 msgstr "C<cat>"
5415
5416 #. type: textblock
5417 #: ../src/guestfs.pod:2697
5418 msgid ""
5419 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
5420 "documentation."
5421 msgstr ""
5422
5423 #. type: =item
5424 #: ../src/guestfs.pod:2700
5425 msgid "C<caution>"
5426 msgstr ""
5427
5428 #. type: textblock
5429 #: ../src/guestfs.pod:2702
5430 msgid ""
5431 "Safety and liveness tests of components that libguestfs depends upon (not of"
5432 " libguestfs itself).  Mainly this is for qemu and the kernel."
5433 msgstr ""
5434
5435 #. type: =item
5436 #: ../src/guestfs.pod:2705
5437 msgid "C<contrib>"
5438 msgstr "C<contrib>"
5439
5440 #. type: textblock
5441 #: ../src/guestfs.pod:2707
5442 msgid "Outside contributions, experimental parts."
5443 msgstr ""
5444
5445 #. type: =item
5446 #: ../src/guestfs.pod:2709
5447 msgid "C<daemon>"
5448 msgstr "C<daemon>"
5449
5450 #. type: textblock
5451 #: ../src/guestfs.pod:2711
5452 msgid ""
5453 "The daemon that runs inside the libguestfs appliance and carries out "
5454 "actions."
5455 msgstr ""
5456
5457 #. type: =item
5458 #: ../src/guestfs.pod:2714
5459 msgid "C<df>"
5460 msgstr "C<df>"
5461
5462 #. type: textblock
5463 #: ../src/guestfs.pod:2716
5464 msgid "L<virt-df(1)> command and documentation."
5465 msgstr ""
5466
5467 #. type: =item
5468 #: ../src/guestfs.pod:2718
5469 msgid "C<edit>"
5470 msgstr ""
5471
5472 #. type: textblock
5473 #: ../src/guestfs.pod:2720
5474 msgid "L<virt-edit(1)> command and documentation."
5475 msgstr ""
5476
5477 #. type: =item
5478 #: ../src/guestfs.pod:2722
5479 msgid "C<examples>"
5480 msgstr "C<examples>"
5481
5482 #. type: textblock
5483 #: ../src/guestfs.pod:2724
5484 msgid "C API example code."
5485 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
5486
5487 #. type: =item
5488 #: ../src/guestfs.pod:2726
5489 msgid "C<fish>"
5490 msgstr "C<fish>"
5491
5492 #. type: textblock
5493 #: ../src/guestfs.pod:2728
5494 msgid ""
5495 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
5496 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L"
5497 "<virt-tar-out(1)>."
5498 msgstr ""
5499
5500 #. type: =item
5501 #: ../src/guestfs.pod:2732
5502 msgid "C<fuse>"
5503 msgstr "C<fuse>"
5504
5505 #. type: textblock
5506 #: ../src/guestfs.pod:2734
5507 msgid ""
5508 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
5509 msgstr ""
5510
5511 #. type: =item
5512 #: ../src/guestfs.pod:2736
5513 msgid "C<generator>"
5514 msgstr "C<generator>"
5515
5516 #. type: textblock
5517 #: ../src/guestfs.pod:2738
5518 msgid ""
5519 "The crucially important generator, used to automatically generate large "
5520 "amounts of boilerplate C code for things like RPC and bindings."
5521 msgstr ""
5522
5523 #. type: =item
5524 #: ../src/guestfs.pod:2741
5525 msgid "C<images>"
5526 msgstr "C<images>"
5527
5528 #. type: textblock
5529 #: ../src/guestfs.pod:2743
5530 msgid "Files used by the test suite."
5531 msgstr ""
5532
5533 #. type: textblock
5534 #: ../src/guestfs.pod:2745
5535 msgid "Some \"phony\" guest images which we test against."
5536 msgstr ""
5537
5538 #. type: =item
5539 #: ../src/guestfs.pod:2747
5540 msgid "C<inspector>"
5541 msgstr "C<inspector>"
5542
5543 #. type: textblock
5544 #: ../src/guestfs.pod:2749
5545 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
5546 msgstr ""
5547
5548 #. type: =item
5549 #: ../src/guestfs.pod:2751
5550 msgid "C<logo>"
5551 msgstr "C<logo>"
5552
5553 #. type: textblock
5554 #: ../src/guestfs.pod:2753
5555 msgid "Logo used on the website.  The fish is called Arthur by the way."
5556 msgstr ""
5557
5558 #. type: =item
5559 #: ../src/guestfs.pod:2755
5560 msgid "C<m4>"
5561 msgstr "C<m4>"
5562
5563 #. type: textblock
5564 #: ../src/guestfs.pod:2757
5565 msgid "M4 macros used by autoconf."
5566 msgstr ""
5567
5568 #. type: =item
5569 #: ../src/guestfs.pod:2759
5570 msgid "C<po>"
5571 msgstr "C<po>"
5572
5573 #. type: textblock
5574 #: ../src/guestfs.pod:2761
5575 msgid "Translations of simple gettext strings."
5576 msgstr "Переклади простих рядків gettext."
5577
5578 #. type: =item
5579 #: ../src/guestfs.pod:2763
5580 msgid "C<po-docs>"
5581 msgstr "C<po-docs>"
5582
5583 #. type: textblock
5584 #: ../src/guestfs.pod:2765
5585 msgid ""
5586 "The build infrastructure and PO files for translations of manpages and POD "
5587 "files.  Eventually this will be combined with the C<po> directory, but that "
5588 "is rather complicated."
5589 msgstr ""
5590
5591 #. type: =item
5592 #: ../src/guestfs.pod:2769
5593 msgid "C<regressions>"
5594 msgstr "C<regressions>"
5595
5596 #. type: textblock
5597 #: ../src/guestfs.pod:2771
5598 msgid "Regression tests."
5599 msgstr "Тести на регресії."
5600
5601 #. type: =item
5602 #: ../src/guestfs.pod:2773
5603 msgid "C<rescue>"
5604 msgstr "C<rescue>"
5605
5606 #. type: textblock
5607 #: ../src/guestfs.pod:2775
5608 msgid "L<virt-rescue(1)> command and documentation."
5609 msgstr ""
5610
5611 #. type: =item
5612 #: ../src/guestfs.pod:2777
5613 msgid "C<src>"
5614 msgstr "C<src>"
5615
5616 #. type: textblock
5617 #: ../src/guestfs.pod:2779
5618 msgid "Source code to the C library."
5619 msgstr ""
5620
5621 #. type: =item
5622 #: ../src/guestfs.pod:2781
5623 msgid "C<tools>"
5624 msgstr "C<tools>"
5625
5626 #. type: textblock
5627 #: ../src/guestfs.pod:2783
5628 msgid ""
5629 "Command line tools written in Perl (L<virt-resize(1)> and many others)."
5630 msgstr ""
5631
5632 #. type: =item
5633 #: ../src/guestfs.pod:2785
5634 msgid "C<test-tool>"
5635 msgstr "C<test-tool>"
5636
5637 #. type: textblock
5638 #: ../src/guestfs.pod:2787
5639 msgid ""
5640 "Test tool for end users to test if their qemu/kernel combination will work "
5641 "with libguestfs."
5642 msgstr ""
5643
5644 #. type: =item
5645 #: ../src/guestfs.pod:2790
5646 msgid "C<csharp>"
5647 msgstr "C<csharp>"
5648
5649 #. type: =item
5650 #: ../src/guestfs.pod:2792
5651 msgid "C<haskell>"
5652 msgstr "C<haskell>"
5653
5654 #. type: =item
5655 #: ../src/guestfs.pod:2794
5656 msgid "C<java>"
5657 msgstr "C<java>"
5658
5659 #. type: =item
5660 #: ../src/guestfs.pod:2796
5661 msgid "C<ocaml>"
5662 msgstr "C<ocaml>"
5663
5664 #. type: =item
5665 #: ../src/guestfs.pod:2798
5666 msgid "C<php>"
5667 msgstr "C<php>"
5668
5669 #. type: =item
5670 #: ../src/guestfs.pod:2800
5671 msgid "C<perl>"
5672 msgstr "C<perl>"
5673
5674 #. type: =item
5675 #: ../src/guestfs.pod:2802
5676 msgid "C<python>"
5677 msgstr "C<python>"
5678
5679 #. type: =item
5680 #: ../src/guestfs.pod:2804
5681 msgid "C<ruby>"
5682 msgstr "C<ruby>"
5683
5684 #. type: textblock
5685 #: ../src/guestfs.pod:2806
5686 msgid "Language bindings."
5687 msgstr "Прив’язки до мов програмування."
5688
5689 #. type: =head1
5690 #: ../src/guestfs.pod:2810
5691 msgid "LIMITS"
5692 msgstr ""
5693
5694 #. type: =head2
5695 #: ../src/guestfs.pod:2812
5696 msgid "PROTOCOL LIMITS"
5697 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
5698
5699 #. type: textblock
5700 #: ../src/guestfs.pod:2814
5701 msgid ""
5702 "Internally libguestfs uses a message-based protocol to pass API calls and "
5703 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
5704 "plenty more detail about this).  The maximum message size used by the "
5705 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
5706 "aware of this limit.  The API calls which may be affected are individually "
5707 "documented, with a link back to this section of the documentation."
5708 msgstr ""
5709
5710 #. type: textblock
5711 #: ../src/guestfs.pod:2822
5712 msgid ""
5713 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
5714 "a simple string.  Because this string is at some point internally encoded as"
5715 " a message, the maximum size that it can return is slightly under 4 MB.  If "
5716 "the requested file is larger than this then you will get an error."
5717 msgstr ""
5718
5719 #. type: textblock
5720 #: ../src/guestfs.pod:2828
5721 msgid ""
5722 "In order to transfer large files into and out of the guest filesystem, you "
5723 "need to use particular calls that support this.  The sections L</UPLOADING> "
5724 "and L</DOWNLOADING> document how to do this."
5725 msgstr ""
5726
5727 #. type: textblock
5728 #: ../src/guestfs.pod:2832
5729 msgid ""
5730 "You might also consider mounting the disk image using our FUSE filesystem "
5731 "support (L<guestmount(1)>)."
5732 msgstr ""
5733
5734 #. type: =head2
5735 #: ../src/guestfs.pod:2835
5736 msgid "MAXIMUM NUMBER OF DISKS"
5737 msgstr ""
5738
5739 #. type: textblock
5740 #: ../src/guestfs.pod:2837
5741 msgid ""
5742 "When using virtio disks (the default) the current limit is B<25> disks."
5743 msgstr ""
5744
5745 #. type: textblock
5746 #: ../src/guestfs.pod:2840
5747 msgid ""
5748 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31"
5749 " slots.  However febootstrap only understands disks with names C</dev/vda> "
5750 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
5751 "purposes."
5752 msgstr ""
5753
5754 #. type: textblock
5755 #: ../src/guestfs.pod:2845
5756 msgid ""
5757 "We are working to substantially raise this limit in future versions but it "
5758 "requires complex changes to qemu."
5759 msgstr ""
5760
5761 #. type: textblock
5762 #: ../src/guestfs.pod:2848
5763 msgid ""
5764 "In future versions of libguestfs it should also be possible to \"hot plug\" "
5765 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
5766 "requires changes to qemu."
5767 msgstr ""
5768
5769 #. type: =head2
5770 #: ../src/guestfs.pod:2852
5771 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
5772 msgstr ""
5773
5774 #. type: textblock
5775 #: ../src/guestfs.pod:2854
5776 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
5777 msgstr ""
5778
5779 #. type: textblock
5780 #: ../src/guestfs.pod:2856
5781 msgid ""
5782 "This is because it reserves 4 bits for the minor device number (thus "
5783 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
5784 msgstr ""
5785
5786 #. type: textblock
5787 #: ../src/guestfs.pod:2859
5788 msgid ""
5789 "If you attach a disk with more than 15 partitions, the extra partitions are "
5790 "ignored by libguestfs."
5791 msgstr ""
5792
5793 #. type: =head2
5794 #: ../src/guestfs.pod:2862
5795 msgid "MAXIMUM SIZE OF A DISK"
5796 msgstr ""
5797
5798 #. type: textblock
5799 #: ../src/guestfs.pod:2864
5800 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
5801 msgstr ""
5802
5803 #. type: textblock
5804 #: ../src/guestfs.pod:2866
5805 msgid ""
5806 "We have tested block devices up to 1 exabyte (2**60 or "
5807 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
5808 "filesystem."
5809 msgstr ""
5810
5811 #. type: textblock
5812 #: ../src/guestfs.pod:2870
5813 msgid ""
5814 "Although libguestfs probably does not impose any limit, the underlying host "
5815 "storage will.  If you store disk images on a host ext4 filesystem, then the "
5816 "maximum size will be limited by the maximum ext4 file size (currently 16 "
5817 "TB).  If you store disk images as host logical volumes then you are limited "
5818 "by the maximum size of an LV."
5819 msgstr ""
5820
5821 #. type: textblock
5822 #: ../src/guestfs.pod:2876
5823 msgid ""
5824 "For the hugest disk image files, we recommend using XFS on the host for "
5825 "storage."
5826 msgstr ""
5827
5828 #. type: =head2
5829 #: ../src/guestfs.pod:2879
5830 msgid "MAXIMUM SIZE OF A PARTITION"
5831 msgstr ""
5832
5833 #. type: textblock
5834 #: ../src/guestfs.pod:2881
5835 msgid ""
5836 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector numbers."
5837 "  Assuming a 512 byte sector size, this means that MBR cannot address a "
5838 "partition located beyond 2 TB on the disk."
5839 msgstr ""
5840
5841 #. type: textblock
5842 #: ../src/guestfs.pod:2885
5843 msgid ""
5844 "It is recommended that you use GPT partitions on disks which are larger than"
5845 " this size.  GPT uses 64 bit sector numbers and so can address partitions "
5846 "which are theoretically larger than the largest disk we could support."
5847 msgstr ""
5848
5849 #. type: =head2
5850 #: ../src/guestfs.pod:2890
5851 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
5852 msgstr ""
5853
5854 #. type: textblock
5855 #: ../src/guestfs.pod:2892
5856 msgid ""
5857 "This depends on the filesystem type.  libguestfs itself does not impose any "
5858 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
5859 "what these limits are."
5860 msgstr ""
5861
5862 #. type: =head2
5863 #: ../src/guestfs.pod:2896
5864 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
5865 msgstr ""
5866
5867 #. type: textblock
5868 #: ../src/guestfs.pod:2898
5869 msgid ""
5870 "The API functions L</guestfs_upload>, L</guestfs_download>, "
5871 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
5872 "uploads and downloads."
5873 msgstr ""
5874
5875 #. type: =head2
5876 #: ../src/guestfs.pod:2902
5877 msgid "INSPECTION LIMITS"
5878 msgstr ""
5879
5880 #. type: textblock
5881 #: ../src/guestfs.pod:2904
5882 msgid ""
5883 "The inspection code has several arbitrary limits on things like the size of "
5884 "Windows Registry hive it will read, and the length of product name.  These "
5885 "are intended to stop a malicious guest from consuming arbitrary amounts of "
5886 "memory and disk space on the host, and should not be reached in practice.  "
5887 "See the source code for more information."
5888 msgstr ""
5889
5890 #. type: =head1
5891 #: ../src/guestfs.pod:2910 ../fish/guestfish.pod:1075
5892 #: ../test-tool/libguestfs-test-tool.pod:82
5893 msgid "ENVIRONMENT VARIABLES"
5894 msgstr "ЗМІННІ СЕРЕДОВИЩА"
5895
5896 #. type: =item
5897 #: ../src/guestfs.pod:2914 ../fish/guestfish.pod:1106
5898 msgid "LIBGUESTFS_APPEND"
5899 msgstr ""
5900
5901 #. type: textblock
5902 #: ../src/guestfs.pod:2916 ../fish/guestfish.pod:1108
5903 msgid "Pass additional options to the guest kernel."
5904 msgstr ""
5905
5906 #. type: =item
5907 #: ../src/guestfs.pod:2918 ../fish/guestfish.pod:1110
5908 msgid "LIBGUESTFS_DEBUG"
5909 msgstr "LIBGUESTFS_DEBUG"
5910
5911 #. type: textblock
5912 #: ../src/guestfs.pod:2920
5913 msgid ""
5914 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
5915 "effect as calling C<guestfs_set_verbose (g, 1)>."
5916 msgstr ""
5917
5918 #. type: =item
5919 #: ../src/guestfs.pod:2923 ../fish/guestfish.pod:1115
5920 msgid "LIBGUESTFS_MEMSIZE"
5921 msgstr "LIBGUESTFS_MEMSIZE"
5922
5923 #. type: textblock
5924 #: ../src/guestfs.pod:2925 ../fish/guestfish.pod:1117
5925 msgid ""
5926 "Set the memory allocated to the qemu process, in megabytes.  For example:"
5927 msgstr ""
5928
5929 #. type: verbatim
5930 #: ../src/guestfs.pod:2928 ../fish/guestfish.pod:1120
5931 #, no-wrap
5932 msgid ""
5933 " LIBGUESTFS_MEMSIZE=700\n"
5934 "\n"
5935 msgstr ""
5936 " LIBGUESTFS_MEMSIZE=700\n"
5937 "\n"
5938
5939 #. type: =item
5940 #: ../src/guestfs.pod:2930 ../fish/guestfish.pod:1122
5941 msgid "LIBGUESTFS_PATH"
5942 msgstr ""
5943
5944 #. type: textblock
5945 #: ../src/guestfs.pod:2932
5946 msgid ""
5947 "Set the path that libguestfs uses to search for a supermin appliance.  See "
5948 "the discussion of paths in section L</PATH> above."
5949 msgstr ""
5950
5951 #. type: =item
5952 #: ../src/guestfs.pod:2935 ../fish/guestfish.pod:1127
5953 msgid "LIBGUESTFS_QEMU"
5954 msgstr ""
5955
5956 #. type: textblock
5957 #: ../src/guestfs.pod:2937 ../fish/guestfish.pod:1129
5958 msgid ""
5959 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu"
5960 " which was found at compile time by the configure script is used."
5961 msgstr ""
5962
5963 #. type: textblock
5964 #: ../src/guestfs.pod:2941
5965 msgid "See also L</QEMU WRAPPERS> above."
5966 msgstr ""
5967
5968 #. type: =item
5969 #: ../src/guestfs.pod:2943 ../fish/guestfish.pod:1133
5970 msgid "LIBGUESTFS_TRACE"
5971 msgstr ""
5972
5973 #. type: textblock
5974 #: ../src/guestfs.pod:2945
5975 msgid ""
5976 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
5977 "effect as calling C<guestfs_set_trace (g, 1)>."
5978 msgstr ""
5979
5980 #. type: =item
5981 #: ../src/guestfs.pod:2948 ../fish/guestfish.pod:1142
5982 msgid "TMPDIR"
5983 msgstr ""
5984
5985 #. type: textblock
5986 #: ../src/guestfs.pod:2950 ../fish/guestfish.pod:1144
5987 msgid ""
5988 "Location of temporary directory, defaults to C</tmp> except for the cached "
5989 "supermin appliance which defaults to C</var/tmp>."
5990 msgstr ""
5991
5992 #. type: textblock
5993 #: ../src/guestfs.pod:2953 ../fish/guestfish.pod:1147
5994 msgid ""
5995 "If libguestfs was compiled to use the supermin appliance then the real "
5996 "appliance is cached in this directory, shared between all handles belonging "
5997 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
5998 "use in case C</var/tmp> is not large enough."
5999 msgstr ""
6000
6001 #. type: =head1
6002 #: ../src/guestfs.pod:2961 ../fish/guestfish.pod:1214
6003 #: ../test-tool/libguestfs-test-tool.pod:87 ../fuse/guestmount.pod:279
6004 #: ../tools/virt-win-reg.pl:744 ../tools/virt-list-filesystems.pl:189
6005 #: ../tools/virt-tar.pl:286 ../tools/virt-make-fs.pl:539
6006 #: ../tools/virt-list-partitions.pl:257
6007 msgid "SEE ALSO"
6008 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
6009
6010 #. type: textblock
6011 #: ../src/guestfs.pod:2963
6012 msgid ""
6013 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L"
6014 "<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L"
6015 "<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L"
6016 "<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L"
6017 "<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
6018 "rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-"
6019 "win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, L<hivex(3)>, "
6020 "L<http://libguestfs.org/>."
6021 msgstr ""
6022
6023 #. type: textblock
6024 #: ../src/guestfs.pod:2990
6025 msgid ""
6026 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
6027 "L<lvm(8)>, L<disktype(1)>."
6028 msgstr ""
6029
6030 #. type: =head1
6031 #: ../src/guestfs.pod:2997 ../tools/virt-win-reg.pl:759
6032 #: ../tools/virt-make-fs.pl:553
6033 msgid "BUGS"
6034 msgstr "ВАДИ"
6035
6036 #. type: textblock
6037 #: ../src/guestfs.pod:2999
6038 msgid "To get a list of bugs against libguestfs use this link:"
6039 msgstr ""
6040 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
6041 "посиланням:"
6042
6043 #. type: textblock
6044 #: ../src/guestfs.pod:3001
6045 msgid ""
6046 "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
6047 msgstr ""
6048 "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
6049
6050 #. type: textblock
6051 #: ../src/guestfs.pod:3003
6052 msgid "To report a new bug against libguestfs use this link:"
6053 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
6054
6055 #. type: textblock
6056 #: ../src/guestfs.pod:3005
6057 msgid ""
6058 "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
6059 msgstr ""
6060 "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
6061
6062 #. type: textblock
6063 #: ../src/guestfs.pod:3007
6064 msgid "When reporting a bug, please check:"
6065 msgstr ""
6066
6067 #. type: textblock
6068 #: ../src/guestfs.pod:3013
6069 msgid "That the bug hasn't been reported already."
6070 msgstr ""
6071
6072 #. type: textblock
6073 #: ../src/guestfs.pod:3017
6074 msgid "That you are testing a recent version."
6075 msgstr ""
6076
6077 #. type: textblock
6078 #: ../src/guestfs.pod:3021
6079 msgid "Describe the bug accurately, and give a way to reproduce it."
6080 msgstr ""
6081
6082 #. type: textblock
6083 #: ../src/guestfs.pod:3025
6084 msgid ""
6085 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the"
6086 " bug report."
6087 msgstr ""
6088
6089 #. type: =head1
6090 #: ../src/guestfs.pod:3030 ../fish/guestfish.pod:1238
6091 #: ../test-tool/libguestfs-test-tool.pod:93 ../fuse/guestmount.pod:290
6092 msgid "AUTHORS"
6093 msgstr "АВТОРИ"
6094
6095 #. type: textblock
6096 #: ../src/guestfs.pod:3032 ../fish/guestfish.pod:1240
6097 #: ../test-tool/libguestfs-test-tool.pod:95 ../fuse/guestmount.pod:292
6098 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
6099 msgstr ""
6100
6101 #. type: =head1
6102 #: ../src/guestfs.pod:3034 ../fish/guestfish.pod:1242
6103 #: ../test-tool/libguestfs-test-tool.pod:97 ../fuse/guestmount.pod:294
6104 #: ../tools/virt-win-reg.pl:774 ../tools/virt-list-filesystems.pl:206
6105 #: ../tools/virt-tar.pl:305 ../tools/virt-make-fs.pl:568
6106 #: ../tools/virt-list-partitions.pl:273
6107 msgid "COPYRIGHT"
6108 msgstr "АВТОРСЬКІ ПРАВА"
6109
6110 #. type: textblock
6111 #: ../src/guestfs.pod:3036 ../fish/guestfish.pod:1244
6112 #: ../test-tool/libguestfs-test-tool.pod:99
6113 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
6114 msgstr ""
6115
6116 #. type: textblock
6117 #: ../src/guestfs.pod:3039
6118 msgid ""
6119 "This library is free software; you can redistribute it and/or modify it "
6120 "under the terms of the GNU Lesser General Public License as published by the"
6121 " Free Software Foundation; either version 2 of the License, or (at your "
6122 "option) any later version."
6123 msgstr ""
6124
6125 #. type: textblock
6126 #: ../src/guestfs.pod:3044
6127 msgid ""
6128 "This library is distributed in the hope that it will be useful, but WITHOUT "
6129 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
6130 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License"
6131 " for more details."
6132 msgstr ""
6133
6134 #. type: textblock
6135 #: ../src/guestfs.pod:3049
6136 msgid ""
6137 "You should have received a copy of the GNU Lesser General Public License "
6138 "along with this library; if not, write to the Free Software Foundation, "
6139 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
6140 msgstr ""
6141
6142 #. type: =head2
6143 #: ../src/guestfs-actions.pod:1
6144 msgid "guestfs_add_cdrom"
6145 msgstr ""
6146
6147 #. type: verbatim
6148 #: ../src/guestfs-actions.pod:3
6149 #, no-wrap
6150 msgid ""
6151 " int\n"
6152 " guestfs_add_cdrom (guestfs_h *g,\n"
6153 "                    const char *filename);\n"
6154 "\n"
6155 msgstr ""
6156
6157 #. type: textblock
6158 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
6159 msgid "This function adds a virtual CD-ROM disk image to the guest."
6160 msgstr ""
6161
6162 #. type: textblock
6163 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
6164 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
6165 msgstr ""
6166
6167 #. type: textblock
6168 #: ../src/guestfs-actions.pod:17
6169 msgid ""
6170 "This call checks for the existence of C<filename>.  This stops you from "
6171 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6172 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call"
6173 " instead."
6174 msgstr ""
6175
6176 #. type: textblock
6177 #: ../src/guestfs-actions.pod:24
6178 msgid ""
6179 "If you just want to add an ISO file (often you use this as an efficient way "
6180 "to transfer large files into the guest), then you should probably use "
6181 "C<guestfs_add_drive_ro> instead."
6182 msgstr ""
6183
6184 #. type: textblock
6185 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:140
6186 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
6187 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
6188 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
6189 #: ../src/guestfs-actions.pod:422 ../src/guestfs-actions.pod:442
6190 #: ../src/guestfs-actions.pod:456 ../src/guestfs-actions.pod:501
6191 #: ../src/guestfs-actions.pod:529 ../src/guestfs-actions.pod:547
6192 #: ../src/guestfs-actions.pod:614 ../src/guestfs-actions.pod:647
6193 #: ../src/guestfs-actions.pod:661 ../src/guestfs-actions.pod:676
6194 #: ../src/guestfs-actions.pod:775 ../src/guestfs-actions.pod:793
6195 #: ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:821
6196 #: ../src/guestfs-actions.pod:858 ../src/guestfs-actions.pod:1041
6197 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1079
6198 #: ../src/guestfs-actions.pod:1163 ../src/guestfs-actions.pod:1181
6199 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1214
6200 #: ../src/guestfs-actions.pod:1234 ../src/guestfs-actions.pod:1304
6201 #: ../src/guestfs-actions.pod:1335 ../src/guestfs-actions.pod:1360
6202 #: ../src/guestfs-actions.pod:1402 ../src/guestfs-actions.pod:1508
6203 #: ../src/guestfs-actions.pod:1542 ../src/guestfs-actions.pod:1757
6204 #: ../src/guestfs-actions.pod:1779 ../src/guestfs-actions.pod:1866
6205 #: ../src/guestfs-actions.pod:2339 ../src/guestfs-actions.pod:2483
6206 #: ../src/guestfs-actions.pod:2544 ../src/guestfs-actions.pod:2579
6207 #: ../src/guestfs-actions.pod:3619 ../src/guestfs-actions.pod:3634
6208 #: ../src/guestfs-actions.pod:3659 ../src/guestfs-actions.pod:3848
6209 #: ../src/guestfs-actions.pod:3862 ../src/guestfs-actions.pod:3875
6210 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3904
6211 #: ../src/guestfs-actions.pod:3940 ../src/guestfs-actions.pod:4012
6212 #: ../src/guestfs-actions.pod:4032 ../src/guestfs-actions.pod:4049
6213 #: ../src/guestfs-actions.pod:4072 ../src/guestfs-actions.pod:4095
6214 #: ../src/guestfs-actions.pod:4130 ../src/guestfs-actions.pod:4149
6215 #: ../src/guestfs-actions.pod:4168 ../src/guestfs-actions.pod:4203
6216 #: ../src/guestfs-actions.pod:4215 ../src/guestfs-actions.pod:4251
6217 #: ../src/guestfs-actions.pod:4267 ../src/guestfs-actions.pod:4280
6218 #: ../src/guestfs-actions.pod:4295 ../src/guestfs-actions.pod:4312
6219 #: ../src/guestfs-actions.pod:4405 ../src/guestfs-actions.pod:4425
6220 #: ../src/guestfs-actions.pod:4438 ../src/guestfs-actions.pod:4489
6221 #: ../src/guestfs-actions.pod:4507 ../src/guestfs-actions.pod:4525
6222 #: ../src/guestfs-actions.pod:4541 ../src/guestfs-actions.pod:4555
6223 #: ../src/guestfs-actions.pod:4569 ../src/guestfs-actions.pod:4586
6224 #: ../src/guestfs-actions.pod:4601 ../src/guestfs-actions.pod:4621
6225 #: ../src/guestfs-actions.pod:4691 ../src/guestfs-actions.pod:4764
6226 #: ../src/guestfs-actions.pod:4795 ../src/guestfs-actions.pod:4814
6227 #: ../src/guestfs-actions.pod:4833 ../src/guestfs-actions.pod:4845
6228 #: ../src/guestfs-actions.pod:4862 ../src/guestfs-actions.pod:4875
6229 #: ../src/guestfs-actions.pod:4890 ../src/guestfs-actions.pod:4905
6230 #: ../src/guestfs-actions.pod:4940 ../src/guestfs-actions.pod:4973
6231 #: ../src/guestfs-actions.pod:5012 ../src/guestfs-actions.pod:5032
6232 #: ../src/guestfs-actions.pod:5046 ../src/guestfs-actions.pod:5063
6233 #: ../src/guestfs-actions.pod:5112 ../src/guestfs-actions.pod:5158
6234 #: ../src/guestfs-actions.pod:5212 ../src/guestfs-actions.pod:5248
6235 #: ../src/guestfs-actions.pod:5283 ../src/guestfs-actions.pod:5300
6236 #: ../src/guestfs-actions.pod:5318 ../src/guestfs-actions.pod:5452
6237 #: ../src/guestfs-actions.pod:5509 ../src/guestfs-actions.pod:5531
6238 #: ../src/guestfs-actions.pod:5549 ../src/guestfs-actions.pod:5581
6239 #: ../src/guestfs-actions.pod:5647 ../src/guestfs-actions.pod:5664
6240 #: ../src/guestfs-actions.pod:5677 ../src/guestfs-actions.pod:5691
6241 #: ../src/guestfs-actions.pod:5980 ../src/guestfs-actions.pod:5999
6242 #: ../src/guestfs-actions.pod:6018 ../src/guestfs-actions.pod:6032
6243 #: ../src/guestfs-actions.pod:6044 ../src/guestfs-actions.pod:6058
6244 #: ../src/guestfs-actions.pod:6070 ../src/guestfs-actions.pod:6084
6245 #: ../src/guestfs-actions.pod:6100 ../src/guestfs-actions.pod:6121
6246 #: ../src/guestfs-actions.pod:6140 ../src/guestfs-actions.pod:6159
6247 #: ../src/guestfs-actions.pod:6189 ../src/guestfs-actions.pod:6207
6248 #: ../src/guestfs-actions.pod:6230 ../src/guestfs-actions.pod:6248
6249 #: ../src/guestfs-actions.pod:6267 ../src/guestfs-actions.pod:6288
6250 #: ../src/guestfs-actions.pod:6307 ../src/guestfs-actions.pod:6324
6251 #: ../src/guestfs-actions.pod:6343 ../src/guestfs-actions.pod:6369
6252 #: ../src/guestfs-actions.pod:6393 ../src/guestfs-actions.pod:6412
6253 #: ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:6455
6254 #: ../src/guestfs-actions.pod:6470 ../src/guestfs-actions.pod:6489
6255 #: ../src/guestfs-actions.pod:6526 ../src/guestfs-actions.pod:6556
6256 #: ../src/guestfs-actions.pod:6589 ../src/guestfs-actions.pod:6711
6257 #: ../src/guestfs-actions.pod:6832 ../src/guestfs-actions.pod:6844
6258 #: ../src/guestfs-actions.pod:6857 ../src/guestfs-actions.pod:6870
6259 #: ../src/guestfs-actions.pod:6892 ../src/guestfs-actions.pod:6905
6260 #: ../src/guestfs-actions.pod:6918 ../src/guestfs-actions.pod:6931
6261 #: ../src/guestfs-actions.pod:6946 ../src/guestfs-actions.pod:7005
6262 #: ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7038
6263 #: ../src/guestfs-actions.pod:7054 ../src/guestfs-actions.pod:7071
6264 #: ../src/guestfs-actions.pod:7084 ../src/guestfs-actions.pod:7104
6265 #: ../src/guestfs-actions.pod:7140 ../src/guestfs-actions.pod:7154
6266 #: ../src/guestfs-actions.pod:7195 ../src/guestfs-actions.pod:7208
6267 #: ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7260
6268 #: ../src/guestfs-actions.pod:7296 ../src/guestfs-actions.pod:7412
6269 #: ../src/guestfs-actions.pod:7427 ../src/guestfs-actions.pod:7441
6270 #: ../src/guestfs-actions.pod:7496 ../src/guestfs-actions.pod:7509
6271 #: ../src/guestfs-actions.pod:7554 ../src/guestfs-actions.pod:7587
6272 #: ../src/guestfs-actions.pod:7650 ../src/guestfs-actions.pod:7670
6273 #: ../src/guestfs-actions.pod:7694 ../src/guestfs-actions.pod:7761
6274 #: ../src/guestfs-actions.pod:7780 ../src/guestfs-actions.pod:7809
6275 msgid "This function returns 0 on success or -1 on error."
6276 msgstr ""
6277
6278 #. type: textblock
6279 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:254
6280 #: ../src/guestfs-actions.pod:275 ../fish/guestfish-actions.pod:28
6281 #: ../fish/guestfish-actions.pod:163 ../fish/guestfish-actions.pod:177
6282 msgid ""
6283 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
6284 "instead."
6285 msgstr ""
6286
6287 #. type: textblock
6288 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257
6289 #: ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1513
6290 #: ../src/guestfs-actions.pod:2008 ../src/guestfs-actions.pod:2029
6291 #: ../src/guestfs-actions.pod:4626 ../src/guestfs-actions.pod:4945
6292 #: ../src/guestfs-actions.pod:5163 ../src/guestfs-actions.pod:5253
6293 #: ../src/guestfs-actions.pod:6534 ../src/guestfs-actions.pod:6564
6294 #: ../src/guestfs-actions.pod:6597 ../src/guestfs-actions.pod:6656
6295 #: ../src/guestfs-actions.pod:7592 ../src/guestfs-actions.pod:7702
6296 #: ../src/guestfs-actions.pod:7872 ../fish/guestfish-actions.pod:31
6297 #: ../fish/guestfish-actions.pod:166 ../fish/guestfish-actions.pod:180
6298 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:1346
6299 #: ../fish/guestfish-actions.pod:1360 ../fish/guestfish-actions.pod:3085
6300 #: ../fish/guestfish-actions.pod:3292 ../fish/guestfish-actions.pod:3406
6301 #: ../fish/guestfish-actions.pod:3454 ../fish/guestfish-actions.pod:4349
6302 #: ../fish/guestfish-actions.pod:4372 ../fish/guestfish-actions.pod:4394
6303 #: ../fish/guestfish-actions.pod:4432 ../fish/guestfish-actions.pod:5081
6304 #: ../fish/guestfish-actions.pod:5179
6305 msgid ""
6306 "Deprecated functions will not be removed from the API, but the fact that "
6307 "they are deprecated indicates that there are problems with correct use of "
6308 "these functions."
6309 msgstr ""
6310
6311 #. type: textblock
6312 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
6313 #: ../src/guestfs-actions.pod:1165 ../src/guestfs-actions.pod:1980
6314 #: ../src/guestfs-actions.pod:2078 ../src/guestfs-actions.pod:2190
6315 #: ../src/guestfs-actions.pod:3621 ../src/guestfs-actions.pod:3641
6316 #: ../src/guestfs-actions.pod:4949 ../src/guestfs-actions.pod:6209
6317 #: ../src/guestfs-actions.pod:6326 ../src/guestfs-actions.pod:6457
6318 #: ../src/guestfs-actions.pod:6948 ../src/guestfs-actions.pod:7073
6319 #: ../src/guestfs-actions.pod:7596
6320 msgid "(Added in 0.3)"
6321 msgstr ""
6322
6323 #. type: =head2
6324 #: ../src/guestfs-actions.pod:41
6325 msgid "guestfs_add_domain"
6326 msgstr ""
6327
6328 #. type: verbatim
6329 #: ../src/guestfs-actions.pod:43
6330 #, no-wrap
6331 msgid ""
6332 " int\n"
6333 " guestfs_add_domain (guestfs_h *g,\n"
6334 "                     const char *dom,\n"
6335 "                     ...);\n"
6336 "\n"
6337 msgstr ""
6338
6339 #. type: textblock
6340 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
6341 #: ../src/guestfs-actions.pod:832 ../src/guestfs-actions.pod:2824
6342 #: ../src/guestfs-actions.pod:4640 ../src/guestfs-actions.pod:4959
6343 #: ../src/guestfs-actions.pod:5176
6344 msgid ""
6345 "You may supply a list of optional arguments to this call.  Use zero or more "
6346 "of the following pairs of parameters, and terminate the list with C<-1> on "
6347 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
6348 msgstr ""
6349
6350 #. type: verbatim
6351 #: ../src/guestfs-actions.pod:53
6352 #, no-wrap
6353 msgid ""
6354 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
6355 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
6356 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
6357 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
6358 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
6359 "\n"
6360 msgstr ""
6361
6362 #. type: textblock
6363 #: ../src/guestfs-actions.pod:59
6364 msgid ""
6365 "This function adds the disk(s) attached to the named libvirt domain C<dom>."
6366 "  It works by connecting to libvirt, requesting the domain and domain XML "
6367 "from libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on"
6368 " each one."
6369 msgstr ""
6370
6371 #. type: textblock
6372 #: ../src/guestfs-actions.pod:64 ../fish/guestfish-actions.pod:46
6373 msgid ""
6374 "The number of disks added is returned.  This operation is atomic: if an "
6375 "error is returned, then no disks are added."
6376 msgstr ""
6377
6378 #. type: textblock
6379 #: ../src/guestfs-actions.pod:67 ../fish/guestfish-actions.pod:49
6380 msgid ""
6381 "This function does some minimal checks to make sure the libvirt domain is "
6382 "not running (unless C<readonly> is true).  In a future version we will try "
6383 "to acquire the libvirt lock on each disk."
6384 msgstr ""
6385
6386 #. type: textblock
6387 #: ../src/guestfs-actions.pod:71 ../fish/guestfish-actions.pod:53
6388 msgid ""
6389 "Disks must be accessible locally.  This often means that adding disks from a"
6390 " remote libvirt connection (see L<http://libvirt.org/remote.html>)  will "
6391 "fail unless those disks are accessible via the same device path locally too."
6392 msgstr ""
6393
6394 #. type: textblock
6395 #: ../src/guestfs-actions.pod:76 ../fish/guestfish-actions.pod:58
6396 msgid ""
6397 "The optional C<libvirturi> parameter sets the libvirt URI (see "
6398 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
6399 "default libvirt URI (or one set through an environment variable, see the "
6400 "libvirt documentation for full details)."
6401 msgstr ""
6402
6403 #. type: textblock
6404 #: ../src/guestfs-actions.pod:82 ../fish/guestfish-actions.pod:64
6405 msgid ""
6406 "The optional C<live> flag controls whether this call will try to connect to "
6407 "a running virtual machine C<guestfsd> process if it sees a suitable "
6408 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6409 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING"
6410 " DAEMONS> for more information."
6411 msgstr ""
6412
6413 #. type: textblock
6414 #: ../src/guestfs-actions.pod:89 ../fish/guestfish-actions.pod:71
6415 msgid ""
6416 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6417 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6418 "first and looked up, and if that lookup fails then we treat C<dom> as a name"
6419 " as usual."
6420 msgstr ""
6421
6422 #. type: textblock
6423 #: ../src/guestfs-actions.pod:94
6424 msgid ""
6425 "The other optional parameters are passed directly through to "
6426 "C<guestfs_add_drive_opts>."
6427 msgstr ""
6428
6429 #. type: textblock
6430 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
6431 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:693
6432 #: ../src/guestfs-actions.pod:724 ../src/guestfs-actions.pod:742
6433 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:1380
6434 #: ../src/guestfs-actions.pod:1736 ../src/guestfs-actions.pod:1939
6435 #: ../src/guestfs-actions.pod:2050 ../src/guestfs-actions.pod:2099
6436 #: ../src/guestfs-actions.pod:2154 ../src/guestfs-actions.pod:2177
6437 #: ../src/guestfs-actions.pod:2470 ../src/guestfs-actions.pod:2942
6438 #: ../src/guestfs-actions.pod:2960 ../src/guestfs-actions.pod:5135
6439 #: ../src/guestfs-actions.pod:5355 ../src/guestfs-actions.pod:5761
6440 #: ../src/guestfs-actions.pod:5787 ../src/guestfs-actions.pod:7181
6441 #: ../src/guestfs-actions.pod:7607 ../src/guestfs-actions.pod:7620
6442 #: ../src/guestfs-actions.pod:7633
6443 msgid "On error this function returns -1."
6444 msgstr ""
6445
6446 #. type: textblock
6447 #: ../src/guestfs-actions.pod:99
6448 msgid "(Added in 1.7.4)"
6449 msgstr ""
6450
6451 #. type: =head2
6452 #: ../src/guestfs-actions.pod:101
6453 msgid "guestfs_add_domain_va"
6454 msgstr ""
6455
6456 #. type: verbatim
6457 #: ../src/guestfs-actions.pod:103
6458 #, no-wrap
6459 msgid ""
6460 " int\n"
6461 " guestfs_add_domain_va (guestfs_h *g,\n"
6462 "                        const char *dom,\n"
6463 "                        va_list args);\n"
6464 "\n"
6465 msgstr ""
6466
6467 #. type: textblock
6468 #: ../src/guestfs-actions.pod:108
6469 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
6470 msgstr ""
6471
6472 #. type: textblock
6473 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
6474 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
6475 #: ../src/guestfs-actions.pod:871 ../src/guestfs-actions.pod:882
6476 #: ../src/guestfs-actions.pod:2908 ../src/guestfs-actions.pod:2920
6477 #: ../src/guestfs-actions.pod:4705 ../src/guestfs-actions.pod:4717
6478 #: ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:4999
6479 #: ../src/guestfs-actions.pod:5225 ../src/guestfs-actions.pod:5236
6480 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
6481 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
6482
6483 #. type: =head2
6484 #: ../src/guestfs-actions.pod:112
6485 msgid "guestfs_add_domain_argv"
6486 msgstr "guestfs_add_domain_argv"
6487
6488 #. type: verbatim
6489 #: ../src/guestfs-actions.pod:114
6490 #, no-wrap
6491 msgid ""
6492 " int\n"
6493 " guestfs_add_domain_argv (guestfs_h *g,\n"
6494 "                          const char *dom,\n"
6495 "                          const struct guestfs_add_domain_argv *optargs);\n"
6496 "\n"
6497 msgstr ""
6498
6499 #. type: textblock
6500 #: ../src/guestfs-actions.pod:119
6501 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
6502 msgstr ""
6503
6504 #. type: =head2
6505 #: ../src/guestfs-actions.pod:123
6506 msgid "guestfs_add_drive"
6507 msgstr ""
6508
6509 #. type: verbatim
6510 #: ../src/guestfs-actions.pod:125
6511 #, no-wrap
6512 msgid ""
6513 " int\n"
6514 " guestfs_add_drive (guestfs_h *g,\n"
6515 "                    const char *filename);\n"
6516 "\n"
6517 msgstr ""
6518
6519 #. type: textblock
6520 #: ../src/guestfs-actions.pod:129
6521 msgid ""
6522 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no"
6523 " optional parameters, so the disk is added writable, with the format being "
6524 "detected automatically."
6525 msgstr ""
6526
6527 #. type: textblock
6528 #: ../src/guestfs-actions.pod:133
6529 msgid ""
6530 "Automatic detection of the format opens you up to a potential security hole "
6531 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6532 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6533 "you should think about replacing calls to this function with calls to "
6534 "C<guestfs_add_drive_opts>, and specifying the format."
6535 msgstr ""
6536
6537 #. type: =head2
6538 #: ../src/guestfs-actions.pod:144
6539 msgid "guestfs_add_drive_opts"
6540 msgstr ""
6541
6542 #. type: verbatim
6543 #: ../src/guestfs-actions.pod:146
6544 #, no-wrap
6545 msgid ""
6546 " int\n"
6547 " guestfs_add_drive_opts (guestfs_h *g,\n"
6548 "                         const char *filename,\n"
6549 "                         ...);\n"
6550 "\n"
6551 msgstr ""
6552
6553 #. type: verbatim
6554 #: ../src/guestfs-actions.pod:156
6555 #, no-wrap
6556 msgid ""
6557 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
6558 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
6559 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
6560 "\n"
6561 msgstr ""
6562
6563 #. type: textblock
6564 #: ../src/guestfs-actions.pod:160 ../fish/guestfish-actions.pod:102
6565 msgid ""
6566 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6567 "The first time you call this function, the disk appears as C</dev/sda>, the "
6568 "second time as C</dev/sdb>, and so on."
6569 msgstr ""
6570
6571 #. type: textblock
6572 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:107
6573 msgid ""
6574 "You don't necessarily need to be root when using libguestfs.  However you "
6575 "obviously do need sufficient permissions to access the filename for whatever"
6576 " operations you want to perform (ie. read access if you just want to read "
6577 "the image or write access if you want to modify the image)."
6578 msgstr ""
6579
6580 #. type: textblock
6581 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:113
6582 msgid "This call checks that C<filename> exists."
6583 msgstr ""
6584
6585 #. type: textblock
6586 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4653
6587 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3096
6588 msgid "The optional arguments are:"
6589 msgstr ""
6590
6591 #. type: =item
6592 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:119
6593 msgid "C<readonly>"
6594 msgstr "C<readonly>"
6595
6596 #. type: textblock
6597 #: ../src/guestfs-actions.pod:179 ../fish/guestfish-actions.pod:121
6598 msgid ""
6599 "If true then the image is treated as read-only.  Writes are still allowed, "
6600 "but they are stored in a temporary snapshot overlay which is discarded at "
6601 "the end.  The disk that you add is not modified."
6602 msgstr ""
6603
6604 #. type: =item
6605 #: ../src/guestfs-actions.pod:183 ../fish/guestfish-actions.pod:125
6606 msgid "C<format>"
6607 msgstr "C<format>"
6608
6609 #. type: textblock
6610 #: ../src/guestfs-actions.pod:185
6611 msgid ""
6612 "This forces the image format.  If you omit this (or use C<guestfs_add_drive>"
6613 " or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
6614 "Possible formats include C<raw> and C<qcow2>."
6615 msgstr ""
6616
6617 #. type: textblock
6618 #: ../src/guestfs-actions.pod:189 ../fish/guestfish-actions.pod:131
6619 msgid ""
6620 "Automatic detection of the format opens you up to a potential security hole "
6621 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6622 "RHBZ#642934.  Specifying the format closes this security hole."
6623 msgstr ""
6624
6625 #. type: =item
6626 #: ../src/guestfs-actions.pod:194 ../fish/guestfish-actions.pod:136
6627 msgid "C<iface>"
6628 msgstr "C<iface>"
6629
6630 #. type: textblock
6631 #: ../src/guestfs-actions.pod:196
6632 msgid ""
6633 "This rarely-used option lets you emulate the behaviour of the deprecated "
6634 "C<guestfs_add_drive_with_if> call (q.v.)"
6635 msgstr ""
6636
6637 #. type: textblock
6638 #: ../src/guestfs-actions.pod:203
6639 msgid "(Added in 1.5.23)"
6640 msgstr ""
6641
6642 #. type: =head2
6643 #: ../src/guestfs-actions.pod:205
6644 msgid "guestfs_add_drive_opts_va"
6645 msgstr ""
6646
6647 #. type: verbatim
6648 #: ../src/guestfs-actions.pod:207
6649 #, no-wrap
6650 msgid ""
6651 " int\n"
6652 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
6653 "                            const char *filename,\n"
6654 "                            va_list args);\n"
6655 "\n"
6656 msgstr ""
6657
6658 #. type: textblock
6659 #: ../src/guestfs-actions.pod:212
6660 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
6661 msgstr ""
6662
6663 #. type: =head2
6664 #: ../src/guestfs-actions.pod:216
6665 msgid "guestfs_add_drive_opts_argv"
6666 msgstr ""
6667
6668 #. type: verbatim
6669 #: ../src/guestfs-actions.pod:218
6670 #, no-wrap
6671 msgid ""
6672 " int\n"
6673 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
6674 "                              const char *filename,\n"
6675 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
6676 "\n"
6677 msgstr ""
6678
6679 #. type: textblock
6680 #: ../src/guestfs-actions.pod:223
6681 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
6682 msgstr ""
6683
6684 #. type: =head2
6685 #: ../src/guestfs-actions.pod:227
6686 msgid "guestfs_add_drive_ro"
6687 msgstr ""
6688
6689 #. type: verbatim
6690 #: ../src/guestfs-actions.pod:229
6691 #, no-wrap
6692 msgid ""
6693 " int\n"
6694 " guestfs_add_drive_ro (guestfs_h *g,\n"
6695 "                       const char *filename);\n"
6696 "\n"
6697 msgstr ""
6698
6699 #. type: textblock
6700 #: ../src/guestfs-actions.pod:233
6701 msgid ""
6702 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
6703 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
6704 "disk is added read-only, with the format being detected automatically."
6705 msgstr ""
6706
6707 #. type: textblock
6708 #: ../src/guestfs-actions.pod:240
6709 msgid "(Added in 1.0.38)"
6710 msgstr ""
6711
6712 #. type: =head2
6713 #: ../src/guestfs-actions.pod:242
6714 msgid "guestfs_add_drive_ro_with_if"
6715 msgstr ""
6716
6717 #. type: verbatim
6718 #: ../src/guestfs-actions.pod:244
6719 #, no-wrap
6720 msgid ""
6721 " int\n"
6722 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
6723 "                               const char *filename,\n"
6724 "                               const char *iface);\n"
6725 "\n"
6726 msgstr ""
6727
6728 #. type: textblock
6729 #: ../src/guestfs-actions.pod:249
6730 msgid ""
6731 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the"
6732 " QEMU interface emulation to use at run time."
6733 msgstr ""
6734
6735 #. type: textblock
6736 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
6737 #: ../src/guestfs-actions.pod:2429
6738 msgid "(Added in 1.0.84)"
6739 msgstr ""
6740
6741 #. type: =head2
6742 #: ../src/guestfs-actions.pod:263
6743 msgid "guestfs_add_drive_with_if"
6744 msgstr ""
6745
6746 #. type: verbatim
6747 #: ../src/guestfs-actions.pod:265
6748 #, no-wrap
6749 msgid ""
6750 " int\n"
6751 " guestfs_add_drive_with_if (guestfs_h *g,\n"
6752 "                            const char *filename,\n"
6753 "                            const char *iface);\n"
6754 "\n"
6755 msgstr ""
6756
6757 #. type: textblock
6758 #: ../src/guestfs-actions.pod:270
6759 msgid ""
6760 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
6761 "QEMU interface emulation to use at run time."
6762 msgstr ""
6763
6764 #. type: =head2
6765 #: ../src/guestfs-actions.pod:284
6766 msgid "guestfs_aug_clear"
6767 msgstr ""
6768
6769 #. type: verbatim
6770 #: ../src/guestfs-actions.pod:286
6771 #, no-wrap
6772 msgid ""
6773 " int\n"
6774 " guestfs_aug_clear (guestfs_h *g,\n"
6775 "                    const char *augpath);\n"
6776 "\n"
6777 msgstr ""
6778
6779 #. type: textblock
6780 #: ../src/guestfs-actions.pod:290 ../fish/guestfish-actions.pod:188
6781 msgid ""
6782 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6783 "L<augtool(1)> C<clear> command."
6784 msgstr ""
6785
6786 #. type: textblock
6787 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2179
6788 msgid "(Added in 1.3.4)"
6789 msgstr ""
6790
6791 #. type: =head2
6792 #: ../src/guestfs-actions.pod:297
6793 msgid "guestfs_aug_close"
6794 msgstr ""
6795
6796 #. type: verbatim
6797 #: ../src/guestfs-actions.pod:299
6798 #, no-wrap
6799 msgid ""
6800 " int\n"
6801 " guestfs_aug_close (guestfs_h *g);\n"
6802 "\n"
6803 msgstr ""
6804
6805 #. type: textblock
6806 #: ../src/guestfs-actions.pod:302
6807 msgid ""
6808 "Close the current Augeas handle and free up any resources used by it.  After"
6809 " calling this, you have to call C<guestfs_aug_init> again before you can use"
6810 " any other Augeas functions."
6811 msgstr ""
6812
6813 #. type: textblock
6814 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
6815 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
6816 #: ../src/guestfs-actions.pod:424 ../src/guestfs-actions.pod:444
6817 #: ../src/guestfs-actions.pod:458 ../src/guestfs-actions.pod:489
6818 #: ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:517
6819 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:549
6820 #: ../src/guestfs-actions.pod:5838
6821 msgid "(Added in 0.7)"
6822 msgstr ""
6823
6824 #. type: =head2
6825 #: ../src/guestfs-actions.pod:311
6826 msgid "guestfs_aug_defnode"
6827 msgstr ""
6828
6829 #. type: verbatim
6830 #: ../src/guestfs-actions.pod:313
6831 #, no-wrap
6832 msgid ""
6833 " struct guestfs_int_bool *\n"
6834 " guestfs_aug_defnode (guestfs_h *g,\n"
6835 "                      const char *name,\n"
6836 "                      const char *expr,\n"
6837 "                      const char *val);\n"
6838 "\n"
6839 msgstr ""
6840
6841 #. type: textblock
6842 #: ../src/guestfs-actions.pod:319 ../fish/guestfish-actions.pod:204
6843 msgid ""
6844 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6845 msgstr ""
6846
6847 #. type: textblock
6848 #: ../src/guestfs-actions.pod:322
6849 msgid ""
6850 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6851 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
6852 "containing that single node."
6853 msgstr ""
6854
6855 #. type: textblock
6856 #: ../src/guestfs-actions.pod:326 ../fish/guestfish-actions.pod:211
6857 msgid ""
6858 "On success this returns a pair containing the number of nodes in the "
6859 "nodeset, and a boolean flag if a node was created."
6860 msgstr ""
6861
6862 #. type: textblock
6863 #: ../src/guestfs-actions.pod:330
6864 msgid ""
6865 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
6866 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
6867 msgstr ""
6868
6869 #. type: =head2
6870 #: ../src/guestfs-actions.pod:336
6871 msgid "guestfs_aug_defvar"
6872 msgstr ""
6873
6874 #. type: verbatim
6875 #: ../src/guestfs-actions.pod:338
6876 #, no-wrap
6877 msgid ""
6878 " int\n"
6879 " guestfs_aug_defvar (guestfs_h *g,\n"
6880 "                     const char *name,\n"
6881 "                     const char *expr);\n"
6882 "\n"
6883 msgstr ""
6884
6885 #. type: textblock
6886 #: ../src/guestfs-actions.pod:343 ../fish/guestfish-actions.pod:219
6887 msgid ""
6888 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6889 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6890 msgstr ""
6891
6892 #. type: textblock
6893 #: ../src/guestfs-actions.pod:347 ../fish/guestfish-actions.pod:223
6894 msgid ""
6895 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6896 "evaluates to something which is not a nodeset."
6897 msgstr ""
6898
6899 #. type: =head2
6900 #: ../src/guestfs-actions.pod:354
6901 msgid "guestfs_aug_get"
6902 msgstr ""
6903
6904 #. type: verbatim
6905 #: ../src/guestfs-actions.pod:356
6906 #, no-wrap
6907 msgid ""
6908 " char *\n"
6909 " guestfs_aug_get (guestfs_h *g,\n"
6910 "                  const char *augpath);\n"
6911 "\n"
6912 msgstr ""
6913
6914 #. type: textblock
6915 #: ../src/guestfs-actions.pod:360 ../fish/guestfish-actions.pod:230
6916 msgid ""
6917 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6918 "node, the C<value> is returned."
6919 msgstr ""
6920
6921 #. type: textblock
6922 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:922
6923 #: ../src/guestfs-actions.pod:940 ../src/guestfs-actions.pod:1000
6924 #: ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:1119
6925 #: ../src/guestfs-actions.pod:1249 ../src/guestfs-actions.pod:1266
6926 #: ../src/guestfs-actions.pod:1285 ../src/guestfs-actions.pod:1419
6927 #: ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1719
6928 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:1899
6929 #: ../src/guestfs-actions.pod:1966 ../src/guestfs-actions.pod:2002
6930 #: ../src/guestfs-actions.pod:2023 ../src/guestfs-actions.pod:2202
6931 #: ../src/guestfs-actions.pod:2394 ../src/guestfs-actions.pod:2598
6932 #: ../src/guestfs-actions.pod:2688 ../src/guestfs-actions.pod:2792
6933 #: ../src/guestfs-actions.pod:2811 ../src/guestfs-actions.pod:3025
6934 #: ../src/guestfs-actions.pod:3053 ../src/guestfs-actions.pod:3074
6935 #: ../src/guestfs-actions.pod:3108 ../src/guestfs-actions.pod:3167
6936 #: ../src/guestfs-actions.pod:3187 ../src/guestfs-actions.pod:3207
6937 #: ../src/guestfs-actions.pod:3834 ../src/guestfs-actions.pod:4187
6938 #: ../src/guestfs-actions.pod:4357 ../src/guestfs-actions.pod:4467
6939 #: ../src/guestfs-actions.pod:5373 ../src/guestfs-actions.pod:5566
6940 #: ../src/guestfs-actions.pod:5736 ../src/guestfs-actions.pod:5914
6941 #: ../src/guestfs-actions.pod:5963 ../src/guestfs-actions.pod:6617
6942 #: ../src/guestfs-actions.pod:6633 ../src/guestfs-actions.pod:6650
6943 #: ../src/guestfs-actions.pod:6681 ../src/guestfs-actions.pod:7355
6944 #: ../src/guestfs-actions.pod:7374 ../src/guestfs-actions.pod:7392
6945 #: ../src/guestfs-actions.pod:7566 ../src/guestfs-actions.pod:7866
6946 msgid ""
6947 "This function returns a string, or NULL on error.  I<The caller must free "
6948 "the returned string after use>."
6949 msgstr ""
6950
6951 #. type: =head2
6952 #: ../src/guestfs-actions.pod:368
6953 msgid "guestfs_aug_init"
6954 msgstr ""
6955
6956 #. type: verbatim
6957 #: ../src/guestfs-actions.pod:370
6958 #, no-wrap
6959 msgid ""
6960 " int\n"
6961 " guestfs_aug_init (guestfs_h *g,\n"
6962 "                   const char *root,\n"
6963 "                   int flags);\n"
6964 "\n"
6965 msgstr ""
6966
6967 #. type: textblock
6968 #: ../src/guestfs-actions.pod:375 ../fish/guestfish-actions.pod:237
6969 msgid ""
6970 "Create a new Augeas handle for editing configuration files.  If there was "
6971 "any previous Augeas handle associated with this guestfs session, then it is "
6972 "closed."
6973 msgstr ""
6974
6975 #. type: textblock
6976 #: ../src/guestfs-actions.pod:379
6977 msgid "You must call this before using any other C<guestfs_aug_*> commands."
6978 msgstr ""
6979
6980 #. type: textblock
6981 #: ../src/guestfs-actions.pod:382 ../fish/guestfish-actions.pod:244
6982 msgid ""
6983 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6984 msgstr ""
6985
6986 #. type: textblock
6987 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:247
6988 msgid ""
6989 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6990 "logical I<or> of the following integers:"
6991 msgstr ""
6992
6993 #. type: =item
6994 #: ../src/guestfs-actions.pod:391 ../fish/guestfish-actions.pod:253
6995 msgid "C<AUG_SAVE_BACKUP> = 1"
6996 msgstr "C<AUG_SAVE_BACKUP> = 1"
6997
6998 #. type: textblock
6999 #: ../src/guestfs-actions.pod:393 ../fish/guestfish-actions.pod:255
7000 msgid "Keep the original file with a C<.augsave> extension."
7001 msgstr ""
7002
7003 #. type: =item
7004 #: ../src/guestfs-actions.pod:395 ../fish/guestfish-actions.pod:257
7005 msgid "C<AUG_SAVE_NEWFILE> = 2"
7006 msgstr "C<AUG_SAVE_NEWFILE> = 2"
7007
7008 #. type: textblock
7009 #: ../src/guestfs-actions.pod:397 ../fish/guestfish-actions.pod:259
7010 msgid ""
7011 "Save changes into a file with extension C<.augnew>, and do not overwrite "
7012 "original.  Overrides C<AUG_SAVE_BACKUP>."
7013 msgstr ""
7014
7015 #. type: =item
7016 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:262
7017 msgid "C<AUG_TYPE_CHECK> = 4"
7018 msgstr "C<AUG_TYPE_CHECK> = 4"
7019
7020 #. type: textblock
7021 #: ../src/guestfs-actions.pod:402 ../fish/guestfish-actions.pod:264
7022 msgid "Typecheck lenses (can be expensive)."
7023 msgstr ""
7024
7025 #. type: =item
7026 #: ../src/guestfs-actions.pod:404 ../fish/guestfish-actions.pod:266
7027 msgid "C<AUG_NO_STDINC> = 8"
7028 msgstr "C<AUG_NO_STDINC> = 8"
7029
7030 #. type: textblock
7031 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:268
7032 msgid "Do not use standard load path for modules."
7033 msgstr ""
7034
7035 #. type: =item
7036 #: ../src/guestfs-actions.pod:408 ../fish/guestfish-actions.pod:270
7037 msgid "C<AUG_SAVE_NOOP> = 16"
7038 msgstr "C<AUG_SAVE_NOOP> = 16"
7039
7040 #. type: textblock
7041 #: ../src/guestfs-actions.pod:410 ../fish/guestfish-actions.pod:272
7042 msgid "Make save a no-op, just record what would have been changed."
7043 msgstr ""
7044
7045 #. type: =item
7046 #: ../src/guestfs-actions.pod:412 ../fish/guestfish-actions.pod:274
7047 msgid "C<AUG_NO_LOAD> = 32"
7048 msgstr "C<AUG_NO_LOAD> = 32"
7049
7050 #. type: textblock
7051 #: ../src/guestfs-actions.pod:414
7052 msgid "Do not load the tree in C<guestfs_aug_init>."
7053 msgstr ""
7054
7055 #. type: textblock
7056 #: ../src/guestfs-actions.pod:418
7057 msgid "To close the handle, you can call C<guestfs_aug_close>."
7058 msgstr ""
7059
7060 #. type: textblock
7061 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:282
7062 msgid "To find out more about Augeas, see L<http://augeas.net/>."
7063 msgstr ""
7064
7065 #. type: =head2
7066 #: ../src/guestfs-actions.pod:426
7067 msgid "guestfs_aug_insert"
7068 msgstr ""
7069
7070 #. type: verbatim
7071 #: ../src/guestfs-actions.pod:428
7072 #, no-wrap
7073 msgid ""
7074 " int\n"
7075 " guestfs_aug_insert (guestfs_h *g,\n"
7076 "                     const char *augpath,\n"
7077 "                     const char *label,\n"
7078 "                     int before);\n"
7079 "\n"
7080 msgstr ""
7081
7082 #. type: textblock
7083 #: ../src/guestfs-actions.pod:434 ../fish/guestfish-actions.pod:288
7084 msgid ""
7085 "Create a new sibling C<label> for C<path>, inserting it into the tree before"
7086 " or after C<path> (depending on the boolean flag C<before>)."
7087 msgstr ""
7088
7089 #. type: textblock
7090 #: ../src/guestfs-actions.pod:438 ../fish/guestfish-actions.pod:292
7091 msgid ""
7092 "C<path> must match exactly one existing node in the tree, and C<label> must "
7093 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
7094 msgstr ""
7095
7096 #. type: =head2
7097 #: ../src/guestfs-actions.pod:446
7098 msgid "guestfs_aug_load"
7099 msgstr ""
7100
7101 #. type: verbatim
7102 #: ../src/guestfs-actions.pod:448
7103 #, no-wrap
7104 msgid ""
7105 " int\n"
7106 " guestfs_aug_load (guestfs_h *g);\n"
7107 "\n"
7108 msgstr ""
7109
7110 #. type: textblock
7111 #: ../src/guestfs-actions.pod:451 ../fish/guestfish-actions.pod:300
7112 msgid "Load files into the tree."
7113 msgstr "Завантажити файли до ієрархії."
7114
7115 #. type: textblock
7116 #: ../src/guestfs-actions.pod:453 ../fish/guestfish-actions.pod:302
7117 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
7118 msgstr ""
7119
7120 #. type: =head2
7121 #: ../src/guestfs-actions.pod:460
7122 msgid "guestfs_aug_ls"
7123 msgstr ""
7124
7125 #. type: verbatim
7126 #: ../src/guestfs-actions.pod:462
7127 #, no-wrap
7128 msgid ""
7129 " char **\n"
7130 " guestfs_aug_ls (guestfs_h *g,\n"
7131 "                 const char *augpath);\n"
7132 "\n"
7133 msgstr ""
7134
7135 #. type: textblock
7136 #: ../src/guestfs-actions.pod:466
7137 msgid ""
7138 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
7139 "sorting the resulting nodes into alphabetical order."
7140 msgstr ""
7141
7142 #. type: textblock
7143 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:485
7144 #: ../src/guestfs-actions.pod:631 ../src/guestfs-actions.pod:1138
7145 #: ../src/guestfs-actions.pod:1434 ../src/guestfs-actions.pod:1453
7146 #: ../src/guestfs-actions.pod:1556 ../src/guestfs-actions.pod:1575
7147 #: ../src/guestfs-actions.pod:1821 ../src/guestfs-actions.pod:2274
7148 #: ../src/guestfs-actions.pod:2290 ../src/guestfs-actions.pod:2309
7149 #: ../src/guestfs-actions.pod:2352 ../src/guestfs-actions.pod:2376
7150 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2496
7151 #: ../src/guestfs-actions.pod:2753 ../src/guestfs-actions.pod:3127
7152 #: ../src/guestfs-actions.pod:3403 ../src/guestfs-actions.pod:3717
7153 #: ../src/guestfs-actions.pod:3734 ../src/guestfs-actions.pod:3754
7154 #: ../src/guestfs-actions.pod:3816 ../src/guestfs-actions.pod:3921
7155 #: ../src/guestfs-actions.pod:4329 ../src/guestfs-actions.pod:5096
7156 #: ../src/guestfs-actions.pod:5708 ../src/guestfs-actions.pod:5834
7157 #: ../src/guestfs-actions.pod:5948 ../src/guestfs-actions.pod:6697
7158 #: ../src/guestfs-actions.pod:6758 ../src/guestfs-actions.pod:6813
7159 #: ../src/guestfs-actions.pod:6959 ../src/guestfs-actions.pod:6983
7160 #: ../src/guestfs-actions.pod:7459 ../src/guestfs-actions.pod:7479
7161 #: ../src/guestfs-actions.pod:7526 ../src/guestfs-actions.pod:7718
7162 #: ../src/guestfs-actions.pod:7737 ../src/guestfs-actions.pod:7823
7163 #: ../src/guestfs-actions.pod:7842 ../src/guestfs-actions.pod:7888
7164 #: ../src/guestfs-actions.pod:7907
7165 msgid ""
7166 "This function returns a NULL-terminated array of strings (like "
7167 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
7168 "strings and the array after use>."
7169 msgstr ""
7170
7171 #. type: textblock
7172 #: ../src/guestfs-actions.pod:473 ../src/guestfs-actions.pod:1063
7173 #: ../src/guestfs-actions.pod:1081 ../src/guestfs-actions.pod:1491
7174 #: ../src/guestfs-actions.pod:3481 ../src/guestfs-actions.pod:3512
7175 #: ../src/guestfs-actions.pod:4170 ../src/guestfs-actions.pod:4220
7176 #: ../src/guestfs-actions.pod:4407 ../src/guestfs-actions.pod:4440
7177 #: ../src/guestfs-actions.pod:4603 ../src/guestfs-actions.pod:5100
7178 #: ../src/guestfs-actions.pod:5649 ../src/guestfs-actions.pod:6046
7179 #: ../src/guestfs-actions.pod:6060 ../src/guestfs-actions.pod:6072
7180 #: ../src/guestfs-actions.pod:6538 ../src/guestfs-actions.pod:7197
7181 #: ../src/guestfs-actions.pod:7210 ../src/guestfs-actions.pod:7443
7182 #: ../src/guestfs-actions.pod:7706
7183 msgid "(Added in 0.8)"
7184 msgstr ""
7185
7186 #. type: =head2
7187 #: ../src/guestfs-actions.pod:475
7188 msgid "guestfs_aug_match"
7189 msgstr ""
7190
7191 #. type: verbatim
7192 #: ../src/guestfs-actions.pod:477
7193 #, no-wrap
7194 msgid ""
7195 " char **\n"
7196 " guestfs_aug_match (guestfs_h *g,\n"
7197 "                    const char *augpath);\n"
7198 "\n"
7199 msgstr ""
7200
7201 #. type: textblock
7202 #: ../src/guestfs-actions.pod:481 ../fish/guestfish-actions.pod:316
7203 msgid ""
7204 "Returns a list of paths which match the path expression C<path>.  The "
7205 "returned paths are sufficiently qualified so that they match exactly one "
7206 "node in the current tree."
7207 msgstr ""
7208
7209 #. type: =head2
7210 #: ../src/guestfs-actions.pod:491
7211 msgid "guestfs_aug_mv"
7212 msgstr ""
7213
7214 #. type: verbatim
7215 #: ../src/guestfs-actions.pod:493
7216 #, no-wrap
7217 msgid ""
7218 " int\n"
7219 " guestfs_aug_mv (guestfs_h *g,\n"
7220 "                 const char *src,\n"
7221 "                 const char *dest);\n"
7222 "\n"
7223 msgstr ""
7224
7225 #. type: textblock
7226 #: ../src/guestfs-actions.pod:498 ../fish/guestfish-actions.pod:324
7227 msgid ""
7228 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
7229 "C<dest> is overwritten if it exists."
7230 msgstr ""
7231
7232 #. type: =head2
7233 #: ../src/guestfs-actions.pod:505
7234 msgid "guestfs_aug_rm"
7235 msgstr ""
7236
7237 #. type: verbatim
7238 #: ../src/guestfs-actions.pod:507
7239 #, no-wrap
7240 msgid ""
7241 " int\n"
7242 " guestfs_aug_rm (guestfs_h *g,\n"
7243 "                 const char *augpath);\n"
7244 "\n"
7245 msgstr ""
7246
7247 #. type: textblock
7248 #: ../src/guestfs-actions.pod:511 ../fish/guestfish-actions.pod:331
7249 msgid "Remove C<path> and all of its children."
7250 msgstr ""
7251
7252 #. type: textblock
7253 #: ../src/guestfs-actions.pod:513 ../fish/guestfish-actions.pod:333
7254 msgid "On success this returns the number of entries which were removed."
7255 msgstr ""
7256
7257 #. type: =head2
7258 #: ../src/guestfs-actions.pod:519
7259 msgid "guestfs_aug_save"
7260 msgstr ""
7261
7262 #. type: verbatim
7263 #: ../src/guestfs-actions.pod:521
7264 #, no-wrap
7265 msgid ""
7266 " int\n"
7267 " guestfs_aug_save (guestfs_h *g);\n"
7268 "\n"
7269 msgstr ""
7270
7271 #. type: textblock
7272 #: ../src/guestfs-actions.pod:524 ../fish/guestfish-actions.pod:339
7273 msgid "This writes all pending changes to disk."
7274 msgstr ""
7275
7276 #. type: textblock
7277 #: ../src/guestfs-actions.pod:526
7278 msgid ""
7279 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
7280 "are saved."
7281 msgstr ""
7282
7283 #. type: =head2
7284 #: ../src/guestfs-actions.pod:533
7285 msgid "guestfs_aug_set"
7286 msgstr ""
7287
7288 #. type: verbatim
7289 #: ../src/guestfs-actions.pod:535
7290 #, no-wrap
7291 msgid ""
7292 " int\n"
7293 " guestfs_aug_set (guestfs_h *g,\n"
7294 "                  const char *augpath,\n"
7295 "                  const char *val);\n"
7296 "\n"
7297 msgstr ""
7298
7299 #. type: textblock
7300 #: ../src/guestfs-actions.pod:540 ../fish/guestfish-actions.pod:348
7301 msgid "Set the value associated with C<path> to C<val>."
7302 msgstr ""
7303
7304 #. type: textblock
7305 #: ../src/guestfs-actions.pod:542
7306 msgid ""
7307 "In the Augeas API, it is possible to clear a node by setting the value to "
7308 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
7309 "this call.  Instead you must use the C<guestfs_aug_clear> call."
7310 msgstr ""
7311
7312 #. type: =head2
7313 #: ../src/guestfs-actions.pod:551
7314 msgid "guestfs_available"
7315 msgstr ""
7316
7317 #. type: verbatim
7318 #: ../src/guestfs-actions.pod:553
7319 #, no-wrap
7320 msgid ""
7321 " int\n"
7322 " guestfs_available (guestfs_h *g,\n"
7323 "                    char *const *groups);\n"
7324 "\n"
7325 msgstr ""
7326
7327 #. type: textblock
7328 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:359
7329 msgid ""
7330 "This command is used to check the availability of some groups of "
7331 "functionality in the appliance, which not all builds of the libguestfs "
7332 "appliance will be able to provide."
7333 msgstr ""
7334
7335 #. type: textblock
7336 #: ../src/guestfs-actions.pod:561
7337 msgid ""
7338 "The libguestfs groups, and the functions that those groups correspond to, "
7339 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
7340 "runtime by calling C<guestfs_available_all_groups>."
7341 msgstr ""
7342
7343 #. type: textblock
7344 #: ../src/guestfs-actions.pod:566 ../fish/guestfish-actions.pod:368
7345 msgid ""
7346 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
7347 "\"augeas\"]> would check for the availability of the Linux inotify functions"
7348 " and Augeas (configuration file editing) functions."
7349 msgstr ""
7350
7351 #. type: textblock
7352 #: ../src/guestfs-actions.pod:571 ../fish/guestfish-actions.pod:373
7353 msgid "The command returns no error if I<all> requested groups are available."
7354 msgstr ""
7355
7356 #. type: textblock
7357 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:375
7358 msgid ""
7359 "It fails with an error if one or more of the requested groups is unavailable"
7360 " in the appliance."
7361 msgstr ""
7362
7363 #. type: textblock
7364 #: ../src/guestfs-actions.pod:576 ../fish/guestfish-actions.pod:378
7365 msgid ""
7366 "If an unknown group name is included in the list of groups then an error is "
7367 "always returned."
7368 msgstr ""
7369
7370 #. type: textblock
7371 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:381
7372 msgid "I<Notes:>"
7373 msgstr "I<Нотатки:>"
7374
7375 #. type: textblock
7376 #: ../src/guestfs-actions.pod:585
7377 msgid "You must call C<guestfs_launch> before calling this function."
7378 msgstr ""
7379
7380 #. type: textblock
7381 #: ../src/guestfs-actions.pod:587 ../fish/guestfish-actions.pod:389
7382 msgid ""
7383 "The reason is because we don't know what groups are supported by the "
7384 "appliance/daemon until it is running and can be queried."
7385 msgstr ""
7386
7387 #. type: textblock
7388 #: ../src/guestfs-actions.pod:593 ../fish/guestfish-actions.pod:395
7389 msgid ""
7390 "If a group of functions is available, this does not necessarily mean that "
7391 "they will work.  You still have to check for errors when calling individual "
7392 "API functions even if they are available."
7393 msgstr ""
7394
7395 #. type: textblock
7396 #: ../src/guestfs-actions.pod:600 ../fish/guestfish-actions.pod:402
7397 msgid ""
7398 "It is usually the job of distro packagers to build complete functionality "
7399 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
7400 "with all requirements satisfied, will support everything."
7401 msgstr ""
7402
7403 #. type: textblock
7404 #: ../src/guestfs-actions.pod:607
7405 msgid ""
7406 "This call was added in version C<1.0.80>.  In previous versions of "
7407 "libguestfs all you could do would be to speculatively execute a command to "
7408 "find out if the daemon implemented it.  See also C<guestfs_version>."
7409 msgstr ""
7410
7411 #. type: textblock
7412 #: ../src/guestfs-actions.pod:616 ../src/guestfs-actions.pod:1236
7413 msgid "(Added in 1.0.80)"
7414 msgstr ""
7415
7416 #. type: =head2
7417 #: ../src/guestfs-actions.pod:618
7418 msgid "guestfs_available_all_groups"
7419 msgstr ""
7420
7421 #. type: verbatim
7422 #: ../src/guestfs-actions.pod:620
7423 #, no-wrap
7424 msgid ""
7425 " char **\n"
7426 " guestfs_available_all_groups (guestfs_h *g);\n"
7427 "\n"
7428 msgstr ""
7429
7430 #. type: textblock
7431 #: ../src/guestfs-actions.pod:623
7432 msgid ""
7433 "This command returns a list of all optional groups that this daemon knows "
7434 "about.  Note this returns both supported and unsupported groups.  To find "
7435 "out which ones the daemon can actually support you have to call "
7436 "C<guestfs_available> on each member of the returned list."
7437 msgstr ""
7438
7439 #. type: textblock
7440 #: ../src/guestfs-actions.pod:629
7441 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
7442 msgstr ""
7443
7444 #. type: textblock
7445 #: ../src/guestfs-actions.pod:635
7446 msgid "(Added in 1.3.15)"
7447 msgstr ""
7448
7449 #. type: =head2
7450 #: ../src/guestfs-actions.pod:637
7451 msgid "guestfs_base64_in"
7452 msgstr ""
7453
7454 #. type: verbatim
7455 #: ../src/guestfs-actions.pod:639
7456 #, no-wrap
7457 msgid ""
7458 " int\n"
7459 " guestfs_base64_in (guestfs_h *g,\n"
7460 "                    const char *base64file,\n"
7461 "                    const char *filename);\n"
7462 "\n"
7463 msgstr ""
7464
7465 #. type: textblock
7466 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:432
7467 msgid ""
7468 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7469 msgstr ""
7470
7471 #. type: textblock
7472 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:663
7473 msgid "(Added in 1.3.5)"
7474 msgstr ""
7475
7476 #. type: =head2
7477 #: ../src/guestfs-actions.pod:651
7478 msgid "guestfs_base64_out"
7479 msgstr ""
7480
7481 #. type: verbatim
7482 #: ../src/guestfs-actions.pod:653
7483 #, no-wrap
7484 msgid ""
7485 " int\n"
7486 " guestfs_base64_out (guestfs_h *g,\n"
7487 "                     const char *filename,\n"
7488 "                     const char *base64file);\n"
7489 "\n"
7490 msgstr ""
7491
7492 #. type: textblock
7493 #: ../src/guestfs-actions.pod:658 ../fish/guestfish-actions.pod:441
7494 msgid ""
7495 "This command downloads the contents of C<filename>, writing it out to local "
7496 "file C<base64file> encoded as base64."
7497 msgstr ""
7498
7499 #. type: =head2
7500 #: ../src/guestfs-actions.pod:665
7501 msgid "guestfs_blockdev_flushbufs"
7502 msgstr ""
7503
7504 #. type: verbatim
7505 #: ../src/guestfs-actions.pod:667
7506 #, no-wrap
7507 msgid ""
7508 " int\n"
7509 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
7510 "                             const char *device);\n"
7511 "\n"
7512 msgstr ""
7513
7514 #. type: textblock
7515 #: ../src/guestfs-actions.pod:671 ../fish/guestfish-actions.pod:450
7516 msgid ""
7517 "This tells the kernel to flush internal buffers associated with C<device>."
7518 msgstr ""
7519
7520 #. type: textblock
7521 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:691
7522 #: ../src/guestfs-actions.pod:706 ../src/guestfs-actions.pod:722
7523 #: ../src/guestfs-actions.pod:740 ../src/guestfs-actions.pod:759
7524 #: ../src/guestfs-actions.pod:773 ../src/guestfs-actions.pod:791
7525 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:819
7526 #: ../fish/guestfish-actions.pod:453 ../fish/guestfish-actions.pod:464
7527 #: ../fish/guestfish-actions.pod:473 ../fish/guestfish-actions.pod:483
7528 #: ../fish/guestfish-actions.pod:495 ../fish/guestfish-actions.pod:508
7529 #: ../fish/guestfish-actions.pod:516 ../fish/guestfish-actions.pod:527
7530 #: ../fish/guestfish-actions.pod:535 ../fish/guestfish-actions.pod:543
7531 msgid "This uses the L<blockdev(8)> command."
7532 msgstr ""
7533
7534 #. type: textblock
7535 #: ../src/guestfs-actions.pod:678 ../src/guestfs-actions.pod:695
7536 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:726
7537 #: ../src/guestfs-actions.pod:744 ../src/guestfs-actions.pod:763
7538 #: ../src/guestfs-actions.pod:777 ../src/guestfs-actions.pod:795
7539 #: ../src/guestfs-actions.pod:809 ../src/guestfs-actions.pod:823
7540 msgid "(Added in 0.9.3)"
7541 msgstr ""
7542
7543 #. type: =head2
7544 #: ../src/guestfs-actions.pod:680
7545 msgid "guestfs_blockdev_getbsz"
7546 msgstr ""
7547
7548 #. type: verbatim
7549 #: ../src/guestfs-actions.pod:682
7550 #, no-wrap
7551 msgid ""
7552 " int\n"
7553 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
7554 "                          const char *device);\n"
7555 "\n"
7556 msgstr ""
7557
7558 #. type: textblock
7559 #: ../src/guestfs-actions.pod:686 ../fish/guestfish-actions.pod:459
7560 msgid "This returns the block size of a device."
7561 msgstr ""
7562
7563 #. type: textblock
7564 #: ../src/guestfs-actions.pod:688 ../src/guestfs-actions.pod:788
7565 #: ../fish/guestfish-actions.pod:461 ../fish/guestfish-actions.pod:524
7566 msgid ""
7567 "(Note this is different from both I<size in blocks> and I<filesystem block "
7568 "size>)."
7569 msgstr ""
7570
7571 #. type: =head2
7572 #: ../src/guestfs-actions.pod:697
7573 msgid "guestfs_blockdev_getro"
7574 msgstr ""
7575
7576 #. type: verbatim
7577 #: ../src/guestfs-actions.pod:699
7578 #, no-wrap
7579 msgid ""
7580 " int\n"
7581 " guestfs_blockdev_getro (guestfs_h *g,\n"
7582 "                         const char *device);\n"
7583 "\n"
7584 msgstr ""
7585
7586 #. type: textblock
7587 #: ../src/guestfs-actions.pod:703 ../fish/guestfish-actions.pod:470
7588 msgid ""
7589 "Returns a boolean indicating if the block device is read-only (true if read-"
7590 "only, false if not)."
7591 msgstr ""
7592
7593 #. type: textblock
7594 #: ../src/guestfs-actions.pod:708 ../src/guestfs-actions.pod:1474
7595 #: ../src/guestfs-actions.pod:1489 ../src/guestfs-actions.pod:1978
7596 #: ../src/guestfs-actions.pod:1989 ../src/guestfs-actions.pod:2061
7597 #: ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2125
7598 #: ../src/guestfs-actions.pod:2140 ../src/guestfs-actions.pod:2165
7599 #: ../src/guestfs-actions.pod:2188 ../src/guestfs-actions.pod:3224
7600 #: ../src/guestfs-actions.pod:3240 ../src/guestfs-actions.pod:3258
7601 #: ../src/guestfs-actions.pod:3420 ../src/guestfs-actions.pod:3434
7602 #: ../src/guestfs-actions.pod:3449 ../src/guestfs-actions.pod:3463
7603 #: ../src/guestfs-actions.pod:3479 ../src/guestfs-actions.pod:3494
7604 #: ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3524
7605 #: ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3551
7606 #: ../src/guestfs-actions.pod:3566 ../src/guestfs-actions.pod:3581
7607 #: ../src/guestfs-actions.pod:3594 ../src/guestfs-actions.pod:3608
7608 #: ../src/guestfs-actions.pod:5337
7609 msgid "This function returns a C truth value on success or -1 on error."
7610 msgstr ""
7611
7612 #. type: =head2
7613 #: ../src/guestfs-actions.pod:712
7614 msgid "guestfs_blockdev_getsize64"
7615 msgstr ""
7616
7617 #. type: verbatim
7618 #: ../src/guestfs-actions.pod:714
7619 #, no-wrap
7620 msgid ""
7621 " int64_t\n"
7622 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
7623 "                             const char *device);\n"
7624 "\n"
7625 msgstr ""
7626
7627 #. type: textblock
7628 #: ../src/guestfs-actions.pod:718 ../fish/guestfish-actions.pod:479
7629 msgid "This returns the size of the device in bytes."
7630 msgstr ""
7631
7632 #. type: textblock
7633 #: ../src/guestfs-actions.pod:720
7634 msgid "See also C<guestfs_blockdev_getsz>."
7635 msgstr ""
7636
7637 #. type: =head2
7638 #: ../src/guestfs-actions.pod:728
7639 msgid "guestfs_blockdev_getss"
7640 msgstr ""
7641
7642 #. type: verbatim
7643 #: ../src/guestfs-actions.pod:730
7644 #, no-wrap
7645 msgid ""
7646 " int\n"
7647 " guestfs_blockdev_getss (guestfs_h *g,\n"
7648 "                         const char *device);\n"
7649 "\n"
7650 msgstr ""
7651
7652 #. type: textblock
7653 #: ../src/guestfs-actions.pod:734 ../fish/guestfish-actions.pod:489
7654 msgid ""
7655 "This returns the size of sectors on a block device.  Usually 512, but can be"
7656 " larger for modern devices."
7657 msgstr ""
7658
7659 #. type: textblock
7660 #: ../src/guestfs-actions.pod:737
7661 msgid ""
7662 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
7663 "that)."
7664 msgstr ""
7665
7666 #. type: =head2
7667 #: ../src/guestfs-actions.pod:746
7668 msgid "guestfs_blockdev_getsz"
7669 msgstr ""
7670
7671 #. type: verbatim
7672 #: ../src/guestfs-actions.pod:748
7673 #, no-wrap
7674 msgid ""
7675 " int64_t\n"
7676 " guestfs_blockdev_getsz (guestfs_h *g,\n"
7677 "                         const char *device);\n"
7678 "\n"
7679 msgstr ""
7680
7681 #. type: textblock
7682 #: ../src/guestfs-actions.pod:752 ../fish/guestfish-actions.pod:501
7683 msgid ""
7684 "This returns the size of the device in units of 512-byte sectors (even if "
7685 "the sectorsize isn't 512 bytes ... weird)."
7686 msgstr ""
7687
7688 #. type: textblock
7689 #: ../src/guestfs-actions.pod:755
7690 msgid ""
7691 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
7692 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
7693 msgstr ""
7694
7695 #. type: =head2
7696 #: ../src/guestfs-actions.pod:765
7697 msgid "guestfs_blockdev_rereadpt"
7698 msgstr ""
7699
7700 #. type: verbatim
7701 #: ../src/guestfs-actions.pod:767
7702 #, no-wrap
7703 msgid ""
7704 " int\n"
7705 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
7706 "                            const char *device);\n"
7707 "\n"
7708 msgstr ""
7709
7710 #. type: textblock
7711 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:514
7712 msgid "Reread the partition table on C<device>."
7713 msgstr ""
7714
7715 #. type: =head2
7716 #: ../src/guestfs-actions.pod:779
7717 msgid "guestfs_blockdev_setbsz"
7718 msgstr ""
7719
7720 #. type: verbatim
7721 #: ../src/guestfs-actions.pod:781
7722 #, no-wrap
7723 msgid ""
7724 " int\n"
7725 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
7726 "                          const char *device,\n"
7727 "                          int blocksize);\n"
7728 "\n"
7729 msgstr ""
7730
7731 #. type: textblock
7732 #: ../src/guestfs-actions.pod:786 ../fish/guestfish-actions.pod:522
7733 msgid "This sets the block size of a device."
7734 msgstr ""
7735
7736 #. type: =head2
7737 #: ../src/guestfs-actions.pod:797
7738 msgid "guestfs_blockdev_setro"
7739 msgstr ""
7740
7741 #. type: verbatim
7742 #: ../src/guestfs-actions.pod:799
7743 #, no-wrap
7744 msgid ""
7745 " int\n"
7746 " guestfs_blockdev_setro (guestfs_h *g,\n"
7747 "                         const char *device);\n"
7748 "\n"
7749 msgstr ""
7750
7751 #. type: textblock
7752 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:533
7753 msgid "Sets the block device named C<device> to read-only."
7754 msgstr ""
7755
7756 #. type: =head2
7757 #: ../src/guestfs-actions.pod:811
7758 msgid "guestfs_blockdev_setrw"
7759 msgstr ""
7760
7761 #. type: verbatim
7762 #: ../src/guestfs-actions.pod:813
7763 #, no-wrap
7764 msgid ""
7765 " int\n"
7766 " guestfs_blockdev_setrw (guestfs_h *g,\n"
7767 "                         const char *device);\n"
7768 "\n"
7769 msgstr ""
7770
7771 #. type: textblock
7772 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:541
7773 msgid "Sets the block device named C<device> to read-write."
7774 msgstr ""
7775
7776 #. type: =head2
7777 #: ../src/guestfs-actions.pod:825
7778 msgid "guestfs_btrfs_filesystem_resize"
7779 msgstr ""
7780
7781 #. type: verbatim
7782 #: ../src/guestfs-actions.pod:827
7783 #, no-wrap
7784 msgid ""
7785 " int\n"
7786 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
7787 "                                  const char *mountpoint,\n"
7788 "                                  ...);\n"
7789 "\n"
7790 msgstr ""
7791
7792 #. type: verbatim
7793 #: ../src/guestfs-actions.pod:837
7794 #, no-wrap
7795 msgid ""
7796 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
7797 "\n"
7798 msgstr ""
7799
7800 #. type: textblock
7801 #: ../src/guestfs-actions.pod:839 ../fish/guestfish-actions.pod:549
7802 msgid "This command resizes a btrfs filesystem."
7803 msgstr ""
7804
7805 #. type: textblock
7806 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:551
7807 msgid ""
7808 "Note that unlike other resize calls, the filesystem has to be mounted and "
7809 "the parameter is the mountpoint not the device (this is a requirement of "
7810 "btrfs itself)."
7811 msgstr ""
7812
7813 #. type: textblock
7814 #: ../src/guestfs-actions.pod:845 ../src/guestfs-actions.pod:5187
7815 #: ../fish/guestfish-actions.pod:555 ../fish/guestfish-actions.pod:3417
7816 msgid "The optional parameters are:"
7817 msgstr ""
7818
7819 #. type: =item
7820 #: ../src/guestfs-actions.pod:849 ../src/guestfs-actions.pod:5191
7821 #: ../fish/guestfish-actions.pod:559 ../fish/guestfish-actions.pod:3421
7822 msgid "C<size>"
7823 msgstr ""
7824
7825 #. type: textblock
7826 #: ../src/guestfs-actions.pod:851 ../fish/guestfish-actions.pod:561
7827 msgid ""
7828 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7829 "resized to the maximum size."
7830 msgstr ""
7831
7832 #. type: textblock
7833 #: ../src/guestfs-actions.pod:856 ../fish/guestfish-actions.pod:566
7834 msgid "See also L<btrfs(8)>."
7835 msgstr ""
7836
7837 #. type: textblock
7838 #: ../src/guestfs-actions.pod:860
7839 msgid "(Added in 1.11.17)"
7840 msgstr ""
7841
7842 #. type: =head2
7843 #: ../src/guestfs-actions.pod:862
7844 msgid "guestfs_btrfs_filesystem_resize_va"
7845 msgstr ""
7846
7847 #. type: verbatim
7848 #: ../src/guestfs-actions.pod:864
7849 #, no-wrap
7850 msgid ""
7851 " int\n"
7852 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
7853 "                                     const char *mountpoint,\n"
7854 "                                     va_list args);\n"
7855 "\n"
7856 msgstr ""
7857
7858 #. type: textblock
7859 #: ../src/guestfs-actions.pod:869
7860 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
7861 msgstr ""
7862
7863 #. type: =head2
7864 #: ../src/guestfs-actions.pod:873
7865 msgid "guestfs_btrfs_filesystem_resize_argv"
7866 msgstr ""
7867
7868 #. type: verbatim
7869 #: ../src/guestfs-actions.pod:875
7870 #, no-wrap
7871 msgid ""
7872 " int\n"
7873 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
7874 "                                       const char *mountpoint,\n"
7875 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
7876 "\n"
7877 msgstr ""
7878
7879 #. type: textblock
7880 #: ../src/guestfs-actions.pod:880
7881 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
7882 msgstr ""
7883
7884 #. type: =head2
7885 #: ../src/guestfs-actions.pod:884
7886 msgid "guestfs_case_sensitive_path"
7887 msgstr ""
7888
7889 #. type: verbatim
7890 #: ../src/guestfs-actions.pod:886
7891 #, no-wrap
7892 msgid ""
7893 " char *\n"
7894 " guestfs_case_sensitive_path (guestfs_h *g,\n"
7895 "                              const char *path);\n"
7896 "\n"
7897 msgstr ""
7898
7899 #. type: textblock
7900 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:574
7901 msgid ""
7902 "This can be used to resolve case insensitive paths on a filesystem which is "
7903 "case sensitive.  The use case is to resolve paths which you have read from "
7904 "Windows configuration files or the Windows Registry, to the true path."
7905 msgstr ""
7906
7907 #. type: textblock
7908 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:579
7909 msgid ""
7910 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7911 "(and probably others), which is that although the underlying filesystem is "
7912 "case-insensitive, the driver exports the filesystem to Linux as case-"
7913 "sensitive."
7914 msgstr ""
7915
7916 #. type: textblock
7917 #: ../src/guestfs-actions.pod:900 ../fish/guestfish-actions.pod:584
7918 msgid ""
7919 "One consequence of this is that special directories such as C<c:\\windows> "
7920 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7921 "precise details of how they were created.  In Windows itself this would not "
7922 "be a problem."
7923 msgstr ""
7924
7925 #. type: textblock
7926 #: ../src/guestfs-actions.pod:906 ../fish/guestfish-actions.pod:590
7927 msgid ""
7928 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-"
7929 "faq/#posixfilenames1>"
7930 msgstr ""
7931
7932 #. type: textblock
7933 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:593
7934 msgid ""
7935 "This function resolves the true case of each element in the path and returns"
7936 " the case-sensitive path."
7937 msgstr ""
7938
7939 #. type: textblock
7940 #: ../src/guestfs-actions.pod:912
7941 msgid ""
7942 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
7943 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
7944 "how the directories were originally created under Windows)."
7945 msgstr ""
7946
7947 #. type: textblock
7948 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:601
7949 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7950 msgstr ""
7951
7952 #. type: textblock
7953 #: ../src/guestfs-actions.pod:920
7954 msgid "See also C<guestfs_realpath>."
7955 msgstr ""
7956
7957 #. type: textblock
7958 #: ../src/guestfs-actions.pod:925 ../src/guestfs-actions.pod:7377
7959 msgid "(Added in 1.0.75)"
7960 msgstr ""
7961
7962 #. type: =head2
7963 #: ../src/guestfs-actions.pod:927
7964 msgid "guestfs_cat"
7965 msgstr ""
7966
7967 #. type: verbatim
7968 #: ../src/guestfs-actions.pod:929
7969 #, no-wrap
7970 msgid ""
7971 " char *\n"
7972 " guestfs_cat (guestfs_h *g,\n"
7973 "              const char *path);\n"
7974 "\n"
7975 msgstr ""
7976
7977 #. type: textblock
7978 #: ../src/guestfs-actions.pod:933 ../src/guestfs-actions.pod:5824
7979 #: ../fish/guestfish-actions.pod:610 ../fish/guestfish-actions.pod:3831
7980 msgid "Return the contents of the file named C<path>."
7981 msgstr ""
7982
7983 #. type: textblock
7984 #: ../src/guestfs-actions.pod:935
7985 msgid ""
7986 "Note that this function cannot correctly handle binary files (specifically, "
7987 "files containing C<\\0> character which is treated as end of string).  For "
7988 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
7989 "functions which have a more complex interface."
7990 msgstr ""
7991
7992 #. type: textblock
7993 #: ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1122
7994 #: ../src/guestfs-actions.pod:1142 ../src/guestfs-actions.pod:1438
7995 #: ../src/guestfs-actions.pod:1457 ../src/guestfs-actions.pod:1560
7996 #: ../src/guestfs-actions.pod:1579 ../src/guestfs-actions.pod:1825
7997 #: ../src/guestfs-actions.pod:2294 ../src/guestfs-actions.pod:2313
7998 #: ../src/guestfs-actions.pod:2356 ../src/guestfs-actions.pod:2380
7999 #: ../src/guestfs-actions.pod:2397 ../src/guestfs-actions.pod:2426
8000 #: ../src/guestfs-actions.pod:5606 ../src/guestfs-actions.pod:5632
8001 #: ../src/guestfs-actions.pod:5763 ../src/guestfs-actions.pod:5789
8002 #: ../src/guestfs-actions.pod:5813 ../src/guestfs-actions.pod:6762
8003 #: ../src/guestfs-actions.pod:6817 ../src/guestfs-actions.pod:6963
8004 #: ../src/guestfs-actions.pod:6987 ../src/guestfs-actions.pod:7652
8005 #: ../src/guestfs-actions.pod:7672 ../src/guestfs-actions.pod:7696
8006 #: ../src/guestfs-actions.pod:7722 ../src/guestfs-actions.pod:7741
8007 #: ../src/guestfs-actions.pod:7827 ../src/guestfs-actions.pod:7846
8008 #: ../src/guestfs-actions.pod:7892 ../src/guestfs-actions.pod:7911
8009 #: ../fish/guestfish-actions.pod:617 ../fish/guestfish-actions.pod:752
8010 #: ../fish/guestfish-actions.pod:764 ../fish/guestfish-actions.pod:940
8011 #: ../fish/guestfish-actions.pod:950 ../fish/guestfish-actions.pod:1017
8012 #: ../fish/guestfish-actions.pod:1027 ../fish/guestfish-actions.pod:1219
8013 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:1536
8014 #: ../fish/guestfish-actions.pod:1564 ../fish/guestfish-actions.pod:1579
8015 #: ../fish/guestfish-actions.pod:1589 ../fish/guestfish-actions.pod:1608
8016 #: ../fish/guestfish-actions.pod:3701 ../fish/guestfish-actions.pod:3716
8017 #: ../fish/guestfish-actions.pod:3792 ../fish/guestfish-actions.pod:3809
8018 #: ../fish/guestfish-actions.pod:3824 ../fish/guestfish-actions.pod:4493
8019 #: ../fish/guestfish-actions.pod:4539 ../fish/guestfish-actions.pod:4624
8020 #: ../fish/guestfish-actions.pod:4639 ../fish/guestfish-actions.pod:5045
8021 #: ../fish/guestfish-actions.pod:5057 ../fish/guestfish-actions.pod:5075
8022 #: ../fish/guestfish-actions.pod:5092 ../fish/guestfish-actions.pod:5102
8023 #: ../fish/guestfish-actions.pod:5151 ../fish/guestfish-actions.pod:5161
8024 #: ../fish/guestfish-actions.pod:5190 ../fish/guestfish-actions.pod:5200
8025 msgid ""
8026 "Because of the message protocol, there is a transfer limit of somewhere "
8027 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
8028 msgstr ""
8029
8030 #. type: textblock
8031 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:3738
8032 #: ../src/guestfs-actions.pod:3820 ../src/guestfs-actions.pod:3837
8033 #: ../src/guestfs-actions.pod:3925 ../src/guestfs-actions.pod:4333
8034 #: ../src/guestfs-actions.pod:4347 ../src/guestfs-actions.pod:5712
8035 #: ../src/guestfs-actions.pod:5726 ../src/guestfs-actions.pod:7530
8036 #: ../src/guestfs-actions.pod:7544
8037 msgid "(Added in 0.4)"
8038 msgstr ""
8039
8040 #. type: =head2
8041 #: ../src/guestfs-actions.pod:948
8042 msgid "guestfs_checksum"
8043 msgstr ""
8044
8045 #. type: verbatim
8046 #: ../src/guestfs-actions.pod:950
8047 #, no-wrap
8048 msgid ""
8049 " char *\n"
8050 " guestfs_checksum (guestfs_h *g,\n"
8051 "                   const char *csumtype,\n"
8052 "                   const char *path);\n"
8053 "\n"
8054 msgstr ""
8055
8056 #. type: textblock
8057 #: ../src/guestfs-actions.pod:955 ../fish/guestfish-actions.pod:624
8058 msgid ""
8059 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
8060 msgstr ""
8061
8062 #. type: textblock
8063 #: ../src/guestfs-actions.pod:958 ../fish/guestfish-actions.pod:627
8064 msgid ""
8065 "The type of checksum to compute is given by the C<csumtype> parameter which "
8066 "must have one of the following values:"
8067 msgstr ""
8068
8069 #. type: =item
8070 #: ../src/guestfs-actions.pod:963 ../fish/guestfish-actions.pod:632
8071 msgid "C<crc>"
8072 msgstr "C<crc>"
8073
8074 #. type: textblock
8075 #: ../src/guestfs-actions.pod:965 ../fish/guestfish-actions.pod:634
8076 msgid ""
8077 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
8078 "C<cksum> command."
8079 msgstr ""
8080
8081 #. type: =item
8082 #: ../src/guestfs-actions.pod:968 ../fish/guestfish-actions.pod:637
8083 msgid "C<md5>"
8084 msgstr "C<md5>"
8085
8086 #. type: textblock
8087 #: ../src/guestfs-actions.pod:970 ../fish/guestfish-actions.pod:639
8088 msgid "Compute the MD5 hash (using the C<md5sum> program)."
8089 msgstr ""
8090
8091 #. type: =item
8092 #: ../src/guestfs-actions.pod:972 ../fish/guestfish-actions.pod:641
8093 msgid "C<sha1>"
8094 msgstr "C<sha1>"
8095
8096 #. type: textblock
8097 #: ../src/guestfs-actions.pod:974 ../fish/guestfish-actions.pod:643
8098 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
8099 msgstr ""
8100
8101 #. type: =item
8102 #: ../src/guestfs-actions.pod:976 ../fish/guestfish-actions.pod:645
8103 msgid "C<sha224>"
8104 msgstr "C<sha224>"
8105
8106 #. type: textblock
8107 #: ../src/guestfs-actions.pod:978 ../fish/guestfish-actions.pod:647
8108 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
8109 msgstr ""
8110
8111 #. type: =item
8112 #: ../src/guestfs-actions.pod:980 ../fish/guestfish-actions.pod:649
8113 msgid "C<sha256>"
8114 msgstr "C<sha256>"
8115
8116 #. type: textblock
8117 #: ../src/guestfs-actions.pod:982 ../fish/guestfish-actions.pod:651
8118 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
8119 msgstr ""
8120
8121 #. type: =item
8122 #: ../src/guestfs-actions.pod:984 ../fish/guestfish-actions.pod:653
8123 msgid "C<sha384>"
8124 msgstr "C<sha384>"
8125
8126 #. type: textblock
8127 #: ../src/guestfs-actions.pod:986 ../fish/guestfish-actions.pod:655
8128 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
8129 msgstr ""
8130
8131 #. type: =item
8132 #: ../src/guestfs-actions.pod:988 ../fish/guestfish-actions.pod:657
8133 msgid "C<sha512>"
8134 msgstr "C<sha512>"
8135
8136 #. type: textblock
8137 #: ../src/guestfs-actions.pod:990 ../fish/guestfish-actions.pod:659
8138 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
8139 msgstr ""
8140
8141 #. type: textblock
8142 #: ../src/guestfs-actions.pod:994 ../fish/guestfish-actions.pod:663
8143 msgid "The checksum is returned as a printable string."
8144 msgstr ""
8145
8146 #. type: textblock
8147 #: ../src/guestfs-actions.pod:996
8148 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
8149 msgstr ""
8150
8151 #. type: textblock
8152 #: ../src/guestfs-actions.pod:998
8153 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
8154 msgstr ""
8155
8156 #. type: textblock
8157 #: ../src/guestfs-actions.pod:1003 ../src/guestfs-actions.pod:1311
8158 #: ../src/guestfs-actions.pod:2156 ../src/guestfs-actions.pod:3436
8159 #: ../src/guestfs-actions.pod:3465 ../src/guestfs-actions.pod:3526
8160 #: ../src/guestfs-actions.pod:3553 ../src/guestfs-actions.pod:7233
8161 msgid "(Added in 1.0.2)"
8162 msgstr ""
8163
8164 #. type: =head2
8165 #: ../src/guestfs-actions.pod:1005
8166 msgid "guestfs_checksum_device"
8167 msgstr ""
8168
8169 #. type: verbatim
8170 #: ../src/guestfs-actions.pod:1007
8171 #, no-wrap
8172 msgid ""
8173 " char *\n"
8174 " guestfs_checksum_device (guestfs_h *g,\n"
8175 "                          const char *csumtype,\n"
8176 "                          const char *device);\n"
8177 "\n"
8178 msgstr ""
8179
8180 #. type: textblock
8181 #: ../src/guestfs-actions.pod:1012
8182 msgid ""
8183 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
8184 "device named C<device>.  For the types of checksums supported see the "
8185 "C<guestfs_checksum> command."
8186 msgstr ""
8187
8188 #. type: textblock
8189 #: ../src/guestfs-actions.pod:1019 ../src/guestfs-actions.pod:5167
8190 #: ../src/guestfs-actions.pod:5302 ../src/guestfs-actions.pod:5339
8191 #: ../src/guestfs-actions.pod:5357 ../src/guestfs-actions.pod:5533
8192 #: ../src/guestfs-actions.pod:7142 ../src/guestfs-actions.pod:7156
8193 #: ../src/guestfs-actions.pod:7556
8194 msgid "(Added in 1.3.2)"
8195 msgstr ""
8196
8197 #. type: =head2
8198 #: ../src/guestfs-actions.pod:1021
8199 msgid "guestfs_checksums_out"
8200 msgstr ""
8201
8202 #. type: verbatim
8203 #: ../src/guestfs-actions.pod:1023
8204 #, no-wrap
8205 msgid ""
8206 " int\n"
8207 " guestfs_checksums_out (guestfs_h *g,\n"
8208 "                        const char *csumtype,\n"
8209 "                        const char *directory,\n"
8210 "                        const char *sumsfile);\n"
8211 "\n"
8212 msgstr ""
8213
8214 #. type: textblock
8215 #: ../src/guestfs-actions.pod:1029 ../fish/guestfish-actions.pod:681
8216 msgid ""
8217 "This command computes the checksums of all regular files in C<directory> and"
8218 " then emits a list of those checksums to the local output file C<sumsfile>."
8219 msgstr ""
8220
8221 #. type: textblock
8222 #: ../src/guestfs-actions.pod:1033 ../fish/guestfish-actions.pod:685
8223 msgid ""
8224 "This can be used for verifying the integrity of a virtual machine.  However "
8225 "to be properly secure you should pay attention to the output of the checksum"
8226 " command (it uses the ones from GNU coreutils).  In particular when the "
8227 "filename is not printable, coreutils uses a special backslash syntax.  For "
8228 "more information, see the GNU coreutils info file."
8229 msgstr ""
8230
8231 #. type: textblock
8232 #: ../src/guestfs-actions.pod:1043
8233 msgid "(Added in 1.3.7)"
8234 msgstr ""
8235
8236 #. type: =head2
8237 #: ../src/guestfs-actions.pod:1045
8238 msgid "guestfs_chmod"
8239 msgstr ""
8240
8241 #. type: verbatim
8242 #: ../src/guestfs-actions.pod:1047
8243 #, no-wrap
8244 msgid ""
8245 " int\n"
8246 " guestfs_chmod (guestfs_h *g,\n"
8247 "                int mode,\n"
8248 "                const char *path);\n"
8249 "\n"
8250 msgstr ""
8251
8252 #. type: textblock
8253 #: ../src/guestfs-actions.pod:1052 ../fish/guestfish-actions.pod:699
8254 msgid ""
8255 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are"
8256 " supported."
8257 msgstr ""
8258
8259 #. type: textblock
8260 #: ../src/guestfs-actions.pod:1055 ../fish/guestfish-actions.pod:702
8261 msgid ""
8262 "I<Note>: When using this command from guestfish, C<mode> by default would be"
8263 " decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
8264 "C<700>."
8265 msgstr ""
8266
8267 #. type: textblock
8268 #: ../src/guestfs-actions.pod:1059 ../src/guestfs-actions.pod:4584
8269 #: ../src/guestfs-actions.pod:4793 ../src/guestfs-actions.pod:4812
8270 #: ../src/guestfs-actions.pod:4831 ../fish/guestfish-actions.pod:706
8271 #: ../fish/guestfish-actions.pod:3060 ../fish/guestfish-actions.pod:3199
8272 #: ../fish/guestfish-actions.pod:3209 ../fish/guestfish-actions.pod:3219
8273 msgid "The mode actually set is affected by the umask."
8274 msgstr ""
8275
8276 #. type: =head2
8277 #: ../src/guestfs-actions.pod:1065
8278 msgid "guestfs_chown"
8279 msgstr ""
8280
8281 #. type: verbatim
8282 #: ../src/guestfs-actions.pod:1067
8283 #, no-wrap
8284 msgid ""
8285 " int\n"
8286 " guestfs_chown (guestfs_h *g,\n"
8287 "                int owner,\n"
8288 "                int group,\n"
8289 "                const char *path);\n"
8290 "\n"
8291 msgstr ""
8292
8293 #. type: textblock
8294 #: ../src/guestfs-actions.pod:1073 ../fish/guestfish-actions.pod:712
8295 msgid "Change the file owner to C<owner> and group to C<group>."
8296 msgstr ""
8297
8298 #. type: textblock
8299 #: ../src/guestfs-actions.pod:1075 ../src/guestfs-actions.pod:3655
8300 #: ../fish/guestfish-actions.pod:714 ../fish/guestfish-actions.pod:2495
8301 msgid ""
8302 "Only numeric uid and gid are supported.  If you want to use names, you will "
8303 "need to locate and parse the password file yourself (Augeas support makes "
8304 "this relatively easy)."
8305 msgstr ""
8306
8307 #. type: =head2
8308 #: ../src/guestfs-actions.pod:1083
8309 msgid "guestfs_command"
8310 msgstr ""
8311
8312 #. type: verbatim
8313 #: ../src/guestfs-actions.pod:1085
8314 #, no-wrap
8315 msgid ""
8316 " char *\n"
8317 " guestfs_command (guestfs_h *g,\n"
8318 "                  char *const *arguments);\n"
8319 "\n"
8320 msgstr ""
8321
8322 #. type: textblock
8323 #: ../src/guestfs-actions.pod:1089 ../fish/guestfish-actions.pod:722
8324 msgid ""
8325 "This call runs a command from the guest filesystem.  The filesystem must be "
8326 "mounted, and must contain a compatible operating system (ie. something "
8327 "Linux, with the same or compatible processor architecture)."
8328 msgstr ""
8329
8330 #. type: textblock
8331 #: ../src/guestfs-actions.pod:1094
8332 msgid ""
8333 "The single parameter is an argv-style list of arguments.  The first element "
8334 "is the name of the program to run.  Subsequent elements are parameters.  The"
8335 " list must be non-empty (ie. must contain a program name).  Note that the "
8336 "command runs directly, and is I<not> invoked via the shell (see "
8337 "C<guestfs_sh>)."
8338 msgstr ""
8339
8340 #. type: textblock
8341 #: ../src/guestfs-actions.pod:1101 ../fish/guestfish-actions.pod:734
8342 msgid "The return value is anything printed to I<stdout> by the command."
8343 msgstr ""
8344
8345 #. type: textblock
8346 #: ../src/guestfs-actions.pod:1104 ../fish/guestfish-actions.pod:737
8347 msgid ""
8348 "If the command returns a non-zero exit status, then this function returns an"
8349 " error message.  The error message string is the content of I<stderr> from "
8350 "the command."
8351 msgstr ""
8352
8353 #. type: textblock
8354 #: ../src/guestfs-actions.pod:1108 ../fish/guestfish-actions.pod:741
8355 msgid ""
8356 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
8357 "C</bin>.  If you require a program from another location, you should provide"
8358 " the full path in the first parameter."
8359 msgstr ""
8360
8361 #. type: textblock
8362 #: ../src/guestfs-actions.pod:1113 ../fish/guestfish-actions.pod:746
8363 msgid ""
8364 "Shared libraries and data files required by the program must be available on"
8365 " filesystems which are mounted in the correct places.  It is the caller's "
8366 "responsibility to ensure all filesystems that are needed are mounted at the "
8367 "right locations."
8368 msgstr ""
8369
8370 #. type: textblock
8371 #: ../src/guestfs-actions.pod:1125 ../src/guestfs-actions.pod:1145
8372 #: ../src/guestfs-actions.pod:1610
8373 msgid "(Added in 0.9.1)"
8374 msgstr ""
8375
8376 #. type: =head2
8377 #: ../src/guestfs-actions.pod:1127
8378 msgid "guestfs_command_lines"
8379 msgstr ""
8380
8381 #. type: verbatim
8382 #: ../src/guestfs-actions.pod:1129
8383 #, no-wrap
8384 msgid ""
8385 " char **\n"
8386 " guestfs_command_lines (guestfs_h *g,\n"
8387 "                        char *const *arguments);\n"
8388 "\n"
8389 msgstr ""
8390
8391 #. type: textblock
8392 #: ../src/guestfs-actions.pod:1133
8393 msgid ""
8394 "This is the same as C<guestfs_command>, but splits the result into a list of"
8395 " lines."
8396 msgstr ""
8397
8398 #. type: textblock
8399 #: ../src/guestfs-actions.pod:1136
8400 msgid "See also: C<guestfs_sh_lines>"
8401 msgstr ""
8402
8403 #. type: =head2
8404 #: ../src/guestfs-actions.pod:1147
8405 msgid "guestfs_config"
8406 msgstr ""
8407
8408 #. type: verbatim
8409 #: ../src/guestfs-actions.pod:1149
8410 #, no-wrap
8411 msgid ""
8412 " int\n"
8413 " guestfs_config (guestfs_h *g,\n"
8414 "                 const char *qemuparam,\n"
8415 "                 const char *qemuvalue);\n"
8416 "\n"
8417 msgstr ""
8418
8419 #. type: textblock
8420 #: ../src/guestfs-actions.pod:1154 ../fish/guestfish-actions.pod:771
8421 msgid ""
8422 "This can be used to add arbitrary qemu command line parameters of the form "
8423 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8424 "setting some parameters which would interfere with parameters that we use."
8425 msgstr ""
8426
8427 #. type: textblock
8428 #: ../src/guestfs-actions.pod:1159 ../fish/guestfish-actions.pod:776
8429 msgid "The first character of C<param> string must be a C<-> (dash)."
8430 msgstr ""
8431
8432 #. type: textblock
8433 #: ../src/guestfs-actions.pod:1161 ../fish/guestfish-actions.pod:778
8434 msgid "C<value> can be NULL."
8435 msgstr ""
8436
8437 #. type: =head2
8438 #: ../src/guestfs-actions.pod:1167
8439 msgid "guestfs_copy_size"
8440 msgstr ""
8441
8442 #. type: verbatim
8443 #: ../src/guestfs-actions.pod:1169
8444 #, no-wrap
8445 msgid ""
8446 " int\n"
8447 " guestfs_copy_size (guestfs_h *g,\n"
8448 "                    const char *src,\n"
8449 "                    const char *dest,\n"
8450 "                    int64_t size);\n"
8451 "\n"
8452 msgstr ""
8453
8454 #. type: textblock
8455 #: ../src/guestfs-actions.pod:1175 ../fish/guestfish-actions.pod:784
8456 msgid ""
8457 "This command copies exactly C<size> bytes from one source device or file "
8458 "C<src> to another destination device or file C<dest>."
8459 msgstr ""
8460
8461 #. type: textblock
8462 #: ../src/guestfs-actions.pod:1178 ../fish/guestfish-actions.pod:787
8463 msgid ""
8464 "Note this will fail if the source is too short or if the destination is not "
8465 "large enough."
8466 msgstr ""
8467
8468 #. type: textblock
8469 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1306
8470 #: ../src/guestfs-actions.pod:1337 ../src/guestfs-actions.pod:1382
8471 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:1781
8472 #: ../src/guestfs-actions.pod:3636 ../src/guestfs-actions.pod:7228
8473 #: ../src/guestfs-actions.pod:7262 ../src/guestfs-actions.pod:7763
8474 #: ../src/guestfs-actions.pod:7782
8475 msgid ""
8476 "This long-running command can generate progress notification messages so "
8477 "that the caller can display a progress bar or indicator.  To receive these "
8478 "messages, the caller must register a progress event callback.  See "
8479 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
8480 msgstr ""
8481
8482 #. type: textblock
8483 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:4360
8484 #: ../src/guestfs-actions.pod:5739 ../src/guestfs-actions.pod:7463
8485 #: ../src/guestfs-actions.pod:7483 ../src/guestfs-actions.pod:7569
8486 msgid "(Added in 1.0.87)"
8487 msgstr ""
8488
8489 #. type: =head2
8490 #: ../src/guestfs-actions.pod:1190
8491 msgid "guestfs_cp"
8492 msgstr ""
8493
8494 #. type: verbatim
8495 #: ../src/guestfs-actions.pod:1192
8496 #, no-wrap
8497 msgid ""
8498 " int\n"
8499 " guestfs_cp (guestfs_h *g,\n"
8500 "             const char *src,\n"
8501 "             const char *dest);\n"
8502 "\n"
8503 msgstr ""
8504
8505 #. type: textblock
8506 #: ../src/guestfs-actions.pod:1197 ../fish/guestfish-actions.pod:794
8507 msgid ""
8508 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8509 "destination filename or destination directory."
8510 msgstr ""
8511
8512 #. type: textblock
8513 #: ../src/guestfs-actions.pod:1202 ../src/guestfs-actions.pod:1216
8514 #: ../src/guestfs-actions.pod:1288 ../src/guestfs-actions.pod:1362
8515 #: ../src/guestfs-actions.pod:1476 ../src/guestfs-actions.pod:5114
8516 #: ../src/guestfs-actions.pod:5583
8517 msgid "(Added in 1.0.18)"
8518 msgstr ""
8519
8520 #. type: =head2
8521 #: ../src/guestfs-actions.pod:1204
8522 msgid "guestfs_cp_a"
8523 msgstr ""
8524
8525 #. type: verbatim
8526 #: ../src/guestfs-actions.pod:1206
8527 #, no-wrap
8528 msgid ""
8529 " int\n"
8530 " guestfs_cp_a (guestfs_h *g,\n"
8531 "               const char *src,\n"
8532 "               const char *dest);\n"
8533 "\n"
8534 msgstr ""
8535
8536 #. type: textblock
8537 #: ../src/guestfs-actions.pod:1211 ../fish/guestfish-actions.pod:801
8538 msgid ""
8539 "This copies a file or directory from C<src> to C<dest> recursively using the"
8540 " C<cp -a> command."
8541 msgstr ""
8542
8543 #. type: =head2
8544 #: ../src/guestfs-actions.pod:1218
8545 msgid "guestfs_dd"
8546 msgstr ""
8547
8548 #. type: verbatim
8549 #: ../src/guestfs-actions.pod:1220
8550 #, no-wrap
8551 msgid ""
8552 " int\n"
8553 " guestfs_dd (guestfs_h *g,\n"
8554 "             const char *src,\n"
8555 "             const char *dest);\n"
8556 "\n"
8557 msgstr ""
8558
8559 #. type: textblock
8560 #: ../src/guestfs-actions.pod:1225 ../fish/guestfish-actions.pod:808
8561 msgid ""
8562 "This command copies from one source device or file C<src> to another "
8563 "destination device or file C<dest>.  Normally you would use this to copy to "
8564 "or from a device or partition, for example to duplicate a filesystem."
8565 msgstr ""
8566
8567 #. type: textblock
8568 #: ../src/guestfs-actions.pod:1230
8569 msgid ""
8570 "If the destination is a device, it must be as large or larger than the "
8571 "source file or device, otherwise the copy will fail.  This command cannot do"
8572 " partial copies (see C<guestfs_copy_size>)."
8573 msgstr ""
8574
8575 #. type: =head2
8576 #: ../src/guestfs-actions.pod:1238
8577 msgid "guestfs_df"
8578 msgstr ""
8579
8580 #. type: verbatim
8581 #: ../src/guestfs-actions.pod:1240
8582 #, no-wrap
8583 msgid ""
8584 " char *\n"
8585 " guestfs_df (guestfs_h *g);\n"
8586 "\n"
8587 msgstr ""
8588
8589 #. type: textblock
8590 #: ../src/guestfs-actions.pod:1243 ../fish/guestfish-actions.pod:821
8591 msgid "This command runs the C<df> command to report disk space used."
8592 msgstr ""
8593
8594 #. type: textblock
8595 #: ../src/guestfs-actions.pod:1245 ../src/guestfs-actions.pod:1262
8596 msgid ""
8597 "This command is mostly useful for interactive sessions.  It is I<not> "
8598 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
8599 "from programs."
8600 msgstr ""
8601
8602 #. type: textblock
8603 #: ../src/guestfs-actions.pod:1252 ../src/guestfs-actions.pod:1269
8604 #: ../src/guestfs-actions.pod:1387 ../src/guestfs-actions.pod:2359
8605 #: ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2451
8606 #: ../src/guestfs-actions.pod:4470 ../src/guestfs-actions.pod:5014
8607 #: ../src/guestfs-actions.pod:6966 ../src/guestfs-actions.pod:6990
8608 #: ../src/guestfs-actions.pod:7609 ../src/guestfs-actions.pod:7622
8609 #: ../src/guestfs-actions.pod:7635
8610 msgid "(Added in 1.0.54)"
8611 msgstr ""
8612
8613 #. type: =head2
8614 #: ../src/guestfs-actions.pod:1254
8615 msgid "guestfs_df_h"
8616 msgstr ""
8617
8618 #. type: verbatim
8619 #: ../src/guestfs-actions.pod:1256
8620 #, no-wrap
8621 msgid ""
8622 " char *\n"
8623 " guestfs_df_h (guestfs_h *g);\n"
8624 "\n"
8625 msgstr ""
8626
8627 #. type: textblock
8628 #: ../src/guestfs-actions.pod:1259 ../fish/guestfish-actions.pod:831
8629 msgid ""
8630 "This command runs the C<df -h> command to report disk space used in human-"
8631 "readable format."
8632 msgstr ""
8633
8634 #. type: =head2
8635 #: ../src/guestfs-actions.pod:1271
8636 msgid "guestfs_dmesg"
8637 msgstr ""
8638
8639 #. type: verbatim
8640 #: ../src/guestfs-actions.pod:1273
8641 #, no-wrap
8642 msgid ""
8643 " char *\n"
8644 " guestfs_dmesg (guestfs_h *g);\n"
8645 "\n"
8646 msgstr ""
8647
8648 #. type: textblock
8649 #: ../src/guestfs-actions.pod:1276 ../fish/guestfish-actions.pod:842
8650 msgid ""
8651 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8652 "This is sometimes useful for extended debugging of problems."
8653 msgstr ""
8654
8655 #. type: textblock
8656 #: ../src/guestfs-actions.pod:1280
8657 msgid ""
8658 "Another way to get the same information is to enable verbose messages with "
8659 "C<guestfs_set_verbose> or by setting the environment variable "
8660 "C<LIBGUESTFS_DEBUG=1> before running the program."
8661 msgstr ""
8662
8663 #. type: =head2
8664 #: ../src/guestfs-actions.pod:1290
8665 msgid "guestfs_download"
8666 msgstr ""
8667
8668 #. type: verbatim
8669 #: ../src/guestfs-actions.pod:1292
8670 #, no-wrap
8671 msgid ""
8672 " int\n"
8673 " guestfs_download (guestfs_h *g,\n"
8674 "                   const char *remotefilename,\n"
8675 "                   const char *filename);\n"
8676 "\n"
8677 msgstr ""
8678
8679 #. type: textblock
8680 #: ../src/guestfs-actions.pod:1297 ../src/guestfs-actions.pod:1322
8681 #: ../fish/guestfish-actions.pod:855 ../fish/guestfish-actions.pod:868
8682 msgid ""
8683 "Download file C<remotefilename> and save it as C<filename> on the local "
8684 "machine."
8685 msgstr ""
8686
8687 #. type: textblock
8688 #: ../src/guestfs-actions.pod:1300 ../src/guestfs-actions.pod:7222
8689 #: ../fish/guestfish-actions.pod:858 ../fish/guestfish-actions.pod:4797
8690 msgid "C<filename> can also be a named pipe."
8691 msgstr ""
8692
8693 #. type: textblock
8694 #: ../src/guestfs-actions.pod:1302
8695 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
8696 msgstr ""
8697
8698 #. type: =head2
8699 #: ../src/guestfs-actions.pod:1313
8700 msgid "guestfs_download_offset"
8701 msgstr ""
8702
8703 #. type: verbatim
8704 #: ../src/guestfs-actions.pod:1315
8705 #, no-wrap
8706 msgid ""
8707 " int\n"
8708 " guestfs_download_offset (guestfs_h *g,\n"
8709 "                          const char *remotefilename,\n"
8710 "                          const char *filename,\n"
8711 "                          int64_t offset,\n"
8712 "                          int64_t size);\n"
8713 "\n"
8714 msgstr ""
8715
8716 #. type: textblock
8717 #: ../src/guestfs-actions.pod:1325 ../fish/guestfish-actions.pod:871
8718 msgid ""
8719 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8720 "region must be within the file or device)."
8721 msgstr ""
8722
8723 #. type: textblock
8724 #: ../src/guestfs-actions.pod:1328
8725 msgid ""
8726 "Note that there is no limit on the amount of data that can be downloaded "
8727 "with this call, unlike with C<guestfs_pread>, and this call always reads the"
8728 " full amount unless an error occurs."
8729 msgstr ""
8730
8731 #. type: textblock
8732 #: ../src/guestfs-actions.pod:1333
8733 msgid "See also C<guestfs_download>, C<guestfs_pread>."
8734 msgstr ""
8735
8736 #. type: textblock
8737 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:7267
8738 msgid "(Added in 1.5.17)"
8739 msgstr ""
8740
8741 #. type: =head2
8742 #: ../src/guestfs-actions.pod:1344
8743 msgid "guestfs_drop_caches"
8744 msgstr ""
8745
8746 #. type: verbatim
8747 #: ../src/guestfs-actions.pod:1346
8748 #, no-wrap
8749 msgid ""
8750 " int\n"
8751 " guestfs_drop_caches (guestfs_h *g,\n"
8752 "                      int whattodrop);\n"
8753 "\n"
8754 msgstr ""
8755
8756 #. type: textblock
8757 #: ../src/guestfs-actions.pod:1350 ../fish/guestfish-actions.pod:887
8758 msgid ""
8759 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8760 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8761 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8762 msgstr ""
8763
8764 #. type: textblock
8765 #: ../src/guestfs-actions.pod:1355 ../fish/guestfish-actions.pod:892
8766 msgid "Setting C<whattodrop> to 3 should drop everything."
8767 msgstr ""
8768
8769 #. type: textblock
8770 #: ../src/guestfs-actions.pod:1357 ../fish/guestfish-actions.pod:894
8771 msgid ""
8772 "This automatically calls L<sync(2)> before the operation, so that the "
8773 "maximum guest memory is freed."
8774 msgstr ""
8775
8776 #. type: =head2
8777 #: ../src/guestfs-actions.pod:1364
8778 msgid "guestfs_du"
8779 msgstr ""
8780
8781 #. type: verbatim
8782 #: ../src/guestfs-actions.pod:1366
8783 #, no-wrap
8784 msgid ""
8785 " int64_t\n"
8786 " guestfs_du (guestfs_h *g,\n"
8787 "             const char *path);\n"
8788 "\n"
8789 msgstr ""
8790
8791 #. type: textblock
8792 #: ../src/guestfs-actions.pod:1370 ../fish/guestfish-actions.pod:901
8793 msgid ""
8794 "This command runs the C<du -s> command to estimate file space usage for "
8795 "C<path>."
8796 msgstr ""
8797
8798 #. type: textblock
8799 #: ../src/guestfs-actions.pod:1373 ../fish/guestfish-actions.pod:904
8800 msgid ""
8801 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8802 "estimate includes the contents of the directory and all subdirectories "
8803 "(recursively)."
8804 msgstr ""
8805
8806 #. type: textblock
8807 #: ../src/guestfs-actions.pod:1377 ../fish/guestfish-actions.pod:908
8808 msgid ""
8809 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8810 msgstr ""
8811
8812 #. type: =head2
8813 #: ../src/guestfs-actions.pod:1389
8814 msgid "guestfs_e2fsck_f"
8815 msgstr ""
8816
8817 #. type: verbatim
8818 #: ../src/guestfs-actions.pod:1391
8819 #, no-wrap
8820 msgid ""
8821 " int\n"
8822 " guestfs_e2fsck_f (guestfs_h *g,\n"
8823 "                   const char *device);\n"
8824 "\n"
8825 msgstr ""
8826
8827 #. type: textblock
8828 #: ../src/guestfs-actions.pod:1395 ../fish/guestfish-actions.pod:915
8829 msgid ""
8830 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8831 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be"
8832 " clean (I<-f>)."
8833 msgstr ""
8834
8835 #. type: textblock
8836 #: ../src/guestfs-actions.pod:1399
8837 msgid ""
8838 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
8839 "Normally you should use C<guestfs_fsck>."
8840 msgstr ""
8841
8842 #. type: textblock
8843 #: ../src/guestfs-actions.pod:1404
8844 msgid "(Added in 1.0.29)"
8845 msgstr ""
8846
8847 #. type: =head2
8848 #: ../src/guestfs-actions.pod:1406
8849 msgid "guestfs_echo_daemon"
8850 msgstr ""
8851
8852 #. type: verbatim
8853 #: ../src/guestfs-actions.pod:1408
8854 #, no-wrap
8855 msgid ""
8856 " char *\n"
8857 " guestfs_echo_daemon (guestfs_h *g,\n"
8858 "                      char *const *words);\n"
8859 "\n"
8860 msgstr ""
8861
8862 #. type: textblock
8863 #: ../src/guestfs-actions.pod:1412 ../fish/guestfish-actions.pod:926
8864 msgid ""
8865 "This command concatenates the list of C<words> passed with single spaces "
8866 "between them and returns the resulting string."
8867 msgstr ""
8868
8869 #. type: textblock
8870 #: ../src/guestfs-actions.pod:1415 ../fish/guestfish-actions.pod:929
8871 msgid "You can use this command to test the connection through to the daemon."
8872 msgstr ""
8873
8874 #. type: textblock
8875 #: ../src/guestfs-actions.pod:1417
8876 msgid "See also C<guestfs_ping_daemon>."
8877 msgstr ""
8878
8879 #. type: textblock
8880 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:2167
8881 #: ../src/guestfs-actions.pod:6438
8882 msgid "(Added in 1.0.69)"
8883 msgstr ""
8884
8885 #. type: =head2
8886 #: ../src/guestfs-actions.pod:1424
8887 msgid "guestfs_egrep"
8888 msgstr ""
8889
8890 #. type: verbatim
8891 #: ../src/guestfs-actions.pod:1426
8892 #, no-wrap
8893 msgid ""
8894 " char **\n"
8895 " guestfs_egrep (guestfs_h *g,\n"
8896 "                const char *regex,\n"
8897 "                const char *path);\n"
8898 "\n"
8899 msgstr ""
8900
8901 #. type: textblock
8902 #: ../src/guestfs-actions.pod:1431 ../fish/guestfish-actions.pod:937
8903 msgid ""
8904 "This calls the external C<egrep> program and returns the matching lines."
8905 msgstr ""
8906
8907 #. type: textblock
8908 #: ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1460
8909 #: ../src/guestfs-actions.pod:1517 ../src/guestfs-actions.pod:1563
8910 #: ../src/guestfs-actions.pod:1582 ../src/guestfs-actions.pod:2297
8911 #: ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2472
8912 #: ../src/guestfs-actions.pod:2485 ../src/guestfs-actions.pod:2500
8913 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:2568
8914 #: ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:3850
8915 #: ../src/guestfs-actions.pod:3864 ../src/guestfs-actions.pod:3877
8916 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:4892
8917 #: ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:5966
8918 #: ../src/guestfs-actions.pod:6834 ../src/guestfs-actions.pod:6846
8919 #: ../src/guestfs-actions.pod:6859 ../src/guestfs-actions.pod:6872
8920 #: ../src/guestfs-actions.pod:6894 ../src/guestfs-actions.pod:6907
8921 #: ../src/guestfs-actions.pod:6920 ../src/guestfs-actions.pod:6933
8922 #: ../src/guestfs-actions.pod:7725 ../src/guestfs-actions.pod:7744
8923 #: ../src/guestfs-actions.pod:7830 ../src/guestfs-actions.pod:7849
8924 #: ../src/guestfs-actions.pod:7895 ../src/guestfs-actions.pod:7914
8925 msgid "(Added in 1.0.66)"
8926 msgstr ""
8927
8928 #. type: =head2
8929 #: ../src/guestfs-actions.pod:1443
8930 msgid "guestfs_egrepi"
8931 msgstr ""
8932
8933 #. type: verbatim
8934 #: ../src/guestfs-actions.pod:1445
8935 #, no-wrap
8936 msgid ""
8937 " char **\n"
8938 " guestfs_egrepi (guestfs_h *g,\n"
8939 "                 const char *regex,\n"
8940 "                 const char *path);\n"
8941 "\n"
8942 msgstr ""
8943
8944 #. type: textblock
8945 #: ../src/guestfs-actions.pod:1450 ../fish/guestfish-actions.pod:947
8946 msgid ""
8947 "This calls the external C<egrep -i> program and returns the matching lines."
8948 msgstr ""
8949
8950 #. type: =head2
8951 #: ../src/guestfs-actions.pod:1462
8952 msgid "guestfs_equal"
8953 msgstr ""
8954
8955 #. type: verbatim
8956 #: ../src/guestfs-actions.pod:1464
8957 #, no-wrap
8958 msgid ""
8959 " int\n"
8960 " guestfs_equal (guestfs_h *g,\n"
8961 "                const char *file1,\n"
8962 "                const char *file2);\n"
8963 "\n"
8964 msgstr ""
8965
8966 #. type: textblock
8967 #: ../src/guestfs-actions.pod:1469 ../fish/guestfish-actions.pod:957
8968 msgid ""
8969 "This compares the two files C<file1> and C<file2> and returns true if their "
8970 "content is exactly equal, or false otherwise."
8971 msgstr ""
8972
8973 #. type: textblock
8974 #: ../src/guestfs-actions.pod:1472 ../fish/guestfish-actions.pod:960
8975 msgid "The external L<cmp(1)> program is used for the comparison."
8976 msgstr ""
8977
8978 #. type: =head2
8979 #: ../src/guestfs-actions.pod:1478
8980 msgid "guestfs_exists"
8981 msgstr ""
8982
8983 #. type: verbatim
8984 #: ../src/guestfs-actions.pod:1480
8985 #, no-wrap
8986 msgid ""
8987 " int\n"
8988 " guestfs_exists (guestfs_h *g,\n"
8989 "                 const char *path);\n"
8990 "\n"
8991 msgstr ""
8992
8993 #. type: textblock
8994 #: ../src/guestfs-actions.pod:1484 ../fish/guestfish-actions.pod:966
8995 msgid ""
8996 "This returns C<true> if and only if there is a file, directory (or anything)"
8997 " with the given C<path> name."
8998 msgstr ""
8999
9000 #. type: textblock
9001 #: ../src/guestfs-actions.pod:1487
9002 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
9003 msgstr ""
9004
9005 #. type: =head2
9006 #: ../src/guestfs-actions.pod:1493
9007 msgid "guestfs_fallocate"
9008 msgstr ""
9009
9010 #. type: verbatim
9011 #: ../src/guestfs-actions.pod:1495
9012 #, no-wrap
9013 msgid ""
9014 " int\n"
9015 " guestfs_fallocate (guestfs_h *g,\n"
9016 "                    const char *path,\n"
9017 "                    int len);\n"
9018 "\n"
9019 msgstr ""
9020
9021 #. type: textblock
9022 #: ../src/guestfs-actions.pod:1500 ../src/guestfs-actions.pod:1526
9023 #: ../fish/guestfish-actions.pod:975 ../fish/guestfish-actions.pod:994
9024 msgid ""
9025 "This command preallocates a file (containing zero bytes) named C<path> of "
9026 "size C<len> bytes.  If the file exists already, it is overwritten."
9027 msgstr ""
9028
9029 #. type: textblock
9030 #: ../src/guestfs-actions.pod:1504 ../fish/guestfish-actions.pod:979
9031 msgid ""
9032 "Do not confuse this with the guestfish-specific C<alloc> command which "
9033 "allocates a file in the host and attaches it as a device."
9034 msgstr ""
9035
9036 #. type: textblock
9037 #: ../src/guestfs-actions.pod:1510 ../fish/guestfish-actions.pod:983
9038 msgid ""
9039 "This function is deprecated.  In new code, use the C<fallocate64> call "
9040 "instead."
9041 msgstr ""
9042
9043 #. type: =head2
9044 #: ../src/guestfs-actions.pod:1519
9045 msgid "guestfs_fallocate64"
9046 msgstr ""
9047
9048 #. type: verbatim
9049 #: ../src/guestfs-actions.pod:1521
9050 #, no-wrap
9051 msgid ""
9052 " int\n"
9053 " guestfs_fallocate64 (guestfs_h *g,\n"
9054 "                      const char *path,\n"
9055 "                      int64_t len);\n"
9056 "\n"
9057 msgstr ""
9058
9059 #. type: textblock
9060 #: ../src/guestfs-actions.pod:1530
9061 msgid ""
9062 "Note that this call allocates disk blocks for the file.  To create a sparse "
9063 "file use C<guestfs_truncate_size> instead."
9064 msgstr ""
9065
9066 #. type: textblock
9067 #: ../src/guestfs-actions.pod:1533
9068 msgid ""
9069 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
9070 "oversight it only allowed 30 bit lengths to be specified, effectively "
9071 "limiting the maximum size of files created through that call to 1GB."
9072 msgstr ""
9073
9074 #. type: textblock
9075 #: ../src/guestfs-actions.pod:1538 ../fish/guestfish-actions.pod:1006
9076 msgid ""
9077 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
9078 "commands which create a file in the host and attach it as a device."
9079 msgstr ""
9080
9081 #. type: textblock
9082 #: ../src/guestfs-actions.pod:1544
9083 msgid "(Added in 1.3.17)"
9084 msgstr ""
9085
9086 #. type: =head2
9087 #: ../src/guestfs-actions.pod:1546
9088 msgid "guestfs_fgrep"
9089 msgstr ""
9090
9091 #. type: verbatim
9092 #: ../src/guestfs-actions.pod:1548
9093 #, no-wrap
9094 msgid ""
9095 " char **\n"
9096 " guestfs_fgrep (guestfs_h *g,\n"
9097 "                const char *pattern,\n"
9098 "                const char *path);\n"
9099 "\n"
9100 msgstr ""
9101
9102 #. type: textblock
9103 #: ../src/guestfs-actions.pod:1553 ../fish/guestfish-actions.pod:1014
9104 msgid ""
9105 "This calls the external C<fgrep> program and returns the matching lines."
9106 msgstr ""
9107
9108 #. type: =head2
9109 #: ../src/guestfs-actions.pod:1565
9110 msgid "guestfs_fgrepi"
9111 msgstr ""
9112
9113 #. type: verbatim
9114 #: ../src/guestfs-actions.pod:1567
9115 #, no-wrap
9116 msgid ""
9117 " char **\n"
9118 " guestfs_fgrepi (guestfs_h *g,\n"
9119 "                 const char *pattern,\n"
9120 "                 const char *path);\n"
9121 "\n"
9122 msgstr ""
9123
9124 #. type: textblock
9125 #: ../src/guestfs-actions.pod:1572 ../fish/guestfish-actions.pod:1024
9126 msgid ""
9127 "This calls the external C<fgrep -i> program and returns the matching lines."
9128 msgstr ""
9129
9130 #. type: =head2
9131 #: ../src/guestfs-actions.pod:1584
9132 msgid "guestfs_file"
9133 msgstr ""
9134
9135 #. type: verbatim
9136 #: ../src/guestfs-actions.pod:1586
9137 #, no-wrap
9138 msgid ""
9139 " char *\n"
9140 " guestfs_file (guestfs_h *g,\n"
9141 "               const char *path);\n"
9142 "\n"
9143 msgstr ""
9144
9145 #. type: textblock
9146 #: ../src/guestfs-actions.pod:1590 ../fish/guestfish-actions.pod:1034
9147 msgid ""
9148 "This call uses the standard L<file(1)> command to determine the type or "
9149 "contents of the file."
9150 msgstr ""
9151
9152 #. type: textblock
9153 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1037
9154 msgid ""
9155 "This call will also transparently look inside various types of compressed "
9156 "file."
9157 msgstr ""
9158
9159 #. type: textblock
9160 #: ../src/guestfs-actions.pod:1596 ../fish/guestfish-actions.pod:1040
9161 msgid ""
9162 "The exact command which runs is C<file -zb path>.  Note in particular that "
9163 "the filename is not prepended to the output (the I<-b> option)."
9164 msgstr ""
9165
9166 #. type: textblock
9167 #: ../src/guestfs-actions.pod:1600 ../fish/guestfish-actions.pod:1044
9168 msgid ""
9169 "The output depends on the output of the underlying L<file(1)> command and it"
9170 " can change in future in ways beyond our control.  In other words, the "
9171 "output is not guaranteed by the ABI."
9172 msgstr ""
9173
9174 #. type: textblock
9175 #: ../src/guestfs-actions.pod:1604
9176 msgid ""
9177 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
9178 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
9179 msgstr ""
9180
9181 #. type: =head2
9182 #: ../src/guestfs-actions.pod:1612
9183 msgid "guestfs_file_architecture"
9184 msgstr ""
9185
9186 #. type: verbatim
9187 #: ../src/guestfs-actions.pod:1614
9188 #, no-wrap
9189 msgid ""
9190 " char *\n"
9191 " guestfs_file_architecture (guestfs_h *g,\n"
9192 "                            const char *filename);\n"
9193 "\n"
9194 msgstr ""
9195
9196 #. type: textblock
9197 #: ../src/guestfs-actions.pod:1618 ../fish/guestfish-actions.pod:1055
9198 msgid ""
9199 "This detects the architecture of the binary C<filename>, and returns it if "
9200 "known."
9201 msgstr ""
9202
9203 #. type: textblock
9204 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1058
9205 msgid "Currently defined architectures are:"
9206 msgstr ""
9207
9208 #. type: =item
9209 #: ../src/guestfs-actions.pod:1625 ../fish/guestfish-actions.pod:1062
9210 msgid "\"i386\""
9211 msgstr "\"i386\""
9212
9213 #. type: textblock
9214 #: ../src/guestfs-actions.pod:1627 ../fish/guestfish-actions.pod:1064
9215 msgid ""
9216 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
9217 "irrespective of the precise processor requirements of the binary."
9218 msgstr ""
9219
9220 #. type: =item
9221 #: ../src/guestfs-actions.pod:1630 ../fish/guestfish-actions.pod:1067
9222 msgid "\"x86_64\""
9223 msgstr "\"x86_64\""
9224
9225 #. type: textblock
9226 #: ../src/guestfs-actions.pod:1632 ../fish/guestfish-actions.pod:1069
9227 msgid "64 bit x86-64."
9228 msgstr ""
9229
9230 #. type: =item
9231 #: ../src/guestfs-actions.pod:1634 ../fish/guestfish-actions.pod:1071
9232 msgid "\"sparc\""
9233 msgstr ""
9234
9235 #. type: textblock
9236 #: ../src/guestfs-actions.pod:1636 ../fish/guestfish-actions.pod:1073
9237 msgid "32 bit SPARC."
9238 msgstr ""
9239
9240 #. type: =item
9241 #: ../src/guestfs-actions.pod:1638 ../fish/guestfish-actions.pod:1075
9242 msgid "\"sparc64\""
9243 msgstr ""
9244
9245 #. type: textblock
9246 #: ../src/guestfs-actions.pod:1640 ../fish/guestfish-actions.pod:1077
9247 msgid "64 bit SPARC V9 and above."
9248 msgstr ""
9249
9250 #. type: =item
9251 #: ../src/guestfs-actions.pod:1642 ../fish/guestfish-actions.pod:1079
9252 msgid "\"ia64\""
9253 msgstr "\"ia64\""
9254
9255 #. type: textblock
9256 #: ../src/guestfs-actions.pod:1644 ../fish/guestfish-actions.pod:1081
9257 msgid "Intel Itanium."
9258 msgstr "Intel Itanium."
9259
9260 #. type: =item
9261 #: ../src/guestfs-actions.pod:1646 ../fish/guestfish-actions.pod:1083
9262 msgid "\"ppc\""
9263 msgstr ""
9264
9265 #. type: textblock
9266 #: ../src/guestfs-actions.pod:1648 ../fish/guestfish-actions.pod:1085
9267 msgid "32 bit Power PC."
9268 msgstr ""
9269
9270 #. type: =item
9271 #: ../src/guestfs-actions.pod:1650 ../fish/guestfish-actions.pod:1087
9272 msgid "\"ppc64\""
9273 msgstr ""
9274
9275 #. type: textblock
9276 #: ../src/guestfs-actions.pod:1652 ../fish/guestfish-actions.pod:1089
9277 msgid "64 bit Power PC."
9278 msgstr ""
9279
9280 #. type: textblock
9281 #: ../src/guestfs-actions.pod:1656 ../fish/guestfish-actions.pod:1093
9282 msgid "Libguestfs may return other architecture strings in future."
9283 msgstr ""
9284
9285 #. type: textblock
9286 #: ../src/guestfs-actions.pod:1658 ../fish/guestfish-actions.pod:1095
9287 msgid "The function works on at least the following types of files:"
9288 msgstr ""
9289
9290 #. type: textblock
9291 #: ../src/guestfs-actions.pod:1664 ../fish/guestfish-actions.pod:1101
9292 msgid "many types of Un*x and Linux binary"
9293 msgstr ""
9294
9295 #. type: textblock
9296 #: ../src/guestfs-actions.pod:1668 ../fish/guestfish-actions.pod:1105
9297 msgid "many types of Un*x and Linux shared library"
9298 msgstr ""
9299
9300 #. type: textblock
9301 #: ../src/guestfs-actions.pod:1672 ../fish/guestfish-actions.pod:1109
9302 msgid "Windows Win32 and Win64 binaries"
9303 msgstr ""
9304
9305 #. type: textblock
9306 #: ../src/guestfs-actions.pod:1676 ../fish/guestfish-actions.pod:1113
9307 msgid "Windows Win32 and Win64 DLLs"
9308 msgstr ""
9309
9310 #. type: textblock
9311 #: ../src/guestfs-actions.pod:1678 ../fish/guestfish-actions.pod:1115
9312 msgid "Win32 binaries and DLLs return C<i386>."
9313 msgstr ""
9314
9315 #. type: textblock
9316 #: ../src/guestfs-actions.pod:1680 ../fish/guestfish-actions.pod:1117
9317 msgid "Win64 binaries and DLLs return C<x86_64>."
9318 msgstr ""
9319
9320 #. type: textblock
9321 #: ../src/guestfs-actions.pod:1684 ../fish/guestfish-actions.pod:1121
9322 msgid "Linux kernel modules"
9323 msgstr ""
9324
9325 #. type: textblock
9326 #: ../src/guestfs-actions.pod:1688 ../fish/guestfish-actions.pod:1125
9327 msgid "Linux new-style initrd images"
9328 msgstr ""
9329
9330 #. type: textblock
9331 #: ../src/guestfs-actions.pod:1692 ../fish/guestfish-actions.pod:1129
9332 msgid "some non-x86 Linux vmlinuz kernels"
9333 msgstr ""
9334
9335 #. type: textblock
9336 #: ../src/guestfs-actions.pod:1696 ../fish/guestfish-actions.pod:1133
9337 msgid "What it can't do currently:"
9338 msgstr ""
9339
9340 #. type: textblock
9341 #: ../src/guestfs-actions.pod:1702 ../fish/guestfish-actions.pod:1139
9342 msgid "static libraries (libfoo.a)"
9343 msgstr ""
9344
9345 #. type: textblock
9346 #: ../src/guestfs-actions.pod:1706 ../fish/guestfish-actions.pod:1143
9347 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9348 msgstr ""
9349
9350 #. type: textblock
9351 #: ../src/guestfs-actions.pod:1710 ../fish/guestfish-actions.pod:1147
9352 msgid "x86 Linux vmlinuz kernels"
9353 msgstr ""
9354
9355 #. type: textblock
9356 #: ../src/guestfs-actions.pod:1712 ../fish/guestfish-actions.pod:1149
9357 msgid ""
9358 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
9359 "compressed code, and are horribly hard to unpack.  If you want to find the "
9360 "architecture of a kernel, use the architecture of the associated initrd or "
9361 "kernel module(s) instead."
9362 msgstr ""
9363
9364 #. type: textblock
9365 #: ../src/guestfs-actions.pod:1722 ../src/guestfs-actions.pod:1885
9366 #: ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:2601
9367 #: ../src/guestfs-actions.pod:2691 ../src/guestfs-actions.pod:2757
9368 #: ../src/guestfs-actions.pod:2944 ../src/guestfs-actions.pod:2962
9369 #: ../src/guestfs-actions.pod:3002 ../src/guestfs-actions.pod:3077
9370 #: ../src/guestfs-actions.pod:3170 ../src/guestfs-actions.pod:3407
9371 #: ../src/guestfs-actions.pod:3539
9372 msgid "(Added in 1.5.3)"
9373 msgstr ""
9374
9375 #. type: =head2
9376 #: ../src/guestfs-actions.pod:1724
9377 msgid "guestfs_filesize"
9378 msgstr ""
9379
9380 #. type: verbatim
9381 #: ../src/guestfs-actions.pod:1726
9382 #, no-wrap
9383 msgid ""
9384 " int64_t\n"
9385 " guestfs_filesize (guestfs_h *g,\n"
9386 "                   const char *file);\n"
9387 "\n"
9388 msgstr ""
9389
9390 #. type: textblock
9391 #: ../src/guestfs-actions.pod:1730 ../fish/guestfish-actions.pod:1160
9392 msgid "This command returns the size of C<file> in bytes."
9393 msgstr ""
9394
9395 #. type: textblock
9396 #: ../src/guestfs-actions.pod:1732
9397 msgid ""
9398 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
9399 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
9400 "devices, use C<guestfs_blockdev_getsize64>."
9401 msgstr ""
9402
9403 #. type: textblock
9404 #: ../src/guestfs-actions.pod:1738
9405 msgid "(Added in 1.0.82)"
9406 msgstr ""
9407
9408 #. type: =head2
9409 #: ../src/guestfs-actions.pod:1740
9410 msgid "guestfs_fill"
9411 msgstr ""
9412
9413 #. type: verbatim
9414 #: ../src/guestfs-actions.pod:1742
9415 #, no-wrap
9416 msgid ""
9417 " int\n"
9418 " guestfs_fill (guestfs_h *g,\n"
9419 "               int c,\n"
9420 "               int len,\n"
9421 "               const char *path);\n"
9422 "\n"
9423 msgstr ""
9424
9425 #. type: textblock
9426 #: ../src/guestfs-actions.pod:1748 ../fish/guestfish-actions.pod:1170
9427 msgid ""
9428 "This command creates a new file called C<path>.  The initial content of the "
9429 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
9430 "C<[0..255]>."
9431 msgstr ""
9432
9433 #. type: textblock
9434 #: ../src/guestfs-actions.pod:1752
9435 msgid ""
9436 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9437 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
9438 "bytes use C<guestfs_fill_pattern>."
9439 msgstr ""
9440
9441 #. type: textblock
9442 #: ../src/guestfs-actions.pod:1764
9443 msgid "(Added in 1.0.79)"
9444 msgstr ""
9445
9446 #. type: =head2
9447 #: ../src/guestfs-actions.pod:1766
9448 msgid "guestfs_fill_pattern"
9449 msgstr ""
9450
9451 #. type: verbatim
9452 #: ../src/guestfs-actions.pod:1768
9453 #, no-wrap
9454 msgid ""
9455 " int\n"
9456 " guestfs_fill_pattern (guestfs_h *g,\n"
9457 "                       const char *pattern,\n"
9458 "                       int len,\n"
9459 "                       const char *path);\n"
9460 "\n"
9461 msgstr ""
9462
9463 #. type: textblock
9464 #: ../src/guestfs-actions.pod:1774
9465 msgid ""
9466 "This function is like C<guestfs_fill> except that it creates a new file of "
9467 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
9468 "pattern is truncated if necessary to ensure the length of the file is "
9469 "exactly C<len> bytes."
9470 msgstr ""
9471
9472 #. type: textblock
9473 #: ../src/guestfs-actions.pod:1786
9474 msgid "(Added in 1.3.12)"
9475 msgstr ""
9476
9477 #. type: =head2
9478 #: ../src/guestfs-actions.pod:1788
9479 msgid "guestfs_find"
9480 msgstr ""
9481
9482 #. type: verbatim
9483 #: ../src/guestfs-actions.pod:1790
9484 #, no-wrap
9485 msgid ""
9486 " char **\n"
9487 " guestfs_find (guestfs_h *g,\n"
9488 "               const char *directory);\n"
9489 "\n"
9490 msgstr ""
9491
9492 #. type: textblock
9493 #: ../src/guestfs-actions.pod:1794 ../fish/guestfish-actions.pod:1192
9494 msgid ""
9495 "This command lists out all files and directories, recursively, starting at "
9496 "C<directory>.  It is essentially equivalent to running the shell command "
9497 "C<find directory -print> but some post-processing happens on the output, "
9498 "described below."
9499 msgstr ""
9500
9501 #. type: textblock
9502 #: ../src/guestfs-actions.pod:1799 ../fish/guestfish-actions.pod:1197
9503 msgid ""
9504 "This returns a list of strings I<without any prefix>.  Thus if the directory"
9505 " structure was:"
9506 msgstr ""
9507
9508 #. type: verbatim
9509 #: ../src/guestfs-actions.pod:1802 ../fish/guestfish-actions.pod:1200
9510 #, no-wrap
9511 msgid ""
9512 " /tmp/a\n"
9513 " /tmp/b\n"
9514 " /tmp/c/d\n"
9515 "\n"
9516 msgstr ""
9517
9518 #. type: textblock
9519 #: ../src/guestfs-actions.pod:1806
9520 msgid ""
9521 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
9522 msgstr ""
9523
9524 #. type: verbatim
9525 #: ../src/guestfs-actions.pod:1809 ../fish/guestfish-actions.pod:1207
9526 #, no-wrap
9527 msgid ""
9528 " a\n"
9529 " b\n"
9530 " c\n"
9531 " c/d\n"
9532 "\n"
9533 msgstr ""
9534
9535 #. type: textblock
9536 #: ../src/guestfs-actions.pod:1814 ../fish/guestfish-actions.pod:1212
9537 msgid ""
9538 "If C<directory> is not a directory, then this command returns an error."
9539 msgstr ""
9540
9541 #. type: textblock
9542 #: ../src/guestfs-actions.pod:1817 ../fish/guestfish-actions.pod:1215
9543 msgid "The returned list is sorted."
9544 msgstr ""
9545
9546 #. type: textblock
9547 #: ../src/guestfs-actions.pod:1819
9548 msgid "See also C<guestfs_find0>."
9549 msgstr ""
9550
9551 #. type: textblock
9552 #: ../src/guestfs-actions.pod:1828 ../src/guestfs-actions.pod:4297
9553 #: ../src/guestfs-actions.pod:6001
9554 msgid "(Added in 1.0.27)"
9555 msgstr ""
9556
9557 #. type: =head2
9558 #: ../src/guestfs-actions.pod:1830
9559 msgid "guestfs_find0"
9560 msgstr ""
9561
9562 #. type: verbatim
9563 #: ../src/guestfs-actions.pod:1832
9564 #, no-wrap
9565 msgid ""
9566 " int\n"
9567 " guestfs_find0 (guestfs_h *g,\n"
9568 "                const char *directory,\n"
9569 "                const char *files);\n"
9570 "\n"
9571 msgstr ""
9572
9573 #. type: textblock
9574 #: ../src/guestfs-actions.pod:1837 ../fish/guestfish-actions.pod:1226
9575 msgid ""
9576 "This command lists out all files and directories, recursively, starting at "
9577 "C<directory>, placing the resulting list in the external file called "
9578 "C<files>."
9579 msgstr ""
9580
9581 #. type: textblock
9582 #: ../src/guestfs-actions.pod:1841
9583 msgid ""
9584 "This command works the same way as C<guestfs_find> with the following "
9585 "exceptions:"
9586 msgstr ""
9587
9588 #. type: textblock
9589 #: ../src/guestfs-actions.pod:1848 ../fish/guestfish-actions.pod:1237
9590 msgid "The resulting list is written to an external file."
9591 msgstr ""
9592
9593 #. type: textblock
9594 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1241
9595 msgid ""
9596 "Items (filenames) in the result are separated by C<\\0> characters.  See "
9597 "L<find(1)> option I<-print0>."
9598 msgstr ""
9599
9600 #. type: textblock
9601 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish-actions.pod:1246
9602 msgid "This command is not limited in the number of names that it can return."
9603 msgstr ""
9604
9605 #. type: textblock
9606 #: ../src/guestfs-actions.pod:1862 ../fish/guestfish-actions.pod:1251
9607 msgid "The result list is not sorted."
9608 msgstr ""
9609
9610 #. type: textblock
9611 #: ../src/guestfs-actions.pod:1868
9612 msgid "(Added in 1.0.74)"
9613 msgstr ""
9614
9615 #. type: =head2
9616 #: ../src/guestfs-actions.pod:1870
9617 msgid "guestfs_findfs_label"
9618 msgstr ""
9619
9620 #. type: verbatim
9621 #: ../src/guestfs-actions.pod:1872
9622 #, no-wrap
9623 msgid ""
9624 " char *\n"
9625 " guestfs_findfs_label (guestfs_h *g,\n"
9626 "                       const char *label);\n"
9627 "\n"
9628 msgstr ""
9629
9630 #. type: textblock
9631 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1261
9632 msgid ""
9633 "This command searches the filesystems and returns the one which has the "
9634 "given label.  An error is returned if no such filesystem can be found."
9635 msgstr ""
9636
9637 #. type: textblock
9638 #: ../src/guestfs-actions.pod:1880
9639 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
9640 msgstr ""
9641
9642 #. type: =head2
9643 #: ../src/guestfs-actions.pod:1887
9644 msgid "guestfs_findfs_uuid"
9645 msgstr ""
9646
9647 #. type: verbatim
9648 #: ../src/guestfs-actions.pod:1889
9649 #, no-wrap
9650 msgid ""
9651 " char *\n"
9652 " guestfs_findfs_uuid (guestfs_h *g,\n"
9653 "                      const char *uuid);\n"
9654 "\n"
9655 msgstr ""
9656
9657 #. type: textblock
9658 #: ../src/guestfs-actions.pod:1893 ../fish/guestfish-actions.pod:1271
9659 msgid ""
9660 "This command searches the filesystems and returns the one which has the "
9661 "given UUID.  An error is returned if no such filesystem can be found."
9662 msgstr ""
9663
9664 #. type: textblock
9665 #: ../src/guestfs-actions.pod:1897
9666 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
9667 msgstr ""
9668
9669 #. type: =head2
9670 #: ../src/guestfs-actions.pod:1904
9671 msgid "guestfs_fsck"
9672 msgstr ""
9673
9674 #. type: verbatim
9675 #: ../src/guestfs-actions.pod:1906
9676 #, no-wrap
9677 msgid ""
9678 " int\n"
9679 " guestfs_fsck (guestfs_h *g,\n"
9680 "               const char *fstype,\n"
9681 "               const char *device);\n"
9682 "\n"
9683 msgstr ""
9684
9685 #. type: textblock
9686 #: ../src/guestfs-actions.pod:1911 ../fish/guestfish-actions.pod:1281
9687 msgid ""
9688 "This runs the filesystem checker (fsck) on C<device> which should have "
9689 "filesystem type C<fstype>."
9690 msgstr ""
9691
9692 #. type: textblock
9693 #: ../src/guestfs-actions.pod:1914 ../fish/guestfish-actions.pod:1284
9694 msgid ""
9695 "The returned integer is the status.  See L<fsck(8)> for the list of status "
9696 "codes from C<fsck>."
9697 msgstr ""
9698
9699 #. type: textblock
9700 #: ../src/guestfs-actions.pod:1923 ../fish/guestfish-actions.pod:1293
9701 msgid "Multiple status codes can be summed together."
9702 msgstr ""
9703
9704 #. type: textblock
9705 #: ../src/guestfs-actions.pod:1927 ../fish/guestfish-actions.pod:1297
9706 msgid ""
9707 "A non-zero return code can mean \"success\", for example if errors have been"
9708 " corrected on the filesystem."
9709 msgstr ""
9710
9711 #. type: textblock
9712 #: ../src/guestfs-actions.pod:1932 ../fish/guestfish-actions.pod:1302
9713 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9714 msgstr ""
9715
9716 #. type: textblock
9717 #: ../src/guestfs-actions.pod:1937 ../fish/guestfish-actions.pod:1307
9718 msgid ""
9719 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9720 msgstr ""
9721
9722 #. type: textblock
9723 #: ../src/guestfs-actions.pod:1941 ../src/guestfs-actions.pod:7768
9724 msgid "(Added in 1.0.16)"
9725 msgstr ""
9726
9727 #. type: =head2
9728 #: ../src/guestfs-actions.pod:1943
9729 msgid "guestfs_get_append"
9730 msgstr ""
9731
9732 #. type: verbatim
9733 #: ../src/guestfs-actions.pod:1945
9734 #, no-wrap
9735 msgid ""
9736 " const char *\n"
9737 " guestfs_get_append (guestfs_h *g);\n"
9738 "\n"
9739 msgstr ""
9740
9741 #. type: textblock
9742 #: ../src/guestfs-actions.pod:1948 ../fish/guestfish-actions.pod:1313
9743 msgid ""
9744 "Return the additional kernel options which are added to the guest kernel "
9745 "command line."
9746 msgstr ""
9747
9748 #. type: textblock
9749 #: ../src/guestfs-actions.pod:1951 ../fish/guestfish-actions.pod:1316
9750 msgid "If C<NULL> then no options are added."
9751 msgstr ""
9752
9753 #. type: textblock
9754 #: ../src/guestfs-actions.pod:1953
9755 msgid ""
9756 "This function returns a string which may be NULL.  There is no way to return"
9757 " an error from this function.  The string is owned by the guest handle and "
9758 "must I<not> be freed."
9759 msgstr ""
9760
9761 #. type: textblock
9762 #: ../src/guestfs-actions.pod:1957 ../src/guestfs-actions.pod:5679
9763 #: ../src/guestfs-actions.pod:6161 ../src/guestfs-actions.pod:6601
9764 #: ../src/guestfs-actions.pod:6620 ../src/guestfs-actions.pod:6636
9765 #: ../src/guestfs-actions.pod:6660 ../src/guestfs-actions.pod:7414
9766 #: ../src/guestfs-actions.pod:7429 ../src/guestfs-actions.pod:7811
9767 msgid "(Added in 1.0.26)"
9768 msgstr ""
9769
9770 #. type: =head2
9771 #: ../src/guestfs-actions.pod:1959
9772 msgid "guestfs_get_attach_method"
9773 msgstr ""
9774
9775 #. type: verbatim
9776 #: ../src/guestfs-actions.pod:1961
9777 #, no-wrap
9778 msgid ""
9779 " char *\n"
9780 " guestfs_get_attach_method (guestfs_h *g);\n"
9781 "\n"
9782 msgstr ""
9783
9784 #. type: textblock
9785 #: ../src/guestfs-actions.pod:1964
9786 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
9787 msgstr ""
9788
9789 #. type: textblock
9790 #: ../src/guestfs-actions.pod:1969 ../src/guestfs-actions.pod:6191
9791 msgid "(Added in 1.9.8)"
9792 msgstr ""
9793
9794 #. type: =head2
9795 #: ../src/guestfs-actions.pod:1971
9796 msgid "guestfs_get_autosync"
9797 msgstr ""
9798
9799 #. type: verbatim
9800 #: ../src/guestfs-actions.pod:1973
9801 #, no-wrap
9802 msgid ""
9803 " int\n"
9804 " guestfs_get_autosync (guestfs_h *g);\n"
9805 "\n"
9806 msgstr ""
9807
9808 #. type: textblock
9809 #: ../src/guestfs-actions.pod:1976 ../fish/guestfish-actions.pod:1328
9810 msgid "Get the autosync flag."
9811 msgstr ""
9812
9813 #. type: =head2
9814 #: ../src/guestfs-actions.pod:1982
9815 msgid "guestfs_get_direct"
9816 msgstr ""
9817
9818 #. type: verbatim
9819 #: ../src/guestfs-actions.pod:1984
9820 #, no-wrap
9821 msgid ""
9822 " int\n"
9823 " guestfs_get_direct (guestfs_h *g);\n"
9824 "\n"
9825 msgstr ""
9826
9827 #. type: textblock
9828 #: ../src/guestfs-actions.pod:1987 ../fish/guestfish-actions.pod:1334
9829 msgid "Return the direct appliance mode flag."
9830 msgstr ""
9831
9832 #. type: textblock
9833 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:6232
9834 msgid "(Added in 1.0.72)"
9835 msgstr ""
9836
9837 #. type: =head2
9838 #: ../src/guestfs-actions.pod:1993
9839 msgid "guestfs_get_e2label"
9840 msgstr ""
9841
9842 #. type: verbatim
9843 #: ../src/guestfs-actions.pod:1995
9844 #, no-wrap
9845 msgid ""
9846 " char *\n"
9847 " guestfs_get_e2label (guestfs_h *g,\n"
9848 "                      const char *device);\n"
9849 "\n"
9850 msgstr ""
9851
9852 #. type: textblock
9853 #: ../src/guestfs-actions.pod:1999 ../fish/guestfish-actions.pod:1340
9854 msgid ""
9855 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9856 msgstr ""
9857
9858 #. type: textblock
9859 #: ../src/guestfs-actions.pod:2005 ../fish/guestfish-actions.pod:1343
9860 msgid ""
9861 "This function is deprecated.  In new code, use the C<vfs_label> call "
9862 "instead."
9863 msgstr ""
9864
9865 #. type: textblock
9866 #: ../src/guestfs-actions.pod:2012 ../src/guestfs-actions.pod:2033
9867 #: ../src/guestfs-actions.pod:6250 ../src/guestfs-actions.pod:6269
9868 msgid "(Added in 1.0.15)"
9869 msgstr ""
9870
9871 #. type: =head2
9872 #: ../src/guestfs-actions.pod:2014
9873 msgid "guestfs_get_e2uuid"
9874 msgstr ""
9875
9876 #. type: verbatim
9877 #: ../src/guestfs-actions.pod:2016
9878 #, no-wrap
9879 msgid ""
9880 " char *\n"
9881 " guestfs_get_e2uuid (guestfs_h *g,\n"
9882 "                     const char *device);\n"
9883 "\n"
9884 msgstr ""
9885
9886 #. type: textblock
9887 #: ../src/guestfs-actions.pod:2020 ../fish/guestfish-actions.pod:1354
9888 msgid ""
9889 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9890 msgstr ""
9891
9892 #. type: textblock
9893 #: ../src/guestfs-actions.pod:2026 ../fish/guestfish-actions.pod:1357
9894 msgid ""
9895 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
9896 msgstr ""
9897
9898 #. type: =head2
9899 #: ../src/guestfs-actions.pod:2035
9900 msgid "guestfs_get_memsize"
9901 msgstr ""
9902
9903 #. type: verbatim
9904 #: ../src/guestfs-actions.pod:2037
9905 #, no-wrap
9906 msgid ""
9907 " int\n"
9908 " guestfs_get_memsize (guestfs_h *g);\n"
9909 "\n"
9910 msgstr ""
9911
9912 #. type: textblock
9913 #: ../src/guestfs-actions.pod:2040 ../fish/guestfish-actions.pod:1368
9914 msgid ""
9915 "This gets the memory size in megabytes allocated to the qemu subprocess."
9916 msgstr ""
9917
9918 #. type: textblock
9919 #: ../src/guestfs-actions.pod:2043
9920 msgid ""
9921 "If C<guestfs_set_memsize> was not called on this handle, and if "
9922 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default"
9923 " value for memsize."
9924 msgstr ""
9925
9926 #. type: textblock
9927 #: ../src/guestfs-actions.pod:2047 ../src/guestfs-actions.pod:2137
9928 #: ../src/guestfs-actions.pod:6285 ../src/guestfs-actions.pod:6409
9929 #: ../fish/guestfish-actions.pod:1375 ../fish/guestfish-actions.pod:1432
9930 #: ../fish/guestfish-actions.pod:4157 ../fish/guestfish-actions.pod:4259
9931 msgid ""
9932 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9933 msgstr ""
9934
9935 #. type: textblock
9936 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:4588
9937 #: ../src/guestfs-actions.pod:4797 ../src/guestfs-actions.pod:4816
9938 #: ../src/guestfs-actions.pod:4835 ../src/guestfs-actions.pod:4847
9939 #: ../src/guestfs-actions.pod:4864 ../src/guestfs-actions.pod:4877
9940 #: ../src/guestfs-actions.pod:5904 ../src/guestfs-actions.pod:6290
9941 #: ../src/guestfs-actions.pod:6568 ../src/guestfs-actions.pod:7183
9942 msgid "(Added in 1.0.55)"
9943 msgstr ""
9944
9945 #. type: =head2
9946 #: ../src/guestfs-actions.pod:2054
9947 msgid "guestfs_get_network"
9948 msgstr ""
9949
9950 #. type: verbatim
9951 #: ../src/guestfs-actions.pod:2056
9952 #, no-wrap
9953 msgid ""
9954 " int\n"
9955 " guestfs_get_network (guestfs_h *g);\n"
9956 "\n"
9957 msgstr ""
9958
9959 #. type: textblock
9960 #: ../src/guestfs-actions.pod:2059 ../fish/guestfish-actions.pod:1382
9961 msgid "This returns the enable network flag."
9962 msgstr ""
9963
9964 #. type: textblock
9965 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:6309
9966 msgid "(Added in 1.5.4)"
9967 msgstr ""
9968
9969 #. type: =head2
9970 #: ../src/guestfs-actions.pod:2065
9971 msgid "guestfs_get_path"
9972 msgstr ""
9973
9974 #. type: verbatim
9975 #: ../src/guestfs-actions.pod:2067
9976 #, no-wrap
9977 msgid ""
9978 " const char *\n"
9979 " guestfs_get_path (guestfs_h *g);\n"
9980 "\n"
9981 msgstr ""
9982
9983 #. type: textblock
9984 #: ../src/guestfs-actions.pod:2070 ../fish/guestfish-actions.pod:1388
9985 msgid "Return the current search path."
9986 msgstr ""
9987
9988 #. type: textblock
9989 #: ../src/guestfs-actions.pod:2072 ../fish/guestfish-actions.pod:1390
9990 msgid ""
9991 "This is always non-NULL.  If it wasn't set already, then this will return "
9992 "the default path."
9993 msgstr ""
9994
9995 #. type: textblock
9996 #: ../src/guestfs-actions.pod:2075 ../src/guestfs-actions.pod:2113
9997 msgid ""
9998 "This function returns a string, or NULL on error.  The string is owned by "
9999 "the guest handle and must I<not> be freed."
10000 msgstr ""
10001
10002 #. type: =head2
10003 #: ../src/guestfs-actions.pod:2080
10004 msgid "guestfs_get_pgroup"
10005 msgstr ""
10006
10007 #. type: verbatim
10008 #: ../src/guestfs-actions.pod:2082
10009 #, no-wrap
10010 msgid ""
10011 " int\n"
10012 " guestfs_get_pgroup (guestfs_h *g);\n"
10013 "\n"
10014 msgstr ""
10015
10016 #. type: textblock
10017 #: ../src/guestfs-actions.pod:2085 ../fish/guestfish-actions.pod:1397
10018 msgid "This returns the process group flag."
10019 msgstr ""
10020
10021 #. type: =head2
10022 #: ../src/guestfs-actions.pod:2089
10023 msgid "guestfs_get_pid"
10024 msgstr ""
10025
10026 #. type: verbatim
10027 #: ../src/guestfs-actions.pod:2091
10028 #, no-wrap
10029 msgid ""
10030 " int\n"
10031 " guestfs_get_pid (guestfs_h *g);\n"
10032 "\n"
10033 msgstr ""
10034
10035 #. type: textblock
10036 #: ../src/guestfs-actions.pod:2094 ../fish/guestfish-actions.pod:1405
10037 msgid ""
10038 "Return the process ID of the qemu subprocess.  If there is no qemu "
10039 "subprocess, then this will return an error."
10040 msgstr ""
10041
10042 #. type: textblock
10043 #: ../src/guestfs-actions.pod:2097 ../fish/guestfish-actions.pod:1408
10044 msgid "This is an internal call used for debugging and testing."
10045 msgstr ""
10046
10047 #. type: textblock
10048 #: ../src/guestfs-actions.pod:2101
10049 msgid "(Added in 1.0.56)"
10050 msgstr ""
10051
10052 #. type: =head2
10053 #: ../src/guestfs-actions.pod:2103
10054 msgid "guestfs_get_qemu"
10055 msgstr ""
10056
10057 #. type: verbatim
10058 #: ../src/guestfs-actions.pod:2105
10059 #, no-wrap
10060 msgid ""
10061 " const char *\n"
10062 " guestfs_get_qemu (guestfs_h *g);\n"
10063 "\n"
10064 msgstr ""
10065
10066 #. type: textblock
10067 #: ../src/guestfs-actions.pod:2108 ../fish/guestfish-actions.pod:1414
10068 msgid "Return the current qemu binary."
10069 msgstr ""
10070
10071 #. type: textblock
10072 #: ../src/guestfs-actions.pod:2110 ../fish/guestfish-actions.pod:1416
10073 msgid ""
10074 "This is always non-NULL.  If it wasn't set already, then this will return "
10075 "the default qemu binary name."
10076 msgstr ""
10077
10078 #. type: textblock
10079 #: ../src/guestfs-actions.pod:2116 ../src/guestfs-actions.pod:6371
10080 msgid "(Added in 1.0.6)"
10081 msgstr ""
10082
10083 #. type: =head2
10084 #: ../src/guestfs-actions.pod:2118
10085 msgid "guestfs_get_recovery_proc"
10086 msgstr ""
10087
10088 #. type: verbatim
10089 #: ../src/guestfs-actions.pod:2120
10090 #, no-wrap
10091 msgid ""
10092 " int\n"
10093 " guestfs_get_recovery_proc (guestfs_h *g);\n"
10094 "\n"
10095 msgstr ""
10096
10097 #. type: textblock
10098 #: ../src/guestfs-actions.pod:2123 ../fish/guestfish-actions.pod:1423
10099 msgid "Return the recovery process enabled flag."
10100 msgstr ""
10101
10102 #. type: textblock
10103 #: ../src/guestfs-actions.pod:2127 ../src/guestfs-actions.pod:3661
10104 #: ../src/guestfs-actions.pod:3992 ../src/guestfs-actions.pod:4395
10105 #: ../src/guestfs-actions.pod:4427 ../src/guestfs-actions.pod:5609
10106 #: ../src/guestfs-actions.pod:5952 ../src/guestfs-actions.pod:6395
10107 #: ../src/guestfs-actions.pod:7086 ../src/guestfs-actions.pod:7106
10108 #: ../src/guestfs-actions.pod:7298
10109 msgid "(Added in 1.0.77)"
10110 msgstr ""
10111
10112 #. type: =head2
10113 #: ../src/guestfs-actions.pod:2129
10114 msgid "guestfs_get_selinux"
10115 msgstr ""
10116
10117 #. type: verbatim
10118 #: ../src/guestfs-actions.pod:2131
10119 #, no-wrap
10120 msgid ""
10121 " int\n"
10122 " guestfs_get_selinux (guestfs_h *g);\n"
10123 "\n"
10124 msgstr ""
10125
10126 #. type: textblock
10127 #: ../src/guestfs-actions.pod:2134
10128 msgid ""
10129 "This returns the current setting of the selinux flag which is passed to the "
10130 "appliance at boot time.  See C<guestfs_set_selinux>."
10131 msgstr ""
10132
10133 #. type: textblock
10134 #: ../src/guestfs-actions.pod:2142 ../src/guestfs-actions.pod:2205
10135 #: ../src/guestfs-actions.pod:6414 ../src/guestfs-actions.pod:6472
10136 msgid "(Added in 1.0.67)"
10137 msgstr ""
10138
10139 #. type: =head2
10140 #: ../src/guestfs-actions.pod:2144
10141 msgid "guestfs_get_state"
10142 msgstr ""
10143
10144 #. type: verbatim
10145 #: ../src/guestfs-actions.pod:2146
10146 #, no-wrap
10147 msgid ""
10148 " int\n"
10149 " guestfs_get_state (guestfs_h *g);\n"
10150 "\n"
10151 msgstr ""
10152
10153 #. type: textblock
10154 #: ../src/guestfs-actions.pod:2149 ../fish/guestfish-actions.pod:1439
10155 msgid ""
10156 "This returns the current state as an opaque integer.  This is only useful "
10157 "for printing debug and internal error messages."
10158 msgstr ""
10159
10160 #. type: textblock
10161 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:3432
10162 #: ../src/guestfs-actions.pod:3461 ../src/guestfs-actions.pod:3522
10163 #: ../src/guestfs-actions.pod:3549 ../fish/guestfish-actions.pod:1442
10164 #: ../fish/guestfish-actions.pod:2362 ../fish/guestfish-actions.pod:2380
10165 #: ../fish/guestfish-actions.pod:2418 ../fish/guestfish-actions.pod:2434
10166 msgid "For more information on states, see L<guestfs(3)>."
10167 msgstr ""
10168
10169 #. type: =head2
10170 #: ../src/guestfs-actions.pod:2158
10171 msgid "guestfs_get_trace"
10172 msgstr ""
10173
10174 #. type: verbatim
10175 #: ../src/guestfs-actions.pod:2160
10176 #, no-wrap
10177 msgid ""
10178 " int\n"
10179 " guestfs_get_trace (guestfs_h *g);\n"
10180 "\n"
10181 msgstr ""
10182
10183 #. type: textblock
10184 #: ../src/guestfs-actions.pod:2163 ../fish/guestfish-actions.pod:1448
10185 msgid "Return the command trace flag."
10186 msgstr ""
10187
10188 #. type: =head2
10189 #: ../src/guestfs-actions.pod:2169
10190 msgid "guestfs_get_umask"
10191 msgstr ""
10192
10193 #. type: verbatim
10194 #: ../src/guestfs-actions.pod:2171
10195 #, no-wrap
10196 msgid ""
10197 " int\n"
10198 " guestfs_get_umask (guestfs_h *g);\n"
10199 "\n"
10200 msgstr ""
10201
10202 #. type: textblock
10203 #: ../src/guestfs-actions.pod:2174
10204 msgid ""
10205 "Return the current umask.  By default the umask is C<022> unless it has been"
10206 " set by calling C<guestfs_umask>."
10207 msgstr ""
10208
10209 #. type: =head2
10210 #: ../src/guestfs-actions.pod:2181
10211 msgid "guestfs_get_verbose"
10212 msgstr ""
10213
10214 #. type: verbatim
10215 #: ../src/guestfs-actions.pod:2183
10216 #, no-wrap
10217 msgid ""
10218 " int\n"
10219 " guestfs_get_verbose (guestfs_h *g);\n"
10220 "\n"
10221 msgstr ""
10222
10223 #. type: textblock
10224 #: ../src/guestfs-actions.pod:2186 ../fish/guestfish-actions.pod:1461
10225 msgid "This returns the verbose messages flag."
10226 msgstr ""
10227
10228 #. type: =head2
10229 #: ../src/guestfs-actions.pod:2192
10230 msgid "guestfs_getcon"
10231 msgstr ""
10232
10233 #. type: verbatim
10234 #: ../src/guestfs-actions.pod:2194
10235 #, no-wrap
10236 msgid ""
10237 " char *\n"
10238 " guestfs_getcon (guestfs_h *g);\n"
10239 "\n"
10240 msgstr ""
10241
10242 #. type: textblock
10243 #: ../src/guestfs-actions.pod:2197 ../fish/guestfish-actions.pod:1467
10244 msgid "This gets the SELinux security context of the daemon."
10245 msgstr ""
10246
10247 #. type: textblock
10248 #: ../src/guestfs-actions.pod:2199
10249 msgid ""
10250 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
10251 msgstr ""
10252
10253 #. type: =head2
10254 #: ../src/guestfs-actions.pod:2207
10255 msgid "guestfs_getxattr"
10256 msgstr ""
10257
10258 #. type: verbatim
10259 #: ../src/guestfs-actions.pod:2209
10260 #, no-wrap
10261 msgid ""
10262 " char *\n"
10263 " guestfs_getxattr (guestfs_h *g,\n"
10264 "                   const char *path,\n"
10265 "                   const char *name,\n"
10266 "                   size_t *size_r);\n"
10267 "\n"
10268 msgstr ""
10269
10270 #. type: textblock
10271 #: ../src/guestfs-actions.pod:2215
10272 msgid ""
10273 "Get a single extended attribute from file C<path> named C<name>.  This call "
10274 "follows symlinks.  If you want to lookup an extended attribute for the "
10275 "symlink itself, use C<guestfs_lgetxattr>."
10276 msgstr ""
10277
10278 #. type: textblock
10279 #: ../src/guestfs-actions.pod:2219 ../src/guestfs-actions.pod:3675
10280 msgid ""
10281 "Normally it is better to get all extended attributes from a file in one go "
10282 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
10283 "implementations are buggy and do not provide a way to list out attributes.  "
10284 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
10285 "extended attributes you want in advance and call this function."
10286 msgstr ""
10287
10288 #. type: textblock
10289 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3682
10290 #: ../fish/guestfish-actions.pod:1487 ../fish/guestfish-actions.pod:2514
10291 msgid ""
10292 "Extended attribute values are blobs of binary data.  If there is no extended"
10293 " attribute named C<name>, this returns an error."
10294 msgstr ""
10295
10296 #. type: textblock
10297 #: ../src/guestfs-actions.pod:2229
10298 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
10299 msgstr ""
10300
10301 #. type: textblock
10302 #: ../src/guestfs-actions.pod:2231 ../src/guestfs-actions.pod:2422
10303 #: ../src/guestfs-actions.pod:2892 ../src/guestfs-actions.pod:3687
10304 #: ../src/guestfs-actions.pod:5602 ../src/guestfs-actions.pod:5628
10305 #: ../src/guestfs-actions.pod:5809
10306 msgid ""
10307 "This function returns a buffer, or NULL on error.  The size of the returned "
10308 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer"
10309 " after use>."
10310 msgstr ""
10311
10312 #. type: textblock
10313 #: ../src/guestfs-actions.pod:2235 ../src/guestfs-actions.pod:3691
10314 msgid "(Added in 1.7.24)"
10315 msgstr ""
10316
10317 #. type: =head2
10318 #: ../src/guestfs-actions.pod:2237
10319 msgid "guestfs_getxattrs"
10320 msgstr ""
10321
10322 #. type: verbatim
10323 #: ../src/guestfs-actions.pod:2239
10324 #, no-wrap
10325 msgid ""
10326 " struct guestfs_xattr_list *\n"
10327 " guestfs_getxattrs (guestfs_h *g,\n"
10328 "                    const char *path);\n"
10329 "\n"
10330 msgstr ""
10331
10332 #. type: textblock
10333 #: ../src/guestfs-actions.pod:2243 ../fish/guestfish-actions.pod:1496
10334 msgid ""
10335 "This call lists the extended attributes of the file or directory C<path>."
10336 msgstr ""
10337
10338 #. type: textblock
10339 #: ../src/guestfs-actions.pod:2246 ../fish/guestfish-actions.pod:1499
10340 msgid ""
10341 "At the system call level, this is a combination of the L<listxattr(2)> and "
10342 "L<getxattr(2)> calls."
10343 msgstr ""
10344
10345 #. type: textblock
10346 #: ../src/guestfs-actions.pod:2249
10347 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
10348 msgstr ""
10349
10350 #. type: textblock
10351 #: ../src/guestfs-actions.pod:2251 ../src/guestfs-actions.pod:3703
10352 #: ../src/guestfs-actions.pod:4391
10353 msgid ""
10354 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was"
10355 " an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
10356 msgstr ""
10357
10358 #. type: textblock
10359 #: ../src/guestfs-actions.pod:2255 ../src/guestfs-actions.pod:3707
10360 #: ../src/guestfs-actions.pod:3906 ../src/guestfs-actions.pod:3942
10361 #: ../src/guestfs-actions.pod:5982 ../src/guestfs-actions.pod:6491
10362 #: ../src/guestfs-actions.pod:7876
10363 msgid "(Added in 1.0.59)"
10364 msgstr ""
10365
10366 #. type: =head2
10367 #: ../src/guestfs-actions.pod:2257
10368 msgid "guestfs_glob_expand"
10369 msgstr ""
10370
10371 #. type: verbatim
10372 #: ../src/guestfs-actions.pod:2259
10373 #, no-wrap
10374 msgid ""
10375 " char **\n"
10376 " guestfs_glob_expand (guestfs_h *g,\n"
10377 "                      const char *pattern);\n"
10378 "\n"
10379 msgstr ""
10380
10381 #. type: textblock
10382 #: ../src/guestfs-actions.pod:2263 ../fish/guestfish-actions.pod:1508
10383 msgid ""
10384 "This command searches for all the pathnames matching C<pattern> according to"
10385 " the wildcard expansion rules used by the shell."
10386 msgstr ""
10387
10388 #. type: textblock
10389 #: ../src/guestfs-actions.pod:2267 ../fish/guestfish-actions.pod:1512
10390 msgid ""
10391 "If no paths match, then this returns an empty list (note: not an error)."
10392 msgstr ""
10393
10394 #. type: textblock
10395 #: ../src/guestfs-actions.pod:2270 ../fish/guestfish-actions.pod:1515
10396 msgid ""
10397 "It is just a wrapper around the C L<glob(3)> function with flags "
10398 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
10399 msgstr ""
10400
10401 #. type: textblock
10402 #: ../src/guestfs-actions.pod:2278 ../src/guestfs-actions.pod:6684
10403 #: ../src/guestfs-actions.pod:6701
10404 msgid "(Added in 1.0.50)"
10405 msgstr ""
10406
10407 #. type: =head2
10408 #: ../src/guestfs-actions.pod:2280
10409 msgid "guestfs_grep"
10410 msgstr ""
10411
10412 #. type: verbatim
10413 #: ../src/guestfs-actions.pod:2282
10414 #, no-wrap
10415 msgid ""
10416 " char **\n"
10417 " guestfs_grep (guestfs_h *g,\n"
10418 "               const char *regex,\n"
10419 "               const char *path);\n"
10420 "\n"
10421 msgstr ""
10422
10423 #. type: textblock
10424 #: ../src/guestfs-actions.pod:2287 ../fish/guestfish-actions.pod:1523
10425 msgid ""
10426 "This calls the external C<grep> program and returns the matching lines."
10427 msgstr ""
10428
10429 #. type: =head2
10430 #: ../src/guestfs-actions.pod:2299
10431 msgid "guestfs_grepi"
10432 msgstr ""
10433
10434 #. type: verbatim
10435 #: ../src/guestfs-actions.pod:2301
10436 #, no-wrap
10437 msgid ""
10438 " char **\n"
10439 " guestfs_grepi (guestfs_h *g,\n"
10440 "                const char *regex,\n"
10441 "                const char *path);\n"
10442 "\n"
10443 msgstr ""
10444
10445 #. type: textblock
10446 #: ../src/guestfs-actions.pod:2306 ../fish/guestfish-actions.pod:1533
10447 msgid ""
10448 "This calls the external C<grep -i> program and returns the matching lines."
10449 msgstr ""
10450
10451 #. type: =head2
10452 #: ../src/guestfs-actions.pod:2318
10453 msgid "guestfs_grub_install"
10454 msgstr ""
10455
10456 #. type: verbatim
10457 #: ../src/guestfs-actions.pod:2320
10458 #, no-wrap
10459 msgid ""
10460 " int\n"
10461 " guestfs_grub_install (guestfs_h *g,\n"
10462 "                       const char *root,\n"
10463 "                       const char *device);\n"
10464 "\n"
10465 msgstr ""
10466
10467 #. type: textblock
10468 #: ../src/guestfs-actions.pod:2325 ../fish/guestfish-actions.pod:1543
10469 msgid ""
10470 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with"
10471 " the root directory being C<root>."
10472 msgstr ""
10473
10474 #. type: textblock
10475 #: ../src/guestfs-actions.pod:2328 ../fish/guestfish-actions.pod:1546
10476 msgid ""
10477 "Note: If grub-install reports the error \"No suitable drive was found in the"
10478 " generated device map.\" it may be that you need to create a "
10479 "C</boot/grub/device.map> file first that contains the mapping between grub "
10480 "device names and Linux device names.  It is usually sufficient to create a "
10481 "file containing:"
10482 msgstr ""
10483
10484 #. type: verbatim
10485 #: ../src/guestfs-actions.pod:2335 ../fish/guestfish-actions.pod:1553
10486 #, no-wrap
10487 msgid ""
10488 " (hd0) /dev/vda\n"
10489 "\n"
10490 msgstr ""
10491
10492 #. type: textblock
10493 #: ../src/guestfs-actions.pod:2337 ../fish/guestfish-actions.pod:1555
10494 msgid "replacing C</dev/vda> with the name of the installation device."
10495 msgstr ""
10496
10497 #. type: textblock
10498 #: ../src/guestfs-actions.pod:2341
10499 msgid "(Added in 1.0.17)"
10500 msgstr ""
10501
10502 #. type: =head2
10503 #: ../src/guestfs-actions.pod:2343
10504 msgid "guestfs_head"
10505 msgstr ""
10506
10507 #. type: verbatim
10508 #: ../src/guestfs-actions.pod:2345
10509 #, no-wrap
10510 msgid ""
10511 " char **\n"
10512 " guestfs_head (guestfs_h *g,\n"
10513 "               const char *path);\n"
10514 "\n"
10515 msgstr ""
10516
10517 #. type: textblock
10518 #: ../src/guestfs-actions.pod:2349 ../fish/guestfish-actions.pod:1561
10519 msgid ""
10520 "This command returns up to the first 10 lines of a file as a list of "
10521 "strings."
10522 msgstr ""
10523
10524 #. type: =head2
10525 #: ../src/guestfs-actions.pod:2361
10526 msgid "guestfs_head_n"
10527 msgstr ""
10528
10529 #. type: verbatim
10530 #: ../src/guestfs-actions.pod:2363
10531 #, no-wrap
10532 msgid ""
10533 " char **\n"
10534 " guestfs_head_n (guestfs_h *g,\n"
10535 "                 int nrlines,\n"
10536 "                 const char *path);\n"
10537 "\n"
10538 msgstr ""
10539
10540 #. type: textblock
10541 #: ../src/guestfs-actions.pod:2368 ../fish/guestfish-actions.pod:1571
10542 msgid ""
10543 "If the parameter C<nrlines> is a positive number, this returns the first "
10544 "C<nrlines> lines of the file C<path>."
10545 msgstr ""
10546
10547 #. type: textblock
10548 #: ../src/guestfs-actions.pod:2371 ../fish/guestfish-actions.pod:1574
10549 msgid ""
10550 "If the parameter C<nrlines> is a negative number, this returns lines from "
10551 "the file C<path>, excluding the last C<nrlines> lines."
10552 msgstr ""
10553
10554 #. type: textblock
10555 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6981
10556 #: ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:4637
10557 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
10558 msgstr ""
10559
10560 #. type: =head2
10561 #: ../src/guestfs-actions.pod:2385
10562 msgid "guestfs_hexdump"
10563 msgstr ""
10564
10565 #. type: verbatim
10566 #: ../src/guestfs-actions.pod:2387
10567 #, no-wrap
10568 msgid ""
10569 " char *\n"
10570 " guestfs_hexdump (guestfs_h *g,\n"
10571 "                  const char *path);\n"
10572 "\n"
10573 msgstr ""
10574
10575 #. type: textblock
10576 #: ../src/guestfs-actions.pod:2391 ../fish/guestfish-actions.pod:1586
10577 msgid ""
10578 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
10579 "readable, canonical hex dump of the file."
10580 msgstr ""
10581
10582 #. type: textblock
10583 #: ../src/guestfs-actions.pod:2400 ../src/guestfs-actions.pod:6765
10584 #: ../src/guestfs-actions.pod:6820
10585 msgid "(Added in 1.0.22)"
10586 msgstr ""
10587
10588 #. type: =head2
10589 #: ../src/guestfs-actions.pod:2402
10590 msgid "guestfs_initrd_cat"
10591 msgstr ""
10592
10593 #. type: verbatim
10594 #: ../src/guestfs-actions.pod:2404
10595 #, no-wrap
10596 msgid ""
10597 " char *\n"
10598 " guestfs_initrd_cat (guestfs_h *g,\n"
10599 "                     const char *initrdpath,\n"
10600 "                     const char *filename,\n"
10601 "                     size_t *size_r);\n"
10602 "\n"
10603 msgstr ""
10604
10605 #. type: textblock
10606 #: ../src/guestfs-actions.pod:2410 ../fish/guestfish-actions.pod:1596
10607 msgid ""
10608 "This command unpacks the file C<filename> from the initrd file called "
10609 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
10610 "character."
10611 msgstr ""
10612
10613 #. type: textblock
10614 #: ../src/guestfs-actions.pod:2414 ../fish/guestfish-actions.pod:1600
10615 msgid ""
10616 "For example, in guestfish you could use the following command to examine the"
10617 " boot script (usually called C</init>)  contained in a Linux initrd or "
10618 "initramfs image:"
10619 msgstr ""
10620
10621 #. type: verbatim
10622 #: ../src/guestfs-actions.pod:2418 ../fish/guestfish-actions.pod:1604
10623 #, no-wrap
10624 msgid ""
10625 " initrd-cat /boot/initrd-<version>.img init\n"
10626 "\n"
10627 msgstr ""
10628
10629 #. type: textblock
10630 #: ../src/guestfs-actions.pod:2420
10631 msgid "See also C<guestfs_initrd_list>."
10632 msgstr ""
10633
10634 #. type: =head2
10635 #: ../src/guestfs-actions.pod:2431
10636 msgid "guestfs_initrd_list"
10637 msgstr ""
10638
10639 #. type: verbatim
10640 #: ../src/guestfs-actions.pod:2433
10641 #, no-wrap
10642 msgid ""
10643 " char **\n"
10644 " guestfs_initrd_list (guestfs_h *g,\n"
10645 "                      const char *path);\n"
10646 "\n"
10647 msgstr ""
10648
10649 #. type: textblock
10650 #: ../src/guestfs-actions.pod:2437 ../fish/guestfish-actions.pod:1615
10651 msgid "This command lists out files contained in an initrd."
10652 msgstr ""
10653
10654 #. type: textblock
10655 #: ../src/guestfs-actions.pod:2439 ../fish/guestfish-actions.pod:1617
10656 msgid ""
10657 "The files are listed without any initial C</> character.  The files are "
10658 "listed in the order they appear (not necessarily alphabetical).  Directory "
10659 "names are listed as separate items."
10660 msgstr ""
10661
10662 #. type: textblock
10663 #: ../src/guestfs-actions.pod:2443 ../fish/guestfish-actions.pod:1621
10664 msgid ""
10665 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
10666 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
10667 "files)."
10668 msgstr ""
10669
10670 #. type: =head2
10671 #: ../src/guestfs-actions.pod:2453
10672 msgid "guestfs_inotify_add_watch"
10673 msgstr ""
10674
10675 #. type: verbatim
10676 #: ../src/guestfs-actions.pod:2455
10677 #, no-wrap
10678 msgid ""
10679 " int64_t\n"
10680 " guestfs_inotify_add_watch (guestfs_h *g,\n"
10681 "                            const char *path,\n"
10682 "                            int mask);\n"
10683 "\n"
10684 msgstr ""
10685
10686 #. type: textblock
10687 #: ../src/guestfs-actions.pod:2460 ../fish/guestfish-actions.pod:1629
10688 msgid "Watch C<path> for the events listed in C<mask>."
10689 msgstr ""
10690
10691 #. type: textblock
10692 #: ../src/guestfs-actions.pod:2462 ../fish/guestfish-actions.pod:1631
10693 msgid ""
10694 "Note that if C<path> is a directory then events within that directory are "
10695 "watched, but this does I<not> happen recursively (in subdirectories)."
10696 msgstr ""
10697
10698 #. type: textblock
10699 #: ../src/guestfs-actions.pod:2466 ../fish/guestfish-actions.pod:1635
10700 msgid ""
10701 "Note for non-C or non-Linux callers: the inotify events are defined by the "
10702 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
10703 msgstr ""
10704
10705 #. type: =head2
10706 #: ../src/guestfs-actions.pod:2474
10707 msgid "guestfs_inotify_close"
10708 msgstr ""
10709
10710 #. type: verbatim
10711 #: ../src/guestfs-actions.pod:2476
10712 #, no-wrap
10713 msgid ""
10714 " int\n"
10715 " guestfs_inotify_close (guestfs_h *g);\n"
10716 "\n"
10717 msgstr ""
10718
10719 #. type: textblock
10720 #: ../src/guestfs-actions.pod:2479 ../fish/guestfish-actions.pod:1643
10721 msgid ""
10722 "This closes the inotify handle which was previously opened by inotify_init."
10723 "  It removes all watches, throws away any pending events, and deallocates "
10724 "all resources."
10725 msgstr ""
10726
10727 #. type: =head2
10728 #: ../src/guestfs-actions.pod:2487
10729 msgid "guestfs_inotify_files"
10730 msgstr ""
10731
10732 #. type: verbatim
10733 #: ../src/guestfs-actions.pod:2489
10734 #, no-wrap
10735 msgid ""
10736 " char **\n"
10737 " guestfs_inotify_files (guestfs_h *g);\n"
10738 "\n"
10739 msgstr ""
10740
10741 #. type: textblock
10742 #: ../src/guestfs-actions.pod:2492
10743 msgid ""
10744 "This function is a helpful wrapper around C<guestfs_inotify_read> which just"
10745 " returns a list of pathnames of objects that were touched.  The returned "
10746 "pathnames are sorted and deduplicated."
10747 msgstr ""
10748
10749 #. type: =head2
10750 #: ../src/guestfs-actions.pod:2502
10751 msgid "guestfs_inotify_init"
10752 msgstr ""
10753
10754 #. type: verbatim
10755 #: ../src/guestfs-actions.pod:2504
10756 #, no-wrap
10757 msgid ""
10758 " int\n"
10759 " guestfs_inotify_init (guestfs_h *g,\n"
10760 "                       int maxevents);\n"
10761 "\n"
10762 msgstr ""
10763
10764 #. type: textblock
10765 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1659
10766 msgid ""
10767 "This command creates a new inotify handle.  The inotify subsystem can be "
10768 "used to notify events which happen to objects in the guest filesystem."
10769 msgstr ""
10770
10771 #. type: textblock
10772 #: ../src/guestfs-actions.pod:2512
10773 msgid ""
10774 "C<maxevents> is the maximum number of events which will be queued up between"
10775 " calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
10776 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
10777 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
10778 "throws away events, but records the fact that it threw them away by setting "
10779 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
10780 "C<guestfs_inotify_read>)."
10781 msgstr ""
10782
10783 #. type: textblock
10784 #: ../src/guestfs-actions.pod:2522
10785 msgid ""
10786 "Before any events are generated, you have to add some watches to the "
10787 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
10788 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
10789 msgstr ""
10790
10791 #. type: textblock
10792 #: ../src/guestfs-actions.pod:2528
10793 msgid ""
10794 "Queued up events should be read periodically by calling "
10795 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful"
10796 " wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
10797 "often enough then you risk the internal queue overflowing."
10798 msgstr ""
10799
10800 #. type: textblock
10801 #: ../src/guestfs-actions.pod:2535
10802 msgid ""
10803 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
10804 "This also removes any watches automatically."
10805 msgstr ""
10806
10807 #. type: textblock
10808 #: ../src/guestfs-actions.pod:2539 ../fish/guestfish-actions.pod:1690
10809 msgid ""
10810 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
10811 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
10812 "that there is one global inotify handle per libguestfs instance."
10813 msgstr ""
10814
10815 #. type: =head2
10816 #: ../src/guestfs-actions.pod:2548
10817 msgid "guestfs_inotify_read"
10818 msgstr ""
10819
10820 #. type: verbatim
10821 #: ../src/guestfs-actions.pod:2550
10822 #, no-wrap
10823 msgid ""
10824 " struct guestfs_inotify_event_list *\n"
10825 " guestfs_inotify_read (guestfs_h *g);\n"
10826 "\n"
10827 msgstr ""
10828
10829 #. type: textblock
10830 #: ../src/guestfs-actions.pod:2553 ../fish/guestfish-actions.pod:1699
10831 msgid ""
10832 "Return the complete queue of events that have happened since the previous "
10833 "read call."
10834 msgstr ""
10835
10836 #. type: textblock
10837 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:1702
10838 msgid "If no events have happened, this returns an empty list."
10839 msgstr ""
10840
10841 #. type: textblock
10842 #: ../src/guestfs-actions.pod:2558 ../fish/guestfish-actions.pod:1704
10843 msgid ""
10844 "I<Note>: In order to make sure that all events have been read, you must call"
10845 " this function repeatedly until it returns an empty list.  The reason is "
10846 "that the call will read events up to the maximum appliance-to-host message "
10847 "size and leave remaining events in the queue."
10848 msgstr ""
10849
10850 #. type: textblock
10851 #: ../src/guestfs-actions.pod:2564
10852 msgid ""
10853 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
10854 "there was an error.  I<The caller must call "
10855 "C<guestfs_free_inotify_event_list> after use>."
10856 msgstr ""
10857
10858 #. type: =head2
10859 #: ../src/guestfs-actions.pod:2570
10860 msgid "guestfs_inotify_rm_watch"
10861 msgstr ""
10862
10863 #. type: verbatim
10864 #: ../src/guestfs-actions.pod:2572
10865 #, no-wrap
10866 msgid ""
10867 " int\n"
10868 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
10869 "                           int wd);\n"
10870 "\n"
10871 msgstr ""
10872
10873 #. type: textblock
10874 #: ../src/guestfs-actions.pod:2576
10875 msgid ""
10876 "Remove a previously defined inotify watch.  See "
10877 "C<guestfs_inotify_add_watch>."
10878 msgstr ""
10879
10880 #. type: =head2
10881 #: ../src/guestfs-actions.pod:2583
10882 msgid "guestfs_inspect_get_arch"
10883 msgstr ""
10884
10885 #. type: verbatim
10886 #: ../src/guestfs-actions.pod:2585
10887 #, no-wrap
10888 msgid ""
10889 " char *\n"
10890 " guestfs_inspect_get_arch (guestfs_h *g,\n"
10891 "                           const char *root);\n"
10892 "\n"
10893 msgstr ""
10894
10895 #. type: textblock
10896 #: ../src/guestfs-actions.pod:2589
10897 msgid ""
10898 "This returns the architecture of the inspected operating system.  The "
10899 "possible return values are listed under C<guestfs_file_architecture>."
10900 msgstr ""
10901
10902 #. type: textblock
10903 #: ../src/guestfs-actions.pod:2593 ../fish/guestfish-actions.pod:1725
10904 msgid ""
10905 "If the architecture could not be determined, then the string C<unknown> is "
10906 "returned."
10907 msgstr ""
10908
10909 #. type: textblock
10910 #: ../src/guestfs-actions.pod:2596 ../src/guestfs-actions.pod:2686
10911 #: ../src/guestfs-actions.pod:2790 ../src/guestfs-actions.pod:2809
10912 #: ../src/guestfs-actions.pod:2940 ../src/guestfs-actions.pod:3023
10913 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3072
10914 #: ../src/guestfs-actions.pod:3125 ../src/guestfs-actions.pod:3165
10915 #: ../src/guestfs-actions.pod:3185 ../src/guestfs-actions.pod:3205
10916 #: ../src/guestfs-actions.pod:3222 ../src/guestfs-actions.pod:3238
10917 #: ../src/guestfs-actions.pod:3256 ../src/guestfs-actions.pod:3358
10918 #: ../src/guestfs-actions.pod:3399 ../fish/guestfish-actions.pod:1728
10919 #: ../fish/guestfish-actions.pod:1811 ../fish/guestfish-actions.pod:1890
10920 #: ../fish/guestfish-actions.pod:1902 ../fish/guestfish-actions.pod:1986
10921 #: ../fish/guestfish-actions.pod:2047 ../fish/guestfish-actions.pod:2068
10922 #: ../fish/guestfish-actions.pod:2082 ../fish/guestfish-actions.pod:2122
10923 #: ../fish/guestfish-actions.pod:2154 ../fish/guestfish-actions.pod:2167
10924 #: ../fish/guestfish-actions.pod:2180 ../fish/guestfish-actions.pod:2190
10925 #: ../fish/guestfish-actions.pod:2200 ../fish/guestfish-actions.pod:2212
10926 #: ../fish/guestfish-actions.pod:2308 ../fish/guestfish-actions.pod:2342
10927 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10928 msgstr ""
10929
10930 #. type: =head2
10931 #: ../src/guestfs-actions.pod:2603
10932 msgid "guestfs_inspect_get_distro"
10933 msgstr ""
10934
10935 #. type: verbatim
10936 #: ../src/guestfs-actions.pod:2605
10937 #, no-wrap
10938 msgid ""
10939 " char *\n"
10940 " guestfs_inspect_get_distro (guestfs_h *g,\n"
10941 "                             const char *root);\n"
10942 "\n"
10943 msgstr ""
10944
10945 #. type: textblock
10946 #: ../src/guestfs-actions.pod:2609 ../fish/guestfish-actions.pod:1734
10947 msgid ""
10948 "This returns the distro (distribution) of the inspected operating system."
10949 msgstr ""
10950
10951 #. type: textblock
10952 #: ../src/guestfs-actions.pod:2612 ../fish/guestfish-actions.pod:1737
10953 msgid "Currently defined distros are:"
10954 msgstr ""
10955
10956 #. type: =item
10957 #: ../src/guestfs-actions.pod:2616 ../fish/guestfish-actions.pod:1741
10958 msgid "\"archlinux\""
10959 msgstr "\"archlinux\""
10960
10961 #. type: textblock
10962 #: ../src/guestfs-actions.pod:2618 ../fish/guestfish-actions.pod:1743
10963 msgid "Arch Linux."
10964 msgstr "Arch Linux."
10965
10966 #. type: =item
10967 #: ../src/guestfs-actions.pod:2620 ../fish/guestfish-actions.pod:1745
10968 msgid "\"centos\""
10969 msgstr ""
10970
10971 #. type: textblock
10972 #: ../src/guestfs-actions.pod:2622 ../fish/guestfish-actions.pod:1747
10973 msgid "CentOS."
10974 msgstr ""
10975
10976 #. type: =item
10977 #: ../src/guestfs-actions.pod:2624 ../fish/guestfish-actions.pod:1749
10978 msgid "\"debian\""
10979 msgstr "\"debian\""
10980
10981 #. type: textblock
10982 #: ../src/guestfs-actions.pod:2626 ../fish/guestfish-actions.pod:1751
10983 msgid "Debian."
10984 msgstr "Debian."
10985
10986 #. type: =item
10987 #: ../src/guestfs-actions.pod:2628 ../fish/guestfish-actions.pod:1753
10988 msgid "\"fedora\""
10989 msgstr "\"fedora\""
10990
10991 #. type: textblock
10992 #: ../src/guestfs-actions.pod:2630 ../fish/guestfish-actions.pod:1755
10993 msgid "Fedora."
10994 msgstr "Fedora."
10995
10996 #. type: =item
10997 #: ../src/guestfs-actions.pod:2632 ../fish/guestfish-actions.pod:1757
10998 msgid "\"gentoo\""
10999 msgstr "\"gentoo\""
11000
11001 #. type: textblock
11002 #: ../src/guestfs-actions.pod:2634 ../fish/guestfish-actions.pod:1759
11003 msgid "Gentoo."
11004 msgstr "Gentoo."
11005
11006 #. type: =item
11007 #: ../src/guestfs-actions.pod:2636 ../fish/guestfish-actions.pod:1761
11008 msgid "\"linuxmint\""
11009 msgstr "\"linuxmint\""
11010
11011 #. type: textblock
11012 #: ../src/guestfs-actions.pod:2638 ../fish/guestfish-actions.pod:1763
11013 msgid "Linux Mint."
11014 msgstr "Linux Mint."
11015
11016 #. type: =item
11017 #: ../src/guestfs-actions.pod:2640 ../fish/guestfish-actions.pod:1765
11018 msgid "\"mandriva\""
11019 msgstr "\"mandriva\""
11020
11021 #. type: textblock
11022 #: ../src/guestfs-actions.pod:2642 ../fish/guestfish-actions.pod:1767
11023 msgid "Mandriva."
11024 msgstr "Mandriva."
11025
11026 #. type: =item
11027 #: ../src/guestfs-actions.pod:2644 ../fish/guestfish-actions.pod:1769
11028 msgid "\"meego\""
11029 msgstr "\"meego\""
11030
11031 #. type: textblock
11032 #: ../src/guestfs-actions.pod:2646 ../fish/guestfish-actions.pod:1771
11033 msgid "MeeGo."
11034 msgstr "MeeGo."
11035
11036 #. type: =item
11037 #: ../src/guestfs-actions.pod:2648 ../fish/guestfish-actions.pod:1773
11038 msgid "\"pardus\""
11039 msgstr "\"pardus\""
11040
11041 #. type: textblock
11042 #: ../src/guestfs-actions.pod:2650 ../fish/guestfish-actions.pod:1775
11043 msgid "Pardus."
11044 msgstr "Pardus."
11045
11046 #. type: =item
11047 #: ../src/guestfs-actions.pod:2652 ../fish/guestfish-actions.pod:1777
11048 msgid "\"redhat-based\""
11049 msgstr "\"redhat-based\""
11050
11051 #. type: textblock
11052 #: ../src/guestfs-actions.pod:2654 ../fish/guestfish-actions.pod:1779
11053 msgid "Some Red Hat-derived distro."
11054 msgstr "Дистрибутив, що походить від Red Hat."
11055
11056 #. type: =item
11057 #: ../src/guestfs-actions.pod:2656 ../fish/guestfish-actions.pod:1781
11058 msgid "\"rhel\""
11059 msgstr "\"rhel\""
11060
11061 #. type: textblock
11062 #: ../src/guestfs-actions.pod:2658 ../fish/guestfish-actions.pod:1783
11063 msgid "Red Hat Enterprise Linux."
11064 msgstr ""
11065
11066 #. type: =item
11067 #: ../src/guestfs-actions.pod:2660 ../fish/guestfish-actions.pod:1785
11068 msgid "\"scientificlinux\""
11069 msgstr ""
11070
11071 #. type: textblock
11072 #: ../src/guestfs-actions.pod:2662 ../fish/guestfish-actions.pod:1787
11073 msgid "Scientific Linux."
11074 msgstr ""
11075
11076 #. type: =item
11077 #: ../src/guestfs-actions.pod:2664 ../fish/guestfish-actions.pod:1789
11078 msgid "\"slackware\""
11079 msgstr ""
11080
11081 #. type: textblock
11082 #: ../src/guestfs-actions.pod:2666 ../fish/guestfish-actions.pod:1791
11083 msgid "Slackware."
11084 msgstr ""
11085
11086 #. type: =item
11087 #: ../src/guestfs-actions.pod:2668 ../fish/guestfish-actions.pod:1793
11088 msgid "\"ubuntu\""
11089 msgstr "\"ubuntu\""
11090
11091 #. type: textblock
11092 #: ../src/guestfs-actions.pod:2670 ../fish/guestfish-actions.pod:1795
11093 msgid "Ubuntu."
11094 msgstr "Ubuntu."
11095
11096 #. type: =item
11097 #: ../src/guestfs-actions.pod:2672 ../src/guestfs-actions.pod:2781
11098 #: ../src/guestfs-actions.pod:3156 ../fish/guestfish-actions.pod:1797
11099 #: ../fish/guestfish-actions.pod:1881 ../fish/guestfish-actions.pod:2145
11100 msgid "\"unknown\""
11101 msgstr "\"unknown\""
11102
11103 #. type: textblock
11104 #: ../src/guestfs-actions.pod:2674 ../fish/guestfish-actions.pod:1799
11105 msgid "The distro could not be determined."
11106 msgstr "Дистрибутив, тип якого не вдалося визначити."
11107
11108 #. type: =item
11109 #: ../src/guestfs-actions.pod:2676 ../src/guestfs-actions.pod:3148
11110 #: ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:2137
11111 msgid "\"windows\""
11112 msgstr "\"windows\""
11113
11114 #. type: textblock
11115 #: ../src/guestfs-actions.pod:2678 ../fish/guestfish-actions.pod:1803
11116 msgid ""
11117 "Windows does not have distributions.  This string is returned if the OS type"
11118 " is Windows."
11119 msgstr ""
11120
11121 #. type: textblock
11122 #: ../src/guestfs-actions.pod:2683 ../src/guestfs-actions.pod:2787
11123 #: ../src/guestfs-actions.pod:3162 ../fish/guestfish-actions.pod:1808
11124 #: ../fish/guestfish-actions.pod:1887 ../fish/guestfish-actions.pod:2151
11125 msgid ""
11126 "Future versions of libguestfs may return other strings here.  The caller "
11127 "should be prepared to handle any string."
11128 msgstr ""
11129
11130 #. type: =head2
11131 #: ../src/guestfs-actions.pod:2693
11132 msgid "guestfs_inspect_get_drive_mappings"
11133 msgstr ""
11134
11135 #. type: verbatim
11136 #: ../src/guestfs-actions.pod:2695
11137 #, no-wrap
11138 msgid ""
11139 " char **\n"
11140 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
11141 "                                     const char *root);\n"
11142 "\n"
11143 msgstr ""
11144
11145 #. type: textblock
11146 #: ../src/guestfs-actions.pod:2699 ../fish/guestfish-actions.pod:1817
11147 msgid ""
11148 "This call is useful for Windows which uses a primitive system of assigning "
11149 "drive letters (like \"C:\") to partitions.  This inspection API examines the"
11150 " Windows Registry to find out how disks/partitions are mapped to drive "
11151 "letters, and returns a hash table as in the example below:"
11152 msgstr ""
11153
11154 #. type: verbatim
11155 #: ../src/guestfs-actions.pod:2705 ../fish/guestfish-actions.pod:1823
11156 #, no-wrap
11157 msgid ""
11158 " C      =>     /dev/vda2\n"
11159 " E      =>     /dev/vdb1\n"
11160 " F      =>     /dev/vdc1\n"
11161 "\n"
11162 msgstr ""
11163
11164 #. type: textblock
11165 #: ../src/guestfs-actions.pod:2709 ../fish/guestfish-actions.pod:1827
11166 msgid ""
11167 "Note that keys are drive letters.  For Windows, the key is case insensitive "
11168 "and just contains the drive letter, without the customary colon separator "
11169 "character."
11170 msgstr ""
11171
11172 #. type: textblock
11173 #: ../src/guestfs-actions.pod:2713 ../fish/guestfish-actions.pod:1831
11174 msgid ""
11175 "In future we may support other operating systems that also used drive "
11176 "letters, but the keys for those might not be case insensitive and might be "
11177 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>,"
11178 " C<h1> etc."
11179 msgstr ""
11180
11181 #. type: textblock
11182 #: ../src/guestfs-actions.pod:2718 ../fish/guestfish-actions.pod:1836
11183 msgid ""
11184 "For Windows guests, currently only hard drive mappings are returned.  "
11185 "Removable disks (eg. DVD-ROMs) are ignored."
11186 msgstr ""
11187
11188 #. type: textblock
11189 #: ../src/guestfs-actions.pod:2721 ../fish/guestfish-actions.pod:1839
11190 msgid ""
11191 "For guests that do not use drive mappings, or if the drive mappings could "
11192 "not be determined, this returns an empty hash table."
11193 msgstr ""
11194
11195 #. type: textblock
11196 #: ../src/guestfs-actions.pod:2724
11197 msgid ""
11198 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11199 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
11200 msgstr ""
11201
11202 #. type: textblock
11203 #: ../src/guestfs-actions.pod:2728 ../src/guestfs-actions.pod:2996
11204 #: ../src/guestfs-actions.pod:3794 ../src/guestfs-actions.pod:5076
11205 #: ../src/guestfs-actions.pod:7122
11206 msgid ""
11207 "This function returns a NULL-terminated array of strings, or NULL if there "
11208 "was an error.  The array of strings will always have length C<2n+1>, where "
11209 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
11210 "caller must free the strings and the array after use>."
11211 msgstr ""
11212
11213 #. type: textblock
11214 #: ../src/guestfs-actions.pod:2734 ../src/guestfs-actions.pod:3190
11215 msgid "(Added in 1.9.17)"
11216 msgstr ""
11217
11218 #. type: =head2
11219 #: ../src/guestfs-actions.pod:2736
11220 msgid "guestfs_inspect_get_filesystems"
11221 msgstr ""
11222
11223 #. type: verbatim
11224 #: ../src/guestfs-actions.pod:2738
11225 #, no-wrap
11226 msgid ""
11227 " char **\n"
11228 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
11229 "                                  const char *root);\n"
11230 "\n"
11231 msgstr ""
11232
11233 #. type: textblock
11234 #: ../src/guestfs-actions.pod:2742 ../fish/guestfish-actions.pod:1850
11235 msgid ""
11236 "This returns a list of all the filesystems that we think are associated with"
11237 " this operating system.  This includes the root filesystem, other ordinary "
11238 "filesystems, and non-mounted devices like swap partitions."
11239 msgstr ""
11240
11241 #. type: textblock
11242 #: ../src/guestfs-actions.pod:2747 ../fish/guestfish-actions.pod:1855
11243 msgid ""
11244 "In the case of a multi-boot virtual machine, it is possible for a filesystem"
11245 " to be shared between operating systems."
11246 msgstr ""
11247
11248 #. type: textblock
11249 #: ../src/guestfs-actions.pod:2750
11250 msgid ""
11251 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11252 "C<guestfs_inspect_get_mountpoints>."
11253 msgstr ""
11254
11255 #. type: =head2
11256 #: ../src/guestfs-actions.pod:2759
11257 msgid "guestfs_inspect_get_format"
11258 msgstr ""
11259
11260 #. type: verbatim
11261 #: ../src/guestfs-actions.pod:2761
11262 #, no-wrap
11263 msgid ""
11264 " char *\n"
11265 " guestfs_inspect_get_format (guestfs_h *g,\n"
11266 "                             const char *root);\n"
11267 "\n"
11268 msgstr ""
11269
11270 #. type: textblock
11271 #: ../src/guestfs-actions.pod:2765 ../fish/guestfish-actions.pod:1865
11272 msgid ""
11273 "This returns the format of the inspected operating system.  You can use it "
11274 "to detect install images, live CDs and similar."
11275 msgstr ""
11276
11277 #. type: textblock
11278 #: ../src/guestfs-actions.pod:2768 ../fish/guestfish-actions.pod:1868
11279 msgid "Currently defined formats are:"
11280 msgstr ""
11281
11282 #. type: =item
11283 #: ../src/guestfs-actions.pod:2772 ../fish/guestfish-actions.pod:1872
11284 msgid "\"installed\""
11285 msgstr "\"installed\""
11286
11287 #. type: textblock
11288 #: ../src/guestfs-actions.pod:2774 ../fish/guestfish-actions.pod:1874
11289 msgid "This is an installed operating system."
11290 msgstr "Це встановлена операційна система."
11291
11292 #. type: =item
11293 #: ../src/guestfs-actions.pod:2776 ../fish/guestfish-actions.pod:1876
11294 msgid "\"installer\""
11295 msgstr ""
11296
11297 #. type: textblock
11298 #: ../src/guestfs-actions.pod:2778 ../fish/guestfish-actions.pod:1878
11299 msgid ""
11300 "The disk image being inspected is not an installed operating system, but a "
11301 "I<bootable> install disk, live CD, or similar."
11302 msgstr ""
11303
11304 #. type: textblock
11305 #: ../src/guestfs-actions.pod:2783 ../fish/guestfish-actions.pod:1883
11306 msgid "The format of this disk image is not known."
11307 msgstr ""
11308
11309 #. type: textblock
11310 #: ../src/guestfs-actions.pod:2795 ../src/guestfs-actions.pod:3226
11311 #: ../src/guestfs-actions.pod:3242 ../src/guestfs-actions.pod:3260
11312 #: ../src/guestfs-actions.pod:6020
11313 msgid "(Added in 1.9.4)"
11314 msgstr ""
11315
11316 #. type: =head2
11317 #: ../src/guestfs-actions.pod:2797
11318 msgid "guestfs_inspect_get_hostname"
11319 msgstr ""
11320
11321 #. type: verbatim
11322 #: ../src/guestfs-actions.pod:2799
11323 #, no-wrap
11324 msgid ""
11325 " char *\n"
11326 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
11327 "                               const char *root);\n"
11328 "\n"
11329 msgstr ""
11330
11331 #. type: textblock
11332 #: ../src/guestfs-actions.pod:2803 ../fish/guestfish-actions.pod:1896
11333 msgid ""
11334 "This function returns the hostname of the operating system as found by "
11335 "inspection of the guest's configuration files."
11336 msgstr ""
11337
11338 #. type: textblock
11339 #: ../src/guestfs-actions.pod:2806 ../fish/guestfish-actions.pod:1899
11340 msgid ""
11341 "If the hostname could not be determined, then the string C<unknown> is "
11342 "returned."
11343 msgstr ""
11344
11345 #. type: textblock
11346 #: ../src/guestfs-actions.pod:2814
11347 msgid "(Added in 1.7.9)"
11348 msgstr ""
11349
11350 #. type: =head2
11351 #: ../src/guestfs-actions.pod:2816
11352 msgid "guestfs_inspect_get_icon"
11353 msgstr ""
11354
11355 #. type: verbatim
11356 #: ../src/guestfs-actions.pod:2818
11357 #, no-wrap
11358 msgid ""
11359 " char *\n"
11360 " guestfs_inspect_get_icon (guestfs_h *g,\n"
11361 "                           const char *root,\n"
11362 "                           size_t *size_r,\n"
11363 "                           ...);\n"
11364 "\n"
11365 msgstr ""
11366
11367 #. type: verbatim
11368 #: ../src/guestfs-actions.pod:2829
11369 #, no-wrap
11370 msgid ""
11371 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
11372 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
11373 "\n"
11374 msgstr ""
11375
11376 #. type: textblock
11377 #: ../src/guestfs-actions.pod:2832 ../fish/guestfish-actions.pod:1908
11378 msgid ""
11379 "This function returns an icon corresponding to the inspected operating "
11380 "system.  The icon is returned as a buffer containing a PNG image (re-encoded"
11381 " to PNG if necessary)."
11382 msgstr ""
11383
11384 #. type: textblock
11385 #: ../src/guestfs-actions.pod:2836 ../fish/guestfish-actions.pod:1912
11386 msgid ""
11387 "If it was not possible to get an icon this function returns a zero-length "
11388 "(non-NULL) buffer.  I<Callers must check for this case>."
11389 msgstr ""
11390
11391 #. type: textblock
11392 #: ../src/guestfs-actions.pod:2839 ../fish/guestfish-actions.pod:1915
11393 msgid ""
11394 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
11395 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
11396 "this file will be returned.  You can disable favicons by passing the "
11397 "optional C<favicon> boolean as false (default is true)."
11398 msgstr ""
11399
11400 #. type: textblock
11401 #: ../src/guestfs-actions.pod:2845 ../fish/guestfish-actions.pod:1921
11402 msgid ""
11403 "If finding the favicon fails, then we look in other places in the guest for "
11404 "a suitable icon."
11405 msgstr ""
11406
11407 #. type: textblock
11408 #: ../src/guestfs-actions.pod:2848 ../fish/guestfish-actions.pod:1924
11409 msgid ""
11410 "If the optional C<highquality> boolean is true then only high quality icons "
11411 "are returned, which means only icons of high resolution with an alpha "
11412 "channel.  The default (false) is to return any icon we can, even if it is of"
11413 " substandard quality."
11414 msgstr ""
11415
11416 #. type: textblock
11417 #: ../src/guestfs-actions.pod:2859 ../fish/guestfish-actions.pod:1935
11418 msgid ""
11419 "Unlike most other inspection API calls, the guest's disks must be mounted up"
11420 " before you call this, since it needs to read information from the guest "
11421 "filesystem during the call."
11422 msgstr ""
11423
11424 #. type: textblock
11425 #: ../src/guestfs-actions.pod:2865 ../fish/guestfish-actions.pod:1941
11426 msgid ""
11427 "B<Security:> The icon data comes from the untrusted guest, and should be "
11428 "treated with caution.  PNG files have been known to contain exploits.  "
11429 "Ensure that libpng (or other relevant libraries) are fully up to date before"
11430 " trying to process or display the icon."
11431 msgstr ""
11432
11433 #. type: textblock
11434 #: ../src/guestfs-actions.pod:2873 ../fish/guestfish-actions.pod:1949
11435 msgid ""
11436 "The PNG image returned can be any size.  It might not be square.  Libguestfs"
11437 " tries to return the largest, highest quality icon available.  The "
11438 "application must scale the icon to the required size."
11439 msgstr ""
11440
11441 #. type: textblock
11442 #: ../src/guestfs-actions.pod:2880 ../fish/guestfish-actions.pod:1956
11443 msgid ""
11444 "Extracting icons from Windows guests requires the external C<wrestool> "
11445 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
11446 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
11447 "installed separately."
11448 msgstr ""
11449
11450 #. type: textblock
11451 #: ../src/guestfs-actions.pod:2887 ../fish/guestfish-actions.pod:1963
11452 msgid ""
11453 "Operating system icons are usually trademarks.  Seek legal advice before "
11454 "using trademarks in applications."
11455 msgstr ""
11456
11457 #. type: textblock
11458 #: ../src/guestfs-actions.pod:2896 ../src/guestfs-actions.pod:3721
11459 #: ../src/guestfs-actions.pod:4975
11460 msgid "(Added in 1.11.12)"
11461 msgstr ""
11462
11463 #. type: =head2
11464 #: ../src/guestfs-actions.pod:2898
11465 msgid "guestfs_inspect_get_icon_va"
11466 msgstr ""
11467
11468 #. type: verbatim
11469 #: ../src/guestfs-actions.pod:2900
11470 #, no-wrap
11471 msgid ""
11472 " char *\n"
11473 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
11474 "                              const char *root,\n"
11475 "                              size_t *size_r,\n"
11476 "                              va_list args);\n"
11477 "\n"
11478 msgstr ""
11479
11480 #. type: textblock
11481 #: ../src/guestfs-actions.pod:2906
11482 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
11483 msgstr ""
11484
11485 #. type: =head2
11486 #: ../src/guestfs-actions.pod:2910
11487 msgid "guestfs_inspect_get_icon_argv"
11488 msgstr ""
11489
11490 #. type: verbatim
11491 #: ../src/guestfs-actions.pod:2912
11492 #, no-wrap
11493 msgid ""
11494 " char *\n"
11495 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
11496 "                                const char *root,\n"
11497 "                                size_t *size_r,\n"
11498 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
11499 "\n"
11500 msgstr ""
11501
11502 #. type: textblock
11503 #: ../src/guestfs-actions.pod:2918
11504 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
11505 msgstr ""
11506
11507 #. type: =head2
11508 #: ../src/guestfs-actions.pod:2922
11509 msgid "guestfs_inspect_get_major_version"
11510 msgstr ""
11511
11512 #. type: verbatim
11513 #: ../src/guestfs-actions.pod:2924
11514 #, no-wrap
11515 msgid ""
11516 " int\n"
11517 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
11518 "                                    const char *root);\n"
11519 "\n"
11520 msgstr ""
11521
11522 #. type: textblock
11523 #: ../src/guestfs-actions.pod:2928 ../fish/guestfish-actions.pod:1974
11524 msgid ""
11525 "This returns the major version number of the inspected operating system."
11526 msgstr ""
11527
11528 #. type: textblock
11529 #: ../src/guestfs-actions.pod:2931 ../fish/guestfish-actions.pod:1977
11530 msgid ""
11531 "Windows uses a consistent versioning scheme which is I<not> reflected in the"
11532 " popular public names used by the operating system.  Notably the operating "
11533 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
11534 "1).  You can find out the real versions corresponding to releases of Windows"
11535 " by consulting Wikipedia or MSDN."
11536 msgstr ""
11537
11538 #. type: textblock
11539 #: ../src/guestfs-actions.pod:2938 ../src/guestfs-actions.pod:2955
11540 #: ../fish/guestfish-actions.pod:1984 ../fish/guestfish-actions.pod:1995
11541 msgid "If the version could not be determined, then C<0> is returned."
11542 msgstr ""
11543
11544 #. type: =head2
11545 #: ../src/guestfs-actions.pod:2946
11546 msgid "guestfs_inspect_get_minor_version"
11547 msgstr ""
11548
11549 #. type: verbatim
11550 #: ../src/guestfs-actions.pod:2948
11551 #, no-wrap
11552 msgid ""
11553 " int\n"
11554 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
11555 "                                    const char *root);\n"
11556 "\n"
11557 msgstr ""
11558
11559 #. type: textblock
11560 #: ../src/guestfs-actions.pod:2952 ../fish/guestfish-actions.pod:1992
11561 msgid ""
11562 "This returns the minor version number of the inspected operating system."
11563 msgstr ""
11564
11565 #. type: textblock
11566 #: ../src/guestfs-actions.pod:2957
11567 msgid ""
11568 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11569 "C<guestfs_inspect_get_major_version>."
11570 msgstr ""
11571
11572 #. type: =head2
11573 #: ../src/guestfs-actions.pod:2964
11574 msgid "guestfs_inspect_get_mountpoints"
11575 msgstr ""
11576
11577 #. type: verbatim
11578 #: ../src/guestfs-actions.pod:2966
11579 #, no-wrap
11580 msgid ""
11581 " char **\n"
11582 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
11583 "                                  const char *root);\n"
11584 "\n"
11585 msgstr ""
11586
11587 #. type: textblock
11588 #: ../src/guestfs-actions.pod:2970 ../fish/guestfish-actions.pod:2004
11589 msgid ""
11590 "This returns a hash of where we think the filesystems associated with this "
11591 "operating system should be mounted.  Callers should note that this is at "
11592 "best an educated guess made by reading configuration files such as "
11593 "C</etc/fstab>.  I<In particular note> that this may return filesystems which"
11594 " are non-existent or not mountable and callers should be prepared to handle "
11595 "or ignore failures if they try to mount them."
11596 msgstr ""
11597
11598 #. type: textblock
11599 #: ../src/guestfs-actions.pod:2979 ../fish/guestfish-actions.pod:2013
11600 msgid ""
11601 "Each element in the returned hashtable has a key which is the path of the "
11602 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
11603 "mounted there (eg. C</dev/sda1>)."
11604 msgstr ""
11605
11606 #. type: textblock
11607 #: ../src/guestfs-actions.pod:2984 ../fish/guestfish-actions.pod:2018
11608 msgid ""
11609 "Non-mounted devices such as swap devices are I<not> returned in this list."
11610 msgstr ""
11611
11612 #. type: textblock
11613 #: ../src/guestfs-actions.pod:2987
11614 msgid ""
11615 "For operating systems like Windows which still use drive letters, this call "
11616 "will only return an entry for the first drive \"mounted on\" C</>.  For "
11617 "information about the mapping of drive letters to partitions, see "
11618 "C<guestfs_inspect_get_drive_mappings>."
11619 msgstr ""
11620
11621 #. type: textblock
11622 #: ../src/guestfs-actions.pod:2993
11623 msgid ""
11624 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11625 "C<guestfs_inspect_get_filesystems>."
11626 msgstr ""
11627
11628 #. type: =head2
11629 #: ../src/guestfs-actions.pod:3004
11630 msgid "guestfs_inspect_get_package_format"
11631 msgstr ""
11632
11633 #. type: verbatim
11634 #: ../src/guestfs-actions.pod:3006
11635 #, no-wrap
11636 msgid ""
11637 " char *\n"
11638 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
11639 "                                     const char *root);\n"
11640 "\n"
11641 msgstr ""
11642
11643 #. type: textblock
11644 #: ../src/guestfs-actions.pod:3010
11645 msgid ""
11646 "This function and C<guestfs_inspect_get_package_management> return the "
11647 "package format and package management tool used by the inspected operating "
11648 "system.  For example for Fedora these functions would return C<rpm> (package"
11649 " format) and C<yum> (package management)."
11650 msgstr ""
11651
11652 #. type: textblock
11653 #: ../src/guestfs-actions.pod:3016 ../fish/guestfish-actions.pod:2040
11654 msgid ""
11655 "This returns the string C<unknown> if we could not determine the package "
11656 "format I<or> if the operating system does not have a real packaging system "
11657 "(eg. Windows)."
11658 msgstr ""
11659
11660 #. type: textblock
11661 #: ../src/guestfs-actions.pod:3020 ../fish/guestfish-actions.pod:2044
11662 msgid ""
11663 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
11664 "Future versions of libguestfs may return other strings."
11665 msgstr ""
11666
11667 #. type: textblock
11668 #: ../src/guestfs-actions.pod:3028 ../src/guestfs-actions.pod:3056
11669 msgid "(Added in 1.7.5)"
11670 msgstr ""
11671
11672 #. type: =head2
11673 #: ../src/guestfs-actions.pod:3030
11674 msgid "guestfs_inspect_get_package_management"
11675 msgstr ""
11676
11677 #. type: verbatim
11678 #: ../src/guestfs-actions.pod:3032
11679 #, no-wrap
11680 msgid ""
11681 " char *\n"
11682 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
11683 "                                         const char *root);\n"
11684 "\n"
11685 msgstr ""
11686
11687 #. type: textblock
11688 #: ../src/guestfs-actions.pod:3036
11689 msgid ""
11690 "C<guestfs_inspect_get_package_format> and this function return the package "
11691 "format and package management tool used by the inspected operating system.  "
11692 "For example for Fedora these functions would return C<rpm> (package format) "
11693 "and C<yum> (package management)."
11694 msgstr ""
11695
11696 #. type: textblock
11697 #: ../src/guestfs-actions.pod:3042 ../fish/guestfish-actions.pod:2059
11698 msgid ""
11699 "This returns the string C<unknown> if we could not determine the package "
11700 "management tool I<or> if the operating system does not have a real packaging"
11701 " system (eg. Windows)."
11702 msgstr ""
11703
11704 #. type: textblock
11705 #: ../src/guestfs-actions.pod:3046 ../fish/guestfish-actions.pod:2063
11706 msgid ""
11707 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
11708 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
11709 "libguestfs may return other strings."
11710 msgstr ""
11711
11712 #. type: =head2
11713 #: ../src/guestfs-actions.pod:3058
11714 msgid "guestfs_inspect_get_product_name"
11715 msgstr ""
11716
11717 #. type: verbatim
11718 #: ../src/guestfs-actions.pod:3060
11719 #, no-wrap
11720 msgid ""
11721 " char *\n"
11722 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
11723 "                                   const char *root);\n"
11724 "\n"
11725 msgstr ""
11726
11727 #. type: textblock
11728 #: ../src/guestfs-actions.pod:3064 ../fish/guestfish-actions.pod:2074
11729 msgid ""
11730 "This returns the product name of the inspected operating system.  The "
11731 "product name is generally some freeform string which can be displayed to the"
11732 " user, but should not be parsed by programs."
11733 msgstr ""
11734
11735 #. type: textblock
11736 #: ../src/guestfs-actions.pod:3069 ../fish/guestfish-actions.pod:2079
11737 msgid ""
11738 "If the product name could not be determined, then the string C<unknown> is "
11739 "returned."
11740 msgstr ""
11741
11742 #. type: =head2
11743 #: ../src/guestfs-actions.pod:3079
11744 msgid "guestfs_inspect_get_product_variant"
11745 msgstr ""
11746
11747 #. type: verbatim
11748 #: ../src/guestfs-actions.pod:3081
11749 #, no-wrap
11750 msgid ""
11751 " char *\n"
11752 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
11753 "                                      const char *root);\n"
11754 "\n"
11755 msgstr ""
11756
11757 #. type: textblock
11758 #: ../src/guestfs-actions.pod:3085 ../fish/guestfish-actions.pod:2088
11759 msgid "This returns the product variant of the inspected operating system."
11760 msgstr ""
11761
11762 #. type: textblock
11763 #: ../src/guestfs-actions.pod:3088 ../fish/guestfish-actions.pod:2091
11764 msgid ""
11765 "For Windows guests, this returns the contents of the Registry key "
11766 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType>"
11767 " which is usually a string such as C<Client> or C<Server> (other values are "
11768 "possible).  This can be used to distinguish consumer and enterprise versions"
11769 " of Windows that have the same version number (for example, Windows 7 and "
11770 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
11771 "the latter is C<Server>)."
11772 msgstr ""
11773
11774 #. type: textblock
11775 #: ../src/guestfs-actions.pod:3097 ../fish/guestfish-actions.pod:2100
11776 msgid ""
11777 "For enterprise Linux guests, in future we intend this to return the product "
11778 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
11779 "implemented at present."
11780 msgstr ""
11781
11782 #. type: textblock
11783 #: ../src/guestfs-actions.pod:3101 ../fish/guestfish-actions.pod:2104
11784 msgid ""
11785 "If the product variant could not be determined, then the string C<unknown> "
11786 "is returned."
11787 msgstr ""
11788
11789 #. type: textblock
11790 #: ../src/guestfs-actions.pod:3104
11791 msgid ""
11792 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11793 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
11794 msgstr ""
11795
11796 #. type: textblock
11797 #: ../src/guestfs-actions.pod:3111
11798 msgid "(Added in 1.9.13)"
11799 msgstr ""
11800
11801 #. type: =head2
11802 #: ../src/guestfs-actions.pod:3113
11803 msgid "guestfs_inspect_get_roots"
11804 msgstr ""
11805
11806 #. type: verbatim
11807 #: ../src/guestfs-actions.pod:3115
11808 #, no-wrap
11809 msgid ""
11810 " char **\n"
11811 " guestfs_inspect_get_roots (guestfs_h *g);\n"
11812 "\n"
11813 msgstr ""
11814
11815 #. type: textblock
11816 #: ../src/guestfs-actions.pod:3118
11817 msgid ""
11818 "This function is a convenient way to get the list of root devices, as "
11819 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
11820 "the whole inspection process."
11821 msgstr ""
11822
11823 #. type: textblock
11824 #: ../src/guestfs-actions.pod:3122
11825 msgid ""
11826 "This returns an empty list if either no root devices were found or the "
11827 "caller has not called C<guestfs_inspect_os>."
11828 msgstr ""
11829
11830 #. type: textblock
11831 #: ../src/guestfs-actions.pod:3131
11832 msgid "(Added in 1.7.3)"
11833 msgstr ""
11834
11835 #. type: =head2
11836 #: ../src/guestfs-actions.pod:3133
11837 msgid "guestfs_inspect_get_type"
11838 msgstr ""
11839
11840 #. type: verbatim
11841 #: ../src/guestfs-actions.pod:3135
11842 #, no-wrap
11843 msgid ""
11844 " char *\n"
11845 " guestfs_inspect_get_type (guestfs_h *g,\n"
11846 "                           const char *root);\n"
11847 "\n"
11848 msgstr ""
11849
11850 #. type: textblock
11851 #: ../src/guestfs-actions.pod:3139 ../fish/guestfish-actions.pod:2128
11852 msgid ""
11853 "This returns the type of the inspected operating system.  Currently defined "
11854 "types are:"
11855 msgstr ""
11856
11857 #. type: =item
11858 #: ../src/guestfs-actions.pod:3144 ../fish/guestfish-actions.pod:2133
11859 msgid "\"linux\""
11860 msgstr "\"linux\""
11861
11862 #. type: textblock
11863 #: ../src/guestfs-actions.pod:3146 ../fish/guestfish-actions.pod:2135
11864 msgid "Any Linux-based operating system."
11865 msgstr ""
11866
11867 #. type: textblock
11868 #: ../src/guestfs-actions.pod:3150 ../fish/guestfish-actions.pod:2139
11869 msgid "Any Microsoft Windows operating system."
11870 msgstr ""
11871
11872 #. type: =item
11873 #: ../src/guestfs-actions.pod:3152 ../fish/guestfish-actions.pod:2141
11874 msgid "\"freebsd\""
11875 msgstr "\"freebsd\""
11876
11877 #. type: textblock
11878 #: ../src/guestfs-actions.pod:3154 ../fish/guestfish-actions.pod:2143
11879 msgid "FreeBSD."
11880 msgstr "FreeBSD."
11881
11882 #. type: textblock
11883 #: ../src/guestfs-actions.pod:3158 ../fish/guestfish-actions.pod:2147
11884 msgid "The operating system type could not be determined."
11885 msgstr ""
11886
11887 #. type: =head2
11888 #: ../src/guestfs-actions.pod:3172
11889 msgid "guestfs_inspect_get_windows_current_control_set"
11890 msgstr ""
11891
11892 #. type: verbatim
11893 #: ../src/guestfs-actions.pod:3174
11894 #, no-wrap
11895 msgid ""
11896 " char *\n"
11897 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
11898 "                                                  const char *root);\n"
11899 "\n"
11900 msgstr ""
11901
11902 #. type: textblock
11903 #: ../src/guestfs-actions.pod:3178 ../fish/guestfish-actions.pod:2160
11904 msgid ""
11905 "This returns the Windows CurrentControlSet of the inspected guest.  The "
11906 "CurrentControlSet is a registry key name such as C<ControlSet001>."
11907 msgstr ""
11908
11909 #. type: textblock
11910 #: ../src/guestfs-actions.pod:3181 ../fish/guestfish-actions.pod:2163
11911 msgid ""
11912 "This call assumes that the guest is Windows and that the Registry could be "
11913 "examined by inspection.  If this is not the case then an error is returned."
11914 msgstr ""
11915
11916 #. type: =head2
11917 #: ../src/guestfs-actions.pod:3192
11918 msgid "guestfs_inspect_get_windows_systemroot"
11919 msgstr ""
11920
11921 #. type: verbatim
11922 #: ../src/guestfs-actions.pod:3194
11923 #, no-wrap
11924 msgid ""
11925 " char *\n"
11926 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
11927 "                                         const char *root);\n"
11928 "\n"
11929 msgstr ""
11930
11931 #. type: textblock
11932 #: ../src/guestfs-actions.pod:3198 ../fish/guestfish-actions.pod:2173
11933 msgid ""
11934 "This returns the Windows systemroot of the inspected guest.  The systemroot "
11935 "is a directory path such as C</WINDOWS>."
11936 msgstr ""
11937
11938 #. type: textblock
11939 #: ../src/guestfs-actions.pod:3201 ../fish/guestfish-actions.pod:2176
11940 msgid ""
11941 "This call assumes that the guest is Windows and that the systemroot could be"
11942 " determined by inspection.  If this is not the case then an error is "
11943 "returned."
11944 msgstr ""
11945
11946 #. type: textblock
11947 #: ../src/guestfs-actions.pod:3210
11948 msgid "(Added in 1.5.25)"
11949 msgstr ""
11950
11951 #. type: =head2
11952 #: ../src/guestfs-actions.pod:3212
11953 msgid "guestfs_inspect_is_live"
11954 msgstr ""
11955
11956 #. type: verbatim
11957 #: ../src/guestfs-actions.pod:3214
11958 #, no-wrap
11959 msgid ""
11960 " int\n"
11961 " guestfs_inspect_is_live (guestfs_h *g,\n"
11962 "                          const char *root);\n"
11963 "\n"
11964 msgstr ""
11965
11966 #. type: textblock
11967 #: ../src/guestfs-actions.pod:3218
11968 msgid ""
11969 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
11970 "disk), then this returns true if a live image was detected on the disk."
11971 msgstr ""
11972
11973 #. type: =head2
11974 #: ../src/guestfs-actions.pod:3228
11975 msgid "guestfs_inspect_is_multipart"
11976 msgstr ""
11977
11978 #. type: verbatim
11979 #: ../src/guestfs-actions.pod:3230
11980 #, no-wrap
11981 msgid ""
11982 " int\n"
11983 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
11984 "                               const char *root);\n"
11985 "\n"
11986 msgstr ""
11987
11988 #. type: textblock
11989 #: ../src/guestfs-actions.pod:3234
11990 msgid ""
11991 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
11992 "disk), then this returns true if the disk is part of a set."
11993 msgstr ""
11994
11995 #. type: =head2
11996 #: ../src/guestfs-actions.pod:3244
11997 msgid "guestfs_inspect_is_netinst"
11998 msgstr ""
11999
12000 #. type: verbatim
12001 #: ../src/guestfs-actions.pod:3246
12002 #, no-wrap
12003 msgid ""
12004 " int\n"
12005 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
12006 "                             const char *root);\n"
12007 "\n"
12008 msgstr ""
12009
12010 #. type: textblock
12011 #: ../src/guestfs-actions.pod:3250
12012 msgid ""
12013 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12014 "disk), then this returns true if the disk is a network installer, ie. not a "
12015 "self-contained install CD but one which is likely to require network access "
12016 "to complete the install."
12017 msgstr ""
12018
12019 #. type: =head2
12020 #: ../src/guestfs-actions.pod:3262
12021 msgid "guestfs_inspect_list_applications"
12022 msgstr ""
12023
12024 #. type: verbatim
12025 #: ../src/guestfs-actions.pod:3264
12026 #, no-wrap
12027 msgid ""
12028 " struct guestfs_application_list *\n"
12029 " guestfs_inspect_list_applications (guestfs_h *g,\n"
12030 "                                    const char *root);\n"
12031 "\n"
12032 msgstr ""
12033
12034 #. type: textblock
12035 #: ../src/guestfs-actions.pod:3268 ../fish/guestfish-actions.pod:2218
12036 msgid "Return the list of applications installed in the operating system."
12037 msgstr ""
12038
12039 #. type: textblock
12040 #: ../src/guestfs-actions.pod:3270
12041 msgid ""
12042 "I<Note:> This call works differently from other parts of the inspection API."
12043 "  You have to call C<guestfs_inspect_os>, then "
12044 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
12045 "this.  Listing applications is a significantly more difficult operation "
12046 "which requires access to the full filesystem.  Also note that unlike the "
12047 "other C<guestfs_inspect_get_*> calls which are just returning data cached in"
12048 " the libguestfs handle, this call actually reads parts of the mounted "
12049 "filesystems during the call."
12050 msgstr ""
12051
12052 #. type: textblock
12053 #: ../src/guestfs-actions.pod:3280 ../fish/guestfish-actions.pod:2230
12054 msgid ""
12055 "This returns an empty list if the inspection code was not able to determine "
12056 "the list of applications."
12057 msgstr ""
12058
12059 #. type: textblock
12060 #: ../src/guestfs-actions.pod:3283 ../fish/guestfish-actions.pod:2233
12061 msgid "The application structure contains the following fields:"
12062 msgstr ""
12063
12064 #. type: =item
12065 #: ../src/guestfs-actions.pod:3287 ../fish/guestfish-actions.pod:2237
12066 msgid "C<app_name>"
12067 msgstr "C<app_name>"
12068
12069 #. type: textblock
12070 #: ../src/guestfs-actions.pod:3289 ../fish/guestfish-actions.pod:2239
12071 msgid ""
12072 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
12073 "guests, this is the package name."
12074 msgstr ""
12075
12076 #. type: =item
12077 #: ../src/guestfs-actions.pod:3292 ../fish/guestfish-actions.pod:2242
12078 msgid "C<app_display_name>"
12079 msgstr "C<app_display_name>"
12080
12081 #. type: textblock
12082 #: ../src/guestfs-actions.pod:3294 ../fish/guestfish-actions.pod:2244
12083 msgid ""
12084 "The display name of the application, sometimes localized to the install "
12085 "language of the guest operating system."
12086 msgstr ""
12087
12088 #. type: textblock
12089 #: ../src/guestfs-actions.pod:3297 ../fish/guestfish-actions.pod:2247
12090 msgid ""
12091 "If unavailable this is returned as an empty string C<\"\">.  Callers needing"
12092 " to display something can use C<app_name> instead."
12093 msgstr ""
12094
12095 #. type: =item
12096 #: ../src/guestfs-actions.pod:3300 ../fish/guestfish-actions.pod:2250
12097 msgid "C<app_epoch>"
12098 msgstr "C<app_epoch>"
12099
12100 #. type: textblock
12101 #: ../src/guestfs-actions.pod:3302 ../fish/guestfish-actions.pod:2252
12102 msgid ""
12103 "For package managers which use epochs, this contains the epoch of the "
12104 "package (an integer).  If unavailable, this is returned as C<0>."
12105 msgstr ""
12106
12107 #. type: =item
12108 #: ../src/guestfs-actions.pod:3305 ../fish/guestfish-actions.pod:2255
12109 msgid "C<app_version>"
12110 msgstr "C<app_version>"
12111
12112 #. type: textblock
12113 #: ../src/guestfs-actions.pod:3307 ../fish/guestfish-actions.pod:2257
12114 msgid ""
12115 "The version string of the application or package.  If unavailable this is "
12116 "returned as an empty string C<\"\">."
12117 msgstr ""
12118
12119 #. type: =item
12120 #: ../src/guestfs-actions.pod:3310 ../fish/guestfish-actions.pod:2260
12121 msgid "C<app_release>"
12122 msgstr "C<app_release>"
12123
12124 #. type: textblock
12125 #: ../src/guestfs-actions.pod:3312 ../fish/guestfish-actions.pod:2262
12126 msgid ""
12127 "The release string of the application or package, for package managers that "
12128 "use this.  If unavailable this is returned as an empty string C<\"\">."
12129 msgstr ""
12130
12131 #. type: =item
12132 #: ../src/guestfs-actions.pod:3316 ../fish/guestfish-actions.pod:2266
12133 msgid "C<app_install_path>"
12134 msgstr "C<app_install_path>"
12135
12136 #. type: textblock
12137 #: ../src/guestfs-actions.pod:3318 ../fish/guestfish-actions.pod:2268
12138 msgid ""
12139 "The installation path of the application (on operating systems such as "
12140 "Windows which use installation paths).  This path is in the format used by "
12141 "the guest operating system, it is not a libguestfs path."
12142 msgstr ""
12143
12144 #. type: textblock
12145 #: ../src/guestfs-actions.pod:3323 ../fish/guestfish-actions.pod:2273
12146 msgid "If unavailable this is returned as an empty string C<\"\">."
12147 msgstr ""
12148
12149 #. type: =item
12150 #: ../src/guestfs-actions.pod:3325 ../fish/guestfish-actions.pod:2275
12151 msgid "C<app_trans_path>"
12152 msgstr "C<app_trans_path>"
12153
12154 #. type: textblock
12155 #: ../src/guestfs-actions.pod:3327 ../fish/guestfish-actions.pod:2277
12156 msgid ""
12157 "The install path translated into a libguestfs path.  If unavailable this is "
12158 "returned as an empty string C<\"\">."
12159 msgstr ""
12160
12161 #. type: =item
12162 #: ../src/guestfs-actions.pod:3330 ../fish/guestfish-actions.pod:2280
12163 msgid "C<app_publisher>"
12164 msgstr "C<app_publisher>"
12165
12166 #. type: textblock
12167 #: ../src/guestfs-actions.pod:3332 ../fish/guestfish-actions.pod:2282
12168 msgid ""
12169 "The name of the publisher of the application, for package managers that use "
12170 "this.  If unavailable this is returned as an empty string C<\"\">."
12171 msgstr ""
12172
12173 #. type: =item
12174 #: ../src/guestfs-actions.pod:3336 ../fish/guestfish-actions.pod:2286
12175 msgid "C<app_url>"
12176 msgstr "C<app_url>"
12177
12178 #. type: textblock
12179 #: ../src/guestfs-actions.pod:3338 ../fish/guestfish-actions.pod:2288
12180 msgid ""
12181 "The URL (eg. upstream URL) of the application.  If unavailable this is "
12182 "returned as an empty string C<\"\">."
12183 msgstr ""
12184
12185 #. type: =item
12186 #: ../src/guestfs-actions.pod:3341 ../fish/guestfish-actions.pod:2291
12187 msgid "C<app_source_package>"
12188 msgstr "C<app_source_package>"
12189
12190 #. type: textblock
12191 #: ../src/guestfs-actions.pod:3343 ../fish/guestfish-actions.pod:2293
12192 msgid ""
12193 "For packaging systems which support this, the name of the source package.  "
12194 "If unavailable this is returned as an empty string C<\"\">."
12195 msgstr ""
12196
12197 #. type: =item
12198 #: ../src/guestfs-actions.pod:3346 ../fish/guestfish-actions.pod:2296
12199 msgid "C<app_summary>"
12200 msgstr "C<app_summary>"
12201
12202 #. type: textblock
12203 #: ../src/guestfs-actions.pod:3348 ../fish/guestfish-actions.pod:2298
12204 msgid ""
12205 "A short (usually one line) description of the application or package.  If "
12206 "unavailable this is returned as an empty string C<\"\">."
12207 msgstr ""
12208
12209 #. type: =item
12210 #: ../src/guestfs-actions.pod:3351 ../fish/guestfish-actions.pod:2301
12211 msgid "C<app_description>"
12212 msgstr "C<app_description>"
12213
12214 #. type: textblock
12215 #: ../src/guestfs-actions.pod:3353 ../fish/guestfish-actions.pod:2303
12216 msgid ""
12217 "A longer description of the application or package.  If unavailable this is "
12218 "returned as an empty string C<\"\">."
12219 msgstr ""
12220
12221 #. type: textblock
12222 #: ../src/guestfs-actions.pod:3360
12223 msgid ""
12224 "This function returns a C<struct guestfs_application_list *>, or NULL if "
12225 "there was an error.  I<The caller must call C<guestfs_free_application_list>"
12226 " after use>."
12227 msgstr ""
12228
12229 #. type: textblock
12230 #: ../src/guestfs-actions.pod:3364
12231 msgid "(Added in 1.7.8)"
12232 msgstr ""
12233
12234 #. type: =head2
12235 #: ../src/guestfs-actions.pod:3366
12236 msgid "guestfs_inspect_os"
12237 msgstr ""
12238
12239 #. type: verbatim
12240 #: ../src/guestfs-actions.pod:3368
12241 #, no-wrap
12242 msgid ""
12243 " char **\n"
12244 " guestfs_inspect_os (guestfs_h *g);\n"
12245 "\n"
12246 msgstr ""
12247
12248 #. type: textblock
12249 #: ../src/guestfs-actions.pod:3371 ../fish/guestfish-actions.pod:2314
12250 msgid ""
12251 "This function uses other libguestfs functions and certain heuristics to "
12252 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
12253 "for operating systems."
12254 msgstr ""
12255
12256 #. type: textblock
12257 #: ../src/guestfs-actions.pod:3375 ../fish/guestfish-actions.pod:2318
12258 msgid "The list returned is empty if no operating systems were found."
12259 msgstr ""
12260
12261 #. type: textblock
12262 #: ../src/guestfs-actions.pod:3377 ../fish/guestfish-actions.pod:2320
12263 msgid ""
12264 "If one operating system was found, then this returns a list with a single "
12265 "element, which is the name of the root filesystem of this operating system."
12266 "  It is also possible for this function to return a list containing more "
12267 "than one element, indicating a dual-boot or multi-boot virtual machine, with"
12268 " each element being the root filesystem of one of the operating systems."
12269 msgstr ""
12270
12271 #. type: textblock
12272 #: ../src/guestfs-actions.pod:3384
12273 msgid ""
12274 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
12275 "functions in order to query further information about each operating system,"
12276 " such as the name and version."
12277 msgstr ""
12278
12279 #. type: textblock
12280 #: ../src/guestfs-actions.pod:3389
12281 msgid ""
12282 "This function uses other libguestfs features such as C<guestfs_mount_ro> and"
12283 " C<guestfs_umount_all> in order to mount and unmount filesystems and look at"
12284 " the contents.  This should be called with no disks currently mounted.  The "
12285 "function may also use Augeas, so any existing Augeas handle will be closed."
12286 msgstr ""
12287
12288 #. type: textblock
12289 #: ../src/guestfs-actions.pod:3395 ../fish/guestfish-actions.pod:2338
12290 msgid ""
12291 "This function cannot decrypt encrypted disks.  The caller must do that first"
12292 " (supplying the necessary keys) if the disk is encrypted."
12293 msgstr ""
12294
12295 #. type: textblock
12296 #: ../src/guestfs-actions.pod:3401 ../src/guestfs-actions.pod:3732
12297 #: ../src/guestfs-actions.pod:3814
12298 msgid "See also C<guestfs_list_filesystems>."
12299 msgstr ""
12300
12301 #. type: =head2
12302 #: ../src/guestfs-actions.pod:3409
12303 msgid "guestfs_is_blockdev"
12304 msgstr ""
12305
12306 #. type: verbatim
12307 #: ../src/guestfs-actions.pod:3411
12308 #, no-wrap
12309 msgid ""
12310 " int\n"
12311 " guestfs_is_blockdev (guestfs_h *g,\n"
12312 "                      const char *path);\n"
12313 "\n"
12314 msgstr ""
12315
12316 #. type: textblock
12317 #: ../src/guestfs-actions.pod:3415 ../fish/guestfish-actions.pod:2350
12318 msgid ""
12319 "This returns C<true> if and only if there is a block device with the given "
12320 "C<path> name."
12321 msgstr ""
12322
12323 #. type: textblock
12324 #: ../src/guestfs-actions.pod:3418 ../src/guestfs-actions.pod:3447
12325 #: ../src/guestfs-actions.pod:3477 ../src/guestfs-actions.pod:3492
12326 #: ../src/guestfs-actions.pod:3508 ../src/guestfs-actions.pod:3564
12327 #: ../src/guestfs-actions.pod:3579
12328 msgid "See also C<guestfs_stat>."
12329 msgstr ""
12330
12331 #. type: textblock
12332 #: ../src/guestfs-actions.pod:3422 ../src/guestfs-actions.pod:3451
12333 #: ../src/guestfs-actions.pod:3496 ../src/guestfs-actions.pod:3568
12334 #: ../src/guestfs-actions.pod:3583
12335 msgid "(Added in 1.5.10)"
12336 msgstr ""
12337
12338 #. type: =head2
12339 #: ../src/guestfs-actions.pod:3424
12340 msgid "guestfs_is_busy"
12341 msgstr ""
12342
12343 #. type: verbatim
12344 #: ../src/guestfs-actions.pod:3426
12345 #, no-wrap
12346 msgid ""
12347 " int\n"
12348 " guestfs_is_busy (guestfs_h *g);\n"
12349 "\n"
12350 msgstr ""
12351
12352 #. type: textblock
12353 #: ../src/guestfs-actions.pod:3429 ../fish/guestfish-actions.pod:2359
12354 msgid ""
12355 "This returns true iff this handle is busy processing a command (in the "
12356 "C<BUSY> state)."
12357 msgstr ""
12358
12359 #. type: =head2
12360 #: ../src/guestfs-actions.pod:3438
12361 msgid "guestfs_is_chardev"
12362 msgstr ""
12363
12364 #. type: verbatim
12365 #: ../src/guestfs-actions.pod:3440
12366 #, no-wrap
12367 msgid ""
12368 " int\n"
12369 " guestfs_is_chardev (guestfs_h *g,\n"
12370 "                     const char *path);\n"
12371 "\n"
12372 msgstr ""
12373
12374 #. type: textblock
12375 #: ../src/guestfs-actions.pod:3444 ../fish/guestfish-actions.pod:2368
12376 msgid ""
12377 "This returns C<true> if and only if there is a character device with the "
12378 "given C<path> name."
12379 msgstr ""
12380
12381 #. type: =head2
12382 #: ../src/guestfs-actions.pod:3453
12383 msgid "guestfs_is_config"
12384 msgstr ""
12385
12386 #. type: verbatim
12387 #: ../src/guestfs-actions.pod:3455
12388 #, no-wrap
12389 msgid ""
12390 " int\n"
12391 " guestfs_is_config (guestfs_h *g);\n"
12392 "\n"
12393 msgstr ""
12394
12395 #. type: textblock
12396 #: ../src/guestfs-actions.pod:3458 ../fish/guestfish-actions.pod:2377
12397 msgid ""
12398 "This returns true iff this handle is being configured (in the C<CONFIG> "
12399 "state)."
12400 msgstr ""
12401
12402 #. type: =head2
12403 #: ../src/guestfs-actions.pod:3467
12404 msgid "guestfs_is_dir"
12405 msgstr ""
12406
12407 #. type: verbatim
12408 #: ../src/guestfs-actions.pod:3469
12409 #, no-wrap
12410 msgid ""
12411 " int\n"
12412 " guestfs_is_dir (guestfs_h *g,\n"
12413 "                 const char *path);\n"
12414 "\n"
12415 msgstr ""
12416
12417 #. type: textblock
12418 #: ../src/guestfs-actions.pod:3473 ../fish/guestfish-actions.pod:2386
12419 msgid ""
12420 "This returns C<true> if and only if there is a directory with the given "
12421 "C<path> name.  Note that it returns false for other objects like files."
12422 msgstr ""
12423
12424 #. type: =head2
12425 #: ../src/guestfs-actions.pod:3483
12426 msgid "guestfs_is_fifo"
12427 msgstr ""
12428
12429 #. type: verbatim
12430 #: ../src/guestfs-actions.pod:3485
12431 #, no-wrap
12432 msgid ""
12433 " int\n"
12434 " guestfs_is_fifo (guestfs_h *g,\n"
12435 "                  const char *path);\n"
12436 "\n"
12437 msgstr ""
12438
12439 #. type: textblock
12440 #: ../src/guestfs-actions.pod:3489 ../fish/guestfish-actions.pod:2396
12441 msgid ""
12442 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
12443 "given C<path> name."
12444 msgstr ""
12445
12446 #. type: =head2
12447 #: ../src/guestfs-actions.pod:3498
12448 msgid "guestfs_is_file"
12449 msgstr ""
12450
12451 #. type: verbatim
12452 #: ../src/guestfs-actions.pod:3500
12453 #, no-wrap
12454 msgid ""
12455 " int\n"
12456 " guestfs_is_file (guestfs_h *g,\n"
12457 "                  const char *path);\n"
12458 "\n"
12459 msgstr ""
12460
12461 #. type: textblock
12462 #: ../src/guestfs-actions.pod:3504 ../fish/guestfish-actions.pod:2405
12463 msgid ""
12464 "This returns C<true> if and only if there is a regular file with the given "
12465 "C<path> name.  Note that it returns false for other objects like "
12466 "directories."
12467 msgstr ""
12468
12469 #. type: =head2
12470 #: ../src/guestfs-actions.pod:3514
12471 msgid "guestfs_is_launching"
12472 msgstr ""
12473
12474 #. type: verbatim
12475 #: ../src/guestfs-actions.pod:3516
12476 #, no-wrap
12477 msgid ""
12478 " int\n"
12479 " guestfs_is_launching (guestfs_h *g);\n"
12480 "\n"
12481 msgstr ""
12482
12483 #. type: textblock
12484 #: ../src/guestfs-actions.pod:3519 ../fish/guestfish-actions.pod:2415
12485 msgid ""
12486 "This returns true iff this handle is launching the subprocess (in the "
12487 "C<LAUNCHING> state)."
12488 msgstr ""
12489
12490 #. type: =head2
12491 #: ../src/guestfs-actions.pod:3528
12492 msgid "guestfs_is_lv"
12493 msgstr ""
12494
12495 #. type: verbatim
12496 #: ../src/guestfs-actions.pod:3530
12497 #, no-wrap
12498 msgid ""
12499 " int\n"
12500 " guestfs_is_lv (guestfs_h *g,\n"
12501 "                const char *device);\n"
12502 "\n"
12503 msgstr ""
12504
12505 #. type: textblock
12506 #: ../src/guestfs-actions.pod:3534 ../fish/guestfish-actions.pod:2424
12507 msgid ""
12508 "This command tests whether C<device> is a logical volume, and returns true "
12509 "iff this is the case."
12510 msgstr ""
12511
12512 #. type: =head2
12513 #: ../src/guestfs-actions.pod:3541
12514 msgid "guestfs_is_ready"
12515 msgstr ""
12516
12517 #. type: verbatim
12518 #: ../src/guestfs-actions.pod:3543
12519 #, no-wrap
12520 msgid ""
12521 " int\n"
12522 " guestfs_is_ready (guestfs_h *g);\n"
12523 "\n"
12524 msgstr ""
12525
12526 #. type: textblock
12527 #: ../src/guestfs-actions.pod:3546 ../fish/guestfish-actions.pod:2431
12528 msgid ""
12529 "This returns true iff this handle is ready to accept commands (in the "
12530 "C<READY> state)."
12531 msgstr ""
12532
12533 #. type: =head2
12534 #: ../src/guestfs-actions.pod:3555
12535 msgid "guestfs_is_socket"
12536 msgstr ""
12537
12538 #. type: verbatim
12539 #: ../src/guestfs-actions.pod:3557
12540 #, no-wrap
12541 msgid ""
12542 " int\n"
12543 " guestfs_is_socket (guestfs_h *g,\n"
12544 "                    const char *path);\n"
12545 "\n"
12546 msgstr ""
12547
12548 #. type: textblock
12549 #: ../src/guestfs-actions.pod:3561 ../fish/guestfish-actions.pod:2440
12550 msgid ""
12551 "This returns C<true> if and only if there is a Unix domain socket with the "
12552 "given C<path> name."
12553 msgstr ""
12554
12555 #. type: =head2
12556 #: ../src/guestfs-actions.pod:3570
12557 msgid "guestfs_is_symlink"
12558 msgstr ""
12559
12560 #. type: verbatim
12561 #: ../src/guestfs-actions.pod:3572
12562 #, no-wrap
12563 msgid ""
12564 " int\n"
12565 " guestfs_is_symlink (guestfs_h *g,\n"
12566 "                     const char *path);\n"
12567 "\n"
12568 msgstr ""
12569
12570 #. type: textblock
12571 #: ../src/guestfs-actions.pod:3576 ../fish/guestfish-actions.pod:2449
12572 msgid ""
12573 "This returns C<true> if and only if there is a symbolic link with the given "
12574 "C<path> name."
12575 msgstr ""
12576
12577 #. type: =head2
12578 #: ../src/guestfs-actions.pod:3585
12579 msgid "guestfs_is_zero"
12580 msgstr ""
12581
12582 #. type: verbatim
12583 #: ../src/guestfs-actions.pod:3587
12584 #, no-wrap
12585 msgid ""
12586 " int\n"
12587 " guestfs_is_zero (guestfs_h *g,\n"
12588 "                  const char *path);\n"
12589 "\n"
12590 msgstr ""
12591
12592 #. type: textblock
12593 #: ../src/guestfs-actions.pod:3591 ../fish/guestfish-actions.pod:2458
12594 msgid ""
12595 "This returns true iff the file exists and the file is empty or it contains "
12596 "all zero bytes."
12597 msgstr ""
12598
12599 #. type: textblock
12600 #: ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3610
12601 msgid "(Added in 1.11.8)"
12602 msgstr ""
12603
12604 #. type: =head2
12605 #: ../src/guestfs-actions.pod:3598
12606 msgid "guestfs_is_zero_device"
12607 msgstr ""
12608
12609 #. type: verbatim
12610 #: ../src/guestfs-actions.pod:3600
12611 #, no-wrap
12612 msgid ""
12613 " int\n"
12614 " guestfs_is_zero_device (guestfs_h *g,\n"
12615 "                         const char *device);\n"
12616 "\n"
12617 msgstr ""
12618
12619 #. type: textblock
12620 #: ../src/guestfs-actions.pod:3604 ../fish/guestfish-actions.pod:2465
12621 msgid "This returns true iff the device exists and contains all zero bytes."
12622 msgstr ""
12623
12624 #. type: textblock
12625 #: ../src/guestfs-actions.pod:3606 ../fish/guestfish-actions.pod:2467
12626 msgid "Note that for large devices this can take a long time to run."
12627 msgstr ""
12628
12629 #. type: =head2
12630 #: ../src/guestfs-actions.pod:3612
12631 msgid "guestfs_kill_subprocess"
12632 msgstr ""
12633
12634 #. type: verbatim
12635 #: ../src/guestfs-actions.pod:3614
12636 #, no-wrap
12637 msgid ""
12638 " int\n"
12639 " guestfs_kill_subprocess (guestfs_h *g);\n"
12640 "\n"
12641 msgstr ""
12642
12643 #. type: textblock
12644 #: ../src/guestfs-actions.pod:3617 ../fish/guestfish-actions.pod:2473
12645 msgid "This kills the qemu subprocess.  You should never need to call this."
12646 msgstr ""
12647
12648 #. type: =head2
12649 #: ../src/guestfs-actions.pod:3623
12650 msgid "guestfs_launch"
12651 msgstr ""
12652
12653 #. type: verbatim
12654 #: ../src/guestfs-actions.pod:3625
12655 #, no-wrap
12656 msgid ""
12657 " int\n"
12658 " guestfs_launch (guestfs_h *g);\n"
12659 "\n"
12660 msgstr ""
12661
12662 #. type: textblock
12663 #: ../src/guestfs-actions.pod:3628 ../fish/guestfish-actions.pod:2481
12664 msgid ""
12665 "Internally libguestfs is implemented by running a virtual machine using "
12666 "L<qemu(1)>."
12667 msgstr ""
12668
12669 #. type: textblock
12670 #: ../src/guestfs-actions.pod:3631 ../fish/guestfish-actions.pod:2484
12671 msgid ""
12672 "You should call this after configuring the handle (eg. adding drives) but "
12673 "before performing any actions."
12674 msgstr ""
12675
12676 #. type: =head2
12677 #: ../src/guestfs-actions.pod:3643
12678 msgid "guestfs_lchown"
12679 msgstr ""
12680
12681 #. type: verbatim
12682 #: ../src/guestfs-actions.pod:3645
12683 #, no-wrap
12684 msgid ""
12685 " int\n"
12686 " guestfs_lchown (guestfs_h *g,\n"
12687 "                 int owner,\n"
12688 "                 int group,\n"
12689 "                 const char *path);\n"
12690 "\n"
12691 msgstr ""
12692
12693 #. type: textblock
12694 #: ../src/guestfs-actions.pod:3651
12695 msgid ""
12696 "Change the file owner to C<owner> and group to C<group>.  This is like "
12697 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
12698 "changed, not the target."
12699 msgstr ""
12700
12701 #. type: =head2
12702 #: ../src/guestfs-actions.pod:3663
12703 msgid "guestfs_lgetxattr"
12704 msgstr ""
12705
12706 #. type: verbatim
12707 #: ../src/guestfs-actions.pod:3665
12708 #, no-wrap
12709 msgid ""
12710 " char *\n"
12711 " guestfs_lgetxattr (guestfs_h *g,\n"
12712 "                    const char *path,\n"
12713 "                    const char *name,\n"
12714 "                    size_t *size_r);\n"
12715 "\n"
12716 msgstr ""
12717
12718 #. type: textblock
12719 #: ../src/guestfs-actions.pod:3671 ../fish/guestfish-actions.pod:2503
12720 msgid ""
12721 "Get a single extended attribute from file C<path> named C<name>.  If C<path>"
12722 " is a symlink, then this call returns an extended attribute from the "
12723 "symlink."
12724 msgstr ""
12725
12726 #. type: textblock
12727 #: ../src/guestfs-actions.pod:3685
12728 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
12729 msgstr ""
12730
12731 #. type: =head2
12732 #: ../src/guestfs-actions.pod:3693
12733 msgid "guestfs_lgetxattrs"
12734 msgstr ""
12735
12736 #. type: verbatim
12737 #: ../src/guestfs-actions.pod:3695
12738 #, no-wrap
12739 msgid ""
12740 " struct guestfs_xattr_list *\n"
12741 " guestfs_lgetxattrs (guestfs_h *g,\n"
12742 "                     const char *path);\n"
12743 "\n"
12744 msgstr ""
12745
12746 #. type: textblock
12747 #: ../src/guestfs-actions.pod:3699
12748 msgid ""
12749 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link,"
12750 " then it returns the extended attributes of the link itself."
12751 msgstr ""
12752
12753 #. type: =head2
12754 #: ../src/guestfs-actions.pod:3709
12755 msgid "guestfs_list_9p"
12756 msgstr ""
12757
12758 #. type: verbatim
12759 #: ../src/guestfs-actions.pod:3711
12760 #, no-wrap
12761 msgid ""
12762 " char **\n"
12763 " guestfs_list_9p (guestfs_h *g);\n"
12764 "\n"
12765 msgstr ""
12766
12767 #. type: textblock
12768 #: ../src/guestfs-actions.pod:3714 ../fish/guestfish-actions.pod:2531
12769 msgid ""
12770 "List all 9p filesystems attached to the guest.  A list of mount tags is "
12771 "returned."
12772 msgstr ""
12773
12774 #. type: =head2
12775 #: ../src/guestfs-actions.pod:3723
12776 msgid "guestfs_list_devices"
12777 msgstr ""
12778
12779 #. type: verbatim
12780 #: ../src/guestfs-actions.pod:3725
12781 #, no-wrap
12782 msgid ""
12783 " char **\n"
12784 " guestfs_list_devices (guestfs_h *g);\n"
12785 "\n"
12786 msgstr ""
12787
12788 #. type: textblock
12789 #: ../src/guestfs-actions.pod:3728 ../fish/guestfish-actions.pod:2538
12790 msgid "List all the block devices."
12791 msgstr ""
12792
12793 #. type: textblock
12794 #: ../src/guestfs-actions.pod:3730 ../fish/guestfish-actions.pod:2540
12795 msgid "The full block device names are returned, eg. C</dev/sda>."
12796 msgstr ""
12797
12798 #. type: =head2
12799 #: ../src/guestfs-actions.pod:3740
12800 msgid "guestfs_list_dm_devices"
12801 msgstr ""
12802
12803 #. type: verbatim
12804 #: ../src/guestfs-actions.pod:3742
12805 #, no-wrap
12806 msgid ""
12807 " char **\n"
12808 " guestfs_list_dm_devices (guestfs_h *g);\n"
12809 "\n"
12810 msgstr ""
12811
12812 #. type: textblock
12813 #: ../src/guestfs-actions.pod:3745 ../fish/guestfish-actions.pod:2548
12814 msgid "List all device mapper devices."
12815 msgstr ""
12816
12817 #. type: textblock
12818 #: ../src/guestfs-actions.pod:3747
12819 msgid ""
12820 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
12821 "previous call to C<guestfs_luks_open>."
12822 msgstr ""
12823
12824 #. type: textblock
12825 #: ../src/guestfs-actions.pod:3750
12826 msgid ""
12827 "Device mapper devices which correspond to logical volumes are I<not> "
12828 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
12829 "volumes."
12830 msgstr ""
12831
12832 #. type: textblock
12833 #: ../src/guestfs-actions.pod:3758 ../src/guestfs-actions.pod:5214
12834 msgid "(Added in 1.11.15)"
12835 msgstr ""
12836
12837 #. type: =head2
12838 #: ../src/guestfs-actions.pod:3760
12839 msgid "guestfs_list_filesystems"
12840 msgstr ""
12841
12842 #. type: verbatim
12843 #: ../src/guestfs-actions.pod:3762
12844 #, no-wrap
12845 msgid ""
12846 " char **\n"
12847 " guestfs_list_filesystems (guestfs_h *g);\n"
12848 "\n"
12849 msgstr ""
12850
12851 #. type: textblock
12852 #: ../src/guestfs-actions.pod:3765 ../fish/guestfish-actions.pod:2561
12853 msgid ""
12854 "This inspection command looks for filesystems on partitions, block devices "
12855 "and logical volumes, returning a list of devices containing filesystems and "
12856 "their type."
12857 msgstr ""
12858
12859 #. type: textblock
12860 #: ../src/guestfs-actions.pod:3769 ../fish/guestfish-actions.pod:2565
12861 msgid ""
12862 "The return value is a hash, where the keys are the devices containing "
12863 "filesystems, and the values are the filesystem types.  For example:"
12864 msgstr ""
12865
12866 #. type: verbatim
12867 #: ../src/guestfs-actions.pod:3773 ../fish/guestfish-actions.pod:2569
12868 #, no-wrap
12869 msgid ""
12870 " \"/dev/sda1\" => \"ntfs\"\n"
12871 " \"/dev/sda2\" => \"ext2\"\n"
12872 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
12873 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
12874 "\n"
12875 msgstr ""
12876
12877 #. type: textblock
12878 #: ../src/guestfs-actions.pod:3778 ../fish/guestfish-actions.pod:2574
12879 msgid ""
12880 "The value can have the special value \"unknown\", meaning the content of the"
12881 " device is undetermined or empty.  \"swap\" means a Linux swap partition."
12882 msgstr ""
12883
12884 #. type: textblock
12885 #: ../src/guestfs-actions.pod:3782
12886 msgid ""
12887 "This command runs other libguestfs commands, which might include "
12888 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
12889 "soon after launch and only when nothing is mounted."
12890 msgstr ""
12891
12892 #. type: textblock
12893 #: ../src/guestfs-actions.pod:3786
12894 msgid ""
12895 "Not all of the filesystems returned will be mountable.  In particular, swap "
12896 "partitions are returned in the list.  Also this command does not check that "
12897 "each filesystem found is valid and mountable, and some filesystems might be "
12898 "mountable but require special options.  Filesystems may not all belong to a "
12899 "single logical operating system (use C<guestfs_inspect_os> to look for "
12900 "OSes)."
12901 msgstr ""
12902
12903 #. type: textblock
12904 #: ../src/guestfs-actions.pod:3800 ../src/guestfs-actions.pod:5569
12905 msgid "(Added in 1.5.15)"
12906 msgstr ""
12907
12908 #. type: =head2
12909 #: ../src/guestfs-actions.pod:3802
12910 msgid "guestfs_list_partitions"
12911 msgstr "guestfs_list_partitions"
12912
12913 #. type: verbatim
12914 #: ../src/guestfs-actions.pod:3804
12915 #, no-wrap
12916 msgid ""
12917 " char **\n"
12918 " guestfs_list_partitions (guestfs_h *g);\n"
12919 "\n"
12920 msgstr ""
12921 " char **\n"
12922 " guestfs_list_partitions (guestfs_h *g);\n"
12923 "\n"
12924
12925 #. type: textblock
12926 #: ../src/guestfs-actions.pod:3807 ../fish/guestfish-actions.pod:2594
12927 msgid "List all the partitions detected on all block devices."
12928 msgstr ""
12929
12930 #. type: textblock
12931 #: ../src/guestfs-actions.pod:3809 ../fish/guestfish-actions.pod:2596
12932 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12933 msgstr ""
12934
12935 #. type: textblock
12936 #: ../src/guestfs-actions.pod:3811
12937 msgid ""
12938 "This does not return logical volumes.  For that you will need to call "
12939 "C<guestfs_lvs>."
12940 msgstr ""
12941
12942 #. type: =head2
12943 #: ../src/guestfs-actions.pod:3822
12944 msgid "guestfs_ll"
12945 msgstr "guestfs_ll"
12946
12947 #. type: verbatim
12948 #: ../src/guestfs-actions.pod:3824
12949 #, no-wrap
12950 msgid ""
12951 " char *\n"
12952 " guestfs_ll (guestfs_h *g,\n"
12953 "             const char *directory);\n"
12954 "\n"
12955 msgstr ""
12956 " char *\n"
12957 " guestfs_ll (guestfs_h *g,\n"
12958 "             const char *directory);\n"
12959 "\n"
12960
12961 #. type: textblock
12962 #: ../src/guestfs-actions.pod:3828 ../fish/guestfish-actions.pod:2607
12963 msgid ""
12964 "List the files in C<directory> (relative to the root directory, there is no "
12965 "cwd) in the format of 'ls -la'."
12966 msgstr ""
12967
12968 #. type: textblock
12969 #: ../src/guestfs-actions.pod:3831 ../fish/guestfish-actions.pod:2610
12970 msgid ""
12971 "This command is mostly useful for interactive sessions.  It is I<not> "
12972 "intended that you try to parse the output string."
12973 msgstr ""
12974
12975 #. type: =head2
12976 #: ../src/guestfs-actions.pod:3839
12977 msgid "guestfs_ln"
12978 msgstr "guestfs_ln"
12979
12980 #. type: verbatim
12981 #: ../src/guestfs-actions.pod:3841
12982 #, no-wrap
12983 msgid ""
12984 " int\n"
12985 " guestfs_ln (guestfs_h *g,\n"
12986 "             const char *target,\n"
12987 "             const char *linkname);\n"
12988 "\n"
12989 msgstr ""
12990 " int\n"
12991 " guestfs_ln (guestfs_h *g,\n"
12992 "             const char *target,\n"
12993 "             const char *linkname);\n"
12994 "\n"
12995
12996 #. type: textblock
12997 #: ../src/guestfs-actions.pod:3846 ../fish/guestfish-actions.pod:2617
12998 msgid "This command creates a hard link using the C<ln> command."
12999 msgstr ""
13000
13001 #. type: =head2
13002 #: ../src/guestfs-actions.pod:3852
13003 msgid "guestfs_ln_f"
13004 msgstr "guestfs_ln_f"
13005
13006 #. type: verbatim
13007 #: ../src/guestfs-actions.pod:3854
13008 #, no-wrap
13009 msgid ""
13010 " int\n"
13011 " guestfs_ln_f (guestfs_h *g,\n"
13012 "               const char *target,\n"
13013 "               const char *linkname);\n"
13014 "\n"
13015 msgstr ""
13016 " int\n"
13017 " guestfs_ln_f (guestfs_h *g,\n"
13018 "               const char *target,\n"
13019 "               const char *linkname);\n"
13020 "\n"
13021
13022 #. type: textblock
13023 #: ../src/guestfs-actions.pod:3859 ../fish/guestfish-actions.pod:2623
13024 msgid ""
13025 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
13026 "option removes the link (C<linkname>) if it exists already."
13027 msgstr ""
13028
13029 #. type: =head2
13030 #: ../src/guestfs-actions.pod:3866
13031 msgid "guestfs_ln_s"
13032 msgstr "guestfs_ln_s"
13033
13034 #. type: verbatim
13035 #: ../src/guestfs-actions.pod:3868
13036 #, no-wrap
13037 msgid ""
13038 " int\n"
13039 " guestfs_ln_s (guestfs_h *g,\n"
13040 "               const char *target,\n"
13041 "               const char *linkname);\n"
13042 "\n"
13043 msgstr ""
13044 " int\n"
13045 " guestfs_ln_s (guestfs_h *g,\n"
13046 "               const char *target,\n"
13047 "               const char *linkname);\n"
13048 "\n"
13049
13050 #. type: textblock
13051 #: ../src/guestfs-actions.pod:3873 ../fish/guestfish-actions.pod:2630
13052 msgid "This command creates a symbolic link using the C<ln -s> command."
13053 msgstr ""
13054
13055 #. type: =head2
13056 #: ../src/guestfs-actions.pod:3879
13057 msgid "guestfs_ln_sf"
13058 msgstr "guestfs_ln_sf"
13059
13060 #. type: verbatim
13061 #: ../src/guestfs-actions.pod:3881
13062 #, no-wrap
13063 msgid ""
13064 " int\n"
13065 " guestfs_ln_sf (guestfs_h *g,\n"
13066 "                const char *target,\n"
13067 "                const char *linkname);\n"
13068 "\n"
13069 msgstr ""
13070 " int\n"
13071 " guestfs_ln_sf (guestfs_h *g,\n"
13072 "                const char *target,\n"
13073 "                const char *linkname);\n"
13074 "\n"
13075
13076 #. type: textblock
13077 #: ../src/guestfs-actions.pod:3886 ../fish/guestfish-actions.pod:2636
13078 msgid ""
13079 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
13080 "option removes the link (C<linkname>) if it exists already."
13081 msgstr ""
13082
13083 #. type: =head2
13084 #: ../src/guestfs-actions.pod:3893
13085 msgid "guestfs_lremovexattr"
13086 msgstr "guestfs_lremovexattr"
13087
13088 #. type: verbatim
13089 #: ../src/guestfs-actions.pod:3895
13090 #, no-wrap
13091 msgid ""
13092 " int\n"
13093 " guestfs_lremovexattr (guestfs_h *g,\n"
13094 "                       const char *xattr,\n"
13095 "                       const char *path);\n"
13096 "\n"
13097 msgstr ""
13098 " int\n"
13099 " guestfs_lremovexattr (guestfs_h *g,\n"
13100 "                       const char *xattr,\n"
13101 "                       const char *path);\n"
13102 "\n"
13103
13104 #. type: textblock
13105 #: ../src/guestfs-actions.pod:3900
13106 msgid ""
13107 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
13108 "link, then it removes an extended attribute of the link itself."
13109 msgstr ""
13110
13111 #. type: =head2
13112 #: ../src/guestfs-actions.pod:3908
13113 msgid "guestfs_ls"
13114 msgstr "guestfs_ls"
13115
13116 #. type: verbatim
13117 #: ../src/guestfs-actions.pod:3910
13118 #, no-wrap
13119 msgid ""
13120 " char **\n"
13121 " guestfs_ls (guestfs_h *g,\n"
13122 "             const char *directory);\n"
13123 "\n"
13124 msgstr ""
13125 " char **\n"
13126 " guestfs_ls (guestfs_h *g,\n"
13127 "             const char *directory);\n"
13128 "\n"
13129
13130 #. type: textblock
13131 #: ../src/guestfs-actions.pod:3914 ../fish/guestfish-actions.pod:2651
13132 msgid ""
13133 "List the files in C<directory> (relative to the root directory, there is no "
13134 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
13135 "shown."
13136 msgstr ""
13137
13138 #. type: textblock
13139 #: ../src/guestfs-actions.pod:3918
13140 msgid ""
13141 "This command is mostly useful for interactive sessions.  Programs should "
13142 "probably use C<guestfs_readdir> instead."
13143 msgstr ""
13144
13145 #. type: =head2
13146 #: ../src/guestfs-actions.pod:3927
13147 msgid "guestfs_lsetxattr"
13148 msgstr "guestfs_lsetxattr"
13149
13150 #. type: verbatim
13151 #: ../src/guestfs-actions.pod:3929
13152 #, no-wrap
13153 msgid ""
13154 " int\n"
13155 " guestfs_lsetxattr (guestfs_h *g,\n"
13156 "                    const char *xattr,\n"
13157 "                    const char *val,\n"
13158 "                    int vallen,\n"
13159 "                    const char *path);\n"
13160 "\n"
13161 msgstr ""
13162 " int\n"
13163 " guestfs_lsetxattr (guestfs_h *g,\n"
13164 "                    const char *xattr,\n"
13165 "                    const char *val,\n"
13166 "                    int vallen,\n"
13167 "                    const char *path);\n"
13168 "\n"
13169
13170 #. type: textblock
13171 #: ../src/guestfs-actions.pod:3936
13172 msgid ""
13173 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
13174 "then it sets an extended attribute of the link itself."
13175 msgstr ""
13176
13177 #. type: =head2
13178 #: ../src/guestfs-actions.pod:3944
13179 msgid "guestfs_lstat"
13180 msgstr "guestfs_lstat"
13181
13182 #. type: verbatim
13183 #: ../src/guestfs-actions.pod:3946
13184 #, no-wrap
13185 msgid ""
13186 " struct guestfs_stat *\n"
13187 " guestfs_lstat (guestfs_h *g,\n"
13188 "                const char *path);\n"
13189 "\n"
13190 msgstr ""
13191 " struct guestfs_stat *\n"
13192 " guestfs_lstat (guestfs_h *g,\n"
13193 "                const char *path);\n"
13194 "\n"
13195
13196 #. type: textblock
13197 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:6721
13198 #: ../fish/guestfish-actions.pod:2670 ../fish/guestfish-actions.pod:4472
13199 msgid "Returns file information for the given C<path>."
13200 msgstr ""
13201
13202 #. type: textblock
13203 #: ../src/guestfs-actions.pod:3952
13204 msgid ""
13205 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
13206 "link, then the link is stat-ed, not the file it refers to."
13207 msgstr ""
13208
13209 #. type: textblock
13210 #: ../src/guestfs-actions.pod:3956 ../fish/guestfish-actions.pod:2676
13211 msgid "This is the same as the C<lstat(2)> system call."
13212 msgstr ""
13213
13214 #. type: textblock
13215 #: ../src/guestfs-actions.pod:3958 ../src/guestfs-actions.pod:6725
13216 msgid ""
13217 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
13218 "error.  I<The caller must call C<guestfs_free_stat> after use>."
13219 msgstr ""
13220
13221 #. type: textblock
13222 #: ../src/guestfs-actions.pod:3962 ../src/guestfs-actions.pod:6729
13223 #: ../src/guestfs-actions.pod:6747 ../src/guestfs-actions.pod:7128
13224 msgid "(Added in 0.9.2)"
13225 msgstr "(Додано у 0.9.2)"
13226
13227 #. type: =head2
13228 #: ../src/guestfs-actions.pod:3964
13229 msgid "guestfs_lstatlist"
13230 msgstr "guestfs_lstatlist"
13231
13232 #. type: verbatim
13233 #: ../src/guestfs-actions.pod:3966
13234 #, no-wrap
13235 msgid ""
13236 " struct guestfs_stat_list *\n"
13237 " guestfs_lstatlist (guestfs_h *g,\n"
13238 "                    const char *path,\n"
13239 "                    char *const *names);\n"
13240 "\n"
13241 msgstr ""
13242 " struct guestfs_stat_list *\n"
13243 " guestfs_lstatlist (guestfs_h *g,\n"
13244 "                    const char *path,\n"
13245 "                    char *const *names);\n"
13246 "\n"
13247
13248 #. type: textblock
13249 #: ../src/guestfs-actions.pod:3971
13250 msgid ""
13251 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
13252 "files, where all files are in the directory C<path>.  C<names> is the list "
13253 "of files from this directory."
13254 msgstr ""
13255
13256 #. type: textblock
13257 #: ../src/guestfs-actions.pod:3975 ../fish/guestfish-actions.pod:2686
13258 msgid ""
13259 "On return you get a list of stat structs, with a one-to-one correspondence "
13260 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
13261 "then the C<ino> field of that structure is set to C<-1>."
13262 msgstr ""
13263
13264 #. type: textblock
13265 #: ../src/guestfs-actions.pod:3980
13266 msgid ""
13267 "This call is intended for programs that want to efficiently list a directory"
13268 " contents without making many round-trips.  See also C<guestfs_lxattrlist> "
13269 "for a similarly efficient call for getting extended attributes.  Very long "
13270 "directory listings might cause the protocol message size to be exceeded, "
13271 "causing this call to fail.  The caller must split up such requests into "
13272 "smaller groups of names."
13273 msgstr ""
13274
13275 #. type: textblock
13276 #: ../src/guestfs-actions.pod:3988
13277 msgid ""
13278 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
13279 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
13280 msgstr ""
13281
13282 #. type: =head2
13283 #: ../src/guestfs-actions.pod:3994
13284 msgid "guestfs_luks_add_key"
13285 msgstr "guestfs_luks_add_key"
13286
13287 #. type: verbatim
13288 #: ../src/guestfs-actions.pod:3996
13289 #, no-wrap
13290 msgid ""
13291 " int\n"
13292 " guestfs_luks_add_key (guestfs_h *g,\n"
13293 "                       const char *device,\n"
13294 "                       const char *key,\n"
13295 "                       const char *newkey,\n"
13296 "                       int keyslot);\n"
13297 "\n"
13298 msgstr ""
13299 " int\n"
13300 " guestfs_luks_add_key (guestfs_h *g,\n"
13301 "                       const char *device,\n"
13302 "                       const char *key,\n"
13303 "                       const char *newkey,\n"
13304 "                       int keyslot);\n"
13305 "\n"
13306
13307 #. type: textblock
13308 #: ../src/guestfs-actions.pod:4003 ../fish/guestfish-actions.pod:2703
13309 msgid ""
13310 "This command adds a new key on LUKS device C<device>.  C<key> is any "
13311 "existing key, and is used to access the device.  C<newkey> is the new key to"
13312 " add.  C<keyslot> is the key slot that will be replaced."
13313 msgstr ""
13314
13315 #. type: textblock
13316 #: ../src/guestfs-actions.pod:4008
13317 msgid ""
13318 "Note that if C<keyslot> already contains a key, then this command will fail."
13319 "  You have to use C<guestfs_luks_kill_slot> first to remove that key."
13320 msgstr ""
13321
13322 #. type: textblock
13323 #: ../src/guestfs-actions.pod:4014 ../src/guestfs-actions.pod:4054
13324 #: ../src/guestfs-actions.pod:4077 ../src/guestfs-actions.pod:4097
13325 #: ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:4151
13326 msgid ""
13327 "This function takes a key or passphrase parameter which could contain "
13328 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
13329 "information."
13330 msgstr ""
13331
13332 #. type: textblock
13333 #: ../src/guestfs-actions.pod:4018 ../src/guestfs-actions.pod:4058
13334 #: ../src/guestfs-actions.pod:4081 ../src/guestfs-actions.pod:4101
13335 msgid "(Added in 1.5.2)"
13336 msgstr "(Додано у 1.5.2)"
13337
13338 #. type: =head2
13339 #: ../src/guestfs-actions.pod:4020
13340 msgid "guestfs_luks_close"
13341 msgstr "guestfs_luks_close"
13342
13343 #. type: verbatim
13344 #: ../src/guestfs-actions.pod:4022
13345 #, no-wrap
13346 msgid ""
13347 " int\n"
13348 " guestfs_luks_close (guestfs_h *g,\n"
13349 "                     const char *device);\n"
13350 "\n"
13351 msgstr ""
13352 " int\n"
13353 " guestfs_luks_close (guestfs_h *g,\n"
13354 "                     const char *device);\n"
13355 "\n"
13356
13357 #. type: textblock
13358 #: ../src/guestfs-actions.pod:4026
13359 msgid ""
13360 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
13361 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the"
13362 " LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the"
13363 " underlying block device."
13364 msgstr ""
13365
13366 #. type: textblock
13367 #: ../src/guestfs-actions.pod:4034 ../src/guestfs-actions.pod:4136
13368 #: ../src/guestfs-actions.pod:4155 ../src/guestfs-actions.pod:4205
13369 #: ../src/guestfs-actions.pod:4253
13370 msgid "(Added in 1.5.1)"
13371 msgstr "(Додано у 1.5.1)"
13372
13373 #. type: =head2
13374 #: ../src/guestfs-actions.pod:4036
13375 msgid "guestfs_luks_format"
13376 msgstr "guestfs_luks_format"
13377
13378 #. type: verbatim
13379 #: ../src/guestfs-actions.pod:4038
13380 #, no-wrap
13381 msgid ""
13382 " int\n"
13383 " guestfs_luks_format (guestfs_h *g,\n"
13384 "                      const char *device,\n"
13385 "                      const char *key,\n"
13386 "                      int keyslot);\n"
13387 "\n"
13388 msgstr ""
13389 " int\n"
13390 " guestfs_luks_format (guestfs_h *g,\n"
13391 "                      const char *device,\n"
13392 "                      const char *key,\n"
13393 "                      int keyslot);\n"
13394 "\n"
13395
13396 #. type: textblock
13397 #: ../src/guestfs-actions.pod:4044 ../fish/guestfish-actions.pod:2729
13398 msgid ""
13399 "This command erases existing data on C<device> and formats the device as a "
13400 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
13401 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
13402 msgstr ""
13403
13404 #. type: textblock
13405 #: ../src/guestfs-actions.pod:4051 ../src/guestfs-actions.pod:4074
13406 #: ../src/guestfs-actions.pod:4217 ../src/guestfs-actions.pod:5320
13407 #: ../src/guestfs-actions.pod:6102 ../src/guestfs-actions.pod:6528
13408 #: ../src/guestfs-actions.pod:6558 ../src/guestfs-actions.pod:6591
13409 #: ../src/guestfs-actions.pod:7787 ../fish/guestfish-actions.pod:2737
13410 #: ../fish/guestfish-actions.pod:2750 ../fish/guestfish-actions.pod:2837
13411 #: ../fish/guestfish-actions.pod:3498 ../fish/guestfish-actions.pod:4018
13412 #: ../fish/guestfish-actions.pod:4343 ../fish/guestfish-actions.pod:4366
13413 #: ../fish/guestfish-actions.pod:4388 ../fish/guestfish-actions.pod:5126
13414 msgid ""
13415 "B<This command is dangerous.  Without careful use you can easily destroy all"
13416 " your data>."
13417 msgstr ""
13418
13419 #. type: =head2
13420 #: ../src/guestfs-actions.pod:4060
13421 msgid "guestfs_luks_format_cipher"
13422 msgstr "guestfs_luks_format_cipher"
13423
13424 #. type: verbatim
13425 #: ../src/guestfs-actions.pod:4062
13426 #, no-wrap
13427 msgid ""
13428 " int\n"
13429 " guestfs_luks_format_cipher (guestfs_h *g,\n"
13430 "                             const char *device,\n"
13431 "                             const char *key,\n"
13432 "                             int keyslot,\n"
13433 "                             const char *cipher);\n"
13434 "\n"
13435 msgstr ""
13436 " int\n"
13437 " guestfs_luks_format_cipher (guestfs_h *g,\n"
13438 "                             const char *device,\n"
13439 "                             const char *key,\n"
13440 "                             int keyslot,\n"
13441 "                             const char *cipher);\n"
13442 "\n"
13443
13444 #. type: textblock
13445 #: ../src/guestfs-actions.pod:4069
13446 msgid ""
13447 "This command is the same as C<guestfs_luks_format> but it also allows you to"
13448 " set the C<cipher> used."
13449 msgstr ""
13450
13451 #. type: =head2
13452 #: ../src/guestfs-actions.pod:4083
13453 msgid "guestfs_luks_kill_slot"
13454 msgstr "guestfs_luks_kill_slot"
13455
13456 #. type: verbatim
13457 #: ../src/guestfs-actions.pod:4085
13458 #, no-wrap
13459 msgid ""
13460 " int\n"
13461 " guestfs_luks_kill_slot (guestfs_h *g,\n"
13462 "                         const char *device,\n"
13463 "                         const char *key,\n"
13464 "                         int keyslot);\n"
13465 "\n"
13466 msgstr ""
13467 " int\n"
13468 " guestfs_luks_kill_slot (guestfs_h *g,\n"
13469 "                         const char *device,\n"
13470 "                         const char *key,\n"
13471 "                         int keyslot);\n"
13472 "\n"
13473
13474 #. type: textblock
13475 #: ../src/guestfs-actions.pod:4091 ../fish/guestfish-actions.pod:2757
13476 msgid ""
13477 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
13478 "device C<device>.  C<key> must be one of the I<other> keys."
13479 msgstr ""
13480
13481 #. type: =head2
13482 #: ../src/guestfs-actions.pod:4103
13483 msgid "guestfs_luks_open"
13484 msgstr "guestfs_luks_open"
13485
13486 #. type: verbatim
13487 #: ../src/guestfs-actions.pod:4105
13488 #, no-wrap
13489 msgid ""
13490 " int\n"
13491 " guestfs_luks_open (guestfs_h *g,\n"
13492 "                    const char *device,\n"
13493 "                    const char *key,\n"
13494 "                    const char *mapname);\n"
13495 "\n"
13496 msgstr ""
13497 " int\n"
13498 " guestfs_luks_open (guestfs_h *g,\n"
13499 "                    const char *device,\n"
13500 "                    const char *key,\n"
13501 "                    const char *mapname);\n"
13502 "\n"
13503
13504 #. type: textblock
13505 #: ../src/guestfs-actions.pod:4111 ../fish/guestfish-actions.pod:2768
13506 msgid ""
13507 "This command opens a block device which has been encrypted according to the "
13508 "Linux Unified Key Setup (LUKS) standard."
13509 msgstr ""
13510
13511 #. type: textblock
13512 #: ../src/guestfs-actions.pod:4114 ../fish/guestfish-actions.pod:2771
13513 msgid "C<device> is the encrypted block device or partition."
13514 msgstr ""
13515
13516 #. type: textblock
13517 #: ../src/guestfs-actions.pod:4116 ../fish/guestfish-actions.pod:2773
13518 msgid ""
13519 "The caller must supply one of the keys associated with the LUKS block "
13520 "device, in the C<key> parameter."
13521 msgstr ""
13522
13523 #. type: textblock
13524 #: ../src/guestfs-actions.pod:4119 ../fish/guestfish-actions.pod:2776
13525 msgid ""
13526 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
13527 "writes to this block device are decrypted from and encrypted to the "
13528 "underlying C<device> respectively."
13529 msgstr ""
13530
13531 #. type: textblock
13532 #: ../src/guestfs-actions.pod:4123
13533 msgid ""
13534 "If this block device contains LVM volume groups, then calling "
13535 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
13536 "visible."
13537 msgstr ""
13538
13539 #. type: textblock
13540 #: ../src/guestfs-actions.pod:4127
13541 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
13542 msgstr ""
13543
13544 #. type: =head2
13545 #: ../src/guestfs-actions.pod:4138
13546 msgid "guestfs_luks_open_ro"
13547 msgstr "guestfs_luks_open_ro"
13548
13549 #. type: verbatim
13550 #: ../src/guestfs-actions.pod:4140
13551 #, no-wrap
13552 msgid ""
13553 " int\n"
13554 " guestfs_luks_open_ro (guestfs_h *g,\n"
13555 "                       const char *device,\n"
13556 "                       const char *key,\n"
13557 "                       const char *mapname);\n"
13558 "\n"
13559 msgstr ""
13560 " int\n"
13561 " guestfs_luks_open_ro (guestfs_h *g,\n"
13562 "                       const char *device,\n"
13563 "                       const char *key,\n"
13564 "                       const char *mapname);\n"
13565 "\n"
13566
13567 #. type: textblock
13568 #: ../src/guestfs-actions.pod:4146
13569 msgid ""
13570 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
13571 "created."
13572 msgstr ""
13573
13574 #. type: =head2
13575 #: ../src/guestfs-actions.pod:4157
13576 msgid "guestfs_lvcreate"
13577 msgstr "guestfs_lvcreate"
13578
13579 #. type: verbatim
13580 #: ../src/guestfs-actions.pod:4159
13581 #, no-wrap
13582 msgid ""
13583 " int\n"
13584 " guestfs_lvcreate (guestfs_h *g,\n"
13585 "                   const char *logvol,\n"
13586 "                   const char *volgroup,\n"
13587 "                   int mbytes);\n"
13588 "\n"
13589 msgstr ""
13590 " int\n"
13591 " guestfs_lvcreate (guestfs_h *g,\n"
13592 "                   const char *logvol,\n"
13593 "                   const char *volgroup,\n"
13594 "                   int mbytes);\n"
13595 "\n"
13596
13597 #. type: textblock
13598 #: ../src/guestfs-actions.pod:4165 ../fish/guestfish-actions.pod:2804
13599 msgid ""
13600 "This creates an LVM logical volume called C<logvol> on the volume group "
13601 "C<volgroup>, with C<size> megabytes."
13602 msgstr ""
13603
13604 #. type: =head2
13605 #: ../src/guestfs-actions.pod:4172
13606 msgid "guestfs_lvm_canonical_lv_name"
13607 msgstr "guestfs_lvm_canonical_lv_name"
13608
13609 #. type: verbatim
13610 #: ../src/guestfs-actions.pod:4174
13611 #, no-wrap
13612 msgid ""
13613 " char *\n"
13614 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
13615 "                                const char *lvname);\n"
13616 "\n"
13617 msgstr ""
13618 " char *\n"
13619 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
13620 "                                const char *lvname);\n"
13621 "\n"
13622
13623 #. type: textblock
13624 #: ../src/guestfs-actions.pod:4178 ../fish/guestfish-actions.pod:2811
13625 msgid ""
13626 "This converts alternative naming schemes for LVs that you might find to the "
13627 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
13628 "C</dev/VG/LV>."
13629 msgstr ""
13630
13631 #. type: textblock
13632 #: ../src/guestfs-actions.pod:4182 ../fish/guestfish-actions.pod:2815
13633 msgid ""
13634 "This command returns an error if the C<lvname> parameter does not refer to a"
13635 " logical volume."
13636 msgstr ""
13637
13638 #. type: textblock
13639 #: ../src/guestfs-actions.pod:4185
13640 msgid "See also C<guestfs_is_lv>."
13641 msgstr ""
13642
13643 #. type: textblock
13644 #: ../src/guestfs-actions.pod:4190
13645 msgid "(Added in 1.5.24)"
13646 msgstr "(Додано у 1.5.24)"
13647
13648 #. type: =head2
13649 #: ../src/guestfs-actions.pod:4192
13650 msgid "guestfs_lvm_clear_filter"
13651 msgstr "guestfs_lvm_clear_filter"
13652
13653 #. type: verbatim
13654 #: ../src/guestfs-actions.pod:4194
13655 #, no-wrap
13656 msgid ""
13657 " int\n"
13658 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
13659 "\n"
13660 msgstr ""
13661 " int\n"
13662 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
13663 "\n"
13664
13665 #. type: textblock
13666 #: ../src/guestfs-actions.pod:4197
13667 msgid ""
13668 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
13669 "see every block device."
13670 msgstr ""
13671
13672 #. type: textblock
13673 #: ../src/guestfs-actions.pod:4200 ../src/guestfs-actions.pod:4242
13674 #: ../fish/guestfish-actions.pod:2827 ../fish/guestfish-actions.pod:2858
13675 msgid ""
13676 "This command also clears the LVM cache and performs a volume group scan."
13677 msgstr ""
13678
13679 #. type: =head2
13680 #: ../src/guestfs-actions.pod:4207
13681 msgid "guestfs_lvm_remove_all"
13682 msgstr "guestfs_lvm_remove_all"
13683
13684 #. type: verbatim
13685 #: ../src/guestfs-actions.pod:4209
13686 #, no-wrap
13687 msgid ""
13688 " int\n"
13689 " guestfs_lvm_remove_all (guestfs_h *g);\n"
13690 "\n"
13691 msgstr ""
13692 " int\n"
13693 " guestfs_lvm_remove_all (guestfs_h *g);\n"
13694 "\n"
13695
13696 #. type: textblock
13697 #: ../src/guestfs-actions.pod:4212 ../fish/guestfish-actions.pod:2834
13698 msgid ""
13699 "This command removes all LVM logical volumes, volume groups and physical "
13700 "volumes."
13701 msgstr ""
13702
13703 #. type: =head2
13704 #: ../src/guestfs-actions.pod:4222
13705 msgid "guestfs_lvm_set_filter"
13706 msgstr "guestfs_lvm_set_filter"
13707
13708 #. type: verbatim
13709 #: ../src/guestfs-actions.pod:4224
13710 #, no-wrap
13711 msgid ""
13712 " int\n"
13713 " guestfs_lvm_set_filter (guestfs_h *g,\n"
13714 "                         char *const *devices);\n"
13715 "\n"
13716 msgstr ""
13717 " int\n"
13718 " guestfs_lvm_set_filter (guestfs_h *g,\n"
13719 "                         char *const *devices);\n"
13720 "\n"
13721
13722 #. type: textblock
13723 #: ../src/guestfs-actions.pod:4228 ../fish/guestfish-actions.pod:2844
13724 msgid ""
13725 "This sets the LVM device filter so that LVM will only be able to \"see\" the"
13726 " block devices in the list C<devices>, and will ignore all other attached "
13727 "block devices."
13728 msgstr ""
13729
13730 #. type: textblock
13731 #: ../src/guestfs-actions.pod:4232 ../fish/guestfish-actions.pod:2848
13732 msgid ""
13733 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
13734 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also"
13735 " there are two types of duplication possible: either cloned PVs/VGs which "
13736 "have identical UUIDs; or VGs that are not cloned but just happen to have the"
13737 " same name.  In normal operation you cannot create this situation, but you "
13738 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
13739 "inside the LVM metadata."
13740 msgstr ""
13741
13742 #. type: textblock
13743 #: ../src/guestfs-actions.pod:4245 ../fish/guestfish-actions.pod:2861
13744 msgid "You can filter whole block devices or individual partitions."
13745 msgstr ""
13746
13747 #. type: textblock
13748 #: ../src/guestfs-actions.pod:4247 ../fish/guestfish-actions.pod:2863
13749 msgid ""
13750 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
13751 "filesystem), even if you are not filtering out that VG."
13752 msgstr ""
13753
13754 #. type: =head2
13755 #: ../src/guestfs-actions.pod:4255
13756 msgid "guestfs_lvremove"
13757 msgstr "guestfs_lvremove"
13758
13759 #. type: verbatim
13760 #: ../src/guestfs-actions.pod:4257
13761 #, no-wrap
13762 msgid ""
13763 " int\n"
13764 " guestfs_lvremove (guestfs_h *g,\n"
13765 "                   const char *device);\n"
13766 "\n"
13767 msgstr ""
13768 " int\n"
13769 " guestfs_lvremove (guestfs_h *g,\n"
13770 "                   const char *device);\n"
13771 "\n"
13772
13773 #. type: textblock
13774 #: ../src/guestfs-actions.pod:4261 ../fish/guestfish-actions.pod:2871
13775 msgid ""
13776 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
13777 "LV, such as C</dev/VG/LV>."
13778 msgstr ""
13779
13780 #. type: textblock
13781 #: ../src/guestfs-actions.pod:4264 ../fish/guestfish-actions.pod:2874
13782 msgid ""
13783 "You can also remove all LVs in a volume group by specifying the VG name, "
13784 "C</dev/VG>."
13785 msgstr ""
13786
13787 #. type: textblock
13788 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:5666
13789 #: ../src/guestfs-actions.pod:7498
13790 msgid "(Added in 1.0.13)"
13791 msgstr "(Додано у 1.0.13)"
13792
13793 #. type: =head2
13794 #: ../src/guestfs-actions.pod:4271
13795 msgid "guestfs_lvrename"
13796 msgstr "guestfs_lvrename"
13797
13798 #. type: verbatim
13799 #: ../src/guestfs-actions.pod:4273
13800 #, no-wrap
13801 msgid ""
13802 " int\n"
13803 " guestfs_lvrename (guestfs_h *g,\n"
13804 "                   const char *logvol,\n"
13805 "                   const char *newlogvol);\n"
13806 "\n"
13807 msgstr ""
13808 " int\n"
13809 " guestfs_lvrename (guestfs_h *g,\n"
13810 "                   const char *logvol,\n"
13811 "                   const char *newlogvol);\n"
13812 "\n"
13813
13814 #. type: textblock
13815 #: ../src/guestfs-actions.pod:4278 ../fish/guestfish-actions.pod:2881
13816 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
13817 msgstr ""
13818
13819 #. type: textblock
13820 #: ../src/guestfs-actions.pod:4282 ../src/guestfs-actions.pod:7511
13821 msgid "(Added in 1.0.83)"
13822 msgstr "(Додано у 1.0.83)"
13823
13824 #. type: =head2
13825 #: ../src/guestfs-actions.pod:4284
13826 msgid "guestfs_lvresize"
13827 msgstr "guestfs_lvresize"
13828
13829 #. type: verbatim
13830 #: ../src/guestfs-actions.pod:4286
13831 #, no-wrap
13832 msgid ""
13833 " int\n"
13834 " guestfs_lvresize (guestfs_h *g,\n"
13835 "                   const char *device,\n"
13836 "                   int mbytes);\n"
13837 "\n"
13838 msgstr ""
13839 " int\n"
13840 " guestfs_lvresize (guestfs_h *g,\n"
13841 "                   const char *device,\n"
13842 "                   int mbytes);\n"
13843 "\n"
13844
13845 #. type: textblock
13846 #: ../src/guestfs-actions.pod:4291 ../fish/guestfish-actions.pod:2887
13847 msgid ""
13848 "This resizes (expands or shrinks) an existing LVM logical volume to "
13849 "C<mbytes>.  When reducing, data in the reduced part is lost."
13850 msgstr ""
13851
13852 #. type: =head2
13853 #: ../src/guestfs-actions.pod:4299
13854 msgid "guestfs_lvresize_free"
13855 msgstr "guestfs_lvresize_free"
13856
13857 #. type: verbatim
13858 #: ../src/guestfs-actions.pod:4301
13859 #, no-wrap
13860 msgid ""
13861 " int\n"
13862 " guestfs_lvresize_free (guestfs_h *g,\n"
13863 "                        const char *lv,\n"
13864 "                        int percent);\n"
13865 "\n"
13866 msgstr ""
13867 " int\n"
13868 " guestfs_lvresize_free (guestfs_h *g,\n"
13869 "                        const char *lv,\n"
13870 "                        int percent);\n"
13871 "\n"
13872
13873 #. type: textblock
13874 #: ../src/guestfs-actions.pod:4306 ../fish/guestfish-actions.pod:2895
13875 msgid ""
13876 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the"
13877 " remaining free space in the volume group.  Commonly you would call this "
13878 "with pc = 100 which expands the logical volume as much as possible, using "
13879 "all remaining free space in the volume group."
13880 msgstr ""
13881
13882 #. type: textblock
13883 #: ../src/guestfs-actions.pod:4314
13884 msgid "(Added in 1.3.3)"
13885 msgstr "(Додано у 1.3.3)"
13886
13887 #. type: =head2
13888 #: ../src/guestfs-actions.pod:4316
13889 msgid "guestfs_lvs"
13890 msgstr "guestfs_lvs"
13891
13892 #. type: verbatim
13893 #: ../src/guestfs-actions.pod:4318
13894 #, no-wrap
13895 msgid ""
13896 " char **\n"
13897 " guestfs_lvs (guestfs_h *g);\n"
13898 "\n"
13899 msgstr ""
13900 " char **\n"
13901 " guestfs_lvs (guestfs_h *g);\n"
13902 "\n"
13903
13904 #. type: textblock
13905 #: ../src/guestfs-actions.pod:4321 ../fish/guestfish-actions.pod:2905
13906 msgid ""
13907 "List all the logical volumes detected.  This is the equivalent of the "
13908 "L<lvs(8)> command."
13909 msgstr ""
13910
13911 #. type: textblock
13912 #: ../src/guestfs-actions.pod:4324 ../fish/guestfish-actions.pod:2908
13913 msgid ""
13914 "This returns a list of the logical volume device names (eg. "
13915 "C</dev/VolGroup00/LogVol00>)."
13916 msgstr ""
13917
13918 #. type: textblock
13919 #: ../src/guestfs-actions.pod:4327
13920 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
13921 msgstr ""
13922
13923 #. type: =head2
13924 #: ../src/guestfs-actions.pod:4335
13925 msgid "guestfs_lvs_full"
13926 msgstr "guestfs_lvs_full"
13927
13928 #. type: verbatim
13929 #: ../src/guestfs-actions.pod:4337
13930 #, no-wrap
13931 msgid ""
13932 " struct guestfs_lvm_lv_list *\n"
13933 " guestfs_lvs_full (guestfs_h *g);\n"
13934 "\n"
13935 msgstr ""
13936 " struct guestfs_lvm_lv_list *\n"
13937 " guestfs_lvs_full (guestfs_h *g);\n"
13938 "\n"
13939
13940 #. type: textblock
13941 #: ../src/guestfs-actions.pod:4340 ../fish/guestfish-actions.pod:2917
13942 msgid ""
13943 "List all the logical volumes detected.  This is the equivalent of the "
13944 "L<lvs(8)> command.  The \"full\" version includes all fields."
13945 msgstr ""
13946
13947 #. type: textblock
13948 #: ../src/guestfs-actions.pod:4343
13949 msgid ""
13950 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
13951 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
13952 "use>."
13953 msgstr ""
13954
13955 #. type: =head2
13956 #: ../src/guestfs-actions.pod:4349
13957 msgid "guestfs_lvuuid"
13958 msgstr "guestfs_lvuuid"
13959
13960 #. type: verbatim
13961 #: ../src/guestfs-actions.pod:4351
13962 #, no-wrap
13963 msgid ""
13964 " char *\n"
13965 " guestfs_lvuuid (guestfs_h *g,\n"
13966 "                 const char *device);\n"
13967 "\n"
13968 msgstr ""
13969 " char *\n"
13970 " guestfs_lvuuid (guestfs_h *g,\n"
13971 "                 const char *device);\n"
13972 "\n"
13973
13974 #. type: textblock
13975 #: ../src/guestfs-actions.pod:4355 ../fish/guestfish-actions.pod:2924
13976 msgid "This command returns the UUID of the LVM LV C<device>."
13977 msgstr ""
13978
13979 #. type: =head2
13980 #: ../src/guestfs-actions.pod:4362
13981 msgid "guestfs_lxattrlist"
13982 msgstr "guestfs_lxattrlist"
13983
13984 #. type: verbatim
13985 #: ../src/guestfs-actions.pod:4364
13986 #, no-wrap
13987 msgid ""
13988 " struct guestfs_xattr_list *\n"
13989 " guestfs_lxattrlist (guestfs_h *g,\n"
13990 "                     const char *path,\n"
13991 "                     char *const *names);\n"
13992 "\n"
13993 msgstr ""
13994 " struct guestfs_xattr_list *\n"
13995 " guestfs_lxattrlist (guestfs_h *g,\n"
13996 "                     const char *path,\n"
13997 "                     char *const *names);\n"
13998 "\n"
13999
14000 #. type: textblock
14001 #: ../src/guestfs-actions.pod:4369 ../fish/guestfish-actions.pod:2930
14002 msgid ""
14003 "This call allows you to get the extended attributes of multiple files, where"
14004 " all files are in the directory C<path>.  C<names> is the list of files from"
14005 " this directory."
14006 msgstr ""
14007
14008 #. type: textblock
14009 #: ../src/guestfs-actions.pod:4373 ../fish/guestfish-actions.pod:2934
14010 msgid ""
14011 "On return you get a flat list of xattr structs which must be interpreted "
14012 "sequentially.  The first xattr struct always has a zero-length C<attrname>."
14013 "  C<attrval> in this struct is zero-length to indicate there was an error "
14014 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
14015 "number (the number of following attributes for this file, which could be "
14016 "C<\"0\">).  Then after the first xattr struct are the zero or more "
14017 "attributes for the first named file.  This repeats for the second and "
14018 "subsequent files."
14019 msgstr ""
14020
14021 #. type: textblock
14022 #: ../src/guestfs-actions.pod:4383
14023 msgid ""
14024 "This call is intended for programs that want to efficiently list a directory"
14025 " contents without making many round-trips.  See also C<guestfs_lstatlist> "
14026 "for a similarly efficient call for getting standard stats.  Very long "
14027 "directory listings might cause the protocol message size to be exceeded, "
14028 "causing this call to fail.  The caller must split up such requests into "
14029 "smaller groups of names."
14030 msgstr ""
14031
14032 #. type: =head2
14033 #: ../src/guestfs-actions.pod:4397
14034 msgid "guestfs_mkdir"
14035 msgstr "guestfs_mkdir"
14036
14037 #. type: verbatim
14038 #: ../src/guestfs-actions.pod:4399
14039 #, no-wrap
14040 msgid ""
14041 " int\n"
14042 " guestfs_mkdir (guestfs_h *g,\n"
14043 "                const char *path);\n"
14044 "\n"
14045 msgstr ""
14046 " int\n"
14047 " guestfs_mkdir (guestfs_h *g,\n"
14048 "                const char *path);\n"
14049 "\n"
14050
14051 #. type: textblock
14052 #: ../src/guestfs-actions.pod:4403 ../fish/guestfish-actions.pod:2956
14053 msgid "Create a directory named C<path>."
14054 msgstr ""
14055
14056 #. type: =head2
14057 #: ../src/guestfs-actions.pod:4409
14058 msgid "guestfs_mkdir_mode"
14059 msgstr "guestfs_mkdir_mode"
14060
14061 #. type: verbatim
14062 #: ../src/guestfs-actions.pod:4411
14063 #, no-wrap
14064 msgid ""
14065 " int\n"
14066 " guestfs_mkdir_mode (guestfs_h *g,\n"
14067 "                     const char *path,\n"
14068 "                     int mode);\n"
14069 "\n"
14070 msgstr ""
14071 " int\n"
14072 " guestfs_mkdir_mode (guestfs_h *g,\n"
14073 "                     const char *path,\n"
14074 "                     int mode);\n"
14075 "\n"
14076
14077 #. type: textblock
14078 #: ../src/guestfs-actions.pod:4416 ../fish/guestfish-actions.pod:2962
14079 msgid ""
14080 "This command creates a directory, setting the initial permissions of the "
14081 "directory to C<mode>."
14082 msgstr ""
14083
14084 #. type: textblock
14085 #: ../src/guestfs-actions.pod:4419 ../fish/guestfish-actions.pod:2965
14086 msgid ""
14087 "For common Linux filesystems, the actual mode which is set will be C<mode & "
14088 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
14089 "other ways."
14090 msgstr ""
14091
14092 #. type: textblock
14093 #: ../src/guestfs-actions.pod:4423
14094 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
14095 msgstr ""
14096
14097 #. type: =head2
14098 #: ../src/guestfs-actions.pod:4429
14099 msgid "guestfs_mkdir_p"
14100 msgstr "guestfs_mkdir_p"
14101
14102 #. type: verbatim
14103 #: ../src/guestfs-actions.pod:4431
14104 #, no-wrap
14105 msgid ""
14106 " int\n"
14107 " guestfs_mkdir_p (guestfs_h *g,\n"
14108 "                  const char *path);\n"
14109 "\n"
14110 msgstr ""
14111 " int\n"
14112 " guestfs_mkdir_p (guestfs_h *g,\n"
14113 "                  const char *path);\n"
14114 "\n"
14115
14116 #. type: textblock
14117 #: ../src/guestfs-actions.pod:4435 ../fish/guestfish-actions.pod:2975
14118 msgid ""
14119 "Create a directory named C<path>, creating any parent directories as "
14120 "necessary.  This is like the C<mkdir -p> shell command."
14121 msgstr ""
14122
14123 #. type: =head2
14124 #: ../src/guestfs-actions.pod:4442
14125 msgid "guestfs_mkdtemp"
14126 msgstr "guestfs_mkdtemp"
14127
14128 #. type: verbatim
14129 #: ../src/guestfs-actions.pod:4444
14130 #, no-wrap
14131 msgid ""
14132 " char *\n"
14133 " guestfs_mkdtemp (guestfs_h *g,\n"
14134 "                  const char *template);\n"
14135 "\n"
14136 msgstr ""
14137 " char *\n"
14138 " guestfs_mkdtemp (guestfs_h *g,\n"
14139 "                  const char *template);\n"
14140 "\n"
14141
14142 #. type: textblock
14143 #: ../src/guestfs-actions.pod:4448 ../fish/guestfish-actions.pod:2982
14144 msgid ""
14145 "This command creates a temporary directory.  The C<template> parameter "
14146 "should be a full pathname for the temporary directory name with the final "
14147 "six characters being \"XXXXXX\"."
14148 msgstr ""
14149
14150 #. type: textblock
14151 #: ../src/guestfs-actions.pod:4453 ../fish/guestfish-actions.pod:2987
14152 msgid ""
14153 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one"
14154 " being suitable for Windows filesystems."
14155 msgstr ""
14156
14157 #. type: textblock
14158 #: ../src/guestfs-actions.pod:4456 ../fish/guestfish-actions.pod:2990
14159 msgid "The name of the temporary directory that was created is returned."
14160 msgstr ""
14161
14162 #. type: textblock
14163 #: ../src/guestfs-actions.pod:4459 ../fish/guestfish-actions.pod:2993
14164 msgid ""
14165 "The temporary directory is created with mode 0700 and is owned by root."
14166 msgstr ""
14167
14168 #. type: textblock
14169 #: ../src/guestfs-actions.pod:4462 ../fish/guestfish-actions.pod:2996
14170 msgid ""
14171 "The caller is responsible for deleting the temporary directory and its "
14172 "contents after use."
14173 msgstr ""
14174
14175 #. type: textblock
14176 #: ../src/guestfs-actions.pod:4465 ../fish/guestfish-actions.pod:2999
14177 msgid "See also: L<mkdtemp(3)>"
14178 msgstr ""
14179
14180 #. type: =head2
14181 #: ../src/guestfs-actions.pod:4472
14182 msgid "guestfs_mke2fs_J"
14183 msgstr "guestfs_mke2fs_J"
14184
14185 #. type: verbatim
14186 #: ../src/guestfs-actions.pod:4474
14187 #, no-wrap
14188 msgid ""
14189 " int\n"
14190 " guestfs_mke2fs_J (guestfs_h *g,\n"
14191 "                   const char *fstype,\n"
14192 "                   int blocksize,\n"
14193 "                   const char *device,\n"
14194 "                   const char *journal);\n"
14195 "\n"
14196 msgstr ""
14197 " int\n"
14198 " guestfs_mke2fs_J (guestfs_h *g,\n"
14199 "                   const char *fstype,\n"
14200 "                   int blocksize,\n"
14201 "                   const char *device,\n"
14202 "                   const char *journal);\n"
14203 "\n"
14204
14205 #. type: textblock
14206 #: ../src/guestfs-actions.pod:4481 ../fish/guestfish-actions.pod:3005
14207 msgid ""
14208 "This creates an ext2/3/4 filesystem on C<device> with an external journal on"
14209 " C<journal>.  It is equivalent to the command:"
14210 msgstr ""
14211
14212 #. type: verbatim
14213 #: ../src/guestfs-actions.pod:4485 ../fish/guestfish-actions.pod:3009
14214 #, no-wrap
14215 msgid ""
14216 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
14217 "\n"
14218 msgstr ""
14219 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
14220 "\n"
14221
14222 #. type: textblock
14223 #: ../src/guestfs-actions.pod:4487
14224 msgid "See also C<guestfs_mke2journal>."
14225 msgstr ""
14226
14227 #. type: textblock
14228 #: ../src/guestfs-actions.pod:4491 ../src/guestfs-actions.pod:4509
14229 #: ../src/guestfs-actions.pod:4527 ../src/guestfs-actions.pod:4543
14230 #: ../src/guestfs-actions.pod:4557 ../src/guestfs-actions.pod:4571
14231 #: ../src/guestfs-actions.pod:4630 ../src/guestfs-actions.pod:4907
14232 msgid "(Added in 1.0.68)"
14233 msgstr "(Додано у 1.0.68)"
14234
14235 #. type: =head2
14236 #: ../src/guestfs-actions.pod:4493
14237 msgid "guestfs_mke2fs_JL"
14238 msgstr "guestfs_mke2fs_JL"
14239
14240 #. type: verbatim
14241 #: ../src/guestfs-actions.pod:4495
14242 #, no-wrap
14243 msgid ""
14244 " int\n"
14245 " guestfs_mke2fs_JL (guestfs_h *g,\n"
14246 "                    const char *fstype,\n"
14247 "                    int blocksize,\n"
14248 "                    const char *device,\n"
14249 "                    const char *label);\n"
14250 "\n"
14251 msgstr ""
14252 " int\n"
14253 " guestfs_mke2fs_JL (guestfs_h *g,\n"
14254 "                    const char *fstype,\n"
14255 "                    int blocksize,\n"
14256 "                    const char *device,\n"
14257 "                    const char *label);\n"
14258 "\n"
14259
14260 #. type: textblock
14261 #: ../src/guestfs-actions.pod:4502 ../fish/guestfish-actions.pod:3017
14262 msgid ""
14263 "This creates an ext2/3/4 filesystem on C<device> with an external journal on"
14264 " the journal labeled C<label>."
14265 msgstr ""
14266
14267 #. type: textblock
14268 #: ../src/guestfs-actions.pod:4505
14269 msgid "See also C<guestfs_mke2journal_L>."
14270 msgstr ""
14271
14272 #. type: =head2
14273 #: ../src/guestfs-actions.pod:4511
14274 msgid "guestfs_mke2fs_JU"
14275 msgstr "guestfs_mke2fs_JU"
14276
14277 #. type: verbatim
14278 #: ../src/guestfs-actions.pod:4513
14279 #, no-wrap
14280 msgid ""
14281 " int\n"
14282 " guestfs_mke2fs_JU (guestfs_h *g,\n"
14283 "                    const char *fstype,\n"
14284 "                    int blocksize,\n"
14285 "                    const char *device,\n"
14286 "                    const char *uuid);\n"
14287 "\n"
14288 msgstr ""
14289 " int\n"
14290 " guestfs_mke2fs_JU (guestfs_h *g,\n"
14291 "                    const char *fstype,\n"
14292 "                    int blocksize,\n"
14293 "                    const char *device,\n"
14294 "                    const char *uuid);\n"
14295 "\n"
14296
14297 #. type: textblock
14298 #: ../src/guestfs-actions.pod:4520 ../fish/guestfish-actions.pod:3026
14299 msgid ""
14300 "This creates an ext2/3/4 filesystem on C<device> with an external journal on"
14301 " the journal with UUID C<uuid>."
14302 msgstr ""
14303
14304 #. type: textblock
14305 #: ../src/guestfs-actions.pod:4523
14306 msgid "See also C<guestfs_mke2journal_U>."
14307 msgstr ""
14308
14309 #. type: =head2
14310 #: ../src/guestfs-actions.pod:4529
14311 msgid "guestfs_mke2journal"
14312 msgstr "guestfs_mke2journal"
14313
14314 #. type: verbatim
14315 #: ../src/guestfs-actions.pod:4531
14316 #, no-wrap
14317 msgid ""
14318 " int\n"
14319 " guestfs_mke2journal (guestfs_h *g,\n"
14320 "                      int blocksize,\n"
14321 "                      const char *device);\n"
14322 "\n"
14323 msgstr ""
14324 " int\n"
14325 " guestfs_mke2journal (guestfs_h *g,\n"
14326 "                      int blocksize,\n"
14327 "                      const char *device);\n"
14328 "\n"
14329
14330 #. type: textblock
14331 #: ../src/guestfs-actions.pod:4536 ../fish/guestfish-actions.pod:3035
14332 msgid ""
14333 "This creates an ext2 external journal on C<device>.  It is equivalent to the"
14334 " command:"
14335 msgstr ""
14336
14337 #. type: verbatim
14338 #: ../src/guestfs-actions.pod:4539 ../fish/guestfish-actions.pod:3038
14339 #, no-wrap
14340 msgid ""
14341 " mke2fs -O journal_dev -b blocksize device\n"
14342 "\n"
14343 msgstr ""
14344
14345 #. type: =head2
14346 #: ../src/guestfs-actions.pod:4545
14347 msgid "guestfs_mke2journal_L"
14348 msgstr "guestfs_mke2journal_L"
14349
14350 #. type: verbatim
14351 #: ../src/guestfs-actions.pod:4547
14352 #, no-wrap
14353 msgid ""
14354 " int\n"
14355 " guestfs_mke2journal_L (guestfs_h *g,\n"
14356 "                        int blocksize,\n"
14357 "                        const char *label,\n"
14358 "                        const char *device);\n"
14359 "\n"
14360 msgstr ""
14361 " int\n"
14362 " guestfs_mke2journal_L (guestfs_h *g,\n"
14363 "                        int blocksize,\n"
14364 "                        const char *label,\n"
14365 "                        const char *device);\n"
14366 "\n"
14367
14368 #. type: textblock
14369 #: ../src/guestfs-actions.pod:4553 ../fish/guestfish-actions.pod:3044
14370 msgid ""
14371 "This creates an ext2 external journal on C<device> with label C<label>."
14372 msgstr ""
14373
14374 #. type: =head2
14375 #: ../src/guestfs-actions.pod:4559
14376 msgid "guestfs_mke2journal_U"
14377 msgstr "guestfs_mke2journal_U"
14378
14379 #. type: verbatim
14380 #: ../src/guestfs-actions.pod:4561
14381 #, no-wrap
14382 msgid ""
14383 " int\n"
14384 " guestfs_mke2journal_U (guestfs_h *g,\n"
14385 "                        int blocksize,\n"
14386 "                        const char *uuid,\n"
14387 "                        const char *device);\n"
14388 "\n"
14389 msgstr ""
14390 " int\n"
14391 " guestfs_mke2journal_U (guestfs_h *g,\n"
14392 "                        int blocksize,\n"
14393 "                        const char *uuid,\n"
14394 "                        const char *device);\n"
14395 "\n"
14396
14397 #. type: textblock
14398 #: ../src/guestfs-actions.pod:4567 ../fish/guestfish-actions.pod:3050
14399 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
14400 msgstr ""
14401
14402 #. type: =head2
14403 #: ../src/guestfs-actions.pod:4573
14404 msgid "guestfs_mkfifo"
14405 msgstr "guestfs_mkfifo"
14406
14407 #. type: verbatim
14408 #: ../src/guestfs-actions.pod:4575
14409 #, no-wrap
14410 msgid ""
14411 " int\n"
14412 " guestfs_mkfifo (guestfs_h *g,\n"
14413 "                 int mode,\n"
14414 "                 const char *path);\n"
14415 "\n"
14416 msgstr ""
14417 " int\n"
14418 " guestfs_mkfifo (guestfs_h *g,\n"
14419 "                 int mode,\n"
14420 "                 const char *path);\n"
14421 "\n"
14422
14423 #. type: textblock
14424 #: ../src/guestfs-actions.pod:4580
14425 msgid ""
14426 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
14427 "is just a convenient wrapper around C<guestfs_mknod>."
14428 msgstr ""
14429
14430 #. type: =head2
14431 #: ../src/guestfs-actions.pod:4590
14432 msgid "guestfs_mkfs"
14433 msgstr "guestfs_mkfs"
14434
14435 #. type: verbatim
14436 #: ../src/guestfs-actions.pod:4592
14437 #, no-wrap
14438 msgid ""
14439 " int\n"
14440 " guestfs_mkfs (guestfs_h *g,\n"
14441 "               const char *fstype,\n"
14442 "               const char *device);\n"
14443 "\n"
14444 msgstr ""
14445 " int\n"
14446 " guestfs_mkfs (guestfs_h *g,\n"
14447 "               const char *fstype,\n"
14448 "               const char *device);\n"
14449 "\n"
14450
14451 #. type: textblock
14452 #: ../src/guestfs-actions.pod:4597 ../fish/guestfish-actions.pod:3066
14453 msgid ""
14454 "This creates a filesystem on C<device> (usually a partition or LVM logical "
14455 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
14456 msgstr ""
14457
14458 #. type: =head2
14459 #: ../src/guestfs-actions.pod:4605
14460 msgid "guestfs_mkfs_b"
14461 msgstr "guestfs_mkfs_b"
14462
14463 #. type: verbatim
14464 #: ../src/guestfs-actions.pod:4607
14465 #, no-wrap
14466 msgid ""
14467 " int\n"
14468 " guestfs_mkfs_b (guestfs_h *g,\n"
14469 "                 const char *fstype,\n"
14470 "                 int blocksize,\n"
14471 "                 const char *device);\n"
14472 "\n"
14473 msgstr ""
14474 " int\n"
14475 " guestfs_mkfs_b (guestfs_h *g,\n"
14476 "                 const char *fstype,\n"
14477 "                 int blocksize,\n"
14478 "                 const char *device);\n"
14479 "\n"
14480
14481 #. type: textblock
14482 #: ../src/guestfs-actions.pod:4613
14483 msgid ""
14484 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
14485 "block size of the resulting filesystem.  Supported block sizes depend on the"
14486 " filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
14487 msgstr ""
14488
14489 #. type: textblock
14490 #: ../src/guestfs-actions.pod:4618 ../src/guestfs-actions.pod:4663
14491 #: ../fish/guestfish-actions.pod:3079 ../fish/guestfish-actions.pod:3106
14492 msgid ""
14493 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
14494 "cluster size."
14495 msgstr ""
14496
14497 #. type: textblock
14498 #: ../src/guestfs-actions.pod:4623 ../fish/guestfish-actions.pod:3082
14499 msgid ""
14500 "This function is deprecated.  In new code, use the C<mkfs_opts> call "
14501 "instead."
14502 msgstr ""
14503
14504 #. type: =head2
14505 #: ../src/guestfs-actions.pod:4632
14506 msgid "guestfs_mkfs_opts"
14507 msgstr "guestfs_mkfs_opts"
14508
14509 #. type: verbatim
14510 #: ../src/guestfs-actions.pod:4634
14511 #, no-wrap
14512 msgid ""
14513 " int\n"
14514 " guestfs_mkfs_opts (guestfs_h *g,\n"
14515 "                    const char *fstype,\n"
14516 "                    const char *device,\n"
14517 "                    ...);\n"
14518 "\n"
14519 msgstr ""
14520 " int\n"
14521 " guestfs_mkfs_opts (guestfs_h *g,\n"
14522 "                    const char *fstype,\n"
14523 "                    const char *device,\n"
14524 "                    ...);\n"
14525 "\n"
14526
14527 #. type: verbatim
14528 #: ../src/guestfs-actions.pod:4645
14529 #, no-wrap
14530 msgid ""
14531 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
14532 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
14533 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
14534 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
14535 "\n"
14536 msgstr ""
14537
14538 #. type: textblock
14539 #: ../src/guestfs-actions.pod:4650 ../fish/guestfish-actions.pod:3093
14540 msgid ""
14541 "This function creates a filesystem on C<device>.  The filesystem type is "
14542 "C<fstype>, for example C<ext3>."
14543 msgstr ""
14544
14545 #. type: =item
14546 #: ../src/guestfs-actions.pod:4657 ../fish/guestfish-actions.pod:3100
14547 msgid "C<blocksize>"
14548 msgstr "C<blocksize>"
14549
14550 #. type: textblock
14551 #: ../src/guestfs-actions.pod:4659 ../fish/guestfish-actions.pod:3102
14552 msgid ""
14553 "The filesystem block size.  Supported block sizes depend on the filesystem "
14554 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
14555 "filesystems."
14556 msgstr ""
14557
14558 #. type: textblock
14559 #: ../src/guestfs-actions.pod:4666 ../fish/guestfish-actions.pod:3109
14560 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
14561 msgstr ""
14562
14563 #. type: =item
14564 #: ../src/guestfs-actions.pod:4668 ../fish/guestfish-actions.pod:3111
14565 msgid "C<features>"
14566 msgstr "C<features>"
14567
14568 #. type: textblock
14569 #: ../src/guestfs-actions.pod:4670 ../fish/guestfish-actions.pod:3113
14570 msgid "This passes the I<-O> parameter to the external mkfs program."
14571 msgstr ""
14572
14573 #. type: textblock
14574 #: ../src/guestfs-actions.pod:4672 ../fish/guestfish-actions.pod:3115
14575 msgid ""
14576 "For certain filesystem types, this allows extra filesystem features to be "
14577 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
14578 msgstr ""
14579
14580 #. type: textblock
14581 #: ../src/guestfs-actions.pod:4676 ../fish/guestfish-actions.pod:3119
14582 msgid ""
14583 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem"
14584 " type."
14585 msgstr ""
14586
14587 #. type: =item
14588 #: ../src/guestfs-actions.pod:4679 ../fish/guestfish-actions.pod:3122
14589 msgid "C<inode>"
14590 msgstr ""
14591
14592 #. type: textblock
14593 #: ../src/guestfs-actions.pod:4681 ../fish/guestfish-actions.pod:3124
14594 msgid ""
14595 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
14596 "sets the inode size (only for ext2/3/4 filesystems at present)."
14597 msgstr ""
14598
14599 #. type: =item
14600 #: ../src/guestfs-actions.pod:4684 ../fish/guestfish-actions.pod:3127
14601 msgid "C<sectorsize>"
14602 msgstr ""
14603
14604 #. type: textblock
14605 #: ../src/guestfs-actions.pod:4686 ../fish/guestfish-actions.pod:3129
14606 msgid ""
14607 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
14608 "sets sector size for ufs filesystem."
14609 msgstr ""
14610
14611 #. type: textblock
14612 #: ../src/guestfs-actions.pod:4693
14613 msgid "(Added in 1.7.19)"
14614 msgstr "(Додано у 1.7.19)"
14615
14616 #. type: =head2
14617 #: ../src/guestfs-actions.pod:4695
14618 msgid "guestfs_mkfs_opts_va"
14619 msgstr "guestfs_mkfs_opts_va"
14620
14621 #. type: verbatim
14622 #: ../src/guestfs-actions.pod:4697
14623 #, no-wrap
14624 msgid ""
14625 " int\n"
14626 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
14627 "                       const char *fstype,\n"
14628 "                       const char *device,\n"
14629 "                       va_list args);\n"
14630 "\n"
14631 msgstr ""
14632 " int\n"
14633 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
14634 "                       const char *fstype,\n"
14635 "                       const char *device,\n"
14636 "                       va_list args);\n"
14637 "\n"
14638
14639 #. type: textblock
14640 #: ../src/guestfs-actions.pod:4703
14641 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
14642 msgstr ""
14643
14644 #. type: =head2
14645 #: ../src/guestfs-actions.pod:4707
14646 msgid "guestfs_mkfs_opts_argv"
14647 msgstr "guestfs_mkfs_opts_argv"
14648
14649 #. type: verbatim
14650 #: ../src/guestfs-actions.pod:4709
14651 #, no-wrap
14652 msgid ""
14653 " int\n"
14654 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
14655 "                         const char *fstype,\n"
14656 "                         const char *device,\n"
14657 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
14658 "\n"
14659 msgstr ""
14660 " int\n"
14661 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
14662 "                         const char *fstype,\n"
14663 "                         const char *device,\n"
14664 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
14665 "\n"
14666
14667 #. type: textblock
14668 #: ../src/guestfs-actions.pod:4715
14669 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
14670 msgstr ""
14671
14672 #. type: =head2
14673 #: ../src/guestfs-actions.pod:4719
14674 msgid "guestfs_mkmountpoint"
14675 msgstr "guestfs_mkmountpoint"
14676
14677 #. type: verbatim
14678 #: ../src/guestfs-actions.pod:4721
14679 #, no-wrap
14680 msgid ""
14681 " int\n"
14682 " guestfs_mkmountpoint (guestfs_h *g,\n"
14683 "                       const char *exemptpath);\n"
14684 "\n"
14685 msgstr ""
14686 " int\n"
14687 " guestfs_mkmountpoint (guestfs_h *g,\n"
14688 "                       const char *exemptpath);\n"
14689 "\n"
14690
14691 #. type: textblock
14692 #: ../src/guestfs-actions.pod:4725
14693 msgid ""
14694 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
14695 "that can be used to create extra mountpoints before mounting the first "
14696 "filesystem."
14697 msgstr ""
14698
14699 #. type: textblock
14700 #: ../src/guestfs-actions.pod:4729 ../fish/guestfish-actions.pod:3144
14701 msgid ""
14702 "These calls are I<only> necessary in some very limited circumstances, mainly"
14703 " the case where you want to mount a mix of unrelated and/or read-only "
14704 "filesystems together."
14705 msgstr ""
14706
14707 #. type: textblock
14708 #: ../src/guestfs-actions.pod:4733 ../fish/guestfish-actions.pod:3148
14709 msgid ""
14710 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
14711 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
14712 "inside that.  You can unpack this as follows in guestfish:"
14713 msgstr ""
14714
14715 #. type: verbatim
14716 #: ../src/guestfs-actions.pod:4738 ../fish/guestfish-actions.pod:3153
14717 #, no-wrap
14718 msgid ""
14719 " add-ro Fedora-11-i686-Live.iso\n"
14720 " run\n"
14721 " mkmountpoint /cd\n"
14722 " mkmountpoint /sqsh\n"
14723 " mkmountpoint /ext3fs\n"
14724 " mount /dev/sda /cd\n"
14725 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
14726 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
14727 "\n"
14728 msgstr ""
14729 " add-ro Fedora-11-i686-Live.iso\n"
14730 " run\n"
14731 " mkmountpoint /cd\n"
14732 " mkmountpoint /sqsh\n"
14733 " mkmountpoint /ext3fs\n"
14734 " mount /dev/sda /cd\n"
14735 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
14736 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
14737 "\n"
14738
14739 #. type: textblock
14740 #: ../src/guestfs-actions.pod:4747 ../fish/guestfish-actions.pod:3162
14741 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
14742 msgstr ""
14743
14744 #. type: textblock
14745 #: ../src/guestfs-actions.pod:4749
14746 msgid ""
14747 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
14748 "may get unexpected errors if you try to mix these calls.  It is safest to "
14749 "manually unmount filesystems and remove mountpoints after use."
14750 msgstr ""
14751
14752 #. type: textblock
14753 #: ../src/guestfs-actions.pod:4753
14754 msgid ""
14755 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
14756 "first, so for this to work for manual mountpoints, you must ensure that the "
14757 "innermost mountpoints have the longest pathnames, as in the example code "
14758 "above."
14759 msgstr ""
14760
14761 #. type: textblock
14762 #: ../src/guestfs-actions.pod:4758 ../fish/guestfish-actions.pod:3173
14763 msgid ""
14764 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
14765 msgstr ""
14766
14767 #. type: textblock
14768 #: ../src/guestfs-actions.pod:4760
14769 msgid ""
14770 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
14771 "can cause C<guestfs_umount_all> to be called when the handle is closed which"
14772 " can also trigger these issues."
14773 msgstr ""
14774
14775 #. type: textblock
14776 #: ../src/guestfs-actions.pod:4766 ../src/guestfs-actions.pod:5082
14777 #: ../src/guestfs-actions.pod:6086
14778 msgid "(Added in 1.0.62)"
14779 msgstr "(Додано у 1.0.62)"
14780
14781 #. type: =head2
14782 #: ../src/guestfs-actions.pod:4768
14783 msgid "guestfs_mknod"
14784 msgstr ""
14785
14786 #. type: verbatim
14787 #: ../src/guestfs-actions.pod:4770
14788 #, no-wrap
14789 msgid ""
14790 " int\n"
14791 " guestfs_mknod (guestfs_h *g,\n"
14792 "                int mode,\n"
14793 "                int devmajor,\n"
14794 "                int devminor,\n"
14795 "                const char *path);\n"
14796 "\n"
14797 msgstr ""
14798
14799 #. type: textblock
14800 #: ../src/guestfs-actions.pod:4777 ../fish/guestfish-actions.pod:3183
14801 msgid ""
14802 "This call creates block or character special devices, or named pipes "
14803 "(FIFOs)."
14804 msgstr ""
14805
14806 #. type: textblock
14807 #: ../src/guestfs-actions.pod:4780 ../fish/guestfish-actions.pod:3186
14808 msgid ""
14809 "The C<mode> parameter should be the mode, using the standard constants.  "
14810 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
14811 "used when creating block and character special devices."
14812 msgstr ""
14813
14814 #. type: textblock
14815 #: ../src/guestfs-actions.pod:4785
14816 msgid ""
14817 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
14818 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
14819 "regular file).  These constants are available in the standard Linux header "
14820 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
14821 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in"
14822 " the appropriate constant for you."
14823 msgstr ""
14824
14825 #. type: =head2
14826 #: ../src/guestfs-actions.pod:4799
14827 msgid "guestfs_mknod_b"
14828 msgstr ""
14829
14830 #. type: verbatim
14831 #: ../src/guestfs-actions.pod:4801
14832 #, no-wrap
14833 msgid ""
14834 " int\n"
14835 " guestfs_mknod_b (guestfs_h *g,\n"
14836 "                  int mode,\n"
14837 "                  int devmajor,\n"
14838 "                  int devminor,\n"
14839 "                  const char *path);\n"
14840 "\n"
14841 msgstr ""
14842
14843 #. type: textblock
14844 #: ../src/guestfs-actions.pod:4808
14845 msgid ""
14846 "This call creates a block device node called C<path> with mode C<mode> and "
14847 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14848 "wrapper around C<guestfs_mknod>."
14849 msgstr ""
14850
14851 #. type: =head2
14852 #: ../src/guestfs-actions.pod:4818
14853 msgid "guestfs_mknod_c"
14854 msgstr ""
14855
14856 #. type: verbatim
14857 #: ../src/guestfs-actions.pod:4820
14858 #, no-wrap
14859 msgid ""
14860 " int\n"
14861 " guestfs_mknod_c (guestfs_h *g,\n"
14862 "                  int mode,\n"
14863 "                  int devmajor,\n"
14864 "                  int devminor,\n"
14865 "                  const char *path);\n"
14866 "\n"
14867 msgstr ""
14868
14869 #. type: textblock
14870 #: ../src/guestfs-actions.pod:4827
14871 msgid ""
14872 "This call creates a char device node called C<path> with mode C<mode> and "
14873 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14874 "wrapper around C<guestfs_mknod>."
14875 msgstr ""
14876
14877 #. type: =head2
14878 #: ../src/guestfs-actions.pod:4837
14879 msgid "guestfs_mkswap"
14880 msgstr ""
14881
14882 #. type: verbatim
14883 #: ../src/guestfs-actions.pod:4839
14884 #, no-wrap
14885 msgid ""
14886 " int\n"
14887 " guestfs_mkswap (guestfs_h *g,\n"
14888 "                 const char *device);\n"
14889 "\n"
14890 msgstr ""
14891
14892 #. type: textblock
14893 #: ../src/guestfs-actions.pod:4843 ../fish/guestfish-actions.pod:3225
14894 msgid "Create a swap partition on C<device>."
14895 msgstr ""
14896
14897 #. type: =head2
14898 #: ../src/guestfs-actions.pod:4849
14899 msgid "guestfs_mkswap_L"
14900 msgstr ""
14901
14902 #. type: verbatim
14903 #: ../src/guestfs-actions.pod:4851
14904 #, no-wrap
14905 msgid ""
14906 " int\n"
14907 " guestfs_mkswap_L (guestfs_h *g,\n"
14908 "                   const char *label,\n"
14909 "                   const char *device);\n"
14910 "\n"
14911 msgstr ""
14912
14913 #. type: textblock
14914 #: ../src/guestfs-actions.pod:4856 ../fish/guestfish-actions.pod:3231
14915 msgid "Create a swap partition on C<device> with label C<label>."
14916 msgstr ""
14917
14918 #. type: textblock
14919 #: ../src/guestfs-actions.pod:4858 ../fish/guestfish-actions.pod:3233
14920 msgid ""
14921 "Note that you cannot attach a swap label to a block device (eg. "
14922 "C</dev/sda>), just to a partition.  This appears to be a limitation of the "
14923 "kernel or swap tools."
14924 msgstr ""
14925
14926 #. type: =head2
14927 #: ../src/guestfs-actions.pod:4866
14928 msgid "guestfs_mkswap_U"
14929 msgstr ""
14930
14931 #. type: verbatim
14932 #: ../src/guestfs-actions.pod:4868
14933 #, no-wrap
14934 msgid ""
14935 " int\n"
14936 " guestfs_mkswap_U (guestfs_h *g,\n"
14937 "                   const char *uuid,\n"
14938 "                   const char *device);\n"
14939 "\n"
14940 msgstr ""
14941
14942 #. type: textblock
14943 #: ../src/guestfs-actions.pod:4873 ../fish/guestfish-actions.pod:3241
14944 msgid "Create a swap partition on C<device> with UUID C<uuid>."
14945 msgstr ""
14946
14947 #. type: =head2
14948 #: ../src/guestfs-actions.pod:4879
14949 msgid "guestfs_mkswap_file"
14950 msgstr ""
14951
14952 #. type: verbatim
14953 #: ../src/guestfs-actions.pod:4881
14954 #, no-wrap
14955 msgid ""
14956 " int\n"
14957 " guestfs_mkswap_file (guestfs_h *g,\n"
14958 "                      const char *path);\n"
14959 "\n"
14960 msgstr ""
14961
14962 #. type: textblock
14963 #: ../src/guestfs-actions.pod:4885 ../fish/guestfish-actions.pod:3247
14964 msgid "Create a swap file."
14965 msgstr "Створити файл резервної пам’яті."
14966
14967 #. type: textblock
14968 #: ../src/guestfs-actions.pod:4887
14969 msgid ""
14970 "This command just writes a swap file signature to an existing file.  To "
14971 "create the file itself, use something like C<guestfs_fallocate>."
14972 msgstr ""
14973
14974 #. type: =head2
14975 #: ../src/guestfs-actions.pod:4894
14976 msgid "guestfs_modprobe"
14977 msgstr ""
14978
14979 #. type: verbatim
14980 #: ../src/guestfs-actions.pod:4896
14981 #, no-wrap
14982 msgid ""
14983 " int\n"
14984 " guestfs_modprobe (guestfs_h *g,\n"
14985 "                   const char *modulename);\n"
14986 "\n"
14987 msgstr ""
14988
14989 #. type: textblock
14990 #: ../src/guestfs-actions.pod:4900 ../fish/guestfish-actions.pod:3256
14991 msgid "This loads a kernel module in the appliance."
14992 msgstr ""
14993
14994 #. type: textblock
14995 #: ../src/guestfs-actions.pod:4902 ../fish/guestfish-actions.pod:3258
14996 msgid ""
14997 "The kernel module must have been whitelisted when libguestfs was built (see "
14998 "C<appliance/kmod.whitelist.in> in the source)."
14999 msgstr ""
15000
15001 #. type: =head2
15002 #: ../src/guestfs-actions.pod:4909
15003 msgid "guestfs_mount"
15004 msgstr ""
15005
15006 #. type: verbatim
15007 #: ../src/guestfs-actions.pod:4911
15008 #, no-wrap
15009 msgid ""
15010 " int\n"
15011 " guestfs_mount (guestfs_h *g,\n"
15012 "                const char *device,\n"
15013 "                const char *mountpoint);\n"
15014 "\n"
15015 msgstr ""
15016
15017 #. type: textblock
15018 #: ../src/guestfs-actions.pod:4916 ../fish/guestfish-actions.pod:3265
15019 msgid ""
15020 "Mount a guest disk at a position in the filesystem.  Block devices are named"
15021 " C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
15022 "those block devices contain partitions, they will have the usual names (eg. "
15023 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
15024 msgstr ""
15025
15026 #. type: textblock
15027 #: ../src/guestfs-actions.pod:4922 ../fish/guestfish-actions.pod:3271
15028 msgid ""
15029 "The rules are the same as for L<mount(2)>: A filesystem must first be "
15030 "mounted on C</> before others can be mounted.  Other filesystems can only be"
15031 " mounted on directories which already exist."
15032 msgstr ""
15033
15034 #. type: textblock
15035 #: ../src/guestfs-actions.pod:4927 ../fish/guestfish-actions.pod:3276
15036 msgid ""
15037 "The mounted filesystem is writable, if we have sufficient permissions on the"
15038 " underlying device."
15039 msgstr ""
15040
15041 #. type: textblock
15042 #: ../src/guestfs-actions.pod:4930
15043 msgid ""
15044 "B<Important note:> When you use this call, the filesystem options C<sync> "
15045 "and C<noatime> are set implicitly.  This was originally done because we "
15046 "thought it would improve reliability, but it turns out that I<-o sync> has a"
15047 " very large negative performance impact and negligible effect on "
15048 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
15049 "in any code that needs performance, and instead use C<guestfs_mount_options>"
15050 " (use an empty string for the first parameter if you don't want any "
15051 "options)."
15052 msgstr ""
15053
15054 #. type: textblock
15055 #: ../src/guestfs-actions.pod:4942 ../fish/guestfish-actions.pod:3289
15056 msgid ""
15057 "This function is deprecated.  In new code, use the C<mount_options> call "
15058 "instead."
15059 msgstr ""
15060
15061 #. type: =head2
15062 #: ../src/guestfs-actions.pod:4951
15063 msgid "guestfs_mount_9p"
15064 msgstr ""
15065
15066 #. type: verbatim
15067 #: ../src/guestfs-actions.pod:4953
15068 #, no-wrap
15069 msgid ""
15070 " int\n"
15071 " guestfs_mount_9p (guestfs_h *g,\n"
15072 "                   const char *mounttag,\n"
15073 "                   const char *mountpoint,\n"
15074 "                   ...);\n"
15075 "\n"
15076 msgstr ""
15077
15078 #. type: verbatim
15079 #: ../src/guestfs-actions.pod:4964
15080 #, no-wrap
15081 msgid ""
15082 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
15083 "\n"
15084 msgstr ""
15085
15086 #. type: textblock
15087 #: ../src/guestfs-actions.pod:4966 ../fish/guestfish-actions.pod:3300
15088 msgid ""
15089 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
15090 "C<mountpoint>."
15091 msgstr ""
15092
15093 #. type: textblock
15094 #: ../src/guestfs-actions.pod:4969 ../fish/guestfish-actions.pod:3303
15095 msgid ""
15096 "If required, C<trans=virtio> will be automatically added to the options.  "
15097 "Any other options required can be passed in the optional C<options> "
15098 "parameter."
15099 msgstr ""
15100
15101 #. type: =head2
15102 #: ../src/guestfs-actions.pod:4977
15103 msgid "guestfs_mount_9p_va"
15104 msgstr ""
15105
15106 #. type: verbatim
15107 #: ../src/guestfs-actions.pod:4979
15108 #, no-wrap
15109 msgid ""
15110 " int\n"
15111 " guestfs_mount_9p_va (guestfs_h *g,\n"
15112 "                      const char *mounttag,\n"
15113 "                      const char *mountpoint,\n"
15114 "                      va_list args);\n"
15115 "\n"
15116 msgstr ""
15117
15118 #. type: textblock
15119 #: ../src/guestfs-actions.pod:4985
15120 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
15121 msgstr ""
15122
15123 #. type: =head2
15124 #: ../src/guestfs-actions.pod:4989
15125 msgid "guestfs_mount_9p_argv"
15126 msgstr ""
15127
15128 #. type: verbatim
15129 #: ../src/guestfs-actions.pod:4991
15130 #, no-wrap
15131 msgid ""
15132 " int\n"
15133 " guestfs_mount_9p_argv (guestfs_h *g,\n"
15134 "                        const char *mounttag,\n"
15135 "                        const char *mountpoint,\n"
15136 "                        const struct guestfs_mount_9p_argv *optargs);\n"
15137 "\n"
15138 msgstr ""
15139
15140 #. type: textblock
15141 #: ../src/guestfs-actions.pod:4997
15142 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
15143 msgstr ""
15144
15145 #. type: =head2
15146 #: ../src/guestfs-actions.pod:5001
15147 msgid "guestfs_mount_loop"
15148 msgstr ""
15149
15150 #. type: verbatim
15151 #: ../src/guestfs-actions.pod:5003
15152 #, no-wrap
15153 msgid ""
15154 " int\n"
15155 " guestfs_mount_loop (guestfs_h *g,\n"
15156 "                     const char *file,\n"
15157 "                     const char *mountpoint);\n"
15158 "\n"
15159 msgstr ""
15160
15161 #. type: textblock
15162 #: ../src/guestfs-actions.pod:5008 ../fish/guestfish-actions.pod:3313
15163 msgid ""
15164 "This command lets you mount C<file> (a filesystem image in a file) on a "
15165 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
15166 "mountpoint>."
15167 msgstr ""
15168
15169 #. type: =head2
15170 #: ../src/guestfs-actions.pod:5016
15171 msgid "guestfs_mount_options"
15172 msgstr ""
15173
15174 #. type: verbatim
15175 #: ../src/guestfs-actions.pod:5018
15176 #, no-wrap
15177 msgid ""
15178 " int\n"
15179 " guestfs_mount_options (guestfs_h *g,\n"
15180 "                        const char *options,\n"
15181 "                        const char *device,\n"
15182 "                        const char *mountpoint);\n"
15183 "\n"
15184 msgstr ""
15185
15186 #. type: textblock
15187 #: ../src/guestfs-actions.pod:5024
15188 msgid ""
15189 "This is the same as the C<guestfs_mount> command, but it allows you to set "
15190 "the mount options as for the L<mount(8)> I<-o> flag."
15191 msgstr ""
15192
15193 #. type: textblock
15194 #: ../src/guestfs-actions.pod:5028 ../fish/guestfish-actions.pod:3325
15195 msgid ""
15196 "If the C<options> parameter is an empty string, then no options are passed "
15197 "(all options default to whatever the filesystem uses)."
15198 msgstr ""
15199
15200 #. type: textblock
15201 #: ../src/guestfs-actions.pod:5034 ../src/guestfs-actions.pod:5048
15202 #: ../src/guestfs-actions.pod:5065
15203 msgid "(Added in 1.0.10)"
15204 msgstr ""
15205
15206 #. type: =head2
15207 #: ../src/guestfs-actions.pod:5036
15208 msgid "guestfs_mount_ro"
15209 msgstr ""
15210
15211 #. type: verbatim
15212 #: ../src/guestfs-actions.pod:5038
15213 #, no-wrap
15214 msgid ""
15215 " int\n"
15216 " guestfs_mount_ro (guestfs_h *g,\n"
15217 "                   const char *device,\n"
15218 "                   const char *mountpoint);\n"
15219 "\n"
15220 msgstr ""
15221
15222 #. type: textblock
15223 #: ../src/guestfs-actions.pod:5043
15224 msgid ""
15225 "This is the same as the C<guestfs_mount> command, but it mounts the "
15226 "filesystem with the read-only (I<-o ro>) flag."
15227 msgstr ""
15228
15229 #. type: =head2
15230 #: ../src/guestfs-actions.pod:5050
15231 msgid "guestfs_mount_vfs"
15232 msgstr ""
15233
15234 #. type: verbatim
15235 #: ../src/guestfs-actions.pod:5052
15236 #, no-wrap
15237 msgid ""
15238 " int\n"
15239 " guestfs_mount_vfs (guestfs_h *g,\n"
15240 "                    const char *options,\n"
15241 "                    const char *vfstype,\n"
15242 "                    const char *device,\n"
15243 "                    const char *mountpoint);\n"
15244 "\n"
15245 msgstr ""
15246
15247 #. type: textblock
15248 #: ../src/guestfs-actions.pod:5059
15249 msgid ""
15250 "This is the same as the C<guestfs_mount> command, but it allows you to set "
15251 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
15252 "I<-t> flags."
15253 msgstr ""
15254
15255 #. type: =head2
15256 #: ../src/guestfs-actions.pod:5067
15257 msgid "guestfs_mountpoints"
15258 msgstr ""
15259
15260 #. type: verbatim
15261 #: ../src/guestfs-actions.pod:5069
15262 #, no-wrap
15263 msgid ""
15264 " char **\n"
15265 " guestfs_mountpoints (guestfs_h *g);\n"
15266 "\n"
15267 msgstr ""
15268
15269 #. type: textblock
15270 #: ../src/guestfs-actions.pod:5072
15271 msgid ""
15272 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
15273 "devices.  This one returns a hash table (map) of device name to directory "
15274 "where the device is mounted."
15275 msgstr ""
15276
15277 #. type: =head2
15278 #: ../src/guestfs-actions.pod:5084
15279 msgid "guestfs_mounts"
15280 msgstr ""
15281
15282 #. type: verbatim
15283 #: ../src/guestfs-actions.pod:5086
15284 #, no-wrap
15285 msgid ""
15286 " char **\n"
15287 " guestfs_mounts (guestfs_h *g);\n"
15288 "\n"
15289 msgstr ""
15290
15291 #. type: textblock
15292 #: ../src/guestfs-actions.pod:5089 ../fish/guestfish-actions.pod:3356
15293 msgid ""
15294 "This returns the list of currently mounted filesystems.  It returns the list"
15295 " of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
15296 msgstr ""
15297
15298 #. type: textblock
15299 #: ../src/guestfs-actions.pod:5092 ../fish/guestfish-actions.pod:3359
15300 msgid "Some internal mounts are not shown."
15301 msgstr ""
15302
15303 #. type: textblock
15304 #: ../src/guestfs-actions.pod:5094
15305 msgid "See also: C<guestfs_mountpoints>"
15306 msgstr ""
15307
15308 #. type: =head2
15309 #: ../src/guestfs-actions.pod:5102
15310 msgid "guestfs_mv"
15311 msgstr ""
15312
15313 #. type: verbatim
15314 #: ../src/guestfs-actions.pod:5104
15315 #, no-wrap
15316 msgid ""
15317 " int\n"
15318 " guestfs_mv (guestfs_h *g,\n"
15319 "             const char *src,\n"
15320 "             const char *dest);\n"
15321 "\n"
15322 msgstr ""
15323
15324 #. type: textblock
15325 #: ../src/guestfs-actions.pod:5109 ../fish/guestfish-actions.pod:3367
15326 msgid ""
15327 "This moves a file from C<src> to C<dest> where C<dest> is either a "
15328 "destination filename or destination directory."
15329 msgstr ""
15330
15331 #. type: =head2
15332 #: ../src/guestfs-actions.pod:5116
15333 msgid "guestfs_ntfs_3g_probe"
15334 msgstr ""
15335
15336 #. type: verbatim
15337 #: ../src/guestfs-actions.pod:5118
15338 #, no-wrap
15339 msgid ""
15340 " int\n"
15341 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
15342 "                        int rw,\n"
15343 "                        const char *device);\n"
15344 "\n"
15345 msgstr ""
15346
15347 #. type: textblock
15348 #: ../src/guestfs-actions.pod:5123 ../fish/guestfish-actions.pod:3374
15349 msgid ""
15350 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
15351 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
15352 "write, and some cannot be mounted at all)."
15353 msgstr ""
15354
15355 #. type: textblock
15356 #: ../src/guestfs-actions.pod:5127 ../fish/guestfish-actions.pod:3378
15357 msgid ""
15358 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
15359 "can be mounted read-write.  Set it to false if you want to test if the "
15360 "volume can be mounted read-only."
15361 msgstr ""
15362
15363 #. type: textblock
15364 #: ../src/guestfs-actions.pod:5131 ../fish/guestfish-actions.pod:3382
15365 msgid ""
15366 "The return value is an integer which C<0> if the operation would succeed, or"
15367 " some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
15368 msgstr ""
15369
15370 #. type: textblock
15371 #: ../src/guestfs-actions.pod:5137
15372 msgid "(Added in 1.0.43)"
15373 msgstr ""
15374
15375 #. type: =head2
15376 #: ../src/guestfs-actions.pod:5139
15377 msgid "guestfs_ntfsresize"
15378 msgstr ""
15379
15380 #. type: verbatim
15381 #: ../src/guestfs-actions.pod:5141
15382 #, no-wrap
15383 msgid ""
15384 " int\n"
15385 " guestfs_ntfsresize (guestfs_h *g,\n"
15386 "                     const char *device);\n"
15387 "\n"
15388 msgstr ""
15389
15390 #. type: textblock
15391 #: ../src/guestfs-actions.pod:5145 ../src/guestfs-actions.pod:5184
15392 #: ../fish/guestfish-actions.pod:3390 ../fish/guestfish-actions.pod:3414
15393 msgid ""
15394 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
15395 "size of the underlying device."
15396 msgstr ""
15397
15398 #. type: textblock
15399 #: ../src/guestfs-actions.pod:5148 ../fish/guestfish-actions.pod:3393
15400 msgid ""
15401 "I<Note:> After the resize operation, the filesystem is marked as requiring a"
15402 " consistency check (for safety).  You have to boot into Windows to perform "
15403 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
15404 "resize filesystems which have been marked in this way.  So in effect it is "
15405 "not possible to call ntfsresize multiple times on a single filesystem "
15406 "without booting into Windows between each resize."
15407 msgstr ""
15408
15409 #. type: textblock
15410 #: ../src/guestfs-actions.pod:5156 ../src/guestfs-actions.pod:5210
15411 #: ../fish/guestfish-actions.pod:3401 ../fish/guestfish-actions.pod:3440
15412 msgid "See also L<ntfsresize(8)>."
15413 msgstr ""
15414
15415 #. type: textblock
15416 #: ../src/guestfs-actions.pod:5160 ../src/guestfs-actions.pod:5250
15417 #: ../fish/guestfish-actions.pod:3403 ../fish/guestfish-actions.pod:3451
15418 msgid ""
15419 "This function is deprecated.  In new code, use the C<ntfsresize_opts> call "
15420 "instead."
15421 msgstr ""
15422
15423 #. type: =head2
15424 #: ../src/guestfs-actions.pod:5169
15425 msgid "guestfs_ntfsresize_opts"
15426 msgstr ""
15427
15428 #. type: verbatim
15429 #: ../src/guestfs-actions.pod:5171
15430 #, no-wrap
15431 msgid ""
15432 " int\n"
15433 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
15434 "                          const char *device,\n"
15435 "                          ...);\n"
15436 "\n"
15437 msgstr ""
15438
15439 #. type: verbatim
15440 #: ../src/guestfs-actions.pod:5181
15441 #, no-wrap
15442 msgid ""
15443 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
15444 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
15445 "\n"
15446 msgstr ""
15447
15448 #. type: textblock
15449 #: ../src/guestfs-actions.pod:5193 ../fish/guestfish-actions.pod:3423
15450 msgid ""
15451 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
15452 "resized to fit the container (eg. partition)."
15453 msgstr ""
15454
15455 #. type: =item
15456 #: ../src/guestfs-actions.pod:5196 ../fish/guestfish-actions.pod:3426
15457 msgid "C<force>"
15458 msgstr ""
15459
15460 #. type: textblock
15461 #: ../src/guestfs-actions.pod:5198 ../fish/guestfish-actions.pod:3428
15462 msgid ""
15463 "If this option is true, then force the resize of the filesystem even if the "
15464 "filesystem is marked as requiring a consistency check."
15465 msgstr ""
15466
15467 #. type: textblock
15468 #: ../src/guestfs-actions.pod:5201
15469 msgid ""
15470 "After the resize operation, the filesystem is always marked as requiring a "
15471 "consistency check (for safety).  You have to boot into Windows to perform "
15472 "this check and clear this condition.  If you I<don't> set the C<force> "
15473 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
15474 "times on a single filesystem without booting into Windows between each "
15475 "resize."
15476 msgstr ""
15477
15478 #. type: =head2
15479 #: ../src/guestfs-actions.pod:5216
15480 msgid "guestfs_ntfsresize_opts_va"
15481 msgstr ""
15482
15483 #. type: verbatim
15484 #: ../src/guestfs-actions.pod:5218
15485 #, no-wrap
15486 msgid ""
15487 " int\n"
15488 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
15489 "                             const char *device,\n"
15490 "                             va_list args);\n"
15491 "\n"
15492 msgstr ""
15493
15494 #. type: textblock
15495 #: ../src/guestfs-actions.pod:5223
15496 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
15497 msgstr ""
15498
15499 #. type: =head2
15500 #: ../src/guestfs-actions.pod:5227
15501 msgid "guestfs_ntfsresize_opts_argv"
15502 msgstr ""
15503
15504 #. type: verbatim
15505 #: ../src/guestfs-actions.pod:5229
15506 #, no-wrap
15507 msgid ""
15508 " int\n"
15509 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
15510 "                               const char *device,\n"
15511 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
15512 "\n"
15513 msgstr ""
15514
15515 #. type: textblock
15516 #: ../src/guestfs-actions.pod:5234
15517 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
15518 msgstr ""
15519
15520 #. type: =head2
15521 #: ../src/guestfs-actions.pod:5238
15522 msgid "guestfs_ntfsresize_size"
15523 msgstr ""
15524
15525 #. type: verbatim
15526 #: ../src/guestfs-actions.pod:5240
15527 #, no-wrap
15528 msgid ""
15529 " int\n"
15530 " guestfs_ntfsresize_size (guestfs_h *g,\n"
15531 "                          const char *device,\n"
15532 "                          int64_t size);\n"
15533 "\n"
15534 msgstr ""
15535
15536 #. type: textblock
15537 #: ../src/guestfs-actions.pod:5245
15538 msgid ""
15539 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
15540 "to specify the new size (in bytes) explicitly."
15541 msgstr ""
15542
15543 #. type: textblock
15544 #: ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5693
15545 #: ../src/guestfs-actions.pod:5766 ../src/guestfs-actions.pod:6034
15546 #: ../src/guestfs-actions.pod:7655
15547 msgid "(Added in 1.3.14)"
15548 msgstr ""
15549
15550 #. type: =head2
15551 #: ../src/guestfs-actions.pod:5259
15552 msgid "guestfs_part_add"
15553 msgstr ""
15554
15555 #. type: verbatim
15556 #: ../src/guestfs-actions.pod:5261
15557 #, no-wrap
15558 msgid ""
15559 " int\n"
15560 " guestfs_part_add (guestfs_h *g,\n"
15561 "                   const char *device,\n"
15562 "                   const char *prlogex,\n"
15563 "                   int64_t startsect,\n"
15564 "                   int64_t endsect);\n"
15565 "\n"
15566 msgstr ""
15567
15568 #. type: textblock
15569 #: ../src/guestfs-actions.pod:5268
15570 msgid ""
15571 "This command adds a partition to C<device>.  If there is no partition table "
15572 "on the device, call C<guestfs_part_init> first."
15573 msgstr ""
15574
15575 #. type: textblock
15576 #: ../src/guestfs-actions.pod:5271 ../fish/guestfish-actions.pod:3465
15577 msgid ""
15578 "The C<prlogex> parameter is the type of partition.  Normally you should pass"
15579 " C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
15580 "C<logical>) and C<e> (or C<extended>) partition types."
15581 msgstr ""
15582
15583 #. type: textblock
15584 #: ../src/guestfs-actions.pod:5276 ../fish/guestfish-actions.pod:3470
15585 msgid ""
15586 "C<startsect> and C<endsect> are the start and end of the partition in "
15587 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
15588 "from the end of the disk (C<-1> is the last sector)."
15589 msgstr ""
15590
15591 #. type: textblock
15592 #: ../src/guestfs-actions.pod:5280
15593 msgid ""
15594 "Creating a partition which covers the whole disk is not so easy.  Use "
15595 "C<guestfs_part_disk> to do that."
15596 msgstr ""
15597
15598 #. type: textblock
15599 #: ../src/guestfs-actions.pod:5285 ../src/guestfs-actions.pod:5323
15600 #: ../src/guestfs-actions.pod:5376 ../src/guestfs-actions.pod:5454
15601 #: ../src/guestfs-actions.pod:5492 ../src/guestfs-actions.pod:5511
15602 #: ../src/guestfs-actions.pod:5551
15603 msgid "(Added in 1.0.78)"
15604 msgstr ""
15605
15606 #. type: =head2
15607 #: ../src/guestfs-actions.pod:5287
15608 msgid "guestfs_part_del"
15609 msgstr ""
15610
15611 #. type: verbatim
15612 #: ../src/guestfs-actions.pod:5289
15613 #, no-wrap
15614 msgid ""
15615 " int\n"
15616 " guestfs_part_del (guestfs_h *g,\n"
15617 "                   const char *device,\n"
15618 "                   int partnum);\n"
15619 "\n"
15620 msgstr ""
15621
15622 #. type: textblock
15623 #: ../src/guestfs-actions.pod:5294 ../fish/guestfish-actions.pod:3481
15624 msgid "This command deletes the partition numbered C<partnum> on C<device>."
15625 msgstr ""
15626
15627 #. type: textblock
15628 #: ../src/guestfs-actions.pod:5296 ../fish/guestfish-actions.pod:3483
15629 msgid ""
15630 "Note that in the case of MBR partitioning, deleting an extended partition "
15631 "also deletes any logical partitions it contains."
15632 msgstr ""
15633
15634 #. type: =head2
15635 #: ../src/guestfs-actions.pod:5304
15636 msgid "guestfs_part_disk"
15637 msgstr ""
15638
15639 #. type: verbatim
15640 #: ../src/guestfs-actions.pod:5306
15641 #, no-wrap
15642 msgid ""
15643 " int\n"
15644 " guestfs_part_disk (guestfs_h *g,\n"
15645 "                    const char *device,\n"
15646 "                    const char *parttype);\n"
15647 "\n"
15648 msgstr ""
15649
15650 #. type: textblock
15651 #: ../src/guestfs-actions.pod:5311
15652 msgid ""
15653 "This command is simply a combination of C<guestfs_part_init> followed by "
15654 "C<guestfs_part_add> to create a single primary partition covering the whole "
15655 "disk."
15656 msgstr ""
15657
15658 #. type: textblock
15659 #: ../src/guestfs-actions.pod:5315
15660 msgid ""
15661 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other"
15662 " possible values are described in C<guestfs_part_init>."
15663 msgstr ""
15664
15665 #. type: =head2
15666 #: ../src/guestfs-actions.pod:5325
15667 msgid "guestfs_part_get_bootable"
15668 msgstr ""
15669
15670 #. type: verbatim
15671 #: ../src/guestfs-actions.pod:5327
15672 #, no-wrap
15673 msgid ""
15674 " int\n"
15675 " guestfs_part_get_bootable (guestfs_h *g,\n"
15676 "                            const char *device,\n"
15677 "                            int partnum);\n"
15678 "\n"
15679 msgstr ""
15680
15681 #. type: textblock
15682 #: ../src/guestfs-actions.pod:5332 ../fish/guestfish-actions.pod:3505
15683 msgid ""
15684 "This command returns true if the partition C<partnum> on C<device> has the "
15685 "bootable flag set."
15686 msgstr ""
15687
15688 #. type: textblock
15689 #: ../src/guestfs-actions.pod:5335
15690 msgid "See also C<guestfs_part_set_bootable>."
15691 msgstr ""
15692
15693 #. type: =head2
15694 #: ../src/guestfs-actions.pod:5341
15695 msgid "guestfs_part_get_mbr_id"
15696 msgstr ""
15697
15698 #. type: verbatim
15699 #: ../src/guestfs-actions.pod:5343
15700 #, no-wrap
15701 msgid ""
15702 " int\n"
15703 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
15704 "                          const char *device,\n"
15705 "                          int partnum);\n"
15706 "\n"
15707 msgstr ""
15708
15709 #. type: textblock
15710 #: ../src/guestfs-actions.pod:5348 ../fish/guestfish-actions.pod:3514
15711 msgid ""
15712 "Returns the MBR type byte (also known as the ID byte) from the numbered "
15713 "partition C<partnum>."
15714 msgstr ""
15715
15716 #. type: textblock
15717 #: ../src/guestfs-actions.pod:5351 ../src/guestfs-actions.pod:5527
15718 msgid ""
15719 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get"
15720 " undefined results for other partition table types (see "
15721 "C<guestfs_part_get_parttype>)."
15722 msgstr ""
15723
15724 #. type: =head2
15725 #: ../src/guestfs-actions.pod:5359
15726 msgid "guestfs_part_get_parttype"
15727 msgstr ""
15728
15729 #. type: verbatim
15730 #: ../src/guestfs-actions.pod:5361
15731 #, no-wrap
15732 msgid ""
15733 " char *\n"
15734 " guestfs_part_get_parttype (guestfs_h *g,\n"
15735 "                            const char *device);\n"
15736 "\n"
15737 msgstr ""
15738
15739 #. type: textblock
15740 #: ../src/guestfs-actions.pod:5365 ../fish/guestfish-actions.pod:3525
15741 msgid ""
15742 "This command examines the partition table on C<device> and returns the "
15743 "partition table type (format) being used."
15744 msgstr ""
15745
15746 #. type: textblock
15747 #: ../src/guestfs-actions.pod:5368
15748 msgid ""
15749 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
15750 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
15751 "possible, although unusual.  See C<guestfs_part_init> for a full list."
15752 msgstr ""
15753
15754 #. type: =head2
15755 #: ../src/guestfs-actions.pod:5378
15756 msgid "guestfs_part_init"
15757 msgstr ""
15758
15759 #. type: verbatim
15760 #: ../src/guestfs-actions.pod:5380
15761 #, no-wrap
15762 msgid ""
15763 " int\n"
15764 " guestfs_part_init (guestfs_h *g,\n"
15765 "                    const char *device,\n"
15766 "                    const char *parttype);\n"
15767 "\n"
15768 msgstr ""
15769
15770 #. type: textblock
15771 #: ../src/guestfs-actions.pod:5385 ../fish/guestfish-actions.pod:3537
15772 msgid ""
15773 "This creates an empty partition table on C<device> of one of the partition "
15774 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt>"
15775 " (for large disks)."
15776 msgstr ""
15777
15778 #. type: textblock
15779 #: ../src/guestfs-actions.pod:5389
15780 msgid ""
15781 "Initially there are no partitions.  Following this, you should call "
15782 "C<guestfs_part_add> for each partition required."
15783 msgstr ""
15784
15785 #. type: textblock
15786 #: ../src/guestfs-actions.pod:5392 ../fish/guestfish-actions.pod:3544
15787 msgid "Possible values for C<parttype> are:"
15788 msgstr ""
15789
15790 #. type: =item
15791 #: ../src/guestfs-actions.pod:5396 ../fish/guestfish-actions.pod:3548
15792 msgid "B<efi> | B<gpt>"
15793 msgstr ""
15794
15795 #. type: textblock
15796 #: ../src/guestfs-actions.pod:5398 ../fish/guestfish-actions.pod:3550
15797 msgid "Intel EFI / GPT partition table."
15798 msgstr ""
15799
15800 #. type: textblock
15801 #: ../src/guestfs-actions.pod:5400 ../fish/guestfish-actions.pod:3552
15802 msgid ""
15803 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
15804 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
15805 "the C<mbr> format."
15806 msgstr ""
15807
15808 #. type: =item
15809 #: ../src/guestfs-actions.pod:5404 ../fish/guestfish-actions.pod:3556
15810 msgid "B<mbr> | B<msdos>"
15811 msgstr ""
15812
15813 #. type: textblock
15814 #: ../src/guestfs-actions.pod:5406 ../fish/guestfish-actions.pod:3558
15815 msgid ""
15816 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
15817 "Windows.  This partition type will B<only> work for device sizes up to 2 TB."
15818 "  For large disks we recommend using C<gpt>."
15819 msgstr ""
15820
15821 #. type: textblock
15822 #: ../src/guestfs-actions.pod:5413 ../fish/guestfish-actions.pod:3565
15823 msgid ""
15824 "Other partition table types that may work but are not supported include:"
15825 msgstr ""
15826
15827 #. type: =item
15828 #: ../src/guestfs-actions.pod:5418 ../fish/guestfish-actions.pod:3570
15829 msgid "B<aix>"
15830 msgstr "B<aix>"
15831
15832 #. type: textblock
15833 #: ../src/guestfs-actions.pod:5420 ../fish/guestfish-actions.pod:3572
15834 msgid "AIX disk labels."
15835 msgstr "Мітки дисків AIX."
15836
15837 #. type: =item
15838 #: ../src/guestfs-actions.pod:5422 ../fish/guestfish-actions.pod:3574
15839 msgid "B<amiga> | B<rdb>"
15840 msgstr "B<amiga> | B<rdb>"
15841
15842 #. type: textblock
15843 #: ../src/guestfs-actions.pod:5424 ../fish/guestfish-actions.pod:3576
15844 msgid "Amiga \"Rigid Disk Block\" format."
15845 msgstr "Формат \"Rigid Disk Block\" Amiga."
15846
15847 #. type: =item
15848 #: ../src/guestfs-actions.pod:5426 ../fish/guestfish-actions.pod:3578
15849 msgid "B<bsd>"
15850 msgstr "B<bsd>"
15851
15852 #. type: textblock
15853 #: ../src/guestfs-actions.pod:5428 ../fish/guestfish-actions.pod:3580
15854 msgid "BSD disk labels."
15855 msgstr "Мітки дисків BSD."
15856
15857 #. type: =item
15858 #: ../src/guestfs-actions.pod:5430 ../fish/guestfish-actions.pod:3582
15859 msgid "B<dasd>"
15860 msgstr "B<dasd>"
15861
15862 #. type: textblock
15863 #: ../src/guestfs-actions.pod:5432 ../fish/guestfish-actions.pod:3584
15864 msgid "DASD, used on IBM mainframes."
15865 msgstr "DASD, використовувалися у мейнфреймах IBM."
15866
15867 #. type: =item
15868 #: ../src/guestfs-actions.pod:5434 ../fish/guestfish-actions.pod:3586
15869 msgid "B<dvh>"
15870 msgstr "B<dvh>"
15871
15872 #. type: textblock
15873 #: ../src/guestfs-actions.pod:5436 ../fish/guestfish-actions.pod:3588
15874 msgid "MIPS/SGI volumes."
15875 msgstr "Томи MIPS/SGI."
15876
15877 #. type: =item
15878 #: ../src/guestfs-actions.pod:5438 ../fish/guestfish-actions.pod:3590
15879 msgid "B<mac>"
15880 msgstr "B<mac>"
15881
15882 #. type: textblock
15883 #: ../src/guestfs-actions.pod:5440 ../fish/guestfish-actions.pod:3592
15884 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
15885 msgstr ""
15886 "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
15887
15888 #. type: =item
15889 #: ../src/guestfs-actions.pod:5442 ../fish/guestfish-actions.pod:3594
15890 msgid "B<pc98>"
15891 msgstr "B<pc98>"
15892
15893 #. type: textblock
15894 #: ../src/guestfs-actions.pod:5444 ../fish/guestfish-actions.pod:3596
15895 msgid "NEC PC-98 format, common in Japan apparently."
15896 msgstr "Формат NEC PC-98, поширений у Японії."
15897
15898 #. type: =item
15899 #: ../src/guestfs-actions.pod:5446 ../fish/guestfish-actions.pod:3598
15900 msgid "B<sun>"
15901 msgstr "B<sun>"
15902
15903 #. type: textblock
15904 #: ../src/guestfs-actions.pod:5448 ../fish/guestfish-actions.pod:3600
15905 msgid "Sun disk labels."
15906 msgstr "Мітки дисків Sun."
15907
15908 #. type: =head2
15909 #: ../src/guestfs-actions.pod:5456
15910 msgid "guestfs_part_list"
15911 msgstr "guestfs_part_list"
15912
15913 #. type: verbatim
15914 #: ../src/guestfs-actions.pod:5458
15915 #, no-wrap
15916 msgid ""
15917 " struct guestfs_partition_list *\n"
15918 " guestfs_part_list (guestfs_h *g,\n"
15919 "                    const char *device);\n"
15920 "\n"
15921 msgstr ""
15922 " struct guestfs_partition_list *\n"
15923 " guestfs_part_list (guestfs_h *g,\n"
15924 "                    const char *device);\n"
15925 "\n"
15926
15927 #. type: textblock
15928 #: ../src/guestfs-actions.pod:5462 ../fish/guestfish-actions.pod:3608
15929 msgid ""
15930 "This command parses the partition table on C<device> and returns the list of"
15931 " partitions found."
15932 msgstr ""
15933
15934 #. type: textblock
15935 #: ../src/guestfs-actions.pod:5465 ../fish/guestfish-actions.pod:3611
15936 msgid "The fields in the returned structure are:"
15937 msgstr ""
15938
15939 #. type: =item
15940 #: ../src/guestfs-actions.pod:5469 ../fish/guestfish-actions.pod:3615
15941 msgid "B<part_num>"
15942 msgstr "B<part_num>"
15943
15944 #. type: textblock
15945 #: ../src/guestfs-actions.pod:5471 ../fish/guestfish-actions.pod:3617
15946 msgid "Partition number, counting from 1."
15947 msgstr ""
15948
15949 #. type: =item
15950 #: ../src/guestfs-actions.pod:5473 ../fish/guestfish-actions.pod:3619
15951 msgid "B<part_start>"
15952 msgstr "B<part_start>"
15953
15954 #. type: textblock
15955 #: ../src/guestfs-actions.pod:5475
15956 msgid ""
15957 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
15958 "the device's sector size, see C<guestfs_blockdev_getss>."
15959 msgstr ""
15960
15961 #. type: =item
15962 #: ../src/guestfs-actions.pod:5478 ../fish/guestfish-actions.pod:3624
15963 msgid "B<part_end>"
15964 msgstr "B<part_end>"
15965
15966 #. type: textblock
15967 #: ../src/guestfs-actions.pod:5480 ../fish/guestfish-actions.pod:3626
15968 msgid "End of the partition in bytes."
15969 msgstr ""
15970
15971 #. type: =item
15972 #: ../src/guestfs-actions.pod:5482 ../fish/guestfish-actions.pod:3628
15973 msgid "B<part_size>"
15974 msgstr "B<part_size>"
15975
15976 #. type: textblock
15977 #: ../src/guestfs-actions.pod:5484 ../fish/guestfish-actions.pod:3630
15978 msgid "Size of the partition in bytes."
15979 msgstr ""
15980
15981 #. type: textblock
15982 #: ../src/guestfs-actions.pod:5488
15983 msgid ""
15984 "This function returns a C<struct guestfs_partition_list *>, or NULL if there"
15985 " was an error.  I<The caller must call C<guestfs_free_partition_list> after "
15986 "use>."
15987 msgstr ""
15988
15989 #. type: =head2
15990 #: ../src/guestfs-actions.pod:5494
15991 msgid "guestfs_part_set_bootable"
15992 msgstr ""
15993
15994 #. type: verbatim
15995 #: ../src/guestfs-actions.pod:5496
15996 #, no-wrap
15997 msgid ""
15998 " int\n"
15999 " guestfs_part_set_bootable (guestfs_h *g,\n"
16000 "                            const char *device,\n"
16001 "                            int partnum,\n"
16002 "                            int bootable);\n"
16003 "\n"
16004 msgstr ""
16005
16006 #. type: textblock
16007 #: ../src/guestfs-actions.pod:5502 ../fish/guestfish-actions.pod:3638
16008 msgid ""
16009 "This sets the bootable flag on partition numbered C<partnum> on device "
16010 "C<device>.  Note that partitions are numbered from 1."
16011 msgstr ""
16012
16013 #. type: textblock
16014 #: ../src/guestfs-actions.pod:5505 ../fish/guestfish-actions.pod:3641
16015 msgid ""
16016 "The bootable flag is used by some operating systems (notably Windows) to "
16017 "determine which partition to boot from.  It is by no means universally "
16018 "recognized."
16019 msgstr ""
16020
16021 #. type: =head2
16022 #: ../src/guestfs-actions.pod:5513
16023 msgid "guestfs_part_set_mbr_id"
16024 msgstr ""
16025
16026 #. type: verbatim
16027 #: ../src/guestfs-actions.pod:5515
16028 #, no-wrap
16029 msgid ""
16030 " int\n"
16031 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
16032 "                          const char *device,\n"
16033 "                          int partnum,\n"
16034 "                          int idbyte);\n"
16035 "\n"
16036 msgstr ""
16037
16038 #. type: textblock
16039 #: ../src/guestfs-actions.pod:5521 ../fish/guestfish-actions.pod:3649
16040 msgid ""
16041 "Sets the MBR type byte (also known as the ID byte) of the numbered partition"
16042 " C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
16043 "documentation are in fact hexadecimal numbers, but usually documented "
16044 "without any leading \"0x\" which might be confusing."
16045 msgstr ""
16046
16047 #. type: =head2
16048 #: ../src/guestfs-actions.pod:5535
16049 msgid "guestfs_part_set_name"
16050 msgstr ""
16051
16052 #. type: verbatim
16053 #: ../src/guestfs-actions.pod:5537
16054 #, no-wrap
16055 msgid ""
16056 " int\n"
16057 " guestfs_part_set_name (guestfs_h *g,\n"
16058 "                        const char *device,\n"
16059 "                        int partnum,\n"
16060 "                        const char *name);\n"
16061 "\n"
16062 msgstr ""
16063
16064 #. type: textblock
16065 #: ../src/guestfs-actions.pod:5543 ../fish/guestfish-actions.pod:3663
16066 msgid ""
16067 "This sets the partition name on partition numbered C<partnum> on device "
16068 "C<device>.  Note that partitions are numbered from 1."
16069 msgstr ""
16070
16071 #. type: textblock
16072 #: ../src/guestfs-actions.pod:5546 ../fish/guestfish-actions.pod:3666
16073 msgid ""
16074 "The partition name can only be set on certain types of partition table.  "
16075 "This works on C<gpt> but not on C<mbr> partitions."
16076 msgstr ""
16077
16078 #. type: =head2
16079 #: ../src/guestfs-actions.pod:5553
16080 msgid "guestfs_part_to_dev"
16081 msgstr ""
16082
16083 #. type: verbatim
16084 #: ../src/guestfs-actions.pod:5555
16085 #, no-wrap
16086 msgid ""
16087 " char *\n"
16088 " guestfs_part_to_dev (guestfs_h *g,\n"
16089 "                      const char *partition);\n"
16090 "\n"
16091 msgstr ""
16092
16093 #. type: textblock
16094 #: ../src/guestfs-actions.pod:5559 ../fish/guestfish-actions.pod:3673
16095 msgid ""
16096 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
16097 "partition number, returning the device name (eg. \"/dev/sdb\")."
16098 msgstr ""
16099
16100 #. type: textblock
16101 #: ../src/guestfs-actions.pod:5563
16102 msgid ""
16103 "The named partition must exist, for example as a string returned from "
16104 "C<guestfs_list_partitions>."
16105 msgstr ""
16106
16107 #. type: =head2
16108 #: ../src/guestfs-actions.pod:5571
16109 msgid "guestfs_ping_daemon"
16110 msgstr ""
16111
16112 #. type: verbatim
16113 #: ../src/guestfs-actions.pod:5573
16114 #, no-wrap
16115 msgid ""
16116 " int\n"
16117 " guestfs_ping_daemon (guestfs_h *g);\n"
16118 "\n"
16119 msgstr ""
16120
16121 #. type: textblock
16122 #: ../src/guestfs-actions.pod:5576 ../fish/guestfish-actions.pod:3684
16123 msgid ""
16124 "This is a test probe into the guestfs daemon running inside the qemu "
16125 "subprocess.  Calling this function checks that the daemon responds to the "
16126 "ping message, without affecting the daemon or attached block device(s) in "
16127 "any other way."
16128 msgstr ""
16129
16130 #. type: =head2
16131 #: ../src/guestfs-actions.pod:5585
16132 msgid "guestfs_pread"
16133 msgstr ""
16134
16135 #. type: verbatim
16136 #: ../src/guestfs-actions.pod:5587
16137 #, no-wrap
16138 msgid ""
16139 " char *\n"
16140 " guestfs_pread (guestfs_h *g,\n"
16141 "                const char *path,\n"
16142 "                int count,\n"
16143 "                int64_t offset,\n"
16144 "                size_t *size_r);\n"
16145 "\n"
16146 msgstr ""
16147
16148 #. type: textblock
16149 #: ../src/guestfs-actions.pod:5594 ../fish/guestfish-actions.pod:3693
16150 msgid ""
16151 "This command lets you read part of a file.  It reads C<count> bytes of the "
16152 "file, starting at C<offset>, from file C<path>."
16153 msgstr ""
16154
16155 #. type: textblock
16156 #: ../src/guestfs-actions.pod:5597 ../src/guestfs-actions.pod:5623
16157 #: ../fish/guestfish-actions.pod:3696 ../fish/guestfish-actions.pod:3711
16158 msgid ""
16159 "This may read fewer bytes than requested.  For further details see the "
16160 "L<pread(2)> system call."
16161 msgstr ""
16162
16163 #. type: textblock
16164 #: ../src/guestfs-actions.pod:5600
16165 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
16166 msgstr ""
16167
16168 #. type: =head2
16169 #: ../src/guestfs-actions.pod:5611
16170 msgid "guestfs_pread_device"
16171 msgstr ""
16172
16173 #. type: verbatim
16174 #: ../src/guestfs-actions.pod:5613
16175 #, no-wrap
16176 msgid ""
16177 " char *\n"
16178 " guestfs_pread_device (guestfs_h *g,\n"
16179 "                       const char *device,\n"
16180 "                       int count,\n"
16181 "                       int64_t offset,\n"
16182 "                       size_t *size_r);\n"
16183 "\n"
16184 msgstr ""
16185
16186 #. type: textblock
16187 #: ../src/guestfs-actions.pod:5620 ../fish/guestfish-actions.pod:3708
16188 msgid ""
16189 "This command lets you read part of a file.  It reads C<count> bytes of "
16190 "C<device>, starting at C<offset>."
16191 msgstr ""
16192
16193 #. type: textblock
16194 #: ../src/guestfs-actions.pod:5626
16195 msgid "See also C<guestfs_pread>."
16196 msgstr ""
16197
16198 #. type: textblock
16199 #: ../src/guestfs-actions.pod:5635
16200 msgid "(Added in 1.5.21)"
16201 msgstr ""
16202
16203 #. type: =head2
16204 #: ../src/guestfs-actions.pod:5637
16205 msgid "guestfs_pvcreate"
16206 msgstr ""
16207
16208 #. type: verbatim
16209 #: ../src/guestfs-actions.pod:5639
16210 #, no-wrap
16211 msgid ""
16212 " int\n"
16213 " guestfs_pvcreate (guestfs_h *g,\n"
16214 "                   const char *device);\n"
16215 "\n"
16216 msgstr ""
16217
16218 #. type: textblock
16219 #: ../src/guestfs-actions.pod:5643 ../fish/guestfish-actions.pod:3723
16220 msgid ""
16221 "This creates an LVM physical volume on the named C<device>, where C<device> "
16222 "should usually be a partition name such as C</dev/sda1>."
16223 msgstr ""
16224
16225 #. type: =head2
16226 #: ../src/guestfs-actions.pod:5651
16227 msgid "guestfs_pvremove"
16228 msgstr ""
16229
16230 #. type: verbatim
16231 #: ../src/guestfs-actions.pod:5653
16232 #, no-wrap
16233 msgid ""
16234 " int\n"
16235 " guestfs_pvremove (guestfs_h *g,\n"
16236 "                   const char *device);\n"
16237 "\n"
16238 msgstr ""
16239
16240 #. type: textblock
16241 #: ../src/guestfs-actions.pod:5657 ../fish/guestfish-actions.pod:3731
16242 msgid ""
16243 "This wipes a physical volume C<device> so that LVM will no longer recognise "
16244 "it."
16245 msgstr ""
16246
16247 #. type: textblock
16248 #: ../src/guestfs-actions.pod:5660 ../fish/guestfish-actions.pod:3734
16249 msgid ""
16250 "The implementation uses the C<pvremove> command which refuses to wipe "
16251 "physical volumes that contain any volume groups, so you have to remove those"
16252 " first."
16253 msgstr ""
16254
16255 #. type: =head2
16256 #: ../src/guestfs-actions.pod:5668
16257 msgid "guestfs_pvresize"
16258 msgstr ""
16259
16260 #. type: verbatim
16261 #: ../src/guestfs-actions.pod:5670
16262 #, no-wrap
16263 msgid ""
16264 " int\n"
16265 " guestfs_pvresize (guestfs_h *g,\n"
16266 "                   const char *device);\n"
16267 "\n"
16268 msgstr ""
16269
16270 #. type: textblock
16271 #: ../src/guestfs-actions.pod:5674 ../fish/guestfish-actions.pod:3742
16272 msgid ""
16273 "This resizes (expands or shrinks) an existing LVM physical volume to match "
16274 "the new size of the underlying device."
16275 msgstr ""
16276
16277 #. type: =head2
16278 #: ../src/guestfs-actions.pod:5681
16279 msgid "guestfs_pvresize_size"
16280 msgstr ""
16281
16282 #. type: verbatim
16283 #: ../src/guestfs-actions.pod:5683
16284 #, no-wrap
16285 msgid ""
16286 " int\n"
16287 " guestfs_pvresize_size (guestfs_h *g,\n"
16288 "                        const char *device,\n"
16289 "                        int64_t size);\n"
16290 "\n"
16291 msgstr ""
16292
16293 #. type: textblock
16294 #: ../src/guestfs-actions.pod:5688
16295 msgid ""
16296 "This command is the same as C<guestfs_pvresize> except that it allows you to"
16297 " specify the new size (in bytes) explicitly."
16298 msgstr ""
16299
16300 #. type: =head2
16301 #: ../src/guestfs-actions.pod:5695
16302 msgid "guestfs_pvs"
16303 msgstr ""
16304
16305 #. type: verbatim
16306 #: ../src/guestfs-actions.pod:5697
16307 #, no-wrap
16308 msgid ""
16309 " char **\n"
16310 " guestfs_pvs (guestfs_h *g);\n"
16311 "\n"
16312 msgstr ""
16313
16314 #. type: textblock
16315 #: ../src/guestfs-actions.pod:5700 ../fish/guestfish-actions.pod:3756
16316 msgid ""
16317 "List all the physical volumes detected.  This is the equivalent of the "
16318 "L<pvs(8)> command."
16319 msgstr ""
16320
16321 #. type: textblock
16322 #: ../src/guestfs-actions.pod:5703 ../fish/guestfish-actions.pod:3759
16323 msgid ""
16324 "This returns a list of just the device names that contain PVs (eg. "
16325 "C</dev/sda2>)."
16326 msgstr ""
16327
16328 #. type: textblock
16329 #: ../src/guestfs-actions.pod:5706
16330 msgid "See also C<guestfs_pvs_full>."
16331 msgstr ""
16332
16333 #. type: =head2
16334 #: ../src/guestfs-actions.pod:5714
16335 msgid "guestfs_pvs_full"
16336 msgstr ""
16337
16338 #. type: verbatim
16339 #: ../src/guestfs-actions.pod:5716
16340 #, no-wrap
16341 msgid ""
16342 " struct guestfs_lvm_pv_list *\n"
16343 " guestfs_pvs_full (guestfs_h *g);\n"
16344 "\n"
16345 msgstr ""
16346
16347 #. type: textblock
16348 #: ../src/guestfs-actions.pod:5719 ../fish/guestfish-actions.pod:3768
16349 msgid ""
16350 "List all the physical volumes detected.  This is the equivalent of the "
16351 "L<pvs(8)> command.  The \"full\" version includes all fields."
16352 msgstr ""
16353
16354 #. type: textblock
16355 #: ../src/guestfs-actions.pod:5722
16356 msgid ""
16357 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
16358 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
16359 "use>."
16360 msgstr ""
16361
16362 #. type: =head2
16363 #: ../src/guestfs-actions.pod:5728
16364 msgid "guestfs_pvuuid"
16365 msgstr ""
16366
16367 #. type: verbatim
16368 #: ../src/guestfs-actions.pod:5730
16369 #, no-wrap
16370 msgid ""
16371 " char *\n"
16372 " guestfs_pvuuid (guestfs_h *g,\n"
16373 "                 const char *device);\n"
16374 "\n"
16375 msgstr ""
16376
16377 #. type: textblock
16378 #: ../src/guestfs-actions.pod:5734 ../fish/guestfish-actions.pod:3775
16379 msgid "This command returns the UUID of the LVM PV C<device>."
16380 msgstr ""
16381
16382 #. type: =head2
16383 #: ../src/guestfs-actions.pod:5741
16384 msgid "guestfs_pwrite"
16385 msgstr ""
16386
16387 #. type: verbatim
16388 #: ../src/guestfs-actions.pod:5743
16389 #, no-wrap
16390 msgid ""
16391 " int\n"
16392 " guestfs_pwrite (guestfs_h *g,\n"
16393 "                 const char *path,\n"
16394 "                 const char *content,\n"
16395 "                 size_t content_size,\n"
16396 "                 int64_t offset);\n"
16397 "\n"
16398 msgstr ""
16399
16400 #. type: textblock
16401 #: ../src/guestfs-actions.pod:5750 ../fish/guestfish-actions.pod:3781
16402 msgid ""
16403 "This command writes to part of a file.  It writes the data buffer C<content>"
16404 " to the file C<path> starting at offset C<offset>."
16405 msgstr ""
16406
16407 #. type: textblock
16408 #: ../src/guestfs-actions.pod:5753 ../fish/guestfish-actions.pod:3784
16409 msgid ""
16410 "This command implements the L<pwrite(2)> system call, and like that system "
16411 "call it may not write the full data requested.  The return value is the "
16412 "number of bytes that were actually written to the file.  This could even be "
16413 "0, although short writes are unlikely for regular files in ordinary "
16414 "circumstances."
16415 msgstr ""
16416
16417 #. type: textblock
16418 #: ../src/guestfs-actions.pod:5759
16419 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
16420 msgstr ""
16421
16422 #. type: =head2
16423 #: ../src/guestfs-actions.pod:5768
16424 msgid "guestfs_pwrite_device"
16425 msgstr ""
16426
16427 #. type: verbatim
16428 #: ../src/guestfs-actions.pod:5770
16429 #, no-wrap
16430 msgid ""
16431 " int\n"
16432 " guestfs_pwrite_device (guestfs_h *g,\n"
16433 "                        const char *device,\n"
16434 "                        const char *content,\n"
16435 "                        size_t content_size,\n"
16436 "                        int64_t offset);\n"
16437 "\n"
16438 msgstr ""
16439
16440 #. type: textblock
16441 #: ../src/guestfs-actions.pod:5777 ../fish/guestfish-actions.pod:3799
16442 msgid ""
16443 "This command writes to part of a device.  It writes the data buffer "
16444 "C<content> to C<device> starting at offset C<offset>."
16445 msgstr ""
16446
16447 #. type: textblock
16448 #: ../src/guestfs-actions.pod:5780 ../fish/guestfish-actions.pod:3802
16449 msgid ""
16450 "This command implements the L<pwrite(2)> system call, and like that system "
16451 "call it may not write the full data requested (although short writes to disk"
16452 " devices and partitions are probably impossible with standard Linux "
16453 "kernels)."
16454 msgstr ""
16455
16456 #. type: textblock
16457 #: ../src/guestfs-actions.pod:5785
16458 msgid "See also C<guestfs_pwrite>."
16459 msgstr ""
16460
16461 #. type: textblock
16462 #: ../src/guestfs-actions.pod:5792
16463 msgid "(Added in 1.5.20)"
16464 msgstr ""
16465
16466 #. type: =head2
16467 #: ../src/guestfs-actions.pod:5794
16468 msgid "guestfs_read_file"
16469 msgstr ""
16470
16471 #. type: verbatim
16472 #: ../src/guestfs-actions.pod:5796
16473 #, no-wrap
16474 msgid ""
16475 " char *\n"
16476 " guestfs_read_file (guestfs_h *g,\n"
16477 "                    const char *path,\n"
16478 "                    size_t *size_r);\n"
16479 "\n"
16480 msgstr ""
16481
16482 #. type: textblock
16483 #: ../src/guestfs-actions.pod:5801 ../fish/guestfish-actions.pod:3816
16484 msgid "This calls returns the contents of the file C<path> as a buffer."
16485 msgstr ""
16486
16487 #. type: textblock
16488 #: ../src/guestfs-actions.pod:5804
16489 msgid ""
16490 "Unlike C<guestfs_cat>, this function can correctly handle files that contain"
16491 " embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
16492 "function is limited in the total size of file that can be handled."
16493 msgstr ""
16494
16495 #. type: textblock
16496 #: ../src/guestfs-actions.pod:5816
16497 msgid "(Added in 1.0.63)"
16498 msgstr ""
16499
16500 #. type: =head2
16501 #: ../src/guestfs-actions.pod:5818
16502 msgid "guestfs_read_lines"
16503 msgstr ""
16504
16505 #. type: verbatim
16506 #: ../src/guestfs-actions.pod:5820
16507 #, no-wrap
16508 msgid ""
16509 " char **\n"
16510 " guestfs_read_lines (guestfs_h *g,\n"
16511 "                     const char *path);\n"
16512 "\n"
16513 msgstr ""
16514
16515 #. type: textblock
16516 #: ../src/guestfs-actions.pod:5826 ../fish/guestfish-actions.pod:3833
16517 msgid ""
16518 "The file contents are returned as a list of lines.  Trailing C<LF> and "
16519 "C<CRLF> character sequences are I<not> returned."
16520 msgstr ""
16521
16522 #. type: textblock
16523 #: ../src/guestfs-actions.pod:5829
16524 msgid ""
16525 "Note that this function cannot correctly handle binary files (specifically, "
16526 "files containing C<\\0> character which is treated as end of line).  For "
16527 "those you need to use the C<guestfs_read_file> function which has a more "
16528 "complex interface."
16529 msgstr ""
16530
16531 #. type: =head2
16532 #: ../src/guestfs-actions.pod:5840
16533 msgid "guestfs_readdir"
16534 msgstr ""
16535
16536 #. type: verbatim
16537 #: ../src/guestfs-actions.pod:5842
16538 #, no-wrap
16539 msgid ""
16540 " struct guestfs_dirent_list *\n"
16541 " guestfs_readdir (guestfs_h *g,\n"
16542 "                  const char *dir);\n"
16543 "\n"
16544 msgstr ""
16545
16546 #. type: textblock
16547 #: ../src/guestfs-actions.pod:5846 ../fish/guestfish-actions.pod:3845
16548 msgid "This returns the list of directory entries in directory C<dir>."
16549 msgstr ""
16550
16551 #. type: textblock
16552 #: ../src/guestfs-actions.pod:5848 ../fish/guestfish-actions.pod:3847
16553 msgid ""
16554 "All entries in the directory are returned, including C<.> and C<..>.  The "
16555 "entries are I<not> sorted, but returned in the same order as the underlying "
16556 "filesystem."
16557 msgstr ""
16558
16559 #. type: textblock
16560 #: ../src/guestfs-actions.pod:5852 ../fish/guestfish-actions.pod:3851
16561 msgid ""
16562 "Also this call returns basic file type information about each file.  The "
16563 "C<ftyp> field will contain one of the following characters:"
16564 msgstr ""
16565
16566 #. type: =item
16567 #: ../src/guestfs-actions.pod:5857 ../fish/guestfish-actions.pod:3856
16568 msgid "'b'"
16569 msgstr "'b'"
16570
16571 #. type: textblock
16572 #: ../src/guestfs-actions.pod:5859 ../fish/guestfish-actions.pod:3858
16573 msgid "Block special"
16574 msgstr "Блоковий особливий"
16575
16576 #. type: =item
16577 #: ../src/guestfs-actions.pod:5861 ../fish/guestfish-actions.pod:3860
16578 msgid "'c'"
16579 msgstr "'c'"
16580
16581 #. type: textblock
16582 #: ../src/guestfs-actions.pod:5863 ../fish/guestfish-actions.pod:3862
16583 msgid "Char special"
16584 msgstr "Символьний особливий"
16585
16586 #. type: =item
16587 #: ../src/guestfs-actions.pod:5865 ../fish/guestfish-actions.pod:3864
16588 msgid "'d'"
16589 msgstr "'d'"
16590
16591 #. type: textblock
16592 #: ../src/guestfs-actions.pod:5867 ../fish/guestfish-actions.pod:3866
16593 msgid "Directory"
16594 msgstr "Каталог"
16595
16596 #. type: =item
16597 #: ../src/guestfs-actions.pod:5869 ../fish/guestfish-actions.pod:3868
16598 msgid "'f'"
16599 msgstr "'f'"
16600
16601 #. type: textblock
16602 #: ../src/guestfs-actions.pod:5871 ../fish/guestfish-actions.pod:3870
16603 msgid "FIFO (named pipe)"
16604 msgstr "FIFO (іменований канал)"
16605
16606 #. type: =item
16607 #: ../src/guestfs-actions.pod:5873 ../fish/guestfish-actions.pod:3872
16608 msgid "'l'"
16609 msgstr "'l'"
16610
16611 #. type: textblock
16612 #: ../src/guestfs-actions.pod:5875 ../fish/guestfish-actions.pod:3874
16613 msgid "Symbolic link"
16614 msgstr "Символічне посилання"
16615
16616 #. type: =item
16617 #: ../src/guestfs-actions.pod:5877 ../fish/guestfish-actions.pod:3876
16618 msgid "'r'"
16619 msgstr "'r'"
16620
16621 #. type: textblock
16622 #: ../src/guestfs-actions.pod:5879 ../fish/guestfish-actions.pod:3878
16623 msgid "Regular file"
16624 msgstr "Звичайний файл"
16625
16626 #. type: =item
16627 #: ../src/guestfs-actions.pod:5881 ../fish/guestfish-actions.pod:3880
16628 msgid "'s'"
16629 msgstr "'s'"
16630
16631 #. type: textblock
16632 #: ../src/guestfs-actions.pod:5883 ../fish/guestfish-actions.pod:3882
16633 msgid "Socket"
16634 msgstr "Сокет"
16635
16636 #. type: =item
16637 #: ../src/guestfs-actions.pod:5885 ../fish/guestfish-actions.pod:3884
16638 msgid "'u'"
16639 msgstr "'u'"
16640
16641 #. type: textblock
16642 #: ../src/guestfs-actions.pod:5887 ../fish/guestfish-actions.pod:3886
16643 msgid "Unknown file type"
16644 msgstr "Невідомий тип файла"
16645
16646 #. type: =item
16647 #: ../src/guestfs-actions.pod:5889 ../fish/guestfish-actions.pod:3888
16648 msgid "'?'"
16649 msgstr ""
16650
16651 #. type: textblock
16652 #: ../src/guestfs-actions.pod:5891 ../fish/guestfish-actions.pod:3890
16653 msgid ""
16654 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
16655 msgstr ""
16656
16657 #. type: textblock
16658 #: ../src/guestfs-actions.pod:5896
16659 msgid ""
16660 "This function is primarily intended for use by programs.  To get a simple "
16661 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
16662 "consumption, use C<guestfs_ll>."
16663 msgstr ""
16664
16665 #. type: textblock
16666 #: ../src/guestfs-actions.pod:5900
16667 msgid ""
16668 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
16669 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
16670 "use>."
16671 msgstr ""
16672
16673 #. type: =head2
16674 #: ../src/guestfs-actions.pod:5906
16675 msgid "guestfs_readlink"
16676 msgstr ""
16677
16678 #. type: verbatim
16679 #: ../src/guestfs-actions.pod:5908
16680 #, no-wrap
16681 msgid ""
16682 " char *\n"
16683 " guestfs_readlink (guestfs_h *g,\n"
16684 "                   const char *path);\n"
16685 "\n"
16686 msgstr ""
16687
16688 #. type: textblock
16689 #: ../src/guestfs-actions.pod:5912 ../fish/guestfish-actions.pod:3903
16690 msgid "This command reads the target of a symbolic link."
16691 msgstr ""
16692
16693 #. type: =head2
16694 #: ../src/guestfs-actions.pod:5919
16695 msgid "guestfs_readlinklist"
16696 msgstr ""
16697
16698 #. type: verbatim
16699 #: ../src/guestfs-actions.pod:5921
16700 #, no-wrap
16701 msgid ""
16702 " char **\n"
16703 " guestfs_readlinklist (guestfs_h *g,\n"
16704 "                       const char *path,\n"
16705 "                       char *const *names);\n"
16706 "\n"
16707 msgstr ""
16708
16709 #. type: textblock
16710 #: ../src/guestfs-actions.pod:5926 ../fish/guestfish-actions.pod:3909
16711 msgid ""
16712 "This call allows you to do a C<readlink> operation on multiple files, where "
16713 "all files are in the directory C<path>.  C<names> is the list of files from "
16714 "this directory."
16715 msgstr ""
16716
16717 #. type: textblock
16718 #: ../src/guestfs-actions.pod:5930 ../fish/guestfish-actions.pod:3913
16719 msgid ""
16720 "On return you get a list of strings, with a one-to-one correspondence to the"
16721 " C<names> list.  Each string is the value of the symbolic link."
16722 msgstr ""
16723
16724 #. type: textblock
16725 #: ../src/guestfs-actions.pod:5934 ../fish/guestfish-actions.pod:3917
16726 msgid ""
16727 "If the C<readlink(2)> operation fails on any name, then the corresponding "
16728 "result string is the empty string C<\"\">.  However the whole operation is "
16729 "completed even if there were C<readlink(2)> errors, and so you can call this"
16730 " function with names where you don't know if they are symbolic links already"
16731 " (albeit slightly less efficient)."
16732 msgstr ""
16733
16734 #. type: textblock
16735 #: ../src/guestfs-actions.pod:5941 ../fish/guestfish-actions.pod:3924
16736 msgid ""
16737 "This call is intended for programs that want to efficiently list a directory"
16738 " contents without making many round-trips.  Very long directory listings "
16739 "might cause the protocol message size to be exceeded, causing this call to "
16740 "fail.  The caller must split up such requests into smaller groups of names."
16741 msgstr ""
16742
16743 #. type: =head2
16744 #: ../src/guestfs-actions.pod:5954
16745 msgid "guestfs_realpath"
16746 msgstr ""
16747
16748 #. type: verbatim
16749 #: ../src/guestfs-actions.pod:5956
16750 #, no-wrap
16751 msgid ""
16752 " char *\n"
16753 " guestfs_realpath (guestfs_h *g,\n"
16754 "                   const char *path);\n"
16755 "\n"
16756 msgstr ""
16757
16758 #. type: textblock
16759 #: ../src/guestfs-actions.pod:5960 ../fish/guestfish-actions.pod:3935
16760 msgid ""
16761 "Return the canonicalized absolute pathname of C<path>.  The returned path "
16762 "has no C<.>, C<..> or symbolic link path elements."
16763 msgstr ""
16764
16765 #. type: =head2
16766 #: ../src/guestfs-actions.pod:5968
16767 msgid "guestfs_removexattr"
16768 msgstr ""
16769
16770 #. type: verbatim
16771 #: ../src/guestfs-actions.pod:5970
16772 #, no-wrap
16773 msgid ""
16774 " int\n"
16775 " guestfs_removexattr (guestfs_h *g,\n"
16776 "                      const char *xattr,\n"
16777 "                      const char *path);\n"
16778 "\n"
16779 msgstr ""
16780
16781 #. type: textblock
16782 #: ../src/guestfs-actions.pod:5975 ../fish/guestfish-actions.pod:3942
16783 msgid ""
16784 "This call removes the extended attribute named C<xattr> of the file C<path>."
16785 msgstr ""
16786
16787 #. type: textblock
16788 #: ../src/guestfs-actions.pod:5978
16789 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
16790 msgstr ""
16791
16792 #. type: =head2
16793 #: ../src/guestfs-actions.pod:5984
16794 msgid "guestfs_resize2fs"
16795 msgstr ""
16796
16797 #. type: verbatim
16798 #: ../src/guestfs-actions.pod:5986
16799 #, no-wrap
16800 msgid ""
16801 " int\n"
16802 " guestfs_resize2fs (guestfs_h *g,\n"
16803 "                    const char *device);\n"
16804 "\n"
16805 msgstr ""
16806
16807 #. type: textblock
16808 #: ../src/guestfs-actions.pod:5990 ../fish/guestfish-actions.pod:3951
16809 msgid ""
16810 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
16811 "underlying device."
16812 msgstr ""
16813
16814 #. type: textblock
16815 #: ../src/guestfs-actions.pod:5993
16816 msgid ""
16817 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
16818 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
16819 "sometimes gives an error about this and sometimes not.  In any case, it is "
16820 "always safe to call C<guestfs_e2fsck_f> before calling this function."
16821 msgstr ""
16822
16823 #. type: =head2
16824 #: ../src/guestfs-actions.pod:6003
16825 msgid "guestfs_resize2fs_M"
16826 msgstr ""
16827
16828 #. type: verbatim
16829 #: ../src/guestfs-actions.pod:6005
16830 #, no-wrap
16831 msgid ""
16832 " int\n"
16833 " guestfs_resize2fs_M (guestfs_h *g,\n"
16834 "                      const char *device);\n"
16835 "\n"
16836 msgstr ""
16837
16838 #. type: textblock
16839 #: ../src/guestfs-actions.pod:6009
16840 msgid ""
16841 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
16842 "resized to its minimum size.  This works like the I<-M> option to the "
16843 "C<resize2fs> command."
16844 msgstr ""
16845
16846 #. type: textblock
16847 #: ../src/guestfs-actions.pod:6013
16848 msgid ""
16849 "To get the resulting size of the filesystem you should call "
16850 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
16851 "These two numbers, multiplied together, give the resulting size of the "
16852 "minimal filesystem in bytes."
16853 msgstr ""
16854
16855 #. type: =head2
16856 #: ../src/guestfs-actions.pod:6022
16857 msgid "guestfs_resize2fs_size"
16858 msgstr ""
16859
16860 #. type: verbatim
16861 #: ../src/guestfs-actions.pod:6024
16862 #, no-wrap
16863 msgid ""
16864 " int\n"
16865 " guestfs_resize2fs_size (guestfs_h *g,\n"
16866 "                         const char *device,\n"
16867 "                         int64_t size);\n"
16868 "\n"
16869 msgstr ""
16870
16871 #. type: textblock
16872 #: ../src/guestfs-actions.pod:6029
16873 msgid ""
16874 "This command is the same as C<guestfs_resize2fs> except that it allows you "
16875 "to specify the new size (in bytes) explicitly."
16876 msgstr ""
16877
16878 #. type: =head2
16879 #: ../src/guestfs-actions.pod:6036
16880 msgid "guestfs_rm"
16881 msgstr ""
16882
16883 #. type: verbatim
16884 #: ../src/guestfs-actions.pod:6038
16885 #, no-wrap
16886 msgid ""
16887 " int\n"
16888 " guestfs_rm (guestfs_h *g,\n"
16889 "             const char *path);\n"
16890 "\n"
16891 msgstr ""
16892
16893 #. type: textblock
16894 #: ../src/guestfs-actions.pod:6042 ../fish/guestfish-actions.pod:3984
16895 msgid "Remove the single file C<path>."
16896 msgstr ""
16897
16898 #. type: =head2
16899 #: ../src/guestfs-actions.pod:6048
16900 msgid "guestfs_rm_rf"
16901 msgstr ""
16902
16903 #. type: verbatim
16904 #: ../src/guestfs-actions.pod:6050
16905 #, no-wrap
16906 msgid ""
16907 " int\n"
16908 " guestfs_rm_rf (guestfs_h *g,\n"
16909 "                const char *path);\n"
16910 "\n"
16911 msgstr ""
16912
16913 #. type: textblock
16914 #: ../src/guestfs-actions.pod:6054 ../fish/guestfish-actions.pod:3990
16915 msgid ""
16916 "Remove the file or directory C<path>, recursively removing the contents if "
16917 "its a directory.  This is like the C<rm -rf> shell command."
16918 msgstr ""
16919
16920 #. type: =head2
16921 #: ../src/guestfs-actions.pod:6062
16922 msgid "guestfs_rmdir"
16923 msgstr ""
16924
16925 #. type: verbatim
16926 #: ../src/guestfs-actions.pod:6064
16927 #, no-wrap
16928 msgid ""
16929 " int\n"
16930 " guestfs_rmdir (guestfs_h *g,\n"
16931 "                const char *path);\n"
16932 "\n"
16933 msgstr ""
16934
16935 #. type: textblock
16936 #: ../src/guestfs-actions.pod:6068 ../fish/guestfish-actions.pod:3998
16937 msgid "Remove the single directory C<path>."
16938 msgstr ""
16939
16940 #. type: =head2
16941 #: ../src/guestfs-actions.pod:6074
16942 msgid "guestfs_rmmountpoint"
16943 msgstr ""
16944
16945 #. type: verbatim
16946 #: ../src/guestfs-actions.pod:6076
16947 #, no-wrap
16948 msgid ""
16949 " int\n"
16950 " guestfs_rmmountpoint (guestfs_h *g,\n"
16951 "                       const char *exemptpath);\n"
16952 "\n"
16953 msgstr ""
16954
16955 #. type: textblock
16956 #: ../src/guestfs-actions.pod:6080
16957 msgid ""
16958 "This calls removes a mountpoint that was previously created with "
16959 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
16960 msgstr ""
16961
16962 #. type: =head2
16963 #: ../src/guestfs-actions.pod:6088
16964 msgid "guestfs_scrub_device"
16965 msgstr ""
16966
16967 #. type: verbatim
16968 #: ../src/guestfs-actions.pod:6090
16969 #, no-wrap
16970 msgid ""
16971 " int\n"
16972 " guestfs_scrub_device (guestfs_h *g,\n"
16973 "                       const char *device);\n"
16974 "\n"
16975 msgstr ""
16976
16977 #. type: textblock
16978 #: ../src/guestfs-actions.pod:6094 ../fish/guestfish-actions.pod:4012
16979 msgid ""
16980 "This command writes patterns over C<device> to make data retrieval more "
16981 "difficult."
16982 msgstr ""
16983
16984 #. type: textblock
16985 #: ../src/guestfs-actions.pod:6097 ../src/guestfs-actions.pod:6118
16986 #: ../src/guestfs-actions.pod:6137 ../fish/guestfish-actions.pod:4015
16987 #: ../fish/guestfish-actions.pod:4030 ../fish/guestfish-actions.pod:4043
16988 msgid ""
16989 "It is an interface to the L<scrub(1)> program.  See that manual page for "
16990 "more details."
16991 msgstr ""
16992
16993 #. type: textblock
16994 #: ../src/guestfs-actions.pod:6105 ../src/guestfs-actions.pod:6123
16995 #: ../src/guestfs-actions.pod:6142
16996 msgid "(Added in 1.0.52)"
16997 msgstr ""
16998
16999 #. type: =head2
17000 #: ../src/guestfs-actions.pod:6107
17001 msgid "guestfs_scrub_file"
17002 msgstr ""
17003
17004 #. type: verbatim
17005 #: ../src/guestfs-actions.pod:6109
17006 #, no-wrap
17007 msgid ""
17008 " int\n"
17009 " guestfs_scrub_file (guestfs_h *g,\n"
17010 "                     const char *file);\n"
17011 "\n"
17012 msgstr ""
17013
17014 #. type: textblock
17015 #: ../src/guestfs-actions.pod:6113 ../fish/guestfish-actions.pod:4025
17016 msgid ""
17017 "This command writes patterns over a file to make data retrieval more "
17018 "difficult."
17019 msgstr ""
17020
17021 #. type: textblock
17022 #: ../src/guestfs-actions.pod:6116 ../fish/guestfish-actions.pod:4028
17023 msgid "The file is I<removed> after scrubbing."
17024 msgstr ""
17025
17026 #. type: =head2
17027 #: ../src/guestfs-actions.pod:6125
17028 msgid "guestfs_scrub_freespace"
17029 msgstr ""
17030
17031 #. type: verbatim
17032 #: ../src/guestfs-actions.pod:6127
17033 #, no-wrap
17034 msgid ""
17035 " int\n"
17036 " guestfs_scrub_freespace (guestfs_h *g,\n"
17037 "                          const char *dir);\n"
17038 "\n"
17039 msgstr ""
17040
17041 #. type: textblock
17042 #: ../src/guestfs-actions.pod:6131
17043 msgid ""
17044 "This command creates the directory C<dir> and then fills it with files until"
17045 " the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
17046 "and deletes them.  The intention is to scrub any free space on the partition"
17047 " containing C<dir>."
17048 msgstr ""
17049
17050 #. type: =head2
17051 #: ../src/guestfs-actions.pod:6144
17052 msgid "guestfs_set_append"
17053 msgstr ""
17054
17055 #. type: verbatim
17056 #: ../src/guestfs-actions.pod:6146
17057 #, no-wrap
17058 msgid ""
17059 " int\n"
17060 " guestfs_set_append (guestfs_h *g,\n"
17061 "                     const char *append);\n"
17062 "\n"
17063 msgstr ""
17064
17065 #. type: textblock
17066 #: ../src/guestfs-actions.pod:6150 ../fish/guestfish-actions.pod:4052
17067 msgid ""
17068 "This function is used to add additional options to the guest kernel command "
17069 "line."
17070 msgstr ""
17071
17072 #. type: textblock
17073 #: ../src/guestfs-actions.pod:6153 ../fish/guestfish-actions.pod:4055
17074 msgid ""
17075 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
17076 "environment variable."
17077 msgstr ""
17078
17079 #. type: textblock
17080 #: ../src/guestfs-actions.pod:6156 ../fish/guestfish-actions.pod:4058
17081 msgid ""
17082 "Setting C<append> to C<NULL> means I<no> additional options are passed "
17083 "(libguestfs always adds a few of its own)."
17084 msgstr ""
17085
17086 #. type: =head2
17087 #: ../src/guestfs-actions.pod:6163
17088 msgid "guestfs_set_attach_method"
17089 msgstr ""
17090
17091 #. type: verbatim
17092 #: ../src/guestfs-actions.pod:6165
17093 #, no-wrap
17094 msgid ""
17095 " int\n"
17096 " guestfs_set_attach_method (guestfs_h *g,\n"
17097 "                            const char *attachmethod);\n"
17098 "\n"
17099 msgstr ""
17100
17101 #. type: textblock
17102 #: ../src/guestfs-actions.pod:6169 ../fish/guestfish-actions.pod:4067
17103 msgid ""
17104 "Set the method that libguestfs uses to connect to the back end guestfsd "
17105 "daemon.  Possible methods are:"
17106 msgstr ""
17107
17108 #. type: textblock
17109 #: ../src/guestfs-actions.pod:6176 ../fish/guestfish-actions.pod:4074
17110 msgid ""
17111 "Launch an appliance and connect to it.  This is the ordinary method and the "
17112 "default."
17113 msgstr ""
17114
17115 #. type: =item
17116 #: ../src/guestfs-actions.pod:6179 ../fish/guestfish-actions.pod:4077
17117 msgid "C<unix:I<path>>"
17118 msgstr "C<unix:I<шлях>>"
17119
17120 #. type: textblock
17121 #: ../src/guestfs-actions.pod:6181 ../fish/guestfish-actions.pod:4079
17122 msgid "Connect to the Unix domain socket I<path>."
17123 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
17124
17125 #. type: textblock
17126 #: ../src/guestfs-actions.pod:6183 ../fish/guestfish-actions.pod:4081
17127 msgid ""
17128 "This method lets you connect to an existing daemon or (using virtio-serial) "
17129 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
17130 "RUNNING DAEMONS>."
17131 msgstr ""
17132
17133 #. type: =head2
17134 #: ../src/guestfs-actions.pod:6193
17135 msgid "guestfs_set_autosync"
17136 msgstr ""
17137
17138 #. type: verbatim
17139 #: ../src/guestfs-actions.pod:6195
17140 #, no-wrap
17141 msgid ""
17142 " int\n"
17143 " guestfs_set_autosync (guestfs_h *g,\n"
17144 "                       int autosync);\n"
17145 "\n"
17146 msgstr ""
17147
17148 #. type: textblock
17149 #: ../src/guestfs-actions.pod:6199 ../fish/guestfish-actions.pod:4093
17150 msgid ""
17151 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
17152 "effort attempt to make filesystems consistent and synchronized when the "
17153 "handle is closed (also if the program exits without closing handles)."
17154 msgstr ""
17155
17156 #. type: textblock
17157 #: ../src/guestfs-actions.pod:6204 ../fish/guestfish-actions.pod:4098
17158 msgid ""
17159 "This is enabled by default (since libguestfs 1.5.24, previously it was "
17160 "disabled by default)."
17161 msgstr ""
17162
17163 #. type: =head2
17164 #: ../src/guestfs-actions.pod:6211
17165 msgid "guestfs_set_direct"
17166 msgstr ""
17167
17168 #. type: verbatim
17169 #: ../src/guestfs-actions.pod:6213
17170 #, no-wrap
17171 msgid ""
17172 " int\n"
17173 " guestfs_set_direct (guestfs_h *g,\n"
17174 "                     int direct);\n"
17175 "\n"
17176 msgstr ""
17177
17178 #. type: textblock
17179 #: ../src/guestfs-actions.pod:6217 ../fish/guestfish-actions.pod:4107
17180 msgid ""
17181 "If the direct appliance mode flag is enabled, then stdin and stdout are "
17182 "passed directly through to the appliance once it is launched."
17183 msgstr ""
17184
17185 #. type: textblock
17186 #: ../src/guestfs-actions.pod:6221
17187 msgid ""
17188 "One consequence of this is that log messages aren't caught by the library "
17189 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
17190 "stdout."
17191 msgstr ""
17192
17193 #. type: textblock
17194 #: ../src/guestfs-actions.pod:6225 ../fish/guestfish-actions.pod:4115
17195 msgid ""
17196 "You probably don't want to use this unless you know what you are doing."
17197 msgstr ""
17198
17199 #. type: textblock
17200 #: ../src/guestfs-actions.pod:6228 ../fish/guestfish-actions.pod:4118
17201 msgid "The default is disabled."
17202 msgstr ""
17203
17204 #. type: =head2
17205 #: ../src/guestfs-actions.pod:6234
17206 msgid "guestfs_set_e2label"
17207 msgstr ""
17208
17209 #. type: verbatim
17210 #: ../src/guestfs-actions.pod:6236
17211 #, no-wrap
17212 msgid ""
17213 " int\n"
17214 " guestfs_set_e2label (guestfs_h *g,\n"
17215 "                      const char *device,\n"
17216 "                      const char *label);\n"
17217 "\n"
17218 msgstr ""
17219
17220 #. type: textblock
17221 #: ../src/guestfs-actions.pod:6241 ../fish/guestfish-actions.pod:4124
17222 msgid ""
17223 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
17224 "C<label>.  Filesystem labels are limited to 16 characters."
17225 msgstr ""
17226
17227 #. type: textblock
17228 #: ../src/guestfs-actions.pod:6245
17229 msgid ""
17230 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
17231 "the existing label on a filesystem."
17232 msgstr ""
17233
17234 #. type: =head2
17235 #: ../src/guestfs-actions.pod:6252
17236 msgid "guestfs_set_e2uuid"
17237 msgstr ""
17238
17239 #. type: verbatim
17240 #: ../src/guestfs-actions.pod:6254
17241 #, no-wrap
17242 msgid ""
17243 " int\n"
17244 " guestfs_set_e2uuid (guestfs_h *g,\n"
17245 "                     const char *device,\n"
17246 "                     const char *uuid);\n"
17247 "\n"
17248 msgstr ""
17249
17250 #. type: textblock
17251 #: ../src/guestfs-actions.pod:6259 ../fish/guestfish-actions.pod:4135
17252 msgid ""
17253 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
17254 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
17255 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
17256 msgstr ""
17257
17258 #. type: textblock
17259 #: ../src/guestfs-actions.pod:6264
17260 msgid ""
17261 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
17262 "the existing UUID of a filesystem."
17263 msgstr ""
17264
17265 #. type: =head2
17266 #: ../src/guestfs-actions.pod:6271
17267 msgid "guestfs_set_memsize"
17268 msgstr ""
17269
17270 #. type: verbatim
17271 #: ../src/guestfs-actions.pod:6273
17272 #, no-wrap
17273 msgid ""
17274 " int\n"
17275 " guestfs_set_memsize (guestfs_h *g,\n"
17276 "                      int memsize);\n"
17277 "\n"
17278 msgstr ""
17279
17280 #. type: textblock
17281 #: ../src/guestfs-actions.pod:6277
17282 msgid ""
17283 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
17284 "This only has any effect if called before C<guestfs_launch>."
17285 msgstr ""
17286
17287 #. type: textblock
17288 #: ../src/guestfs-actions.pod:6281 ../fish/guestfish-actions.pod:4153
17289 msgid ""
17290 "You can also change this by setting the environment variable "
17291 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
17292 msgstr ""
17293
17294 #. type: =head2
17295 #: ../src/guestfs-actions.pod:6292
17296 msgid "guestfs_set_network"
17297 msgstr ""
17298
17299 #. type: verbatim
17300 #: ../src/guestfs-actions.pod:6294
17301 #, no-wrap
17302 msgid ""
17303 " int\n"
17304 " guestfs_set_network (guestfs_h *g,\n"
17305 "                      int network);\n"
17306 "\n"
17307 msgstr ""
17308
17309 #. type: textblock
17310 #: ../src/guestfs-actions.pod:6298 ../fish/guestfish-actions.pod:4166
17311 msgid ""
17312 "If C<network> is true, then the network is enabled in the libguestfs "
17313 "appliance.  The default is false."
17314 msgstr ""
17315
17316 #. type: textblock
17317 #: ../src/guestfs-actions.pod:6301 ../fish/guestfish-actions.pod:4169
17318 msgid ""
17319 "This affects whether commands are able to access the network (see "
17320 "L<guestfs(3)/RUNNING COMMANDS>)."
17321 msgstr ""
17322
17323 #. type: textblock
17324 #: ../src/guestfs-actions.pod:6304
17325 msgid ""
17326 "You must call this before calling C<guestfs_launch>, otherwise it has no "
17327 "effect."
17328 msgstr ""
17329
17330 #. type: =head2
17331 #: ../src/guestfs-actions.pod:6311
17332 msgid "guestfs_set_path"
17333 msgstr ""
17334
17335 #. type: verbatim
17336 #: ../src/guestfs-actions.pod:6313
17337 #, no-wrap
17338 msgid ""
17339 " int\n"
17340 " guestfs_set_path (guestfs_h *g,\n"
17341 "                   const char *searchpath);\n"
17342 "\n"
17343 msgstr ""
17344
17345 #. type: textblock
17346 #: ../src/guestfs-actions.pod:6317 ../fish/guestfish-actions.pod:4181
17347 msgid "Set the path that libguestfs searches for kernel and initrd.img."
17348 msgstr ""
17349
17350 #. type: textblock
17351 #: ../src/guestfs-actions.pod:6319 ../fish/guestfish-actions.pod:4183
17352 msgid ""
17353 "The default is C<$libdir/guestfs> unless overridden by setting "
17354 "C<LIBGUESTFS_PATH> environment variable."
17355 msgstr ""
17356
17357 #. type: textblock
17358 #: ../src/guestfs-actions.pod:6322 ../fish/guestfish-actions.pod:4186
17359 msgid "Setting C<path> to C<NULL> restores the default path."
17360 msgstr ""
17361
17362 #. type: =head2
17363 #: ../src/guestfs-actions.pod:6328
17364 msgid "guestfs_set_pgroup"
17365 msgstr ""
17366
17367 #. type: verbatim
17368 #: ../src/guestfs-actions.pod:6330
17369 #, no-wrap
17370 msgid ""
17371 " int\n"
17372 " guestfs_set_pgroup (guestfs_h *g,\n"
17373 "                     int pgroup);\n"
17374 "\n"
17375 msgstr ""
17376
17377 #. type: textblock
17378 #: ../src/guestfs-actions.pod:6334 ../fish/guestfish-actions.pod:4194
17379 msgid ""
17380 "If C<pgroup> is true, child processes are placed into their own process "
17381 "group."
17382 msgstr ""
17383
17384 #. type: textblock
17385 #: ../src/guestfs-actions.pod:6337 ../fish/guestfish-actions.pod:4197
17386 msgid ""
17387 "The practical upshot of this is that signals like C<SIGINT> (from users "
17388 "pressing C<^C>) won't be received by the child process."
17389 msgstr ""
17390
17391 #. type: textblock
17392 #: ../src/guestfs-actions.pod:6340 ../fish/guestfish-actions.pod:4200
17393 msgid ""
17394 "The default for this flag is false, because usually you want C<^C> to kill "
17395 "the subprocess."
17396 msgstr ""
17397
17398 #. type: =head2
17399 #: ../src/guestfs-actions.pod:6345
17400 msgid "guestfs_set_qemu"
17401 msgstr ""
17402
17403 #. type: verbatim
17404 #: ../src/guestfs-actions.pod:6347
17405 #, no-wrap
17406 msgid ""
17407 " int\n"
17408 " guestfs_set_qemu (guestfs_h *g,\n"
17409 "                   const char *qemu);\n"
17410 "\n"
17411 msgstr ""
17412
17413 #. type: textblock
17414 #: ../src/guestfs-actions.pod:6351 ../fish/guestfish-actions.pod:4209
17415 msgid "Set the qemu binary that we will use."
17416 msgstr ""
17417
17418 #. type: textblock
17419 #: ../src/guestfs-actions.pod:6353 ../fish/guestfish-actions.pod:4211
17420 msgid ""
17421 "The default is chosen when the library was compiled by the configure script."
17422 msgstr ""
17423
17424 #. type: textblock
17425 #: ../src/guestfs-actions.pod:6356 ../fish/guestfish-actions.pod:4214
17426 msgid ""
17427 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
17428 "variable."
17429 msgstr ""
17430
17431 #. type: textblock
17432 #: ../src/guestfs-actions.pod:6359 ../fish/guestfish-actions.pod:4217
17433 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
17434 msgstr ""
17435
17436 #. type: textblock
17437 #: ../src/guestfs-actions.pod:6361 ../fish/guestfish-actions.pod:4219
17438 msgid ""
17439 "Note that you should call this function as early as possible after creating "
17440 "the handle.  This is because some pre-launch operations depend on testing "
17441 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
17442 "don't retest features, and so you might see inconsistent results.  Using the"
17443 " environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
17444 "the qemu binary at the same time as the handle is created."
17445 msgstr ""
17446
17447 #. type: =head2
17448 #: ../src/guestfs-actions.pod:6373
17449 msgid "guestfs_set_recovery_proc"
17450 msgstr ""
17451
17452 #. type: verbatim
17453 #: ../src/guestfs-actions.pod:6375
17454 #, no-wrap
17455 msgid ""
17456 " int\n"
17457 " guestfs_set_recovery_proc (guestfs_h *g,\n"
17458 "                            int recoveryproc);\n"
17459 "\n"
17460 msgstr ""
17461
17462 #. type: textblock
17463 #: ../src/guestfs-actions.pod:6379
17464 msgid ""
17465 "If this is called with the parameter C<false> then C<guestfs_launch> does "
17466 "not create a recovery process.  The purpose of the recovery process is to "
17467 "stop runaway qemu processes in the case where the main program aborts "
17468 "abruptly."
17469 msgstr ""
17470
17471 #. type: textblock
17472 #: ../src/guestfs-actions.pod:6384
17473 msgid ""
17474 "This only has any effect if called before C<guestfs_launch>, and the default"
17475 " is true."
17476 msgstr ""
17477
17478 #. type: textblock
17479 #: ../src/guestfs-actions.pod:6387 ../fish/guestfish-actions.pod:4241
17480 msgid ""
17481 "About the only time when you would want to disable this is if the main "
17482 "process will fork itself into the background (\"daemonize\" itself).  In "
17483 "this case the recovery process thinks that the main program has disappeared "
17484 "and so kills qemu, which is not very helpful."
17485 msgstr ""
17486
17487 #. type: =head2
17488 #: ../src/guestfs-actions.pod:6397
17489 msgid "guestfs_set_selinux"
17490 msgstr ""
17491
17492 #. type: verbatim
17493 #: ../src/guestfs-actions.pod:6399
17494 #, no-wrap
17495 msgid ""
17496 " int\n"
17497 " guestfs_set_selinux (guestfs_h *g,\n"
17498 "                      int selinux);\n"
17499 "\n"
17500 msgstr ""
17501
17502 #. type: textblock
17503 #: ../src/guestfs-actions.pod:6403 ../fish/guestfish-actions.pod:4253
17504 msgid ""
17505 "This sets the selinux flag that is passed to the appliance at boot time.  "
17506 "The default is C<selinux=0> (disabled)."
17507 msgstr ""
17508
17509 #. type: textblock
17510 #: ../src/guestfs-actions.pod:6406 ../fish/guestfish-actions.pod:4256
17511 msgid ""
17512 "Note that if SELinux is enabled, it is always in Permissive mode "
17513 "(C<enforcing=0>)."
17514 msgstr ""
17515
17516 #. type: =head2
17517 #: ../src/guestfs-actions.pod:6416
17518 msgid "guestfs_set_trace"
17519 msgstr ""
17520
17521 #. type: verbatim
17522 #: ../src/guestfs-actions.pod:6418
17523 #, no-wrap
17524 msgid ""
17525 " int\n"
17526 " guestfs_set_trace (guestfs_h *g,\n"
17527 "                    int trace);\n"
17528 "\n"
17529 msgstr ""
17530
17531 #. type: textblock
17532 #: ../src/guestfs-actions.pod:6422 ../fish/guestfish-actions.pod:4268
17533 msgid ""
17534 "If the command trace flag is set to 1, then libguestfs calls, parameters and"
17535 " return values are traced."
17536 msgstr ""
17537
17538 #. type: textblock
17539 #: ../src/guestfs-actions.pod:6425 ../fish/guestfish-actions.pod:4271
17540 msgid ""
17541 "If you want to trace C API calls into libguestfs (and other libraries) then "
17542 "possibly a better way is to use the external ltrace(1) command."
17543 msgstr ""
17544
17545 #. type: textblock
17546 #: ../src/guestfs-actions.pod:6429 ../fish/guestfish-actions.pod:4275
17547 msgid ""
17548 "Command traces are disabled unless the environment variable "
17549 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
17550 msgstr ""
17551
17552 #. type: textblock
17553 #: ../src/guestfs-actions.pod:6432
17554 msgid ""
17555 "Trace messages are normally sent to C<stderr>, unless you register a "
17556 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
17557 msgstr ""
17558
17559 #. type: =head2
17560 #: ../src/guestfs-actions.pod:6440
17561 msgid "guestfs_set_verbose"
17562 msgstr ""
17563
17564 #. type: verbatim
17565 #: ../src/guestfs-actions.pod:6442
17566 #, no-wrap
17567 msgid ""
17568 " int\n"
17569 " guestfs_set_verbose (guestfs_h *g,\n"
17570 "                      int verbose);\n"
17571 "\n"
17572 msgstr ""
17573
17574 #. type: textblock
17575 #: ../src/guestfs-actions.pod:6446 ../fish/guestfish-actions.pod:4288
17576 msgid "If C<verbose> is true, this turns on verbose messages."
17577 msgstr ""
17578
17579 #. type: textblock
17580 #: ../src/guestfs-actions.pod:6448 ../fish/guestfish-actions.pod:4290
17581 msgid ""
17582 "Verbose messages are disabled unless the environment variable "
17583 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
17584 msgstr ""
17585
17586 #. type: textblock
17587 #: ../src/guestfs-actions.pod:6451
17588 msgid ""
17589 "Verbose messages are normally sent to C<stderr>, unless you register a "
17590 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
17591 msgstr ""
17592
17593 #. type: =head2
17594 #: ../src/guestfs-actions.pod:6459
17595 msgid "guestfs_setcon"
17596 msgstr ""
17597
17598 #. type: verbatim
17599 #: ../src/guestfs-actions.pod:6461
17600 #, no-wrap
17601 msgid ""
17602 " int\n"
17603 " guestfs_setcon (guestfs_h *g,\n"
17604 "                 const char *context);\n"
17605 "\n"
17606 msgstr ""
17607
17608 #. type: textblock
17609 #: ../src/guestfs-actions.pod:6465 ../fish/guestfish-actions.pod:4301
17610 msgid ""
17611 "This sets the SELinux security context of the daemon to the string "
17612 "C<context>."
17613 msgstr ""
17614
17615 #. type: textblock
17616 #: ../src/guestfs-actions.pod:6468 ../fish/guestfish-actions.pod:4304
17617 msgid "See the documentation about SELINUX in L<guestfs(3)>."
17618 msgstr ""
17619
17620 #. type: =head2
17621 #: ../src/guestfs-actions.pod:6474
17622 msgid "guestfs_setxattr"
17623 msgstr ""
17624
17625 #. type: verbatim
17626 #: ../src/guestfs-actions.pod:6476
17627 #, no-wrap
17628 msgid ""
17629 " int\n"
17630 " guestfs_setxattr (guestfs_h *g,\n"
17631 "                   const char *xattr,\n"
17632 "                   const char *val,\n"
17633 "                   int vallen,\n"
17634 "                   const char *path);\n"
17635 "\n"
17636 msgstr ""
17637
17638 #. type: textblock
17639 #: ../src/guestfs-actions.pod:6483 ../fish/guestfish-actions.pod:4310
17640 msgid ""
17641 "This call sets the extended attribute named C<xattr> of the file C<path> to "
17642 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
17643 msgstr ""
17644
17645 #. type: textblock
17646 #: ../src/guestfs-actions.pod:6487
17647 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
17648 msgstr ""
17649
17650 #. type: =head2
17651 #: ../src/guestfs-actions.pod:6493
17652 msgid "guestfs_sfdisk"
17653 msgstr ""
17654
17655 #. type: verbatim
17656 #: ../src/guestfs-actions.pod:6495
17657 #, no-wrap
17658 msgid ""
17659 " int\n"
17660 " guestfs_sfdisk (guestfs_h *g,\n"
17661 "                 const char *device,\n"
17662 "                 int cyls,\n"
17663 "                 int heads,\n"
17664 "                 int sectors,\n"
17665 "                 char *const *lines);\n"
17666 "\n"
17667 msgstr ""
17668
17669 #. type: textblock
17670 #: ../src/guestfs-actions.pod:6503 ../fish/guestfish-actions.pod:4320
17671 msgid ""
17672 "This is a direct interface to the L<sfdisk(8)> program for creating "
17673 "partitions on block devices."
17674 msgstr ""
17675
17676 #. type: textblock
17677 #: ../src/guestfs-actions.pod:6506 ../fish/guestfish-actions.pod:4323
17678 msgid "C<device> should be a block device, for example C</dev/sda>."
17679 msgstr ""
17680
17681 #. type: textblock
17682 #: ../src/guestfs-actions.pod:6508 ../fish/guestfish-actions.pod:4325
17683 msgid ""
17684 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
17685 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
17686 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
17687 "corresponding parameter is omitted.  Usually for 'large' disks, you can just"
17688 " pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather,"
17689 " the kernel) cannot work out the right geometry and you will need to tell "
17690 "it."
17691 msgstr ""
17692
17693 #. type: textblock
17694 #: ../src/guestfs-actions.pod:6516 ../fish/guestfish-actions.pod:4333
17695 msgid ""
17696 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information"
17697 " refer to the L<sfdisk(8)> manpage."
17698 msgstr ""
17699
17700 #. type: textblock
17701 #: ../src/guestfs-actions.pod:6519 ../fish/guestfish-actions.pod:4336
17702 msgid ""
17703 "To create a single partition occupying the whole disk, you would pass "
17704 "C<lines> as a single element list, when the single element being the string "
17705 "C<,> (comma)."
17706 msgstr ""
17707
17708 #. type: textblock
17709 #: ../src/guestfs-actions.pod:6523
17710 msgid ""
17711 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
17712 msgstr ""
17713
17714 #. type: textblock
17715 #: ../src/guestfs-actions.pod:6531 ../src/guestfs-actions.pod:6561
17716 #: ../src/guestfs-actions.pod:6594 ../fish/guestfish-actions.pod:4346
17717 #: ../fish/guestfish-actions.pod:4369 ../fish/guestfish-actions.pod:4391
17718 msgid ""
17719 "This function is deprecated.  In new code, use the C<part_add> call instead."
17720 msgstr ""
17721
17722 #. type: =head2
17723 #: ../src/guestfs-actions.pod:6540
17724 msgid "guestfs_sfdiskM"
17725 msgstr ""
17726
17727 #. type: verbatim
17728 #: ../src/guestfs-actions.pod:6542
17729 #, no-wrap
17730 msgid ""
17731 " int\n"
17732 " guestfs_sfdiskM (guestfs_h *g,\n"
17733 "                  const char *device,\n"
17734 "                  char *const *lines);\n"
17735 "\n"
17736 msgstr ""
17737
17738 #. type: textblock
17739 #: ../src/guestfs-actions.pod:6547
17740 msgid ""
17741 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
17742 "partition sizes are specified in megabytes only (rounded to the nearest "
17743 "cylinder) and you don't need to specify the cyls, heads and sectors "
17744 "parameters which were rarely if ever used anyway."
17745 msgstr ""
17746
17747 #. type: textblock
17748 #: ../src/guestfs-actions.pod:6553
17749 msgid ""
17750 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
17751 "C<guestfs_part_disk>"
17752 msgstr ""
17753
17754 #. type: =head2
17755 #: ../src/guestfs-actions.pod:6570
17756 msgid "guestfs_sfdisk_N"
17757 msgstr ""
17758
17759 #. type: verbatim
17760 #: ../src/guestfs-actions.pod:6572
17761 #, no-wrap
17762 msgid ""
17763 " int\n"
17764 " guestfs_sfdisk_N (guestfs_h *g,\n"
17765 "                   const char *device,\n"
17766 "                   int partnum,\n"
17767 "                   int cyls,\n"
17768 "                   int heads,\n"
17769 "                   int sectors,\n"
17770 "                   const char *line);\n"
17771 "\n"
17772 msgstr ""
17773
17774 #. type: textblock
17775 #: ../src/guestfs-actions.pod:6581 ../fish/guestfish-actions.pod:4380
17776 msgid ""
17777 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
17778 "(note: C<n> counts from 1)."
17779 msgstr ""
17780
17781 #. type: textblock
17782 #: ../src/guestfs-actions.pod:6584
17783 msgid ""
17784 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
17785 "for the cyls/heads/sectors parameters."
17786 msgstr ""
17787
17788 #. type: textblock
17789 #: ../src/guestfs-actions.pod:6587
17790 msgid "See also: C<guestfs_part_add>"
17791 msgstr ""
17792
17793 #. type: =head2
17794 #: ../src/guestfs-actions.pod:6603
17795 msgid "guestfs_sfdisk_disk_geometry"
17796 msgstr ""
17797
17798 #. type: verbatim
17799 #: ../src/guestfs-actions.pod:6605
17800 #, no-wrap
17801 msgid ""
17802 " char *\n"
17803 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
17804 "                               const char *device);\n"
17805 "\n"
17806 msgstr ""
17807
17808 #. type: textblock
17809 #: ../src/guestfs-actions.pod:6609
17810 msgid ""
17811 "This displays the disk geometry of C<device> read from the partition table."
17812 "  Especially in the case where the underlying block device has been resized,"
17813 " this can be different from the kernel's idea of the geometry (see "
17814 "C<guestfs_sfdisk_kernel_geometry>)."
17815 msgstr ""
17816
17817 #. type: textblock
17818 #: ../src/guestfs-actions.pod:6614 ../src/guestfs-actions.pod:6630
17819 #: ../fish/guestfish-actions.pod:4407 ../fish/guestfish-actions.pod:4416
17820 msgid "The result is in human-readable format, and not designed to be parsed."
17821 msgstr ""
17822
17823 #. type: =head2
17824 #: ../src/guestfs-actions.pod:6622
17825 msgid "guestfs_sfdisk_kernel_geometry"
17826 msgstr ""
17827
17828 #. type: verbatim
17829 #: ../src/guestfs-actions.pod:6624
17830 #, no-wrap
17831 msgid ""
17832 " char *\n"
17833 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
17834 "                                 const char *device);\n"
17835 "\n"
17836 msgstr ""
17837
17838 #. type: textblock
17839 #: ../src/guestfs-actions.pod:6628 ../fish/guestfish-actions.pod:4414
17840 msgid "This displays the kernel's idea of the geometry of C<device>."
17841 msgstr ""
17842
17843 #. type: =head2
17844 #: ../src/guestfs-actions.pod:6638
17845 msgid "guestfs_sfdisk_l"
17846 msgstr ""
17847
17848 #. type: verbatim
17849 #: ../src/guestfs-actions.pod:6640
17850 #, no-wrap
17851 msgid ""
17852 " char *\n"
17853 " guestfs_sfdisk_l (guestfs_h *g,\n"
17854 "                   const char *device);\n"
17855 "\n"
17856 msgstr ""
17857
17858 #. type: textblock
17859 #: ../src/guestfs-actions.pod:6644 ../fish/guestfish-actions.pod:4423
17860 msgid ""
17861 "This displays the partition table on C<device>, in the human-readable output"
17862 " of the L<sfdisk(8)> command.  It is not intended to be parsed."
17863 msgstr ""
17864
17865 #. type: textblock
17866 #: ../src/guestfs-actions.pod:6648
17867 msgid "See also: C<guestfs_part_list>"
17868 msgstr ""
17869
17870 #. type: textblock
17871 #: ../src/guestfs-actions.pod:6653 ../fish/guestfish-actions.pod:4429
17872 msgid ""
17873 "This function is deprecated.  In new code, use the C<part_list> call "
17874 "instead."
17875 msgstr ""
17876
17877 #. type: =head2
17878 #: ../src/guestfs-actions.pod:6662
17879 msgid "guestfs_sh"
17880 msgstr ""
17881
17882 #. type: verbatim
17883 #: ../src/guestfs-actions.pod:6664
17884 #, no-wrap
17885 msgid ""
17886 " char *\n"
17887 " guestfs_sh (guestfs_h *g,\n"
17888 "             const char *command);\n"
17889 "\n"
17890 msgstr ""
17891
17892 #. type: textblock
17893 #: ../src/guestfs-actions.pod:6668 ../fish/guestfish-actions.pod:4440
17894 msgid ""
17895 "This call runs a command from the guest filesystem via the guest's "
17896 "C</bin/sh>."
17897 msgstr ""
17898
17899 #. type: textblock
17900 #: ../src/guestfs-actions.pod:6671
17901 msgid "This is like C<guestfs_command>, but passes the command to:"
17902 msgstr ""
17903
17904 #. type: verbatim
17905 #: ../src/guestfs-actions.pod:6673 ../fish/guestfish-actions.pod:4445
17906 #, no-wrap
17907 msgid ""
17908 " /bin/sh -c \"command\"\n"
17909 "\n"
17910 msgstr ""
17911
17912 #. type: textblock
17913 #: ../src/guestfs-actions.pod:6675 ../fish/guestfish-actions.pod:4447
17914 msgid ""
17915 "Depending on the guest's shell, this usually results in wildcards being "
17916 "expanded, shell expressions being interpolated and so on."
17917 msgstr ""
17918
17919 #. type: textblock
17920 #: ../src/guestfs-actions.pod:6679
17921 msgid "All the provisos about C<guestfs_command> apply to this call."
17922 msgstr ""
17923
17924 #. type: =head2
17925 #: ../src/guestfs-actions.pod:6686
17926 msgid "guestfs_sh_lines"
17927 msgstr ""
17928
17929 #. type: verbatim
17930 #: ../src/guestfs-actions.pod:6688
17931 #, no-wrap
17932 msgid ""
17933 " char **\n"
17934 " guestfs_sh_lines (guestfs_h *g,\n"
17935 "                   const char *command);\n"
17936 "\n"
17937 msgstr ""
17938
17939 #. type: textblock
17940 #: ../src/guestfs-actions.pod:6692
17941 msgid ""
17942 "This is the same as C<guestfs_sh>, but splits the result into a list of "
17943 "lines."
17944 msgstr ""
17945
17946 #. type: textblock
17947 #: ../src/guestfs-actions.pod:6695
17948 msgid "See also: C<guestfs_command_lines>"
17949 msgstr ""
17950
17951 #. type: =head2
17952 #: ../src/guestfs-actions.pod:6703
17953 msgid "guestfs_sleep"
17954 msgstr ""
17955
17956 #. type: verbatim
17957 #: ../src/guestfs-actions.pod:6705
17958 #, no-wrap
17959 msgid ""
17960 " int\n"
17961 " guestfs_sleep (guestfs_h *g,\n"
17962 "                int secs);\n"
17963 "\n"
17964 msgstr ""
17965
17966 #. type: textblock
17967 #: ../src/guestfs-actions.pod:6709 ../fish/guestfish-actions.pod:4466
17968 msgid "Sleep for C<secs> seconds."
17969 msgstr ""
17970
17971 #. type: textblock
17972 #: ../src/guestfs-actions.pod:6713
17973 msgid "(Added in 1.0.41)"
17974 msgstr ""
17975
17976 #. type: =head2
17977 #: ../src/guestfs-actions.pod:6715 ../src/guestfs-structs.pod:109
17978 msgid "guestfs_stat"
17979 msgstr ""
17980
17981 #. type: verbatim
17982 #: ../src/guestfs-actions.pod:6717
17983 #, no-wrap
17984 msgid ""
17985 " struct guestfs_stat *\n"
17986 " guestfs_stat (guestfs_h *g,\n"
17987 "               const char *path);\n"
17988 "\n"
17989 msgstr ""
17990
17991 #. type: textblock
17992 #: ../src/guestfs-actions.pod:6723 ../fish/guestfish-actions.pod:4474
17993 msgid "This is the same as the C<stat(2)> system call."
17994 msgstr ""
17995
17996 #. type: =head2
17997 #: ../src/guestfs-actions.pod:6731 ../src/guestfs-structs.pod:135
17998 msgid "guestfs_statvfs"
17999 msgstr ""
18000
18001 #. type: verbatim
18002 #: ../src/guestfs-actions.pod:6733
18003 #, no-wrap
18004 msgid ""
18005 " struct guestfs_statvfs *\n"
18006 " guestfs_statvfs (guestfs_h *g,\n"
18007 "                  const char *path);\n"
18008 "\n"
18009 msgstr ""
18010
18011 #. type: textblock
18012 #: ../src/guestfs-actions.pod:6737 ../fish/guestfish-actions.pod:4480
18013 msgid ""
18014 "Returns file system statistics for any mounted file system.  C<path> should "
18015 "be a file or directory in the mounted file system (typically it is the mount"
18016 " point itself, but it doesn't need to be)."
18017 msgstr ""
18018
18019 #. type: textblock
18020 #: ../src/guestfs-actions.pod:6741 ../fish/guestfish-actions.pod:4484
18021 msgid "This is the same as the C<statvfs(2)> system call."
18022 msgstr ""
18023
18024 #. type: textblock
18025 #: ../src/guestfs-actions.pod:6743
18026 msgid ""
18027 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an"
18028 " error.  I<The caller must call C<guestfs_free_statvfs> after use>."
18029 msgstr ""
18030
18031 #. type: =head2
18032 #: ../src/guestfs-actions.pod:6749
18033 msgid "guestfs_strings"
18034 msgstr ""
18035
18036 #. type: verbatim
18037 #: ../src/guestfs-actions.pod:6751
18038 #, no-wrap
18039 msgid ""
18040 " char **\n"
18041 " guestfs_strings (guestfs_h *g,\n"
18042 "                  const char *path);\n"
18043 "\n"
18044 msgstr ""
18045
18046 #. type: textblock
18047 #: ../src/guestfs-actions.pod:6755 ../fish/guestfish-actions.pod:4490
18048 msgid ""
18049 "This runs the L<strings(1)> command on a file and returns the list of "
18050 "printable strings found."
18051 msgstr ""
18052
18053 #. type: =head2
18054 #: ../src/guestfs-actions.pod:6767
18055 msgid "guestfs_strings_e"
18056 msgstr ""
18057
18058 #. type: verbatim
18059 #: ../src/guestfs-actions.pod:6769
18060 #, no-wrap
18061 msgid ""
18062 " char **\n"
18063 " guestfs_strings_e (guestfs_h *g,\n"
18064 "                    const char *encoding,\n"
18065 "                    const char *path);\n"
18066 "\n"
18067 msgstr ""
18068
18069 #. type: textblock
18070 #: ../src/guestfs-actions.pod:6774
18071 msgid ""
18072 "This is like the C<guestfs_strings> command, but allows you to specify the "
18073 "encoding of strings that are looked for in the source file C<path>."
18074 msgstr ""
18075
18076 #. type: textblock
18077 #: ../src/guestfs-actions.pod:6778 ../fish/guestfish-actions.pod:4504
18078 msgid "Allowed encodings are:"
18079 msgstr "Можливими кодуваннями є:"
18080
18081 #. type: =item
18082 #: ../src/guestfs-actions.pod:6782 ../fish/guestfish-actions.pod:4508
18083 msgid "s"
18084 msgstr "s"
18085
18086 #. type: textblock
18087 #: ../src/guestfs-actions.pod:6784
18088 msgid ""
18089 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
18090 "ISO-8859-X (this is what C<guestfs_strings> uses)."
18091 msgstr ""
18092
18093 #. type: =item
18094 #: ../src/guestfs-actions.pod:6787 ../fish/guestfish-actions.pod:4513
18095 msgid "S"
18096 msgstr "S"
18097
18098 #. type: textblock
18099 #: ../src/guestfs-actions.pod:6789 ../fish/guestfish-actions.pod:4515
18100 msgid "Single 8-bit-byte characters."
18101 msgstr "Окремі 8-бітові-байтові символи."
18102
18103 #. type: =item
18104 #: ../src/guestfs-actions.pod:6791 ../fish/guestfish-actions.pod:4517
18105 msgid "b"
18106 msgstr "b"
18107
18108 #. type: textblock
18109 #: ../src/guestfs-actions.pod:6793 ../fish/guestfish-actions.pod:4519
18110 msgid ""
18111 "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
18112 msgstr ""
18113
18114 #. type: =item
18115 #: ../src/guestfs-actions.pod:6796 ../fish/guestfish-actions.pod:4522
18116 msgid "l (lower case letter L)"
18117 msgstr ""
18118
18119 #. type: textblock
18120 #: ../src/guestfs-actions.pod:6798 ../fish/guestfish-actions.pod:4524
18121 msgid ""
18122 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
18123 "examining binaries in Windows guests."
18124 msgstr ""
18125
18126 #. type: =item
18127 #: ../src/guestfs-actions.pod:6801 ../fish/guestfish-actions.pod:4527
18128 msgid "B"
18129 msgstr "B"
18130
18131 #. type: textblock
18132 #: ../src/guestfs-actions.pod:6803 ../fish/guestfish-actions.pod:4529
18133 msgid "32-bit big endian such as UCS-4BE."
18134 msgstr ""
18135
18136 #. type: =item
18137 #: ../src/guestfs-actions.pod:6805 ../fish/guestfish-actions.pod:4531
18138 msgid "L"
18139 msgstr "L"
18140
18141 #. type: textblock
18142 #: ../src/guestfs-actions.pod:6807 ../fish/guestfish-actions.pod:4533
18143 msgid "32-bit little endian such as UCS-4LE."
18144 msgstr ""
18145
18146 #. type: textblock
18147 #: ../src/guestfs-actions.pod:6811 ../fish/guestfish-actions.pod:4537
18148 msgid "The returned strings are transcoded to UTF-8."
18149 msgstr ""
18150
18151 #. type: =head2
18152 #: ../src/guestfs-actions.pod:6822
18153 msgid "guestfs_swapoff_device"
18154 msgstr ""
18155
18156 #. type: verbatim
18157 #: ../src/guestfs-actions.pod:6824
18158 #, no-wrap
18159 msgid ""
18160 " int\n"
18161 " guestfs_swapoff_device (guestfs_h *g,\n"
18162 "                         const char *device);\n"
18163 "\n"
18164 msgstr ""
18165
18166 #. type: textblock
18167 #: ../src/guestfs-actions.pod:6828
18168 msgid ""
18169 "This command disables the libguestfs appliance swap device or partition "
18170 "named C<device>.  See C<guestfs_swapon_device>."
18171 msgstr ""
18172
18173 #. type: =head2
18174 #: ../src/guestfs-actions.pod:6836
18175 msgid "guestfs_swapoff_file"
18176 msgstr ""
18177
18178 #. type: verbatim
18179 #: ../src/guestfs-actions.pod:6838
18180 #, no-wrap
18181 msgid ""
18182 " int\n"
18183 " guestfs_swapoff_file (guestfs_h *g,\n"
18184 "                       const char *file);\n"
18185 "\n"
18186 msgstr ""
18187
18188 #. type: textblock
18189 #: ../src/guestfs-actions.pod:6842 ../fish/guestfish-actions.pod:4554
18190 msgid "This command disables the libguestfs appliance swap on file."
18191 msgstr ""
18192
18193 #. type: =head2
18194 #: ../src/guestfs-actions.pod:6848
18195 msgid "guestfs_swapoff_label"
18196 msgstr ""
18197
18198 #. type: verbatim
18199 #: ../src/guestfs-actions.pod:6850
18200 #, no-wrap
18201 msgid ""
18202 " int\n"
18203 " guestfs_swapoff_label (guestfs_h *g,\n"
18204 "                        const char *label);\n"
18205 "\n"
18206 msgstr ""
18207
18208 #. type: textblock
18209 #: ../src/guestfs-actions.pod:6854 ../fish/guestfish-actions.pod:4560
18210 msgid ""
18211 "This command disables the libguestfs appliance swap on labeled swap "
18212 "partition."
18213 msgstr ""
18214
18215 #. type: =head2
18216 #: ../src/guestfs-actions.pod:6861
18217 msgid "guestfs_swapoff_uuid"
18218 msgstr ""
18219
18220 #. type: verbatim
18221 #: ../src/guestfs-actions.pod:6863
18222 #, no-wrap
18223 msgid ""
18224 " int\n"
18225 " guestfs_swapoff_uuid (guestfs_h *g,\n"
18226 "                       const char *uuid);\n"
18227 "\n"
18228 msgstr ""
18229
18230 #. type: textblock
18231 #: ../src/guestfs-actions.pod:6867 ../fish/guestfish-actions.pod:4567
18232 msgid ""
18233 "This command disables the libguestfs appliance swap partition with the given"
18234 " UUID."
18235 msgstr ""
18236
18237 #. type: =head2
18238 #: ../src/guestfs-actions.pod:6874
18239 msgid "guestfs_swapon_device"
18240 msgstr ""
18241
18242 #. type: verbatim
18243 #: ../src/guestfs-actions.pod:6876
18244 #, no-wrap
18245 msgid ""
18246 " int\n"
18247 " guestfs_swapon_device (guestfs_h *g,\n"
18248 "                        const char *device);\n"
18249 "\n"
18250 msgstr ""
18251
18252 #. type: textblock
18253 #: ../src/guestfs-actions.pod:6880
18254 msgid ""
18255 "This command enables the libguestfs appliance to use the swap device or "
18256 "partition named C<device>.  The increased memory is made available for all "
18257 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
18258 msgstr ""
18259
18260 #. type: textblock
18261 #: ../src/guestfs-actions.pod:6885 ../fish/guestfish-actions.pod:4579
18262 msgid ""
18263 "Note that you should not swap to existing guest swap partitions unless you "
18264 "know what you are doing.  They may contain hibernation information, or other"
18265 " information that the guest doesn't want you to trash.  You also risk "
18266 "leaking information about the host to the guest this way.  Instead, attach a"
18267 " new host device to the guest and swap on that."
18268 msgstr ""
18269
18270 #. type: =head2
18271 #: ../src/guestfs-actions.pod:6896
18272 msgid "guestfs_swapon_file"
18273 msgstr ""
18274
18275 #. type: verbatim
18276 #: ../src/guestfs-actions.pod:6898
18277 #, no-wrap
18278 msgid ""
18279 " int\n"
18280 " guestfs_swapon_file (guestfs_h *g,\n"
18281 "                      const char *file);\n"
18282 "\n"
18283 msgstr ""
18284
18285 #. type: textblock
18286 #: ../src/guestfs-actions.pod:6902
18287 msgid ""
18288 "This command enables swap to a file.  See C<guestfs_swapon_device> for other"
18289 " notes."
18290 msgstr ""
18291
18292 #. type: =head2
18293 #: ../src/guestfs-actions.pod:6909
18294 msgid "guestfs_swapon_label"
18295 msgstr ""
18296
18297 #. type: verbatim
18298 #: ../src/guestfs-actions.pod:6911
18299 #, no-wrap
18300 msgid ""
18301 " int\n"
18302 " guestfs_swapon_label (guestfs_h *g,\n"
18303 "                       const char *label);\n"
18304 "\n"
18305 msgstr ""
18306
18307 #. type: textblock
18308 #: ../src/guestfs-actions.pod:6915
18309 msgid ""
18310 "This command enables swap to a labeled swap partition.  See "
18311 "C<guestfs_swapon_device> for other notes."
18312 msgstr ""
18313
18314 #. type: =head2
18315 #: ../src/guestfs-actions.pod:6922
18316 msgid "guestfs_swapon_uuid"
18317 msgstr ""
18318
18319 #. type: verbatim
18320 #: ../src/guestfs-actions.pod:6924
18321 #, no-wrap
18322 msgid ""
18323 " int\n"
18324 " guestfs_swapon_uuid (guestfs_h *g,\n"
18325 "                      const char *uuid);\n"
18326 "\n"
18327 msgstr ""
18328
18329 #. type: textblock
18330 #: ../src/guestfs-actions.pod:6928
18331 msgid ""
18332 "This command enables swap to a swap partition with the given UUID.  See "
18333 "C<guestfs_swapon_device> for other notes."
18334 msgstr ""
18335
18336 #. type: =head2
18337 #: ../src/guestfs-actions.pod:6935
18338 msgid "guestfs_sync"
18339 msgstr ""
18340
18341 #. type: verbatim
18342 #: ../src/guestfs-actions.pod:6937
18343 #, no-wrap
18344 msgid ""
18345 " int\n"
18346 " guestfs_sync (guestfs_h *g);\n"
18347 "\n"
18348 msgstr ""
18349
18350 #. type: textblock
18351 #: ../src/guestfs-actions.pod:6940 ../fish/guestfish-actions.pod:4611
18352 msgid ""
18353 "This syncs the disk, so that any writes are flushed through to the "
18354 "underlying disk image."
18355 msgstr ""
18356
18357 #. type: textblock
18358 #: ../src/guestfs-actions.pod:6943 ../fish/guestfish-actions.pod:4614
18359 msgid ""
18360 "You should always call this if you have modified a disk image, before "
18361 "closing the handle."
18362 msgstr ""
18363
18364 #. type: =head2
18365 #: ../src/guestfs-actions.pod:6950
18366 msgid "guestfs_tail"
18367 msgstr ""
18368
18369 #. type: verbatim
18370 #: ../src/guestfs-actions.pod:6952
18371 #, no-wrap
18372 msgid ""
18373 " char **\n"
18374 " guestfs_tail (guestfs_h *g,\n"
18375 "               const char *path);\n"
18376 "\n"
18377 msgstr ""
18378
18379 #. type: textblock
18380 #: ../src/guestfs-actions.pod:6956 ../fish/guestfish-actions.pod:4621
18381 msgid ""
18382 "This command returns up to the last 10 lines of a file as a list of strings."
18383 msgstr ""
18384
18385 #. type: =head2
18386 #: ../src/guestfs-actions.pod:6968
18387 msgid "guestfs_tail_n"
18388 msgstr ""
18389
18390 #. type: verbatim
18391 #: ../src/guestfs-actions.pod:6970
18392 #, no-wrap
18393 msgid ""
18394 " char **\n"
18395 " guestfs_tail_n (guestfs_h *g,\n"
18396 "                 int nrlines,\n"
18397 "                 const char *path);\n"
18398 "\n"
18399 msgstr ""
18400
18401 #. type: textblock
18402 #: ../src/guestfs-actions.pod:6975 ../fish/guestfish-actions.pod:4631
18403 msgid ""
18404 "If the parameter C<nrlines> is a positive number, this returns the last "
18405 "C<nrlines> lines of the file C<path>."
18406 msgstr ""
18407
18408 #. type: textblock
18409 #: ../src/guestfs-actions.pod:6978 ../fish/guestfish-actions.pod:4634
18410 msgid ""
18411 "If the parameter C<nrlines> is a negative number, this returns lines from "
18412 "the file C<path>, starting with the C<-nrlines>th line."
18413 msgstr ""
18414
18415 #. type: =head2
18416 #: ../src/guestfs-actions.pod:6992
18417 msgid "guestfs_tar_in"
18418 msgstr ""
18419
18420 #. type: verbatim
18421 #: ../src/guestfs-actions.pod:6994
18422 #, no-wrap
18423 msgid ""
18424 " int\n"
18425 " guestfs_tar_in (guestfs_h *g,\n"
18426 "                 const char *tarfile,\n"
18427 "                 const char *directory);\n"
18428 "\n"
18429 msgstr ""
18430
18431 #. type: textblock
18432 #: ../src/guestfs-actions.pod:6999 ../fish/guestfish-actions.pod:4646
18433 msgid ""
18434 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
18435 "tar file) into C<directory>."
18436 msgstr ""
18437
18438 #. type: textblock
18439 #: ../src/guestfs-actions.pod:7002
18440 msgid ""
18441 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
18442 msgstr ""
18443
18444 #. type: textblock
18445 #: ../src/guestfs-actions.pod:7007 ../src/guestfs-actions.pod:7024
18446 #: ../src/guestfs-actions.pod:7040 ../src/guestfs-actions.pod:7056
18447 msgid "(Added in 1.0.3)"
18448 msgstr ""
18449
18450 #. type: =head2
18451 #: ../src/guestfs-actions.pod:7009
18452 msgid "guestfs_tar_out"
18453 msgstr ""
18454
18455 #. type: verbatim
18456 #: ../src/guestfs-actions.pod:7011
18457 #, no-wrap
18458 msgid ""
18459 " int\n"
18460 " guestfs_tar_out (guestfs_h *g,\n"
18461 "                  const char *directory,\n"
18462 "                  const char *tarfile);\n"
18463 "\n"
18464 msgstr ""
18465
18466 #. type: textblock
18467 #: ../src/guestfs-actions.pod:7016 ../fish/guestfish-actions.pod:4658
18468 msgid ""
18469 "This command packs the contents of C<directory> and downloads it to local "
18470 "file C<tarfile>."
18471 msgstr ""
18472
18473 #. type: textblock
18474 #: ../src/guestfs-actions.pod:7019
18475 msgid ""
18476 "To download a compressed tarball, use C<guestfs_tgz_out> or "
18477 "C<guestfs_txz_out>."
18478 msgstr ""
18479
18480 #. type: =head2
18481 #: ../src/guestfs-actions.pod:7026
18482 msgid "guestfs_tgz_in"
18483 msgstr ""
18484
18485 #. type: verbatim
18486 #: ../src/guestfs-actions.pod:7028
18487 #, no-wrap
18488 msgid ""
18489 " int\n"
18490 " guestfs_tgz_in (guestfs_h *g,\n"
18491 "                 const char *tarball,\n"
18492 "                 const char *directory);\n"
18493 "\n"
18494 msgstr ""
18495
18496 #. type: textblock
18497 #: ../src/guestfs-actions.pod:7033 ../fish/guestfish-actions.pod:4670
18498 msgid ""
18499 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed>"
18500 " tar file) into C<directory>."
18501 msgstr ""
18502
18503 #. type: textblock
18504 #: ../src/guestfs-actions.pod:7036
18505 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
18506 msgstr ""
18507
18508 #. type: =head2
18509 #: ../src/guestfs-actions.pod:7042
18510 msgid "guestfs_tgz_out"
18511 msgstr ""
18512
18513 #. type: verbatim
18514 #: ../src/guestfs-actions.pod:7044
18515 #, no-wrap
18516 msgid ""
18517 " int\n"
18518 " guestfs_tgz_out (guestfs_h *g,\n"
18519 "                  const char *directory,\n"
18520 "                  const char *tarball);\n"
18521 "\n"
18522 msgstr ""
18523
18524 #. type: textblock
18525 #: ../src/guestfs-actions.pod:7049 ../fish/guestfish-actions.pod:4681
18526 msgid ""
18527 "This command packs the contents of C<directory> and downloads it to local "
18528 "file C<tarball>."
18529 msgstr ""
18530
18531 #. type: textblock
18532 #: ../src/guestfs-actions.pod:7052
18533 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
18534 msgstr ""
18535
18536 #. type: =head2
18537 #: ../src/guestfs-actions.pod:7058
18538 msgid "guestfs_touch"
18539 msgstr ""
18540
18541 #. type: verbatim
18542 #: ../src/guestfs-actions.pod:7060
18543 #, no-wrap
18544 msgid ""
18545 " int\n"
18546 " guestfs_touch (guestfs_h *g,\n"
18547 "                const char *path);\n"
18548 "\n"
18549 msgstr ""
18550
18551 #. type: textblock
18552 #: ../src/guestfs-actions.pod:7064 ../fish/guestfish-actions.pod:4692
18553 msgid ""
18554 "Touch acts like the L<touch(1)> command.  It can be used to update the "
18555 "timestamps on a file, or, if the file does not exist, to create a new zero-"
18556 "length file."
18557 msgstr ""
18558
18559 #. type: textblock
18560 #: ../src/guestfs-actions.pod:7068 ../fish/guestfish-actions.pod:4696
18561 msgid ""
18562 "This command only works on regular files, and will fail on other file types "
18563 "such as directories, symbolic links, block special etc."
18564 msgstr ""
18565
18566 #. type: =head2
18567 #: ../src/guestfs-actions.pod:7075
18568 msgid "guestfs_truncate"
18569 msgstr ""
18570
18571 #. type: verbatim
18572 #: ../src/guestfs-actions.pod:7077
18573 #, no-wrap
18574 msgid ""
18575 " int\n"
18576 " guestfs_truncate (guestfs_h *g,\n"
18577 "                   const char *path);\n"
18578 "\n"
18579 msgstr ""
18580
18581 #. type: textblock
18582 #: ../src/guestfs-actions.pod:7081 ../fish/guestfish-actions.pod:4703
18583 msgid ""
18584 "This command truncates C<path> to a zero-length file.  The file must exist "
18585 "already."
18586 msgstr ""
18587
18588 #. type: =head2
18589 #: ../src/guestfs-actions.pod:7088
18590 msgid "guestfs_truncate_size"
18591 msgstr ""
18592
18593 #. type: verbatim
18594 #: ../src/guestfs-actions.pod:7090
18595 #, no-wrap
18596 msgid ""
18597 " int\n"
18598 " guestfs_truncate_size (guestfs_h *g,\n"
18599 "                        const char *path,\n"
18600 "                        int64_t size);\n"
18601 "\n"
18602 msgstr ""
18603
18604 #. type: textblock
18605 #: ../src/guestfs-actions.pod:7095 ../fish/guestfish-actions.pod:4710
18606 msgid ""
18607 "This command truncates C<path> to size C<size> bytes.  The file must exist "
18608 "already."
18609 msgstr ""
18610
18611 #. type: textblock
18612 #: ../src/guestfs-actions.pod:7098
18613 msgid ""
18614 "If the current file size is less than C<size> then the file is extended to "
18615 "the required size with zero bytes.  This creates a sparse file (ie. disk "
18616 "blocks are not allocated for the file until you write to it).  To create a "
18617 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
18618 msgstr ""
18619
18620 #. type: =head2
18621 #: ../src/guestfs-actions.pod:7108
18622 msgid "guestfs_tune2fs_l"
18623 msgstr ""
18624
18625 #. type: verbatim
18626 #: ../src/guestfs-actions.pod:7110
18627 #, no-wrap
18628 msgid ""
18629 " char **\n"
18630 " guestfs_tune2fs_l (guestfs_h *g,\n"
18631 "                    const char *device);\n"
18632 "\n"
18633 msgstr ""
18634
18635 #. type: textblock
18636 #: ../src/guestfs-actions.pod:7114 ../fish/guestfish-actions.pod:4723
18637 msgid ""
18638 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on"
18639 " C<device>."
18640 msgstr ""
18641
18642 #. type: textblock
18643 #: ../src/guestfs-actions.pod:7117 ../fish/guestfish-actions.pod:4726
18644 msgid ""
18645 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
18646 "for more details.  The list of fields returned isn't clearly defined, and "
18647 "depends on both the version of C<tune2fs> that libguestfs was built against,"
18648 " and the filesystem itself."
18649 msgstr ""
18650
18651 #. type: =head2
18652 #: ../src/guestfs-actions.pod:7130
18653 msgid "guestfs_txz_in"
18654 msgstr ""
18655
18656 #. type: verbatim
18657 #: ../src/guestfs-actions.pod:7132
18658 #, no-wrap
18659 msgid ""
18660 " int\n"
18661 " guestfs_txz_in (guestfs_h *g,\n"
18662 "                 const char *tarball,\n"
18663 "                 const char *directory);\n"
18664 "\n"
18665 msgstr ""
18666
18667 #. type: textblock
18668 #: ../src/guestfs-actions.pod:7137 ../fish/guestfish-actions.pod:4735
18669 msgid ""
18670 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
18671 "tar file) into C<directory>."
18672 msgstr ""
18673
18674 #. type: =head2
18675 #: ../src/guestfs-actions.pod:7144
18676 msgid "guestfs_txz_out"
18677 msgstr ""
18678
18679 #. type: verbatim
18680 #: ../src/guestfs-actions.pod:7146
18681 #, no-wrap
18682 msgid ""
18683 " int\n"
18684 " guestfs_txz_out (guestfs_h *g,\n"
18685 "                  const char *directory,\n"
18686 "                  const char *tarball);\n"
18687 "\n"
18688 msgstr ""
18689
18690 #. type: textblock
18691 #: ../src/guestfs-actions.pod:7151 ../fish/guestfish-actions.pod:4744
18692 msgid ""
18693 "This command packs the contents of C<directory> and downloads it to local "
18694 "file C<tarball> (as an xz compressed tar archive)."
18695 msgstr ""
18696
18697 #. type: =head2
18698 #: ../src/guestfs-actions.pod:7158
18699 msgid "guestfs_umask"
18700 msgstr ""
18701
18702 #. type: verbatim
18703 #: ../src/guestfs-actions.pod:7160
18704 #, no-wrap
18705 msgid ""
18706 " int\n"
18707 " guestfs_umask (guestfs_h *g,\n"
18708 "                int mask);\n"
18709 "\n"
18710 msgstr ""
18711
18712 #. type: textblock
18713 #: ../src/guestfs-actions.pod:7164 ../fish/guestfish-actions.pod:4753
18714 msgid ""
18715 "This function sets the mask used for creating new files and device nodes to "
18716 "C<mask & 0777>."
18717 msgstr ""
18718
18719 #. type: textblock
18720 #: ../src/guestfs-actions.pod:7167 ../fish/guestfish-actions.pod:4756
18721 msgid ""
18722 "Typical umask values would be C<022> which creates new files with "
18723 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
18724 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
18725 msgstr ""
18726
18727 #. type: textblock
18728 #: ../src/guestfs-actions.pod:7172 ../fish/guestfish-actions.pod:4761
18729 msgid ""
18730 "The default umask is C<022>.  This is important because it means that "
18731 "directories and device nodes will be created with C<0644> or C<0755> mode "
18732 "even if you specify C<0777>."
18733 msgstr ""
18734
18735 #. type: textblock
18736 #: ../src/guestfs-actions.pod:7176
18737 msgid ""
18738 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
18739 "C<guestfs_mkdir>."
18740 msgstr ""
18741
18742 #. type: textblock
18743 #: ../src/guestfs-actions.pod:7179 ../fish/guestfish-actions.pod:4768
18744 msgid "This call returns the previous umask."
18745 msgstr ""
18746
18747 #. type: =head2
18748 #: ../src/guestfs-actions.pod:7185
18749 msgid "guestfs_umount"
18750 msgstr ""
18751
18752 #. type: verbatim
18753 #: ../src/guestfs-actions.pod:7187
18754 #, no-wrap
18755 msgid ""
18756 " int\n"
18757 " guestfs_umount (guestfs_h *g,\n"
18758 "                 const char *pathordevice);\n"
18759 "\n"
18760 msgstr ""
18761
18762 #. type: textblock
18763 #: ../src/guestfs-actions.pod:7191 ../fish/guestfish-actions.pod:4776
18764 msgid ""
18765 "This unmounts the given filesystem.  The filesystem may be specified either "
18766 "by its mountpoint (path) or the device which contains the filesystem."
18767 msgstr ""
18768
18769 #. type: =head2
18770 #: ../src/guestfs-actions.pod:7199
18771 msgid "guestfs_umount_all"
18772 msgstr ""
18773
18774 #. type: verbatim
18775 #: ../src/guestfs-actions.pod:7201
18776 #, no-wrap
18777 msgid ""
18778 " int\n"
18779 " guestfs_umount_all (guestfs_h *g);\n"
18780 "\n"
18781 msgstr ""
18782
18783 #. type: textblock
18784 #: ../src/guestfs-actions.pod:7204 ../fish/guestfish-actions.pod:4786
18785 msgid "This unmounts all mounted filesystems."
18786 msgstr ""
18787
18788 #. type: textblock
18789 #: ../src/guestfs-actions.pod:7206 ../fish/guestfish-actions.pod:4788
18790 msgid "Some internal mounts are not unmounted by this call."
18791 msgstr ""
18792
18793 #. type: =head2
18794 #: ../src/guestfs-actions.pod:7212
18795 msgid "guestfs_upload"
18796 msgstr ""
18797
18798 #. type: verbatim
18799 #: ../src/guestfs-actions.pod:7214
18800 #, no-wrap
18801 msgid ""
18802 " int\n"
18803 " guestfs_upload (guestfs_h *g,\n"
18804 "                 const char *filename,\n"
18805 "                 const char *remotefilename);\n"
18806 "\n"
18807 msgstr ""
18808
18809 #. type: textblock
18810 #: ../src/guestfs-actions.pod:7219 ../src/guestfs-actions.pod:7243
18811 #: ../fish/guestfish-actions.pod:4794 ../fish/guestfish-actions.pod:4807
18812 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
18813 msgstr ""
18814
18815 #. type: textblock
18816 #: ../src/guestfs-actions.pod:7224
18817 msgid "See also C<guestfs_download>."
18818 msgstr ""
18819
18820 #. type: =head2
18821 #: ../src/guestfs-actions.pod:7235
18822 msgid "guestfs_upload_offset"
18823 msgstr ""
18824
18825 #. type: verbatim
18826 #: ../src/guestfs-actions.pod:7237
18827 #, no-wrap
18828 msgid ""
18829 " int\n"
18830 " guestfs_upload_offset (guestfs_h *g,\n"
18831 "                        const char *filename,\n"
18832 "                        const char *remotefilename,\n"
18833 "                        int64_t offset);\n"
18834 "\n"
18835 msgstr ""
18836
18837 #. type: textblock
18838 #: ../src/guestfs-actions.pod:7246 ../fish/guestfish-actions.pod:4810
18839 msgid ""
18840 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
18841 "The intention is to overwrite parts of existing files or devices, although "
18842 "if a non-existant file is specified then it is created with a \"hole\" "
18843 "before C<offset>.  The size of the data written is implicit in the size of "
18844 "the source C<filename>."
18845 msgstr ""
18846
18847 #. type: textblock
18848 #: ../src/guestfs-actions.pod:7253
18849 msgid ""
18850 "Note that there is no limit on the amount of data that can be uploaded with "
18851 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
18852 "full amount unless an error occurs."
18853 msgstr ""
18854
18855 #. type: textblock
18856 #: ../src/guestfs-actions.pod:7258
18857 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
18858 msgstr ""
18859
18860 #. type: =head2
18861 #: ../src/guestfs-actions.pod:7269
18862 msgid "guestfs_utimens"
18863 msgstr ""
18864
18865 #. type: verbatim
18866 #: ../src/guestfs-actions.pod:7271
18867 #, no-wrap
18868 msgid ""
18869 " int\n"
18870 " guestfs_utimens (guestfs_h *g,\n"
18871 "                  const char *path,\n"
18872 "                  int64_t atsecs,\n"
18873 "                  int64_t atnsecs,\n"
18874 "                  int64_t mtsecs,\n"
18875 "                  int64_t mtnsecs);\n"
18876 "\n"
18877 msgstr ""
18878
18879 #. type: textblock
18880 #: ../src/guestfs-actions.pod:7279 ../fish/guestfish-actions.pod:4830
18881 msgid "This command sets the timestamps of a file with nanosecond precision."
18882 msgstr ""
18883
18884 #. type: textblock
18885 #: ../src/guestfs-actions.pod:7282 ../fish/guestfish-actions.pod:4833
18886 msgid ""
18887 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
18888 "from the epoch."
18889 msgstr ""
18890
18891 #. type: textblock
18892 #: ../src/guestfs-actions.pod:7285 ../fish/guestfish-actions.pod:4836
18893 msgid ""
18894 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
18895 "nanoseconds from the epoch."
18896 msgstr ""
18897
18898 #. type: textblock
18899 #: ../src/guestfs-actions.pod:7288 ../fish/guestfish-actions.pod:4839
18900 msgid ""
18901 "If the C<*nsecs> field contains the special value C<-1> then the "
18902 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
18903 "ignored in this case)."
18904 msgstr ""
18905
18906 #. type: textblock
18907 #: ../src/guestfs-actions.pod:7292 ../fish/guestfish-actions.pod:4843
18908 msgid ""
18909 "If the C<*nsecs> field contains the special value C<-2> then the "
18910 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
18911 "in this case)."
18912 msgstr ""
18913
18914 #. type: =head2
18915 #: ../src/guestfs-actions.pod:7300 ../src/guestfs-structs.pod:175
18916 msgid "guestfs_version"
18917 msgstr ""
18918
18919 #. type: verbatim
18920 #: ../src/guestfs-actions.pod:7302
18921 #, no-wrap
18922 msgid ""
18923 " struct guestfs_version *\n"
18924 " guestfs_version (guestfs_h *g);\n"
18925 "\n"
18926 msgstr ""
18927
18928 #. type: textblock
18929 #: ../src/guestfs-actions.pod:7305 ../fish/guestfish-actions.pod:4851
18930 msgid ""
18931 "Return the libguestfs version number that the program is linked against."
18932 msgstr ""
18933
18934 #. type: textblock
18935 #: ../src/guestfs-actions.pod:7308 ../fish/guestfish-actions.pod:4854
18936 msgid ""
18937 "Note that because of dynamic linking this is not necessarily the version of "
18938 "libguestfs that you compiled against.  You can compile the program, and then"
18939 " at runtime dynamically link against a completely different C<libguestfs.so>"
18940 " library."
18941 msgstr ""
18942
18943 #. type: textblock
18944 #: ../src/guestfs-actions.pod:7313 ../fish/guestfish-actions.pod:4859
18945 msgid ""
18946 "This call was added in version C<1.0.58>.  In previous versions of "
18947 "libguestfs there was no way to get the version number.  From C code you can "
18948 "use dynamic linker functions to find out if this symbol exists (if it "
18949 "doesn't, then it's an earlier version)."
18950 msgstr ""
18951
18952 #. type: textblock
18953 #: ../src/guestfs-actions.pod:7319 ../fish/guestfish-actions.pod:4865
18954 msgid ""
18955 "The call returns a structure with four elements.  The first three (C<major>,"
18956 " C<minor> and C<release>) are numbers and correspond to the usual version "
18957 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
18958 "but may be used for distro-specific information."
18959 msgstr ""
18960
18961 #. type: textblock
18962 #: ../src/guestfs-actions.pod:7325 ../fish/guestfish-actions.pod:4871
18963 msgid ""
18964 "To construct the original version string: C<$major.$minor.$release$extra>"
18965 msgstr ""
18966
18967 #. type: textblock
18968 #: ../src/guestfs-actions.pod:7328 ../fish/guestfish-actions.pod:4874
18969 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
18970 msgstr ""
18971
18972 #. type: textblock
18973 #: ../src/guestfs-actions.pod:7330
18974 msgid ""
18975 "I<Note:> Don't use this call to test for availability of features.  In "
18976 "enterprise distributions we backport features from later versions into "
18977 "earlier versions, making this an unreliable way to test for features.  Use "
18978 "C<guestfs_available> instead."
18979 msgstr ""
18980
18981 #. type: textblock
18982 #: ../src/guestfs-actions.pod:7336
18983 msgid ""
18984 "This function returns a C<struct guestfs_version *>, or NULL if there was an"
18985 " error.  I<The caller must call C<guestfs_free_version> after use>."
18986 msgstr ""
18987
18988 #. type: textblock
18989 #: ../src/guestfs-actions.pod:7340
18990 msgid "(Added in 1.0.58)"
18991 msgstr ""
18992
18993 #. type: =head2
18994 #: ../src/guestfs-actions.pod:7342
18995 msgid "guestfs_vfs_label"
18996 msgstr ""
18997
18998 #. type: verbatim
18999 #: ../src/guestfs-actions.pod:7344
19000 #, no-wrap
19001 msgid ""
19002 " char *\n"
19003 " guestfs_vfs_label (guestfs_h *g,\n"
19004 "                    const char *device);\n"
19005 "\n"
19006 msgstr ""
19007
19008 #. type: textblock
19009 #: ../src/guestfs-actions.pod:7348 ../fish/guestfish-actions.pod:4886
19010 msgid "This returns the filesystem label of the filesystem on C<device>."
19011 msgstr ""
19012
19013 #. type: textblock
19014 #: ../src/guestfs-actions.pod:7351 ../fish/guestfish-actions.pod:4889
19015 msgid "If the filesystem is unlabeled, this returns the empty string."
19016 msgstr ""
19017
19018 #. type: textblock
19019 #: ../src/guestfs-actions.pod:7353
19020 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
19021 msgstr ""
19022
19023 #. type: textblock
19024 #: ../src/guestfs-actions.pod:7358 ../src/guestfs-actions.pod:7395
19025 msgid "(Added in 1.3.18)"
19026 msgstr ""
19027
19028 #. type: =head2
19029 #: ../src/guestfs-actions.pod:7360
19030 msgid "guestfs_vfs_type"
19031 msgstr ""
19032
19033 #. type: verbatim
19034 #: ../src/guestfs-actions.pod:7362
19035 #, no-wrap
19036 msgid ""
19037 " char *\n"
19038 " guestfs_vfs_type (guestfs_h *g,\n"
19039 "                   const char *device);\n"
19040 "\n"
19041 msgstr ""
19042
19043 #. type: textblock
19044 #: ../src/guestfs-actions.pod:7366 ../fish/guestfish-actions.pod:4897
19045 msgid ""
19046 "This command gets the filesystem type corresponding to the filesystem on "
19047 "C<device>."
19048 msgstr ""
19049
19050 #. type: textblock
19051 #: ../src/guestfs-actions.pod:7369 ../fish/guestfish-actions.pod:4900
19052 msgid ""
19053 "For most filesystems, the result is the name of the Linux VFS module which "
19054 "would be used to mount this filesystem if you mounted it without specifying "
19055 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
19056 msgstr ""
19057
19058 #. type: =head2
19059 #: ../src/guestfs-actions.pod:7379
19060 msgid "guestfs_vfs_uuid"
19061 msgstr ""
19062
19063 #. type: verbatim
19064 #: ../src/guestfs-actions.pod:7381
19065 #, no-wrap
19066 msgid ""
19067 " char *\n"
19068 " guestfs_vfs_uuid (guestfs_h *g,\n"
19069 "                   const char *device);\n"
19070 "\n"
19071 msgstr ""
19072
19073 #. type: textblock
19074 #: ../src/guestfs-actions.pod:7385 ../fish/guestfish-actions.pod:4909
19075 msgid "This returns the filesystem UUID of the filesystem on C<device>."
19076 msgstr ""
19077
19078 #. type: textblock
19079 #: ../src/guestfs-actions.pod:7388 ../fish/guestfish-actions.pod:4912
19080 msgid "If the filesystem does not have a UUID, this returns the empty string."
19081 msgstr ""
19082
19083 #. type: textblock
19084 #: ../src/guestfs-actions.pod:7390
19085 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
19086 msgstr ""
19087
19088 #. type: =head2
19089 #: ../src/guestfs-actions.pod:7397
19090 msgid "guestfs_vg_activate"
19091 msgstr ""
19092
19093 #. type: verbatim
19094 #: ../src/guestfs-actions.pod:7399
19095 #, no-wrap
19096 msgid ""
19097 " int\n"
19098 " guestfs_vg_activate (guestfs_h *g,\n"
19099 "                      int activate,\n"
19100 "                      char *const *volgroups);\n"
19101 "\n"
19102 msgstr ""
19103
19104 #. type: textblock
19105 #: ../src/guestfs-actions.pod:7404 ../fish/guestfish-actions.pod:4920
19106 msgid ""
19107 "This command activates or (if C<activate> is false) deactivates all logical "
19108 "volumes in the listed volume groups C<volgroups>."
19109 msgstr ""
19110
19111 #. type: textblock
19112 #: ../src/guestfs-actions.pod:7407 ../fish/guestfish-actions.pod:4923
19113 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
19114 msgstr ""
19115
19116 #. type: textblock
19117 #: ../src/guestfs-actions.pod:7409 ../fish/guestfish-actions.pod:4925
19118 msgid ""
19119 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
19120 "activated or deactivated."
19121 msgstr ""
19122
19123 #. type: =head2
19124 #: ../src/guestfs-actions.pod:7416
19125 msgid "guestfs_vg_activate_all"
19126 msgstr ""
19127
19128 #. type: verbatim
19129 #: ../src/guestfs-actions.pod:7418
19130 #, no-wrap
19131 msgid ""
19132 " int\n"
19133 " guestfs_vg_activate_all (guestfs_h *g,\n"
19134 "                          int activate);\n"
19135 "\n"
19136 msgstr ""
19137
19138 #. type: textblock
19139 #: ../src/guestfs-actions.pod:7422 ../fish/guestfish-actions.pod:4932
19140 msgid ""
19141 "This command activates or (if C<activate> is false) deactivates all logical "
19142 "volumes in all volume groups."
19143 msgstr ""
19144
19145 #. type: textblock
19146 #: ../src/guestfs-actions.pod:7425 ../fish/guestfish-actions.pod:4935
19147 msgid "This command is the same as running C<vgchange -a y|n>"
19148 msgstr ""
19149
19150 #. type: =head2
19151 #: ../src/guestfs-actions.pod:7431
19152 msgid "guestfs_vgcreate"
19153 msgstr ""
19154
19155 #. type: verbatim
19156 #: ../src/guestfs-actions.pod:7433
19157 #, no-wrap
19158 msgid ""
19159 " int\n"
19160 " guestfs_vgcreate (guestfs_h *g,\n"
19161 "                   const char *volgroup,\n"
19162 "                   char *const *physvols);\n"
19163 "\n"
19164 msgstr ""
19165
19166 #. type: textblock
19167 #: ../src/guestfs-actions.pod:7438 ../fish/guestfish-actions.pod:4941
19168 msgid ""
19169 "This creates an LVM volume group called C<volgroup> from the non-empty list "
19170 "of physical volumes C<physvols>."
19171 msgstr ""
19172
19173 #. type: =head2
19174 #: ../src/guestfs-actions.pod:7445
19175 msgid "guestfs_vglvuuids"
19176 msgstr ""
19177
19178 #. type: verbatim
19179 #: ../src/guestfs-actions.pod:7447
19180 #, no-wrap
19181 msgid ""
19182 " char **\n"
19183 " guestfs_vglvuuids (guestfs_h *g,\n"
19184 "                    const char *vgname);\n"
19185 "\n"
19186 msgstr ""
19187
19188 #. type: textblock
19189 #: ../src/guestfs-actions.pod:7451 ../fish/guestfish-actions.pod:4948
19190 msgid ""
19191 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
19192 "volumes created in this volume group."
19193 msgstr ""
19194
19195 #. type: textblock
19196 #: ../src/guestfs-actions.pod:7454
19197 msgid ""
19198 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
19199 "associate logical volumes and volume groups."
19200 msgstr ""
19201
19202 #. type: textblock
19203 #: ../src/guestfs-actions.pod:7457
19204 msgid "See also C<guestfs_vgpvuuids>."
19205 msgstr ""
19206
19207 #. type: =head2
19208 #: ../src/guestfs-actions.pod:7465
19209 msgid "guestfs_vgpvuuids"
19210 msgstr ""
19211
19212 #. type: verbatim
19213 #: ../src/guestfs-actions.pod:7467
19214 #, no-wrap
19215 msgid ""
19216 " char **\n"
19217 " guestfs_vgpvuuids (guestfs_h *g,\n"
19218 "                    const char *vgname);\n"
19219 "\n"
19220 msgstr ""
19221
19222 #. type: textblock
19223 #: ../src/guestfs-actions.pod:7471 ../fish/guestfish-actions.pod:4960
19224 msgid ""
19225 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
19226 "volumes that this volume group resides on."
19227 msgstr ""
19228
19229 #. type: textblock
19230 #: ../src/guestfs-actions.pod:7474
19231 msgid ""
19232 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
19233 "associate physical volumes and volume groups."
19234 msgstr ""
19235
19236 #. type: textblock
19237 #: ../src/guestfs-actions.pod:7477
19238 msgid "See also C<guestfs_vglvuuids>."
19239 msgstr ""
19240
19241 #. type: =head2
19242 #: ../src/guestfs-actions.pod:7485
19243 msgid "guestfs_vgremove"
19244 msgstr ""
19245
19246 #. type: verbatim
19247 #: ../src/guestfs-actions.pod:7487
19248 #, no-wrap
19249 msgid ""
19250 " int\n"
19251 " guestfs_vgremove (guestfs_h *g,\n"
19252 "                   const char *vgname);\n"
19253 "\n"
19254 msgstr ""
19255
19256 #. type: textblock
19257 #: ../src/guestfs-actions.pod:7491 ../fish/guestfish-actions.pod:4972
19258 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
19259 msgstr ""
19260
19261 #. type: textblock
19262 #: ../src/guestfs-actions.pod:7493 ../fish/guestfish-actions.pod:4974
19263 msgid ""
19264 "This also forcibly removes all logical volumes in the volume group (if any)."
19265 msgstr ""
19266
19267 #. type: =head2
19268 #: ../src/guestfs-actions.pod:7500
19269 msgid "guestfs_vgrename"
19270 msgstr ""
19271
19272 #. type: verbatim
19273 #: ../src/guestfs-actions.pod:7502
19274 #, no-wrap
19275 msgid ""
19276 " int\n"
19277 " guestfs_vgrename (guestfs_h *g,\n"
19278 "                   const char *volgroup,\n"
19279 "                   const char *newvolgroup);\n"
19280 "\n"
19281 msgstr ""
19282
19283 #. type: textblock
19284 #: ../src/guestfs-actions.pod:7507 ../fish/guestfish-actions.pod:4981
19285 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
19286 msgstr ""
19287
19288 #. type: =head2
19289 #: ../src/guestfs-actions.pod:7513
19290 msgid "guestfs_vgs"
19291 msgstr ""
19292
19293 #. type: verbatim
19294 #: ../src/guestfs-actions.pod:7515
19295 #, no-wrap
19296 msgid ""
19297 " char **\n"
19298 " guestfs_vgs (guestfs_h *g);\n"
19299 "\n"
19300 msgstr ""
19301
19302 #. type: textblock
19303 #: ../src/guestfs-actions.pod:7518 ../fish/guestfish-actions.pod:4987
19304 msgid ""
19305 "List all the volumes groups detected.  This is the equivalent of the "
19306 "L<vgs(8)> command."
19307 msgstr ""
19308
19309 #. type: textblock
19310 #: ../src/guestfs-actions.pod:7521 ../fish/guestfish-actions.pod:4990
19311 msgid ""
19312 "This returns a list of just the volume group names that were detected (eg. "
19313 "C<VolGroup00>)."
19314 msgstr ""
19315
19316 #. type: textblock
19317 #: ../src/guestfs-actions.pod:7524
19318 msgid "See also C<guestfs_vgs_full>."
19319 msgstr ""
19320
19321 #. type: =head2
19322 #: ../src/guestfs-actions.pod:7532
19323 msgid "guestfs_vgs_full"
19324 msgstr ""
19325
19326 #. type: verbatim
19327 #: ../src/guestfs-actions.pod:7534
19328 #, no-wrap
19329 msgid ""
19330 " struct guestfs_lvm_vg_list *\n"
19331 " guestfs_vgs_full (guestfs_h *g);\n"
19332 "\n"
19333 msgstr ""
19334
19335 #. type: textblock
19336 #: ../src/guestfs-actions.pod:7537 ../fish/guestfish-actions.pod:4999
19337 msgid ""
19338 "List all the volumes groups detected.  This is the equivalent of the "
19339 "L<vgs(8)> command.  The \"full\" version includes all fields."
19340 msgstr ""
19341
19342 #. type: textblock
19343 #: ../src/guestfs-actions.pod:7540
19344 msgid ""
19345 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
19346 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
19347 "use>."
19348 msgstr ""
19349
19350 #. type: =head2
19351 #: ../src/guestfs-actions.pod:7546
19352 msgid "guestfs_vgscan"
19353 msgstr ""
19354
19355 #. type: verbatim
19356 #: ../src/guestfs-actions.pod:7548
19357 #, no-wrap
19358 msgid ""
19359 " int\n"
19360 " guestfs_vgscan (guestfs_h *g);\n"
19361 "\n"
19362 msgstr ""
19363
19364 #. type: textblock
19365 #: ../src/guestfs-actions.pod:7551 ../fish/guestfish-actions.pod:5006
19366 msgid ""
19367 "This rescans all block devices and rebuilds the list of LVM physical "
19368 "volumes, volume groups and logical volumes."
19369 msgstr ""
19370
19371 #. type: =head2
19372 #: ../src/guestfs-actions.pod:7558
19373 msgid "guestfs_vguuid"
19374 msgstr ""
19375
19376 #. type: verbatim
19377 #: ../src/guestfs-actions.pod:7560
19378 #, no-wrap
19379 msgid ""
19380 " char *\n"
19381 " guestfs_vguuid (guestfs_h *g,\n"
19382 "                 const char *vgname);\n"
19383 "\n"
19384 msgstr ""
19385
19386 #. type: textblock
19387 #: ../src/guestfs-actions.pod:7564 ../fish/guestfish-actions.pod:5013
19388 msgid "This command returns the UUID of the LVM VG named C<vgname>."
19389 msgstr ""
19390
19391 #. type: =head2
19392 #: ../src/guestfs-actions.pod:7571
19393 msgid "guestfs_wait_ready"
19394 msgstr ""
19395
19396 #. type: verbatim
19397 #: ../src/guestfs-actions.pod:7573
19398 #, no-wrap
19399 msgid ""
19400 " int\n"
19401 " guestfs_wait_ready (guestfs_h *g);\n"
19402 "\n"
19403 msgstr ""
19404
19405 #. type: textblock
19406 #: ../src/guestfs-actions.pod:7576
19407 msgid "This function is a no op."
19408 msgstr ""
19409
19410 #. type: textblock
19411 #: ../src/guestfs-actions.pod:7578
19412 msgid ""
19413 "In versions of the API E<lt> 1.0.71 you had to call this function just after"
19414 " calling C<guestfs_launch> to wait for the launch to complete.  However this"
19415 " is no longer necessary because C<guestfs_launch> now does the waiting."
19416 msgstr ""
19417
19418 #. type: textblock
19419 #: ../src/guestfs-actions.pod:7583
19420 msgid ""
19421 "If you see any calls to this function in code then you can just remove them,"
19422 " unless you want to retain compatibility with older versions of the API."
19423 msgstr ""
19424
19425 #. type: textblock
19426 #: ../src/guestfs-actions.pod:7589
19427 msgid ""
19428 "This function is deprecated.  In new code, use the C<launch> call instead."
19429 msgstr ""
19430
19431 #. type: =head2
19432 #: ../src/guestfs-actions.pod:7598
19433 msgid "guestfs_wc_c"
19434 msgstr ""
19435
19436 #. type: verbatim
19437 #: ../src/guestfs-actions.pod:7600
19438 #, no-wrap
19439 msgid ""
19440 " int\n"
19441 " guestfs_wc_c (guestfs_h *g,\n"
19442 "               const char *path);\n"
19443 "\n"
19444 msgstr ""
19445
19446 #. type: textblock
19447 #: ../src/guestfs-actions.pod:7604 ../fish/guestfish-actions.pod:5019
19448 msgid ""
19449 "This command counts the characters in a file, using the C<wc -c> external "
19450 "command."
19451 msgstr ""
19452
19453 #. type: =head2
19454 #: ../src/guestfs-actions.pod:7611
19455 msgid "guestfs_wc_l"
19456 msgstr ""
19457
19458 #. type: verbatim
19459 #: ../src/guestfs-actions.pod:7613
19460 #, no-wrap
19461 msgid ""
19462 " int\n"
19463 " guestfs_wc_l (guestfs_h *g,\n"
19464 "               const char *path);\n"
19465 "\n"
19466 msgstr ""
19467
19468 #. type: textblock
19469 #: ../src/guestfs-actions.pod:7617 ../fish/guestfish-actions.pod:5026
19470 msgid ""
19471 "This command counts the lines in a file, using the C<wc -l> external "
19472 "command."
19473 msgstr ""
19474
19475 #. type: =head2
19476 #: ../src/guestfs-actions.pod:7624
19477 msgid "guestfs_wc_w"
19478 msgstr ""
19479
19480 #. type: verbatim
19481 #: ../src/guestfs-actions.pod:7626
19482 #, no-wrap
19483 msgid ""
19484 " int\n"
19485 " guestfs_wc_w (guestfs_h *g,\n"
19486 "               const char *path);\n"
19487 "\n"
19488 msgstr ""
19489
19490 #. type: textblock
19491 #: ../src/guestfs-actions.pod:7630 ../fish/guestfish-actions.pod:5033
19492 msgid ""
19493 "This command counts the words in a file, using the C<wc -w> external "
19494 "command."
19495 msgstr ""
19496
19497 #. type: =head2
19498 #: ../src/guestfs-actions.pod:7637
19499 msgid "guestfs_write"
19500 msgstr ""
19501
19502 #. type: verbatim
19503 #: ../src/guestfs-actions.pod:7639
19504 #, no-wrap
19505 msgid ""
19506 " int\n"
19507 " guestfs_write (guestfs_h *g,\n"
19508 "                const char *path,\n"
19509 "                const char *content,\n"
19510 "                size_t content_size);\n"
19511 "\n"
19512 msgstr ""
19513
19514 #. type: textblock
19515 #: ../src/guestfs-actions.pod:7645 ../fish/guestfish-actions.pod:5040
19516 msgid ""
19517 "This call creates a file called C<path>.  The content of the file is the "
19518 "string C<content> (which can contain any 8 bit data)."
19519 msgstr ""
19520
19521 #. type: textblock
19522 #: ../src/guestfs-actions.pod:7648
19523 msgid "See also C<guestfs_write_append>."
19524 msgstr ""
19525
19526 #. type: =head2
19527 #: ../src/guestfs-actions.pod:7657
19528 msgid "guestfs_write_append"
19529 msgstr ""
19530
19531 #. type: verbatim
19532 #: ../src/guestfs-actions.pod:7659
19533 #, no-wrap
19534 msgid ""
19535 " int\n"
19536 " guestfs_write_append (guestfs_h *g,\n"
19537 "                       const char *path,\n"
19538 "                       const char *content,\n"
19539 "                       size_t content_size);\n"
19540 "\n"
19541 msgstr ""
19542
19543 #. type: textblock
19544 #: ../src/guestfs-actions.pod:7665 ../fish/guestfish-actions.pod:5052
19545 msgid ""
19546 "This call appends C<content> to the end of file C<path>.  If C<path> does "
19547 "not exist, then a new file is created."
19548 msgstr ""
19549
19550 #. type: textblock
19551 #: ../src/guestfs-actions.pod:7668
19552 msgid "See also C<guestfs_write>."
19553 msgstr ""
19554
19555 #. type: =head2
19556 #: ../src/guestfs-actions.pod:7675
19557 msgid "guestfs_write_file"
19558 msgstr "guestfs_write_file"
19559
19560 #. type: verbatim
19561 #: ../src/guestfs-actions.pod:7677
19562 #, no-wrap
19563 msgid ""
19564 " int\n"
19565 " guestfs_write_file (guestfs_h *g,\n"
19566 "                     const char *path,\n"
19567 "                     const char *content,\n"
19568 "                     int size);\n"
19569 "\n"
19570 msgstr ""
19571 " int\n"
19572 " guestfs_write_file (guestfs_h *g,\n"
19573 "                     const char *path,\n"
19574 "                     const char *content,\n"
19575 "                     int size);\n"
19576 "\n"
19577
19578 #. type: textblock
19579 #: ../src/guestfs-actions.pod:7683 ../fish/guestfish-actions.pod:5064
19580 msgid ""
19581 "This call creates a file called C<path>.  The contents of the file is the "
19582 "string C<content> (which can contain any 8 bit data), with length C<size>."
19583 msgstr ""
19584
19585 #. type: textblock
19586 #: ../src/guestfs-actions.pod:7687 ../fish/guestfish-actions.pod:5068
19587 msgid ""
19588 "As a special case, if C<size> is C<0> then the length is calculated using "
19589 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
19590 msgstr ""
19591
19592 #. type: textblock
19593 #: ../src/guestfs-actions.pod:7691 ../fish/guestfish-actions.pod:5072
19594 msgid ""
19595 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
19596 "I<not> work, even if the length is specified."
19597 msgstr ""
19598
19599 #. type: textblock
19600 #: ../src/guestfs-actions.pod:7699 ../fish/guestfish-actions.pod:5078
19601 msgid ""
19602 "This function is deprecated.  In new code, use the C<write> call instead."
19603 msgstr ""
19604
19605 #. type: =head2
19606 #: ../src/guestfs-actions.pod:7708
19607 msgid "guestfs_zegrep"
19608 msgstr "guestfs_zegrep"
19609
19610 #. type: verbatim
19611 #: ../src/guestfs-actions.pod:7710
19612 #, no-wrap
19613 msgid ""
19614 " char **\n"
19615 " guestfs_zegrep (guestfs_h *g,\n"
19616 "                 const char *regex,\n"
19617 "                 const char *path);\n"
19618 "\n"
19619 msgstr ""
19620 " char **\n"
19621 " guestfs_zegrep (guestfs_h *g,\n"
19622 "                 const char *regex,\n"
19623 "                 const char *path);\n"
19624 "\n"
19625
19626 #. type: textblock
19627 #: ../src/guestfs-actions.pod:7715 ../fish/guestfish-actions.pod:5089
19628 msgid ""
19629 "This calls the external C<zegrep> program and returns the matching lines."
19630 msgstr ""
19631
19632 #. type: =head2
19633 #: ../src/guestfs-actions.pod:7727
19634 msgid "guestfs_zegrepi"
19635 msgstr "guestfs_zegrepi"
19636
19637 #. type: verbatim
19638 #: ../src/guestfs-actions.pod:7729
19639 #, no-wrap
19640 msgid ""
19641 " char **\n"
19642 " guestfs_zegrepi (guestfs_h *g,\n"
19643 "                  const char *regex,\n"
19644 "                  const char *path);\n"
19645 "\n"
19646 msgstr ""
19647 " char **\n"
19648 " guestfs_zegrepi (guestfs_h *g,\n"
19649 "                  const char *regex,\n"
19650 "                  const char *path);\n"
19651 "\n"
19652
19653 #. type: textblock
19654 #: ../src/guestfs-actions.pod:7734 ../fish/guestfish-actions.pod:5099
19655 msgid ""
19656 "This calls the external C<zegrep -i> program and returns the matching lines."
19657 msgstr ""
19658
19659 #. type: =head2
19660 #: ../src/guestfs-actions.pod:7746
19661 msgid "guestfs_zero"
19662 msgstr "guestfs_zero"
19663
19664 #. type: verbatim
19665 #: ../src/guestfs-actions.pod:7748
19666 #, no-wrap
19667 msgid ""
19668 " int\n"
19669 " guestfs_zero (guestfs_h *g,\n"
19670 "               const char *device);\n"
19671 "\n"
19672 msgstr ""
19673 " int\n"
19674 " guestfs_zero (guestfs_h *g,\n"
19675 "               const char *device);\n"
19676 "\n"
19677
19678 #. type: textblock
19679 #: ../src/guestfs-actions.pod:7752 ../fish/guestfish-actions.pod:5109
19680 msgid "This command writes zeroes over the first few blocks of C<device>."
19681 msgstr ""
19682
19683 #. type: textblock
19684 #: ../src/guestfs-actions.pod:7754 ../fish/guestfish-actions.pod:5111
19685 msgid ""
19686 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
19687 "securely wipe the device).  It should be sufficient to remove any partition "
19688 "tables, filesystem superblocks and so on."
19689 msgstr ""
19690
19691 #. type: textblock
19692 #: ../src/guestfs-actions.pod:7758
19693 msgid ""
19694 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
19695 "C<guestfs_is_zero_device>"
19696 msgstr ""
19697
19698 #. type: =head2
19699 #: ../src/guestfs-actions.pod:7770
19700 msgid "guestfs_zero_device"
19701 msgstr "guestfs_zero_device"
19702
19703 #. type: verbatim
19704 #: ../src/guestfs-actions.pod:7772
19705 #, no-wrap
19706 msgid ""
19707 " int\n"
19708 " guestfs_zero_device (guestfs_h *g,\n"
19709 "                      const char *device);\n"
19710 "\n"
19711 msgstr ""
19712 " int\n"
19713 " guestfs_zero_device (guestfs_h *g,\n"
19714 "                      const char *device);\n"
19715 "\n"
19716
19717 #. type: textblock
19718 #: ../src/guestfs-actions.pod:7776
19719 msgid ""
19720 "This command writes zeroes over the entire C<device>.  Compare with "
19721 "C<guestfs_zero> which just zeroes the first few blocks of a device."
19722 msgstr ""
19723
19724 #. type: textblock
19725 #: ../src/guestfs-actions.pod:7790
19726 msgid "(Added in 1.3.1)"
19727 msgstr "(Додано у 1.3.1)"
19728
19729 #. type: =head2
19730 #: ../src/guestfs-actions.pod:7792
19731 msgid "guestfs_zerofree"
19732 msgstr "guestfs_zerofree"
19733
19734 #. type: verbatim
19735 #: ../src/guestfs-actions.pod:7794
19736 #, no-wrap
19737 msgid ""
19738 " int\n"
19739 " guestfs_zerofree (guestfs_h *g,\n"
19740 "                   const char *device);\n"
19741 "\n"
19742 msgstr ""
19743 " int\n"
19744 " guestfs_zerofree (guestfs_h *g,\n"
19745 "                   const char *device);\n"
19746 "\n"
19747
19748 #. type: textblock
19749 #: ../src/guestfs-actions.pod:7798 ../fish/guestfish-actions.pod:5133
19750 msgid ""
19751 "This runs the I<zerofree> program on C<device>.  This program claims to zero"
19752 " unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
19753 "possible to compress the filesystem more effectively."
19754 msgstr ""
19755
19756 #. type: textblock
19757 #: ../src/guestfs-actions.pod:7803 ../fish/guestfish-actions.pod:5138
19758 msgid "You should B<not> run this program if the filesystem is mounted."
19759 msgstr ""
19760
19761 #. type: textblock
19762 #: ../src/guestfs-actions.pod:7806 ../fish/guestfish-actions.pod:5141
19763 msgid ""
19764 "It is possible that using this program can damage the filesystem or data on "
19765 "the filesystem."
19766 msgstr ""
19767
19768 #. type: =head2
19769 #: ../src/guestfs-actions.pod:7813
19770 msgid "guestfs_zfgrep"
19771 msgstr "guestfs_zfgrep"
19772
19773 #. type: verbatim
19774 #: ../src/guestfs-actions.pod:7815
19775 #, no-wrap
19776 msgid ""
19777 " char **\n"
19778 " guestfs_zfgrep (guestfs_h *g,\n"
19779 "                 const char *pattern,\n"
19780 "                 const char *path);\n"
19781 "\n"
19782 msgstr ""
19783 " char **\n"
19784 " guestfs_zfgrep (guestfs_h *g,\n"
19785 "                 const char *pattern,\n"
19786 "                 const char *path);\n"
19787 "\n"
19788
19789 #. type: textblock
19790 #: ../src/guestfs-actions.pod:7820 ../fish/guestfish-actions.pod:5148
19791 msgid ""
19792 "This calls the external C<zfgrep> program and returns the matching lines."
19793 msgstr ""
19794
19795 #. type: =head2
19796 #: ../src/guestfs-actions.pod:7832
19797 msgid "guestfs_zfgrepi"
19798 msgstr "guestfs_zfgrepi"
19799
19800 #. type: verbatim
19801 #: ../src/guestfs-actions.pod:7834
19802 #, no-wrap
19803 msgid ""
19804 " char **\n"
19805 " guestfs_zfgrepi (guestfs_h *g,\n"
19806 "                  const char *pattern,\n"
19807 "                  const char *path);\n"
19808 "\n"
19809 msgstr ""
19810 " char **\n"
19811 " guestfs_zfgrepi (guestfs_h *g,\n"
19812 "                  const char *pattern,\n"
19813 "                  const char *path);\n"
19814 "\n"
19815
19816 #. type: textblock
19817 #: ../src/guestfs-actions.pod:7839 ../fish/guestfish-actions.pod:5158
19818 msgid ""
19819 "This calls the external C<zfgrep -i> program and returns the matching lines."
19820 msgstr ""
19821
19822 #. type: =head2
19823 #: ../src/guestfs-actions.pod:7851
19824 msgid "guestfs_zfile"
19825 msgstr "guestfs_zfile"
19826
19827 #. type: verbatim
19828 #: ../src/guestfs-actions.pod:7853
19829 #, no-wrap
19830 msgid ""
19831 " char *\n"
19832 " guestfs_zfile (guestfs_h *g,\n"
19833 "                const char *meth,\n"
19834 "                const char *path);\n"
19835 "\n"
19836 msgstr ""
19837 " char *\n"
19838 " guestfs_zfile (guestfs_h *g,\n"
19839 "                const char *meth,\n"
19840 "                const char *path);\n"
19841 "\n"
19842
19843 #. type: textblock
19844 #: ../src/guestfs-actions.pod:7858 ../fish/guestfish-actions.pod:5168
19845 msgid ""
19846 "This command runs C<file> after first decompressing C<path> using C<method>."
19847 msgstr ""
19848
19849 #. type: textblock
19850 #: ../src/guestfs-actions.pod:7861 ../fish/guestfish-actions.pod:5171
19851 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
19852 msgstr ""
19853
19854 #. type: textblock
19855 #: ../src/guestfs-actions.pod:7863
19856 msgid ""
19857 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
19858 "files."
19859 msgstr ""
19860
19861 #. type: textblock
19862 #: ../src/guestfs-actions.pod:7869 ../fish/guestfish-actions.pod:5176
19863 msgid ""
19864 "This function is deprecated.  In new code, use the C<file> call instead."
19865 msgstr ""
19866
19867 #. type: =head2
19868 #: ../src/guestfs-actions.pod:7878
19869 msgid "guestfs_zgrep"
19870 msgstr "guestfs_zgrep"
19871
19872 #. type: verbatim
19873 #: ../src/guestfs-actions.pod:7880
19874 #, no-wrap
19875 msgid ""
19876 " char **\n"
19877 " guestfs_zgrep (guestfs_h *g,\n"
19878 "                const char *regex,\n"
19879 "                const char *path);\n"
19880 "\n"
19881 msgstr ""
19882 " char **\n"
19883 " guestfs_zgrep (guestfs_h *g,\n"
19884 "                const char *regex,\n"
19885 "                const char *path);\n"
19886 "\n"
19887
19888 #. type: textblock
19889 #: ../src/guestfs-actions.pod:7885 ../fish/guestfish-actions.pod:5187
19890 msgid ""
19891 "This calls the external C<zgrep> program and returns the matching lines."
19892 msgstr ""
19893
19894 #. type: =head2
19895 #: ../src/guestfs-actions.pod:7897
19896 msgid "guestfs_zgrepi"
19897 msgstr "guestfs_zgrepi"
19898
19899 #. type: verbatim
19900 #: ../src/guestfs-actions.pod:7899
19901 #, no-wrap
19902 msgid ""
19903 " char **\n"
19904 " guestfs_zgrepi (guestfs_h *g,\n"
19905 "                 const char *regex,\n"
19906 "                 const char *path);\n"
19907 "\n"
19908 msgstr ""
19909 " char **\n"
19910 " guestfs_zgrepi (guestfs_h *g,\n"
19911 "                 const char *regex,\n"
19912 "                 const char *path);\n"
19913 "\n"
19914
19915 #. type: textblock
19916 #: ../src/guestfs-actions.pod:7904 ../fish/guestfish-actions.pod:5197
19917 msgid ""
19918 "This calls the external C<zgrep -i> program and returns the matching lines."
19919 msgstr ""
19920
19921 #. type: =item
19922 #: ../src/guestfs-availability.pod:3
19923 msgid "B<augeas>"
19924 msgstr "B<augeas>"
19925
19926 #. type: textblock
19927 #: ../src/guestfs-availability.pod:5
19928 msgid ""
19929 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
19930 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
19931 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
19932 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
19933 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
19934 msgstr ""
19935
19936 #. type: =item
19937 #: ../src/guestfs-availability.pod:21
19938 msgid "B<btrfs>"
19939 msgstr ""
19940
19941 #. type: textblock
19942 #: ../src/guestfs-availability.pod:23
19943 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
19944 msgstr ""
19945
19946 #. type: =item
19947 #: ../src/guestfs-availability.pod:26
19948 msgid "B<inotify>"
19949 msgstr "B<inotify>"
19950
19951 #. type: textblock
19952 #: ../src/guestfs-availability.pod:28
19953 msgid ""
19954 "The following functions: L</guestfs_inotify_add_watch> "
19955 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init>"
19956 " L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
19957 msgstr ""
19958
19959 #. type: =item
19960 #: ../src/guestfs-availability.pod:36
19961 msgid "B<linuxfsuuid>"
19962 msgstr "B<linuxfsuuid>"
19963
19964 #. type: textblock
19965 #: ../src/guestfs-availability.pod:38
19966 msgid ""
19967 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
19968 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
19969 msgstr ""
19970
19971 #. type: =item
19972 #: ../src/guestfs-availability.pod:45
19973 msgid "B<linuxmodules>"
19974 msgstr "B<linuxmodules>"
19975
19976 #. type: textblock
19977 #: ../src/guestfs-availability.pod:47
19978 msgid "The following functions: L</guestfs_modprobe>"
19979 msgstr ""
19980
19981 #. type: =item
19982 #: ../src/guestfs-availability.pod:50
19983 msgid "B<linuxxattrs>"
19984 msgstr "B<linuxxattrs>"
19985
19986 #. type: textblock
19987 #: ../src/guestfs-availability.pod:52
19988 msgid ""
19989 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
19990 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
19991 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
19992 "L</guestfs_setxattr>"
19993 msgstr ""
19994
19995 #. type: =item
19996 #: ../src/guestfs-availability.pod:63
19997 msgid "B<luks>"
19998 msgstr "B<luks>"
19999
20000 #. type: textblock
20001 #: ../src/guestfs-availability.pod:65
20002 msgid ""
20003 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
20004 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
20005 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
20006 msgstr ""
20007
20008 #. type: =item
20009 #: ../src/guestfs-availability.pod:74
20010 msgid "B<lvm2>"
20011 msgstr "B<lvm2>"
20012
20013 #. type: textblock
20014 #: ../src/guestfs-availability.pod:76
20015 msgid ""
20016 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
20017 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
20018 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
20019 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
20020 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
20021 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
20022 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
20023 "L</guestfs_vgs_full>"
20024 msgstr ""
20025
20026 #. type: =item
20027 #: ../src/guestfs-availability.pod:99
20028 msgid "B<mknod>"
20029 msgstr "B<mknod>"
20030
20031 #. type: textblock
20032 #: ../src/guestfs-availability.pod:101
20033 msgid ""
20034 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
20035 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
20036 msgstr ""
20037
20038 #. type: =item
20039 #: ../src/guestfs-availability.pod:107
20040 msgid "B<ntfs3g>"
20041 msgstr "B<ntfs3g>"
20042
20043 #. type: textblock
20044 #: ../src/guestfs-availability.pod:109
20045 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
20046 msgstr ""
20047
20048 #. type: =item
20049 #: ../src/guestfs-availability.pod:112
20050 msgid "B<ntfsprogs>"
20051 msgstr "B<ntfsprogs>"
20052
20053 #. type: textblock
20054 #: ../src/guestfs-availability.pod:114
20055 msgid ""
20056 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
20057 "L</guestfs_ntfsresize_size>"
20058 msgstr ""
20059
20060 #. type: =item
20061 #: ../src/guestfs-availability.pod:119
20062 msgid "B<realpath>"
20063 msgstr "B<realpath>"
20064
20065 #. type: textblock
20066 #: ../src/guestfs-availability.pod:121
20067 msgid "The following functions: L</guestfs_realpath>"
20068 msgstr ""
20069
20070 #. type: =item
20071 #: ../src/guestfs-availability.pod:124
20072 msgid "B<scrub>"
20073 msgstr "B<scrub>"
20074
20075 #. type: textblock
20076 #: ../src/guestfs-availability.pod:126
20077 msgid ""
20078 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
20079 "L</guestfs_scrub_freespace>"
20080 msgstr ""
20081
20082 #. type: =item
20083 #: ../src/guestfs-availability.pod:131
20084 msgid "B<selinux>"
20085 msgstr "B<selinux>"
20086
20087 #. type: textblock
20088 #: ../src/guestfs-availability.pod:133
20089 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
20090 msgstr ""
20091
20092 #. type: =item
20093 #: ../src/guestfs-availability.pod:137
20094 msgid "B<xz>"
20095 msgstr "B<xz>"
20096
20097 #. type: textblock
20098 #: ../src/guestfs-availability.pod:139
20099 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
20100 msgstr ""
20101
20102 #. type: =item
20103 #: ../src/guestfs-availability.pod:143
20104 msgid "B<zerofree>"
20105 msgstr "B<zerofree>"
20106
20107 #. type: textblock
20108 #: ../src/guestfs-availability.pod:145
20109 msgid "The following functions: L</guestfs_zerofree>"
20110 msgstr ""
20111
20112 #. type: =head2
20113 #: ../src/guestfs-structs.pod:1
20114 msgid "guestfs_int_bool"
20115 msgstr ""
20116
20117 #. type: verbatim
20118 #: ../src/guestfs-structs.pod:3
20119 #, no-wrap
20120 msgid ""
20121 " struct guestfs_int_bool {\n"
20122 "   int32_t i;\n"
20123 "   int32_t b;\n"
20124 " };\n"
20125 " \n"
20126 msgstr ""
20127
20128 #. type: verbatim
20129 #: ../src/guestfs-structs.pod:8
20130 #, no-wrap
20131 msgid ""
20132 " struct guestfs_int_bool_list {\n"
20133 "   uint32_t len; /* Number of elements in list. */\n"
20134 "   struct guestfs_int_bool *val; /* Elements. */\n"
20135 " };\n"
20136 " \n"
20137 msgstr ""
20138
20139 #. type: verbatim
20140 #: ../src/guestfs-structs.pod:13
20141 #, no-wrap
20142 msgid ""
20143 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
20144 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
20145 "\n"
20146 msgstr ""
20147
20148 #. type: =head2
20149 #: ../src/guestfs-structs.pod:16
20150 msgid "guestfs_lvm_pv"
20151 msgstr ""
20152
20153 #. type: verbatim
20154 #: ../src/guestfs-structs.pod:18
20155 #, no-wrap
20156 msgid ""
20157 " struct guestfs_lvm_pv {\n"
20158 "   char *pv_name;\n"
20159 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
20160 "   char pv_uuid[32];\n"
20161 "   char *pv_fmt;\n"
20162 "   uint64_t pv_size;\n"
20163 "   uint64_t dev_size;\n"
20164 "   uint64_t pv_free;\n"
20165 "   uint64_t pv_used;\n"
20166 "   char *pv_attr;\n"
20167 "   int64_t pv_pe_count;\n"
20168 "   int64_t pv_pe_alloc_count;\n"
20169 "   char *pv_tags;\n"
20170 "   uint64_t pe_start;\n"
20171 "   int64_t pv_mda_count;\n"
20172 "   uint64_t pv_mda_free;\n"
20173 " };\n"
20174 " \n"
20175 msgstr ""
20176
20177 #. type: verbatim
20178 #: ../src/guestfs-structs.pod:36
20179 #, no-wrap
20180 msgid ""
20181 " struct guestfs_lvm_pv_list {\n"
20182 "   uint32_t len; /* Number of elements in list. */\n"
20183 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
20184 " };\n"
20185 " \n"
20186 msgstr ""
20187
20188 #. type: verbatim
20189 #: ../src/guestfs-structs.pod:41
20190 #, no-wrap
20191 msgid ""
20192 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
20193 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
20194 "\n"
20195 msgstr ""
20196
20197 #. type: =head2
20198 #: ../src/guestfs-structs.pod:44
20199 msgid "guestfs_lvm_vg"
20200 msgstr ""
20201
20202 #. type: verbatim
20203 #: ../src/guestfs-structs.pod:46
20204 #, no-wrap
20205 msgid ""
20206 " struct guestfs_lvm_vg {\n"
20207 "   char *vg_name;\n"
20208 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
20209 "   char vg_uuid[32];\n"
20210 "   char *vg_fmt;\n"
20211 "   char *vg_attr;\n"
20212 "   uint64_t vg_size;\n"
20213 "   uint64_t vg_free;\n"
20214 "   char *vg_sysid;\n"
20215 "   uint64_t vg_extent_size;\n"
20216 "   int64_t vg_extent_count;\n"
20217 "   int64_t vg_free_count;\n"
20218 "   int64_t max_lv;\n"
20219 "   int64_t max_pv;\n"
20220 "   int64_t pv_count;\n"
20221 "   int64_t lv_count;\n"
20222 "   int64_t snap_count;\n"
20223 "   int64_t vg_seqno;\n"
20224 "   char *vg_tags;\n"
20225 "   int64_t vg_mda_count;\n"
20226 "   uint64_t vg_mda_free;\n"
20227 " };\n"
20228 " \n"
20229 msgstr ""
20230
20231 #. type: verbatim
20232 #: ../src/guestfs-structs.pod:69
20233 #, no-wrap
20234 msgid ""
20235 " struct guestfs_lvm_vg_list {\n"
20236 "   uint32_t len; /* Number of elements in list. */\n"
20237 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
20238 " };\n"
20239 " \n"
20240 msgstr ""
20241
20242 #. type: verbatim
20243 #: ../src/guestfs-structs.pod:74
20244 #, no-wrap
20245 msgid ""
20246 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
20247 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
20248 "\n"
20249 msgstr ""
20250
20251 #. type: =head2
20252 #: ../src/guestfs-structs.pod:77
20253 msgid "guestfs_lvm_lv"
20254 msgstr ""
20255
20256 #. type: verbatim
20257 #: ../src/guestfs-structs.pod:79
20258 #, no-wrap
20259 msgid ""
20260 " struct guestfs_lvm_lv {\n"
20261 "   char *lv_name;\n"
20262 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
20263 "   char lv_uuid[32];\n"
20264 "   char *lv_attr;\n"
20265 "   int64_t lv_major;\n"
20266 "   int64_t lv_minor;\n"
20267 "   int64_t lv_kernel_major;\n"
20268 "   int64_t lv_kernel_minor;\n"
20269 "   uint64_t lv_size;\n"
20270 "   int64_t seg_count;\n"
20271 "   char *origin;\n"
20272 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
20273 "   float snap_percent;\n"
20274 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
20275 "   float copy_percent;\n"
20276 "   char *move_pv;\n"
20277 "   char *lv_tags;\n"
20278 "   char *mirror_log;\n"
20279 "   char *modules;\n"
20280 " };\n"
20281 " \n"
20282 msgstr ""
20283
20284 #. type: verbatim
20285 #: ../src/guestfs-structs.pod:101
20286 #, no-wrap
20287 msgid ""
20288 " struct guestfs_lvm_lv_list {\n"
20289 "   uint32_t len; /* Number of elements in list. */\n"
20290 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
20291 " };\n"
20292 " \n"
20293 msgstr ""
20294
20295 #. type: verbatim
20296 #: ../src/guestfs-structs.pod:106
20297 #, no-wrap
20298 msgid ""
20299 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
20300 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
20301 "\n"
20302 msgstr ""
20303
20304 #. type: verbatim
20305 #: ../src/guestfs-structs.pod:111
20306 #, no-wrap
20307 msgid ""
20308 " struct guestfs_stat {\n"
20309 "   int64_t dev;\n"
20310 "   int64_t ino;\n"
20311 "   int64_t mode;\n"
20312 "   int64_t nlink;\n"
20313 "   int64_t uid;\n"
20314 "   int64_t gid;\n"
20315 "   int64_t rdev;\n"
20316 "   int64_t size;\n"
20317 "   int64_t blksize;\n"
20318 "   int64_t blocks;\n"
20319 "   int64_t atime;\n"
20320 "   int64_t mtime;\n"
20321 "   int64_t ctime;\n"
20322 " };\n"
20323 " \n"
20324 msgstr ""
20325
20326 #. type: verbatim
20327 #: ../src/guestfs-structs.pod:127
20328 #, no-wrap
20329 msgid ""
20330 " struct guestfs_stat_list {\n"
20331 "   uint32_t len; /* Number of elements in list. */\n"
20332 "   struct guestfs_stat *val; /* Elements. */\n"
20333 " };\n"
20334 " \n"
20335 msgstr ""
20336
20337 #. type: verbatim
20338 #: ../src/guestfs-structs.pod:132
20339 #, no-wrap
20340 msgid ""
20341 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
20342 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
20343 "\n"
20344 msgstr ""
20345
20346 #. type: verbatim
20347 #: ../src/guestfs-structs.pod:137
20348 #, no-wrap
20349 msgid ""
20350 " struct guestfs_statvfs {\n"
20351 "   int64_t bsize;\n"
20352 "   int64_t frsize;\n"
20353 "   int64_t blocks;\n"
20354 "   int64_t bfree;\n"
20355 "   int64_t bavail;\n"
20356 "   int64_t files;\n"
20357 "   int64_t ffree;\n"
20358 "   int64_t favail;\n"
20359 "   int64_t fsid;\n"
20360 "   int64_t flag;\n"
20361 "   int64_t namemax;\n"
20362 " };\n"
20363 " \n"
20364 msgstr ""
20365
20366 #. type: verbatim
20367 #: ../src/guestfs-structs.pod:151
20368 #, no-wrap
20369 msgid ""
20370 " struct guestfs_statvfs_list {\n"
20371 "   uint32_t len; /* Number of elements in list. */\n"
20372 "   struct guestfs_statvfs *val; /* Elements. */\n"
20373 " };\n"
20374 " \n"
20375 msgstr ""
20376
20377 #. type: verbatim
20378 #: ../src/guestfs-structs.pod:156
20379 #, no-wrap
20380 msgid ""
20381 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
20382 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
20383 "\n"
20384 msgstr ""
20385
20386 #. type: =head2
20387 #: ../src/guestfs-structs.pod:159
20388 msgid "guestfs_dirent"
20389 msgstr ""
20390
20391 #. type: verbatim
20392 #: ../src/guestfs-structs.pod:161
20393 #, no-wrap
20394 msgid ""
20395 " struct guestfs_dirent {\n"
20396 "   int64_t ino;\n"
20397 "   char ftyp;\n"
20398 "   char *name;\n"
20399 " };\n"
20400 " \n"
20401 msgstr ""
20402
20403 #. type: verbatim
20404 #: ../src/guestfs-structs.pod:167
20405 #, no-wrap
20406 msgid ""
20407 " struct guestfs_dirent_list {\n"
20408 "   uint32_t len; /* Number of elements in list. */\n"
20409 "   struct guestfs_dirent *val; /* Elements. */\n"
20410 " };\n"
20411 " \n"
20412 msgstr ""
20413
20414 #. type: verbatim
20415 #: ../src/guestfs-structs.pod:172
20416 #, no-wrap
20417 msgid ""
20418 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
20419 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
20420 "\n"
20421 msgstr ""
20422
20423 #. type: verbatim
20424 #: ../src/guestfs-structs.pod:177
20425 #, no-wrap
20426 msgid ""
20427 " struct guestfs_version {\n"
20428 "   int64_t major;\n"
20429 "   int64_t minor;\n"
20430 "   int64_t release;\n"
20431 "   char *extra;\n"
20432 " };\n"
20433 " \n"
20434 msgstr ""
20435
20436 #. type: verbatim
20437 #: ../src/guestfs-structs.pod:184
20438 #, no-wrap
20439 msgid ""
20440 " struct guestfs_version_list {\n"
20441 "   uint32_t len; /* Number of elements in list. */\n"
20442 "   struct guestfs_version *val; /* Elements. */\n"
20443 " };\n"
20444 " \n"
20445 msgstr ""
20446
20447 #. type: verbatim
20448 #: ../src/guestfs-structs.pod:189
20449 #, no-wrap
20450 msgid ""
20451 " void guestfs_free_version (struct guestfs_free_version *);\n"
20452 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
20453 "\n"
20454 msgstr ""
20455
20456 #. type: =head2
20457 #: ../src/guestfs-structs.pod:192
20458 msgid "guestfs_xattr"
20459 msgstr ""
20460
20461 #. type: verbatim
20462 #: ../src/guestfs-structs.pod:194
20463 #, no-wrap
20464 msgid ""
20465 " struct guestfs_xattr {\n"
20466 "   char *attrname;\n"
20467 "   /* The next two fields describe a byte array. */\n"
20468 "   uint32_t attrval_len;\n"
20469 "   char *attrval;\n"
20470 " };\n"
20471 " \n"
20472 msgstr ""
20473
20474 #. type: verbatim
20475 #: ../src/guestfs-structs.pod:201
20476 #, no-wrap
20477 msgid ""
20478 " struct guestfs_xattr_list {\n"
20479 "   uint32_t len; /* Number of elements in list. */\n"
20480 "   struct guestfs_xattr *val; /* Elements. */\n"
20481 " };\n"
20482 " \n"
20483 msgstr ""
20484
20485 #. type: verbatim
20486 #: ../src/guestfs-structs.pod:206
20487 #, no-wrap
20488 msgid ""
20489 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
20490 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
20491 "\n"
20492 msgstr ""
20493
20494 #. type: =head2
20495 #: ../src/guestfs-structs.pod:209
20496 msgid "guestfs_inotify_event"
20497 msgstr ""
20498
20499 #. type: verbatim
20500 #: ../src/guestfs-structs.pod:211
20501 #, no-wrap
20502 msgid ""
20503 " struct guestfs_inotify_event {\n"
20504 "   int64_t in_wd;\n"
20505 "   uint32_t in_mask;\n"
20506 "   uint32_t in_cookie;\n"
20507 "   char *in_name;\n"
20508 " };\n"
20509 " \n"
20510 msgstr ""
20511
20512 #. type: verbatim
20513 #: ../src/guestfs-structs.pod:218
20514 #, no-wrap
20515 msgid ""
20516 " struct guestfs_inotify_event_list {\n"
20517 "   uint32_t len; /* Number of elements in list. */\n"
20518 "   struct guestfs_inotify_event *val; /* Elements. */\n"
20519 " };\n"
20520 " \n"
20521 msgstr ""
20522
20523 #. type: verbatim
20524 #: ../src/guestfs-structs.pod:223
20525 #, no-wrap
20526 msgid ""
20527 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
20528 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
20529 "\n"
20530 msgstr ""
20531
20532 #. type: =head2
20533 #: ../src/guestfs-structs.pod:226
20534 msgid "guestfs_partition"
20535 msgstr ""
20536
20537 #. type: verbatim
20538 #: ../src/guestfs-structs.pod:228
20539 #, no-wrap
20540 msgid ""
20541 " struct guestfs_partition {\n"
20542 "   int32_t part_num;\n"
20543 "   uint64_t part_start;\n"
20544 "   uint64_t part_end;\n"
20545 "   uint64_t part_size;\n"
20546 " };\n"
20547 " \n"
20548 msgstr ""
20549
20550 #. type: verbatim
20551 #: ../src/guestfs-structs.pod:235
20552 #, no-wrap
20553 msgid ""
20554 " struct guestfs_partition_list {\n"
20555 "   uint32_t len; /* Number of elements in list. */\n"
20556 "   struct guestfs_partition *val; /* Elements. */\n"
20557 " };\n"
20558 " \n"
20559 msgstr ""
20560
20561 #. type: verbatim
20562 #: ../src/guestfs-structs.pod:240
20563 #, no-wrap
20564 msgid ""
20565 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
20566 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
20567 "\n"
20568 msgstr ""
20569
20570 #. type: =head2
20571 #: ../src/guestfs-structs.pod:243
20572 msgid "guestfs_application"
20573 msgstr ""
20574
20575 #. type: verbatim
20576 #: ../src/guestfs-structs.pod:245
20577 #, no-wrap
20578 msgid ""
20579 " struct guestfs_application {\n"
20580 "   char *app_name;\n"
20581 "   char *app_display_name;\n"
20582 "   int32_t app_epoch;\n"
20583 "   char *app_version;\n"
20584 "   char *app_release;\n"
20585 "   char *app_install_path;\n"
20586 "   char *app_trans_path;\n"
20587 "   char *app_publisher;\n"
20588 "   char *app_url;\n"
20589 "   char *app_source_package;\n"
20590 "   char *app_summary;\n"
20591 "   char *app_description;\n"
20592 " };\n"
20593 " \n"
20594 msgstr ""
20595
20596 #. type: verbatim
20597 #: ../src/guestfs-structs.pod:260
20598 #, no-wrap
20599 msgid ""
20600 " struct guestfs_application_list {\n"
20601 "   uint32_t len; /* Number of elements in list. */\n"
20602 "   struct guestfs_application *val; /* Elements. */\n"
20603 " };\n"
20604 " \n"
20605 msgstr ""
20606
20607 #. type: verbatim
20608 #: ../src/guestfs-structs.pod:265
20609 #, no-wrap
20610 msgid ""
20611 " void guestfs_free_application (struct guestfs_free_application *);\n"
20612 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
20613 "\n"
20614 msgstr ""
20615
20616 #. type: textblock
20617 #: ../fish/guestfish.pod:5
20618 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
20619 msgstr ""
20620
20621 #. type: verbatim
20622 #: ../fish/guestfish.pod:9
20623 #, no-wrap
20624 msgid ""
20625 " guestfish [--options] [commands]\n"
20626 "\n"
20627 msgstr ""
20628
20629 #. type: verbatim
20630 #: ../fish/guestfish.pod:11
20631 #, no-wrap
20632 msgid ""
20633 " guestfish\n"
20634 "\n"
20635 msgstr ""
20636
20637 #. type: verbatim
20638 #: ../fish/guestfish.pod:13
20639 #, no-wrap
20640 msgid ""
20641 " guestfish [--ro|--rw] -a disk.img\n"
20642 "\n"
20643 msgstr ""
20644
20645 #. type: verbatim
20646 #: ../fish/guestfish.pod:15
20647 #, no-wrap
20648 msgid ""
20649 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
20650 "\n"
20651 msgstr ""
20652
20653 #. type: verbatim
20654 #: ../fish/guestfish.pod:17
20655 #, no-wrap
20656 msgid ""
20657 " guestfish -d libvirt-domain\n"
20658 "\n"
20659 msgstr ""
20660
20661 #. type: verbatim
20662 #: ../fish/guestfish.pod:19
20663 #, no-wrap
20664 msgid ""
20665 " guestfish [--ro|--rw] -a disk.img -i\n"
20666 "\n"
20667 msgstr ""
20668
20669 #. type: verbatim
20670 #: ../fish/guestfish.pod:21
20671 #, no-wrap
20672 msgid ""
20673 " guestfish -d libvirt-domain -i\n"
20674 "\n"
20675 msgstr ""
20676
20677 #. type: =head1
20678 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15
20679 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:64
20680 msgid "WARNING"
20681 msgstr "ПОПЕРЕДЖЕННЯ"
20682
20683 #. type: textblock
20684 #: ../fish/guestfish.pod:25
20685 msgid ""
20686 "Using guestfish in read/write mode on live virtual machines can be "
20687 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only)"
20688 " option to use guestfish safely if the disk image or virtual machine might "
20689 "be live."
20690 msgstr ""
20691
20692 #. type: textblock
20693 #: ../fish/guestfish.pod:32
20694 msgid ""
20695 "Guestfish is a shell and command-line tool for examining and modifying "
20696 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
20697 "functionality of the guestfs API, see L<guestfs(3)>."
20698 msgstr ""
20699
20700 #. type: textblock
20701 #: ../fish/guestfish.pod:36
20702 msgid ""
20703 "Guestfish gives you structured access to the libguestfs API, from shell "
20704 "scripts or the command line or interactively.  If you want to rescue a "
20705 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
20706 "command."
20707 msgstr ""
20708
20709 #. type: =head1
20710 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:1007
20711 #: ../fuse/guestmount.pod:39 ../tools/virt-tar.pl:50
20712 msgid "EXAMPLES"
20713 msgstr "ПРИКЛАДИ"
20714
20715 #. type: =head2
20716 #: ../fish/guestfish.pod:43
20717 msgid "As an interactive shell"
20718 msgstr ""
20719
20720 #. type: verbatim
20721 #: ../fish/guestfish.pod:45
20722 #, no-wrap
20723 msgid ""
20724 " $ guestfish\n"
20725 " \n"
20726 msgstr ""
20727
20728 #. type: verbatim
20729 #: ../fish/guestfish.pod:47
20730 #, no-wrap
20731 msgid ""
20732 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
20733 " editing virtual machine filesystems.\n"
20734 " \n"
20735 msgstr ""
20736
20737 #. type: verbatim
20738 #: ../fish/guestfish.pod:50
20739 #, no-wrap
20740 msgid ""
20741 " Type: 'help' for a list of commands\n"
20742 "       'man' to read the manual\n"
20743 "       'quit' to quit the shell\n"
20744 " \n"
20745 msgstr ""
20746
20747 #. type: verbatim
20748 #: ../fish/guestfish.pod:54
20749 #, no-wrap
20750 msgid ""
20751 " ><fs> add-ro disk.img\n"
20752 " ><fs> run\n"
20753 " ><fs> list-filesystems\n"
20754 " /dev/sda1: ext4\n"
20755 " /dev/vg_guest/lv_root: ext4\n"
20756 " /dev/vg_guest/lv_swap: swap\n"
20757 " ><fs> mount /dev/vg_guest/lv_root /\n"
20758 " ><fs> cat /etc/fstab\n"
20759 " # /etc/fstab\n"
20760 " # Created by anaconda\n"
20761 " [...]\n"
20762 " ><fs> exit\n"
20763 "\n"
20764 msgstr ""
20765
20766 #. type: =head2
20767 #: ../fish/guestfish.pod:67
20768 msgid "From shell scripts"
20769 msgstr ""
20770
20771 #. type: textblock
20772 #: ../fish/guestfish.pod:69
20773 msgid "Create a new C</etc/motd> file in a guest or disk image:"
20774 msgstr ""
20775
20776 #. type: verbatim
20777 #: ../fish/guestfish.pod:71
20778 #, no-wrap
20779 msgid ""
20780 " guestfish <<_EOF_\n"
20781 " add disk.img\n"
20782 " run\n"
20783 " mount /dev/vg_guest/lv_root /\n"
20784 " write /etc/motd \"Welcome, new users\"\n"
20785 " _EOF_\n"
20786 "\n"
20787 msgstr ""
20788
20789 #. type: textblock
20790 #: ../fish/guestfish.pod:78
20791 msgid "List the LVM logical volumes in a disk image:"
20792 msgstr ""
20793
20794 #. type: verbatim
20795 #: ../fish/guestfish.pod:80
20796 #, no-wrap
20797 msgid ""
20798 " guestfish -a disk.img --ro <<_EOF_\n"
20799 " run\n"
20800 " lvs\n"
20801 " _EOF_\n"
20802 "\n"
20803 msgstr ""
20804
20805 #. type: textblock
20806 #: ../fish/guestfish.pod:85
20807 msgid "List all the filesystems in a disk image:"
20808 msgstr ""
20809
20810 #. type: verbatim
20811 #: ../fish/guestfish.pod:87
20812 #, no-wrap
20813 msgid ""
20814 " guestfish -a disk.img --ro <<_EOF_\n"
20815 " run\n"
20816 " list-filesystems\n"
20817 " _EOF_\n"
20818 "\n"
20819 msgstr ""
20820
20821 #. type: =head2
20822 #: ../fish/guestfish.pod:92
20823 msgid "On one command line"
20824 msgstr ""
20825
20826 #. type: textblock
20827 #: ../fish/guestfish.pod:94
20828 msgid "Update C</etc/resolv.conf> in a guest:"
20829 msgstr ""
20830
20831 #. type: verbatim
20832 #: ../fish/guestfish.pod:96
20833 #, no-wrap
20834 msgid ""
20835 " guestfish \\\n"
20836 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
20837 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
20838 "\n"
20839 msgstr ""
20840
20841 #. type: textblock
20842 #: ../fish/guestfish.pod:100
20843 msgid "Edit C</boot/grub/grub.conf> interactively:"
20844 msgstr ""
20845
20846 #. type: verbatim
20847 #: ../fish/guestfish.pod:102
20848 #, no-wrap
20849 msgid ""
20850 " guestfish --rw --add disk.img \\\n"
20851 "   --mount /dev/vg_guest/lv_root \\\n"
20852 "   --mount /dev/sda1:/boot \\\n"
20853 "   edit /boot/grub/grub.conf\n"
20854 "\n"
20855 msgstr ""
20856
20857 #. type: =head2
20858 #: ../fish/guestfish.pod:107
20859 msgid "Mount disks automatically"
20860 msgstr ""
20861
20862 #. type: textblock
20863 #: ../fish/guestfish.pod:109
20864 msgid ""
20865 "Use the I<-i> option to automatically mount the disks from a virtual "
20866 "machine:"
20867 msgstr ""
20868
20869 #. type: verbatim
20870 #: ../fish/guestfish.pod:112
20871 #, no-wrap
20872 msgid ""
20873 " guestfish --ro -a disk.img -i cat /etc/group\n"
20874 "\n"
20875 msgstr ""
20876
20877 #. type: verbatim
20878 #: ../fish/guestfish.pod:114
20879 #, no-wrap
20880 msgid ""
20881 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
20882 "\n"
20883 msgstr ""
20884
20885 #. type: textblock
20886 #: ../fish/guestfish.pod:116
20887 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
20888 msgstr ""
20889
20890 #. type: verbatim
20891 #: ../fish/guestfish.pod:118
20892 #, no-wrap
20893 msgid ""
20894 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
20895 "\n"
20896 msgstr ""
20897
20898 #. type: =head2
20899 #: ../fish/guestfish.pod:120
20900 msgid "As a script interpreter"
20901 msgstr ""
20902
20903 #. type: textblock
20904 #: ../fish/guestfish.pod:122
20905 msgid "Create a 100MB disk containing an ext2-formatted partition:"
20906 msgstr ""
20907
20908 #. type: verbatim
20909 #: ../fish/guestfish.pod:124
20910 #, no-wrap
20911 msgid ""
20912 " #!/usr/bin/guestfish -f\n"
20913 " sparse test1.img 100M\n"
20914 " run\n"
20915 " part-disk /dev/sda mbr\n"
20916 " mkfs ext2 /dev/sda1\n"
20917 "\n"
20918 msgstr ""
20919
20920 #. type: =head2
20921 #: ../fish/guestfish.pod:130
20922 msgid "Start with a prepared disk"
20923 msgstr ""
20924
20925 #. type: textblock
20926 #: ../fish/guestfish.pod:132
20927 msgid ""
20928 "An alternate way to create a 100MB disk called C<test1.img> containing a "
20929 "single ext2-formatted partition:"
20930 msgstr ""
20931
20932 #. type: verbatim
20933 #: ../fish/guestfish.pod:135
20934 #, no-wrap
20935 msgid ""
20936 " guestfish -N fs\n"
20937 "\n"
20938 msgstr ""
20939
20940 #. type: textblock
20941 #: ../fish/guestfish.pod:137
20942 msgid "To list what is available do:"
20943 msgstr ""
20944
20945 #. type: verbatim
20946 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:998
20947 #, no-wrap
20948 msgid ""
20949 " guestfish -N help | less\n"
20950 "\n"
20951 msgstr ""
20952
20953 #. type: =head2
20954 #: ../fish/guestfish.pod:141
20955 msgid "Remote control"
20956 msgstr "Дистанційне керування"
20957
20958 #. type: verbatim
20959 #: ../fish/guestfish.pod:143
20960 #, no-wrap
20961 msgid ""
20962 " eval \"`guestfish --listen`\"\n"
20963 " guestfish --remote add-ro disk.img\n"
20964 " guestfish --remote run\n"
20965 " guestfish --remote lvs\n"
20966 "\n"
20967 msgstr ""
20968 " eval \"`guestfish --listen`\"\n"
20969 " guestfish --remote add-ro disk.img\n"
20970 " guestfish --remote run\n"
20971 " guestfish --remote lvs\n"
20972 "\n"
20973
20974 #. type: =head1
20975 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
20976 #: ../fuse/guestmount.pod:83 ../tools/virt-win-reg.pl:96
20977 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:103
20978 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
20979 msgid "OPTIONS"
20980 msgstr "ПАРАМЕТРИ"
20981
20982 #. type: =item
20983 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:143
20984 #: ../tools/virt-win-reg.pl:104 ../tools/virt-list-filesystems.pl:61
20985 #: ../tools/virt-tar.pl:111 ../tools/virt-make-fs.pl:161
20986 #: ../tools/virt-list-partitions.pl:62
20987 msgid "B<--help>"
20988 msgstr "B<--help>"
20989
20990 #. type: textblock
20991 #: ../fish/guestfish.pod:154
20992 msgid "Displays general help on options."
20993 msgstr ""
20994
20995 #. type: =item
20996 #: ../fish/guestfish.pod:156
20997 msgid "B<-h>"
20998 msgstr "B<-h>"
20999
21000 #. type: =item
21001 #: ../fish/guestfish.pod:158
21002 msgid "B<--cmd-help>"
21003 msgstr "B<--cmd-help>"
21004
21005 #. type: textblock
21006 #: ../fish/guestfish.pod:160
21007 msgid "Lists all available guestfish commands."
21008 msgstr ""
21009
21010 #. type: =item
21011 #: ../fish/guestfish.pod:162
21012 msgid "B<-h cmd>"
21013 msgstr "B<-h команда>"
21014
21015 #. type: =item
21016 #: ../fish/guestfish.pod:164
21017 msgid "B<--cmd-help cmd>"
21018 msgstr "B<--cmd-help команда>"
21019
21020 #. type: textblock
21021 #: ../fish/guestfish.pod:166
21022 msgid "Displays detailed help on a single command C<cmd>."
21023 msgstr ""
21024
21025 #. type: =item
21026 #: ../fish/guestfish.pod:168
21027 msgid "B<-a image>"
21028 msgstr "B<-a образ>"
21029
21030 #. type: =item
21031 #: ../fish/guestfish.pod:170
21032 msgid "B<--add image>"
21033 msgstr "B<--add образ>"
21034
21035 #. type: textblock
21036 #: ../fish/guestfish.pod:172
21037 msgid "Add a block device or virtual machine image to the shell."
21038 msgstr ""
21039
21040 #. type: textblock
21041 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:91
21042 msgid ""
21043 "The format of the disk image is auto-detected.  To override this and force a"
21044 " particular format use the I<--format=..> option."
21045 msgstr ""
21046
21047 #. type: textblock
21048 #: ../fish/guestfish.pod:177
21049 msgid ""
21050 "Using this flag is mostly equivalent to using the C<add> command, with "
21051 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
21052 "the I<--format=...> flag was given."
21053 msgstr ""
21054
21055 #. type: =item
21056 #: ../fish/guestfish.pod:181
21057 msgid "B<-c URI>"
21058 msgstr "B<-c адреса>"
21059
21060 #. type: =item
21061 #: ../fish/guestfish.pod:183
21062 msgid "B<--connect URI>"
21063 msgstr "B<--connect адреса>"
21064
21065 #. type: textblock
21066 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:96
21067 msgid ""
21068 "When used in conjunction with the I<-d> option, this specifies the libvirt "
21069 "URI to use.  The default is to use the default libvirt connection."
21070 msgstr ""
21071
21072 #. type: =item
21073 #: ../fish/guestfish.pod:189
21074 msgid "B<--csh>"
21075 msgstr "B<--csh>"
21076
21077 #. type: textblock
21078 #: ../fish/guestfish.pod:191
21079 msgid ""
21080 "If using the I<--listen> option and a csh-like shell, use this option.  See "
21081 "section L</REMOTE CONTROL AND CSH> below."
21082 msgstr ""
21083
21084 #. type: =item
21085 #: ../fish/guestfish.pod:194
21086 msgid "B<-d libvirt-domain>"
21087 msgstr "B<-d домен-libvirt>"
21088
21089 #. type: =item
21090 #: ../fish/guestfish.pod:196
21091 msgid "B<--domain libvirt-domain>"
21092 msgstr "B<--domain домен-libvirt>"
21093
21094 #. type: textblock
21095 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:102
21096 msgid ""
21097 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
21098 "used, then any libvirt domain can be used.  However in write mode, only "
21099 "libvirt domains which are shut down can be named here."
21100 msgstr ""
21101
21102 #. type: textblock
21103 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:106
21104 msgid "Domain UUIDs can be used instead of names."
21105 msgstr ""
21106
21107 #. type: textblock
21108 #: ../fish/guestfish.pod:204
21109 msgid ""
21110 "Using this flag is mostly equivalent to using the C<add-domain> command, "
21111 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
21112 "if the I<--format:...> flag was given."
21113 msgstr ""
21114
21115 #. type: =item
21116 #: ../fish/guestfish.pod:208
21117 msgid "B<-D>"
21118 msgstr "B<-D>"
21119
21120 #. type: =item
21121 #: ../fish/guestfish.pod:210
21122 msgid "B<--no-dest-paths>"
21123 msgstr "B<--no-dest-paths>"
21124
21125 #. type: textblock
21126 #: ../fish/guestfish.pod:212
21127 msgid ""
21128 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
21129 "to hit the tab key to complete paths on the guest filesystem, but this "
21130 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
21131 "allow this feature to be disabled."
21132 msgstr ""
21133
21134 #. type: =item
21135 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:120
21136 msgid "B<--echo-keys>"
21137 msgstr "B<--echo-keys>"
21138
21139 #. type: textblock
21140 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:122
21141 msgid ""
21142 "When prompting for keys and passphrases, guestfish normally turns echoing "
21143 "off so you cannot see what you are typing.  If you are not worried about "
21144 "Tempest attacks and there is no one else in the room you can specify this "
21145 "flag to see what you are typing."
21146 msgstr ""
21147
21148 #. type: =item
21149 #: ../fish/guestfish.pod:224
21150 msgid "B<-f file>"
21151 msgstr "B<-f файл>"
21152
21153 #. type: =item
21154 #: ../fish/guestfish.pod:226
21155 msgid "B<--file file>"
21156 msgstr "B<--file файл>"
21157
21158 #. type: textblock
21159 #: ../fish/guestfish.pod:228
21160 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
21161 msgstr ""
21162
21163 #. type: verbatim
21164 #: ../fish/guestfish.pod:231
21165 #, no-wrap
21166 msgid ""
21167 " #!/usr/bin/guestfish -f\n"
21168 "\n"
21169 msgstr ""
21170 " #!/usr/bin/guestfish -f\n"
21171 "\n"
21172
21173 #. type: =item
21174 #: ../fish/guestfish.pod:233
21175 msgid "B<--format=raw|qcow2|..>"
21176 msgstr "B<--format=raw|qcow2|..>"
21177
21178 #. type: =item
21179 #: ../fish/guestfish.pod:235
21180 msgid "B<--format>"
21181 msgstr "B<--format>"
21182
21183 #. type: textblock
21184 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:129
21185 msgid ""
21186 "The default for the I<-a> option is to auto-detect the format of the disk "
21187 "image.  Using this forces the disk format for I<-a> options which follow on "
21188 "the command line.  Using I<--format> with no argument switches back to auto-"
21189 "detection for subsequent I<-a> options."
21190 msgstr ""
21191
21192 #. type: verbatim
21193 #: ../fish/guestfish.pod:244
21194 #, no-wrap
21195 msgid ""
21196 " guestfish --format=raw -a disk.img\n"
21197 "\n"
21198 msgstr ""
21199 " guestfish --format=raw -a disk.img\n"
21200 "\n"
21201
21202 #. type: textblock
21203 #: ../fish/guestfish.pod:246
21204 msgid "forces raw format (no auto-detection) for C<disk.img>."
21205 msgstr ""
21206
21207 #. type: verbatim
21208 #: ../fish/guestfish.pod:248
21209 #, no-wrap
21210 msgid ""
21211 " guestfish --format=raw -a disk.img --format -a another.img\n"
21212 "\n"
21213 msgstr ""
21214 " guestfish --format=raw -a disk.img --format -a another.img\n"
21215 "\n"
21216
21217 #. type: textblock
21218 #: ../fish/guestfish.pod:250
21219 msgid ""
21220 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
21221 "detection for C<another.img>."
21222 msgstr ""
21223
21224 #. type: textblock
21225 #: ../fish/guestfish.pod:253
21226 msgid ""
21227 "If you have untrusted raw-format guest disk images, you should use this "
21228 "option to specify the disk format.  This avoids a possible security problem "
21229 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
21230 msgstr ""
21231
21232 #. type: =item
21233 #: ../fish/guestfish.pod:258
21234 msgid "B<-i>"
21235 msgstr "B<-i>"
21236
21237 #. type: =item
21238 #: ../fish/guestfish.pod:260
21239 msgid "B<--inspector>"
21240 msgstr "B<--inspector>"
21241
21242 #. type: textblock
21243 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:149
21244 msgid ""
21245 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
21246 "system and mount filesystems as they would be mounted on the real virtual "
21247 "machine."
21248 msgstr ""
21249
21250 #. type: textblock
21251 #: ../fish/guestfish.pod:266
21252 msgid "Typical usage is either:"
21253 msgstr ""
21254
21255 #. type: verbatim
21256 #: ../fish/guestfish.pod:268
21257 #, no-wrap
21258 msgid ""
21259 " guestfish -d myguest -i\n"
21260 "\n"
21261 msgstr ""
21262 " guestfish -d myguest -i\n"
21263 "\n"
21264
21265 #. type: textblock
21266 #: ../fish/guestfish.pod:270
21267 msgid "(for an inactive libvirt domain called I<myguest>), or:"
21268 msgstr ""
21269
21270 #. type: verbatim
21271 #: ../fish/guestfish.pod:272
21272 #, no-wrap
21273 msgid ""
21274 " guestfish --ro -d myguest -i\n"
21275 "\n"
21276 msgstr ""
21277 " guestfish --ro -d myguest -i\n"
21278 "\n"
21279
21280 #. type: textblock
21281 #: ../fish/guestfish.pod:274
21282 msgid "(for active domains, readonly), or specify the block device directly:"
21283 msgstr ""
21284
21285 #. type: verbatim
21286 #: ../fish/guestfish.pod:276
21287 #, no-wrap
21288 msgid ""
21289 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
21290 "\n"
21291 msgstr ""
21292 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
21293 "\n"
21294
21295 #. type: textblock
21296 #: ../fish/guestfish.pod:278
21297 msgid ""
21298 "Note that the command line syntax changed slightly over older versions of "
21299 "guestfish.  You can still use the old syntax:"
21300 msgstr ""
21301
21302 #. type: verbatim
21303 #: ../fish/guestfish.pod:281
21304 #, no-wrap
21305 msgid ""
21306 " guestfish [--ro] -i disk.img\n"
21307 "\n"
21308 msgstr ""
21309 " guestfish [--ro] -i disk.img\n"
21310 "\n"
21311
21312 #. type: verbatim
21313 #: ../fish/guestfish.pod:283
21314 #, no-wrap
21315 msgid ""
21316 " guestfish [--ro] -i libvirt-domain\n"
21317 "\n"
21318 msgstr ""
21319
21320 #. type: textblock
21321 #: ../fish/guestfish.pod:285
21322 msgid ""
21323 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
21324 "then using other commands to mount the filesystems that were found."
21325 msgstr ""
21326
21327 #. type: =item
21328 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:153
21329 msgid "B<--keys-from-stdin>"
21330 msgstr "B<--keys-from-stdin>"
21331
21332 #. type: textblock
21333 #: ../fish/guestfish.pod:291 ../fuse/guestmount.pod:155
21334 msgid ""
21335 "Read key or passphrase parameters from stdin.  The default is to try to read"
21336 " passphrases from the user by opening C</dev/tty>."
21337 msgstr ""
21338
21339 #. type: =item
21340 #: ../fish/guestfish.pod:294
21341 msgid "B<--listen>"
21342 msgstr "B<--listen>"
21343
21344 #. type: textblock
21345 #: ../fish/guestfish.pod:296
21346 msgid ""
21347 "Fork into the background and listen for remote commands.  See section "
21348 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
21349 msgstr ""
21350
21351 #. type: =item
21352 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:158
21353 msgid "B<--live>"
21354 msgstr "B<--live>"
21355
21356 #. type: textblock
21357 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:160
21358 msgid ""
21359 "Connect to a live virtual machine.  (Experimental, see "
21360 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
21361 msgstr ""
21362
21363 #. type: =item
21364 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:163
21365 msgid "B<-m dev[:mountpoint[:options]]>"
21366 msgstr ""
21367
21368 #. type: =item
21369 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:165
21370 msgid "B<--mount dev[:mountpoint[:options]]>"
21371 msgstr ""
21372
21373 #. type: textblock
21374 #: ../fish/guestfish.pod:308
21375 msgid "Mount the named partition or logical volume on the given mountpoint."
21376 msgstr ""
21377
21378 #. type: textblock
21379 #: ../fish/guestfish.pod:310
21380 msgid "If the mountpoint is omitted, it defaults to C</>."
21381 msgstr ""
21382
21383 #. type: textblock
21384 #: ../fish/guestfish.pod:312
21385 msgid "You have to mount something on C</> before most commands will work."
21386 msgstr ""
21387
21388 #. type: textblock
21389 #: ../fish/guestfish.pod:314
21390 msgid ""
21391 "If any I<-m> or I<--mount> options are given, the guest is automatically "
21392 "launched."
21393 msgstr ""
21394
21395 #. type: textblock
21396 #: ../fish/guestfish.pod:317
21397 msgid ""
21398 "If you don't know what filesystems a disk image contains, you can either run"
21399 " guestfish without this option, then list the partitions, filesystems and "
21400 "LVs available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
21401 "commands), or you can use the L<virt-filesystems(1)> program."
21402 msgstr ""
21403
21404 #. type: textblock
21405 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:173
21406 msgid ""
21407 "The third (and rarely used) part of the mount parameter is the list of mount"
21408 " options used to mount the underlying filesystem.  If this is not given, "
21409 "then the mount options are either the empty string or C<ro> (the latter if "
21410 "the I<--ro> flag is used).  By specifying the mount options, you override "
21411 "this default choice.  Probably the only time you would use this is to enable"
21412 " ACLs and/or extended attributes if the filesystem can support them:"
21413 msgstr ""
21414
21415 #. type: verbatim
21416 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:181
21417 #, no-wrap
21418 msgid ""
21419 " -m /dev/sda1:/:acl,user_xattr\n"
21420 "\n"
21421 msgstr ""
21422
21423 #. type: textblock
21424 #: ../fish/guestfish.pod:333
21425 msgid "Using this flag is equivalent to using the C<mount-options> command."
21426 msgstr ""
21427
21428 #. type: =item
21429 #: ../fish/guestfish.pod:335
21430 msgid "B<-n>"
21431 msgstr "B<-n>"
21432
21433 #. type: =item
21434 #: ../fish/guestfish.pod:337
21435 msgid "B<--no-sync>"
21436 msgstr "B<--no-sync>"
21437
21438 #. type: textblock
21439 #: ../fish/guestfish.pod:339
21440 msgid ""
21441 "Disable autosync.  This is enabled by default.  See the discussion of "
21442 "autosync in the L<guestfs(3)> manpage."
21443 msgstr ""
21444
21445 #. type: =item
21446 #: ../fish/guestfish.pod:342
21447 msgid "B<-N type>"
21448 msgstr "B<-N тип>"
21449
21450 #. type: =item
21451 #: ../fish/guestfish.pod:344
21452 msgid "B<--new type>"
21453 msgstr "B<--new тип>"
21454
21455 #. type: =item
21456 #: ../fish/guestfish.pod:346
21457 msgid "B<-N help>"
21458 msgstr "B<-N help>"
21459
21460 #. type: textblock
21461 #: ../fish/guestfish.pod:348
21462 msgid ""
21463 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to"
21464 " the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
21465 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
21466 "IMAGES> below."
21467 msgstr ""
21468
21469 #. type: =item
21470 #: ../fish/guestfish.pod:353
21471 msgid "B<--progress-bars>"
21472 msgstr "B<--progress-bars>"
21473
21474 #. type: textblock
21475 #: ../fish/guestfish.pod:355
21476 msgid "Enable progress bars, even when guestfish is used non-interactively."
21477 msgstr ""
21478
21479 #. type: textblock
21480 #: ../fish/guestfish.pod:357
21481 msgid ""
21482 "Progress bars are enabled by default when guestfish is used as an "
21483 "interactive shell."
21484 msgstr ""
21485
21486 #. type: =item
21487 #: ../fish/guestfish.pod:360
21488 msgid "B<--no-progress-bars>"
21489 msgstr "B<--no-progress-bars>"
21490
21491 #. type: textblock
21492 #: ../fish/guestfish.pod:362
21493 msgid "Disable progress bars."
21494 msgstr ""
21495
21496 #. type: =item
21497 #: ../fish/guestfish.pod:364
21498 msgid "B<--remote[=pid]>"
21499 msgstr "B<--remote[=pid]>"
21500
21501 #. type: textblock
21502 #: ../fish/guestfish.pod:366
21503 msgid ""
21504 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
21505 "CONTROL GUESTFISH OVER A SOCKET> below."
21506 msgstr ""
21507
21508 #. type: =item
21509 #: ../fish/guestfish.pod:369
21510 msgid "B<-r>"
21511 msgstr "B<-r>"
21512
21513 #. type: =item
21514 #: ../fish/guestfish.pod:371
21515 msgid "B<--ro>"
21516 msgstr "B<--ro>"
21517
21518 #. type: textblock
21519 #: ../fish/guestfish.pod:373
21520 msgid ""
21521 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
21522 "mounts are done read-only."
21523 msgstr ""
21524
21525 #. type: textblock
21526 #: ../fish/guestfish.pod:376
21527 msgid ""
21528 "The option must always be used if the disk image or virtual machine might be"
21529 " running, and is generally recommended in cases where you don't need write "
21530 "access to the disk."
21531 msgstr ""
21532
21533 #. type: textblock
21534 #: ../fish/guestfish.pod:380
21535 msgid ""
21536 "Note that prepared disk images created with I<-N> are not affected by this "
21537 "option.  Also commands like C<add> are not affected - you have to specify "
21538 "the C<readonly:true> option explicitly if you need it."
21539 msgstr ""
21540
21541 #. type: textblock
21542 #: ../fish/guestfish.pod:384
21543 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
21544 msgstr ""
21545
21546 #. type: =item
21547 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:237
21548 msgid "B<--selinux>"
21549 msgstr "B<--selinux>"
21550
21551 #. type: textblock
21552 #: ../fish/guestfish.pod:388
21553 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
21554 msgstr ""
21555
21556 #. type: =item
21557 #: ../fish/guestfish.pod:390
21558 msgid "B<-v>"
21559 msgstr "B<-v>"
21560
21561 #. type: =item
21562 #: ../fish/guestfish.pod:392
21563 msgid "B<--verbose>"
21564 msgstr "B<--verbose>"
21565
21566 #. type: textblock
21567 #: ../fish/guestfish.pod:394
21568 msgid ""
21569 "Enable very verbose messages.  This is particularly useful if you find a "
21570 "bug."
21571 msgstr ""
21572
21573 #. type: =item
21574 #: ../fish/guestfish.pod:397
21575 msgid "B<-V>"
21576 msgstr "B<-V>"
21577
21578 #. type: =item
21579 #: ../fish/guestfish.pod:399 ../tools/virt-win-reg.pl:112
21580 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:119
21581 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
21582 msgid "B<--version>"
21583 msgstr "B<--version>"
21584
21585 #. type: textblock
21586 #: ../fish/guestfish.pod:401
21587 msgid "Display the guestfish / libguestfs version number and exit."
21588 msgstr ""
21589
21590 #. type: =item
21591 #: ../fish/guestfish.pod:403
21592 msgid "B<-w>"
21593 msgstr "B<-w>"
21594
21595 #. type: =item
21596 #: ../fish/guestfish.pod:405
21597 msgid "B<--rw>"
21598 msgstr "B<--rw>"
21599
21600 #. type: textblock
21601 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:251
21602 msgid ""
21603 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
21604 "mounts are done read-write."
21605 msgstr ""
21606
21607 #. type: textblock
21608 #: ../fish/guestfish.pod:410
21609 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
21610 msgstr ""
21611
21612 #. type: =item
21613 #: ../fish/guestfish.pod:412
21614 msgid "B<-x>"
21615 msgstr "B<-x>"
21616
21617 #. type: textblock
21618 #: ../fish/guestfish.pod:414
21619 msgid "Echo each command before executing it."
21620 msgstr ""
21621
21622 #. type: =head1
21623 #: ../fish/guestfish.pod:418
21624 msgid "COMMANDS ON COMMAND LINE"
21625 msgstr ""
21626
21627 #. type: textblock
21628 #: ../fish/guestfish.pod:420
21629 msgid ""
21630 "Any additional (non-option) arguments are treated as commands to execute."
21631 msgstr ""
21632
21633 #. type: textblock
21634 #: ../fish/guestfish.pod:423
21635 msgid ""
21636 "Commands to execute should be separated by a colon (C<:>), where the colon "
21637 "is a separate parameter.  Thus:"
21638 msgstr ""
21639
21640 #. type: verbatim
21641 #: ../fish/guestfish.pod:426
21642 #, no-wrap
21643 msgid ""
21644 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
21645 "\n"
21646 msgstr ""
21647
21648 #. type: textblock
21649 #: ../fish/guestfish.pod:428
21650 msgid ""
21651 "If there are no additional arguments, then we enter a shell, either an "
21652 "interactive shell with a prompt (if the input is a terminal) or a non-"
21653 "interactive shell."
21654 msgstr ""
21655
21656 #. type: textblock
21657 #: ../fish/guestfish.pod:432
21658 msgid ""
21659 "In either command line mode or non-interactive shell, the first command that"
21660 " gives an error causes the whole shell to exit.  In interactive mode (with a"
21661 " prompt) if a command fails, you can continue to enter commands."
21662 msgstr ""
21663
21664 #. type: =head1
21665 #: ../fish/guestfish.pod:437
21666 msgid "USING launch (OR run)"
21667 msgstr ""
21668
21669 #. type: textblock
21670 #: ../fish/guestfish.pod:439
21671 msgid ""
21672 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
21673 "then launch it, then mount any disks you need, and finally issue "
21674 "actions/commands.  So the general order of the day is:"
21675 msgstr ""
21676
21677 #. type: textblock
21678 #: ../fish/guestfish.pod:447
21679 msgid "add or -a/--add"
21680 msgstr ""
21681
21682 #. type: textblock
21683 #: ../fish/guestfish.pod:451
21684 msgid "launch (aka run)"
21685 msgstr ""
21686
21687 #. type: textblock
21688 #: ../fish/guestfish.pod:455
21689 msgid "mount or -m/--mount"
21690 msgstr ""
21691
21692 #. type: textblock
21693 #: ../fish/guestfish.pod:459
21694 msgid "any other commands"
21695 msgstr ""
21696
21697 #. type: textblock
21698 #: ../fish/guestfish.pod:463
21699 msgid ""
21700 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
21701 "guest before mounting or performing any other commands."
21702 msgstr ""
21703
21704 #. type: textblock
21705 #: ../fish/guestfish.pod:466
21706 msgid ""
21707 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
21708 "I<--new> options were given then C<run> is done automatically, simply "
21709 "because guestfish can't perform the action you asked for without doing this."
21710 msgstr ""
21711
21712 #. type: =head1
21713 #: ../fish/guestfish.pod:471
21714 msgid "OPENING DISKS FOR READ AND WRITE"
21715 msgstr ""
21716
21717 #. type: textblock
21718 #: ../fish/guestfish.pod:473
21719 msgid ""
21720 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
21721 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
21722 "I<-i> and I<-m> open disk images read-only or for writing."
21723 msgstr ""
21724
21725 #. type: textblock
21726 #: ../fish/guestfish.pod:478
21727 msgid ""
21728 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to"
21729 " opening disk images supplied on the command line for write.  To open a disk"
21730 " image read-only you have to do I<-a image --ro>."
21731 msgstr ""
21732
21733 #. type: textblock
21734 #: ../fish/guestfish.pod:482
21735 msgid ""
21736 "This matters: If you accidentally open a live VM disk image writable then "
21737 "you will cause irreversible disk corruption."
21738 msgstr ""
21739
21740 #. type: textblock
21741 #: ../fish/guestfish.pod:485
21742 msgid ""
21743 "By libguestfs 1.12 we intend to change the default the other way.  Disk "
21744 "images will be opened read-only.  You will have to either specify "
21745 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
21746 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
21747 "access for disk images specified by those other command line options."
21748 msgstr ""
21749
21750 #. type: textblock
21751 #: ../fish/guestfish.pod:492
21752 msgid ""
21753 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
21754 "which does nothing (it is already the default).  However it is highly "
21755 "recommended that you use this option to indicate that you need write access,"
21756 " and prepare your scripts for the day when this option will be required for "
21757 "write access."
21758 msgstr ""
21759
21760 #. type: textblock
21761 #: ../fish/guestfish.pod:498
21762 msgid ""
21763 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any"
21764 " other libguestfs program apart from guestfish and guestmount."
21765 msgstr ""
21766
21767 #. type: =head1
21768 #: ../fish/guestfish.pod:501
21769 msgid "QUOTING"
21770 msgstr ""
21771
21772 #. type: textblock
21773 #: ../fish/guestfish.pod:503
21774 msgid ""
21775 "You can quote ordinary parameters using either single or double quotes.  For"
21776 " example:"
21777 msgstr ""
21778
21779 #. type: verbatim
21780 #: ../fish/guestfish.pod:506
21781 #, no-wrap
21782 msgid ""
21783 " add \"file with a space.img\"\n"
21784 "\n"
21785 msgstr ""
21786
21787 #. type: verbatim
21788 #: ../fish/guestfish.pod:508
21789 #, no-wrap
21790 msgid ""
21791 " rm '/file name'\n"
21792 "\n"
21793 msgstr ""
21794
21795 #. type: verbatim
21796 #: ../fish/guestfish.pod:510
21797 #, no-wrap
21798 msgid ""
21799 " rm '/\"'\n"
21800 "\n"
21801 msgstr ""
21802
21803 #. type: textblock
21804 #: ../fish/guestfish.pod:512
21805 msgid ""
21806 "A few commands require a list of strings to be passed.  For these, use a "
21807 "whitespace-separated list, enclosed in quotes.  Strings containing "
21808 "whitespace to be passed through must be enclosed in single quotes.  A "
21809 "literal single quote must be escaped with a backslash."
21810 msgstr ""
21811
21812 #. type: verbatim
21813 #: ../fish/guestfish.pod:517
21814 #, no-wrap
21815 msgid ""
21816 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
21817 " command \"/bin/echo 'foo      bar'\"\n"
21818 " command \"/bin/echo \\'foo\\'\"\n"
21819 "\n"
21820 msgstr ""
21821
21822 #. type: =head2
21823 #: ../fish/guestfish.pod:521
21824 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
21825 msgstr ""
21826
21827 #. type: textblock
21828 #: ../fish/guestfish.pod:523
21829 msgid ""
21830 "In double-quoted arguments (only) use backslash to insert special "
21831 "characters:"
21832 msgstr ""
21833
21834 #. type: =item
21835 #: ../fish/guestfish.pod:528
21836 msgid "C<\\a>"
21837 msgstr ""
21838
21839 #. type: textblock
21840 #: ../fish/guestfish.pod:530
21841 msgid "Alert (bell) character."
21842 msgstr ""
21843
21844 #. type: =item
21845 #: ../fish/guestfish.pod:532
21846 msgid "C<\\b>"
21847 msgstr ""
21848
21849 #. type: textblock
21850 #: ../fish/guestfish.pod:534
21851 msgid "Backspace character."
21852 msgstr ""
21853
21854 #. type: =item
21855 #: ../fish/guestfish.pod:536
21856 msgid "C<\\f>"
21857 msgstr ""
21858
21859 #. type: textblock
21860 #: ../fish/guestfish.pod:538
21861 msgid "Form feed character."
21862 msgstr ""
21863
21864 #. type: =item
21865 #: ../fish/guestfish.pod:540
21866 msgid "C<\\n>"
21867 msgstr ""
21868
21869 #. type: textblock
21870 #: ../fish/guestfish.pod:542
21871 msgid "Newline character."
21872 msgstr ""
21873
21874 #. type: =item
21875 #: ../fish/guestfish.pod:544
21876 msgid "C<\\r>"
21877 msgstr ""
21878
21879 #. type: textblock
21880 #: ../fish/guestfish.pod:546
21881 msgid "Carriage return character."
21882 msgstr ""
21883
21884 #. type: =item
21885 #: ../fish/guestfish.pod:548
21886 msgid "C<\\t>"
21887 msgstr ""
21888
21889 #. type: textblock
21890 #: ../fish/guestfish.pod:550
21891 msgid "Horizontal tab character."
21892 msgstr ""
21893
21894 #. type: =item
21895 #: ../fish/guestfish.pod:552
21896 msgid "C<\\v>"
21897 msgstr ""
21898
21899 #. type: textblock
21900 #: ../fish/guestfish.pod:554
21901 msgid "Vertical tab character."
21902 msgstr ""
21903
21904 #. type: =item
21905 #: ../fish/guestfish.pod:556
21906 msgid "C<\\\">"
21907 msgstr ""
21908
21909 #. type: textblock
21910 #: ../fish/guestfish.pod:558
21911 msgid "A literal double quote character."
21912 msgstr ""
21913
21914 #. type: =item
21915 #: ../fish/guestfish.pod:560
21916 msgid "C<\\ooo>"
21917 msgstr ""
21918
21919 #. type: textblock
21920 #: ../fish/guestfish.pod:562
21921 msgid ""
21922 "A character with octal value I<ooo>.  There must be precisely 3 octal digits"
21923 " (unlike C)."
21924 msgstr ""
21925
21926 #. type: =item
21927 #: ../fish/guestfish.pod:565
21928 msgid "C<\\xhh>"
21929 msgstr ""
21930
21931 #. type: textblock
21932 #: ../fish/guestfish.pod:567
21933 msgid ""
21934 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
21935 msgstr ""
21936
21937 #. type: textblock
21938 #: ../fish/guestfish.pod:570
21939 msgid ""
21940 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
21941 "strings."
21942 msgstr ""
21943
21944 #. type: =item
21945 #: ../fish/guestfish.pod:573
21946 msgid "C<\\\\>"
21947 msgstr ""
21948
21949 #. type: textblock
21950 #: ../fish/guestfish.pod:575
21951 msgid "A literal backslash character."
21952 msgstr ""
21953
21954 #. type: =head1
21955 #: ../fish/guestfish.pod:579
21956 msgid "OPTIONAL ARGUMENTS"
21957 msgstr ""
21958
21959 #. type: textblock
21960 #: ../fish/guestfish.pod:581
21961 msgid ""
21962 "Some commands take optional arguments.  These arguments appear in this "
21963 "documentation as C<[argname:..]>.  You can use them as in these examples:"
21964 msgstr ""
21965
21966 #. type: verbatim
21967 #: ../fish/guestfish.pod:585
21968 #, no-wrap
21969 msgid ""
21970 " add-drive-opts filename\n"
21971 "\n"
21972 msgstr ""
21973
21974 #. type: verbatim
21975 #: ../fish/guestfish.pod:587
21976 #, no-wrap
21977 msgid ""
21978 " add-drive-opts filename readonly:true\n"
21979 "\n"
21980 msgstr ""
21981
21982 #. type: verbatim
21983 #: ../fish/guestfish.pod:589
21984 #, no-wrap
21985 msgid ""
21986 " add-drive-opts filename format:qcow2 readonly:false\n"
21987 "\n"
21988 msgstr ""
21989
21990 #. type: textblock
21991 #: ../fish/guestfish.pod:591
21992 msgid ""
21993 "Each optional argument can appear at most once.  All optional arguments must"
21994 " appear after the required ones."
21995 msgstr ""
21996
21997 #. type: =head1
21998 #: ../fish/guestfish.pod:594
21999 msgid "NUMBERS"
22000 msgstr "ЧИСЛА"
22001
22002 #. type: textblock
22003 #: ../fish/guestfish.pod:596
22004 msgid ""
22005 "This section applies to all commands which can take integers as parameters."
22006 msgstr ""
22007
22008 #. type: =head2
22009 #: ../fish/guestfish.pod:599
22010 msgid "SIZE SUFFIX"
22011 msgstr ""
22012
22013 #. type: textblock
22014 #: ../fish/guestfish.pod:601
22015 msgid ""
22016 "When the command takes a parameter measured in bytes, you can use one of the"
22017 " following suffixes to specify kilobytes, megabytes and larger sizes:"
22018 msgstr ""
22019
22020 #. type: =item
22021 #: ../fish/guestfish.pod:607
22022 msgid "B<k> or B<K> or B<KiB>"
22023 msgstr "B<k>, B<K> або B<KiB>"
22024
22025 #. type: textblock
22026 #: ../fish/guestfish.pod:609
22027 msgid "The size in kilobytes (multiplied by 1024)."
22028 msgstr ""
22029
22030 #. type: =item
22031 #: ../fish/guestfish.pod:611
22032 msgid "B<KB>"
22033 msgstr "B<KB>"
22034
22035 #. type: textblock
22036 #: ../fish/guestfish.pod:613
22037 msgid "The size in SI 1000 byte units."
22038 msgstr ""
22039
22040 #. type: =item
22041 #: ../fish/guestfish.pod:615
22042 msgid "B<M> or B<MiB>"
22043 msgstr "B<M> або B<MiB>"
22044
22045 #. type: textblock
22046 #: ../fish/guestfish.pod:617
22047 msgid "The size in megabytes (multiplied by 1048576)."
22048 msgstr ""
22049
22050 #. type: =item
22051 #: ../fish/guestfish.pod:619
22052 msgid "B<MB>"
22053 msgstr "B<MB>"
22054
22055 #. type: textblock
22056 #: ../fish/guestfish.pod:621
22057 msgid "The size in SI 1000000 byte units."
22058 msgstr ""
22059
22060 #. type: =item
22061 #: ../fish/guestfish.pod:623
22062 msgid "B<G> or B<GiB>"
22063 msgstr "B<G> або B<GiB>"
22064
22065 #. type: textblock
22066 #: ../fish/guestfish.pod:625
22067 msgid "The size in gigabytes (multiplied by 2**30)."
22068 msgstr "Розмір у гігабайтах (з множником 2**30)."
22069
22070 #. type: =item
22071 #: ../fish/guestfish.pod:627
22072 msgid "B<GB>"
22073 msgstr "B<GB>"
22074
22075 #. type: textblock
22076 #: ../fish/guestfish.pod:629
22077 msgid "The size in SI 10**9 byte units."
22078 msgstr "Розмір у одиницях СІ: 10**9 байтів."
22079
22080 #. type: =item
22081 #: ../fish/guestfish.pod:631
22082 msgid "B<T> or B<TiB>"
22083 msgstr "B<T> або B<TiB>"
22084
22085 #. type: textblock
22086 #: ../fish/guestfish.pod:633
22087 msgid "The size in terabytes (multiplied by 2**40)."
22088 msgstr "Розмір у терабайтах (з множником 2**40)."
22089
22090 #. type: =item
22091 #: ../fish/guestfish.pod:635
22092 msgid "B<TB>"
22093 msgstr "B<TB>"
22094
22095 #. type: textblock
22096 #: ../fish/guestfish.pod:637
22097 msgid "The size in SI 10**12 byte units."
22098 msgstr ""
22099
22100 #. type: =item
22101 #: ../fish/guestfish.pod:639
22102 msgid "B<P> or B<PiB>"
22103 msgstr "B<P> або B<PiB>"
22104
22105 #. type: textblock
22106 #: ../fish/guestfish.pod:641
22107 msgid "The size in petabytes (multiplied by 2**50)."
22108 msgstr ""
22109
22110 #. type: =item
22111 #: ../fish/guestfish.pod:643
22112 msgid "B<PB>"
22113 msgstr "B<PB>"
22114
22115 #. type: textblock
22116 #: ../fish/guestfish.pod:645
22117 msgid "The size in SI 10**15 byte units."
22118 msgstr ""
22119
22120 #. type: =item
22121 #: ../fish/guestfish.pod:647
22122 msgid "B<E> or B<EiB>"
22123 msgstr "B<E> або B<EiB>"
22124
22125 #. type: textblock
22126 #: ../fish/guestfish.pod:649
22127 msgid "The size in exabytes (multiplied by 2**60)."
22128 msgstr ""
22129
22130 #. type: =item
22131 #: ../fish/guestfish.pod:651
22132 msgid "B<EB>"
22133 msgstr "B<EB>"
22134
22135 #. type: textblock
22136 #: ../fish/guestfish.pod:653
22137 msgid "The size in SI 10**18 byte units."
22138 msgstr ""
22139
22140 #. type: =item
22141 #: ../fish/guestfish.pod:655
22142 msgid "B<Z> or B<ZiB>"
22143 msgstr "B<Z> або B<ZiB>"
22144
22145 #. type: textblock
22146 #: ../fish/guestfish.pod:657
22147 msgid "The size in zettabytes (multiplied by 2**70)."
22148 msgstr ""
22149
22150 #. type: =item
22151 #: ../fish/guestfish.pod:659
22152 msgid "B<ZB>"
22153 msgstr "B<ZB>"
22154
22155 #. type: textblock
22156 #: ../fish/guestfish.pod:661
22157 msgid "The size in SI 10**21 byte units."
22158 msgstr ""
22159
22160 #. type: =item
22161 #: ../fish/guestfish.pod:663
22162 msgid "B<Y> or B<YiB>"
22163 msgstr "B<Y> або B<YiB>"
22164
22165 #. type: textblock
22166 #: ../fish/guestfish.pod:665
22167 msgid "The size in yottabytes (multiplied by 2**80)."
22168 msgstr ""
22169
22170 #. type: =item
22171 #: ../fish/guestfish.pod:667
22172 msgid "B<YB>"
22173 msgstr "B<YB>"
22174
22175 #. type: textblock
22176 #: ../fish/guestfish.pod:669
22177 msgid "The size in SI 10**24 byte units."
22178 msgstr ""
22179
22180 #. type: verbatim
22181 #: ../fish/guestfish.pod:675
22182 #, no-wrap
22183 msgid ""
22184 " truncate-size /file 1G\n"
22185 "\n"
22186 msgstr ""
22187
22188 #. type: textblock
22189 #: ../fish/guestfish.pod:677
22190 msgid "would truncate the file to 1 gigabyte."
22191 msgstr ""
22192
22193 #. type: textblock
22194 #: ../fish/guestfish.pod:679
22195 msgid ""
22196 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
22197 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
22198 "suffix will probably not do what you expect."
22199 msgstr ""
22200
22201 #. type: =head2
22202 #: ../fish/guestfish.pod:683
22203 msgid "OCTAL AND HEXADECIMAL NUMBERS"
22204 msgstr ""
22205
22206 #. type: textblock
22207 #: ../fish/guestfish.pod:685
22208 msgid ""
22209 "For specifying the radix (base) use the C convention: C<0> to prefix an "
22210 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
22211 msgstr ""
22212
22213 #. type: verbatim
22214 #: ../fish/guestfish.pod:688
22215 #, no-wrap
22216 msgid ""
22217 " 1234      decimal number 1234\n"
22218 " 02322     octal number, equivalent to decimal 1234\n"
22219 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
22220 "\n"
22221 msgstr ""
22222
22223 #. type: textblock
22224 #: ../fish/guestfish.pod:692
22225 msgid ""
22226 "When using the C<chmod> command, you almost always want to specify an octal "
22227 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
22228 "L<chmod(1)> program):"
22229 msgstr ""
22230
22231 #. type: verbatim
22232 #: ../fish/guestfish.pod:696
22233 #, no-wrap
22234 msgid ""
22235 " chmod 0777 /public  # OK\n"
22236 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
22237 "\n"
22238 msgstr ""
22239
22240 #. type: textblock
22241 #: ../fish/guestfish.pod:699
22242 msgid ""
22243 "Commands that return numbers usually print them in decimal, but some "
22244 "commands print numbers in other radices (eg. C<umask> prints the mode in "
22245 "octal, preceeded by C<0>)."
22246 msgstr ""
22247
22248 #. type: =head1
22249 #: ../fish/guestfish.pod:703
22250 msgid "WILDCARDS AND GLOBBING"
22251 msgstr ""
22252
22253 #. type: textblock
22254 #: ../fish/guestfish.pod:705
22255 msgid ""
22256 "Neither guestfish nor the underlying guestfs API performs wildcard expansion"
22257 " (globbing) by default.  So for example the following will not do what you "
22258 "expect:"
22259 msgstr ""
22260
22261 #. type: verbatim
22262 #: ../fish/guestfish.pod:709
22263 #, no-wrap
22264 msgid ""
22265 " rm-rf /home/*\n"
22266 "\n"
22267 msgstr ""
22268
22269 #. type: textblock
22270 #: ../fish/guestfish.pod:711
22271 msgid ""
22272 "Assuming you don't have a directory called literally C</home/*> then the "
22273 "above command will return an error."
22274 msgstr ""
22275
22276 #. type: textblock
22277 #: ../fish/guestfish.pod:714
22278 msgid "To perform wildcard expansion, use the C<glob> command."
22279 msgstr ""
22280
22281 #. type: verbatim
22282 #: ../fish/guestfish.pod:716
22283 #, no-wrap
22284 msgid ""
22285 " glob rm-rf /home/*\n"
22286 "\n"
22287 msgstr ""
22288
22289 #. type: textblock
22290 #: ../fish/guestfish.pod:718
22291 msgid ""
22292 "runs C<rm-rf> on each path that matches (ie. potentially running the command"
22293 " many times), equivalent to:"
22294 msgstr ""
22295
22296 #. type: verbatim
22297 #: ../fish/guestfish.pod:721
22298 #, no-wrap
22299 msgid ""
22300 " rm-rf /home/jim\n"
22301 " rm-rf /home/joe\n"
22302 " rm-rf /home/mary\n"
22303 "\n"
22304 msgstr ""
22305
22306 #. type: textblock
22307 #: ../fish/guestfish.pod:725
22308 msgid "C<glob> only works on simple guest paths and not on device names."
22309 msgstr ""
22310
22311 #. type: textblock
22312 #: ../fish/guestfish.pod:727
22313 msgid ""
22314 "If you have several parameters, each containing a wildcard, then glob will "
22315 "perform a Cartesian product."
22316 msgstr ""
22317
22318 #. type: =head1
22319 #: ../fish/guestfish.pod:730
22320 msgid "COMMENTS"
22321 msgstr "КОМЕНТАРІ"
22322
22323 #. type: textblock
22324 #: ../fish/guestfish.pod:732
22325 msgid ""
22326 "Any line which starts with a I<#> character is treated as a comment and "
22327 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
22328 "a command.  For example:"
22329 msgstr ""
22330
22331 #. type: verbatim
22332 #: ../fish/guestfish.pod:736
22333 #, no-wrap
22334 msgid ""
22335 " # this is a comment\n"
22336 "         # this is a comment\n"
22337 " foo # NOT a comment\n"
22338 "\n"
22339 msgstr ""
22340
22341 #. type: textblock
22342 #: ../fish/guestfish.pod:740
22343 msgid "Blank lines are also ignored."
22344 msgstr ""
22345
22346 #. type: =head1
22347 #: ../fish/guestfish.pod:742
22348 msgid "RUNNING COMMANDS LOCALLY"
22349 msgstr ""
22350
22351 #. type: textblock
22352 #: ../fish/guestfish.pod:744
22353 msgid ""
22354 "Any line which starts with a I<!> character is treated as a command sent to "
22355 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
22356 msgstr ""
22357
22358 #. type: verbatim
22359 #: ../fish/guestfish.pod:748
22360 #, no-wrap
22361 msgid ""
22362 " !mkdir local\n"
22363 " tgz-out /remote local/remote-data.tar.gz\n"
22364 "\n"
22365 msgstr ""
22366
22367 #. type: textblock
22368 #: ../fish/guestfish.pod:751
22369 msgid ""
22370 "will create a directory C<local> on the host, and then export the contents "
22371 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
22372 "(See C<tgz-out>)."
22373 msgstr ""
22374
22375 #. type: textblock
22376 #: ../fish/guestfish.pod:755
22377 msgid ""
22378 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
22379 "effect, due to the way that subprocesses work in Unix."
22380 msgstr ""
22381
22382 #. type: =head2
22383 #: ../fish/guestfish.pod:758
22384 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
22385 msgstr ""
22386
22387 #. type: textblock
22388 #: ../fish/guestfish.pod:760
22389 msgid ""
22390 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
22391 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
22392 "and executed as guestfish commands."
22393 msgstr ""
22394
22395 #. type: textblock
22396 #: ../fish/guestfish.pod:764
22397 msgid ""
22398 "Thus you can use shell script to construct arbitrary guestfish commands "
22399 "which are then parsed by guestfish."
22400 msgstr ""
22401
22402 #. type: textblock
22403 #: ../fish/guestfish.pod:767
22404 msgid ""
22405 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
22406 "through C</foo.100>) using guestfish commands alone.  However this is simple"
22407 " if we use a shell script to create the guestfish commands for us:"
22408 msgstr ""
22409
22410 #. type: verbatim
22411 #: ../fish/guestfish.pod:772
22412 #, no-wrap
22413 msgid ""
22414 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
22415 "\n"
22416 msgstr ""
22417
22418 #. type: textblock
22419 #: ../fish/guestfish.pod:774
22420 msgid "or with names like C</foo.001>:"
22421 msgstr ""
22422
22423 #. type: verbatim
22424 #: ../fish/guestfish.pod:776
22425 #, no-wrap
22426 msgid ""
22427 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
22428 "\n"
22429 msgstr ""
22430
22431 #. type: textblock
22432 #: ../fish/guestfish.pod:778
22433 msgid ""
22434 "When using guestfish interactively it can be helpful to just run the shell "
22435 "script first (ie. remove the initial C<E<lt>> character so it is just an "
22436 "ordinary I<!> local command), see what guestfish commands it would run, and "
22437 "when you are happy with those prepend the C<E<lt>> character to run the "
22438 "guestfish commands for real."
22439 msgstr ""
22440
22441 #. type: =head1
22442 #: ../fish/guestfish.pod:784
22443 msgid "PIPES"
22444 msgstr "КАНАЛИ"
22445
22446 #. type: textblock
22447 #: ../fish/guestfish.pod:786
22448 msgid ""
22449 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
22450 "command (a guestfish command) to the second command (any host command).  For"
22451 " example:"
22452 msgstr ""
22453
22454 #. type: verbatim
22455 #: ../fish/guestfish.pod:790
22456 #, no-wrap
22457 msgid ""
22458 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
22459 "\n"
22460 msgstr ""
22461
22462 #. type: textblock
22463 #: ../fish/guestfish.pod:792
22464 msgid ""
22465 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
22466 "program).  The above command would list all accounts in the guest filesystem"
22467 " which have UID 0, ie. root accounts including backdoors.  Other examples:"
22468 msgstr ""
22469
22470 #. type: verbatim
22471 #: ../fish/guestfish.pod:797
22472 #, no-wrap
22473 msgid ""
22474 " hexdump /bin/ls | head\n"
22475 " list-devices | tail -1\n"
22476 " tgz-out / - | tar ztf -\n"
22477 "\n"
22478 msgstr ""
22479
22480 #. type: textblock
22481 #: ../fish/guestfish.pod:801
22482 msgid ""
22483 "The space before the pipe symbol is required, any space after the pipe "
22484 "symbol is optional.  Everything after the pipe symbol is just passed "
22485 "straight to the host shell, so it can contain redirections, globs and "
22486 "anything else that makes sense on the host side."
22487 msgstr ""
22488
22489 #. type: textblock
22490 #: ../fish/guestfish.pod:806
22491 msgid ""
22492 "To use a literal argument which begins with a pipe symbol, you have to quote"
22493 " it, eg:"
22494 msgstr ""
22495
22496 #. type: verbatim
22497 #: ../fish/guestfish.pod:809
22498 #, no-wrap
22499 msgid ""
22500 " echo \"|\"\n"
22501 "\n"
22502 msgstr ""
22503
22504 #. type: =head1
22505 #: ../fish/guestfish.pod:811
22506 msgid "HOME DIRECTORIES"
22507 msgstr ""
22508
22509 #. type: textblock
22510 #: ../fish/guestfish.pod:813
22511 msgid ""
22512 "If a parameter starts with the character C<~> then the tilde may be expanded"
22513 " as a home directory path (either C<~> for the current user's home "
22514 "directory, or C<~user> for another user)."
22515 msgstr ""
22516
22517 #. type: textblock
22518 #: ../fish/guestfish.pod:817
22519 msgid ""
22520 "Note that home directory expansion happens for users known I<on the host>, "
22521 "not in the guest filesystem."
22522 msgstr ""
22523
22524 #. type: textblock
22525 #: ../fish/guestfish.pod:820
22526 msgid ""
22527 "To use a literal argument which begins with a tilde, you have to quote it, "
22528 "eg:"
22529 msgstr ""
22530
22531 #. type: verbatim
22532 #: ../fish/guestfish.pod:823
22533 #, no-wrap
22534 msgid ""
22535 " echo \"~\"\n"
22536 "\n"
22537 msgstr ""
22538
22539 #. type: textblock
22540 #: ../fish/guestfish.pod:827
22541 msgid ""
22542 "Libguestfs has some support for Linux guests encrypted according to the "
22543 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
22544 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
22545 "LUKS is supported."
22546 msgstr ""
22547
22548 #. type: textblock
22549 #: ../fish/guestfish.pod:832
22550 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
22551 msgstr ""
22552
22553 #. type: verbatim
22554 #: ../fish/guestfish.pod:834
22555 #, no-wrap
22556 msgid ""
22557 " ><fs> vfs-type /dev/sda2\n"
22558 " crypto_LUKS\n"
22559 "\n"
22560 msgstr ""
22561
22562 #. type: textblock
22563 #: ../fish/guestfish.pod:837
22564 msgid ""
22565 "Then open those devices using L</luks-open>.  This creates a device-mapper "
22566 "device called C</dev/mapper/luksdev>."
22567 msgstr ""
22568
22569 #. type: verbatim
22570 #: ../fish/guestfish.pod:840
22571 #, no-wrap
22572 msgid ""
22573 " ><fs> luks-open /dev/sda2 luksdev\n"
22574 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
22575 "\n"
22576 msgstr ""
22577
22578 #. type: textblock
22579 #: ../fish/guestfish.pod:843
22580 msgid ""
22581 "Finally you have to tell LVM to scan for volume groups on the newly created "
22582 "mapper device:"
22583 msgstr ""
22584
22585 #. type: verbatim
22586 #: ../fish/guestfish.pod:846
22587 #, no-wrap
22588 msgid ""
22589 " vgscan\n"
22590 " vg-activate-all true\n"
22591 "\n"
22592 msgstr ""
22593
22594 #. type: textblock
22595 #: ../fish/guestfish.pod:849
22596 msgid "The logical volume(s) can now be mounted in the usual way."
22597 msgstr ""
22598
22599 #. type: textblock
22600 #: ../fish/guestfish.pod:851
22601 msgid ""
22602 "Before closing a LUKS device you must unmount any logical volumes on it and "
22603 "deactivate the volume groups by calling C<vg-activate false VG> on each one."
22604 "  Then you can close the mapper device:"
22605 msgstr ""
22606
22607 #. type: verbatim
22608 #: ../fish/guestfish.pod:855
22609 #, no-wrap
22610 msgid ""
22611 " vg-activate false /dev/VG\n"
22612 " luks-close /dev/mapper/luksdev\n"
22613 "\n"
22614 msgstr ""
22615
22616 #. type: =head1
22617 #: ../fish/guestfish.pod:858
22618 msgid "WINDOWS PATHS"
22619 msgstr ""
22620
22621 #. type: textblock
22622 #: ../fish/guestfish.pod:860
22623 msgid ""
22624 "If a path is prefixed with C<win:> then you can use Windows-style drive "
22625 "letters and paths (with some limitations).  The following commands are "
22626 "equivalent:"
22627 msgstr ""
22628
22629 #. type: verbatim
22630 #: ../fish/guestfish.pod:864
22631 #, no-wrap
22632 msgid ""
22633 " file /WINDOWS/system32/config/system.LOG\n"
22634 "\n"
22635 msgstr ""
22636
22637 #. type: verbatim
22638 #: ../fish/guestfish.pod:866
22639 #, no-wrap
22640 msgid ""
22641 " file win:\\windows\\system32\\config\\system.log\n"
22642 "\n"
22643 msgstr ""
22644
22645 #. type: verbatim
22646 #: ../fish/guestfish.pod:868
22647 #, no-wrap
22648 msgid ""
22649 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
22650 "\n"
22651 msgstr ""
22652
22653 #. type: textblock
22654 #: ../fish/guestfish.pod:870
22655 msgid ""
22656 "The parameter is rewritten \"behind the scenes\" by looking up the position "
22657 "where the drive is mounted, prepending that to the path, changing all "
22658 "backslash characters to forward slash, then resolving the result using L"
22659 "</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
22660 "then the parameter might be rewritten like this:"
22661 msgstr ""
22662
22663 #. type: verbatim
22664 #: ../fish/guestfish.pod:876
22665 #, no-wrap
22666 msgid ""
22667 " win:e:\\foo\\bar => /e/FOO/bar\n"
22668 "\n"
22669 msgstr ""
22670
22671 #. type: textblock
22672 #: ../fish/guestfish.pod:878
22673 msgid "This only works in argument positions that expect a path."
22674 msgstr ""
22675
22676 #. type: =head1
22677 #: ../fish/guestfish.pod:880
22678 msgid "UPLOADING AND DOWNLOADING FILES"
22679 msgstr ""
22680
22681 #. type: textblock
22682 #: ../fish/guestfish.pod:882
22683 msgid ""
22684 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
22685 "others which upload from or download to a local file, you can use the "
22686 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
22687 msgstr ""
22688
22689 #. type: verbatim
22690 #: ../fish/guestfish.pod:886
22691 #, no-wrap
22692 msgid ""
22693 " upload - /foo\n"
22694 "\n"
22695 msgstr ""
22696
22697 #. type: textblock
22698 #: ../fish/guestfish.pod:888
22699 msgid ""
22700 "reads stdin and creates from that a file C</foo> in the disk image, and:"
22701 msgstr ""
22702
22703 #. type: verbatim
22704 #: ../fish/guestfish.pod:891
22705 #, no-wrap
22706 msgid ""
22707 " tar-out /etc - | tar tf -\n"
22708 "\n"
22709 msgstr ""
22710
22711 #. type: textblock
22712 #: ../fish/guestfish.pod:893
22713 msgid ""
22714 "writes the tarball to stdout and then pipes that into the external \"tar\" "
22715 "command (see L</PIPES>)."
22716 msgstr ""
22717
22718 #. type: textblock
22719 #: ../fish/guestfish.pod:896
22720 msgid ""
22721 "When using C<-> to read from stdin, the input is read up to the end of "
22722 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
22723 "some arbitrary end marker:"
22724 msgstr ""
22725
22726 #. type: verbatim
22727 #: ../fish/guestfish.pod:900
22728 #, no-wrap
22729 msgid ""
22730 " upload -<<END /foo\n"
22731 " input line 1\n"
22732 " input line 2\n"
22733 " input line 3\n"
22734 " END\n"
22735 "\n"
22736 msgstr ""
22737
22738 #. type: textblock
22739 #: ../fish/guestfish.pod:906
22740 msgid ""
22741 "Any string of characters can be used instead of C<END>.  The end marker must"
22742 " appear on a line of its own, without any preceeding or following characters"
22743 " (not even spaces)."
22744 msgstr ""
22745
22746 #. type: textblock
22747 #: ../fish/guestfish.pod:910
22748 msgid ""
22749 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
22750 "upload local files (so-called \"FileIn\" parameters in the generator)."
22751 msgstr ""
22752
22753 #. type: =head1
22754 #: ../fish/guestfish.pod:913
22755 msgid "EXIT ON ERROR BEHAVIOUR"
22756 msgstr ""
22757
22758 #. type: textblock
22759 #: ../fish/guestfish.pod:915
22760 msgid ""
22761 "By default, guestfish will ignore any errors when in interactive mode (ie. "
22762 "taking commands from a human over a tty), and will exit on the first error "
22763 "in non-interactive mode (scripts, commands given on the command line)."
22764 msgstr ""
22765
22766 #. type: textblock
22767 #: ../fish/guestfish.pod:920
22768 msgid ""
22769 "If you prefix a command with a I<-> character, then that command will not "
22770 "cause guestfish to exit, even if that (one) command returns an error."
22771 msgstr ""
22772
22773 #. type: =head1
22774 #: ../fish/guestfish.pod:924
22775 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
22776 msgstr ""
22777
22778 #. type: textblock
22779 #: ../fish/guestfish.pod:926
22780 msgid ""
22781 "Guestfish can be remote-controlled over a socket.  This is useful "
22782 "particularly in shell scripts where you want to make several different "
22783 "changes to a filesystem, but you don't want the overhead of starting up a "
22784 "guestfish process each time."
22785 msgstr ""
22786
22787 #. type: textblock
22788 #: ../fish/guestfish.pod:931
22789 msgid "Start a guestfish server process using:"
22790 msgstr ""
22791
22792 #. type: verbatim
22793 #: ../fish/guestfish.pod:933
22794 #, no-wrap
22795 msgid ""
22796 " eval \"`guestfish --listen`\"\n"
22797 "\n"
22798 msgstr ""
22799
22800 #. type: textblock
22801 #: ../fish/guestfish.pod:935
22802 msgid "and then send it commands by doing:"
22803 msgstr ""
22804
22805 #. type: verbatim
22806 #: ../fish/guestfish.pod:937
22807 #, no-wrap
22808 msgid ""
22809 " guestfish --remote cmd [...]\n"
22810 "\n"
22811 msgstr ""
22812
22813 #. type: textblock
22814 #: ../fish/guestfish.pod:939
22815 msgid "To cause the server to exit, send it the exit command:"
22816 msgstr ""
22817
22818 #. type: verbatim
22819 #: ../fish/guestfish.pod:941
22820 #, no-wrap
22821 msgid ""
22822 " guestfish --remote exit\n"
22823 "\n"
22824 msgstr ""
22825
22826 #. type: textblock
22827 #: ../fish/guestfish.pod:943
22828 msgid ""
22829 "Note that the server will normally exit if there is an error in a command.  "
22830 "You can change this in the usual way.  See section L</EXIT ON ERROR "
22831 "BEHAVIOUR>."
22832 msgstr ""
22833
22834 #. type: =head2
22835 #: ../fish/guestfish.pod:947
22836 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
22837 msgstr ""
22838
22839 #. type: textblock
22840 #: ../fish/guestfish.pod:949
22841 msgid ""
22842 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which"
22843 " is how the I<--remote> option knows where to send the commands.  You can "
22844 "have several guestfish listener processes running using:"
22845 msgstr ""
22846
22847 #. type: verbatim
22848 #: ../fish/guestfish.pod:953
22849 #, no-wrap
22850 msgid ""
22851 " eval \"`guestfish --listen`\"\n"
22852 " pid1=$GUESTFISH_PID\n"
22853 " eval \"`guestfish --listen`\"\n"
22854 " pid2=$GUESTFISH_PID\n"
22855 " ...\n"
22856 " guestfish --remote=$pid1 cmd\n"
22857 " guestfish --remote=$pid2 cmd\n"
22858 "\n"
22859 msgstr ""
22860
22861 #. type: =head2
22862 #: ../fish/guestfish.pod:961
22863 msgid "REMOTE CONTROL AND CSH"
22864 msgstr ""
22865
22866 #. type: textblock
22867 #: ../fish/guestfish.pod:963
22868 msgid ""
22869 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
22870 "option:"
22871 msgstr ""
22872
22873 #. type: verbatim
22874 #: ../fish/guestfish.pod:966
22875 #, no-wrap
22876 msgid ""
22877 " eval \"`guestfish --listen --csh`\"\n"
22878 "\n"
22879 msgstr ""
22880
22881 #. type: =head2
22882 #: ../fish/guestfish.pod:968
22883 msgid "REMOTE CONTROL DETAILS"
22884 msgstr ""
22885
22886 #. type: textblock
22887 #: ../fish/guestfish.pod:970
22888 msgid ""
22889 "Remote control happens over a Unix domain socket called "
22890 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
22891 "of the process, and C<$PID> is the process ID of the server."
22892 msgstr ""
22893
22894 #. type: textblock
22895 #: ../fish/guestfish.pod:974
22896 msgid "Guestfish client and server versions must match exactly."
22897 msgstr ""
22898
22899 #. type: =head1
22900 #: ../fish/guestfish.pod:976
22901 msgid "PREPARED DISK IMAGES"
22902 msgstr ""
22903
22904 #. type: textblock
22905 #: ../fish/guestfish.pod:978
22906 msgid ""
22907 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
22908 "preformatted disk images that guestfish can make for you to save typing.  "
22909 "This is particularly useful for testing purposes.  This option is used "
22910 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
22911 "can be mixed with I<-a>)."
22912 msgstr ""
22913
22914 #. type: textblock
22915 #: ../fish/guestfish.pod:984
22916 msgid ""
22917 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
22918 "the second and so on.  Existing files in the current directory are "
22919 "I<overwritten>."
22920 msgstr ""
22921
22922 #. type: textblock
22923 #: ../fish/guestfish.pod:988
22924 msgid ""
22925 "The type briefly describes how the disk should be sized, partitioned, how "
22926 "filesystem(s) should be created, and how content should be added.  "
22927 "Optionally the type can be followed by extra parameters, separated by C<:> "
22928 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
22929 "sparsely-allocated disk, containing a single partition, with the partition "
22930 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem"
22931 " on a 1GB disk instead."
22932 msgstr ""
22933
22934 #. type: textblock
22935 #: ../fish/guestfish.pod:996
22936 msgid "To list the available types and any extra parameters they take, run:"
22937 msgstr ""
22938
22939 #. type: textblock
22940 #: ../fish/guestfish.pod:1000
22941 msgid ""
22942 "Note that the prepared filesystem is not mounted.  You would usually have to"
22943 " use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
22944 msgstr ""
22945
22946 #. type: textblock
22947 #: ../fish/guestfish.pod:1004
22948 msgid ""
22949 "If any I<-N> or I<--new> options are given, the guest is automatically "
22950 "launched."
22951 msgstr ""
22952
22953 #. type: textblock
22954 #: ../fish/guestfish.pod:1009
22955 msgid "Create a 100MB disk with an ext4-formatted partition:"
22956 msgstr ""
22957
22958 #. type: verbatim
22959 #: ../fish/guestfish.pod:1011
22960 #, no-wrap
22961 msgid ""
22962 " guestfish -N fs:ext4\n"
22963 "\n"
22964 msgstr ""
22965
22966 #. type: textblock
22967 #: ../fish/guestfish.pod:1013
22968 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
22969 msgstr ""
22970
22971 #. type: verbatim
22972 #: ../fish/guestfish.pod:1015
22973 #, no-wrap
22974 msgid ""
22975 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
22976 "\n"
22977 msgstr ""
22978
22979 #. type: textblock
22980 #: ../fish/guestfish.pod:1017
22981 msgid "Create a blank 200MB disk:"
22982 msgstr ""
22983
22984 #. type: verbatim
22985 #: ../fish/guestfish.pod:1019
22986 #, no-wrap
22987 msgid ""
22988 " guestfish -N disk:200M\n"
22989 "\n"
22990 msgstr ""
22991
22992 #. type: =head1
22993 #: ../fish/guestfish.pod:1021
22994 msgid "PROGRESS BARS"
22995 msgstr ""
22996
22997 #. type: textblock
22998 #: ../fish/guestfish.pod:1023
22999 msgid ""
23000 "Some (not all) long-running commands send progress notification messages as "
23001 "they are running.  Guestfish turns these messages into progress bars."
23002 msgstr ""
23003
23004 #. type: textblock
23005 #: ../fish/guestfish.pod:1027
23006 msgid ""
23007 "When a command that supports progress bars takes longer than two seconds to "
23008 "run, and if progress bars are enabled, then you will see one appearing below"
23009 " the command:"
23010 msgstr ""
23011
23012 #. type: verbatim
23013 #: ../fish/guestfish.pod:1031
23014 #, no-wrap
23015 msgid ""
23016 " ><fs> copy-size /large-file /another-file 2048M\n"
23017 " / 10% [#####-----------------------------------------] 00:30\n"
23018 "\n"
23019 msgstr ""
23020
23021 #. type: textblock
23022 #: ../fish/guestfish.pod:1034
23023 msgid ""
23024 "The spinner on the left hand side moves round once for every progress "
23025 "notification received from the backend.  This is a (reasonably) golden "
23026 "assurance that the command is \"doing something\" even if the progress bar "
23027 "is not moving, because the command is able to send the progress "
23028 "notifications.  When the bar reaches 100% and the command finishes, the "
23029 "spinner disappears."
23030 msgstr ""
23031
23032 #. type: textblock
23033 #: ../fish/guestfish.pod:1041
23034 msgid ""
23035 "Progress bars are enabled by default when guestfish is used interactively.  "
23036 "You can enable them even for non-interactive modes using I<--progress-bars>,"
23037 " and you can disable them completely using I<--no-progress-bars>."
23038 msgstr ""
23039
23040 #. type: =head1
23041 #: ../fish/guestfish.pod:1046
23042 msgid "GUESTFISH COMMANDS"
23043 msgstr ""
23044
23045 #. type: textblock
23046 #: ../fish/guestfish.pod:1048
23047 msgid ""
23048 "The commands in this section are guestfish convenience commands, in other "
23049 "words, they are not part of the L<guestfs(3)> API."
23050 msgstr ""
23051
23052 #. type: =head2
23053 #: ../fish/guestfish.pod:1051
23054 msgid "help"
23055 msgstr "help"
23056
23057 #. type: verbatim
23058 #: ../fish/guestfish.pod:1053
23059 #, no-wrap
23060 msgid ""
23061 " help\n"
23062 " help cmd\n"
23063 "\n"
23064 msgstr ""
23065 " help\n"
23066 " help команда\n"
23067 "\n"
23068
23069 #. type: textblock
23070 #: ../fish/guestfish.pod:1056
23071 msgid "Without any parameter, this provides general help."
23072 msgstr "Без параметра показує загальну довідкову інформацію."
23073
23074 #. type: textblock
23075 #: ../fish/guestfish.pod:1058
23076 msgid "With a C<cmd> parameter, this displays detailed help for that command."
23077 msgstr ""
23078
23079 #. type: =head2
23080 #: ../fish/guestfish.pod:1060
23081 msgid "quit | exit"
23082 msgstr ""
23083
23084 #. type: textblock
23085 #: ../fish/guestfish.pod:1062
23086 msgid "This exits guestfish.  You can also use C<^D> key."
23087 msgstr ""
23088
23089 #. type: textblock
23090 #: ../fish/guestfish.pod:1064
23091 msgid "@FISH_COMMANDS@"
23092 msgstr ""
23093
23094 #. type: =head1
23095 #: ../fish/guestfish.pod:1066
23096 msgid "COMMANDS"
23097 msgstr "КОМАНДИ"
23098
23099 #. type: =head1
23100 #: ../fish/guestfish.pod:1070 ../test-tool/libguestfs-test-tool.pod:77
23101 msgid "EXIT CODE"
23102 msgstr "КОД ВИХОДУ"
23103
23104 #. type: textblock
23105 #: ../fish/guestfish.pod:1072
23106 msgid ""
23107 "guestfish returns 0 if the commands completed without error, or 1 if there "
23108 "was an error."
23109 msgstr ""
23110
23111 #. type: =item
23112 #: ../fish/guestfish.pod:1079
23113 msgid "EDITOR"
23114 msgstr "РЕДАКТОР"
23115
23116 #. type: textblock
23117 #: ../fish/guestfish.pod:1081
23118 msgid ""
23119 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
23120 "C<vi>."
23121 msgstr ""
23122
23123 #. type: =item
23124 #: ../fish/guestfish.pod:1084
23125 msgid "GUESTFISH_DISPLAY_IMAGE"
23126 msgstr ""
23127
23128 #. type: textblock
23129 #: ../fish/guestfish.pod:1086
23130 msgid ""
23131 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
23132 "If not set, it uses L<display(1)>."
23133 msgstr ""
23134
23135 #. type: =item
23136 #: ../fish/guestfish.pod:1089
23137 msgid "GUESTFISH_PID"
23138 msgstr ""
23139
23140 #. type: textblock
23141 #: ../fish/guestfish.pod:1091
23142 msgid ""
23143 "Used with the I<--remote> option to specify the remote guestfish process to "
23144 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
23145 msgstr ""
23146
23147 #. type: =item
23148 #: ../fish/guestfish.pod:1095
23149 msgid "HEXEDITOR"
23150 msgstr ""
23151
23152 #. type: textblock
23153 #: ../fish/guestfish.pod:1097
23154 msgid ""
23155 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
23156 "not specified, the external L<hexedit(1)> program is used."
23157 msgstr ""
23158
23159 #. type: =item
23160 #: ../fish/guestfish.pod:1101
23161 msgid "HOME"
23162 msgstr "ДОМІВКА"
23163
23164 #. type: textblock
23165 #: ../fish/guestfish.pod:1103
23166 msgid ""
23167 "If compiled with GNU readline support, various files in the home directory "
23168 "can be used.  See L</FILES>."
23169 msgstr ""
23170
23171 #. type: textblock
23172 #: ../fish/guestfish.pod:1112
23173 msgid ""
23174 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
23175 "effect as using the B<-v> option."
23176 msgstr ""
23177
23178 #. type: textblock
23179 #: ../fish/guestfish.pod:1124
23180 msgid ""
23181 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
23182 "the discussion of paths in L<guestfs(3)>."
23183 msgstr ""
23184
23185 #. type: textblock
23186 #: ../fish/guestfish.pod:1135
23187 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
23188 msgstr ""
23189
23190 #. type: =item
23191 #: ../fish/guestfish.pod:1137
23192 msgid "PAGER"
23193 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
23194
23195 #. type: textblock
23196 #: ../fish/guestfish.pod:1139
23197 msgid ""
23198 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
23199 "C<more>."
23200 msgstr ""
23201
23202 #. type: =head1
23203 #: ../fish/guestfish.pod:1155 ../fuse/guestmount.pod:264
23204 msgid "FILES"
23205 msgstr "ФАЙЛИ"
23206
23207 #. type: =item
23208 #: ../fish/guestfish.pod:1159 ../fuse/guestmount.pod:268
23209 msgid "$HOME/.libguestfs-tools.rc"
23210 msgstr ""
23211
23212 #. type: =item
23213 #: ../fish/guestfish.pod:1161 ../fuse/guestmount.pod:270
23214 msgid "/etc/libguestfs-tools.conf"
23215 msgstr ""
23216
23217 #. type: textblock
23218 #: ../fish/guestfish.pod:1163 ../fuse/guestmount.pod:272
23219 msgid ""
23220 "This configuration file controls the default read-only or read-write mode "
23221 "(I<--ro> or I<--rw>)."
23222 msgstr ""
23223
23224 #. type: textblock
23225 #: ../fish/guestfish.pod:1166
23226 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
23227 msgstr ""
23228
23229 #. type: =item
23230 #: ../fish/guestfish.pod:1168
23231 msgid "$HOME/.guestfish"
23232 msgstr ""
23233
23234 #. type: textblock
23235 #: ../fish/guestfish.pod:1170
23236 msgid ""
23237 "If compiled with GNU readline support, then the command history is saved in "
23238 "this file."
23239 msgstr ""
23240
23241 #. type: =item
23242 #: ../fish/guestfish.pod:1173
23243 msgid "$HOME/.inputrc"
23244 msgstr ""
23245
23246 #. type: =item
23247 #: ../fish/guestfish.pod:1175
23248 msgid "/etc/inputrc"
23249 msgstr ""
23250
23251 #. type: textblock
23252 #: ../fish/guestfish.pod:1177
23253 msgid ""
23254 "If compiled with GNU readline support, then these files can be used to "
23255 "configure readline.  For further information, please see "
23256 "L<readline(3)/INITIALIZATION FILE>."
23257 msgstr ""
23258
23259 #. type: textblock
23260 #: ../fish/guestfish.pod:1181
23261 msgid "To write rules which only apply to guestfish, use:"
23262 msgstr ""
23263
23264 #. type: verbatim
23265 #: ../fish/guestfish.pod:1183
23266 #, no-wrap
23267 msgid ""
23268 " $if guestfish\n"
23269 " ...\n"
23270 " $endif\n"
23271 "\n"
23272 msgstr ""
23273
23274 #. type: textblock
23275 #: ../fish/guestfish.pod:1187
23276 msgid ""
23277 "Variables that you can set in inputrc that change the behaviour of guestfish"
23278 " in useful ways include:"
23279 msgstr ""
23280
23281 #. type: =item
23282 #: ../fish/guestfish.pod:1192
23283 msgid "completion-ignore-case (default: on)"
23284 msgstr ""
23285
23286 #. type: textblock
23287 #: ../fish/guestfish.pod:1194
23288 msgid ""
23289 "By default, guestfish will ignore case when tab-completing paths on the "
23290 "disk.  Use:"
23291 msgstr ""
23292
23293 #. type: verbatim
23294 #: ../fish/guestfish.pod:1197
23295 #, no-wrap
23296 msgid ""
23297 " set completion-ignore-case off\n"
23298 "\n"
23299 msgstr ""
23300
23301 #. type: textblock
23302 #: ../fish/guestfish.pod:1199
23303 msgid "to make guestfish case sensitive."
23304 msgstr ""
23305
23306 #. type: =item
23307 #: ../fish/guestfish.pod:1203
23308 msgid "test1.img"
23309 msgstr ""
23310
23311 #. type: =item
23312 #: ../fish/guestfish.pod:1205
23313 msgid "test2.img (etc)"
23314 msgstr ""
23315
23316 #. type: textblock
23317 #: ../fish/guestfish.pod:1207
23318 msgid ""
23319 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
23320 "will be created in the file C<test1.img> in the current directory.  The "
23321 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with"
23322 " the same name will be overwritten."
23323 msgstr ""
23324
23325 #. type: textblock
23326 #: ../fish/guestfish.pod:1216
23327 msgid ""
23328 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-"
23329 "in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-"
23330 "filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-"
23331 "list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L"
23332 "<virt-resize(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L"
23333 "<virt-win-reg(1)>, L<display(1)>, L<hexedit(1)>."
23334 msgstr ""
23335
23336 #. type: textblock
23337 #: ../fish/guestfish.pod:1247 ../test-tool/libguestfs-test-tool.pod:102
23338 #: ../fuse/guestmount.pod:299 ../tools/virt-win-reg.pl:778
23339 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:309
23340 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:277
23341 msgid ""
23342 "This program is free software; you can redistribute it and/or modify it "
23343 "under the terms of the GNU General Public License as published by the Free "
23344 "Software Foundation; either version 2 of the License, or (at your option) "
23345 "any later version."
23346 msgstr ""
23347
23348 #. type: textblock
23349 #: ../fish/guestfish.pod:1252 ../test-tool/libguestfs-test-tool.pod:107
23350 #: ../fuse/guestmount.pod:304 ../tools/virt-win-reg.pl:783
23351 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:314
23352 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:282
23353 msgid ""
23354 "This program is distributed in the hope that it will be useful, but WITHOUT "
23355 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
23356 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
23357 "more details."
23358 msgstr ""
23359 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
23360 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
23361 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
23362 "дізнатися з GNU General Public License."
23363
23364 #. type: textblock
23365 #: ../fish/guestfish.pod:1257 ../test-tool/libguestfs-test-tool.pod:112
23366 #: ../fuse/guestmount.pod:309 ../tools/virt-win-reg.pl:788
23367 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:319
23368 #: ../tools/virt-make-fs.pl:582 ../tools/virt-list-partitions.pl:287
23369 msgid ""
23370 "You should have received a copy of the GNU General Public License along with"
23371 " this program; if not, write to the Free Software Foundation, Inc., 675 Mass"
23372 " Ave, Cambridge, MA 02139, USA."
23373 msgstr ""
23374
23375 #. type: =head2
23376 #: ../fish/guestfish-actions.pod:1
23377 msgid "add-cdrom"
23378 msgstr ""
23379
23380 #. type: verbatim
23381 #: ../fish/guestfish-actions.pod:3
23382 #, no-wrap
23383 msgid ""
23384 " add-cdrom filename\n"
23385 "\n"
23386 msgstr ""
23387
23388 #. type: textblock
23389 #: ../fish/guestfish-actions.pod:15
23390 msgid ""
23391 "This call checks for the existence of C<filename>.  This stops you from "
23392 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23393 "and C<http:> URLs.  To specify those, use the general L</config> call "
23394 "instead."
23395 msgstr ""
23396
23397 #. type: textblock
23398 #: ../fish/guestfish-actions.pod:22
23399 msgid ""
23400 "If you just want to add an ISO file (often you use this as an efficient way "
23401 "to transfer large files into the guest), then you should probably use L"
23402 "</add-drive-ro> instead."
23403 msgstr ""
23404
23405 #. type: =head2
23406 #: ../fish/guestfish-actions.pod:35
23407 msgid "add-domain"
23408 msgstr "add-domain"
23409
23410 #. type: =head2
23411 #: ../fish/guestfish-actions.pod:37
23412 msgid "domain"
23413 msgstr ""
23414
23415 #. type: verbatim
23416 #: ../fish/guestfish-actions.pod:39
23417 #, no-wrap
23418 msgid ""
23419 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
23420 "\n"
23421 msgstr ""
23422
23423 #. type: textblock
23424 #: ../fish/guestfish-actions.pod:41
23425 msgid ""
23426 "This function adds the disk(s) attached to the named libvirt domain C<dom>."
23427 "  It works by connecting to libvirt, requesting the domain and domain XML "
23428 "from libvirt, parsing it for disks, and calling L</add-drive-opts> on each "
23429 "one."
23430 msgstr ""
23431
23432 #. type: textblock
23433 #: ../fish/guestfish-actions.pod:76
23434 msgid ""
23435 "The other optional parameters are passed directly through to L</add-drive-"
23436 "opts>."
23437 msgstr ""
23438
23439 #. type: textblock
23440 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
23441 #: ../fish/guestfish-actions.pod:568 ../fish/guestfish-actions.pod:1968
23442 #: ../fish/guestfish-actions.pod:3134 ../fish/guestfish-actions.pod:3307
23443 #: ../fish/guestfish-actions.pod:3442
23444 msgid ""
23445 "This command has one or more optional arguments.  See L</OPTIONAL "
23446 "ARGUMENTS>."
23447 msgstr ""
23448
23449 #. type: =head2
23450 #: ../fish/guestfish-actions.pod:81
23451 msgid "add-drive"
23452 msgstr "add-drive"
23453
23454 #. type: verbatim
23455 #: ../fish/guestfish-actions.pod:83
23456 #, no-wrap
23457 msgid ""
23458 " add-drive filename\n"
23459 "\n"
23460 msgstr ""
23461 " add-drive назва_файла\n"
23462 "\n"
23463
23464 #. type: textblock
23465 #: ../fish/guestfish-actions.pod:85
23466 msgid ""
23467 "This function is the equivalent of calling L</add-drive-opts> with no "
23468 "optional parameters, so the disk is added writable, with the format being "
23469 "detected automatically."
23470 msgstr ""
23471
23472 #. type: textblock
23473 #: ../fish/guestfish-actions.pod:89
23474 msgid ""
23475 "Automatic detection of the format opens you up to a potential security hole "
23476 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
23477 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
23478 "you should think about replacing calls to this function with calls to L"
23479 "</add-drive-opts>, and specifying the format."
23480 msgstr ""
23481
23482 #. type: =head2
23483 #: ../fish/guestfish-actions.pod:96
23484 msgid "add-drive-opts"
23485 msgstr "add-drive-opts"
23486
23487 #. type: =head2
23488 #: ../fish/guestfish-actions.pod:98
23489 msgid "add"
23490 msgstr "add"
23491
23492 #. type: verbatim
23493 #: ../fish/guestfish-actions.pod:100
23494 #, no-wrap
23495 msgid ""
23496 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
23497 "\n"
23498 msgstr ""
23499
23500 #. type: textblock
23501 #: ../fish/guestfish-actions.pod:127
23502 msgid ""
23503 "This forces the image format.  If you omit this (or use L</add-drive> or L"
23504 "</add-drive-ro>) then the format is automatically detected.  Possible "
23505 "formats include C<raw> and C<qcow2>."
23506 msgstr ""
23507
23508 #. type: textblock
23509 #: ../fish/guestfish-actions.pod:138
23510 msgid ""
23511 "This rarely-used option lets you emulate the behaviour of the deprecated L"
23512 "</add-drive-with-if> call (q.v.)"
23513 msgstr ""
23514
23515 #. type: =head2
23516 #: ../fish/guestfish-actions.pod:145
23517 msgid "add-drive-ro"
23518 msgstr "add-drive-ro"
23519
23520 #. type: =head2
23521 #: ../fish/guestfish-actions.pod:147
23522 msgid "add-ro"
23523 msgstr "add-ro"
23524
23525 #. type: verbatim
23526 #: ../fish/guestfish-actions.pod:149
23527 #, no-wrap
23528 msgid ""
23529 " add-drive-ro filename\n"
23530 "\n"
23531 msgstr ""
23532
23533 #. type: textblock
23534 #: ../fish/guestfish-actions.pod:151
23535 msgid ""
23536 "This function is the equivalent of calling L</add-drive-opts> with the "
23537 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
23538 "is added read-only, with the format being detected automatically."
23539 msgstr ""
23540
23541 #. type: =head2
23542 #: ../fish/guestfish-actions.pod:156
23543 msgid "add-drive-ro-with-if"
23544 msgstr ""
23545
23546 #. type: verbatim
23547 #: ../fish/guestfish-actions.pod:158
23548 #, no-wrap
23549 msgid ""
23550 " add-drive-ro-with-if filename iface\n"
23551 "\n"
23552 msgstr ""
23553
23554 #. type: textblock
23555 #: ../fish/guestfish-actions.pod:160
23556 msgid ""
23557 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
23558 "interface emulation to use at run time."
23559 msgstr ""
23560
23561 #. type: =head2
23562 #: ../fish/guestfish-actions.pod:170
23563 msgid "add-drive-with-if"
23564 msgstr ""
23565
23566 #. type: verbatim
23567 #: ../fish/guestfish-actions.pod:172
23568 #, no-wrap
23569 msgid ""
23570 " add-drive-with-if filename iface\n"
23571 "\n"
23572 msgstr ""
23573
23574 #. type: textblock
23575 #: ../fish/guestfish-actions.pod:174
23576 msgid ""
23577 "This is the same as L</add-drive> but it allows you to specify the QEMU "
23578 "interface emulation to use at run time."
23579 msgstr ""
23580
23581 #. type: =head2
23582 #: ../fish/guestfish-actions.pod:184
23583 msgid "aug-clear"
23584 msgstr ""
23585
23586 #. type: verbatim
23587 #: ../fish/guestfish-actions.pod:186
23588 #, no-wrap
23589 msgid ""
23590 " aug-clear augpath\n"
23591 "\n"
23592 msgstr ""
23593
23594 #. type: =head2
23595 #: ../fish/guestfish-actions.pod:191
23596 msgid "aug-close"
23597 msgstr ""
23598
23599 #. type: verbatim
23600 #: ../fish/guestfish-actions.pod:193
23601 #, no-wrap
23602 msgid ""
23603 " aug-close\n"
23604 "\n"
23605 msgstr ""
23606
23607 #. type: textblock
23608 #: ../fish/guestfish-actions.pod:195
23609 msgid ""
23610 "Close the current Augeas handle and free up any resources used by it.  After"
23611 " calling this, you have to call L</aug-init> again before you can use any "
23612 "other Augeas functions."
23613 msgstr ""
23614
23615 #. type: =head2
23616 #: ../fish/guestfish-actions.pod:200
23617 msgid "aug-defnode"
23618 msgstr ""
23619
23620 #. type: verbatim
23621 #: ../fish/guestfish-actions.pod:202
23622 #, no-wrap
23623 msgid ""
23624 " aug-defnode name expr val\n"
23625 "\n"
23626 msgstr ""
23627
23628 #. type: textblock
23629 #: ../fish/guestfish-actions.pod:207
23630 msgid ""
23631 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23632 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
23633 "containing that single node."
23634 msgstr ""
23635
23636 #. type: =head2
23637 #: ../fish/guestfish-actions.pod:215
23638 msgid "aug-defvar"
23639 msgstr ""
23640
23641 #. type: verbatim
23642 #: ../fish/guestfish-actions.pod:217
23643 #, no-wrap
23644 msgid ""
23645 " aug-defvar name expr\n"
23646 "\n"
23647 msgstr ""
23648
23649 #. type: =head2
23650 #: ../fish/guestfish-actions.pod:226
23651 msgid "aug-get"
23652 msgstr ""
23653
23654 #. type: verbatim
23655 #: ../fish/guestfish-actions.pod:228
23656 #, no-wrap
23657 msgid ""
23658 " aug-get augpath\n"
23659 "\n"
23660 msgstr ""
23661
23662 #. type: =head2
23663 #: ../fish/guestfish-actions.pod:233
23664 msgid "aug-init"
23665 msgstr ""
23666
23667 #. type: verbatim
23668 #: ../fish/guestfish-actions.pod:235
23669 #, no-wrap
23670 msgid ""
23671 " aug-init root flags\n"
23672 "\n"
23673 msgstr ""
23674
23675 #. type: textblock
23676 #: ../fish/guestfish-actions.pod:241
23677 msgid "You must call this before using any other L</aug-*> commands."
23678 msgstr ""
23679
23680 #. type: textblock
23681 #: ../fish/guestfish-actions.pod:276
23682 msgid "Do not load the tree in L</aug-init>."
23683 msgstr ""
23684
23685 #. type: textblock
23686 #: ../fish/guestfish-actions.pod:280
23687 msgid "To close the handle, you can call L</aug-close>."
23688 msgstr ""
23689
23690 #. type: =head2
23691 #: ../fish/guestfish-actions.pod:284
23692 msgid "aug-insert"
23693 msgstr ""
23694
23695 #. type: verbatim
23696 #: ../fish/guestfish-actions.pod:286
23697 #, no-wrap
23698 msgid ""
23699 " aug-insert augpath label true|false\n"
23700 "\n"
23701 msgstr ""
23702
23703 #. type: =head2
23704 #: ../fish/guestfish-actions.pod:296
23705 msgid "aug-load"
23706 msgstr ""
23707
23708 #. type: verbatim
23709 #: ../fish/guestfish-actions.pod:298
23710 #, no-wrap
23711 msgid ""
23712 " aug-load\n"
23713 "\n"
23714 msgstr ""
23715
23716 #. type: =head2
23717 #: ../fish/guestfish-actions.pod:305
23718 msgid "aug-ls"
23719 msgstr ""
23720
23721 #. type: verbatim
23722 #: ../fish/guestfish-actions.pod:307
23723 #, no-wrap
23724 msgid ""
23725 " aug-ls augpath\n"
23726 "\n"
23727 msgstr ""
23728
23729 #. type: textblock
23730 #: ../fish/guestfish-actions.pod:309
23731 msgid ""
23732 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
23733 "resulting nodes into alphabetical order."
23734 msgstr ""
23735
23736 #. type: =head2
23737 #: ../fish/guestfish-actions.pod:312
23738 msgid "aug-match"
23739 msgstr ""
23740
23741 #. type: verbatim
23742 #: ../fish/guestfish-actions.pod:314
23743 #, no-wrap
23744 msgid ""
23745 " aug-match augpath\n"
23746 "\n"
23747 msgstr ""
23748
23749 #. type: =head2
23750 #: ../fish/guestfish-actions.pod:320
23751 msgid "aug-mv"
23752 msgstr ""
23753
23754 #. type: verbatim
23755 #: ../fish/guestfish-actions.pod:322
23756 #, no-wrap
23757 msgid ""
23758 " aug-mv src dest\n"
23759 "\n"
23760 msgstr ""
23761
23762 #. type: =head2
23763 #: ../fish/guestfish-actions.pod:327
23764 msgid "aug-rm"
23765 msgstr ""
23766
23767 #. type: verbatim
23768 #: ../fish/guestfish-actions.pod:329
23769 #, no-wrap
23770 msgid ""
23771 " aug-rm augpath\n"
23772 "\n"
23773 msgstr ""
23774
23775 #. type: =head2
23776 #: ../fish/guestfish-actions.pod:335
23777 msgid "aug-save"
23778 msgstr ""
23779
23780 #. type: verbatim
23781 #: ../fish/guestfish-actions.pod:337
23782 #, no-wrap
23783 msgid ""
23784 " aug-save\n"
23785 "\n"
23786 msgstr ""
23787
23788 #. type: textblock
23789 #: ../fish/guestfish-actions.pod:341
23790 msgid ""
23791 "The flags which were passed to L</aug-init> affect exactly how files are "
23792 "saved."
23793 msgstr ""
23794
23795 #. type: =head2
23796 #: ../fish/guestfish-actions.pod:344
23797 msgid "aug-set"
23798 msgstr ""
23799
23800 #. type: verbatim
23801 #: ../fish/guestfish-actions.pod:346
23802 #, no-wrap
23803 msgid ""
23804 " aug-set augpath val\n"
23805 "\n"
23806 msgstr ""
23807
23808 #. type: textblock
23809 #: ../fish/guestfish-actions.pod:350
23810 msgid ""
23811 "In the Augeas API, it is possible to clear a node by setting the value to "
23812 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
23813 "this call.  Instead you must use the L</aug-clear> call."
23814 msgstr ""
23815
23816 #. type: =head2
23817 #: ../fish/guestfish-actions.pod:355
23818 msgid "available"
23819 msgstr ""
23820
23821 #. type: verbatim
23822 #: ../fish/guestfish-actions.pod:357
23823 #, no-wrap
23824 msgid ""
23825 " available 'groups ...'\n"
23826 "\n"
23827 msgstr ""
23828
23829 #. type: textblock
23830 #: ../fish/guestfish-actions.pod:363
23831 msgid ""
23832 "The libguestfs groups, and the functions that those groups correspond to, "
23833 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
23834 "runtime by calling L</available-all-groups>."
23835 msgstr ""
23836
23837 #. type: textblock
23838 #: ../fish/guestfish-actions.pod:387
23839 msgid "You must call L</launch> before calling this function."
23840 msgstr ""
23841
23842 #. type: textblock
23843 #: ../fish/guestfish-actions.pod:409
23844 msgid ""
23845 "This call was added in version C<1.0.80>.  In previous versions of "
23846 "libguestfs all you could do would be to speculatively execute a command to "
23847 "find out if the daemon implemented it.  See also L</version>."
23848 msgstr ""
23849
23850 #. type: =head2
23851 #: ../fish/guestfish-actions.pod:416
23852 msgid "available-all-groups"
23853 msgstr ""
23854
23855 #. type: verbatim
23856 #: ../fish/guestfish-actions.pod:418
23857 #, no-wrap
23858 msgid ""
23859 " available-all-groups\n"
23860 "\n"
23861 msgstr ""
23862
23863 #. type: textblock
23864 #: ../fish/guestfish-actions.pod:420
23865 msgid ""
23866 "This command returns a list of all optional groups that this daemon knows "
23867 "about.  Note this returns both supported and unsupported groups.  To find "
23868 "out which ones the daemon can actually support you have to call "
23869 "L</available> on each member of the returned list."
23870 msgstr ""
23871
23872 #. type: textblock
23873 #: ../fish/guestfish-actions.pod:426
23874 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
23875 msgstr ""
23876
23877 #. type: =head2
23878 #: ../fish/guestfish-actions.pod:428
23879 msgid "base64-in"
23880 msgstr ""
23881
23882 #. type: verbatim
23883 #: ../fish/guestfish-actions.pod:430
23884 #, no-wrap
23885 msgid ""
23886 " base64-in (base64file|-) filename\n"
23887 "\n"
23888 msgstr ""
23889
23890 #. type: textblock
23891 #: ../fish/guestfish-actions.pod:435 ../fish/guestfish-actions.pod:444
23892 #: ../fish/guestfish-actions.pod:693 ../fish/guestfish-actions.pod:862
23893 #: ../fish/guestfish-actions.pod:881 ../fish/guestfish-actions.pod:1255
23894 #: ../fish/guestfish-actions.pod:4652 ../fish/guestfish-actions.pod:4664
23895 #: ../fish/guestfish-actions.pod:4675 ../fish/guestfish-actions.pod:4686
23896 #: ../fish/guestfish-actions.pod:4738 ../fish/guestfish-actions.pod:4747
23897 #: ../fish/guestfish-actions.pod:4801 ../fish/guestfish-actions.pod:4824
23898 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
23899 msgstr ""
23900
23901 #. type: =head2
23902 #: ../fish/guestfish-actions.pod:437
23903 msgid "base64-out"
23904 msgstr ""
23905
23906 #. type: verbatim
23907 #: ../fish/guestfish-actions.pod:439
23908 #, no-wrap
23909 msgid ""
23910 " base64-out filename (base64file|-)\n"
23911 "\n"
23912 msgstr ""
23913
23914 #. type: =head2
23915 #: ../fish/guestfish-actions.pod:446
23916 msgid "blockdev-flushbufs"
23917 msgstr ""
23918
23919 #. type: verbatim
23920 #: ../fish/guestfish-actions.pod:448
23921 #, no-wrap
23922 msgid ""
23923 " blockdev-flushbufs device\n"
23924 "\n"
23925 msgstr ""
23926
23927 #. type: =head2
23928 #: ../fish/guestfish-actions.pod:455
23929 msgid "blockdev-getbsz"
23930 msgstr ""
23931
23932 #. type: verbatim
23933 #: ../fish/guestfish-actions.pod:457
23934 #, no-wrap
23935 msgid ""
23936 " blockdev-getbsz device\n"
23937 "\n"
23938 msgstr ""
23939
23940 #. type: =head2
23941 #: ../fish/guestfish-actions.pod:466
23942 msgid "blockdev-getro"
23943 msgstr ""
23944
23945 #. type: verbatim
23946 #: ../fish/guestfish-actions.pod:468
23947 #, no-wrap
23948 msgid ""
23949 " blockdev-getro device\n"
23950 "\n"
23951 msgstr ""
23952
23953 #. type: =head2
23954 #: ../fish/guestfish-actions.pod:475
23955 msgid "blockdev-getsize64"
23956 msgstr ""
23957
23958 #. type: verbatim
23959 #: ../fish/guestfish-actions.pod:477
23960 #, no-wrap
23961 msgid ""
23962 " blockdev-getsize64 device\n"
23963 "\n"
23964 msgstr ""
23965
23966 #. type: textblock
23967 #: ../fish/guestfish-actions.pod:481
23968 msgid "See also L</blockdev-getsz>."
23969 msgstr ""
23970
23971 #. type: =head2
23972 #: ../fish/guestfish-actions.pod:485
23973 msgid "blockdev-getss"
23974 msgstr ""
23975
23976 #. type: verbatim
23977 #: ../fish/guestfish-actions.pod:487
23978 #, no-wrap
23979 msgid ""
23980 " blockdev-getss device\n"
23981 "\n"
23982 msgstr ""
23983
23984 #. type: textblock
23985 #: ../fish/guestfish-actions.pod:492
23986 msgid ""
23987 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
23988 msgstr ""
23989
23990 #. type: =head2
23991 #: ../fish/guestfish-actions.pod:497
23992 msgid "blockdev-getsz"
23993 msgstr ""
23994
23995 #. type: verbatim
23996 #: ../fish/guestfish-actions.pod:499
23997 #, no-wrap
23998 msgid ""
23999 " blockdev-getsz device\n"
24000 "\n"
24001 msgstr ""
24002
24003 #. type: textblock
24004 #: ../fish/guestfish-actions.pod:504
24005 msgid ""
24006 "See also L</blockdev-getss> for the real sector size of the device, and L"
24007 "</blockdev-getsize64> for the more useful I<size in bytes>."
24008 msgstr ""
24009
24010 #. type: =head2
24011 #: ../fish/guestfish-actions.pod:510
24012 msgid "blockdev-rereadpt"
24013 msgstr ""
24014
24015 #. type: verbatim
24016 #: ../fish/guestfish-actions.pod:512
24017 #, no-wrap
24018 msgid ""
24019 " blockdev-rereadpt device\n"
24020 "\n"
24021 msgstr ""
24022
24023 #. type: =head2
24024 #: ../fish/guestfish-actions.pod:518
24025 msgid "blockdev-setbsz"
24026 msgstr ""
24027
24028 #. type: verbatim
24029 #: ../fish/guestfish-actions.pod:520
24030 #, no-wrap
24031 msgid ""
24032 " blockdev-setbsz device blocksize\n"
24033 "\n"
24034 msgstr ""
24035
24036 #. type: =head2
24037 #: ../fish/guestfish-actions.pod:529
24038 msgid "blockdev-setro"
24039 msgstr ""
24040
24041 #. type: verbatim
24042 #: ../fish/guestfish-actions.pod:531
24043 #, no-wrap
24044 msgid ""
24045 " blockdev-setro device\n"
24046 "\n"
24047 msgstr ""
24048
24049 #. type: =head2
24050 #: ../fish/guestfish-actions.pod:537
24051 msgid "blockdev-setrw"
24052 msgstr ""
24053
24054 #. type: verbatim
24055 #: ../fish/guestfish-actions.pod:539
24056 #, no-wrap
24057 msgid ""
24058 " blockdev-setrw device\n"
24059 "\n"
24060 msgstr ""
24061
24062 #. type: =head2
24063 #: ../fish/guestfish-actions.pod:545
24064 msgid "btrfs-filesystem-resize"
24065 msgstr ""
24066
24067 #. type: verbatim
24068 #: ../fish/guestfish-actions.pod:547
24069 #, no-wrap
24070 msgid ""
24071 " btrfs-filesystem-resize mountpoint [size:..]\n"
24072 "\n"
24073 msgstr ""
24074
24075 #. type: =head2
24076 #: ../fish/guestfish-actions.pod:570
24077 msgid "case-sensitive-path"
24078 msgstr ""
24079
24080 #. type: verbatim
24081 #: ../fish/guestfish-actions.pod:572
24082 #, no-wrap
24083 msgid ""
24084 " case-sensitive-path path\n"
24085 "\n"
24086 msgstr ""
24087
24088 #. type: textblock
24089 #: ../fish/guestfish-actions.pod:596
24090 msgid ""
24091 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
24092 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24093 "how the directories were originally created under Windows)."
24094 msgstr ""
24095
24096 #. type: textblock
24097 #: ../fish/guestfish-actions.pod:604
24098 msgid "See also L</realpath>."
24099 msgstr ""
24100
24101 #. type: =head2
24102 #: ../fish/guestfish-actions.pod:606
24103 msgid "cat"
24104 msgstr "cat"
24105
24106 #. type: verbatim
24107 #: ../fish/guestfish-actions.pod:608
24108 #, no-wrap
24109 msgid ""
24110 " cat path\n"
24111 "\n"
24112 msgstr ""
24113 " cat шлях\n"
24114 "\n"
24115
24116 #. type: textblock
24117 #: ../fish/guestfish-actions.pod:612
24118 msgid ""
24119 "Note that this function cannot correctly handle binary files (specifically, "
24120 "files containing C<\\0> character which is treated as end of string).  For "
24121 "those you need to use the L</read-file> or L</download> functions which have"
24122 " a more complex interface."
24123 msgstr ""
24124
24125 #. type: =head2
24126 #: ../fish/guestfish-actions.pod:620
24127 msgid "checksum"
24128 msgstr "checksum"
24129
24130 #. type: verbatim
24131 #: ../fish/guestfish-actions.pod:622
24132 #, no-wrap
24133 msgid ""
24134 " checksum csumtype path\n"
24135 "\n"
24136 msgstr ""
24137
24138 #. type: textblock
24139 #: ../fish/guestfish-actions.pod:665
24140 msgid "To get the checksum for a device, use L</checksum-device>."
24141 msgstr ""
24142
24143 #. type: textblock
24144 #: ../fish/guestfish-actions.pod:667
24145 msgid "To get the checksums for many files, use L</checksums-out>."
24146 msgstr ""
24147
24148 #. type: =head2
24149 #: ../fish/guestfish-actions.pod:669
24150 msgid "checksum-device"
24151 msgstr "checksum-device"
24152
24153 #. type: verbatim
24154 #: ../fish/guestfish-actions.pod:671
24155 #, no-wrap
24156 msgid ""
24157 " checksum-device csumtype device\n"
24158 "\n"
24159 msgstr ""
24160
24161 #. type: textblock
24162 #: ../fish/guestfish-actions.pod:673
24163 msgid ""
24164 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24165 "device named C<device>.  For the types of checksums supported see the "
24166 "L</checksum> command."
24167 msgstr ""
24168
24169 #. type: =head2
24170 #: ../fish/guestfish-actions.pod:677
24171 msgid "checksums-out"
24172 msgstr ""
24173
24174 #. type: verbatim
24175 #: ../fish/guestfish-actions.pod:679
24176 #, no-wrap
24177 msgid ""
24178 " checksums-out csumtype directory (sumsfile|-)\n"
24179 "\n"
24180 msgstr ""
24181
24182 #. type: =head2
24183 #: ../fish/guestfish-actions.pod:695
24184 msgid "chmod"
24185 msgstr "chmod"
24186
24187 #. type: verbatim
24188 #: ../fish/guestfish-actions.pod:697
24189 #, no-wrap
24190 msgid ""
24191 " chmod mode path\n"
24192 "\n"
24193 msgstr ""
24194
24195 #. type: =head2
24196 #: ../fish/guestfish-actions.pod:708
24197 msgid "chown"
24198 msgstr "chown"
24199
24200 #. type: verbatim
24201 #: ../fish/guestfish-actions.pod:710
24202 #, no-wrap
24203 msgid ""
24204 " chown owner group path\n"
24205 "\n"
24206 msgstr ""
24207
24208 #. type: =head2
24209 #: ../fish/guestfish-actions.pod:718
24210 msgid "command"
24211 msgstr ""
24212
24213 #. type: verbatim
24214 #: ../fish/guestfish-actions.pod:720
24215 #, no-wrap
24216 msgid ""
24217 " command 'arguments ...'\n"
24218 "\n"
24219 msgstr ""
24220
24221 #. type: textblock
24222 #: ../fish/guestfish-actions.pod:727
24223 msgid ""
24224 "The single parameter is an argv-style list of arguments.  The first element "
24225 "is the name of the program to run.  Subsequent elements are parameters.  The"
24226 " list must be non-empty (ie. must contain a program name).  Note that the "
24227 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
24228 msgstr ""
24229
24230 #. type: =head2
24231 #: ../fish/guestfish-actions.pod:755
24232 msgid "command-lines"
24233 msgstr ""
24234
24235 #. type: verbatim
24236 #: ../fish/guestfish-actions.pod:757
24237 #, no-wrap
24238 msgid ""
24239 " command-lines 'arguments ...'\n"
24240 "\n"
24241 msgstr ""
24242
24243 #. type: textblock
24244 #: ../fish/guestfish-actions.pod:759
24245 msgid ""
24246 "This is the same as L</command>, but splits the result into a list of lines."
24247 msgstr ""
24248
24249 #. type: textblock
24250 #: ../fish/guestfish-actions.pod:762
24251 msgid "See also: L</sh-lines>"
24252 msgstr ""
24253
24254 #. type: =head2
24255 #: ../fish/guestfish-actions.pod:767
24256 msgid "config"
24257 msgstr ""
24258
24259 #. type: verbatim
24260 #: ../fish/guestfish-actions.pod:769
24261 #, no-wrap
24262 msgid ""
24263 " config qemuparam qemuvalue\n"
24264 "\n"
24265 msgstr ""
24266
24267 #. type: =head2
24268 #: ../fish/guestfish-actions.pod:780
24269 msgid "copy-size"
24270 msgstr ""
24271
24272 #. type: verbatim
24273 #: ../fish/guestfish-actions.pod:782
24274 #, no-wrap
24275 msgid ""
24276 " copy-size src dest size\n"
24277 "\n"
24278 msgstr ""
24279
24280 #. type: =head2
24281 #: ../fish/guestfish-actions.pod:790
24282 msgid "cp"
24283 msgstr "cp"
24284
24285 #. type: verbatim
24286 #: ../fish/guestfish-actions.pod:792
24287 #, no-wrap
24288 msgid ""
24289 " cp src dest\n"
24290 "\n"
24291 msgstr ""
24292
24293 #. type: =head2
24294 #: ../fish/guestfish-actions.pod:797
24295 msgid "cp-a"
24296 msgstr "cp-a"
24297
24298 #. type: verbatim
24299 #: ../fish/guestfish-actions.pod:799
24300 #, no-wrap
24301 msgid ""
24302 " cp-a src dest\n"
24303 "\n"
24304 msgstr ""
24305
24306 #. type: =head2
24307 #: ../fish/guestfish-actions.pod:804
24308 msgid "dd"
24309 msgstr "dd"
24310
24311 #. type: verbatim
24312 #: ../fish/guestfish-actions.pod:806
24313 #, no-wrap
24314 msgid ""
24315 " dd src dest\n"
24316 "\n"
24317 msgstr ""
24318
24319 #. type: textblock
24320 #: ../fish/guestfish-actions.pod:813
24321 msgid ""
24322 "If the destination is a device, it must be as large or larger than the "
24323 "source file or device, otherwise the copy will fail.  This command cannot do"
24324 " partial copies (see L</copy-size>)."
24325 msgstr ""
24326
24327 #. type: =head2
24328 #: ../fish/guestfish-actions.pod:817
24329 msgid "df"
24330 msgstr "df"
24331
24332 #. type: verbatim
24333 #: ../fish/guestfish-actions.pod:819
24334 #, no-wrap
24335 msgid ""
24336 " df\n"
24337 "\n"
24338 msgstr ""
24339 " df\n"
24340 "\n"
24341
24342 #. type: textblock
24343 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:834
24344 msgid ""
24345 "This command is mostly useful for interactive sessions.  It is I<not> "
24346 "intended that you try to parse the output string.  Use L</statvfs> from "
24347 "programs."
24348 msgstr ""
24349
24350 #. type: =head2
24351 #: ../fish/guestfish-actions.pod:827
24352 msgid "df-h"
24353 msgstr "df-h"
24354
24355 #. type: verbatim
24356 #: ../fish/guestfish-actions.pod:829
24357 #, no-wrap
24358 msgid ""
24359 " df-h\n"
24360 "\n"
24361 msgstr ""
24362 " df-h\n"
24363 "\n"
24364
24365 #. type: =head2
24366 #: ../fish/guestfish-actions.pod:838
24367 msgid "dmesg"
24368 msgstr "dmesg"
24369
24370 #. type: verbatim
24371 #: ../fish/guestfish-actions.pod:840
24372 #, no-wrap
24373 msgid ""
24374 " dmesg\n"
24375 "\n"
24376 msgstr ""
24377 " dmesg\n"
24378 "\n"
24379
24380 #. type: textblock
24381 #: ../fish/guestfish-actions.pod:846
24382 msgid ""
24383 "Another way to get the same information is to enable verbose messages with L"
24384 "</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
24385 "before running the program."
24386 msgstr ""
24387
24388 #. type: =head2
24389 #: ../fish/guestfish-actions.pod:851
24390 msgid "download"
24391 msgstr "download"
24392
24393 #. type: verbatim
24394 #: ../fish/guestfish-actions.pod:853
24395 #, no-wrap
24396 msgid ""
24397 " download remotefilename (filename|-)\n"
24398 "\n"
24399 msgstr ""
24400
24401 #. type: textblock
24402 #: ../fish/guestfish-actions.pod:860
24403 msgid "See also L</upload>, L</cat>."
24404 msgstr ""
24405
24406 #. type: =head2
24407 #: ../fish/guestfish-actions.pod:864
24408 msgid "download-offset"
24409 msgstr "download-offset"
24410
24411 #. type: verbatim
24412 #: ../fish/guestfish-actions.pod:866
24413 #, no-wrap
24414 msgid ""
24415 " download-offset remotefilename (filename|-) offset size\n"
24416 "\n"
24417 msgstr ""
24418
24419 #. type: textblock
24420 #: ../fish/guestfish-actions.pod:874
24421 msgid ""
24422 "Note that there is no limit on the amount of data that can be downloaded "
24423 "with this call, unlike with L</pread>, and this call always reads the full "
24424 "amount unless an error occurs."
24425 msgstr ""
24426
24427 #. type: textblock
24428 #: ../fish/guestfish-actions.pod:879
24429 msgid "See also L</download>, L</pread>."
24430 msgstr ""
24431
24432 #. type: =head2
24433 #: ../fish/guestfish-actions.pod:883
24434 msgid "drop-caches"
24435 msgstr ""
24436
24437 #. type: verbatim
24438 #: ../fish/guestfish-actions.pod:885
24439 #, no-wrap
24440 msgid ""
24441 " drop-caches whattodrop\n"
24442 "\n"
24443 msgstr ""
24444
24445 #. type: =head2
24446 #: ../fish/guestfish-actions.pod:897
24447 msgid "du"
24448 msgstr "du"
24449
24450 #. type: verbatim
24451 #: ../fish/guestfish-actions.pod:899
24452 #, no-wrap
24453 msgid ""
24454 " du path\n"
24455 "\n"
24456 msgstr ""
24457 " du шлях\n"
24458 "\n"
24459
24460 #. type: =head2
24461 #: ../fish/guestfish-actions.pod:911
24462 msgid "e2fsck-f"
24463 msgstr "e2fsck-f"
24464
24465 #. type: verbatim
24466 #: ../fish/guestfish-actions.pod:913
24467 #, no-wrap
24468 msgid ""
24469 " e2fsck-f device\n"
24470 "\n"
24471 msgstr ""
24472
24473 #. type: textblock
24474 #: ../fish/guestfish-actions.pod:919
24475 msgid ""
24476 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
24477 "should use L</fsck>."
24478 msgstr ""
24479
24480 #. type: =head2
24481 #: ../fish/guestfish-actions.pod:922
24482 msgid "echo-daemon"
24483 msgstr ""
24484
24485 #. type: verbatim
24486 #: ../fish/guestfish-actions.pod:924
24487 #, no-wrap
24488 msgid ""
24489 " echo-daemon 'words ...'\n"
24490 "\n"
24491 msgstr ""
24492
24493 #. type: textblock
24494 #: ../fish/guestfish-actions.pod:931
24495 msgid "See also L</ping-daemon>."
24496 msgstr ""
24497
24498 #. type: =head2
24499 #: ../fish/guestfish-actions.pod:933
24500 msgid "egrep"
24501 msgstr "egrep"
24502
24503 #. type: verbatim
24504 #: ../fish/guestfish-actions.pod:935
24505 #, no-wrap
24506 msgid ""
24507 " egrep regex path\n"
24508 "\n"
24509 msgstr ""
24510
24511 #. type: =head2
24512 #: ../fish/guestfish-actions.pod:943
24513 msgid "egrepi"
24514 msgstr "egrepi"
24515
24516 #. type: verbatim
24517 #: ../fish/guestfish-actions.pod:945
24518 #, no-wrap
24519 msgid ""
24520 " egrepi regex path\n"
24521 "\n"
24522 msgstr ""
24523
24524 #. type: =head2
24525 #: ../fish/guestfish-actions.pod:953
24526 msgid "equal"
24527 msgstr "equal"
24528
24529 #. type: verbatim
24530 #: ../fish/guestfish-actions.pod:955
24531 #, no-wrap
24532 msgid ""
24533 " equal file1 file2\n"
24534 "\n"
24535 msgstr ""
24536 " equal файл1 файл2\n"
24537 "\n"
24538
24539 #. type: =head2
24540 #: ../fish/guestfish-actions.pod:962
24541 msgid "exists"
24542 msgstr "exists"
24543
24544 #. type: verbatim
24545 #: ../fish/guestfish-actions.pod:964
24546 #, no-wrap
24547 msgid ""
24548 " exists path\n"
24549 "\n"
24550 msgstr ""
24551 " exists шлях\n"
24552 "\n"
24553
24554 #. type: textblock
24555 #: ../fish/guestfish-actions.pod:969
24556 msgid "See also L</is-file>, L</is-dir>, L</stat>."
24557 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
24558
24559 #. type: =head2
24560 #: ../fish/guestfish-actions.pod:971
24561 msgid "fallocate"
24562 msgstr "fallocate"
24563
24564 #. type: verbatim
24565 #: ../fish/guestfish-actions.pod:973
24566 #, no-wrap
24567 msgid ""
24568 " fallocate path len\n"
24569 "\n"
24570 msgstr ""
24571 " fallocate шлях довжина\n"
24572 "\n"
24573
24574 #. type: =head2
24575 #: ../fish/guestfish-actions.pod:990
24576 msgid "fallocate64"
24577 msgstr "fallocate64"
24578
24579 #. type: verbatim
24580 #: ../fish/guestfish-actions.pod:992
24581 #, no-wrap
24582 msgid ""
24583 " fallocate64 path len\n"
24584 "\n"
24585 msgstr ""
24586 " fallocate64 шлях довжина\n"
24587 "\n"
24588
24589 #. type: textblock
24590 #: ../fish/guestfish-actions.pod:998
24591 msgid ""
24592 "Note that this call allocates disk blocks for the file.  To create a sparse "
24593 "file use L</truncate-size> instead."
24594 msgstr ""
24595
24596 #. type: textblock
24597 #: ../fish/guestfish-actions.pod:1001
24598 msgid ""
24599 "The deprecated call L</fallocate> does the same, but owing to an oversight "
24600 "it only allowed 30 bit lengths to be specified, effectively limiting the "
24601 "maximum size of files created through that call to 1GB."
24602 msgstr ""
24603
24604 #. type: =head2
24605 #: ../fish/guestfish-actions.pod:1010
24606 msgid "fgrep"
24607 msgstr "fgrep"
24608
24609 #. type: verbatim
24610 #: ../fish/guestfish-actions.pod:1012
24611 #, no-wrap
24612 msgid ""
24613 " fgrep pattern path\n"
24614 "\n"
24615 msgstr ""
24616 " fgrep шаблон шлях\n"
24617 "\n"
24618
24619 #. type: =head2
24620 #: ../fish/guestfish-actions.pod:1020
24621 msgid "fgrepi"
24622 msgstr "fgrepi"
24623
24624 #. type: verbatim
24625 #: ../fish/guestfish-actions.pod:1022
24626 #, no-wrap
24627 msgid ""
24628 " fgrepi pattern path\n"
24629 "\n"
24630 msgstr ""
24631 " fgrepi шаблон шлях\n"
24632 "\n"
24633
24634 #. type: =head2
24635 #: ../fish/guestfish-actions.pod:1030
24636 msgid "file"
24637 msgstr "file"
24638
24639 #. type: verbatim
24640 #: ../fish/guestfish-actions.pod:1032
24641 #, no-wrap
24642 msgid ""
24643 " file path\n"
24644 "\n"
24645 msgstr ""
24646 " file шлях\n"
24647 "\n"
24648
24649 #. type: textblock
24650 #: ../fish/guestfish-actions.pod:1048
24651 msgid ""
24652 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
24653 "(etc), L</is-zero>."
24654 msgstr ""
24655
24656 #. type: =head2
24657 #: ../fish/guestfish-actions.pod:1051
24658 msgid "file-architecture"
24659 msgstr "file-architecture"
24660
24661 #. type: verbatim
24662 #: ../fish/guestfish-actions.pod:1053
24663 #, no-wrap
24664 msgid ""
24665 " file-architecture filename\n"
24666 "\n"
24667 msgstr ""
24668 " file-architecture назва_файла\n"
24669 "\n"
24670
24671 #. type: =head2
24672 #: ../fish/guestfish-actions.pod:1156
24673 msgid "filesize"
24674 msgstr "filesize"
24675
24676 #. type: verbatim
24677 #: ../fish/guestfish-actions.pod:1158
24678 #, no-wrap
24679 msgid ""
24680 " filesize file\n"
24681 "\n"
24682 msgstr ""
24683 " filesize файл\n"
24684 "\n"
24685
24686 #. type: textblock
24687 #: ../fish/guestfish-actions.pod:1162
24688 msgid ""
24689 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
24690 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
24691 msgstr ""
24692
24693 #. type: =head2
24694 #: ../fish/guestfish-actions.pod:1166
24695 msgid "fill"
24696 msgstr "fill"
24697
24698 #. type: verbatim
24699 #: ../fish/guestfish-actions.pod:1168
24700 #, no-wrap
24701 msgid ""
24702 " fill c len path\n"
24703 "\n"
24704 msgstr ""
24705
24706 #. type: textblock
24707 #: ../fish/guestfish-actions.pod:1174
24708 msgid ""
24709 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
24710 "L</truncate-size>.  To create a file with a pattern of repeating bytes use L"
24711 "</fill-pattern>."
24712 msgstr ""
24713
24714 #. type: =head2
24715 #: ../fish/guestfish-actions.pod:1179
24716 msgid "fill-pattern"
24717 msgstr "fill-pattern"
24718
24719 #. type: verbatim
24720 #: ../fish/guestfish-actions.pod:1181
24721 #, no-wrap
24722 msgid ""
24723 " fill-pattern pattern len path\n"
24724 "\n"
24725 msgstr ""
24726
24727 #. type: textblock
24728 #: ../fish/guestfish-actions.pod:1183
24729 msgid ""
24730 "This function is like L</fill> except that it creates a new file of length "
24731 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern"
24732 " is truncated if necessary to ensure the length of the file is exactly "
24733 "C<len> bytes."
24734 msgstr ""
24735
24736 #. type: =head2
24737 #: ../fish/guestfish-actions.pod:1188
24738 msgid "find"
24739 msgstr "find"
24740
24741 #. type: verbatim
24742 #: ../fish/guestfish-actions.pod:1190
24743 #, no-wrap
24744 msgid ""
24745 " find directory\n"
24746 "\n"
24747 msgstr ""
24748 " find каталог\n"
24749 "\n"
24750
24751 #. type: textblock
24752 #: ../fish/guestfish-actions.pod:1204
24753 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
24754 msgstr ""
24755
24756 #. type: textblock
24757 #: ../fish/guestfish-actions.pod:1217
24758 msgid "See also L</find0>."
24759 msgstr "Див. також L</find0>."
24760
24761 #. type: =head2
24762 #: ../fish/guestfish-actions.pod:1222
24763 msgid "find0"
24764 msgstr "find0"
24765
24766 #. type: verbatim
24767 #: ../fish/guestfish-actions.pod:1224
24768 #, no-wrap
24769 msgid ""
24770 " find0 directory (files|-)\n"
24771 "\n"
24772 msgstr ""
24773 " find0 каталог (файли|-)\n"
24774 "\n"
24775
24776 #. type: textblock
24777 #: ../fish/guestfish-actions.pod:1230
24778 msgid ""
24779 "This command works the same way as L</find> with the following exceptions:"
24780 msgstr ""
24781
24782 #. type: =head2
24783 #: ../fish/guestfish-actions.pod:1257
24784 msgid "findfs-label"
24785 msgstr "findfs-label"
24786
24787 #. type: verbatim
24788 #: ../fish/guestfish-actions.pod:1259
24789 #, no-wrap
24790 msgid ""
24791 " findfs-label label\n"
24792 "\n"
24793 msgstr ""
24794 " findfs-label мітка\n"
24795 "\n"
24796
24797 #. type: textblock
24798 #: ../fish/guestfish-actions.pod:1265
24799 msgid "To find the label of a filesystem, use L</vfs-label>."
24800 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
24801
24802 #. type: =head2
24803 #: ../fish/guestfish-actions.pod:1267
24804 msgid "findfs-uuid"
24805 msgstr "findfs-uuid"
24806
24807 #. type: verbatim
24808 #: ../fish/guestfish-actions.pod:1269
24809 #, no-wrap
24810 msgid ""
24811 " findfs-uuid uuid\n"
24812 "\n"
24813 msgstr ""
24814 " findfs-uuid uuid\n"
24815 "\n"
24816
24817 #. type: textblock
24818 #: ../fish/guestfish-actions.pod:1275
24819 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
24820 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
24821
24822 #. type: =head2
24823 #: ../fish/guestfish-actions.pod:1277
24824 msgid "fsck"
24825 msgstr "fsck"
24826
24827 #. type: verbatim
24828 #: ../fish/guestfish-actions.pod:1279
24829 #, no-wrap
24830 msgid ""
24831 " fsck fstype device\n"
24832 "\n"
24833 msgstr ""
24834 " fsck тип_файлової_системи пристрій\n"
24835 "\n"
24836
24837 #. type: =head2
24838 #: ../fish/guestfish-actions.pod:1309
24839 msgid "get-append"
24840 msgstr "get-append"
24841
24842 #. type: verbatim
24843 #: ../fish/guestfish-actions.pod:1311
24844 #, no-wrap
24845 msgid ""
24846 " get-append\n"
24847 "\n"
24848 msgstr ""
24849 " get-append\n"
24850 "\n"
24851
24852 #. type: =head2
24853 #: ../fish/guestfish-actions.pod:1318
24854 msgid "get-attach-method"
24855 msgstr "get-attach-method"
24856
24857 #. type: verbatim
24858 #: ../fish/guestfish-actions.pod:1320
24859 #, no-wrap
24860 msgid ""
24861 " get-attach-method\n"
24862 "\n"
24863 msgstr ""
24864 " get-attach-method\n"
24865 "\n"
24866
24867 #. type: textblock
24868 #: ../fish/guestfish-actions.pod:1322
24869 msgid "Return the current attach method.  See L</set-attach-method>."
24870 msgstr ""
24871
24872 #. type: =head2
24873 #: ../fish/guestfish-actions.pod:1324
24874 msgid "get-autosync"
24875 msgstr "get-autosync"
24876
24877 #. type: verbatim
24878 #: ../fish/guestfish-actions.pod:1326
24879 #, no-wrap
24880 msgid ""
24881 " get-autosync\n"
24882 "\n"
24883 msgstr ""
24884 " get-autosync\n"
24885 "\n"
24886
24887 #. type: =head2
24888 #: ../fish/guestfish-actions.pod:1330
24889 msgid "get-direct"
24890 msgstr "get-direct"
24891
24892 #. type: verbatim
24893 #: ../fish/guestfish-actions.pod:1332
24894 #, no-wrap
24895 msgid ""
24896 " get-direct\n"
24897 "\n"
24898 msgstr ""
24899 " get-direct\n"
24900 "\n"
24901
24902 #. type: =head2
24903 #: ../fish/guestfish-actions.pod:1336
24904 msgid "get-e2label"
24905 msgstr "get-e2label"
24906
24907 #. type: verbatim
24908 #: ../fish/guestfish-actions.pod:1338
24909 #, no-wrap
24910 msgid ""
24911 " get-e2label device\n"
24912 "\n"
24913 msgstr ""
24914 " get-e2label пристрій\n"
24915 "\n"
24916
24917 #. type: =head2
24918 #: ../fish/guestfish-actions.pod:1350
24919 msgid "get-e2uuid"
24920 msgstr "get-e2uuid"
24921
24922 #. type: verbatim
24923 #: ../fish/guestfish-actions.pod:1352
24924 #, no-wrap
24925 msgid ""
24926 " get-e2uuid device\n"
24927 "\n"
24928 msgstr ""
24929 " get-e2uuid пристрій\n"
24930 "\n"
24931
24932 #. type: =head2
24933 #: ../fish/guestfish-actions.pod:1364
24934 msgid "get-memsize"
24935 msgstr "get-memsize"
24936
24937 #. type: verbatim
24938 #: ../fish/guestfish-actions.pod:1366
24939 #, no-wrap
24940 msgid ""
24941 " get-memsize\n"
24942 "\n"
24943 msgstr ""
24944 " get-memsize\n"
24945 "\n"
24946
24947 #. type: textblock
24948 #: ../fish/guestfish-actions.pod:1371
24949 msgid ""
24950 "If L</set-memsize> was not called on this handle, and if "
24951 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default"
24952 " value for memsize."
24953 msgstr ""
24954
24955 #. type: =head2
24956 #: ../fish/guestfish-actions.pod:1378
24957 msgid "get-network"
24958 msgstr "get-network"
24959
24960 #. type: verbatim
24961 #: ../fish/guestfish-actions.pod:1380
24962 #, no-wrap
24963 msgid ""
24964 " get-network\n"
24965 "\n"
24966 msgstr ""
24967 " get-network\n"
24968 "\n"
24969
24970 #. type: =head2
24971 #: ../fish/guestfish-actions.pod:1384
24972 msgid "get-path"
24973 msgstr "get-path"
24974
24975 #. type: verbatim
24976 #: ../fish/guestfish-actions.pod:1386
24977 #, no-wrap
24978 msgid ""
24979 " get-path\n"
24980 "\n"
24981 msgstr ""
24982 " get-path\n"
24983 "\n"
24984
24985 #. type: =head2
24986 #: ../fish/guestfish-actions.pod:1393
24987 msgid "get-pgroup"
24988 msgstr ""
24989
24990 #. type: verbatim
24991 #: ../fish/guestfish-actions.pod:1395
24992 #, no-wrap
24993 msgid ""
24994 " get-pgroup\n"
24995 "\n"
24996 msgstr ""
24997
24998 #. type: =head2
24999 #: ../fish/guestfish-actions.pod:1399
25000 msgid "get-pid"
25001 msgstr "get-pid"
25002
25003 #. type: =head2
25004 #: ../fish/guestfish-actions.pod:1401
25005 msgid "pid"
25006 msgstr ""
25007
25008 #. type: verbatim
25009 #: ../fish/guestfish-actions.pod:1403
25010 #, no-wrap
25011 msgid ""
25012 " get-pid\n"
25013 "\n"
25014 msgstr ""
25015 " get-pid\n"
25016 "\n"
25017
25018 #. type: =head2
25019 #: ../fish/guestfish-actions.pod:1410
25020 msgid "get-qemu"
25021 msgstr "get-qemu"
25022
25023 #. type: verbatim
25024 #: ../fish/guestfish-actions.pod:1412
25025 #, no-wrap
25026 msgid ""
25027 " get-qemu\n"
25028 "\n"
25029 msgstr ""
25030 " get-qemu\n"
25031 "\n"
25032
25033 #. type: =head2
25034 #: ../fish/guestfish-actions.pod:1419
25035 msgid "get-recovery-proc"
25036 msgstr "get-recovery-proc"
25037
25038 #. type: verbatim
25039 #: ../fish/guestfish-actions.pod:1421
25040 #, no-wrap
25041 msgid ""
25042 " get-recovery-proc\n"
25043 "\n"
25044 msgstr ""
25045 " get-recovery-proc\n"
25046 "\n"
25047
25048 #. type: =head2
25049 #: ../fish/guestfish-actions.pod:1425
25050 msgid "get-selinux"
25051 msgstr "get-selinux"
25052
25053 #. type: verbatim
25054 #: ../fish/guestfish-actions.pod:1427
25055 #, no-wrap
25056 msgid ""
25057 " get-selinux\n"
25058 "\n"
25059 msgstr ""
25060 " get-selinux\n"
25061 "\n"
25062
25063 #. type: textblock
25064 #: ../fish/guestfish-actions.pod:1429
25065 msgid ""
25066 "This returns the current setting of the selinux flag which is passed to the "
25067 "appliance at boot time.  See L</set-selinux>."
25068 msgstr ""
25069
25070 #. type: =head2
25071 #: ../fish/guestfish-actions.pod:1435
25072 msgid "get-state"
25073 msgstr "get-state"
25074
25075 #. type: verbatim
25076 #: ../fish/guestfish-actions.pod:1437
25077 #, no-wrap
25078 msgid ""
25079 " get-state\n"
25080 "\n"
25081 msgstr ""
25082 " get-state\n"
25083 "\n"
25084
25085 #. type: =head2
25086 #: ../fish/guestfish-actions.pod:1444
25087 msgid "get-trace"
25088 msgstr "get-trace"
25089
25090 #. type: verbatim
25091 #: ../fish/guestfish-actions.pod:1446
25092 #, no-wrap
25093 msgid ""
25094 " get-trace\n"
25095 "\n"
25096 msgstr ""
25097 " get-trace\n"
25098 "\n"
25099
25100 #. type: =head2
25101 #: ../fish/guestfish-actions.pod:1450
25102 msgid "get-umask"
25103 msgstr "get-umask"
25104
25105 #. type: verbatim
25106 #: ../fish/guestfish-actions.pod:1452
25107 #, no-wrap
25108 msgid ""
25109 " get-umask\n"
25110 "\n"
25111 msgstr ""
25112 " get-umask\n"
25113 "\n"
25114
25115 #. type: textblock
25116 #: ../fish/guestfish-actions.pod:1454
25117 msgid ""
25118 "Return the current umask.  By default the umask is C<022> unless it has been"
25119 " set by calling L</umask>."
25120 msgstr ""
25121
25122 #. type: =head2
25123 #: ../fish/guestfish-actions.pod:1457
25124 msgid "get-verbose"
25125 msgstr "get-verbose"
25126
25127 #. type: verbatim
25128 #: ../fish/guestfish-actions.pod:1459
25129 #, no-wrap
25130 msgid ""
25131 " get-verbose\n"
25132 "\n"
25133 msgstr ""
25134 " get-verbose\n"
25135 "\n"
25136
25137 #. type: =head2
25138 #: ../fish/guestfish-actions.pod:1463
25139 msgid "getcon"
25140 msgstr "getcon"
25141
25142 #. type: verbatim
25143 #: ../fish/guestfish-actions.pod:1465
25144 #, no-wrap
25145 msgid ""
25146 " getcon\n"
25147 "\n"
25148 msgstr ""
25149 " getcon\n"
25150 "\n"
25151
25152 #. type: textblock
25153 #: ../fish/guestfish-actions.pod:1469
25154 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
25155 msgstr ""
25156
25157 #. type: =head2
25158 #: ../fish/guestfish-actions.pod:1472
25159 msgid "getxattr"
25160 msgstr "getxattr"
25161
25162 #. type: verbatim
25163 #: ../fish/guestfish-actions.pod:1474
25164 #, no-wrap
25165 msgid ""
25166 " getxattr path name\n"
25167 "\n"
25168 msgstr ""
25169 " getxattr шлях назва\n"
25170 "\n"
25171
25172 #. type: textblock
25173 #: ../fish/guestfish-actions.pod:1476
25174 msgid ""
25175 "Get a single extended attribute from file C<path> named C<name>.  This call "
25176 "follows symlinks.  If you want to lookup an extended attribute for the "
25177 "symlink itself, use L</lgetxattr>."
25178 msgstr ""
25179
25180 #. type: textblock
25181 #: ../fish/guestfish-actions.pod:1480 ../fish/guestfish-actions.pod:2507
25182 msgid ""
25183 "Normally it is better to get all extended attributes from a file in one go "
25184 "by calling L</getxattrs>.  However some Linux filesystem implementations are"
25185 " buggy and do not provide a way to list out attributes.  For these "
25186 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
25187 "attributes you want in advance and call this function."
25188 msgstr ""
25189
25190 #. type: textblock
25191 #: ../fish/guestfish-actions.pod:1490
25192 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
25193 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
25194
25195 #. type: =head2
25196 #: ../fish/guestfish-actions.pod:1492
25197 msgid "getxattrs"
25198 msgstr "getxattrs"
25199
25200 #. type: verbatim
25201 #: ../fish/guestfish-actions.pod:1494
25202 #, no-wrap
25203 msgid ""
25204 " getxattrs path\n"
25205 "\n"
25206 msgstr ""
25207 " getxattrs шлях\n"
25208 "\n"
25209
25210 #. type: textblock
25211 #: ../fish/guestfish-actions.pod:1502
25212 msgid "See also: L</lgetxattrs>, L<attr(5)>."
25213 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
25214
25215 #. type: =head2
25216 #: ../fish/guestfish-actions.pod:1504
25217 msgid "glob-expand"
25218 msgstr "glob-expand"
25219
25220 #. type: verbatim
25221 #: ../fish/guestfish-actions.pod:1506
25222 #, no-wrap
25223 msgid ""
25224 " glob-expand pattern\n"
25225 "\n"
25226 msgstr ""
25227 " glob-expand шаблон\n"
25228 "\n"
25229
25230 #. type: =head2
25231 #: ../fish/guestfish-actions.pod:1519
25232 msgid "grep"
25233 msgstr "grep"
25234
25235 #. type: verbatim
25236 #: ../fish/guestfish-actions.pod:1521
25237 #, no-wrap
25238 msgid ""
25239 " grep regex path\n"
25240 "\n"
25241 msgstr ""
25242 " grepi формальний_вираз шлях\n"
25243 "\n"
25244
25245 #. type: =head2
25246 #: ../fish/guestfish-actions.pod:1529
25247 msgid "grepi"
25248 msgstr "grepi"
25249
25250 #. type: verbatim
25251 #: ../fish/guestfish-actions.pod:1531
25252 #, no-wrap
25253 msgid ""
25254 " grepi regex path\n"
25255 "\n"
25256 msgstr ""
25257 " grepi формальний_вираз шлях\n"
25258 "\n"
25259
25260 #. type: =head2
25261 #: ../fish/guestfish-actions.pod:1539
25262 msgid "grub-install"
25263 msgstr "grub-install"
25264
25265 #. type: verbatim
25266 #: ../fish/guestfish-actions.pod:1541
25267 #, no-wrap
25268 msgid ""
25269 " grub-install root device\n"
25270 "\n"
25271 msgstr ""
25272 " grub-install кореневий пристрій\n"
25273 "\n"
25274
25275 #. type: =head2
25276 #: ../fish/guestfish-actions.pod:1557
25277 msgid "head"
25278 msgstr "head"
25279
25280 #. type: verbatim
25281 #: ../fish/guestfish-actions.pod:1559
25282 #, no-wrap
25283 msgid ""
25284 " head path\n"
25285 "\n"
25286 msgstr ""
25287 " head шлях\n"
25288 "\n"
25289
25290 #. type: =head2
25291 #: ../fish/guestfish-actions.pod:1567
25292 msgid "head-n"
25293 msgstr "head-n"
25294
25295 #. type: verbatim
25296 #: ../fish/guestfish-actions.pod:1569
25297 #, no-wrap
25298 msgid ""
25299 " head-n nrlines path\n"
25300 "\n"
25301 msgstr ""
25302
25303 #. type: =head2
25304 #: ../fish/guestfish-actions.pod:1582
25305 msgid "hexdump"
25306 msgstr "hexdump"
25307
25308 #. type: verbatim
25309 #: ../fish/guestfish-actions.pod:1584
25310 #, no-wrap
25311 msgid ""
25312 " hexdump path\n"
25313 "\n"
25314 msgstr ""
25315 " hexdump шлях\n"
25316 "\n"
25317
25318 #. type: =head2
25319 #: ../fish/guestfish-actions.pod:1592
25320 msgid "initrd-cat"
25321 msgstr "initrd-cat"
25322
25323 #. type: verbatim
25324 #: ../fish/guestfish-actions.pod:1594
25325 #, no-wrap
25326 msgid ""
25327 " initrd-cat initrdpath filename\n"
25328 "\n"
25329 msgstr ""
25330 " initrd-cat шлях_initrd назва_файла\n"
25331 "\n"
25332
25333 #. type: textblock
25334 #: ../fish/guestfish-actions.pod:1606
25335 msgid "See also L</initrd-list>."
25336 msgstr "Див. також L</initrd-list>."
25337
25338 #. type: =head2
25339 #: ../fish/guestfish-actions.pod:1611
25340 msgid "initrd-list"
25341 msgstr "initrd-list"
25342
25343 #. type: verbatim
25344 #: ../fish/guestfish-actions.pod:1613
25345 #, no-wrap
25346 msgid ""
25347 " initrd-list path\n"
25348 "\n"
25349 msgstr ""
25350 " initrd-list шлях\n"
25351 "\n"
25352
25353 #. type: =head2
25354 #: ../fish/guestfish-actions.pod:1625
25355 msgid "inotify-add-watch"
25356 msgstr "inotify-add-watch"
25357
25358 #. type: verbatim
25359 #: ../fish/guestfish-actions.pod:1627
25360 #, no-wrap
25361 msgid ""
25362 " inotify-add-watch path mask\n"
25363 "\n"
25364 msgstr ""
25365 " inotify-add-watch шлях маска\n"
25366 "\n"
25367
25368 #. type: =head2
25369 #: ../fish/guestfish-actions.pod:1639
25370 msgid "inotify-close"
25371 msgstr "inotify-close"
25372
25373 #. type: verbatim
25374 #: ../fish/guestfish-actions.pod:1641
25375 #, no-wrap
25376 msgid ""
25377 " inotify-close\n"
25378 "\n"
25379 msgstr ""
25380 " inotify-close\n"
25381 "\n"
25382
25383 #. type: =head2
25384 #: ../fish/guestfish-actions.pod:1647
25385 msgid "inotify-files"
25386 msgstr "inotify-files"
25387
25388 #. type: verbatim
25389 #: ../fish/guestfish-actions.pod:1649
25390 #, no-wrap
25391 msgid ""
25392 " inotify-files\n"
25393 "\n"
25394 msgstr ""
25395 " inotify-files\n"
25396 "\n"
25397
25398 #. type: textblock
25399 #: ../fish/guestfish-actions.pod:1651
25400 msgid ""
25401 "This function is a helpful wrapper around L</inotify-read> which just "
25402 "returns a list of pathnames of objects that were touched.  The returned "
25403 "pathnames are sorted and deduplicated."
25404 msgstr ""
25405
25406 #. type: =head2
25407 #: ../fish/guestfish-actions.pod:1655
25408 msgid "inotify-init"
25409 msgstr "inotify-init"
25410
25411 #. type: verbatim
25412 #: ../fish/guestfish-actions.pod:1657
25413 #, no-wrap
25414 msgid ""
25415 " inotify-init maxevents\n"
25416 "\n"
25417 msgstr ""
25418
25419 #. type: textblock
25420 #: ../fish/guestfish-actions.pod:1663
25421 msgid ""
25422 "C<maxevents> is the maximum number of events which will be queued up between"
25423 " calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>,"
25424 " then the kernel (or previously set)  default is used.  For Linux 2.6.29 the"
25425 " default was 16384 events.  Beyond this limit, the kernel throws away "
25426 "events, but records the fact that it threw them away by setting a flag "
25427 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
25428 msgstr ""
25429
25430 #. type: textblock
25431 #: ../fish/guestfish-actions.pod:1673
25432 msgid ""
25433 "Before any events are generated, you have to add some watches to the "
25434 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and L"
25435 "</inotify-watch-all>."
25436 msgstr ""
25437
25438 #. type: textblock
25439 #: ../fish/guestfish-actions.pod:1679
25440 msgid ""
25441 "Queued up events should be read periodically by calling L</inotify-read> (or"
25442 " L</inotify-files> which is just a helpful wrapper around L</inotify-read>)."
25443 "  If you don't read the events out often enough then you risk the internal "
25444 "queue overflowing."
25445 msgstr ""
25446
25447 #. type: textblock
25448 #: ../fish/guestfish-actions.pod:1686
25449 msgid ""
25450 "The handle should be closed after use by calling L</inotify-close>.  This "
25451 "also removes any watches automatically."
25452 msgstr ""
25453
25454 #. type: =head2
25455 #: ../fish/guestfish-actions.pod:1695
25456 msgid "inotify-read"
25457 msgstr "inotify-read"
25458
25459 #. type: verbatim
25460 #: ../fish/guestfish-actions.pod:1697
25461 #, no-wrap
25462 msgid ""
25463 " inotify-read\n"
25464 "\n"
25465 msgstr ""
25466 " inotify-read\n"
25467 "\n"
25468
25469 #. type: =head2
25470 #: ../fish/guestfish-actions.pod:1710
25471 msgid "inotify-rm-watch"
25472 msgstr "inotify-rm-watch"
25473
25474 #. type: verbatim
25475 #: ../fish/guestfish-actions.pod:1712
25476 #, no-wrap
25477 msgid ""
25478 " inotify-rm-watch wd\n"
25479 "\n"
25480 msgstr ""
25481
25482 #. type: textblock
25483 #: ../fish/guestfish-actions.pod:1714
25484 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
25485 msgstr ""
25486
25487 #. type: =head2
25488 #: ../fish/guestfish-actions.pod:1717
25489 msgid "inspect-get-arch"
25490 msgstr "inspect-get-arch"
25491
25492 #. type: verbatim
25493 #: ../fish/guestfish-actions.pod:1719
25494 #, no-wrap
25495 msgid ""
25496 " inspect-get-arch root\n"
25497 "\n"
25498 msgstr ""
25499 " inspect-get-arch корінь\n"
25500 "\n"
25501
25502 #. type: textblock
25503 #: ../fish/guestfish-actions.pod:1721
25504 msgid ""
25505 "This returns the architecture of the inspected operating system.  The "
25506 "possible return values are listed under L</file-architecture>."
25507 msgstr ""
25508
25509 #. type: =head2
25510 #: ../fish/guestfish-actions.pod:1730
25511 msgid "inspect-get-distro"
25512 msgstr "inspect-get-distro"
25513
25514 #. type: verbatim
25515 #: ../fish/guestfish-actions.pod:1732
25516 #, no-wrap
25517 msgid ""
25518 " inspect-get-distro root\n"
25519 "\n"
25520 msgstr ""
25521 " inspect-get-distro корінь\n"
25522 "\n"
25523
25524 #. type: =head2
25525 #: ../fish/guestfish-actions.pod:1813
25526 msgid "inspect-get-drive-mappings"
25527 msgstr ""
25528
25529 #. type: verbatim
25530 #: ../fish/guestfish-actions.pod:1815
25531 #, no-wrap
25532 msgid ""
25533 " inspect-get-drive-mappings root\n"
25534 "\n"
25535 msgstr ""
25536
25537 #. type: textblock
25538 #: ../fish/guestfish-actions.pod:1842
25539 msgid ""
25540 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
25541 "get-mountpoints>, L</inspect-get-filesystems>."
25542 msgstr ""
25543
25544 #. type: =head2
25545 #: ../fish/guestfish-actions.pod:1846
25546 msgid "inspect-get-filesystems"
25547 msgstr "inspect-get-filesystems"
25548
25549 #. type: verbatim
25550 #: ../fish/guestfish-actions.pod:1848
25551 #, no-wrap
25552 msgid ""
25553 " inspect-get-filesystems root\n"
25554 "\n"
25555 msgstr ""
25556 " inspect-get-filesystems корінь\n"
25557 "\n"
25558
25559 #. type: textblock
25560 #: ../fish/guestfish-actions.pod:1858
25561 msgid ""
25562 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
25563 "get-mountpoints>."
25564 msgstr ""
25565
25566 #. type: =head2
25567 #: ../fish/guestfish-actions.pod:1861
25568 msgid "inspect-get-format"
25569 msgstr "inspect-get-format"
25570
25571 #. type: verbatim
25572 #: ../fish/guestfish-actions.pod:1863
25573 #, no-wrap
25574 msgid ""
25575 " inspect-get-format root\n"
25576 "\n"
25577 msgstr ""
25578 " inspect-get-format корінь\n"
25579 "\n"
25580
25581 #. type: =head2
25582 #: ../fish/guestfish-actions.pod:1892
25583 msgid "inspect-get-hostname"
25584 msgstr "inspect-get-hostname"
25585
25586 #. type: verbatim
25587 #: ../fish/guestfish-actions.pod:1894
25588 #, no-wrap
25589 msgid ""
25590 " inspect-get-hostname root\n"
25591 "\n"
25592 msgstr ""
25593 " inspect-get-hostname корінь\n"
25594 "\n"
25595
25596 #. type: =head2
25597 #: ../fish/guestfish-actions.pod:1904
25598 msgid "inspect-get-icon"
25599 msgstr ""
25600
25601 #. type: verbatim
25602 #: ../fish/guestfish-actions.pod:1906
25603 #, no-wrap
25604 msgid ""
25605 " inspect-get-icon root [favicon:..] [highquality:..]\n"
25606 "\n"
25607 msgstr ""
25608
25609 #. type: =head2
25610 #: ../fish/guestfish-actions.pod:1970
25611 msgid "inspect-get-major-version"
25612 msgstr "inspect-get-major-version"
25613
25614 #. type: verbatim
25615 #: ../fish/guestfish-actions.pod:1972
25616 #, no-wrap
25617 msgid ""
25618 " inspect-get-major-version root\n"
25619 "\n"
25620 msgstr ""
25621 " inspect-get-major-version корінь\n"
25622 "\n"
25623
25624 #. type: =head2
25625 #: ../fish/guestfish-actions.pod:1988
25626 msgid "inspect-get-minor-version"
25627 msgstr "inspect-get-minor-version"
25628
25629 #. type: verbatim
25630 #: ../fish/guestfish-actions.pod:1990
25631 #, no-wrap
25632 msgid ""
25633 " inspect-get-minor-version root\n"
25634 "\n"
25635 msgstr ""
25636 " inspect-get-minor-version корінь\n"
25637 "\n"
25638
25639 #. type: textblock
25640 #: ../fish/guestfish-actions.pod:1997
25641 msgid ""
25642 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
25643 "get-major-version>."
25644 msgstr ""
25645
25646 #. type: =head2
25647 #: ../fish/guestfish-actions.pod:2000
25648 msgid "inspect-get-mountpoints"
25649 msgstr "inspect-get-mountpoints"
25650
25651 #. type: verbatim
25652 #: ../fish/guestfish-actions.pod:2002
25653 #, no-wrap
25654 msgid ""
25655 " inspect-get-mountpoints root\n"
25656 "\n"
25657 msgstr ""
25658 " inspect-get-mountpoints корінь\n"
25659 "\n"
25660
25661 #. type: textblock
25662 #: ../fish/guestfish-actions.pod:2021
25663 msgid ""
25664 "For operating systems like Windows which still use drive letters, this call "
25665 "will only return an entry for the first drive \"mounted on\" C</>.  For "
25666 "information about the mapping of drive letters to partitions, see L"
25667 "</inspect-get-drive-mappings>."
25668 msgstr ""
25669
25670 #. type: textblock
25671 #: ../fish/guestfish-actions.pod:2027
25672 msgid ""
25673 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
25674 "get-filesystems>."
25675 msgstr ""
25676
25677 #. type: =head2
25678 #: ../fish/guestfish-actions.pod:2030
25679 msgid "inspect-get-package-format"
25680 msgstr "inspect-get-package-format"
25681
25682 #. type: verbatim
25683 #: ../fish/guestfish-actions.pod:2032
25684 #, no-wrap
25685 msgid ""
25686 " inspect-get-package-format root\n"
25687 "\n"
25688 msgstr ""
25689 " inspect-get-package-format корінь\n"
25690 "\n"
25691
25692 #. type: textblock
25693 #: ../fish/guestfish-actions.pod:2034
25694 msgid ""
25695 "This function and L</inspect-get-package-management> return the package "
25696 "format and package management tool used by the inspected operating system.  "
25697 "For example for Fedora these functions would return C<rpm> (package format) "
25698 "and C<yum> (package management)."
25699 msgstr ""
25700
25701 #. type: =head2
25702 #: ../fish/guestfish-actions.pod:2049
25703 msgid "inspect-get-package-management"
25704 msgstr "inspect-get-package-management"
25705
25706 #. type: verbatim
25707 #: ../fish/guestfish-actions.pod:2051
25708 #, no-wrap
25709 msgid ""
25710 " inspect-get-package-management root\n"
25711 "\n"
25712 msgstr ""
25713 " inspect-get-package-management корінь\n"
25714 "\n"
25715
25716 #. type: textblock
25717 #: ../fish/guestfish-actions.pod:2053
25718 msgid ""
25719 "L</inspect-get-package-format> and this function return the package format "
25720 "and package management tool used by the inspected operating system.  For "
25721 "example for Fedora these functions would return C<rpm> (package format) and "
25722 "C<yum> (package management)."
25723 msgstr ""
25724
25725 #. type: =head2
25726 #: ../fish/guestfish-actions.pod:2070
25727 msgid "inspect-get-product-name"
25728 msgstr "inspect-get-product-name"
25729
25730 #. type: verbatim
25731 #: ../fish/guestfish-actions.pod:2072
25732 #, no-wrap
25733 msgid ""
25734 " inspect-get-product-name root\n"
25735 "\n"
25736 msgstr ""
25737 " inspect-get-product-name корінь\n"
25738 "\n"
25739
25740 #. type: =head2
25741 #: ../fish/guestfish-actions.pod:2084
25742 msgid "inspect-get-product-variant"
25743 msgstr ""
25744
25745 #. type: verbatim
25746 #: ../fish/guestfish-actions.pod:2086
25747 #, no-wrap
25748 msgid ""
25749 " inspect-get-product-variant root\n"
25750 "\n"
25751 msgstr ""
25752
25753 #. type: textblock
25754 #: ../fish/guestfish-actions.pod:2107
25755 msgid ""
25756 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
25757 "get-product-name>, L</inspect-get-major-version>."
25758 msgstr ""
25759
25760 #. type: =head2
25761 #: ../fish/guestfish-actions.pod:2111
25762 msgid "inspect-get-roots"
25763 msgstr "inspect-get-roots"
25764
25765 #. type: verbatim
25766 #: ../fish/guestfish-actions.pod:2113
25767 #, no-wrap
25768 msgid ""
25769 " inspect-get-roots\n"
25770 "\n"
25771 msgstr ""
25772 " inspect-get-roots\n"
25773 "\n"
25774
25775 #. type: textblock
25776 #: ../fish/guestfish-actions.pod:2115
25777 msgid ""
25778 "This function is a convenient way to get the list of root devices, as "
25779 "returned from a previous call to L</inspect-os>, but without redoing the "
25780 "whole inspection process."
25781 msgstr ""
25782
25783 #. type: textblock
25784 #: ../fish/guestfish-actions.pod:2119
25785 msgid ""
25786 "This returns an empty list if either no root devices were found or the "
25787 "caller has not called L</inspect-os>."
25788 msgstr ""
25789
25790 #. type: =head2
25791 #: ../fish/guestfish-actions.pod:2124
25792 msgid "inspect-get-type"
25793 msgstr "inspect-get-type"
25794
25795 #. type: verbatim
25796 #: ../fish/guestfish-actions.pod:2126
25797 #, no-wrap
25798 msgid ""
25799 " inspect-get-type root\n"
25800 "\n"
25801 msgstr ""
25802 " inspect-get-type корінь\n"
25803 "\n"
25804
25805 #. type: =head2
25806 #: ../fish/guestfish-actions.pod:2156
25807 msgid "inspect-get-windows-current-control-set"
25808 msgstr ""
25809
25810 #. type: verbatim
25811 #: ../fish/guestfish-actions.pod:2158
25812 #, no-wrap
25813 msgid ""
25814 " inspect-get-windows-current-control-set root\n"
25815 "\n"
25816 msgstr ""
25817
25818 #. type: =head2
25819 #: ../fish/guestfish-actions.pod:2169
25820 msgid "inspect-get-windows-systemroot"
25821 msgstr "inspect-get-windows-systemroot"
25822
25823 #. type: verbatim
25824 #: ../fish/guestfish-actions.pod:2171
25825 #, no-wrap
25826 msgid ""
25827 " inspect-get-windows-systemroot root\n"
25828 "\n"
25829 msgstr ""
25830 " inspect-get-windows-systemroot корінь\n"
25831 "\n"
25832
25833 #. type: =head2
25834 #: ../fish/guestfish-actions.pod:2182
25835 msgid "inspect-is-live"
25836 msgstr "inspect-is-live"
25837
25838 #. type: verbatim
25839 #: ../fish/guestfish-actions.pod:2184
25840 #, no-wrap
25841 msgid ""
25842 " inspect-is-live root\n"
25843 "\n"
25844 msgstr ""
25845 " inspect-is-live корінь\n"
25846 "\n"
25847
25848 #. type: textblock
25849 #: ../fish/guestfish-actions.pod:2186
25850 msgid ""
25851 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
25852 "then this returns true if a live image was detected on the disk."
25853 msgstr ""
25854
25855 #. type: =head2
25856 #: ../fish/guestfish-actions.pod:2192
25857 msgid "inspect-is-multipart"
25858 msgstr "inspect-is-multipart"
25859
25860 #. type: verbatim
25861 #: ../fish/guestfish-actions.pod:2194
25862 #, no-wrap
25863 msgid ""
25864 " inspect-is-multipart root\n"
25865 "\n"
25866 msgstr ""
25867 " inspect-is-multipart корінь\n"
25868 "\n"
25869
25870 #. type: textblock
25871 #: ../fish/guestfish-actions.pod:2196
25872 msgid ""
25873 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
25874 "then this returns true if the disk is part of a set."
25875 msgstr ""
25876
25877 #. type: =head2
25878 #: ../fish/guestfish-actions.pod:2202
25879 msgid "inspect-is-netinst"
25880 msgstr "inspect-is-netinst"
25881
25882 #. type: verbatim
25883 #: ../fish/guestfish-actions.pod:2204
25884 #, no-wrap
25885 msgid ""
25886 " inspect-is-netinst root\n"
25887 "\n"
25888 msgstr ""
25889 " inspect-is-netinst корінь\n"
25890 "\n"
25891
25892 #. type: textblock
25893 #: ../fish/guestfish-actions.pod:2206
25894 msgid ""
25895 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
25896 "then this returns true if the disk is a network installer, ie. not a self-"
25897 "contained install CD but one which is likely to require network access to "
25898 "complete the install."
25899 msgstr ""
25900
25901 #. type: =head2
25902 #: ../fish/guestfish-actions.pod:2214
25903 msgid "inspect-list-applications"
25904 msgstr "inspect-list-applications"
25905
25906 #. type: verbatim
25907 #: ../fish/guestfish-actions.pod:2216
25908 #, no-wrap
25909 msgid ""
25910 " inspect-list-applications root\n"
25911 "\n"
25912 msgstr ""
25913 " inspect-list-applications кореневий_каталог\n"
25914 "\n"
25915
25916 #. type: textblock
25917 #: ../fish/guestfish-actions.pod:2220
25918 msgid ""
25919 "I<Note:> This call works differently from other parts of the inspection API."
25920 "  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, then "
25921 "mount up the disks, before calling this.  Listing applications is a "
25922 "significantly more difficult operation which requires access to the full "
25923 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
25924 "are just returning data cached in the libguestfs handle, this call actually "
25925 "reads parts of the mounted filesystems during the call."
25926 msgstr ""
25927
25928 #. type: =head2
25929 #: ../fish/guestfish-actions.pod:2310
25930 msgid "inspect-os"
25931 msgstr "inspect-os"
25932
25933 #. type: verbatim
25934 #: ../fish/guestfish-actions.pod:2312
25935 #, no-wrap
25936 msgid ""
25937 " inspect-os\n"
25938 "\n"
25939 msgstr ""
25940 " inspect-os\n"
25941 "\n"
25942
25943 #. type: textblock
25944 #: ../fish/guestfish-actions.pod:2327
25945 msgid ""
25946 "You can pass the root string(s) returned to other L</inspect-get-*> "
25947 "functions in order to query further information about each operating system,"
25948 " such as the name and version."
25949 msgstr ""
25950
25951 #. type: textblock
25952 #: ../fish/guestfish-actions.pod:2332
25953 msgid ""
25954 "This function uses other libguestfs features such as L</mount-ro> and L"
25955 "</umount-all> in order to mount and unmount filesystems and look at the "
25956 "contents.  This should be called with no disks currently mounted.  The "
25957 "function may also use Augeas, so any existing Augeas handle will be closed."
25958 msgstr ""
25959
25960 #. type: textblock
25961 #: ../fish/guestfish-actions.pod:2344 ../fish/guestfish-actions.pod:2542
25962 #: ../fish/guestfish-actions.pod:2601
25963 msgid "See also L</list-filesystems>."
25964 msgstr "Див. також L</list-filesystems>."
25965
25966 #. type: =head2
25967 #: ../fish/guestfish-actions.pod:2346
25968 msgid "is-blockdev"
25969 msgstr "is-blockdev"
25970
25971 #. type: verbatim
25972 #: ../fish/guestfish-actions.pod:2348
25973 #, no-wrap
25974 msgid ""
25975 " is-blockdev path\n"
25976 "\n"
25977 msgstr ""
25978 " is-blockdev шлях\n"
25979 "\n"
25980
25981 #. type: textblock
25982 #: ../fish/guestfish-actions.pod:2353 ../fish/guestfish-actions.pod:2371
25983 #: ../fish/guestfish-actions.pod:2390 ../fish/guestfish-actions.pod:2399
25984 #: ../fish/guestfish-actions.pod:2409 ../fish/guestfish-actions.pod:2443
25985 #: ../fish/guestfish-actions.pod:2452
25986 msgid "See also L</stat>."
25987 msgstr "Див. також L</stat>."
25988
25989 #. type: =head2
25990 #: ../fish/guestfish-actions.pod:2355
25991 msgid "is-busy"
25992 msgstr "is-busy"
25993
25994 #. type: verbatim
25995 #: ../fish/guestfish-actions.pod:2357
25996 #, no-wrap
25997 msgid ""
25998 " is-busy\n"
25999 "\n"
26000 msgstr ""
26001 " is-busy\n"
26002 "\n"
26003
26004 #. type: =head2
26005 #: ../fish/guestfish-actions.pod:2364
26006 msgid "is-chardev"
26007 msgstr "is-chardev"
26008
26009 #. type: verbatim
26010 #: ../fish/guestfish-actions.pod:2366
26011 #, no-wrap
26012 msgid ""
26013 " is-chardev path\n"
26014 "\n"
26015 msgstr ""
26016 " is-chardev шлях\n"
26017 "\n"
26018
26019 #. type: =head2
26020 #: ../fish/guestfish-actions.pod:2373
26021 msgid "is-config"
26022 msgstr "is-config"
26023
26024 #. type: verbatim
26025 #: ../fish/guestfish-actions.pod:2375
26026 #, no-wrap
26027 msgid ""
26028 " is-config\n"
26029 "\n"
26030 msgstr ""
26031 " is-config\n"
26032 "\n"
26033
26034 #. type: =head2
26035 #: ../fish/guestfish-actions.pod:2382
26036 msgid "is-dir"
26037 msgstr "is-dir"
26038
26039 #. type: verbatim
26040 #: ../fish/guestfish-actions.pod:2384
26041 #, no-wrap
26042 msgid ""
26043 " is-dir path\n"
26044 "\n"
26045 msgstr ""
26046 " is-dir шлях\n"
26047 "\n"
26048
26049 #. type: =head2
26050 #: ../fish/guestfish-actions.pod:2392
26051 msgid "is-fifo"
26052 msgstr "is-fifo"
26053
26054 #. type: verbatim
26055 #: ../fish/guestfish-actions.pod:2394
26056 #, no-wrap
26057 msgid ""
26058 " is-fifo path\n"
26059 "\n"
26060 msgstr ""
26061 " is-fifo шлях\n"
26062 "\n"
26063
26064 #. type: =head2
26065 #: ../fish/guestfish-actions.pod:2401
26066 msgid "is-file"
26067 msgstr "is-file"
26068
26069 #. type: verbatim
26070 #: ../fish/guestfish-actions.pod:2403
26071 #, no-wrap
26072 msgid ""
26073 " is-file path\n"
26074 "\n"
26075 msgstr ""
26076 " is-file шлях\n"
26077 "\n"
26078
26079 #. type: =head2
26080 #: ../fish/guestfish-actions.pod:2411
26081 msgid "is-launching"
26082 msgstr "is-launching"
26083
26084 #. type: verbatim
26085 #: ../fish/guestfish-actions.pod:2413
26086 #, no-wrap
26087 msgid ""
26088 " is-launching\n"
26089 "\n"
26090 msgstr ""
26091 " is-launching\n"
26092 "\n"
26093
26094 #. type: =head2
26095 #: ../fish/guestfish-actions.pod:2420
26096 msgid "is-lv"
26097 msgstr "is-lv"
26098
26099 #. type: verbatim
26100 #: ../fish/guestfish-actions.pod:2422
26101 #, no-wrap
26102 msgid ""
26103 " is-lv device\n"
26104 "\n"
26105 msgstr ""
26106 " is-lv пристрій\n"
26107 "\n"
26108
26109 #. type: =head2
26110 #: ../fish/guestfish-actions.pod:2427
26111 msgid "is-ready"
26112 msgstr "is-ready"
26113
26114 #. type: verbatim
26115 #: ../fish/guestfish-actions.pod:2429
26116 #, no-wrap
26117 msgid ""
26118 " is-ready\n"
26119 "\n"
26120 msgstr ""
26121 " is-ready\n"
26122 "\n"
26123
26124 #. type: =head2
26125 #: ../fish/guestfish-actions.pod:2436
26126 msgid "is-socket"
26127 msgstr "is-socket"
26128
26129 #. type: verbatim
26130 #: ../fish/guestfish-actions.pod:2438
26131 #, no-wrap
26132 msgid ""
26133 " is-socket path\n"
26134 "\n"
26135 msgstr ""
26136 " is-socket шлях\n"
26137 "\n"
26138
26139 #. type: =head2
26140 #: ../fish/guestfish-actions.pod:2445
26141 msgid "is-symlink"
26142 msgstr "is-symlink"
26143
26144 #. type: verbatim
26145 #: ../fish/guestfish-actions.pod:2447
26146 #, no-wrap
26147 msgid ""
26148 " is-symlink path\n"
26149 "\n"
26150 msgstr ""
26151 " is-symlink шлях\n"
26152 "\n"
26153
26154 #. type: =head2
26155 #: ../fish/guestfish-actions.pod:2454
26156 msgid "is-zero"
26157 msgstr ""
26158
26159 #. type: verbatim
26160 #: ../fish/guestfish-actions.pod:2456
26161 #, no-wrap
26162 msgid ""
26163 " is-zero path\n"
26164 "\n"
26165 msgstr ""
26166
26167 #. type: =head2
26168 #: ../fish/guestfish-actions.pod:2461
26169 msgid "is-zero-device"
26170 msgstr ""
26171
26172 #. type: verbatim
26173 #: ../fish/guestfish-actions.pod:2463
26174 #, no-wrap
26175 msgid ""
26176 " is-zero-device device\n"
26177 "\n"
26178 msgstr ""
26179
26180 #. type: =head2
26181 #: ../fish/guestfish-actions.pod:2469
26182 msgid "kill-subprocess"
26183 msgstr "kill-subprocess"
26184
26185 #. type: verbatim
26186 #: ../fish/guestfish-actions.pod:2471
26187 #, no-wrap
26188 msgid ""
26189 " kill-subprocess\n"
26190 "\n"
26191 msgstr ""
26192 " kill-subprocess\n"
26193 "\n"
26194
26195 #. type: =head2
26196 #: ../fish/guestfish-actions.pod:2475
26197 msgid "launch"
26198 msgstr "launch"
26199
26200 #. type: =head2
26201 #: ../fish/guestfish-actions.pod:2477
26202 msgid "run"
26203 msgstr ""
26204
26205 #. type: verbatim
26206 #: ../fish/guestfish-actions.pod:2479
26207 #, no-wrap
26208 msgid ""
26209 " launch\n"
26210 "\n"
26211 msgstr ""
26212 " launch\n"
26213 "\n"
26214
26215 #. type: =head2
26216 #: ../fish/guestfish-actions.pod:2487
26217 msgid "lchown"
26218 msgstr "lchown"
26219
26220 #. type: verbatim
26221 #: ../fish/guestfish-actions.pod:2489
26222 #, no-wrap
26223 msgid ""
26224 " lchown owner group path\n"
26225 "\n"
26226 msgstr ""
26227 " lchown власник група шлях\n"
26228 "\n"
26229
26230 #. type: textblock
26231 #: ../fish/guestfish-actions.pod:2491
26232 msgid ""
26233 "Change the file owner to C<owner> and group to C<group>.  This is like "
26234 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
26235 "the target."
26236 msgstr ""
26237
26238 #. type: =head2
26239 #: ../fish/guestfish-actions.pod:2499
26240 msgid "lgetxattr"
26241 msgstr "lgetxattr"
26242
26243 #. type: verbatim
26244 #: ../fish/guestfish-actions.pod:2501
26245 #, no-wrap
26246 msgid ""
26247 " lgetxattr path name\n"
26248 "\n"
26249 msgstr ""
26250 " lgetxattr шлях назва\n"
26251 "\n"
26252
26253 #. type: textblock
26254 #: ../fish/guestfish-actions.pod:2517
26255 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
26256 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
26257
26258 #. type: =head2
26259 #: ../fish/guestfish-actions.pod:2519
26260 msgid "lgetxattrs"
26261 msgstr "lgetxattrs"
26262
26263 #. type: verbatim
26264 #: ../fish/guestfish-actions.pod:2521
26265 #, no-wrap
26266 msgid ""
26267 " lgetxattrs path\n"
26268 "\n"
26269 msgstr ""
26270 " lgetxattrs шлях\n"
26271 "\n"
26272
26273 #. type: textblock
26274 #: ../fish/guestfish-actions.pod:2523
26275 msgid ""
26276 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
26277 "it returns the extended attributes of the link itself."
26278 msgstr ""
26279
26280 #. type: =head2
26281 #: ../fish/guestfish-actions.pod:2527
26282 msgid "list-9p"
26283 msgstr ""
26284
26285 #. type: verbatim
26286 #: ../fish/guestfish-actions.pod:2529
26287 #, no-wrap
26288 msgid ""
26289 " list-9p\n"
26290 "\n"
26291 msgstr ""
26292
26293 #. type: =head2
26294 #: ../fish/guestfish-actions.pod:2534
26295 msgid "list-devices"
26296 msgstr "list-devices"
26297
26298 #. type: verbatim
26299 #: ../fish/guestfish-actions.pod:2536
26300 #, no-wrap
26301 msgid ""
26302 " list-devices\n"
26303 "\n"
26304 msgstr ""
26305 " list-devices\n"
26306 "\n"
26307
26308 #. type: =head2
26309 #: ../fish/guestfish-actions.pod:2544
26310 msgid "list-dm-devices"
26311 msgstr ""
26312
26313 #. type: verbatim
26314 #: ../fish/guestfish-actions.pod:2546
26315 #, no-wrap
26316 msgid ""
26317 " list-dm-devices\n"
26318 "\n"
26319 msgstr ""
26320
26321 #. type: textblock
26322 #: ../fish/guestfish-actions.pod:2550
26323 msgid ""
26324 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
26325 "previous call to L</luks-open>."
26326 msgstr ""
26327
26328 #. type: textblock
26329 #: ../fish/guestfish-actions.pod:2553
26330 msgid ""
26331 "Device mapper devices which correspond to logical volumes are I<not> "
26332 "returned in this list.  Call L</lvs> if you want to list logical volumes."
26333 msgstr ""
26334
26335 #. type: =head2
26336 #: ../fish/guestfish-actions.pod:2557
26337 msgid "list-filesystems"
26338 msgstr "list-filesystems"
26339
26340 #. type: verbatim
26341 #: ../fish/guestfish-actions.pod:2559
26342 #, no-wrap
26343 msgid ""
26344 " list-filesystems\n"
26345 "\n"
26346 msgstr ""
26347 " list-filesystems\n"
26348 "\n"
26349
26350 #. type: textblock
26351 #: ../fish/guestfish-actions.pod:2578
26352 msgid ""
26353 "This command runs other libguestfs commands, which might include L</mount> "
26354 "and L</umount>, and therefore you should use this soon after launch and only"
26355 " when nothing is mounted."
26356 msgstr ""
26357
26358 #. type: textblock
26359 #: ../fish/guestfish-actions.pod:2582
26360 msgid ""
26361 "Not all of the filesystems returned will be mountable.  In particular, swap "
26362 "partitions are returned in the list.  Also this command does not check that "
26363 "each filesystem found is valid and mountable, and some filesystems might be "
26364 "mountable but require special options.  Filesystems may not all belong to a "
26365 "single logical operating system (use L</inspect-os> to look for OSes)."
26366 msgstr ""
26367
26368 #. type: =head2
26369 #: ../fish/guestfish-actions.pod:2590
26370 msgid "list-partitions"
26371 msgstr "list-partitions"
26372
26373 #. type: verbatim
26374 #: ../fish/guestfish-actions.pod:2592
26375 #, no-wrap
26376 msgid ""
26377 " list-partitions\n"
26378 "\n"
26379 msgstr ""
26380 " list-partitions\n"
26381 "\n"
26382
26383 #. type: textblock
26384 #: ../fish/guestfish-actions.pod:2598
26385 msgid ""
26386 "This does not return logical volumes.  For that you will need to call "
26387 "L</lvs>."
26388 msgstr ""
26389
26390 #. type: =head2
26391 #: ../fish/guestfish-actions.pod:2603
26392 msgid "ll"
26393 msgstr "ll"
26394
26395 #. type: verbatim
26396 #: ../fish/guestfish-actions.pod:2605
26397 #, no-wrap
26398 msgid ""
26399 " ll directory\n"
26400 "\n"
26401 msgstr ""
26402 " ll каталог\n"
26403 "\n"
26404
26405 #. type: =head2
26406 #: ../fish/guestfish-actions.pod:2613
26407 msgid "ln"
26408 msgstr "ln"
26409
26410 #. type: verbatim
26411 #: ../fish/guestfish-actions.pod:2615
26412 #, no-wrap
26413 msgid ""
26414 " ln target linkname\n"
26415 "\n"
26416 msgstr ""
26417 " ln призначення назва_посилання\n"
26418 "\n"
26419
26420 #. type: =head2
26421 #: ../fish/guestfish-actions.pod:2619
26422 msgid "ln-f"
26423 msgstr "ln-f"
26424
26425 #. type: verbatim
26426 #: ../fish/guestfish-actions.pod:2621
26427 #, no-wrap
26428 msgid ""
26429 " ln-f target linkname\n"
26430 "\n"
26431 msgstr ""
26432 " ln-f призначення назва_посилання\n"
26433 "\n"
26434
26435 #. type: =head2
26436 #: ../fish/guestfish-actions.pod:2626
26437 msgid "ln-s"
26438 msgstr "ln-s"
26439
26440 #. type: verbatim
26441 #: ../fish/guestfish-actions.pod:2628
26442 #, no-wrap
26443 msgid ""
26444 " ln-s target linkname\n"
26445 "\n"
26446 msgstr ""
26447 " ln-s призначення назва_посилання\n"
26448 "\n"
26449
26450 #. type: =head2
26451 #: ../fish/guestfish-actions.pod:2632
26452 msgid "ln-sf"
26453 msgstr "ln-sf"
26454
26455 #. type: verbatim
26456 #: ../fish/guestfish-actions.pod:2634
26457 #, no-wrap
26458 msgid ""
26459 " ln-sf target linkname\n"
26460 "\n"
26461 msgstr ""
26462 " ln-sf призначення назва_посилання\n"
26463 "\n"
26464
26465 #. type: =head2
26466 #: ../fish/guestfish-actions.pod:2639
26467 msgid "lremovexattr"
26468 msgstr "lremovexattr"
26469
26470 #. type: verbatim
26471 #: ../fish/guestfish-actions.pod:2641
26472 #, no-wrap
26473 msgid ""
26474 " lremovexattr xattr path\n"
26475 "\n"
26476 msgstr ""
26477
26478 #. type: textblock
26479 #: ../fish/guestfish-actions.pod:2643
26480 msgid ""
26481 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then"
26482 " it removes an extended attribute of the link itself."
26483 msgstr ""
26484
26485 #. type: =head2
26486 #: ../fish/guestfish-actions.pod:2647
26487 msgid "ls"
26488 msgstr "ls"
26489
26490 #. type: verbatim
26491 #: ../fish/guestfish-actions.pod:2649
26492 #, no-wrap
26493 msgid ""
26494 " ls directory\n"
26495 "\n"
26496 msgstr ""
26497 " ls каталог\n"
26498 "\n"
26499
26500 #. type: textblock
26501 #: ../fish/guestfish-actions.pod:2655
26502 msgid ""
26503 "This command is mostly useful for interactive sessions.  Programs should "
26504 "probably use L</readdir> instead."
26505 msgstr ""
26506
26507 #. type: =head2
26508 #: ../fish/guestfish-actions.pod:2658
26509 msgid "lsetxattr"
26510 msgstr "lsetxattr"
26511
26512 #. type: verbatim
26513 #: ../fish/guestfish-actions.pod:2660
26514 #, no-wrap
26515 msgid ""
26516 " lsetxattr xattr val vallen path\n"
26517 "\n"
26518 msgstr ""
26519
26520 #. type: textblock
26521 #: ../fish/guestfish-actions.pod:2662
26522 msgid ""
26523 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it"
26524 " sets an extended attribute of the link itself."
26525 msgstr ""
26526
26527 #. type: =head2
26528 #: ../fish/guestfish-actions.pod:2666
26529 msgid "lstat"
26530 msgstr "lstat"
26531
26532 #. type: verbatim
26533 #: ../fish/guestfish-actions.pod:2668
26534 #, no-wrap
26535 msgid ""
26536 " lstat path\n"
26537 "\n"
26538 msgstr ""
26539 " lstat шлях\n"
26540 "\n"
26541
26542 #. type: textblock
26543 #: ../fish/guestfish-actions.pod:2672
26544 msgid ""
26545 "This is the same as L</stat> except that if C<path> is a symbolic link, then"
26546 " the link is stat-ed, not the file it refers to."
26547 msgstr ""
26548
26549 #. type: =head2
26550 #: ../fish/guestfish-actions.pod:2678
26551 msgid "lstatlist"
26552 msgstr "lstatlist"
26553
26554 #. type: verbatim
26555 #: ../fish/guestfish-actions.pod:2680
26556 #, no-wrap
26557 msgid ""
26558 " lstatlist path 'names ...'\n"
26559 "\n"
26560 msgstr ""
26561
26562 #. type: textblock
26563 #: ../fish/guestfish-actions.pod:2682
26564 msgid ""
26565 "This call allows you to perform the L</lstat> operation on multiple files, "
26566 "where all files are in the directory C<path>.  C<names> is the list of files"
26567 " from this directory."
26568 msgstr ""
26569
26570 #. type: textblock
26571 #: ../fish/guestfish-actions.pod:2691
26572 msgid ""
26573 "This call is intended for programs that want to efficiently list a directory"
26574 " contents without making many round-trips.  See also L</lxattrlist> for a "
26575 "similarly efficient call for getting extended attributes.  Very long "
26576 "directory listings might cause the protocol message size to be exceeded, "
26577 "causing this call to fail.  The caller must split up such requests into "
26578 "smaller groups of names."
26579 msgstr ""
26580
26581 #. type: =head2
26582 #: ../fish/guestfish-actions.pod:2699
26583 msgid "luks-add-key"
26584 msgstr "luks-add-key"
26585
26586 #. type: verbatim
26587 #: ../fish/guestfish-actions.pod:2701
26588 #, no-wrap
26589 msgid ""
26590 " luks-add-key device keyslot\n"
26591 "\n"
26592 msgstr ""
26593
26594 #. type: textblock
26595 #: ../fish/guestfish-actions.pod:2708
26596 msgid ""
26597 "Note that if C<keyslot> already contains a key, then this command will fail."
26598 "  You have to use L</luks-kill-slot> first to remove that key."
26599 msgstr ""
26600
26601 #. type: textblock
26602 #: ../fish/guestfish-actions.pod:2712 ../fish/guestfish-actions.pod:2734
26603 #: ../fish/guestfish-actions.pod:2747 ../fish/guestfish-actions.pod:2761
26604 #: ../fish/guestfish-actions.pod:2787 ../fish/guestfish-actions.pod:2797
26605 msgid ""
26606 "This command has one or more key or passphrase parameters.  Guestfish will "
26607 "prompt for these separately."
26608 msgstr ""
26609
26610 #. type: =head2
26611 #: ../fish/guestfish-actions.pod:2715
26612 msgid "luks-close"
26613 msgstr "luks-close"
26614
26615 #. type: verbatim
26616 #: ../fish/guestfish-actions.pod:2717
26617 #, no-wrap
26618 msgid ""
26619 " luks-close device\n"
26620 "\n"
26621 msgstr ""
26622 " luks-close пристрій\n"
26623 "\n"
26624
26625 #. type: textblock
26626 #: ../fish/guestfish-actions.pod:2719
26627 msgid ""
26628 "This closes a LUKS device that was created earlier by L</luks-open> or L"
26629 "</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
26630 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
26631 "underlying block device."
26632 msgstr ""
26633
26634 #. type: =head2
26635 #: ../fish/guestfish-actions.pod:2725
26636 msgid "luks-format"
26637 msgstr "luks-format"
26638
26639 #. type: verbatim
26640 #: ../fish/guestfish-actions.pod:2727
26641 #, no-wrap
26642 msgid ""
26643 " luks-format device keyslot\n"
26644 "\n"
26645 msgstr ""
26646
26647 #. type: =head2
26648 #: ../fish/guestfish-actions.pod:2740
26649 msgid "luks-format-cipher"
26650 msgstr "luks-format-cipher"
26651
26652 #. type: verbatim
26653 #: ../fish/guestfish-actions.pod:2742
26654 #, no-wrap
26655 msgid ""
26656 " luks-format-cipher device keyslot cipher\n"
26657 "\n"
26658 msgstr ""
26659
26660 #. type: textblock
26661 #: ../fish/guestfish-actions.pod:2744
26662 msgid ""
26663 "This command is the same as L</luks-format> but it also allows you to set "
26664 "the C<cipher> used."
26665 msgstr ""
26666
26667 #. type: =head2
26668 #: ../fish/guestfish-actions.pod:2753
26669 msgid "luks-kill-slot"
26670 msgstr "luks-kill-slot"
26671
26672 #. type: verbatim
26673 #: ../fish/guestfish-actions.pod:2755
26674 #, no-wrap
26675 msgid ""
26676 " luks-kill-slot device keyslot\n"
26677 "\n"
26678 msgstr ""
26679
26680 #. type: =head2
26681 #: ../fish/guestfish-actions.pod:2764
26682 msgid "luks-open"
26683 msgstr "luks-open"
26684
26685 #. type: verbatim
26686 #: ../fish/guestfish-actions.pod:2766
26687 #, no-wrap
26688 msgid ""
26689 " luks-open device mapname\n"
26690 "\n"
26691 msgstr ""
26692
26693 #. type: textblock
26694 #: ../fish/guestfish-actions.pod:2780
26695 msgid ""
26696 "If this block device contains LVM volume groups, then calling L</vgscan> "
26697 "followed by L</vg-activate-all> will make them visible."
26698 msgstr ""
26699
26700 #. type: textblock
26701 #: ../fish/guestfish-actions.pod:2784
26702 msgid "Use L</list-dm-devices> to list all device mapper devices."
26703 msgstr ""
26704
26705 #. type: =head2
26706 #: ../fish/guestfish-actions.pod:2790
26707 msgid "luks-open-ro"
26708 msgstr "luks-open-ro"
26709
26710 #. type: verbatim
26711 #: ../fish/guestfish-actions.pod:2792
26712 #, no-wrap
26713 msgid ""
26714 " luks-open-ro device mapname\n"
26715 "\n"
26716 msgstr ""
26717
26718 #. type: textblock
26719 #: ../fish/guestfish-actions.pod:2794
26720 msgid ""
26721 "This is the same as L</luks-open> except that a read-only mapping is "
26722 "created."
26723 msgstr ""
26724
26725 #. type: =head2
26726 #: ../fish/guestfish-actions.pod:2800
26727 msgid "lvcreate"
26728 msgstr "lvcreate"
26729
26730 #. type: verbatim
26731 #: ../fish/guestfish-actions.pod:2802
26732 #, no-wrap
26733 msgid ""
26734 " lvcreate logvol volgroup mbytes\n"
26735 "\n"
26736 msgstr ""
26737
26738 #. type: =head2
26739 #: ../fish/guestfish-actions.pod:2807
26740 msgid "lvm-canonical-lv-name"
26741 msgstr "lvm-canonical-lv-name"
26742
26743 #. type: verbatim
26744 #: ../fish/guestfish-actions.pod:2809
26745 #, no-wrap
26746 msgid ""
26747 " lvm-canonical-lv-name lvname\n"
26748 "\n"
26749 msgstr ""
26750
26751 #. type: textblock
26752 #: ../fish/guestfish-actions.pod:2818
26753 msgid "See also L</is-lv>."
26754 msgstr "Див. також L</is-lv>."
26755
26756 #. type: =head2
26757 #: ../fish/guestfish-actions.pod:2820
26758 msgid "lvm-clear-filter"
26759 msgstr "lvm-clear-filter"
26760
26761 #. type: verbatim
26762 #: ../fish/guestfish-actions.pod:2822
26763 #, no-wrap
26764 msgid ""
26765 " lvm-clear-filter\n"
26766 "\n"
26767 msgstr ""
26768 " lvm-clear-filter\n"
26769 "\n"
26770
26771 #. type: textblock
26772 #: ../fish/guestfish-actions.pod:2824
26773 msgid ""
26774 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every"
26775 " block device."
26776 msgstr ""
26777
26778 #. type: =head2
26779 #: ../fish/guestfish-actions.pod:2830
26780 msgid "lvm-remove-all"
26781 msgstr "lvm-remove-all"
26782
26783 #. type: verbatim
26784 #: ../fish/guestfish-actions.pod:2832
26785 #, no-wrap
26786 msgid ""
26787 " lvm-remove-all\n"
26788 "\n"
26789 msgstr ""
26790 " lvm-remove-all\n"
26791 "\n"
26792
26793 #. type: =head2
26794 #: ../fish/guestfish-actions.pod:2840
26795 msgid "lvm-set-filter"
26796 msgstr "lvm-set-filter"
26797
26798 #. type: verbatim
26799 #: ../fish/guestfish-actions.pod:2842
26800 #, no-wrap
26801 msgid ""
26802 " lvm-set-filter 'devices ...'\n"
26803 "\n"
26804 msgstr ""
26805 " lvm-set-filter 'пристрої...'\n"
26806 "\n"
26807
26808 #. type: =head2
26809 #: ../fish/guestfish-actions.pod:2867
26810 msgid "lvremove"
26811 msgstr "lvremove"
26812
26813 #. type: verbatim
26814 #: ../fish/guestfish-actions.pod:2869
26815 #, no-wrap
26816 msgid ""
26817 " lvremove device\n"
26818 "\n"
26819 msgstr ""
26820 " lvremove пристрій\n"
26821 "\n"
26822
26823 #. type: =head2
26824 #: ../fish/guestfish-actions.pod:2877
26825 msgid "lvrename"
26826 msgstr "lvrename"
26827
26828 #. type: verbatim
26829 #: ../fish/guestfish-actions.pod:2879
26830 #, no-wrap
26831 msgid ""
26832 " lvrename logvol newlogvol\n"
26833 "\n"
26834 msgstr ""
26835
26836 #. type: =head2
26837 #: ../fish/guestfish-actions.pod:2883
26838 msgid "lvresize"
26839 msgstr "lvresize"
26840
26841 #. type: verbatim
26842 #: ../fish/guestfish-actions.pod:2885
26843 #, no-wrap
26844 msgid ""
26845 " lvresize device mbytes\n"
26846 "\n"
26847 msgstr ""
26848
26849 #. type: =head2
26850 #: ../fish/guestfish-actions.pod:2891
26851 msgid "lvresize-free"
26852 msgstr "lvresize-free"
26853
26854 #. type: verbatim
26855 #: ../fish/guestfish-actions.pod:2893
26856 #, no-wrap
26857 msgid ""
26858 " lvresize-free lv percent\n"
26859 "\n"
26860 msgstr ""
26861
26862 #. type: =head2
26863 #: ../fish/guestfish-actions.pod:2901
26864 msgid "lvs"
26865 msgstr "lvs"
26866
26867 #. type: verbatim
26868 #: ../fish/guestfish-actions.pod:2903
26869 #, no-wrap
26870 msgid ""
26871 " lvs\n"
26872 "\n"
26873 msgstr ""
26874 " lvs\n"
26875 "\n"
26876
26877 #. type: textblock
26878 #: ../fish/guestfish-actions.pod:2911
26879 msgid "See also L</lvs-full>, L</list-filesystems>."
26880 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
26881
26882 #. type: =head2
26883 #: ../fish/guestfish-actions.pod:2913
26884 msgid "lvs-full"
26885 msgstr "lvs-full"
26886
26887 #. type: verbatim
26888 #: ../fish/guestfish-actions.pod:2915
26889 #, no-wrap
26890 msgid ""
26891 " lvs-full\n"
26892 "\n"
26893 msgstr ""
26894 " lvs-full\n"
26895 "\n"
26896
26897 #. type: =head2
26898 #: ../fish/guestfish-actions.pod:2920
26899 msgid "lvuuid"
26900 msgstr "lvuuid"
26901
26902 #. type: verbatim
26903 #: ../fish/guestfish-actions.pod:2922
26904 #, no-wrap
26905 msgid ""
26906 " lvuuid device\n"
26907 "\n"
26908 msgstr ""
26909 " lvuuid пристрій\n"
26910 "\n"
26911
26912 #. type: =head2
26913 #: ../fish/guestfish-actions.pod:2926
26914 msgid "lxattrlist"
26915 msgstr "lxattrlist"
26916
26917 #. type: verbatim
26918 #: ../fish/guestfish-actions.pod:2928
26919 #, no-wrap
26920 msgid ""
26921 " lxattrlist path 'names ...'\n"
26922 "\n"
26923 msgstr ""
26924
26925 #. type: textblock
26926 #: ../fish/guestfish-actions.pod:2944
26927 msgid ""
26928 "This call is intended for programs that want to efficiently list a directory"
26929 " contents without making many round-trips.  See also L</lstatlist> for a "
26930 "similarly efficient call for getting standard stats.  Very long directory "
26931 "listings might cause the protocol message size to be exceeded, causing this "
26932 "call to fail.  The caller must split up such requests into smaller groups of"
26933 " names."
26934 msgstr ""
26935
26936 #. type: =head2
26937 #: ../fish/guestfish-actions.pod:2952
26938 msgid "mkdir"
26939 msgstr "mkdir"
26940
26941 #. type: verbatim
26942 #: ../fish/guestfish-actions.pod:2954
26943 #, no-wrap
26944 msgid ""
26945 " mkdir path\n"
26946 "\n"
26947 msgstr ""
26948 " mkdir шлях\n"
26949 "\n"
26950
26951 #. type: =head2
26952 #: ../fish/guestfish-actions.pod:2958
26953 msgid "mkdir-mode"
26954 msgstr "mkdir-mode"
26955
26956 #. type: verbatim
26957 #: ../fish/guestfish-actions.pod:2960
26958 #, no-wrap
26959 msgid ""
26960 " mkdir-mode path mode\n"
26961 "\n"
26962 msgstr ""
26963 " mkdir-mode шлях режим\n"
26964 "\n"
26965
26966 #. type: textblock
26967 #: ../fish/guestfish-actions.pod:2969
26968 msgid "See also L</mkdir>, L</umask>"
26969 msgstr "Див. також L</mkdir>, L</umask>"
26970
26971 #. type: =head2
26972 #: ../fish/guestfish-actions.pod:2971
26973 msgid "mkdir-p"
26974 msgstr "mkdir-p"
26975
26976 #. type: verbatim
26977 #: ../fish/guestfish-actions.pod:2973
26978 #, no-wrap
26979 msgid ""
26980 " mkdir-p path\n"
26981 "\n"
26982 msgstr ""
26983 " mkdir-p шлях\n"
26984 "\n"
26985
26986 #. type: =head2
26987 #: ../fish/guestfish-actions.pod:2978
26988 msgid "mkdtemp"
26989 msgstr "mkdtemp"
26990
26991 #. type: verbatim
26992 #: ../fish/guestfish-actions.pod:2980
26993 #, no-wrap
26994 msgid ""
26995 " mkdtemp template\n"
26996 "\n"
26997 msgstr ""
26998 " mkdtemp шаблон\n"
26999 "\n"
27000
27001 #. type: =head2
27002 #: ../fish/guestfish-actions.pod:3001
27003 msgid "mke2fs-J"
27004 msgstr "mke2fs-J"
27005
27006 #. type: verbatim
27007 #: ../fish/guestfish-actions.pod:3003
27008 #, no-wrap
27009 msgid ""
27010 " mke2fs-J fstype blocksize device journal\n"
27011 "\n"
27012 msgstr ""
27013
27014 #. type: textblock
27015 #: ../fish/guestfish-actions.pod:3011
27016 msgid "See also L</mke2journal>."
27017 msgstr "Див. також L</mke2journal>."
27018
27019 #. type: =head2
27020 #: ../fish/guestfish-actions.pod:3013
27021 msgid "mke2fs-JL"
27022 msgstr "mke2fs-JL"
27023
27024 #. type: verbatim
27025 #: ../fish/guestfish-actions.pod:3015
27026 #, no-wrap
27027 msgid ""
27028 " mke2fs-JL fstype blocksize device label\n"
27029 "\n"
27030 msgstr ""
27031
27032 #. type: textblock
27033 #: ../fish/guestfish-actions.pod:3020
27034 msgid "See also L</mke2journal-L>."
27035 msgstr "Див. також L</mke2journal-L>."
27036
27037 #. type: =head2
27038 #: ../fish/guestfish-actions.pod:3022
27039 msgid "mke2fs-JU"
27040 msgstr "mke2fs-JU"
27041
27042 #. type: verbatim
27043 #: ../fish/guestfish-actions.pod:3024
27044 #, no-wrap
27045 msgid ""
27046 " mke2fs-JU fstype blocksize device uuid\n"
27047 "\n"
27048 msgstr ""
27049
27050 #. type: textblock
27051 #: ../fish/guestfish-actions.pod:3029
27052 msgid "See also L</mke2journal-U>."
27053 msgstr "Див. також L</mke2journal-U>."
27054
27055 #. type: =head2
27056 #: ../fish/guestfish-actions.pod:3031
27057 msgid "mke2journal"
27058 msgstr "mke2journal"
27059
27060 #. type: verbatim
27061 #: ../fish/guestfish-actions.pod:3033
27062 #, no-wrap
27063 msgid ""
27064 " mke2journal blocksize device\n"
27065 "\n"
27066 msgstr ""
27067
27068 #. type: =head2
27069 #: ../fish/guestfish-actions.pod:3040
27070 msgid "mke2journal-L"
27071 msgstr "mke2journal-L"
27072
27073 #. type: verbatim
27074 #: ../fish/guestfish-actions.pod:3042
27075 #, no-wrap
27076 msgid ""
27077 " mke2journal-L blocksize label device\n"
27078 "\n"
27079 msgstr ""
27080
27081 #. type: =head2
27082 #: ../fish/guestfish-actions.pod:3046
27083 msgid "mke2journal-U"
27084 msgstr "mke2journal-U"
27085
27086 #. type: verbatim
27087 #: ../fish/guestfish-actions.pod:3048
27088 #, no-wrap
27089 msgid ""
27090 " mke2journal-U blocksize uuid device\n"
27091 "\n"
27092 msgstr ""
27093
27094 #. type: =head2
27095 #: ../fish/guestfish-actions.pod:3052
27096 msgid "mkfifo"
27097 msgstr "mkfifo"
27098
27099 #. type: verbatim
27100 #: ../fish/guestfish-actions.pod:3054
27101 #, no-wrap
27102 msgid ""
27103 " mkfifo mode path\n"
27104 "\n"
27105 msgstr ""
27106 " mkfifo режим шлях\n"
27107 "\n"
27108
27109 #. type: textblock
27110 #: ../fish/guestfish-actions.pod:3056
27111 msgid ""
27112 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
27113 "is just a convenient wrapper around L</mknod>."
27114 msgstr ""
27115
27116 #. type: =head2
27117 #: ../fish/guestfish-actions.pod:3062
27118 msgid "mkfs"
27119 msgstr "mkfs"
27120
27121 #. type: verbatim
27122 #: ../fish/guestfish-actions.pod:3064
27123 #, no-wrap
27124 msgid ""
27125 " mkfs fstype device\n"
27126 "\n"
27127 msgstr ""
27128 " mkfs тип_файлової_системи пристрій\n"
27129 "\n"
27130
27131 #. type: =head2
27132 #: ../fish/guestfish-actions.pod:3070
27133 msgid "mkfs-b"
27134 msgstr "mkfs-b"
27135
27136 #. type: verbatim
27137 #: ../fish/guestfish-actions.pod:3072
27138 #, no-wrap
27139 msgid ""
27140 " mkfs-b fstype blocksize device\n"
27141 "\n"
27142 msgstr ""
27143
27144 #. type: textblock
27145 #: ../fish/guestfish-actions.pod:3074
27146 msgid ""
27147 "This call is similar to L</mkfs>, but it allows you to control the block "
27148 "size of the resulting filesystem.  Supported block sizes depend on the "
27149 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
27150 msgstr ""
27151
27152 #. type: =head2
27153 #: ../fish/guestfish-actions.pod:3089
27154 msgid "mkfs-opts"
27155 msgstr "mkfs-opts"
27156
27157 #. type: verbatim
27158 #: ../fish/guestfish-actions.pod:3091
27159 #, no-wrap
27160 msgid ""
27161 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
27162 "\n"
27163 msgstr ""
27164
27165 #. type: =head2
27166 #: ../fish/guestfish-actions.pod:3136
27167 msgid "mkmountpoint"
27168 msgstr "mkmountpoint"
27169
27170 #. type: verbatim
27171 #: ../fish/guestfish-actions.pod:3138
27172 #, no-wrap
27173 msgid ""
27174 " mkmountpoint exemptpath\n"
27175 "\n"
27176 msgstr ""
27177
27178 #. type: textblock
27179 #: ../fish/guestfish-actions.pod:3140
27180 msgid ""
27181 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used"
27182 " to create extra mountpoints before mounting the first filesystem."
27183 msgstr ""
27184
27185 #. type: textblock
27186 #: ../fish/guestfish-actions.pod:3164
27187 msgid ""
27188 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
27189 "unexpected errors if you try to mix these calls.  It is safest to manually "
27190 "unmount filesystems and remove mountpoints after use."
27191 msgstr ""
27192
27193 #. type: textblock
27194 #: ../fish/guestfish-actions.pod:3168
27195 msgid ""
27196 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
27197 "for this to work for manual mountpoints, you must ensure that the innermost "
27198 "mountpoints have the longest pathnames, as in the example code above."
27199 msgstr ""
27200
27201 #. type: textblock
27202 #: ../fish/guestfish-actions.pod:3175
27203 msgid ""
27204 "Autosync [see L</set-autosync>, this is set by default on handles] can cause"
27205 " L</umount-all> to be called when the handle is closed which can also "
27206 "trigger these issues."
27207 msgstr ""
27208
27209 #. type: =head2
27210 #: ../fish/guestfish-actions.pod:3179
27211 msgid "mknod"
27212 msgstr "mknod"
27213
27214 #. type: verbatim
27215 #: ../fish/guestfish-actions.pod:3181
27216 #, no-wrap
27217 msgid ""
27218 " mknod mode devmajor devminor path\n"
27219 "\n"
27220 msgstr ""
27221
27222 #. type: textblock
27223 #: ../fish/guestfish-actions.pod:3191
27224 msgid ""
27225 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
27226 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
27227 "regular file).  These constants are available in the standard Linux header "
27228 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
27229 "wrappers around this command which bitwise OR in the appropriate constant "
27230 "for you."
27231 msgstr ""
27232
27233 #. type: =head2
27234 #: ../fish/guestfish-actions.pod:3201
27235 msgid "mknod-b"
27236 msgstr "mknod-b"
27237
27238 #. type: verbatim
27239 #: ../fish/guestfish-actions.pod:3203
27240 #, no-wrap
27241 msgid ""
27242 " mknod-b mode devmajor devminor path\n"
27243 "\n"
27244 msgstr ""
27245
27246 #. type: textblock
27247 #: ../fish/guestfish-actions.pod:3205
27248 msgid ""
27249 "This call creates a block device node called C<path> with mode C<mode> and "
27250 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27251 "wrapper around L</mknod>."
27252 msgstr ""
27253
27254 #. type: =head2
27255 #: ../fish/guestfish-actions.pod:3211
27256 msgid "mknod-c"
27257 msgstr "mknod-c"
27258
27259 #. type: verbatim
27260 #: ../fish/guestfish-actions.pod:3213
27261 #, no-wrap
27262 msgid ""
27263 " mknod-c mode devmajor devminor path\n"
27264 "\n"
27265 msgstr ""
27266
27267 #. type: textblock
27268 #: ../fish/guestfish-actions.pod:3215
27269 msgid ""
27270 "This call creates a char device node called C<path> with mode C<mode> and "
27271 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27272 "wrapper around L</mknod>."
27273 msgstr ""
27274
27275 #. type: =head2
27276 #: ../fish/guestfish-actions.pod:3221
27277 msgid "mkswap"
27278 msgstr "mkswap"
27279
27280 #. type: verbatim
27281 #: ../fish/guestfish-actions.pod:3223
27282 #, no-wrap
27283 msgid ""
27284 " mkswap device\n"
27285 "\n"
27286 msgstr ""
27287 " mkswap пристрій\n"
27288 "\n"
27289
27290 #. type: =head2
27291 #: ../fish/guestfish-actions.pod:3227
27292 msgid "mkswap-L"
27293 msgstr "mkswap-L"
27294
27295 #. type: verbatim
27296 #: ../fish/guestfish-actions.pod:3229
27297 #, no-wrap
27298 msgid ""
27299 " mkswap-L label device\n"
27300 "\n"
27301 msgstr ""
27302 " mkswap-L мітка пристрій\n"
27303 "\n"
27304
27305 #. type: =head2
27306 #: ../fish/guestfish-actions.pod:3237
27307 msgid "mkswap-U"
27308 msgstr "mkswap-U"
27309
27310 #. type: verbatim
27311 #: ../fish/guestfish-actions.pod:3239
27312 #, no-wrap
27313 msgid ""
27314 " mkswap-U uuid device\n"
27315 "\n"
27316 msgstr ""
27317 " mkswap-U uuid пристрій\n"
27318 "\n"
27319
27320 #. type: =head2
27321 #: ../fish/guestfish-actions.pod:3243
27322 msgid "mkswap-file"
27323 msgstr "mkswap-file"
27324
27325 #. type: verbatim
27326 #: ../fish/guestfish-actions.pod:3245
27327 #, no-wrap
27328 msgid ""
27329 " mkswap-file path\n"
27330 "\n"
27331 msgstr ""
27332 " mkswap-file шлях\n"
27333 "\n"
27334
27335 #. type: textblock
27336 #: ../fish/guestfish-actions.pod:3249
27337 msgid ""
27338 "This command just writes a swap file signature to an existing file.  To "
27339 "create the file itself, use something like L</fallocate>."
27340 msgstr ""
27341
27342 #. type: =head2
27343 #: ../fish/guestfish-actions.pod:3252
27344 msgid "modprobe"
27345 msgstr "modprobe"
27346
27347 #. type: verbatim
27348 #: ../fish/guestfish-actions.pod:3254
27349 #, no-wrap
27350 msgid ""
27351 " modprobe modulename\n"
27352 "\n"
27353 msgstr ""
27354 " modprobe назва_модуля\n"
27355 "\n"
27356
27357 #. type: =head2
27358 #: ../fish/guestfish-actions.pod:3261
27359 msgid "mount"
27360 msgstr "mount"
27361
27362 #. type: verbatim
27363 #: ../fish/guestfish-actions.pod:3263
27364 #, no-wrap
27365 msgid ""
27366 " mount device mountpoint\n"
27367 "\n"
27368 msgstr ""
27369 " mount пристрій точка_монтування\n"
27370 "\n"
27371
27372 #. type: textblock
27373 #: ../fish/guestfish-actions.pod:3279
27374 msgid ""
27375 "B<Important note:> When you use this call, the filesystem options C<sync> "
27376 "and C<noatime> are set implicitly.  This was originally done because we "
27377 "thought it would improve reliability, but it turns out that I<-o sync> has a"
27378 " very large negative performance impact and negligible effect on "
27379 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
27380 "code that needs performance, and instead use L</mount-options> (use an empty"
27381 " string for the first parameter if you don't want any options)."
27382 msgstr ""
27383
27384 #. type: =head2
27385 #: ../fish/guestfish-actions.pod:3296
27386 msgid "mount-9p"
27387 msgstr ""
27388
27389 #. type: verbatim
27390 #: ../fish/guestfish-actions.pod:3298
27391 #, no-wrap
27392 msgid ""
27393 " mount-9p mounttag mountpoint [options:..]\n"
27394 "\n"
27395 msgstr ""
27396
27397 #. type: =head2
27398 #: ../fish/guestfish-actions.pod:3309
27399 msgid "mount-loop"
27400 msgstr "mount-loop"
27401
27402 #. type: verbatim
27403 #: ../fish/guestfish-actions.pod:3311
27404 #, no-wrap
27405 msgid ""
27406 " mount-loop file mountpoint\n"
27407 "\n"
27408 msgstr ""
27409
27410 #. type: =head2
27411 #: ../fish/guestfish-actions.pod:3317
27412 msgid "mount-options"
27413 msgstr "mount-options"
27414
27415 #. type: verbatim
27416 #: ../fish/guestfish-actions.pod:3319
27417 #, no-wrap
27418 msgid ""
27419 " mount-options options device mountpoint\n"
27420 "\n"
27421 msgstr ""
27422
27423 #. type: textblock
27424 #: ../fish/guestfish-actions.pod:3321
27425 msgid ""
27426 "This is the same as the L</mount> command, but it allows you to set the "
27427 "mount options as for the L<mount(8)> I<-o> flag."
27428 msgstr ""
27429
27430 #. type: =head2
27431 #: ../fish/guestfish-actions.pod:3329
27432 msgid "mount-ro"
27433 msgstr "mount-ro"
27434
27435 #. type: verbatim
27436 #: ../fish/guestfish-actions.pod:3331
27437 #, no-wrap
27438 msgid ""
27439 " mount-ro device mountpoint\n"
27440 "\n"
27441 msgstr ""
27442 " mount-ro пристрій точка_монтування\n"
27443 "\n"
27444
27445 #. type: textblock
27446 #: ../fish/guestfish-actions.pod:3333
27447 msgid ""
27448 "This is the same as the L</mount> command, but it mounts the filesystem with"
27449 " the read-only (I<-o ro>) flag."
27450 msgstr ""
27451
27452 #. type: =head2
27453 #: ../fish/guestfish-actions.pod:3336
27454 msgid "mount-vfs"
27455 msgstr "mount-vfs"
27456
27457 #. type: verbatim
27458 #: ../fish/guestfish-actions.pod:3338
27459 #, no-wrap
27460 msgid ""
27461 " mount-vfs options vfstype device mountpoint\n"
27462 "\n"
27463 msgstr ""
27464
27465 #. type: textblock
27466 #: ../fish/guestfish-actions.pod:3340
27467 msgid ""
27468 "This is the same as the L</mount> command, but it allows you to set both the"
27469 " mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
27470 msgstr ""
27471
27472 #. type: =head2
27473 #: ../fish/guestfish-actions.pod:3344
27474 msgid "mountpoints"
27475 msgstr "mountpoints"
27476
27477 #. type: verbatim
27478 #: ../fish/guestfish-actions.pod:3346
27479 #, no-wrap
27480 msgid ""
27481 " mountpoints\n"
27482 "\n"
27483 msgstr ""
27484 " mountpoints\n"
27485 "\n"
27486
27487 #. type: textblock
27488 #: ../fish/guestfish-actions.pod:3348
27489 msgid ""
27490 "This call is similar to L</mounts>.  That call returns a list of devices.  "
27491 "This one returns a hash table (map) of device name to directory where the "
27492 "device is mounted."
27493 msgstr ""
27494
27495 #. type: =head2
27496 #: ../fish/guestfish-actions.pod:3352
27497 msgid "mounts"
27498 msgstr "mounts"
27499
27500 #. type: verbatim
27501 #: ../fish/guestfish-actions.pod:3354
27502 #, no-wrap
27503 msgid ""
27504 " mounts\n"
27505 "\n"
27506 msgstr ""
27507 " mounts\n"
27508 "\n"
27509
27510 #. type: textblock
27511 #: ../fish/guestfish-actions.pod:3361
27512 msgid "See also: L</mountpoints>"
27513 msgstr "Див. також L</mountpoints>"
27514
27515 #. type: =head2
27516 #: ../fish/guestfish-actions.pod:3363
27517 msgid "mv"
27518 msgstr "mv"
27519
27520 #. type: verbatim
27521 #: ../fish/guestfish-actions.pod:3365
27522 #, no-wrap
27523 msgid ""
27524 " mv src dest\n"
27525 "\n"
27526 msgstr ""
27527 " mv джерело призначення\n"
27528 "\n"
27529
27530 #. type: =head2
27531 #: ../fish/guestfish-actions.pod:3370
27532 msgid "ntfs-3g-probe"
27533 msgstr "ntfs-3g-probe"
27534
27535 #. type: verbatim
27536 #: ../fish/guestfish-actions.pod:3372
27537 #, no-wrap
27538 msgid ""
27539 " ntfs-3g-probe true|false device\n"
27540 "\n"
27541 msgstr ""
27542
27543 #. type: =head2
27544 #: ../fish/guestfish-actions.pod:3386
27545 msgid "ntfsresize"
27546 msgstr "ntfsresize"
27547
27548 #. type: verbatim
27549 #: ../fish/guestfish-actions.pod:3388
27550 #, no-wrap
27551 msgid ""
27552 " ntfsresize device\n"
27553 "\n"
27554 msgstr ""
27555 " ntfsresize пристрій\n"
27556 "\n"
27557
27558 #. type: =head2
27559 #: ../fish/guestfish-actions.pod:3410
27560 msgid "ntfsresize-opts"
27561 msgstr ""
27562
27563 #. type: verbatim
27564 #: ../fish/guestfish-actions.pod:3412
27565 #, no-wrap
27566 msgid ""
27567 " ntfsresize-opts device [size:..] [force:..]\n"
27568 "\n"
27569 msgstr ""
27570
27571 #. type: textblock
27572 #: ../fish/guestfish-actions.pod:3431
27573 msgid ""
27574 "After the resize operation, the filesystem is always marked as requiring a "
27575 "consistency check (for safety).  You have to boot into Windows to perform "
27576 "this check and clear this condition.  If you I<don't> set the C<force> "
27577 "option then it is not possible to call L</ntfsresize-opts> multiple times on"
27578 " a single filesystem without booting into Windows between each resize."
27579 msgstr ""
27580
27581 #. type: =head2
27582 #: ../fish/guestfish-actions.pod:3444
27583 msgid "ntfsresize-size"
27584 msgstr "ntfsresize-size"
27585
27586 #. type: verbatim
27587 #: ../fish/guestfish-actions.pod:3446
27588 #, no-wrap
27589 msgid ""
27590 " ntfsresize-size device size\n"
27591 "\n"
27592 msgstr ""
27593
27594 #. type: textblock
27595 #: ../fish/guestfish-actions.pod:3448
27596 msgid ""
27597 "This command is the same as L</ntfsresize> except that it allows you to "
27598 "specify the new size (in bytes) explicitly."
27599 msgstr ""
27600
27601 #. type: =head2
27602 #: ../fish/guestfish-actions.pod:3458
27603 msgid "part-add"
27604 msgstr "part-add"
27605
27606 #. type: verbatim
27607 #: ../fish/guestfish-actions.pod:3460
27608 #, no-wrap
27609 msgid ""
27610 " part-add device prlogex startsect endsect\n"
27611 "\n"
27612 msgstr ""
27613
27614 #. type: textblock
27615 #: ../fish/guestfish-actions.pod:3462
27616 msgid ""
27617 "This command adds a partition to C<device>.  If there is no partition table "
27618 "on the device, call L</part-init> first."
27619 msgstr ""
27620
27621 #. type: textblock
27622 #: ../fish/guestfish-actions.pod:3474
27623 msgid ""
27624 "Creating a partition which covers the whole disk is not so easy.  Use L"
27625 "</part-disk> to do that."
27626 msgstr ""
27627
27628 #. type: =head2
27629 #: ../fish/guestfish-actions.pod:3477
27630 msgid "part-del"
27631 msgstr "part-del"
27632
27633 #. type: verbatim
27634 #: ../fish/guestfish-actions.pod:3479
27635 #, no-wrap
27636 msgid ""
27637 " part-del device partnum\n"
27638 "\n"
27639 msgstr ""
27640
27641 #. type: =head2
27642 #: ../fish/guestfish-actions.pod:3487
27643 msgid "part-disk"
27644 msgstr "part-disk"
27645
27646 #. type: verbatim
27647 #: ../fish/guestfish-actions.pod:3489
27648 #, no-wrap
27649 msgid ""
27650 " part-disk device parttype\n"
27651 "\n"
27652 msgstr ""
27653 " part-disk пристрій тип_розділу\n"
27654 "\n"
27655
27656 #. type: textblock
27657 #: ../fish/guestfish-actions.pod:3491
27658 msgid ""
27659 "This command is simply a combination of L</part-init> followed by L</part-"
27660 "add> to create a single primary partition covering the whole disk."
27661 msgstr ""
27662
27663 #. type: textblock
27664 #: ../fish/guestfish-actions.pod:3495
27665 msgid ""
27666 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other"
27667 " possible values are described in L</part-init>."
27668 msgstr ""
27669
27670 #. type: =head2
27671 #: ../fish/guestfish-actions.pod:3501
27672 msgid "part-get-bootable"
27673 msgstr "part-get-bootable"
27674
27675 #. type: verbatim
27676 #: ../fish/guestfish-actions.pod:3503
27677 #, no-wrap
27678 msgid ""
27679 " part-get-bootable device partnum\n"
27680 "\n"
27681 msgstr ""
27682
27683 #. type: textblock
27684 #: ../fish/guestfish-actions.pod:3508
27685 msgid "See also L</part-set-bootable>."
27686 msgstr "Див. також L</part-set-bootable>."
27687
27688 #. type: =head2
27689 #: ../fish/guestfish-actions.pod:3510
27690 msgid "part-get-mbr-id"
27691 msgstr "part-get-mbr-id"
27692
27693 #. type: verbatim
27694 #: ../fish/guestfish-actions.pod:3512
27695 #, no-wrap
27696 msgid ""
27697 " part-get-mbr-id device partnum\n"
27698 "\n"
27699 msgstr ""
27700
27701 #. type: textblock
27702 #: ../fish/guestfish-actions.pod:3517 ../fish/guestfish-actions.pod:3655
27703 msgid ""
27704 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get"
27705 " undefined results for other partition table types (see L</part-get-"
27706 "parttype>)."
27707 msgstr ""
27708
27709 #. type: =head2
27710 #: ../fish/guestfish-actions.pod:3521
27711 msgid "part-get-parttype"
27712 msgstr "part-get-parttype"
27713
27714 #. type: verbatim
27715 #: ../fish/guestfish-actions.pod:3523
27716 #, no-wrap
27717 msgid ""
27718 " part-get-parttype device\n"
27719 "\n"
27720 msgstr ""
27721 " part-get-parttype пристрій\n"
27722 "\n"
27723
27724 #. type: textblock
27725 #: ../fish/guestfish-actions.pod:3528
27726 msgid ""
27727 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
27728 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
27729 "possible, although unusual.  See L</part-init> for a full list."
27730 msgstr ""
27731
27732 #. type: =head2
27733 #: ../fish/guestfish-actions.pod:3533
27734 msgid "part-init"
27735 msgstr "part-init"
27736
27737 #. type: verbatim
27738 #: ../fish/guestfish-actions.pod:3535
27739 #, no-wrap
27740 msgid ""
27741 " part-init device parttype\n"
27742 "\n"
27743 msgstr ""
27744
27745 #. type: textblock
27746 #: ../fish/guestfish-actions.pod:3541
27747 msgid ""
27748 "Initially there are no partitions.  Following this, you should call L</part-"
27749 "add> for each partition required."
27750 msgstr ""
27751
27752 #. type: =head2
27753 #: ../fish/guestfish-actions.pod:3604
27754 msgid "part-list"
27755 msgstr "part-list"
27756
27757 #. type: verbatim
27758 #: ../fish/guestfish-actions.pod:3606
27759 #, no-wrap
27760 msgid ""
27761 " part-list device\n"
27762 "\n"
27763 msgstr ""
27764 " part-list device\n"
27765 "\n"
27766
27767 #. type: textblock
27768 #: ../fish/guestfish-actions.pod:3621
27769 msgid ""
27770 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
27771 "the device's sector size, see L</blockdev-getss>."
27772 msgstr ""
27773
27774 #. type: =head2
27775 #: ../fish/guestfish-actions.pod:3634
27776 msgid "part-set-bootable"
27777 msgstr "part-set-bootable"
27778
27779 #. type: verbatim
27780 #: ../fish/guestfish-actions.pod:3636
27781 #, no-wrap
27782 msgid ""
27783 " part-set-bootable device partnum true|false\n"
27784 "\n"
27785 msgstr ""
27786
27787 #. type: =head2
27788 #: ../fish/guestfish-actions.pod:3645
27789 msgid "part-set-mbr-id"
27790 msgstr "part-set-mbr-id"
27791
27792 #. type: verbatim
27793 #: ../fish/guestfish-actions.pod:3647
27794 #, no-wrap
27795 msgid ""
27796 " part-set-mbr-id device partnum idbyte\n"
27797 "\n"
27798 msgstr ""
27799
27800 #. type: =head2
27801 #: ../fish/guestfish-actions.pod:3659
27802 msgid "part-set-name"
27803 msgstr "part-set-name"
27804
27805 #. type: verbatim
27806 #: ../fish/guestfish-actions.pod:3661
27807 #, no-wrap
27808 msgid ""
27809 " part-set-name device partnum name\n"
27810 "\n"
27811 msgstr ""
27812
27813 #. type: =head2
27814 #: ../fish/guestfish-actions.pod:3669
27815 msgid "part-to-dev"
27816 msgstr "part-to-dev"
27817
27818 #. type: verbatim
27819 #: ../fish/guestfish-actions.pod:3671
27820 #, no-wrap
27821 msgid ""
27822 " part-to-dev partition\n"
27823 "\n"
27824 msgstr ""
27825 " part-to-dev розділ\n"
27826 "\n"
27827
27828 #. type: textblock
27829 #: ../fish/guestfish-actions.pod:3677
27830 msgid ""
27831 "The named partition must exist, for example as a string returned from L"
27832 "</list-partitions>."
27833 msgstr ""
27834
27835 #. type: =head2
27836 #: ../fish/guestfish-actions.pod:3680
27837 msgid "ping-daemon"
27838 msgstr "ping-daemon"
27839
27840 #. type: verbatim
27841 #: ../fish/guestfish-actions.pod:3682
27842 #, no-wrap
27843 msgid ""
27844 " ping-daemon\n"
27845 "\n"
27846 msgstr ""
27847 " ping-daemon\n"
27848 "\n"
27849
27850 #. type: =head2
27851 #: ../fish/guestfish-actions.pod:3689
27852 msgid "pread"
27853 msgstr "pread"
27854
27855 #. type: verbatim
27856 #: ../fish/guestfish-actions.pod:3691
27857 #, no-wrap
27858 msgid ""
27859 " pread path count offset\n"
27860 "\n"
27861 msgstr ""
27862
27863 #. type: textblock
27864 #: ../fish/guestfish-actions.pod:3699
27865 msgid "See also L</pwrite>, L</pread-device>."
27866 msgstr "Див. також L</pwrite>, L</pread-device>."
27867
27868 #. type: =head2
27869 #: ../fish/guestfish-actions.pod:3704
27870 msgid "pread-device"
27871 msgstr "pread-device"
27872
27873 #. type: verbatim
27874 #: ../fish/guestfish-actions.pod:3706
27875 #, no-wrap
27876 msgid ""
27877 " pread-device device count offset\n"
27878 "\n"
27879 msgstr ""
27880
27881 #. type: textblock
27882 #: ../fish/guestfish-actions.pod:3714
27883 msgid "See also L</pread>."
27884 msgstr "Див. також L</pread>."
27885
27886 #. type: =head2
27887 #: ../fish/guestfish-actions.pod:3719
27888 msgid "pvcreate"
27889 msgstr "pvcreate"
27890
27891 #. type: verbatim
27892 #: ../fish/guestfish-actions.pod:3721
27893 #, no-wrap
27894 msgid ""
27895 " pvcreate device\n"
27896 "\n"
27897 msgstr ""
27898 " pvcreate пристрій\n"
27899 "\n"
27900
27901 #. type: =head2
27902 #: ../fish/guestfish-actions.pod:3727
27903 msgid "pvremove"
27904 msgstr "pvremove"
27905
27906 #. type: verbatim
27907 #: ../fish/guestfish-actions.pod:3729
27908 #, no-wrap
27909 msgid ""
27910 " pvremove device\n"
27911 "\n"
27912 msgstr ""
27913 " pvremove пристрій\n"
27914 "\n"
27915
27916 #. type: =head2
27917 #: ../fish/guestfish-actions.pod:3738
27918 msgid "pvresize"
27919 msgstr "pvresize"
27920
27921 #. type: verbatim
27922 #: ../fish/guestfish-actions.pod:3740
27923 #, no-wrap
27924 msgid ""
27925 " pvresize device\n"
27926 "\n"
27927 msgstr ""
27928 " pvresize пристрій\n"
27929 "\n"
27930
27931 #. type: =head2
27932 #: ../fish/guestfish-actions.pod:3745
27933 msgid "pvresize-size"
27934 msgstr "pvresize-size"
27935
27936 #. type: verbatim
27937 #: ../fish/guestfish-actions.pod:3747
27938 #, no-wrap
27939 msgid ""
27940 " pvresize-size device size\n"
27941 "\n"
27942 msgstr ""
27943
27944 #. type: textblock
27945 #: ../fish/guestfish-actions.pod:3749
27946 msgid ""
27947 "This command is the same as L</pvresize> except that it allows you to "
27948 "specify the new size (in bytes) explicitly."
27949 msgstr ""
27950
27951 #. type: =head2
27952 #: ../fish/guestfish-actions.pod:3752
27953 msgid "pvs"
27954 msgstr "pvs"
27955
27956 #. type: verbatim
27957 #: ../fish/guestfish-actions.pod:3754
27958 #, no-wrap
27959 msgid ""
27960 " pvs\n"
27961 "\n"
27962 msgstr ""
27963 " pvs\n"
27964 "\n"
27965
27966 #. type: textblock
27967 #: ../fish/guestfish-actions.pod:3762
27968 msgid "See also L</pvs-full>."
27969 msgstr "Див. також L</pvs-full>."
27970
27971 #. type: =head2
27972 #: ../fish/guestfish-actions.pod:3764
27973 msgid "pvs-full"
27974 msgstr "pvs-full"
27975
27976 #. type: verbatim
27977 #: ../fish/guestfish-actions.pod:3766
27978 #, no-wrap
27979 msgid ""
27980 " pvs-full\n"
27981 "\n"
27982 msgstr ""
27983 " pvs-full\n"
27984 "\n"
27985
27986 #. type: =head2
27987 #: ../fish/guestfish-actions.pod:3771
27988 msgid "pvuuid"
27989 msgstr "pvuuid"
27990
27991 #. type: verbatim
27992 #: ../fish/guestfish-actions.pod:3773
27993 #, no-wrap
27994 msgid ""
27995 " pvuuid device\n"
27996 "\n"
27997 msgstr ""
27998 " pvuuid пристрій\n"
27999 "\n"
28000
28001 #. type: =head2
28002 #: ../fish/guestfish-actions.pod:3777
28003 msgid "pwrite"
28004 msgstr "pwrite"
28005
28006 #. type: verbatim
28007 #: ../fish/guestfish-actions.pod:3779
28008 #, no-wrap
28009 msgid ""
28010 " pwrite path content offset\n"
28011 "\n"
28012 msgstr ""
28013
28014 #. type: textblock
28015 #: ../fish/guestfish-actions.pod:3790
28016 msgid "See also L</pread>, L</pwrite-device>."
28017 msgstr "Див. також L</pread>, L</pwrite-device>."
28018
28019 #. type: =head2
28020 #: ../fish/guestfish-actions.pod:3795
28021 msgid "pwrite-device"
28022 msgstr "pwrite-device"
28023
28024 #. type: verbatim
28025 #: ../fish/guestfish-actions.pod:3797
28026 #, no-wrap
28027 msgid ""
28028 " pwrite-device device content offset\n"
28029 "\n"
28030 msgstr ""
28031
28032 #. type: textblock
28033 #: ../fish/guestfish-actions.pod:3807
28034 msgid "See also L</pwrite>."
28035 msgstr "Див. також L</pwrite>."
28036
28037 #. type: =head2
28038 #: ../fish/guestfish-actions.pod:3812
28039 msgid "read-file"
28040 msgstr "read-file"
28041
28042 #. type: verbatim
28043 #: ../fish/guestfish-actions.pod:3814
28044 #, no-wrap
28045 msgid ""
28046 " read-file path\n"
28047 "\n"
28048 msgstr ""
28049 " read-file шлях\n"
28050 "\n"
28051
28052 #. type: textblock
28053 #: ../fish/guestfish-actions.pod:3819
28054 msgid ""
28055 "Unlike L</cat>, this function can correctly handle files that contain "
28056 "embedded ASCII NUL characters.  However unlike L</download>, this function "
28057 "is limited in the total size of file that can be handled."
28058 msgstr ""
28059
28060 #. type: =head2
28061 #: ../fish/guestfish-actions.pod:3827
28062 msgid "read-lines"
28063 msgstr "read-lines"
28064
28065 #. type: verbatim
28066 #: ../fish/guestfish-actions.pod:3829
28067 #, no-wrap
28068 msgid ""
28069 " read-lines path\n"
28070 "\n"
28071 msgstr ""
28072 " read-lines шлях\n"
28073 "\n"
28074
28075 #. type: textblock
28076 #: ../fish/guestfish-actions.pod:3836
28077 msgid ""
28078 "Note that this function cannot correctly handle binary files (specifically, "
28079 "files containing C<\\0> character which is treated as end of line).  For "
28080 "those you need to use the L</read-file> function which has a more complex "
28081 "interface."
28082 msgstr ""
28083
28084 #. type: =head2
28085 #: ../fish/guestfish-actions.pod:3841
28086 msgid "readdir"
28087 msgstr "readdir"
28088
28089 #. type: verbatim
28090 #: ../fish/guestfish-actions.pod:3843
28091 #, no-wrap
28092 msgid ""
28093 " readdir dir\n"
28094 "\n"
28095 msgstr ""
28096 " readdir каталог\n"
28097 "\n"
28098
28099 #. type: textblock
28100 #: ../fish/guestfish-actions.pod:3895
28101 msgid ""
28102 "This function is primarily intended for use by programs.  To get a simple "
28103 "list of names, use L</ls>.  To get a printable directory for human "
28104 "consumption, use L</ll>."
28105 msgstr ""
28106
28107 #. type: =head2
28108 #: ../fish/guestfish-actions.pod:3899
28109 msgid "readlink"
28110 msgstr "readlink"
28111
28112 #. type: verbatim
28113 #: ../fish/guestfish-actions.pod:3901
28114 #, no-wrap
28115 msgid ""
28116 " readlink path\n"
28117 "\n"
28118 msgstr ""
28119 " readlink шлях\n"
28120 "\n"
28121
28122 #. type: =head2
28123 #: ../fish/guestfish-actions.pod:3905
28124 msgid "readlinklist"
28125 msgstr "readlinklist"
28126
28127 #. type: verbatim
28128 #: ../fish/guestfish-actions.pod:3907
28129 #, no-wrap
28130 msgid ""
28131 " readlinklist path 'names ...'\n"
28132 "\n"
28133 msgstr ""
28134
28135 #. type: =head2
28136 #: ../fish/guestfish-actions.pod:3931
28137 msgid "realpath"
28138 msgstr "realpath"
28139
28140 #. type: verbatim
28141 #: ../fish/guestfish-actions.pod:3933
28142 #, no-wrap
28143 msgid ""
28144 " realpath path\n"
28145 "\n"
28146 msgstr ""
28147 " realpath шлях\n"
28148 "\n"
28149
28150 #. type: =head2
28151 #: ../fish/guestfish-actions.pod:3938
28152 msgid "removexattr"
28153 msgstr "removexattr"
28154
28155 #. type: verbatim
28156 #: ../fish/guestfish-actions.pod:3940
28157 #, no-wrap
28158 msgid ""
28159 " removexattr xattr path\n"
28160 "\n"
28161 msgstr ""
28162
28163 #. type: textblock
28164 #: ../fish/guestfish-actions.pod:3945
28165 msgid "See also: L</lremovexattr>, L<attr(5)>."
28166 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
28167
28168 #. type: =head2
28169 #: ../fish/guestfish-actions.pod:3947
28170 msgid "resize2fs"
28171 msgstr "resize2fs"
28172
28173 #. type: verbatim
28174 #: ../fish/guestfish-actions.pod:3949
28175 #, no-wrap
28176 msgid ""
28177 " resize2fs device\n"
28178 "\n"
28179 msgstr ""
28180 " resize2fs пристрій\n"
28181 "\n"
28182
28183 #. type: textblock
28184 #: ../fish/guestfish-actions.pod:3954
28185 msgid ""
28186 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device>"
28187 " before calling this command.  For unknown reasons C<resize2fs> sometimes "
28188 "gives an error about this and sometimes not.  In any case, it is always safe"
28189 " to call L</e2fsck-f> before calling this function."
28190 msgstr ""
28191
28192 #. type: =head2
28193 #: ../fish/guestfish-actions.pod:3960
28194 msgid "resize2fs-M"
28195 msgstr "resize2fs-M"
28196
28197 #. type: verbatim
28198 #: ../fish/guestfish-actions.pod:3962
28199 #, no-wrap
28200 msgid ""
28201 " resize2fs-M device\n"
28202 "\n"
28203 msgstr ""
28204 " resize2fs-M пристрій\n"
28205 "\n"
28206
28207 #. type: textblock
28208 #: ../fish/guestfish-actions.pod:3964
28209 msgid ""
28210 "This command is the same as L</resize2fs>, but the filesystem is resized to "
28211 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
28212 "command."
28213 msgstr ""
28214
28215 #. type: textblock
28216 #: ../fish/guestfish-actions.pod:3968
28217 msgid ""
28218 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
28219 "and read the C<Block size> and C<Block count> values.  These two numbers, "
28220 "multiplied together, give the resulting size of the minimal filesystem in "
28221 "bytes."
28222 msgstr ""
28223
28224 #. type: =head2
28225 #: ../fish/guestfish-actions.pod:3973
28226 msgid "resize2fs-size"
28227 msgstr "resize2fs-size"
28228
28229 #. type: verbatim
28230 #: ../fish/guestfish-actions.pod:3975
28231 #, no-wrap
28232 msgid ""
28233 " resize2fs-size device size\n"
28234 "\n"
28235 msgstr ""
28236
28237 #. type: textblock
28238 #: ../fish/guestfish-actions.pod:3977
28239 msgid ""
28240 "This command is the same as L</resize2fs> except that it allows you to "
28241 "specify the new size (in bytes) explicitly."
28242 msgstr ""
28243
28244 #. type: =head2
28245 #: ../fish/guestfish-actions.pod:3980
28246 msgid "rm"
28247 msgstr "rm"
28248
28249 #. type: verbatim
28250 #: ../fish/guestfish-actions.pod:3982
28251 #, no-wrap
28252 msgid ""
28253 " rm path\n"
28254 "\n"
28255 msgstr ""
28256 " rm шлях\n"
28257 "\n"
28258
28259 #. type: =head2
28260 #: ../fish/guestfish-actions.pod:3986
28261 msgid "rm-rf"
28262 msgstr "rm-rf"
28263
28264 #. type: verbatim
28265 #: ../fish/guestfish-actions.pod:3988
28266 #, no-wrap
28267 msgid ""
28268 " rm-rf path\n"
28269 "\n"
28270 msgstr ""
28271 " rm-rf шлях\n"
28272 "\n"
28273
28274 #. type: =head2
28275 #: ../fish/guestfish-actions.pod:3994
28276 msgid "rmdir"
28277 msgstr "rmdir"
28278
28279 #. type: verbatim
28280 #: ../fish/guestfish-actions.pod:3996
28281 #, no-wrap
28282 msgid ""
28283 " rmdir path\n"
28284 "\n"
28285 msgstr ""
28286 " rmdir шлях\n"
28287 "\n"
28288
28289 #. type: =head2
28290 #: ../fish/guestfish-actions.pod:4000
28291 msgid "rmmountpoint"
28292 msgstr "rmmountpoint"
28293
28294 #. type: verbatim
28295 #: ../fish/guestfish-actions.pod:4002
28296 #, no-wrap
28297 msgid ""
28298 " rmmountpoint exemptpath\n"
28299 "\n"
28300 msgstr ""
28301
28302 #. type: textblock
28303 #: ../fish/guestfish-actions.pod:4004
28304 msgid ""
28305 "This calls removes a mountpoint that was previously created with "
28306 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
28307 msgstr ""
28308
28309 #. type: =head2
28310 #: ../fish/guestfish-actions.pod:4008
28311 msgid "scrub-device"
28312 msgstr "scrub-device"
28313
28314 #. type: verbatim
28315 #: ../fish/guestfish-actions.pod:4010
28316 #, no-wrap
28317 msgid ""
28318 " scrub-device device\n"
28319 "\n"
28320 msgstr ""
28321 " scrub-device пристрій\n"
28322 "\n"
28323
28324 #. type: =head2
28325 #: ../fish/guestfish-actions.pod:4021
28326 msgid "scrub-file"
28327 msgstr "scrub-file"
28328
28329 #. type: verbatim
28330 #: ../fish/guestfish-actions.pod:4023
28331 #, no-wrap
28332 msgid ""
28333 " scrub-file file\n"
28334 "\n"
28335 msgstr ""
28336 " scrub-file файл\n"
28337 "\n"
28338
28339 #. type: =head2
28340 #: ../fish/guestfish-actions.pod:4033
28341 msgid "scrub-freespace"
28342 msgstr "scrub-freespace"
28343
28344 #. type: verbatim
28345 #: ../fish/guestfish-actions.pod:4035
28346 #, no-wrap
28347 msgid ""
28348 " scrub-freespace dir\n"
28349 "\n"
28350 msgstr ""
28351 " scrub-freespace каталог\n"
28352 "\n"
28353
28354 #. type: textblock
28355 #: ../fish/guestfish-actions.pod:4037
28356 msgid ""
28357 "This command creates the directory C<dir> and then fills it with files until"
28358 " the filesystem is full, and scrubs the files as for L</scrub-file>, and "
28359 "deletes them.  The intention is to scrub any free space on the partition "
28360 "containing C<dir>."
28361 msgstr ""
28362
28363 #. type: =head2
28364 #: ../fish/guestfish-actions.pod:4046
28365 msgid "set-append"
28366 msgstr "set-append"
28367
28368 #. type: =head2
28369 #: ../fish/guestfish-actions.pod:4048
28370 msgid "append"
28371 msgstr ""
28372
28373 #. type: verbatim
28374 #: ../fish/guestfish-actions.pod:4050
28375 #, no-wrap
28376 msgid ""
28377 " set-append append\n"
28378 "\n"
28379 msgstr ""
28380
28381 #. type: =head2
28382 #: ../fish/guestfish-actions.pod:4061
28383 msgid "set-attach-method"
28384 msgstr "set-attach-method"
28385
28386 #. type: =head2
28387 #: ../fish/guestfish-actions.pod:4063
28388 msgid "attach-method"
28389 msgstr ""
28390
28391 #. type: verbatim
28392 #: ../fish/guestfish-actions.pod:4065
28393 #, no-wrap
28394 msgid ""
28395 " set-attach-method attachmethod\n"
28396 "\n"
28397 msgstr ""
28398
28399 #. type: =head2
28400 #: ../fish/guestfish-actions.pod:4087
28401 msgid "set-autosync"
28402 msgstr "set-autosync"
28403
28404 #. type: =head2
28405 #: ../fish/guestfish-actions.pod:4089
28406 msgid "autosync"
28407 msgstr "autosync"
28408
28409 #. type: verbatim
28410 #: ../fish/guestfish-actions.pod:4091
28411 #, no-wrap
28412 msgid ""
28413 " set-autosync true|false\n"
28414 "\n"
28415 msgstr ""
28416 " set-autosync true|false\n"
28417 "\n"
28418
28419 #. type: =head2
28420 #: ../fish/guestfish-actions.pod:4101
28421 msgid "set-direct"
28422 msgstr "set-direct"
28423
28424 #. type: =head2
28425 #: ../fish/guestfish-actions.pod:4103
28426 msgid "direct"
28427 msgstr "direct"
28428
28429 #. type: verbatim
28430 #: ../fish/guestfish-actions.pod:4105
28431 #, no-wrap
28432 msgid ""
28433 " set-direct true|false\n"
28434 "\n"
28435 msgstr ""
28436 " set-direct true|false\n"
28437 "\n"
28438
28439 #. type: textblock
28440 #: ../fish/guestfish-actions.pod:4111
28441 msgid ""
28442 "One consequence of this is that log messages aren't caught by the library "
28443 "and handled by L</set-log-message-callback>, but go straight to stdout."
28444 msgstr ""
28445
28446 #. type: =head2
28447 #: ../fish/guestfish-actions.pod:4120
28448 msgid "set-e2label"
28449 msgstr "set-e2label"
28450
28451 #. type: verbatim
28452 #: ../fish/guestfish-actions.pod:4122
28453 #, no-wrap
28454 msgid ""
28455 " set-e2label device label\n"
28456 "\n"
28457 msgstr ""
28458
28459 #. type: textblock
28460 #: ../fish/guestfish-actions.pod:4128
28461 msgid ""
28462 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
28463 "label on a filesystem."
28464 msgstr ""
28465
28466 #. type: =head2
28467 #: ../fish/guestfish-actions.pod:4131
28468 msgid "set-e2uuid"
28469 msgstr "set-e2uuid"
28470
28471 #. type: verbatim
28472 #: ../fish/guestfish-actions.pod:4133
28473 #, no-wrap
28474 msgid ""
28475 " set-e2uuid device uuid\n"
28476 "\n"
28477 msgstr ""
28478
28479 #. type: textblock
28480 #: ../fish/guestfish-actions.pod:4140
28481 msgid ""
28482 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
28483 "UUID of a filesystem."
28484 msgstr ""
28485
28486 #. type: =head2
28487 #: ../fish/guestfish-actions.pod:4143
28488 msgid "set-memsize"
28489 msgstr "set-memsize"
28490
28491 #. type: =head2
28492 #: ../fish/guestfish-actions.pod:4145
28493 msgid "memsize"
28494 msgstr ""
28495
28496 #. type: verbatim
28497 #: ../fish/guestfish-actions.pod:4147
28498 #, no-wrap
28499 msgid ""
28500 " set-memsize memsize\n"
28501 "\n"
28502 msgstr ""
28503
28504 #. type: textblock
28505 #: ../fish/guestfish-actions.pod:4149
28506 msgid ""
28507 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
28508 "This only has any effect if called before L</launch>."
28509 msgstr ""
28510
28511 #. type: =head2
28512 #: ../fish/guestfish-actions.pod:4160
28513 msgid "set-network"
28514 msgstr "set-network"
28515
28516 #. type: =head2
28517 #: ../fish/guestfish-actions.pod:4162
28518 msgid "network"
28519 msgstr "network"
28520
28521 #. type: verbatim
28522 #: ../fish/guestfish-actions.pod:4164
28523 #, no-wrap
28524 msgid ""
28525 " set-network true|false\n"
28526 "\n"
28527 msgstr ""
28528 " set-network true|false\n"
28529 "\n"
28530
28531 #. type: textblock
28532 #: ../fish/guestfish-actions.pod:4172
28533 msgid ""
28534 "You must call this before calling L</launch>, otherwise it has no effect."
28535 msgstr ""
28536
28537 #. type: =head2
28538 #: ../fish/guestfish-actions.pod:4175
28539 msgid "set-path"
28540 msgstr "set-path"
28541
28542 #. type: =head2
28543 #: ../fish/guestfish-actions.pod:4177
28544 msgid "path"
28545 msgstr ""
28546
28547 #. type: verbatim
28548 #: ../fish/guestfish-actions.pod:4179
28549 #, no-wrap
28550 msgid ""
28551 " set-path searchpath\n"
28552 "\n"
28553 msgstr ""
28554
28555 #. type: =head2
28556 #: ../fish/guestfish-actions.pod:4188
28557 msgid "set-pgroup"
28558 msgstr ""
28559
28560 #. type: =head2
28561 #: ../fish/guestfish-actions.pod:4190
28562 msgid "pgroup"
28563 msgstr ""
28564
28565 #. type: verbatim
28566 #: ../fish/guestfish-actions.pod:4192
28567 #, no-wrap
28568 msgid ""
28569 " set-pgroup true|false\n"
28570 "\n"
28571 msgstr ""
28572
28573 #. type: =head2
28574 #: ../fish/guestfish-actions.pod:4203
28575 msgid "set-qemu"
28576 msgstr "set-qemu"
28577
28578 #. type: =head2
28579 #: ../fish/guestfish-actions.pod:4205
28580 msgid "qemu"
28581 msgstr "qemu"
28582
28583 #. type: verbatim
28584 #: ../fish/guestfish-actions.pod:4207
28585 #, no-wrap
28586 msgid ""
28587 " set-qemu qemu\n"
28588 "\n"
28589 msgstr ""
28590 " set-qemu qemu\n"
28591 "\n"
28592
28593 #. type: =head2
28594 #: ../fish/guestfish-actions.pod:4227
28595 msgid "set-recovery-proc"
28596 msgstr "set-recovery-proc"
28597
28598 #. type: =head2
28599 #: ../fish/guestfish-actions.pod:4229
28600 msgid "recovery-proc"
28601 msgstr "recovery-proc"
28602
28603 #. type: verbatim
28604 #: ../fish/guestfish-actions.pod:4231
28605 #, no-wrap
28606 msgid ""
28607 " set-recovery-proc true|false\n"
28608 "\n"
28609 msgstr ""
28610 " set-recovery-proc true|false\n"
28611 "\n"
28612
28613 #. type: textblock
28614 #: ../fish/guestfish-actions.pod:4233
28615 msgid ""
28616 "If this is called with the parameter C<false> then L</launch> does not "
28617 "create a recovery process.  The purpose of the recovery process is to stop "
28618 "runaway qemu processes in the case where the main program aborts abruptly."
28619 msgstr ""
28620
28621 #. type: textblock
28622 #: ../fish/guestfish-actions.pod:4238
28623 msgid ""
28624 "This only has any effect if called before L</launch>, and the default is "
28625 "true."
28626 msgstr ""
28627
28628 #. type: =head2
28629 #: ../fish/guestfish-actions.pod:4247
28630 msgid "set-selinux"
28631 msgstr "set-selinux"
28632
28633 #. type: =head2
28634 #: ../fish/guestfish-actions.pod:4249
28635 msgid "selinux"
28636 msgstr "selinux"
28637
28638 #. type: verbatim
28639 #: ../fish/guestfish-actions.pod:4251
28640 #, no-wrap
28641 msgid ""
28642 " set-selinux true|false\n"
28643 "\n"
28644 msgstr ""
28645 " set-selinux true|false\n"
28646 "\n"
28647
28648 #. type: =head2
28649 #: ../fish/guestfish-actions.pod:4262
28650 msgid "set-trace"
28651 msgstr "set-trace"
28652
28653 #. type: =head2
28654 #: ../fish/guestfish-actions.pod:4264
28655 msgid "trace"
28656 msgstr "trace"
28657
28658 #. type: verbatim
28659 #: ../fish/guestfish-actions.pod:4266
28660 #, no-wrap
28661 msgid ""
28662 " set-trace true|false\n"
28663 "\n"
28664 msgstr ""
28665 " set-trace true|false\n"
28666 "\n"
28667
28668 #. type: textblock
28669 #: ../fish/guestfish-actions.pod:4278
28670 msgid ""
28671 "Trace messages are normally sent to C<stderr>, unless you register a "
28672 "callback to send them somewhere else (see L</set-event-callback>)."
28673 msgstr ""
28674
28675 #. type: =head2
28676 #: ../fish/guestfish-actions.pod:4282
28677 msgid "set-verbose"
28678 msgstr "set-verbose"
28679
28680 #. type: =head2
28681 #: ../fish/guestfish-actions.pod:4284
28682 msgid "verbose"
28683 msgstr ""
28684
28685 #. type: verbatim
28686 #: ../fish/guestfish-actions.pod:4286
28687 #, no-wrap
28688 msgid ""
28689 " set-verbose true|false\n"
28690 "\n"
28691 msgstr ""
28692 " set-verbose true|false\n"
28693 "\n"
28694
28695 #. type: textblock
28696 #: ../fish/guestfish-actions.pod:4293
28697 msgid ""
28698 "Verbose messages are normally sent to C<stderr>, unless you register a "
28699 "callback to send them somewhere else (see L</set-event-callback>)."
28700 msgstr ""
28701
28702 #. type: =head2
28703 #: ../fish/guestfish-actions.pod:4297
28704 msgid "setcon"
28705 msgstr "setcon"
28706
28707 #. type: verbatim
28708 #: ../fish/guestfish-actions.pod:4299
28709 #, no-wrap
28710 msgid ""
28711 " setcon context\n"
28712 "\n"
28713 msgstr ""
28714 " setcon контекст\n"
28715 "\n"
28716
28717 #. type: =head2
28718 #: ../fish/guestfish-actions.pod:4306
28719 msgid "setxattr"
28720 msgstr "setxattr"
28721
28722 #. type: verbatim
28723 #: ../fish/guestfish-actions.pod:4308
28724 #, no-wrap
28725 msgid ""
28726 " setxattr xattr val vallen path\n"
28727 "\n"
28728 msgstr ""
28729
28730 #. type: textblock
28731 #: ../fish/guestfish-actions.pod:4314
28732 msgid "See also: L</lsetxattr>, L<attr(5)>."
28733 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
28734
28735 #. type: =head2
28736 #: ../fish/guestfish-actions.pod:4316
28737 msgid "sfdisk"
28738 msgstr "sfdisk"
28739
28740 #. type: verbatim
28741 #: ../fish/guestfish-actions.pod:4318
28742 #, no-wrap
28743 msgid ""
28744 " sfdisk device cyls heads sectors 'lines ...'\n"
28745 "\n"
28746 msgstr ""
28747
28748 #. type: textblock
28749 #: ../fish/guestfish-actions.pod:4340
28750 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
28751 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
28752
28753 #. type: =head2
28754 #: ../fish/guestfish-actions.pod:4353
28755 msgid "sfdiskM"
28756 msgstr "sfdiskM"
28757
28758 #. type: verbatim
28759 #: ../fish/guestfish-actions.pod:4355
28760 #, no-wrap
28761 msgid ""
28762 " sfdiskM device 'lines ...'\n"
28763 "\n"
28764 msgstr ""
28765
28766 #. type: textblock
28767 #: ../fish/guestfish-actions.pod:4357
28768 msgid ""
28769 "This is a simplified interface to the L</sfdisk> command, where partition "
28770 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
28771 "you don't need to specify the cyls, heads and sectors parameters which were "
28772 "rarely if ever used anyway."
28773 msgstr ""
28774
28775 #. type: textblock
28776 #: ../fish/guestfish-actions.pod:4363
28777 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
28778 msgstr ""
28779 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
28780
28781 #. type: =head2
28782 #: ../fish/guestfish-actions.pod:4376
28783 msgid "sfdisk-N"
28784 msgstr "sfdisk-N"
28785
28786 #. type: verbatim
28787 #: ../fish/guestfish-actions.pod:4378
28788 #, no-wrap
28789 msgid ""
28790 " sfdisk-N device partnum cyls heads sectors line\n"
28791 "\n"
28792 msgstr ""
28793
28794 #. type: textblock
28795 #: ../fish/guestfish-actions.pod:4383
28796 msgid ""
28797 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
28798 "cyls/heads/sectors parameters."
28799 msgstr ""
28800
28801 #. type: textblock
28802 #: ../fish/guestfish-actions.pod:4386
28803 msgid "See also: L</part-add>"
28804 msgstr "Див. також L</part-add>"
28805
28806 #. type: =head2
28807 #: ../fish/guestfish-actions.pod:4398
28808 msgid "sfdisk-disk-geometry"
28809 msgstr "sfdisk-disk-geometry"
28810
28811 #. type: verbatim
28812 #: ../fish/guestfish-actions.pod:4400
28813 #, no-wrap
28814 msgid ""
28815 " sfdisk-disk-geometry device\n"
28816 "\n"
28817 msgstr ""
28818 " sfdisk-disk-geometry пристрій\n"
28819 "\n"
28820
28821 #. type: textblock
28822 #: ../fish/guestfish-actions.pod:4402
28823 msgid ""
28824 "This displays the disk geometry of C<device> read from the partition table."
28825 "  Especially in the case where the underlying block device has been resized,"
28826 " this can be different from the kernel's idea of the geometry (see L"
28827 "</sfdisk-kernel-geometry>)."
28828 msgstr ""
28829
28830 #. type: =head2
28831 #: ../fish/guestfish-actions.pod:4410
28832 msgid "sfdisk-kernel-geometry"
28833 msgstr "sfdisk-kernel-geometry"
28834
28835 #. type: verbatim
28836 #: ../fish/guestfish-actions.pod:4412
28837 #, no-wrap
28838 msgid ""
28839 " sfdisk-kernel-geometry device\n"
28840 "\n"
28841 msgstr ""
28842 " sfdisk-kernel-geometry пристрій\n"
28843 "\n"
28844
28845 #. type: =head2
28846 #: ../fish/guestfish-actions.pod:4419
28847 msgid "sfdisk-l"
28848 msgstr "sfdisk-l"
28849
28850 #. type: verbatim
28851 #: ../fish/guestfish-actions.pod:4421
28852 #, no-wrap
28853 msgid ""
28854 " sfdisk-l device\n"
28855 "\n"
28856 msgstr ""
28857 " sfdisk-l пристрій\n"
28858 "\n"
28859
28860 #. type: textblock
28861 #: ../fish/guestfish-actions.pod:4427
28862 msgid "See also: L</part-list>"
28863 msgstr "Див. також L</part-list>"
28864
28865 #. type: =head2
28866 #: ../fish/guestfish-actions.pod:4436
28867 msgid "sh"
28868 msgstr "sh"
28869
28870 #. type: verbatim
28871 #: ../fish/guestfish-actions.pod:4438
28872 #, no-wrap
28873 msgid ""
28874 " sh command\n"
28875 "\n"
28876 msgstr ""
28877 " sh команда\n"
28878 "\n"
28879
28880 #. type: textblock
28881 #: ../fish/guestfish-actions.pod:4443
28882 msgid "This is like L</command>, but passes the command to:"
28883 msgstr ""
28884
28885 #. type: textblock
28886 #: ../fish/guestfish-actions.pod:4451
28887 msgid "All the provisos about L</command> apply to this call."
28888 msgstr ""
28889
28890 #. type: =head2
28891 #: ../fish/guestfish-actions.pod:4453
28892 msgid "sh-lines"
28893 msgstr "sh-lines"
28894
28895 #. type: verbatim
28896 #: ../fish/guestfish-actions.pod:4455
28897 #, no-wrap
28898 msgid ""
28899 " sh-lines command\n"
28900 "\n"
28901 msgstr ""
28902 " sh-lines команда\n"
28903 "\n"
28904
28905 #. type: textblock
28906 #: ../fish/guestfish-actions.pod:4457
28907 msgid ""
28908 "This is the same as L</sh>, but splits the result into a list of lines."
28909 msgstr ""
28910
28911 #. type: textblock
28912 #: ../fish/guestfish-actions.pod:4460
28913 msgid "See also: L</command-lines>"
28914 msgstr "Див. також L</command-lines>"
28915
28916 #. type: =head2
28917 #: ../fish/guestfish-actions.pod:4462
28918 msgid "sleep"
28919 msgstr "sleep"
28920
28921 #. type: verbatim
28922 #: ../fish/guestfish-actions.pod:4464
28923 #, no-wrap
28924 msgid ""
28925 " sleep secs\n"
28926 "\n"
28927 msgstr ""
28928 " sleep час_у_секундах\n"
28929 "\n"
28930
28931 #. type: =head2
28932 #: ../fish/guestfish-actions.pod:4468
28933 msgid "stat"
28934 msgstr "stat"
28935
28936 #. type: verbatim
28937 #: ../fish/guestfish-actions.pod:4470
28938 #, no-wrap
28939 msgid ""
28940 " stat path\n"
28941 "\n"
28942 msgstr ""
28943 " stat шлях\n"
28944 "\n"
28945
28946 #. type: =head2
28947 #: ../fish/guestfish-actions.pod:4476
28948 msgid "statvfs"
28949 msgstr "statvfs"
28950
28951 #. type: verbatim
28952 #: ../fish/guestfish-actions.pod:4478
28953 #, no-wrap
28954 msgid ""
28955 " statvfs path\n"
28956 "\n"
28957 msgstr ""
28958 " statvfs шлях\n"
28959 "\n"
28960
28961 #. type: =head2
28962 #: ../fish/guestfish-actions.pod:4486
28963 msgid "strings"
28964 msgstr "strings"
28965
28966 #. type: verbatim
28967 #: ../fish/guestfish-actions.pod:4488
28968 #, no-wrap
28969 msgid ""
28970 " strings path\n"
28971 "\n"
28972 msgstr ""
28973 " strings шлях\n"
28974 "\n"
28975
28976 #. type: =head2
28977 #: ../fish/guestfish-actions.pod:4496
28978 msgid "strings-e"
28979 msgstr "strings-e"
28980
28981 #. type: verbatim
28982 #: ../fish/guestfish-actions.pod:4498
28983 #, no-wrap
28984 msgid ""
28985 " strings-e encoding path\n"
28986 "\n"
28987 msgstr ""
28988 " strings-e кодування шлях\n"
28989 "\n"
28990
28991 #. type: textblock
28992 #: ../fish/guestfish-actions.pod:4500
28993 msgid ""
28994 "This is like the L</strings> command, but allows you to specify the encoding"
28995 " of strings that are looked for in the source file C<path>."
28996 msgstr ""
28997
28998 #. type: textblock
28999 #: ../fish/guestfish-actions.pod:4510
29000 msgid ""
29001 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
29002 "ISO-8859-X (this is what L</strings> uses)."
29003 msgstr ""
29004
29005 #. type: =head2
29006 #: ../fish/guestfish-actions.pod:4542
29007 msgid "swapoff-device"
29008 msgstr "swapoff-device"
29009
29010 #. type: verbatim
29011 #: ../fish/guestfish-actions.pod:4544
29012 #, no-wrap
29013 msgid ""
29014 " swapoff-device device\n"
29015 "\n"
29016 msgstr ""
29017 " swapoff-device пристрій\n"
29018 "\n"
29019
29020 #. type: textblock
29021 #: ../fish/guestfish-actions.pod:4546
29022 msgid ""
29023 "This command disables the libguestfs appliance swap device or partition "
29024 "named C<device>.  See L</swapon-device>."
29025 msgstr ""
29026
29027 #. type: =head2
29028 #: ../fish/guestfish-actions.pod:4550
29029 msgid "swapoff-file"
29030 msgstr "swapoff-file"
29031
29032 #. type: verbatim
29033 #: ../fish/guestfish-actions.pod:4552
29034 #, no-wrap
29035 msgid ""
29036 " swapoff-file file\n"
29037 "\n"
29038 msgstr ""
29039 " swapoff-file файл\n"
29040 "\n"
29041
29042 #. type: =head2
29043 #: ../fish/guestfish-actions.pod:4556
29044 msgid "swapoff-label"
29045 msgstr "swapoff-label"
29046
29047 #. type: verbatim
29048 #: ../fish/guestfish-actions.pod:4558
29049 #, no-wrap
29050 msgid ""
29051 " swapoff-label label\n"
29052 "\n"
29053 msgstr ""
29054 " swapoff-label мітка\n"
29055 "\n"
29056
29057 #. type: =head2
29058 #: ../fish/guestfish-actions.pod:4563
29059 msgid "swapoff-uuid"
29060 msgstr "swapoff-uuid"
29061
29062 #. type: verbatim
29063 #: ../fish/guestfish-actions.pod:4565
29064 #, no-wrap
29065 msgid ""
29066 " swapoff-uuid uuid\n"
29067 "\n"
29068 msgstr ""
29069 " swapoff-uuid uuid\n"
29070 "\n"
29071
29072 #. type: =head2
29073 #: ../fish/guestfish-actions.pod:4570
29074 msgid "swapon-device"
29075 msgstr "swapon-device"
29076
29077 #. type: verbatim
29078 #: ../fish/guestfish-actions.pod:4572
29079 #, no-wrap
29080 msgid ""
29081 " swapon-device device\n"
29082 "\n"
29083 msgstr ""
29084 " swapon-device пристрій\n"
29085 "\n"
29086
29087 #. type: textblock
29088 #: ../fish/guestfish-actions.pod:4574
29089 msgid ""
29090 "This command enables the libguestfs appliance to use the swap device or "
29091 "partition named C<device>.  The increased memory is made available for all "
29092 "commands, for example those run using L</command> or L</sh>."
29093 msgstr ""
29094
29095 #. type: =head2
29096 #: ../fish/guestfish-actions.pod:4586
29097 msgid "swapon-file"
29098 msgstr "swapon-file"
29099
29100 #. type: verbatim
29101 #: ../fish/guestfish-actions.pod:4588
29102 #, no-wrap
29103 msgid ""
29104 " swapon-file file\n"
29105 "\n"
29106 msgstr ""
29107 " swapon-file файл\n"
29108 "\n"
29109
29110 #. type: textblock
29111 #: ../fish/guestfish-actions.pod:4590
29112 msgid ""
29113 "This command enables swap to a file.  See L</swapon-device> for other notes."
29114 msgstr ""
29115
29116 #. type: =head2
29117 #: ../fish/guestfish-actions.pod:4593
29118 msgid "swapon-label"
29119 msgstr "swapon-label"
29120
29121 #. type: verbatim
29122 #: ../fish/guestfish-actions.pod:4595
29123 #, no-wrap
29124 msgid ""
29125 " swapon-label label\n"
29126 "\n"
29127 msgstr ""
29128 " swapon-label мітка\n"
29129 "\n"
29130
29131 #. type: textblock
29132 #: ../fish/guestfish-actions.pod:4597
29133 msgid ""
29134 "This command enables swap to a labeled swap partition.  See L</swapon-"
29135 "device> for other notes."
29136 msgstr ""
29137
29138 #. type: =head2
29139 #: ../fish/guestfish-actions.pod:4600
29140 msgid "swapon-uuid"
29141 msgstr "swapon-uuid"
29142
29143 #. type: verbatim
29144 #: ../fish/guestfish-actions.pod:4602
29145 #, no-wrap
29146 msgid ""
29147 " swapon-uuid uuid\n"
29148 "\n"
29149 msgstr ""
29150 " swapon-uuid uuid\n"
29151 "\n"
29152
29153 #. type: textblock
29154 #: ../fish/guestfish-actions.pod:4604
29155 msgid ""
29156 "This command enables swap to a swap partition with the given UUID.  See L"
29157 "</swapon-device> for other notes."
29158 msgstr ""
29159
29160 #. type: =head2
29161 #: ../fish/guestfish-actions.pod:4607
29162 msgid "sync"
29163 msgstr "sync"
29164
29165 #. type: verbatim
29166 #: ../fish/guestfish-actions.pod:4609
29167 #, no-wrap
29168 msgid ""
29169 " sync\n"
29170 "\n"
29171 msgstr ""
29172 " sync\n"
29173 "\n"
29174
29175 #. type: =head2
29176 #: ../fish/guestfish-actions.pod:4617
29177 msgid "tail"
29178 msgstr "tail"
29179
29180 #. type: verbatim
29181 #: ../fish/guestfish-actions.pod:4619
29182 #, no-wrap
29183 msgid ""
29184 " tail path\n"
29185 "\n"
29186 msgstr ""
29187 " tail шлях\n"
29188 "\n"
29189
29190 #. type: =head2
29191 #: ../fish/guestfish-actions.pod:4627
29192 msgid "tail-n"
29193 msgstr "tail-n"
29194
29195 #. type: verbatim
29196 #: ../fish/guestfish-actions.pod:4629
29197 #, no-wrap
29198 msgid ""
29199 " tail-n nrlines path\n"
29200 "\n"
29201 msgstr ""
29202
29203 #. type: =head2
29204 #: ../fish/guestfish-actions.pod:4642
29205 msgid "tar-in"
29206 msgstr "tar-in"
29207
29208 #. type: verbatim
29209 #: ../fish/guestfish-actions.pod:4644
29210 #, no-wrap
29211 msgid ""
29212 " tar-in (tarfile|-) directory\n"
29213 "\n"
29214 msgstr ""
29215 " tar-in (файл_tar|-) каталог\n"
29216 "\n"
29217
29218 #. type: textblock
29219 #: ../fish/guestfish-actions.pod:4649
29220 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
29221 msgstr ""
29222
29223 #. type: =head2
29224 #: ../fish/guestfish-actions.pod:4654
29225 msgid "tar-out"
29226 msgstr "tar-out"
29227
29228 #. type: verbatim
29229 #: ../fish/guestfish-actions.pod:4656
29230 #, no-wrap
29231 msgid ""
29232 " tar-out directory (tarfile|-)\n"
29233 "\n"
29234 msgstr ""
29235 " tar-out каталог (файл tar|-)\n"
29236 "\n"
29237
29238 #. type: textblock
29239 #: ../fish/guestfish-actions.pod:4661
29240 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
29241 msgstr ""
29242
29243 #. type: =head2
29244 #: ../fish/guestfish-actions.pod:4666
29245 msgid "tgz-in"
29246 msgstr "tgz-in"
29247
29248 #. type: verbatim
29249 #: ../fish/guestfish-actions.pod:4668
29250 #, no-wrap
29251 msgid ""
29252 " tgz-in (tarball|-) directory\n"
29253 "\n"
29254 msgstr ""
29255 " tgz-in (архів tar|-) каталог\n"
29256 "\n"
29257
29258 #. type: textblock
29259 #: ../fish/guestfish-actions.pod:4673
29260 msgid "To upload an uncompressed tarball, use L</tar-in>."
29261 msgstr ""
29262
29263 #. type: =head2
29264 #: ../fish/guestfish-actions.pod:4677
29265 msgid "tgz-out"
29266 msgstr "tgz-out"
29267
29268 #. type: verbatim
29269 #: ../fish/guestfish-actions.pod:4679
29270 #, no-wrap
29271 msgid ""
29272 " tgz-out directory (tarball|-)\n"
29273 "\n"
29274 msgstr ""
29275 " tgz-out каталог (архів tar|-)\n"
29276 "\n"
29277
29278 #. type: textblock
29279 #: ../fish/guestfish-actions.pod:4684
29280 msgid "To download an uncompressed tarball, use L</tar-out>."
29281 msgstr ""
29282
29283 #. type: =head2
29284 #: ../fish/guestfish-actions.pod:4688
29285 msgid "touch"
29286 msgstr "touch"
29287
29288 #. type: verbatim
29289 #: ../fish/guestfish-actions.pod:4690
29290 #, no-wrap
29291 msgid ""
29292 " touch path\n"
29293 "\n"
29294 msgstr ""
29295 " touch шлях\n"
29296 "\n"
29297
29298 #. type: =head2
29299 #: ../fish/guestfish-actions.pod:4699
29300 msgid "truncate"
29301 msgstr "truncate"
29302
29303 #. type: verbatim
29304 #: ../fish/guestfish-actions.pod:4701
29305 #, no-wrap
29306 msgid ""
29307 " truncate path\n"
29308 "\n"
29309 msgstr ""
29310 " truncate шлях\n"
29311 "\n"
29312
29313 #. type: =head2
29314 #: ../fish/guestfish-actions.pod:4706
29315 msgid "truncate-size"
29316 msgstr "truncate-size"
29317
29318 #. type: verbatim
29319 #: ../fish/guestfish-actions.pod:4708
29320 #, no-wrap
29321 msgid ""
29322 " truncate-size path size\n"
29323 "\n"
29324 msgstr ""
29325 " truncate-size шлях розмір\n"
29326 "\n"
29327
29328 #. type: textblock
29329 #: ../fish/guestfish-actions.pod:4713
29330 msgid ""
29331 "If the current file size is less than C<size> then the file is extended to "
29332 "the required size with zero bytes.  This creates a sparse file (ie. disk "
29333 "blocks are not allocated for the file until you write to it).  To create a "
29334 "non-sparse file of zeroes, use L</fallocate64> instead."
29335 msgstr ""
29336
29337 #. type: =head2
29338 #: ../fish/guestfish-actions.pod:4719
29339 msgid "tune2fs-l"
29340 msgstr "tune2fs-l"
29341
29342 #. type: verbatim
29343 #: ../fish/guestfish-actions.pod:4721
29344 #, no-wrap
29345 msgid ""
29346 " tune2fs-l device\n"
29347 "\n"
29348 msgstr ""
29349 " tune2fs-l пристрій\n"
29350 "\n"
29351
29352 #. type: =head2
29353 #: ../fish/guestfish-actions.pod:4731
29354 msgid "txz-in"
29355 msgstr "txz-in"
29356
29357 #. type: verbatim
29358 #: ../fish/guestfish-actions.pod:4733
29359 #, no-wrap
29360 msgid ""
29361 " txz-in (tarball|-) directory\n"
29362 "\n"
29363 msgstr ""
29364 " txz-in (архів tar|-) каталог\n"
29365 "\n"
29366
29367 #. type: =head2
29368 #: ../fish/guestfish-actions.pod:4740
29369 msgid "txz-out"
29370 msgstr "txz-out"
29371
29372 #. type: verbatim
29373 #: ../fish/guestfish-actions.pod:4742
29374 #, no-wrap
29375 msgid ""
29376 " txz-out directory (tarball|-)\n"
29377 "\n"
29378 msgstr ""
29379 " txz-out каталог (архів tar|-)\n"
29380 "\n"
29381
29382 #. type: =head2
29383 #: ../fish/guestfish-actions.pod:4749
29384 msgid "umask"
29385 msgstr "umask"
29386
29387 #. type: verbatim
29388 #: ../fish/guestfish-actions.pod:4751
29389 #, no-wrap
29390 msgid ""
29391 " umask mask\n"
29392 "\n"
29393 msgstr ""
29394 " umask маска\n"
29395 "\n"
29396
29397 #. type: textblock
29398 #: ../fish/guestfish-actions.pod:4765
29399 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
29400 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
29401
29402 #. type: =head2
29403 #: ../fish/guestfish-actions.pod:4770
29404 msgid "umount"
29405 msgstr "umount"
29406
29407 #. type: =head2
29408 #: ../fish/guestfish-actions.pod:4772
29409 msgid "unmount"
29410 msgstr "unmount"
29411
29412 #. type: verbatim
29413 #: ../fish/guestfish-actions.pod:4774
29414 #, no-wrap
29415 msgid ""
29416 " umount pathordevice\n"
29417 "\n"
29418 msgstr ""
29419 " umount шлях_або_пристрій\n"
29420 "\n"
29421
29422 #. type: =head2
29423 #: ../fish/guestfish-actions.pod:4780
29424 msgid "umount-all"
29425 msgstr "umount-all"
29426
29427 #. type: =head2
29428 #: ../fish/guestfish-actions.pod:4782
29429 msgid "unmount-all"
29430 msgstr "unmount-all"
29431
29432 #. type: verbatim
29433 #: ../fish/guestfish-actions.pod:4784
29434 #, no-wrap
29435 msgid ""
29436 " umount-all\n"
29437 "\n"
29438 msgstr ""
29439 " umount-all\n"
29440 "\n"
29441
29442 #. type: =head2
29443 #: ../fish/guestfish-actions.pod:4790
29444 msgid "upload"
29445 msgstr "upload"
29446
29447 #. type: verbatim
29448 #: ../fish/guestfish-actions.pod:4792
29449 #, no-wrap
29450 msgid ""
29451 " upload (filename|-) remotefilename\n"
29452 "\n"
29453 msgstr ""
29454 " upload (назва_файла|-) назва_віддаленого_файла\n"
29455 "\n"
29456
29457 #. type: textblock
29458 #: ../fish/guestfish-actions.pod:4799
29459 msgid "See also L</download>."
29460 msgstr "Див. також L</download>."
29461
29462 #. type: =head2
29463 #: ../fish/guestfish-actions.pod:4803
29464 msgid "upload-offset"
29465 msgstr "upload-offset"
29466
29467 #. type: verbatim
29468 #: ../fish/guestfish-actions.pod:4805
29469 #, no-wrap
29470 msgid ""
29471 " upload-offset (filename|-) remotefilename offset\n"
29472 "\n"
29473 msgstr ""
29474 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
29475 "\n"
29476
29477 #. type: textblock
29478 #: ../fish/guestfish-actions.pod:4817
29479 msgid ""
29480 "Note that there is no limit on the amount of data that can be uploaded with "
29481 "this call, unlike with L</pwrite>, and this call always writes the full "
29482 "amount unless an error occurs."
29483 msgstr ""
29484
29485 #. type: textblock
29486 #: ../fish/guestfish-actions.pod:4822
29487 msgid "See also L</upload>, L</pwrite>."
29488 msgstr "Див. також L</upload>, L</pwrite>."
29489
29490 #. type: =head2
29491 #: ../fish/guestfish-actions.pod:4826
29492 msgid "utimens"
29493 msgstr "utimens"
29494
29495 #. type: verbatim
29496 #: ../fish/guestfish-actions.pod:4828
29497 #, no-wrap
29498 msgid ""
29499 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
29500 "\n"
29501 msgstr ""
29502
29503 #. type: =head2
29504 #: ../fish/guestfish-actions.pod:4847
29505 msgid "version"
29506 msgstr "version"
29507
29508 #. type: verbatim
29509 #: ../fish/guestfish-actions.pod:4849
29510 #, no-wrap
29511 msgid ""
29512 " version\n"
29513 "\n"
29514 msgstr ""
29515 " version\n"
29516 "\n"
29517
29518 #. type: textblock
29519 #: ../fish/guestfish-actions.pod:4876
29520 msgid ""
29521 "I<Note:> Don't use this call to test for availability of features.  In "
29522 "enterprise distributions we backport features from later versions into "
29523 "earlier versions, making this an unreliable way to test for features.  Use "
29524 "L</available> instead."
29525 msgstr ""
29526
29527 #. type: =head2
29528 #: ../fish/guestfish-actions.pod:4882
29529 msgid "vfs-label"
29530 msgstr "vfs-label"
29531
29532 #. type: verbatim
29533 #: ../fish/guestfish-actions.pod:4884
29534 #, no-wrap
29535 msgid ""
29536 " vfs-label device\n"
29537 "\n"
29538 msgstr ""
29539 " vfs-label пристрій\n"
29540 "\n"
29541
29542 #. type: textblock
29543 #: ../fish/guestfish-actions.pod:4891
29544 msgid "To find a filesystem from the label, use L</findfs-label>."
29545 msgstr ""
29546
29547 #. type: =head2
29548 #: ../fish/guestfish-actions.pod:4893
29549 msgid "vfs-type"
29550 msgstr "vfs-type"
29551
29552 #. type: verbatim
29553 #: ../fish/guestfish-actions.pod:4895
29554 #, no-wrap
29555 msgid ""
29556 " vfs-type device\n"
29557 "\n"
29558 msgstr ""
29559 " vfs-type пристрій\n"
29560 "\n"
29561
29562 #. type: =head2
29563 #: ../fish/guestfish-actions.pod:4905
29564 msgid "vfs-uuid"
29565 msgstr "vfs-uuid"
29566
29567 #. type: verbatim
29568 #: ../fish/guestfish-actions.pod:4907
29569 #, no-wrap
29570 msgid ""
29571 " vfs-uuid device\n"
29572 "\n"
29573 msgstr ""
29574 " vfs-uuid пристрій\n"
29575 "\n"
29576
29577 #. type: textblock
29578 #: ../fish/guestfish-actions.pod:4914
29579 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
29580 msgstr ""
29581
29582 #. type: =head2
29583 #: ../fish/guestfish-actions.pod:4916
29584 msgid "vg-activate"
29585 msgstr "vg-activate"
29586
29587 #. type: verbatim
29588 #: ../fish/guestfish-actions.pod:4918
29589 #, no-wrap
29590 msgid ""
29591 " vg-activate true|false 'volgroups ...'\n"
29592 "\n"
29593 msgstr ""
29594
29595 #. type: =head2
29596 #: ../fish/guestfish-actions.pod:4928
29597 msgid "vg-activate-all"
29598 msgstr "vg-activate-all"
29599
29600 #. type: verbatim
29601 #: ../fish/guestfish-actions.pod:4930
29602 #, no-wrap
29603 msgid ""
29604 " vg-activate-all true|false\n"
29605 "\n"
29606 msgstr ""
29607 " vg-activate-all true|false\n"
29608 "\n"
29609
29610 #. type: =head2
29611 #: ../fish/guestfish-actions.pod:4937
29612 msgid "vgcreate"
29613 msgstr "vgcreate"
29614
29615 #. type: verbatim
29616 #: ../fish/guestfish-actions.pod:4939
29617 #, no-wrap
29618 msgid ""
29619 " vgcreate volgroup 'physvols ...'\n"
29620 "\n"
29621 msgstr ""
29622
29623 #. type: =head2
29624 #: ../fish/guestfish-actions.pod:4944
29625 msgid "vglvuuids"
29626 msgstr "vglvuuids"
29627
29628 #. type: verbatim
29629 #: ../fish/guestfish-actions.pod:4946
29630 #, no-wrap
29631 msgid ""
29632 " vglvuuids vgname\n"
29633 "\n"
29634 msgstr ""
29635
29636 #. type: textblock
29637 #: ../fish/guestfish-actions.pod:4951
29638 msgid ""
29639 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
29640 "logical volumes and volume groups."
29641 msgstr ""
29642
29643 #. type: textblock
29644 #: ../fish/guestfish-actions.pod:4954
29645 msgid "See also L</vgpvuuids>."
29646 msgstr "Див. також L</vgpvuuids>."
29647
29648 #. type: =head2
29649 #: ../fish/guestfish-actions.pod:4956
29650 msgid "vgpvuuids"
29651 msgstr "vgpvuuids"
29652
29653 #. type: verbatim
29654 #: ../fish/guestfish-actions.pod:4958
29655 #, no-wrap
29656 msgid ""
29657 " vgpvuuids vgname\n"
29658 "\n"
29659 msgstr ""
29660
29661 #. type: textblock
29662 #: ../fish/guestfish-actions.pod:4963
29663 msgid ""
29664 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
29665 "physical volumes and volume groups."
29666 msgstr ""
29667
29668 #. type: textblock
29669 #: ../fish/guestfish-actions.pod:4966
29670 msgid "See also L</vglvuuids>."
29671 msgstr "Див. також L</vglvuuids>."
29672
29673 #. type: =head2
29674 #: ../fish/guestfish-actions.pod:4968
29675 msgid "vgremove"
29676 msgstr "vgremove"
29677
29678 #. type: verbatim
29679 #: ../fish/guestfish-actions.pod:4970
29680 #, no-wrap
29681 msgid ""
29682 " vgremove vgname\n"
29683 "\n"
29684 msgstr ""
29685
29686 #. type: =head2
29687 #: ../fish/guestfish-actions.pod:4977
29688 msgid "vgrename"
29689 msgstr "vgrename"
29690
29691 #. type: verbatim
29692 #: ../fish/guestfish-actions.pod:4979
29693 #, no-wrap
29694 msgid ""
29695 " vgrename volgroup newvolgroup\n"
29696 "\n"
29697 msgstr ""
29698
29699 #. type: =head2
29700 #: ../fish/guestfish-actions.pod:4983
29701 msgid "vgs"
29702 msgstr "vgs"
29703
29704 #. type: verbatim
29705 #: ../fish/guestfish-actions.pod:4985
29706 #, no-wrap
29707 msgid ""
29708 " vgs\n"
29709 "\n"
29710 msgstr ""
29711 " vgs\n"
29712 "\n"
29713
29714 #. type: textblock
29715 #: ../fish/guestfish-actions.pod:4993
29716 msgid "See also L</vgs-full>."
29717 msgstr "Див. також L</vgs-full>."
29718
29719 #. type: =head2
29720 #: ../fish/guestfish-actions.pod:4995
29721 msgid "vgs-full"
29722 msgstr "vgs-full"
29723
29724 #. type: verbatim
29725 #: ../fish/guestfish-actions.pod:4997
29726 #, no-wrap
29727 msgid ""
29728 " vgs-full\n"
29729 "\n"
29730 msgstr ""
29731 " vgs-full\n"
29732 "\n"
29733
29734 #. type: =head2
29735 #: ../fish/guestfish-actions.pod:5002
29736 msgid "vgscan"
29737 msgstr "vgscan"
29738
29739 #. type: verbatim
29740 #: ../fish/guestfish-actions.pod:5004
29741 #, no-wrap
29742 msgid ""
29743 " vgscan\n"
29744 "\n"
29745 msgstr ""
29746 " vgscan\n"
29747 "\n"
29748
29749 #. type: =head2
29750 #: ../fish/guestfish-actions.pod:5009
29751 msgid "vguuid"
29752 msgstr "vguuid"
29753
29754 #. type: verbatim
29755 #: ../fish/guestfish-actions.pod:5011
29756 #, no-wrap
29757 msgid ""
29758 " vguuid vgname\n"
29759 "\n"
29760 msgstr ""
29761
29762 #. type: =head2
29763 #: ../fish/guestfish-actions.pod:5015
29764 msgid "wc-c"
29765 msgstr "wc-c"
29766
29767 #. type: verbatim
29768 #: ../fish/guestfish-actions.pod:5017
29769 #, no-wrap
29770 msgid ""
29771 " wc-c path\n"
29772 "\n"
29773 msgstr ""
29774 " wc-c шлях\n"
29775 "\n"
29776
29777 #. type: =head2
29778 #: ../fish/guestfish-actions.pod:5022
29779 msgid "wc-l"
29780 msgstr "wc-l"
29781
29782 #. type: verbatim
29783 #: ../fish/guestfish-actions.pod:5024
29784 #, no-wrap
29785 msgid ""
29786 " wc-l path\n"
29787 "\n"
29788 msgstr ""
29789 " wc-l шлях\n"
29790 "\n"
29791
29792 #. type: =head2
29793 #: ../fish/guestfish-actions.pod:5029
29794 msgid "wc-w"
29795 msgstr "wc-w"
29796
29797 #. type: verbatim
29798 #: ../fish/guestfish-actions.pod:5031
29799 #, no-wrap
29800 msgid ""
29801 " wc-w path\n"
29802 "\n"
29803 msgstr ""
29804 " wc-w шлях\n"
29805 "\n"
29806
29807 #. type: =head2
29808 #: ../fish/guestfish-actions.pod:5036
29809 msgid "write"
29810 msgstr "write"
29811
29812 #. type: verbatim
29813 #: ../fish/guestfish-actions.pod:5038
29814 #, no-wrap
29815 msgid ""
29816 " write path content\n"
29817 "\n"
29818 msgstr ""
29819 " write шлях дані\n"
29820 "\n"
29821
29822 #. type: textblock
29823 #: ../fish/guestfish-actions.pod:5043
29824 msgid "See also L</write-append>."
29825 msgstr ""
29826
29827 #. type: =head2
29828 #: ../fish/guestfish-actions.pod:5048
29829 msgid "write-append"
29830 msgstr ""
29831
29832 #. type: verbatim
29833 #: ../fish/guestfish-actions.pod:5050
29834 #, no-wrap
29835 msgid ""
29836 " write-append path content\n"
29837 "\n"
29838 msgstr ""
29839
29840 #. type: textblock
29841 #: ../fish/guestfish-actions.pod:5055
29842 msgid "See also L</write>."
29843 msgstr ""
29844
29845 #. type: =head2
29846 #: ../fish/guestfish-actions.pod:5060
29847 msgid "write-file"
29848 msgstr "write-file"
29849
29850 #. type: verbatim
29851 #: ../fish/guestfish-actions.pod:5062
29852 #, no-wrap
29853 msgid ""
29854 " write-file path content size\n"
29855 "\n"
29856 msgstr ""
29857
29858 #. type: =head2
29859 #: ../fish/guestfish-actions.pod:5085
29860 msgid "zegrep"
29861 msgstr "zegrep"
29862
29863 #. type: verbatim
29864 #: ../fish/guestfish-actions.pod:5087
29865 #, no-wrap
29866 msgid ""
29867 " zegrep regex path\n"
29868 "\n"
29869 msgstr ""
29870 " zegrep формальний_вираз шлях\n"
29871 "\n"
29872
29873 #. type: =head2
29874 #: ../fish/guestfish-actions.pod:5095
29875 msgid "zegrepi"
29876 msgstr "zegrepi"
29877
29878 #. type: verbatim
29879 #: ../fish/guestfish-actions.pod:5097
29880 #, no-wrap
29881 msgid ""
29882 " zegrepi regex path\n"
29883 "\n"
29884 msgstr ""
29885
29886 #. type: =head2
29887 #: ../fish/guestfish-actions.pod:5105
29888 msgid "zero"
29889 msgstr "zero"
29890
29891 #. type: verbatim
29892 #: ../fish/guestfish-actions.pod:5107
29893 #, no-wrap
29894 msgid ""
29895 " zero device\n"
29896 "\n"
29897 msgstr ""
29898 " zero пристрій\n"
29899 "\n"
29900
29901 #. type: textblock
29902 #: ../fish/guestfish-actions.pod:5115
29903 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
29904 msgstr ""
29905
29906 #. type: =head2
29907 #: ../fish/guestfish-actions.pod:5118
29908 msgid "zero-device"
29909 msgstr "zero-device"
29910
29911 #. type: verbatim
29912 #: ../fish/guestfish-actions.pod:5120
29913 #, no-wrap
29914 msgid ""
29915 " zero-device device\n"
29916 "\n"
29917 msgstr ""
29918 " zero-device пристрій\n"
29919 "\n"
29920
29921 #. type: textblock
29922 #: ../fish/guestfish-actions.pod:5122
29923 msgid ""
29924 "This command writes zeroes over the entire C<device>.  Compare with L</zero>"
29925 " which just zeroes the first few blocks of a device."
29926 msgstr ""
29927
29928 #. type: =head2
29929 #: ../fish/guestfish-actions.pod:5129
29930 msgid "zerofree"
29931 msgstr "zerofree"
29932
29933 #. type: verbatim
29934 #: ../fish/guestfish-actions.pod:5131
29935 #, no-wrap
29936 msgid ""
29937 " zerofree device\n"
29938 "\n"
29939 msgstr ""
29940 " zerofree пристрій\n"
29941 "\n"
29942
29943 #. type: =head2
29944 #: ../fish/guestfish-actions.pod:5144
29945 msgid "zfgrep"
29946 msgstr "zfgrep"
29947
29948 #. type: verbatim
29949 #: ../fish/guestfish-actions.pod:5146
29950 #, no-wrap
29951 msgid ""
29952 " zfgrep pattern path\n"
29953 "\n"
29954 msgstr ""
29955 " zfgrep шаблон шлях\n"
29956 "\n"
29957
29958 #. type: =head2
29959 #: ../fish/guestfish-actions.pod:5154
29960 msgid "zfgrepi"
29961 msgstr "zfgrepi"
29962
29963 #. type: verbatim
29964 #: ../fish/guestfish-actions.pod:5156
29965 #, no-wrap
29966 msgid ""
29967 " zfgrepi pattern path\n"
29968 "\n"
29969 msgstr ""
29970 " zfgrepi шаблон шлях\n"
29971 "\n"
29972
29973 #. type: =head2
29974 #: ../fish/guestfish-actions.pod:5164
29975 msgid "zfile"
29976 msgstr "zfile"
29977
29978 #. type: verbatim
29979 #: ../fish/guestfish-actions.pod:5166
29980 #, no-wrap
29981 msgid ""
29982 " zfile meth path\n"
29983 "\n"
29984 msgstr ""
29985 " zfile метод шлях\n"
29986 "\n"
29987
29988 #. type: textblock
29989 #: ../fish/guestfish-actions.pod:5173
29990 msgid ""
29991 "Since 1.0.63, use L</file> instead which can now process compressed files."
29992 msgstr ""
29993
29994 #. type: =head2
29995 #: ../fish/guestfish-actions.pod:5183
29996 msgid "zgrep"
29997 msgstr "zgrep"
29998
29999 #. type: verbatim
30000 #: ../fish/guestfish-actions.pod:5185
30001 #, no-wrap
30002 msgid ""
30003 " zgrep regex path\n"
30004 "\n"
30005 msgstr ""
30006 " zgrep формальний_вираз шлях\n"
30007 "\n"
30008
30009 #. type: =head2
30010 #: ../fish/guestfish-actions.pod:5193
30011 msgid "zgrepi"
30012 msgstr "zgrepi"
30013
30014 #. type: verbatim
30015 #: ../fish/guestfish-actions.pod:5195
30016 #, no-wrap
30017 msgid ""
30018 " zgrepi regex path\n"
30019 "\n"
30020 msgstr ""
30021 " zgrepi формальний_вираз шлях\n"
30022 "\n"
30023
30024 #. type: =head2
30025 #: ../fish/guestfish-commands.pod:1
30026 msgid "alloc"
30027 msgstr "alloc"
30028
30029 #. type: =head2
30030 #: ../fish/guestfish-commands.pod:3
30031 msgid "allocate"
30032 msgstr ""
30033
30034 #. type: verbatim
30035 #: ../fish/guestfish-commands.pod:5
30036 #, no-wrap
30037 msgid ""
30038 " alloc filename size\n"
30039 "\n"
30040 msgstr ""
30041
30042 #. type: textblock
30043 #: ../fish/guestfish-commands.pod:7
30044 msgid ""
30045 "This creates an empty (zeroed) file of the given size, and then adds so it "
30046 "can be further examined."
30047 msgstr ""
30048
30049 #. type: textblock
30050 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:182
30051 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
30052 msgstr ""
30053
30054 #. type: textblock
30055 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:184
30056 msgid "Size can be specified using standard suffixes, eg. C<1M>."
30057 msgstr ""
30058
30059 #. type: textblock
30060 #: ../fish/guestfish-commands.pod:14
30061 msgid ""
30062 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
30063 "image, see L</PREPARED DISK IMAGES>."
30064 msgstr ""
30065
30066 #. type: =head2
30067 #: ../fish/guestfish-commands.pod:17
30068 msgid "copy-in"
30069 msgstr "copy-in"
30070
30071 #. type: verbatim
30072 #: ../fish/guestfish-commands.pod:19
30073 #, no-wrap
30074 msgid ""
30075 " copy-in local [local ...] /remotedir\n"
30076 "\n"
30077 msgstr ""
30078
30079 #. type: textblock
30080 #: ../fish/guestfish-commands.pod:21
30081 msgid ""
30082 "C<copy-in> copies local files or directories recursively into the disk "
30083 "image, placing them in the directory called C</remotedir> (which must "
30084 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and"
30085 " other commands as necessary."
30086 msgstr ""
30087
30088 #. type: textblock
30089 #: ../fish/guestfish-commands.pod:26
30090 msgid ""
30091 "Multiple local files and directories can be specified, but the last "
30092 "parameter must always be a remote directory.  Wildcards cannot be used."
30093 msgstr ""
30094
30095 #. type: =head2
30096 #: ../fish/guestfish-commands.pod:30
30097 msgid "copy-out"
30098 msgstr "copy-out"
30099
30100 #. type: verbatim
30101 #: ../fish/guestfish-commands.pod:32
30102 #, no-wrap
30103 msgid ""
30104 " copy-out remote [remote ...] localdir\n"
30105 "\n"
30106 msgstr ""
30107
30108 #. type: textblock
30109 #: ../fish/guestfish-commands.pod:34
30110 msgid ""
30111 "C<copy-out> copies remote files or directories recursively out of the disk "
30112 "image, placing them on the host disk in a local directory called C<localdir>"
30113 " (which must exist).  This guestfish meta-command turns into a sequence of "
30114 "L</download>, L</tar-out> and other commands as necessary."
30115 msgstr ""
30116
30117 #. type: textblock
30118 #: ../fish/guestfish-commands.pod:40
30119 msgid ""
30120 "Multiple remote files and directories can be specified, but the last "
30121 "parameter must always be a local directory.  To download to the current "
30122 "directory, use C<.> as in:"
30123 msgstr ""
30124
30125 #. type: verbatim
30126 #: ../fish/guestfish-commands.pod:44
30127 #, no-wrap
30128 msgid ""
30129 " copy-out /home .\n"
30130 "\n"
30131 msgstr ""
30132 " copy-out /home .\n"
30133 "\n"
30134
30135 #. type: textblock
30136 #: ../fish/guestfish-commands.pod:46
30137 msgid ""
30138 "Wildcards cannot be used in the ordinary command, but you can use them with "
30139 "the help of L</glob> like this:"
30140 msgstr ""
30141
30142 #. type: verbatim
30143 #: ../fish/guestfish-commands.pod:49
30144 #, no-wrap
30145 msgid ""
30146 " glob copy-out /home/* .\n"
30147 "\n"
30148 msgstr ""
30149 " glob copy-out /home/* .\n"
30150 "\n"
30151
30152 #. type: =head2
30153 #: ../fish/guestfish-commands.pod:51
30154 msgid "display"
30155 msgstr ""
30156
30157 #. type: verbatim
30158 #: ../fish/guestfish-commands.pod:53
30159 #, no-wrap
30160 msgid ""
30161 " display filename\n"
30162 "\n"
30163 msgstr ""
30164
30165 #. type: textblock
30166 #: ../fish/guestfish-commands.pod:55
30167 msgid ""
30168 "Use C<display> (a graphical display program) to display an image file.  It "
30169 "downloads the file, and runs C<display> on it."
30170 msgstr ""
30171
30172 #. type: textblock
30173 #: ../fish/guestfish-commands.pod:58
30174 msgid ""
30175 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
30176 "environment variable.  For example to use the GNOME display program:"
30177 msgstr ""
30178
30179 #. type: verbatim
30180 #: ../fish/guestfish-commands.pod:61
30181 #, no-wrap
30182 msgid ""
30183 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
30184 "\n"
30185 msgstr ""
30186
30187 #. type: textblock
30188 #: ../fish/guestfish-commands.pod:63
30189 msgid "See also L<display(1)>."
30190 msgstr ""
30191
30192 #. type: =head2
30193 #: ../fish/guestfish-commands.pod:65
30194 msgid "echo"
30195 msgstr "echo"
30196
30197 #. type: verbatim
30198 #: ../fish/guestfish-commands.pod:67
30199 #, no-wrap
30200 msgid ""
30201 " echo [params ...]\n"
30202 "\n"
30203 msgstr ""
30204 " echo [параметри...]\n"
30205 "\n"
30206
30207 #. type: textblock
30208 #: ../fish/guestfish-commands.pod:69
30209 msgid "This echos the parameters to the terminal."
30210 msgstr ""
30211
30212 #. type: =head2
30213 #: ../fish/guestfish-commands.pod:71
30214 msgid "edit"
30215 msgstr "edit"
30216
30217 #. type: =head2
30218 #: ../fish/guestfish-commands.pod:73
30219 msgid "vi"
30220 msgstr "vi"
30221
30222 #. type: =head2
30223 #: ../fish/guestfish-commands.pod:75
30224 msgid "emacs"
30225 msgstr "emacs"
30226
30227 #. type: verbatim
30228 #: ../fish/guestfish-commands.pod:77
30229 #, no-wrap
30230 msgid ""
30231 " edit filename\n"
30232 "\n"
30233 msgstr ""
30234 " edit назва_файла\n"
30235 "\n"
30236
30237 #. type: textblock
30238 #: ../fish/guestfish-commands.pod:79
30239 msgid ""
30240 "This is used to edit a file.  It downloads the file, edits it locally using "
30241 "your editor, then uploads the result."
30242 msgstr ""
30243
30244 #. type: textblock
30245 #: ../fish/guestfish-commands.pod:82
30246 msgid ""
30247 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
30248 "or C<emacs> you will get those corresponding editors."
30249 msgstr ""
30250
30251 #. type: =head2
30252 #: ../fish/guestfish-commands.pod:86
30253 msgid "glob"
30254 msgstr "glob"
30255
30256 #. type: verbatim
30257 #: ../fish/guestfish-commands.pod:88
30258 #, no-wrap
30259 msgid ""
30260 " glob command args...\n"
30261 "\n"
30262 msgstr ""
30263 " glob команда параметри...\n"
30264 "\n"
30265
30266 #. type: textblock
30267 #: ../fish/guestfish-commands.pod:90
30268 msgid ""
30269 "Expand wildcards in any paths in the args list, and run C<command> "
30270 "repeatedly on each matching path."
30271 msgstr ""
30272
30273 #. type: textblock
30274 #: ../fish/guestfish-commands.pod:93
30275 msgid "See L</WILDCARDS AND GLOBBING>."
30276 msgstr "Див. L</WILDCARDS AND GLOBBING>."
30277
30278 #. type: =head2
30279 #: ../fish/guestfish-commands.pod:95
30280 msgid "hexedit"
30281 msgstr "hexedit"
30282
30283 #. type: verbatim
30284 #: ../fish/guestfish-commands.pod:97
30285 #, no-wrap
30286 msgid ""
30287 " hexedit <filename|device>\n"
30288 " hexedit <filename|device> <max>\n"
30289 " hexedit <filename|device> <start> <max>\n"
30290 "\n"
30291 msgstr ""
30292
30293 #. type: textblock
30294 #: ../fish/guestfish-commands.pod:101
30295 msgid ""
30296 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
30297 "device."
30298 msgstr ""
30299
30300 #. type: textblock
30301 #: ../fish/guestfish-commands.pod:104
30302 msgid ""
30303 "This command works by downloading potentially the whole file or device, "
30304 "editing it locally, then uploading it.  If the file or device is large, you "
30305 "have to specify which part you wish to edit by using C<max> and/or C<start> "
30306 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
30307 "usual modifiers allowed such as C<1M> (1 megabyte)."
30308 msgstr ""
30309
30310 #. type: textblock
30311 #: ../fish/guestfish-commands.pod:111
30312 msgid "For example to edit the first few sectors of a disk you might do:"
30313 msgstr ""
30314
30315 #. type: verbatim
30316 #: ../fish/guestfish-commands.pod:114
30317 #, no-wrap
30318 msgid ""
30319 " hexedit /dev/sda 1M\n"
30320 "\n"
30321 msgstr ""
30322 " hexedit /dev/sda 1M\n"
30323 "\n"
30324
30325 #. type: textblock
30326 #: ../fish/guestfish-commands.pod:116
30327 msgid ""
30328 "which would allow you to edit anywhere within the first megabyte of the "
30329 "disk."
30330 msgstr ""
30331
30332 #. type: textblock
30333 #: ../fish/guestfish-commands.pod:119
30334 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
30335 msgstr ""
30336
30337 #. type: verbatim
30338 #: ../fish/guestfish-commands.pod:121
30339 #, no-wrap
30340 msgid ""
30341 " hexedit /dev/sda1 0x400 0x400\n"
30342 "\n"
30343 msgstr ""
30344 " hexedit /dev/sda1 0x400 0x400\n"
30345 "\n"
30346
30347 #. type: textblock
30348 #: ../fish/guestfish-commands.pod:123
30349 msgid "(assuming the superblock is in the standard location)."
30350 msgstr ""
30351
30352 #. type: textblock
30353 #: ../fish/guestfish-commands.pod:125
30354 msgid ""
30355 "This command requires the external L<hexedit(1)> program.  You can specify "
30356 "another program to use by setting the C<HEXEDITOR> environment variable."
30357 msgstr ""
30358
30359 #. type: textblock
30360 #: ../fish/guestfish-commands.pod:129
30361 msgid "See also L</hexdump>."
30362 msgstr "Див. також L</hexdump>."
30363
30364 #. type: =head2
30365 #: ../fish/guestfish-commands.pod:131
30366 msgid "lcd"
30367 msgstr "lcd"
30368
30369 #. type: verbatim
30370 #: ../fish/guestfish-commands.pod:133
30371 #, no-wrap
30372 msgid ""
30373 " lcd directory\n"
30374 "\n"
30375 msgstr ""
30376
30377 #. type: textblock
30378 #: ../fish/guestfish-commands.pod:135
30379 msgid ""
30380 "Change the local directory, ie. the current directory of guestfish itself."
30381 msgstr ""
30382
30383 #. type: textblock
30384 #: ../fish/guestfish-commands.pod:138
30385 msgid "Note that C<!cd> won't do what you might expect."
30386 msgstr ""
30387
30388 #. type: =head2
30389 #: ../fish/guestfish-commands.pod:140
30390 msgid "man"
30391 msgstr "man"
30392
30393 #. type: =head2
30394 #: ../fish/guestfish-commands.pod:142
30395 msgid "manual"
30396 msgstr ""
30397
30398 #. type: verbatim
30399 #: ../fish/guestfish-commands.pod:144
30400 #, no-wrap
30401 msgid ""
30402 "  man\n"
30403 "\n"
30404 msgstr ""
30405 "  man\n"
30406 "\n"
30407
30408 #. type: textblock
30409 #: ../fish/guestfish-commands.pod:146
30410 msgid "Opens the manual page for guestfish."
30411 msgstr ""
30412
30413 #. type: =head2
30414 #: ../fish/guestfish-commands.pod:148
30415 msgid "more"
30416 msgstr "more"
30417
30418 #. type: =head2
30419 #: ../fish/guestfish-commands.pod:150
30420 msgid "less"
30421 msgstr "less"
30422
30423 #. type: verbatim
30424 #: ../fish/guestfish-commands.pod:152
30425 #, no-wrap
30426 msgid ""
30427 " more filename\n"
30428 "\n"
30429 msgstr ""
30430
30431 #. type: verbatim
30432 #: ../fish/guestfish-commands.pod:154
30433 #, no-wrap
30434 msgid ""
30435 " less filename\n"
30436 "\n"
30437 msgstr ""
30438
30439 #. type: textblock
30440 #: ../fish/guestfish-commands.pod:156
30441 msgid "This is used to view a file."
30442 msgstr ""
30443
30444 #. type: textblock
30445 #: ../fish/guestfish-commands.pod:158
30446 msgid ""
30447 "The default viewer is C<$PAGER>.  However if you use the alternate command "
30448 "C<less> you will get the C<less> command specifically."
30449 msgstr ""
30450
30451 #. type: =head2
30452 #: ../fish/guestfish-commands.pod:161
30453 msgid "reopen"
30454 msgstr "reopen"
30455
30456 #. type: verbatim
30457 #: ../fish/guestfish-commands.pod:163
30458 #, no-wrap
30459 msgid ""
30460 "  reopen\n"
30461 "\n"
30462 msgstr ""
30463
30464 #. type: textblock
30465 #: ../fish/guestfish-commands.pod:165
30466 msgid ""
30467 "Close and reopen the libguestfs handle.  It is not necessary to use this "
30468 "normally, because the handle is closed properly when guestfish exits.  "
30469 "However this is occasionally useful for testing."
30470 msgstr ""
30471
30472 #. type: =head2
30473 #: ../fish/guestfish-commands.pod:169
30474 msgid "sparse"
30475 msgstr "sparse"
30476
30477 #. type: verbatim
30478 #: ../fish/guestfish-commands.pod:171
30479 #, no-wrap
30480 msgid ""
30481 " sparse filename size\n"
30482 "\n"
30483 msgstr ""
30484
30485 #. type: textblock
30486 #: ../fish/guestfish-commands.pod:173
30487 msgid ""
30488 "This creates an empty sparse file of the given size, and then adds so it can"
30489 " be further examined."
30490 msgstr ""
30491
30492 #. type: textblock
30493 #: ../fish/guestfish-commands.pod:176
30494 msgid ""
30495 "In all respects it works the same as the L</alloc> command, except that the "
30496 "image file is allocated sparsely, which means that disk blocks are not "
30497 "assigned to the file until they are needed.  Sparse disk files only use "
30498 "space when written to, but they are slower and there is a danger you could "
30499 "run out of real disk space during a write operation."
30500 msgstr ""
30501
30502 #. type: =head2
30503 #: ../fish/guestfish-commands.pod:186
30504 msgid "supported"
30505 msgstr "supported"
30506
30507 #. type: verbatim
30508 #: ../fish/guestfish-commands.pod:188
30509 #, no-wrap
30510 msgid ""
30511 " supported\n"
30512 "\n"
30513 msgstr ""
30514 " supported\n"
30515 "\n"
30516
30517 #. type: textblock
30518 #: ../fish/guestfish-commands.pod:190
30519 msgid ""
30520 "This command returns a list of the optional groups known to the daemon, and "
30521 "indicates which ones are supported by this build of the libguestfs "
30522 "appliance."
30523 msgstr ""
30524
30525 #. type: textblock
30526 #: ../fish/guestfish-commands.pod:194
30527 msgid "See also L<guestfs(3)/AVAILABILITY>."
30528 msgstr ""
30529
30530 #. type: =head2
30531 #: ../fish/guestfish-commands.pod:196
30532 msgid "time"
30533 msgstr "time"
30534
30535 #. type: verbatim
30536 #: ../fish/guestfish-commands.pod:198
30537 #, no-wrap
30538 msgid ""
30539 " time command args...\n"
30540 "\n"
30541 msgstr ""
30542
30543 #. type: textblock
30544 #: ../fish/guestfish-commands.pod:200
30545 msgid ""
30546 "Run the command as usual, but print the elapsed time afterwards.  This can "
30547 "be useful for benchmarking operations."
30548 msgstr ""
30549
30550 #. type: textblock
30551 #: ../test-tool/libguestfs-test-tool.pod:5
30552 msgid "libguestfs-test-tool - End user tests for libguestfs"
30553 msgstr ""
30554
30555 #. type: verbatim
30556 #: ../test-tool/libguestfs-test-tool.pod:9
30557 #, no-wrap
30558 msgid ""
30559 " libguestfs-test-tool [--options]\n"
30560 "\n"
30561 msgstr ""
30562
30563 #. type: textblock
30564 #: ../test-tool/libguestfs-test-tool.pod:13
30565 msgid ""
30566 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
30567 "and developers, to allow them to check basic libguestfs functionality is "
30568 "working.  This is needed because libguestfs occasionally breaks for reasons "
30569 "beyond our control: usually because of changes in the underlying qemu or "
30570 "kernel packages, or the host environment."
30571 msgstr ""
30572
30573 #. type: textblock
30574 #: ../test-tool/libguestfs-test-tool.pod:20
30575 msgid "If you suspect a problem in libguestfs, then just run:"
30576 msgstr ""
30577
30578 #. type: verbatim
30579 #: ../test-tool/libguestfs-test-tool.pod:22
30580 #, no-wrap
30581 msgid ""
30582 " libguestfs-test-tool\n"
30583 "\n"
30584 msgstr ""
30585
30586 #. type: textblock
30587 #: ../test-tool/libguestfs-test-tool.pod:24
30588 msgid "It will print lots of diagnostic messages."
30589 msgstr ""
30590
30591 #. type: textblock
30592 #: ../test-tool/libguestfs-test-tool.pod:26
30593 msgid "If it runs to completion successfully, you will see this near the end:"
30594 msgstr ""
30595
30596 #. type: verbatim
30597 #: ../test-tool/libguestfs-test-tool.pod:28
30598 #, no-wrap
30599 msgid ""
30600 " ===== TEST FINISHED OK =====\n"
30601 "\n"
30602 msgstr ""
30603
30604 #. type: textblock
30605 #: ../test-tool/libguestfs-test-tool.pod:30
30606 msgid "and the test tool will exit with code 0."
30607 msgstr ""
30608
30609 #. type: textblock
30610 #: ../test-tool/libguestfs-test-tool.pod:32
30611 msgid ""
30612 "If it fails (and/or exits with non-zero error code), please paste the "
30613 "B<complete, unedited> output of the test tool into a bug report.  More "
30614 "information about reporting bugs can be found on the "
30615 "L<http://libguestfs.org/> website."
30616 msgstr ""
30617
30618 #. type: =item
30619 #: ../test-tool/libguestfs-test-tool.pod:41
30620 msgid "I<--help>"
30621 msgstr "I<--help>"
30622
30623 #. type: textblock
30624 #: ../test-tool/libguestfs-test-tool.pod:43
30625 msgid "Display short usage information and exit."
30626 msgstr ""
30627
30628 #. type: =item
30629 #: ../test-tool/libguestfs-test-tool.pod:45
30630 msgid "I<--qemu qemu_binary>"
30631 msgstr "I<--qemu виконуваний_файл_qemu>"
30632
30633 #. type: textblock
30634 #: ../test-tool/libguestfs-test-tool.pod:47
30635 msgid ""
30636 "If you have downloaded another qemu binary, point this option at the full "
30637 "path of the binary to try it."
30638 msgstr ""
30639
30640 #. type: =item
30641 #: ../test-tool/libguestfs-test-tool.pod:50
30642 msgid "I<--qemudir qemu_source_dir>"
30643 msgstr ""
30644
30645 #. type: textblock
30646 #: ../test-tool/libguestfs-test-tool.pod:52
30647 msgid ""
30648 "If you have compiled qemu from source, point this option at the source "
30649 "directory to try it."
30650 msgstr ""
30651
30652 #. type: =item
30653 #: ../test-tool/libguestfs-test-tool.pod:55
30654 msgid "I<--timeout N>"
30655 msgstr "I<--timeout N>"
30656
30657 #. type: textblock
30658 #: ../test-tool/libguestfs-test-tool.pod:57
30659 msgid ""
30660 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
30661 "does not usually need to be adjusted unless your machine is very slow."
30662 msgstr ""
30663
30664 #. type: =head1
30665 #: ../test-tool/libguestfs-test-tool.pod:63
30666 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
30667 msgstr ""
30668
30669 #. type: textblock
30670 #: ../test-tool/libguestfs-test-tool.pod:65
30671 msgid ""
30672 "If you have compiled another version of qemu from source and would like to "
30673 "try that, then you can use the I<--qemudir> option to point to the qemu "
30674 "source directory."
30675 msgstr ""
30676
30677 #. type: textblock
30678 #: ../test-tool/libguestfs-test-tool.pod:69
30679 msgid ""
30680 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
30681 "option to point to the binary."
30682 msgstr ""
30683
30684 #. type: textblock
30685 #: ../test-tool/libguestfs-test-tool.pod:72
30686 msgid ""
30687 "When using an alternate qemu with libguestfs, usually you would need to "
30688 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)>)."
30689 "  libguestfs-test-tool writes a temporary qemu wrapper script when you use "
30690 "either of the I<--qemudir> or I<--qemu> options."
30691 msgstr ""
30692
30693 #. type: textblock
30694 #: ../test-tool/libguestfs-test-tool.pod:79
30695 msgid ""
30696 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
30697 "I<1> if there was an error."
30698 msgstr ""
30699
30700 #. type: textblock
30701 #: ../test-tool/libguestfs-test-tool.pod:84
30702 msgid ""
30703 "For the full list of environment variables which may affect libguestfs, "
30704 "please see the L<guestfs(3)> manual page."
30705 msgstr ""
30706
30707 #. type: textblock
30708 #: ../test-tool/libguestfs-test-tool.pod:89
30709 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
30710 msgstr ""
30711
30712 #. type: textblock
30713 #: ../fuse/guestmount.pod:5
30714 msgid ""
30715 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
30716 msgstr ""
30717
30718 #. type: verbatim
30719 #: ../fuse/guestmount.pod:9
30720 #, no-wrap
30721 msgid ""
30722 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
30723 "\n"
30724 msgstr ""
30725
30726 #. type: verbatim
30727 #: ../fuse/guestmount.pod:11
30728 #, no-wrap
30729 msgid ""
30730 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
30731 "\n"
30732 msgstr ""
30733
30734 #. type: verbatim
30735 #: ../fuse/guestmount.pod:13
30736 #, no-wrap
30737 msgid ""
30738 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
30739 "\n"
30740 msgstr ""
30741
30742 #. type: textblock
30743 #: ../fuse/guestmount.pod:17
30744 msgid ""
30745 "You must I<not> use C<guestmount> in read-write mode on live virtual "
30746 "machines.  If you do this, you risk disk corruption in the VM."
30747 msgstr ""
30748
30749 #. type: textblock
30750 #: ../fuse/guestmount.pod:22
30751 msgid ""
30752 "The guestmount program can be used to mount virtual machine filesystems and "
30753 "other disk images on the host.  It uses libguestfs for access to the guest "
30754 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
30755 "a mountable device."
30756 msgstr ""
30757
30758 #. type: textblock
30759 #: ../fuse/guestmount.pod:27
30760 msgid ""
30761 "Along with other options, you have to give at least one device (I<-a> "
30762 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m>"
30763 " option) or use the I<-i> inspection option.  How this works is better "
30764 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
30765 "below."
30766 msgstr ""
30767
30768 #. type: textblock
30769 #: ../fuse/guestmount.pod:33
30770 msgid ""
30771 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
30772 "by you, and the filesystem will not be visible to any other users unless you"
30773 " make certain global configuration changes to C</etc/fuse.conf>.  To unmount"
30774 " the filesystem, use the C<fusermount -u> command."
30775 msgstr ""
30776
30777 #. type: textblock
30778 #: ../fuse/guestmount.pod:41
30779 msgid ""
30780 "For a typical Windows guest which has its main filesystem on the first "
30781 "partition:"
30782 msgstr ""
30783
30784 #. type: verbatim
30785 #: ../fuse/guestmount.pod:44
30786 #, no-wrap
30787 msgid ""
30788 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
30789 "\n"
30790 msgstr ""
30791
30792 #. type: textblock
30793 #: ../fuse/guestmount.pod:46
30794 msgid ""
30795 "For a typical Linux guest which has a /boot filesystem on the first "
30796 "partition, and the root filesystem on a logical volume:"
30797 msgstr ""
30798
30799 #. type: verbatim
30800 #: ../fuse/guestmount.pod:49
30801 #, no-wrap
30802 msgid ""
30803 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
30804 "\n"
30805 msgstr ""
30806
30807 #. type: textblock
30808 #: ../fuse/guestmount.pod:51
30809 msgid "To get libguestfs to detect guest mountpoints for you:"
30810 msgstr ""
30811
30812 #. type: verbatim
30813 #: ../fuse/guestmount.pod:53
30814 #, no-wrap
30815 msgid ""
30816 " guestmount -a guest.img -i --ro /mnt\n"
30817 "\n"
30818 msgstr ""
30819
30820 #. type: textblock
30821 #: ../fuse/guestmount.pod:55
30822 msgid "For a libvirt guest called \"Guest\" you could do:"
30823 msgstr ""
30824
30825 #. type: verbatim
30826 #: ../fuse/guestmount.pod:57
30827 #, no-wrap
30828 msgid ""
30829 " guestmount -d Guest -i --ro /mnt\n"
30830 "\n"
30831 msgstr ""
30832
30833 #. type: textblock
30834 #: ../fuse/guestmount.pod:59
30835 msgid ""
30836 "If you don't know what filesystems are contained in a guest or disk image, "
30837 "use L<virt-filesystems(1)> first:"
30838 msgstr ""
30839
30840 #. type: verbatim
30841 #: ../fuse/guestmount.pod:62
30842 #, no-wrap
30843 msgid ""
30844 " virt-filesystems MyGuest\n"
30845 "\n"
30846 msgstr ""
30847
30848 #. type: textblock
30849 #: ../fuse/guestmount.pod:64
30850 msgid ""
30851 "If you want to trace the libguestfs calls but without excessive debugging "
30852 "information, we recommend:"
30853 msgstr ""
30854
30855 #. type: verbatim
30856 #: ../fuse/guestmount.pod:67
30857 #, no-wrap
30858 msgid ""
30859 " guestmount [...] --trace /mnt\n"
30860 "\n"
30861 msgstr ""
30862
30863 #. type: textblock
30864 #: ../fuse/guestmount.pod:69
30865 msgid "If you want to debug the program, we recommend:"
30866 msgstr ""
30867
30868 #. type: verbatim
30869 #: ../fuse/guestmount.pod:71
30870 #, no-wrap
30871 msgid ""
30872 " guestmount [...] --trace --verbose /mnt\n"
30873 "\n"
30874 msgstr ""
30875
30876 #. type: =head1
30877 #: ../fuse/guestmount.pod:73
30878 msgid "NOTES"
30879 msgstr "ПРИМІТКИ"
30880
30881 #. type: =head2
30882 #: ../fuse/guestmount.pod:75
30883 msgid "Other users cannot see the filesystem by default"
30884 msgstr ""
30885
30886 #. type: textblock
30887 #: ../fuse/guestmount.pod:77
30888 msgid ""
30889 "If you mount a filesystem as one user (eg. root), then other users will not "
30890 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
30891 "option when mounting:"
30892 msgstr ""
30893
30894 #. type: verbatim
30895 #: ../fuse/guestmount.pod:81
30896 #, no-wrap
30897 msgid ""
30898 " sudo guestmount [...] -o allow_other /mnt\n"
30899 "\n"
30900 msgstr ""
30901
30902 #. type: =item
30903 #: ../fuse/guestmount.pod:87
30904 msgid "B<-a image> | B<--add image>"
30905 msgstr ""
30906
30907 #. type: textblock
30908 #: ../fuse/guestmount.pod:89
30909 msgid "Add a block device or virtual machine image."
30910 msgstr ""
30911
30912 #. type: =item
30913 #: ../fuse/guestmount.pod:94
30914 msgid "B<-c URI> | B<--connect URI>"
30915 msgstr ""
30916
30917 #. type: =item
30918 #: ../fuse/guestmount.pod:100
30919 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
30920 msgstr ""
30921
30922 #. type: =item
30923 #: ../fuse/guestmount.pod:108
30924 msgid "B<--dir-cache-timeout N>"
30925 msgstr "B<--dir-cache-timeout N>"
30926
30927 #. type: textblock
30928 #: ../fuse/guestmount.pod:110
30929 msgid ""
30930 "Set the readdir cache timeout to I<N> seconds, the default being 60 seconds."
30931 "  The readdir cache [actually, there are several semi-independent caches] is"
30932 " populated after a readdir(2) call with the stat and extended attributes of "
30933 "the files in the directory, in anticipation that they will be requested soon"
30934 " after."
30935 msgstr ""
30936
30937 #. type: textblock
30938 #: ../fuse/guestmount.pod:116
30939 msgid ""
30940 "There is also a different attribute cache implemented by FUSE (see the FUSE "
30941 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
30942 "requests, only cache existing ones."
30943 msgstr ""
30944
30945 #. type: =item
30946 #: ../fuse/guestmount.pod:127
30947 msgid "B<--format=raw|qcow2|..> | B<--format>"
30948 msgstr ""
30949
30950 #. type: textblock
30951 #: ../fuse/guestmount.pod:134
30952 msgid ""
30953 "If you have untrusted raw-format guest disk images, you should use this "
30954 "option to specify the disk format.  This avoids a possible security problem "
30955 "with malicious guests (CVE-2010-3851).  See also "
30956 "L<guestfs(3)/guestfs_add_drive_opts>."
30957 msgstr ""
30958
30959 #. type: =item
30960 #: ../fuse/guestmount.pod:139
30961 msgid "B<--fuse-help>"
30962 msgstr "B<--fuse-help>"
30963
30964 #. type: textblock
30965 #: ../fuse/guestmount.pod:141
30966 msgid "Display help on special FUSE options (see I<-o> below)."
30967 msgstr ""
30968
30969 #. type: textblock
30970 #: ../fuse/guestmount.pod:145
30971 msgid "Display brief help and exit."
30972 msgstr ""
30973
30974 #. type: =item
30975 #: ../fuse/guestmount.pod:147
30976 msgid "B<-i> | B<--inspector>"
30977 msgstr ""
30978
30979 #. type: textblock
30980 #: ../fuse/guestmount.pod:167
30981 msgid ""
30982 "Mount the named partition or logical volume on the given mountpoint B<in the"
30983 " guest> (this has nothing to do with mountpoints in the host)."
30984 msgstr ""
30985
30986 #. type: textblock
30987 #: ../fuse/guestmount.pod:170
30988 msgid ""
30989 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
30990 "something on C</>."
30991 msgstr ""
30992
30993 #. type: =item
30994 #: ../fuse/guestmount.pod:183
30995 msgid "B<-n> | B<--no-sync>"
30996 msgstr ""
30997
30998 #. type: textblock
30999 #: ../fuse/guestmount.pod:185
31000 msgid ""
31001 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
31002 "unmounted.  If you specify this option, then we don't attempt to sync the "
31003 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
31004 msgstr ""
31005
31006 #. type: =item
31007 #: ../fuse/guestmount.pod:190
31008 msgid "B<-o option> | B<--option option>"
31009 msgstr ""
31010
31011 #. type: textblock
31012 #: ../fuse/guestmount.pod:192
31013 msgid "Pass extra options to FUSE."
31014 msgstr ""
31015
31016 #. type: textblock
31017 #: ../fuse/guestmount.pod:194
31018 msgid ""
31019 "To get a list of all the extra options supported by FUSE, use the command "
31020 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
31021 "of them are a good idea."
31022 msgstr ""
31023
31024 #. type: verbatim
31025 #: ../fuse/guestmount.pod:198
31026 #, no-wrap
31027 msgid ""
31028 " guestmount --fuse-help\n"
31029 "\n"
31030 msgstr ""
31031
31032 #. type: textblock
31033 #: ../fuse/guestmount.pod:200
31034 msgid "Some potentially useful FUSE options:"
31035 msgstr ""
31036
31037 #. type: =item
31038 #: ../fuse/guestmount.pod:204
31039 msgid "B<-o allow_other>"
31040 msgstr ""
31041
31042 #. type: textblock
31043 #: ../fuse/guestmount.pod:206
31044 msgid "Allow other users to see the filesystem."
31045 msgstr ""
31046
31047 #. type: =item
31048 #: ../fuse/guestmount.pod:208
31049 msgid "B<-o attr_timeout=N>"
31050 msgstr "B<-o attr_timeout=N>"
31051
31052 #. type: textblock
31053 #: ../fuse/guestmount.pod:210
31054 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
31055 msgstr ""
31056
31057 #. type: =item
31058 #: ../fuse/guestmount.pod:212
31059 msgid "B<-o kernel_cache>"
31060 msgstr ""
31061
31062 #. type: textblock
31063 #: ../fuse/guestmount.pod:214
31064 msgid ""
31065 "Allow the kernel to cache files (reduces the number of reads that have to go"
31066 " through the L<guestfs(3)> API).  This is generally a good idea if you can "
31067 "afford the extra memory usage."
31068 msgstr ""
31069
31070 #. type: =item
31071 #: ../fuse/guestmount.pod:218
31072 msgid "B<-o uid=N> B<-o gid=N>"
31073 msgstr ""
31074
31075 #. type: textblock
31076 #: ../fuse/guestmount.pod:220
31077 msgid ""
31078 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
31079 "the chosen values."
31080 msgstr ""
31081
31082 #. type: =item
31083 #: ../fuse/guestmount.pod:225
31084 msgid "B<-r> | B<--ro>"
31085 msgstr ""
31086
31087 #. type: textblock
31088 #: ../fuse/guestmount.pod:227
31089 msgid ""
31090 "Add devices and mount everything read-only.  Also disallow writes and make "
31091 "the disk appear read-only to FUSE."
31092 msgstr ""
31093
31094 #. type: textblock
31095 #: ../fuse/guestmount.pod:230
31096 msgid ""
31097 "This is highly recommended if you are not going to edit the guest disk.  If "
31098 "the guest is running and this option is I<not> supplied, then there is a "
31099 "strong risk of disk corruption in the guest.  We try to prevent this from "
31100 "happening, but it is not always possible."
31101 msgstr ""
31102
31103 #. type: textblock
31104 #: ../fuse/guestmount.pod:235
31105 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
31106 msgstr ""
31107
31108 #. type: textblock
31109 #: ../fuse/guestmount.pod:239
31110 msgid "Enable SELinux support for the guest."
31111 msgstr ""
31112
31113 #. type: =item
31114 #: ../fuse/guestmount.pod:241
31115 msgid "B<-v> | B<--verbose>"
31116 msgstr ""
31117
31118 #. type: textblock
31119 #: ../fuse/guestmount.pod:243
31120 msgid "Enable verbose messages from underlying libguestfs."
31121 msgstr ""
31122
31123 #. type: =item
31124 #: ../fuse/guestmount.pod:245
31125 msgid "B<-V> | B<--version>"
31126 msgstr ""
31127
31128 #. type: textblock
31129 #: ../fuse/guestmount.pod:247
31130 msgid "Display the program version and exit."
31131 msgstr ""
31132
31133 #. type: =item
31134 #: ../fuse/guestmount.pod:249
31135 msgid "B<-w> | B<--rw>"
31136 msgstr ""
31137
31138 #. type: textblock
31139 #: ../fuse/guestmount.pod:254 ../fuse/guestmount.pod:275
31140 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
31141 msgstr ""
31142
31143 #. type: =item
31144 #: ../fuse/guestmount.pod:256
31145 msgid "B<-x> | B<--trace>"
31146 msgstr ""
31147
31148 #. type: textblock
31149 #: ../fuse/guestmount.pod:258
31150 msgid "Trace libguestfs calls and entry into each FUSE function."
31151 msgstr ""
31152
31153 #. type: textblock
31154 #: ../fuse/guestmount.pod:260
31155 msgid "This also stops the daemon from forking into the background."
31156 msgstr ""
31157
31158 #. type: textblock
31159 #: ../fuse/guestmount.pod:281
31160 msgid ""
31161 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L"
31162 "<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
31163 "L<http://fuse.sf.net/>."
31164 msgstr ""
31165
31166 #. type: textblock
31167 #: ../fuse/guestmount.pod:296
31168 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
31169 msgstr ""
31170
31171 #. type: textblock
31172 #: ../tools/virt-win-reg.pl:37
31173 msgid ""
31174 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
31175 "guest"
31176 msgstr ""
31177
31178 #. type: verbatim
31179 #: ../tools/virt-win-reg.pl:41
31180 #, no-wrap
31181 msgid ""
31182 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
31183 "\n"
31184 msgstr ""
31185
31186 #. type: verbatim
31187 #: ../tools/virt-win-reg.pl:43
31188 #, no-wrap
31189 msgid ""
31190 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
31191 "\n"
31192 msgstr ""
31193
31194 #. type: verbatim
31195 #: ../tools/virt-win-reg.pl:45
31196 #, no-wrap
31197 msgid ""
31198 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
31199 "\n"
31200 msgstr ""
31201
31202 #. type: verbatim
31203 #: ../tools/virt-win-reg.pl:47
31204 #, no-wrap
31205 msgid ""
31206 " virt-win-reg --merge domname [input.reg ...]\n"
31207 "\n"
31208 msgstr ""
31209
31210 #. type: verbatim
31211 #: ../tools/virt-win-reg.pl:49
31212 #, no-wrap
31213 msgid ""
31214 " virt-win-reg [--options] disk.img ... # instead of domname\n"
31215 "\n"
31216 msgstr ""
31217
31218 #. type: textblock
31219 #: ../tools/virt-win-reg.pl:53
31220 msgid ""
31221 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
31222 "virtual machines.  If you do this, you I<will> get irreversible disk "
31223 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
31224 "but doesn't catch all cases."
31225 msgstr ""
31226
31227 #. type: textblock
31228 #: ../tools/virt-win-reg.pl:58
31229 msgid ""
31230 "Modifying the Windows Registry is an inherently risky operation.  The format"
31231 " is deliberately obscure and undocumented, and Registry changes can leave "
31232 "the system unbootable.  Therefore when using the I<--merge> option, make "
31233 "sure you have a reliable backup first."
31234 msgstr ""
31235
31236 #. type: textblock
31237 #: ../tools/virt-win-reg.pl:65
31238 msgid ""
31239 "This program can export and merge Windows Registry entries from a Windows "
31240 "guest."
31241 msgstr ""
31242
31243 #. type: textblock
31244 #: ../tools/virt-win-reg.pl:68
31245 msgid ""
31246 "The first parameter is the libvirt guest name or the raw disk image of a "
31247 "Windows guest."
31248 msgstr ""
31249
31250 #. type: textblock
31251 #: ../tools/virt-win-reg.pl:71
31252 msgid ""
31253 "If I<--merge> is I<not> specified, then the chosen registry key is "
31254 "displayed/exported (recursively).  For example:"
31255 msgstr ""
31256
31257 #. type: verbatim
31258 #: ../tools/virt-win-reg.pl:74
31259 #, no-wrap
31260 msgid ""
31261 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
31262 "\n"
31263 msgstr ""
31264
31265 #. type: textblock
31266 #: ../tools/virt-win-reg.pl:76
31267 msgid ""
31268 "You can also display single values from within registry keys, for example:"
31269 msgstr ""
31270
31271 #. type: verbatim
31272 #: ../tools/virt-win-reg.pl:79
31273 #, no-wrap
31274 msgid ""
31275 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
31276 " $ virt-win-reg Windows7 $cvkey ProductName\n"
31277 " Windows 7 Enterprise\n"
31278 "\n"
31279 msgstr ""
31280
31281 #. type: textblock
31282 #: ../tools/virt-win-reg.pl:83
31283 msgid ""
31284 "With I<--merge>, you can merge a textual regedit file into the Windows "
31285 "Registry:"
31286 msgstr ""
31287
31288 #. type: verbatim
31289 #: ../tools/virt-win-reg.pl:86
31290 #, no-wrap
31291 msgid ""
31292 " $ virt-win-reg --merge Windows7 changes.reg\n"
31293 "\n"
31294 msgstr ""
31295
31296 #. type: =head1
31297 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
31298 msgid "NOTE"
31299 msgstr "ПРИМІТКА"
31300
31301 #. type: textblock
31302 #: ../tools/virt-win-reg.pl:90
31303 msgid ""
31304 "This program is only meant for simple access to the registry.  If you want "
31305 "to do complicated things with the registry, we suggest you download the "
31306 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)>"
31307 " and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
31308 "L<hivexregedit(1)>."
31309 msgstr ""
31310
31311 #. type: textblock
31312 #: ../tools/virt-win-reg.pl:106 ../tools/virt-list-filesystems.pl:63
31313 #: ../tools/virt-tar.pl:113 ../tools/virt-make-fs.pl:163
31314 #: ../tools/virt-list-partitions.pl:64
31315 msgid "Display brief help."
31316 msgstr ""
31317
31318 #. type: textblock
31319 #: ../tools/virt-win-reg.pl:114 ../tools/virt-list-filesystems.pl:71
31320 #: ../tools/virt-tar.pl:121 ../tools/virt-make-fs.pl:171
31321 #: ../tools/virt-list-partitions.pl:72
31322 msgid "Display version number and exit."
31323 msgstr "Показати дані щодо версії і завершити роботу."
31324
31325 #. type: =item
31326 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
31327 msgid "B<--debug>"
31328 msgstr "B<--debug>"
31329
31330 #. type: textblock
31331 #: ../tools/virt-win-reg.pl:122
31332 msgid "Enable debugging messages."
31333 msgstr ""
31334
31335 #. type: =item
31336 #: ../tools/virt-win-reg.pl:128 ../tools/virt-list-filesystems.pl:77
31337 #: ../tools/virt-tar.pl:127 ../tools/virt-list-partitions.pl:78
31338 msgid "B<--connect URI> | B<-c URI>"
31339 msgstr ""
31340
31341 #. type: textblock
31342 #: ../tools/virt-win-reg.pl:130 ../tools/virt-list-filesystems.pl:79
31343 #: ../tools/virt-tar.pl:129 ../tools/virt-list-partitions.pl:80
31344 msgid ""
31345 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
31346 "to the default libvirt hypervisor."
31347 msgstr ""
31348
31349 #. type: textblock
31350 #: ../tools/virt-win-reg.pl:133 ../tools/virt-list-filesystems.pl:82
31351 #: ../tools/virt-tar.pl:132 ../tools/virt-list-partitions.pl:83
31352 msgid ""
31353 "If you specify guest block devices directly, then libvirt is not used at "
31354 "all."
31355 msgstr ""
31356
31357 #. type: =item
31358 #: ../tools/virt-win-reg.pl:140 ../tools/virt-list-filesystems.pl:89
31359 #: ../tools/virt-tar.pl:139 ../tools/virt-list-partitions.pl:90
31360 msgid "B<--format> raw"
31361 msgstr ""
31362
31363 #. type: textblock
31364 #: ../tools/virt-win-reg.pl:142 ../tools/virt-list-filesystems.pl:91
31365 #: ../tools/virt-tar.pl:141 ../tools/virt-list-partitions.pl:92
31366 msgid ""
31367 "Specify the format of disk images given on the command line.  If this is "
31368 "omitted then the format is autodetected from the content of the disk image."
31369 msgstr ""
31370
31371 #. type: textblock
31372 #: ../tools/virt-win-reg.pl:146 ../tools/virt-list-filesystems.pl:95
31373 #: ../tools/virt-tar.pl:145 ../tools/virt-list-partitions.pl:96
31374 msgid ""
31375 "If disk images are requested from libvirt, then this program asks libvirt "
31376 "for this information.  In this case, the value of the format parameter is "
31377 "ignored."
31378 msgstr ""
31379
31380 #. type: textblock
31381 #: ../tools/virt-win-reg.pl:150 ../tools/virt-list-filesystems.pl:99
31382 #: ../tools/virt-tar.pl:149 ../tools/virt-list-partitions.pl:100
31383 msgid ""
31384 "If working with untrusted raw-format guest disk images, you should ensure "
31385 "the format is always specified."
31386 msgstr ""
31387
31388 #. type: =item
31389 #: ../tools/virt-win-reg.pl:157
31390 msgid "B<--merge>"
31391 msgstr "B<--merge>"
31392
31393 #. type: textblock
31394 #: ../tools/virt-win-reg.pl:159
31395 msgid ""
31396 "In merge mode, this merges a textual regedit file into the Windows Registry "
31397 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
31398 "displays or exports Registry entries instead."
31399 msgstr ""
31400
31401 #. type: textblock
31402 #: ../tools/virt-win-reg.pl:163
31403 msgid ""
31404 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
31405 "result in disk corruption.  However exporting (without this flag)  is always"
31406 " safe."
31407 msgstr ""
31408
31409 #. type: =item
31410 #: ../tools/virt-win-reg.pl:171
31411 msgid "B<--encoding> UTF-16LE|ASCII"
31412 msgstr ""
31413
31414 #. type: textblock
31415 #: ../tools/virt-win-reg.pl:173
31416 msgid ""
31417 "When merging (only), you may need to specify the encoding for strings to be "
31418 "used in the hive file.  This is explained in detail in "
31419 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
31420 msgstr ""
31421
31422 #. type: textblock
31423 #: ../tools/virt-win-reg.pl:177
31424 msgid ""
31425 "The default is to use UTF-16LE, which should work with recent versions of "
31426 "Windows."
31427 msgstr ""
31428
31429 #. type: =item
31430 #: ../tools/virt-win-reg.pl:184
31431 msgid "B<--unsafe-printable-strings>"
31432 msgstr ""
31433
31434 #. type: textblock
31435 #: ../tools/virt-win-reg.pl:186
31436 msgid ""
31437 "When exporting (only), assume strings are UTF-16LE and print them as strings"
31438 " instead of hex sequences.  Remove the final zero codepoint from strings if "
31439 "present."
31440 msgstr ""
31441
31442 #. type: textblock
31443 #: ../tools/virt-win-reg.pl:190
31444 msgid ""
31445 "This is unsafe and does not preserve the fidelity of strings in the original"
31446 " Registry for various reasons:"
31447 msgstr ""
31448
31449 #. type: textblock
31450 #: ../tools/virt-win-reg.pl:197
31451 msgid ""
31452 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
31453 "other encodings will be corrupted by this transformation."
31454 msgstr ""
31455
31456 #. type: textblock
31457 #: ../tools/virt-win-reg.pl:202
31458 msgid ""
31459 "Assumes that everything which has type 1 or 2 is really a string and that "
31460 "everything else is not a string, but the type field in real Registries is "
31461 "not reliable."
31462 msgstr ""
31463
31464 #. type: textblock
31465 #: ../tools/virt-win-reg.pl:208
31466 msgid ""
31467 "Loses information about whether a zero codepoint followed the string in the "
31468 "Registry or not."
31469 msgstr ""
31470
31471 #. type: textblock
31472 #: ../tools/virt-win-reg.pl:213
31473 msgid ""
31474 "This all happens because the Registry itself contains no information about "
31475 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
31476 msgstr ""
31477
31478 #. type: textblock
31479 #: ../tools/virt-win-reg.pl:217
31480 msgid ""
31481 "You should only use this option for quick hacking and debugging of the "
31482 "Registry contents, and I<never> use it if the output is going to be passed "
31483 "into another program or stored in another Registry."
31484 msgstr ""
31485
31486 #. type: =head1
31487 #: ../tools/virt-win-reg.pl:554
31488 msgid "SUPPORTED SYSTEMS"
31489 msgstr ""
31490
31491 #. type: textblock
31492 #: ../tools/virt-win-reg.pl:556
31493 msgid ""
31494 "The program currently supports Windows NT-derived guests starting with "
31495 "Windows XP through to at least Windows 7."
31496 msgstr ""
31497
31498 #. type: textblock
31499 #: ../tools/virt-win-reg.pl:559
31500 msgid "The following Registry keys are supported:"
31501 msgstr ""
31502
31503 #. type: =item
31504 #: ../tools/virt-win-reg.pl:563
31505 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
31506 msgstr ""
31507
31508 #. type: =item
31509 #: ../tools/virt-win-reg.pl:565
31510 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
31511 msgstr ""
31512
31513 #. type: =item
31514 #: ../tools/virt-win-reg.pl:567
31515 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
31516 msgstr ""
31517
31518 #. type: =item
31519 #: ../tools/virt-win-reg.pl:569
31520 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
31521 msgstr ""
31522
31523 #. type: =item
31524 #: ../tools/virt-win-reg.pl:571
31525 msgid "C<HKEY_USERS\\.DEFAULT>"
31526 msgstr ""
31527
31528 #. type: =item
31529 #: ../tools/virt-win-reg.pl:573
31530 msgid "C<HKEY_USERS\\I<SID>>"
31531 msgstr ""
31532
31533 #. type: textblock
31534 #: ../tools/virt-win-reg.pl:575
31535 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
31536 msgstr ""
31537
31538 #. type: =item
31539 #: ../tools/virt-win-reg.pl:577
31540 msgid "C<HKEY_USERS\\I<username>>"
31541 msgstr ""
31542
31543 #. type: textblock
31544 #: ../tools/virt-win-reg.pl:579
31545 msgid ""
31546 "where I<username> is a local user name (this is a libguestfs extension)."
31547 msgstr ""
31548
31549 #. type: textblock
31550 #: ../tools/virt-win-reg.pl:583
31551 msgid ""
31552 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for"
31553 " C<HKEY_USERS>."
31554 msgstr ""
31555
31556 #. type: textblock
31557 #: ../tools/virt-win-reg.pl:586
31558 msgid ""
31559 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
31560 "supported (there is no \"current user\")."
31561 msgstr ""
31562
31563 #. type: =head1
31564 #: ../tools/virt-win-reg.pl:589
31565 msgid "ENCODING"
31566 msgstr "КОДУВАННЯ"
31567
31568 #. type: textblock
31569 #: ../tools/virt-win-reg.pl:591
31570 msgid ""
31571 "C<virt-win-reg> expects that regedit files have already been reencoded in "
31572 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
31573 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
31574 "Windows-style line endings, you may need to reencode the whole file before "
31575 "or after processing."
31576 msgstr ""
31577
31578 #. type: textblock
31579 #: ../tools/virt-win-reg.pl:597
31580 msgid ""
31581 "To reencode a file from Windows format to Linux (before processing it with "
31582 "the I<--merge> option), you would do something like this:"
31583 msgstr ""
31584
31585 #. type: verbatim
31586 #: ../tools/virt-win-reg.pl:600
31587 #, no-wrap
31588 msgid ""
31589 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
31590 "\n"
31591 msgstr ""
31592
31593 #. type: textblock
31594 #: ../tools/virt-win-reg.pl:602
31595 msgid ""
31596 "To go in the opposite direction, after exporting and before sending the file"
31597 " to a Windows user, do something like this:"
31598 msgstr ""
31599
31600 #. type: verbatim
31601 #: ../tools/virt-win-reg.pl:605
31602 #, no-wrap
31603 msgid ""
31604 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
31605 "\n"
31606 msgstr ""
31607
31608 #. type: textblock
31609 #: ../tools/virt-win-reg.pl:607
31610 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
31611 msgstr ""
31612
31613 #. type: textblock
31614 #: ../tools/virt-win-reg.pl:609
31615 msgid ""
31616 "If you are unsure about the current encoding, use the L<file(1)> command.  "
31617 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
31618 "style (CRLF) line endings, like this:"
31619 msgstr ""
31620
31621 #. type: verbatim
31622 #: ../tools/virt-win-reg.pl:613
31623 #, no-wrap
31624 msgid ""
31625 " $ file software.reg\n"
31626 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
31627 " with CRLF line terminators\n"
31628 "\n"
31629 msgstr ""
31630
31631 #. type: textblock
31632 #: ../tools/virt-win-reg.pl:617
31633 msgid "This file would need conversion before you could I<--merge> it."
31634 msgstr ""
31635
31636 #. type: =head1
31637 #: ../tools/virt-win-reg.pl:619
31638 msgid "CurrentControlSet etc."
31639 msgstr ""
31640
31641 #. type: textblock
31642 #: ../tools/virt-win-reg.pl:621
31643 msgid ""
31644 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
31645 "Registry at the level of the hive file, and therefore you cannot modify "
31646 "these."
31647 msgstr ""
31648
31649 #. type: textblock
31650 #: ../tools/virt-win-reg.pl:625
31651 msgid ""
31652 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
31653 "circumstances it might refer to another control set.  The way to find out is"
31654 " to look at the C<HKLM\\SYSTEM\\Select> key:"
31655 msgstr ""
31656
31657 #. type: verbatim
31658 #: ../tools/virt-win-reg.pl:629
31659 #, no-wrap
31660 msgid ""
31661 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
31662 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
31663 " \"Current\"=dword:00000001\n"
31664 " \"Default\"=dword:00000001\n"
31665 " \"Failed\"=dword:00000000\n"
31666 " \"LastKnownGood\"=dword:00000002\n"
31667 "\n"
31668 msgstr ""
31669
31670 #. type: textblock
31671 #: ../tools/virt-win-reg.pl:636
31672 msgid "\"Current\" is the one which Windows will choose when it boots."
31673 msgstr ""
31674
31675 #. type: textblock
31676 #: ../tools/virt-win-reg.pl:638
31677 msgid ""
31678 "Similarly, other C<Current...> keys in the path may need to be replaced."
31679 msgstr ""
31680
31681 #. type: =head1
31682 #: ../tools/virt-win-reg.pl:641
31683 msgid "WINDOWS TIPS"
31684 msgstr ""
31685
31686 #. type: textblock
31687 #: ../tools/virt-win-reg.pl:643
31688 msgid ""
31689 "Note that some of these tips modify the guest disk image.  The guest I<must>"
31690 " be shut off, else you will get disk corruption."
31691 msgstr ""
31692
31693 #. type: =head2
31694 #: ../tools/virt-win-reg.pl:646
31695 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
31696 msgstr ""
31697
31698 #. type: textblock
31699 #: ../tools/virt-win-reg.pl:648
31700 msgid ""
31701 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
31702 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
31703 "is uploaded into C<C:\\>:"
31704 msgstr ""
31705
31706 #. type: verbatim
31707 #: ../tools/virt-win-reg.pl:652
31708 #, no-wrap
31709 msgid ""
31710 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
31711 "\n"
31712 msgstr ""
31713
31714 #. type: textblock
31715 #: ../tools/virt-win-reg.pl:654
31716 msgid "Prepare a regedit file containing the registry change:"
31717 msgstr ""
31718
31719 #. type: verbatim
31720 #: ../tools/virt-win-reg.pl:656
31721 #, no-wrap
31722 msgid ""
31723 " cat > test.reg <<'EOF'\n"
31724 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
31725 " \"Test\"=\"c:\\\\test.bat\"\n"
31726 " EOF\n"
31727 "\n"
31728 msgstr ""
31729
31730 #. type: textblock
31731 #: ../tools/virt-win-reg.pl:661
31732 msgid ""
31733 "In this example we use the key C<RunOnce> which means that the script will "
31734 "run precisely once when the first user logs in.  If you want it to run every"
31735 " time a user logs in, replace C<RunOnce> with C<Run>."
31736 msgstr ""
31737
31738 #. type: textblock
31739 #: ../tools/virt-win-reg.pl:665
31740 msgid "Now update the registry:"
31741 msgstr ""
31742
31743 #. type: verbatim
31744 #: ../tools/virt-win-reg.pl:667
31745 #, no-wrap
31746 msgid ""
31747 " virt-win-reg --merge WindowsGuest test.reg\n"
31748 "\n"
31749 msgstr ""
31750
31751 #. type: =head2
31752 #: ../tools/virt-win-reg.pl:669
31753 msgid "INSTALLING A SERVICE"
31754 msgstr ""
31755
31756 #. type: textblock
31757 #: ../tools/virt-win-reg.pl:671
31758 msgid ""
31759 "This section assumes you are familiar with Windows services, and you either "
31760 "have a program which handles the Windows Service Control Protocol directly "
31761 "or you want to run any program using a service wrapper like SrvAny or the "
31762 "free RHSrvAny."
31763 msgstr ""
31764
31765 #. type: textblock
31766 #: ../tools/virt-win-reg.pl:676
31767 msgid ""
31768 "First upload the program and optionally the service wrapper.  In this case "
31769 "the test program is called C<test.exe> and we are using the RHSrvAny "
31770 "wrapper:"
31771 msgstr ""
31772
31773 #. type: verbatim
31774 #: ../tools/virt-win-reg.pl:680
31775 #, no-wrap
31776 msgid ""
31777 " guestfish -i -d WindowsGuest <<EOF\n"
31778 "   upload rhsrvany.exe /rhsrvany.exe\n"
31779 "   upload test.exe /test.exe\n"
31780 " EOF\n"
31781 "\n"
31782 msgstr ""
31783
31784 #. type: textblock
31785 #: ../tools/virt-win-reg.pl:685
31786 msgid ""
31787 "Prepare a regedit file containing the registry changes.  In this example, "
31788 "the first registry change is needed for the service itself or the service "
31789 "wrapper (if used).  The second registry change is only needed because I am "
31790 "using the RHSrvAny service wrapper."
31791 msgstr ""
31792
31793 #. type: verbatim
31794 #: ../tools/virt-win-reg.pl:690
31795 #, no-wrap
31796 msgid ""
31797 " cat > service.reg <<'EOF'\n"
31798 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
31799 " \"Type\"=dword:00000010\n"
31800 " \"Start\"=dword:00000002\n"
31801 " \"ErrorControl\"=dword:00000001\n"
31802 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
31803 " \"DisplayName\"=\"RHSrvAny\"\n"
31804 " \"ObjectName\"=\"NetworkService\"\n"
31805 " \n"
31806 msgstr ""
31807
31808 #. type: verbatim
31809 #: ../tools/virt-win-reg.pl:699
31810 #, no-wrap
31811 msgid ""
31812 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
31813 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
31814 " \"PWD\"=\"c:\\\\Temp\"\n"
31815 " EOF\n"
31816 "\n"
31817 msgstr ""
31818
31819 #. type: textblock
31820 #: ../tools/virt-win-reg.pl:710
31821 msgid ""
31822 "For use of C<ControlSet001> see the section above in this manual page.  You "
31823 "may need to adjust this according to the control set that is in use by the "
31824 "guest."
31825 msgstr ""
31826
31827 #. type: textblock
31828 #: ../tools/virt-win-reg.pl:716
31829 msgid ""
31830 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
31831 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
31832 "privileged account."
31833 msgstr ""
31834
31835 #. type: textblock
31836 #: ../tools/virt-win-reg.pl:722
31837 msgid ""
31838 "For the meaning of the magic numbers, see this Microsoft KB article: "
31839 "L<http://support.microsoft.com/kb/103000>."
31840 msgstr ""
31841
31842 #. type: textblock
31843 #: ../tools/virt-win-reg.pl:727
31844 msgid "Update the registry:"
31845 msgstr ""
31846
31847 #. type: verbatim
31848 #: ../tools/virt-win-reg.pl:729
31849 #, no-wrap
31850 msgid ""
31851 " virt-win-reg --merge WindowsGuest service.reg\n"
31852 "\n"
31853 msgstr ""
31854
31855 #. type: =head1
31856 #: ../tools/virt-win-reg.pl:731 ../tools/virt-list-filesystems.pl:182
31857 #: ../tools/virt-tar.pl:279 ../tools/virt-make-fs.pl:532
31858 #: ../tools/virt-list-partitions.pl:250
31859 msgid "SHELL QUOTING"
31860 msgstr ""
31861
31862 #. type: textblock
31863 #: ../tools/virt-win-reg.pl:733
31864 msgid ""
31865 "Be careful when passing parameters containing C<\\> (backslash) in the "
31866 "shell.  Usually you will have to use 'single quotes' or double backslashes "
31867 "(but not both) to protect them from the shell."
31868 msgstr ""
31869
31870 #. type: textblock
31871 #: ../tools/virt-win-reg.pl:737
31872 msgid "Paths and value names are case-insensitive."
31873 msgstr ""
31874
31875 #. type: textblock
31876 #: ../tools/virt-win-reg.pl:739 ../tools/virt-list-filesystems.pl:184
31877 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534
31878 #: ../tools/virt-list-partitions.pl:252
31879 msgid ""
31880 "Libvirt guest names can contain arbitrary characters, some of which have "
31881 "meaning to the shell such as C<#> and space.  You may need to quote or "
31882 "escape these characters on the command line.  See the shell manual page "
31883 "L<sh(1)> for details."
31884 msgstr ""
31885
31886 #. type: textblock
31887 #: ../tools/virt-win-reg.pl:746
31888 msgid ""
31889 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
31890 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
31891 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
31892 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
31893 msgstr ""
31894
31895 #. type: textblock
31896 #: ../tools/virt-win-reg.pl:761 ../tools/virt-make-fs.pl:555
31897 msgid ""
31898 "When reporting bugs, please enable debugging and capture the I<complete> "
31899 "output:"
31900 msgstr ""
31901
31902 #. type: verbatim
31903 #: ../tools/virt-win-reg.pl:764
31904 #, no-wrap
31905 msgid ""
31906 " export LIBGUESTFS_DEBUG=1\n"
31907 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
31908 "\n"
31909 msgstr ""
31910
31911 #. type: textblock
31912 #: ../tools/virt-win-reg.pl:767
31913 msgid ""
31914 "Attach /tmp/virt-win-reg.log to a new bug report at "
31915 "L<https://bugzilla.redhat.com/>"
31916 msgstr ""
31917
31918 #. type: =head1
31919 #: ../tools/virt-win-reg.pl:770 ../tools/virt-list-filesystems.pl:202
31920 #: ../tools/virt-tar.pl:301 ../tools/virt-make-fs.pl:564
31921 #: ../tools/virt-list-partitions.pl:269
31922 msgid "AUTHOR"
31923 msgstr "АВТОР"
31924
31925 #. type: textblock
31926 #: ../tools/virt-win-reg.pl:772 ../tools/virt-list-filesystems.pl:204
31927 #: ../tools/virt-tar.pl:303 ../tools/virt-make-fs.pl:566
31928 #: ../tools/virt-list-partitions.pl:271
31929 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
31930 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
31931
31932 #. type: textblock
31933 #: ../tools/virt-win-reg.pl:776 ../tools/virt-make-fs.pl:570
31934 msgid "Copyright (C) 2010 Red Hat Inc."
31935 msgstr ""
31936
31937 #. type: textblock
31938 #: ../tools/virt-list-filesystems.pl:32
31939 msgid ""
31940 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
31941 msgstr ""
31942
31943 #. type: verbatim
31944 #: ../tools/virt-list-filesystems.pl:36
31945 #, no-wrap
31946 msgid ""
31947 " virt-list-filesystems [--options] domname\n"
31948 "\n"
31949 msgstr ""
31950
31951 #. type: verbatim
31952 #: ../tools/virt-list-filesystems.pl:38
31953 #, no-wrap
31954 msgid ""
31955 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
31956 "\n"
31957 msgstr ""
31958
31959 #. type: textblock
31960 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
31961 msgid ""
31962 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
31963 "replacement."
31964 msgstr ""
31965
31966 #. type: textblock
31967 #: ../tools/virt-list-filesystems.pl:45
31968 msgid ""
31969 "C<virt-list-filesystems> is a command line tool to list the filesystems that"
31970 " are contained in a virtual machine or disk image."
31971 msgstr ""
31972
31973 #. type: textblock
31974 #: ../tools/virt-list-filesystems.pl:49
31975 msgid ""
31976 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
31977 "functionality.  For more complex cases you should look at the "
31978 "L<guestfish(1)> tool."
31979 msgstr ""
31980
31981 #. type: =item
31982 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
31983 msgid "B<-l> | B<--long>"
31984 msgstr ""
31985
31986 #. type: textblock
31987 #: ../tools/virt-list-filesystems.pl:108
31988 msgid ""
31989 "With this option, C<virt-list-filesystems> displays the type of each "
31990 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
31991 msgstr ""
31992
31993 #. type: =item
31994 #: ../tools/virt-list-filesystems.pl:115
31995 msgid "B<-a> | B<--all>"
31996 msgstr "B<-a> | B<--all>"
31997
31998 #. type: textblock
31999 #: ../tools/virt-list-filesystems.pl:117
32000 msgid ""
32001 "Normally we only show mountable filesystems.  If this option is given then "
32002 "swap devices are shown too."
32003 msgstr ""
32004
32005 #. type: textblock
32006 #: ../tools/virt-list-filesystems.pl:191
32007 msgid ""
32008 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
32009 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
32010 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
32011 msgstr ""
32012 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
32013 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
32014 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
32015
32016 #. type: textblock
32017 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:307
32018 msgid "Copyright (C) 2009 Red Hat Inc."
32019 msgstr "© Red Hat Inc., 2009"
32020
32021 #. type: textblock
32022 #: ../tools/virt-tar.pl:33
32023 msgid "virt-tar - Extract or upload files to a virtual machine"
32024 msgstr ""
32025
32026 #. type: verbatim
32027 #: ../tools/virt-tar.pl:37
32028 #, no-wrap
32029 msgid ""
32030 " virt-tar [--options] -x domname directory tarball\n"
32031 "\n"
32032 msgstr ""
32033
32034 #. type: verbatim
32035 #: ../tools/virt-tar.pl:39
32036 #, no-wrap
32037 msgid ""
32038 " virt-tar [--options] -u domname tarball directory\n"
32039 "\n"
32040 msgstr ""
32041
32042 #. type: verbatim
32043 #: ../tools/virt-tar.pl:41
32044 #, no-wrap
32045 msgid ""
32046 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
32047 "\n"
32048 msgstr ""
32049
32050 #. type: verbatim
32051 #: ../tools/virt-tar.pl:43
32052 #, no-wrap
32053 msgid ""
32054 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
32055 "\n"
32056 msgstr ""
32057
32058 #. type: textblock
32059 #: ../tools/virt-tar.pl:47
32060 msgid ""
32061 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
32062 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
32063 msgstr ""
32064
32065 #. type: textblock
32066 #: ../tools/virt-tar.pl:52
32067 msgid "Download C</home> from the VM into a local tarball:"
32068 msgstr ""
32069
32070 #. type: verbatim
32071 #: ../tools/virt-tar.pl:54
32072 #, no-wrap
32073 msgid ""
32074 " virt-tar -x domname /home home.tar\n"
32075 "\n"
32076 msgstr ""
32077
32078 #. type: verbatim
32079 #: ../tools/virt-tar.pl:56
32080 #, no-wrap
32081 msgid ""
32082 " virt-tar -zx domname /home home.tar.gz\n"
32083 "\n"
32084 msgstr ""
32085
32086 #. type: textblock
32087 #: ../tools/virt-tar.pl:58
32088 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
32089 msgstr ""
32090
32091 #. type: verbatim
32092 #: ../tools/virt-tar.pl:60
32093 #, no-wrap
32094 msgid ""
32095 " virt-tar -u domname uploadstuff.tar /tmp\n"
32096 "\n"
32097 msgstr ""
32098
32099 #. type: verbatim
32100 #: ../tools/virt-tar.pl:62
32101 #, no-wrap
32102 msgid ""
32103 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
32104 "\n"
32105 msgstr ""
32106
32107 #. type: textblock
32108 #: ../tools/virt-tar.pl:66
32109 msgid ""
32110 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
32111 "virtual machines.  If you do this, you risk disk corruption in the VM.  C"
32112 "<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
32113 msgstr ""
32114
32115 #. type: textblock
32116 #: ../tools/virt-tar.pl:71
32117 msgid ""
32118 "You can use I<-x> (extract) on live virtual machines, but you might get "
32119 "inconsistent results or errors if there is filesystem activity inside the "
32120 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
32121 "work, but the only way to guarantee consistent results is if the virtual "
32122 "machine is shut down."
32123 msgstr ""
32124
32125 #. type: textblock
32126 #: ../tools/virt-tar.pl:79
32127 msgid ""
32128 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
32129 "parts of a guest filesystem.  There are many possibilities: making backups, "
32130 "uploading data files, snooping on guest activity, fixing or customizing "
32131 "guests, etc."
32132 msgstr ""
32133
32134 #. type: textblock
32135 #: ../tools/virt-tar.pl:84
32136 msgid ""
32137 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
32138 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you"
32139 " should look at the L<guestfish(1)> tool."
32140 msgstr ""
32141
32142 #. type: textblock
32143 #: ../tools/virt-tar.pl:88
32144 msgid ""
32145 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
32146 "its contents (recursively) from the virtual machine into a local tarball.  "
32147 "I<-u> uploads from a local tarball, unpacking it into a directory inside the"
32148 " virtual machine.  You cannot use these two options together."
32149 msgstr ""
32150
32151 #. type: textblock
32152 #: ../tools/virt-tar.pl:94
32153 msgid ""
32154 "In addition, you may need to use the I<-z> (gZip) option to enable "
32155 "compression.  When uploading, you have to specify I<-z> if the upload file "
32156 "is compressed because virt-tar won't detect this on its own."
32157 msgstr ""
32158
32159 #. type: textblock
32160 #: ../tools/virt-tar.pl:98
32161 msgid ""
32162 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
32163 "example it cannot do PKZip files or bzip2 compression.  If you want that "
32164 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of"
32165 " the L<libguestfs(3)> API)."
32166 msgstr ""
32167
32168 #. type: =item
32169 #: ../tools/virt-tar.pl:156
32170 msgid "B<-x> | B<--extract> | B<--download>"
32171 msgstr "B<-x> | B<--extract> | B<--download>"
32172
32173 #. type: =item
32174 #: ../tools/virt-tar.pl:158
32175 msgid "B<-u> | B<--upload>"
32176 msgstr "B<-u> | B<--upload>"
32177
32178 #. type: textblock
32179 #: ../tools/virt-tar.pl:160
32180 msgid ""
32181 "Use I<-x> to extract (download) a directory from a virtual machine to a "
32182 "local tarball."
32183 msgstr ""
32184
32185 #. type: textblock
32186 #: ../tools/virt-tar.pl:163
32187 msgid ""
32188 "Use I<-u> to upload and unpack from a local tarball into a virtual machine."
32189 "  Please read the L</WARNING> section above before using this option."
32190 msgstr ""
32191
32192 #. type: textblock
32193 #: ../tools/virt-tar.pl:167
32194 msgid "You must specify exactly one of these options."
32195 msgstr ""
32196
32197 #. type: =item
32198 #: ../tools/virt-tar.pl:173
32199 msgid "B<-z> | B<--gzip>"
32200 msgstr "B<-z> | B<--gzip>"
32201
32202 #. type: textblock
32203 #: ../tools/virt-tar.pl:175
32204 msgid "Specify that the input or output tarball is gzip-compressed."
32205 msgstr ""
32206
32207 #. type: textblock
32208 #: ../tools/virt-tar.pl:288
32209 msgid ""
32210 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
32211 "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
32212 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
32213 "L<http://libguestfs.org/>."
32214 msgstr ""
32215 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
32216 "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
32217 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
32218 "L<http://libguestfs.org/>."
32219
32220 #. type: textblock
32221 #: ../tools/virt-make-fs.pl:37
32222 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
32223 msgstr ""
32224
32225 #. type: verbatim
32226 #: ../tools/virt-make-fs.pl:41
32227 #, no-wrap
32228 msgid ""
32229 " virt-make-fs [--options] input.tar output.img\n"
32230 "\n"
32231 msgstr ""
32232
32233 #. type: verbatim
32234 #: ../tools/virt-make-fs.pl:43
32235 #, no-wrap
32236 msgid ""
32237 " virt-make-fs [--options] input.tar.gz output.img\n"
32238 "\n"
32239 msgstr ""
32240
32241 #. type: verbatim
32242 #: ../tools/virt-make-fs.pl:45
32243 #, no-wrap
32244 msgid ""
32245 " virt-make-fs [--options] directory output.img\n"
32246 "\n"
32247 msgstr ""
32248
32249 #. type: textblock
32250 #: ../tools/virt-make-fs.pl:49
32251 msgid ""
32252 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
32253 "archive or some files in a directory.  It is similar to tools like "
32254 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
32255 "it can create common filesystem types like ext2/3 or NTFS, which can be "
32256 "useful if you want to attach these filesystems to existing virtual machines "
32257 "(eg. to import large amounts of read-only data to a VM)."
32258 msgstr ""
32259
32260 #. type: textblock
32261 #: ../tools/virt-make-fs.pl:57
32262 msgid "Basic usage is:"
32263 msgstr ""
32264
32265 #. type: verbatim
32266 #: ../tools/virt-make-fs.pl:59
32267 #, no-wrap
32268 msgid ""
32269 " virt-make-fs input output\n"
32270 "\n"
32271 msgstr ""
32272
32273 #. type: textblock
32274 #: ../tools/virt-make-fs.pl:61
32275 msgid ""
32276 "where C<input> is either a directory containing files that you want to add, "
32277 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
32278 "C<output> is a disk image.  The input type is detected automatically.  The "
32279 "output disk image defaults to a raw ext2 image unless you specify extra "
32280 "flags (see L</OPTIONS> below)."
32281 msgstr ""
32282
32283 #. type: =head2
32284 #: ../tools/virt-make-fs.pl:67
32285 msgid "EXTRA SPACE"
32286 msgstr ""
32287
32288 #. type: textblock
32289 #: ../tools/virt-make-fs.pl:69
32290 msgid ""
32291 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
32292 "the files that it contains, but might have extra space.  Depending on how "
32293 "you are going to use the output, you might think this extra space is wasted "
32294 "and want to minimize it, or you might want to leave space so that more files"
32295 " can be added later.  Virt-make-fs defaults to minimizing the extra space, "
32296 "but you can use the I<--size> flag to leave space in the filesystem if you "
32297 "want it."
32298 msgstr ""
32299
32300 #. type: textblock
32301 #: ../tools/virt-make-fs.pl:77
32302 msgid ""
32303 "An alternative way to leave extra space but not make the output image any "
32304 "bigger is to use an alternative disk image format (instead of the default "
32305 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2"
32306 " image format (check your hypervisor supports this before using it).  This "
32307 "allows you to choose a large I<--size> but the extra space won't actually be"
32308 " allocated in the image until you try to store something in it."
32309 msgstr ""
32310
32311 #. type: textblock
32312 #: ../tools/virt-make-fs.pl:85
32313 msgid ""
32314 "Don't forget that you can also use local commands including L<resize2fs(8)> "
32315 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
32316 "to build another image from scratch."
32317 msgstr ""
32318
32319 #. type: =head3
32320 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
32321 #: ../tools/virt-make-fs.pl:142
32322 msgid "EXAMPLE"
32323 msgstr "ПРИКЛАД"
32324
32325 #. type: verbatim
32326 #: ../tools/virt-make-fs.pl:91
32327 #, no-wrap
32328 msgid ""
32329 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
32330 "\n"
32331 msgstr ""
32332 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
32333 "\n"
32334
32335 #. type: =head2
32336 #: ../tools/virt-make-fs.pl:93
32337 msgid "FILESYSTEM TYPE"
32338 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
32339
32340 #. type: textblock
32341 #: ../tools/virt-make-fs.pl:95
32342 msgid ""
32343 "The default filesystem type is C<ext2>.  Just about any filesystem type that"
32344 " libguestfs supports can be used (but I<not> read-only formats like "
32345 "ISO9660).  Here are some of the more common choices:"
32346 msgstr ""
32347
32348 #. type: =item
32349 #: ../tools/virt-make-fs.pl:101
32350 msgid "I<ext3>"
32351 msgstr "I<ext3>"
32352
32353 #. type: textblock
32354 #: ../tools/virt-make-fs.pl:103
32355 msgid ""
32356 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If"
32357 " you are not going to use the filesystem in a way that requires the journal,"
32358 " then this is just wasted overhead."
32359 msgstr ""
32360
32361 #. type: =item
32362 #: ../tools/virt-make-fs.pl:107
32363 msgid "I<ntfs> or I<vfat>"
32364 msgstr "I<ntfs> або I<vfat>"
32365
32366 #. type: textblock
32367 #: ../tools/virt-make-fs.pl:109
32368 msgid "Useful if exporting data to a Windows guest."
32369 msgstr ""
32370
32371 #. type: textblock
32372 #: ../tools/virt-make-fs.pl:111
32373 msgid ""
32374 "I<Note for vfat>: The tar archive or local directory must only contain files"
32375 " which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
32376 "program running within libguestfs is unable to change the ownership of non-"
32377 "root files, since vfat itself does not support this."
32378 msgstr ""
32379
32380 #. type: =item
32381 #: ../tools/virt-make-fs.pl:116
32382 msgid "I<minix>"
32383 msgstr "I<minix>"
32384
32385 #. type: textblock
32386 #: ../tools/virt-make-fs.pl:118
32387 msgid ""
32388 "Lower overhead than C<ext2>, but certain limitations on filename length and "
32389 "total filesystem size."
32390 msgstr ""
32391
32392 #. type: verbatim
32393 #: ../tools/virt-make-fs.pl:125
32394 #, no-wrap
32395 msgid ""
32396 " virt-make-fs --type=minix input minixfs.img\n"
32397 "\n"
32398 msgstr ""
32399
32400 #. type: =head2
32401 #: ../tools/virt-make-fs.pl:127
32402 msgid "TO PARTITION OR NOT TO PARTITION"
32403 msgstr ""
32404
32405 #. type: textblock
32406 #: ../tools/virt-make-fs.pl:129
32407 msgid "Optionally virt-make-fs can add a partition table to the output disk."
32408 msgstr ""
32409
32410 #. type: textblock
32411 #: ../tools/virt-make-fs.pl:131
32412 msgid ""
32413 "Adding a partition can make the disk image more compatible with certain "
32414 "virtualized operating systems which don't expect to see a filesystem "
32415 "directly located on a block device (Linux doesn't care and will happily "
32416 "handle both types)."
32417 msgstr ""
32418
32419 #. type: textblock
32420 #: ../tools/virt-make-fs.pl:136
32421 msgid ""
32422 "On the other hand, if you have a partition table then the output image is no"
32423 " longer a straight filesystem.  For example you cannot run L<fsck(8)> "
32424 "directly on a partitioned disk image.  (However libguestfs tools such as "
32425 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
32426 msgstr ""
32427
32428 #. type: textblock
32429 #: ../tools/virt-make-fs.pl:144
32430 msgid "Add an MBR partition:"
32431 msgstr ""
32432
32433 #. type: verbatim
32434 #: ../tools/virt-make-fs.pl:146
32435 #, no-wrap
32436 msgid ""
32437 " virt-make-fs --partition -- input disk.img\n"
32438 "\n"
32439 msgstr ""
32440
32441 #. type: textblock
32442 #: ../tools/virt-make-fs.pl:148
32443 msgid ""
32444 "If the output disk image could be terabyte-sized or larger, it's better to "
32445 "use an EFI/GPT-compatible partition table:"
32446 msgstr ""
32447
32448 #. type: verbatim
32449 #: ../tools/virt-make-fs.pl:151
32450 #, no-wrap
32451 msgid ""
32452 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
32453 "\n"
32454 msgstr ""
32455
32456 #. type: textblock
32457 #: ../tools/virt-make-fs.pl:179
32458 msgid "Enable debugging information."
32459 msgstr "Увімкнути виведення діагностичних даних."
32460
32461 #. type: =item
32462 #: ../tools/virt-make-fs.pl:185
32463 msgid "B<--size=E<lt>NE<gt>>"
32464 msgstr "B<--size=E<lt>NE<gt>>"
32465
32466 #. type: =item
32467 #: ../tools/virt-make-fs.pl:187
32468 msgid "B<--size=+E<lt>NE<gt>>"
32469 msgstr "B<--size=+E<lt>NE<gt>>"
32470
32471 #. type: =item
32472 #: ../tools/virt-make-fs.pl:189
32473 msgid "B<-s E<lt>NE<gt>>"
32474 msgstr "B<-s E<lt>NE<gt>>"
32475
32476 #. type: =item
32477 #: ../tools/virt-make-fs.pl:191
32478 msgid "B<-s +E<lt>NE<gt>>"
32479 msgstr "B<-s +E<lt>NE<gt>>"
32480
32481 #. type: textblock
32482 #: ../tools/virt-make-fs.pl:193
32483 msgid ""
32484 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
32485 msgstr ""
32486
32487 #. type: textblock
32488 #: ../tools/virt-make-fs.pl:196
32489 msgid ""
32490 "If this option is I<not> given, then the output image will be just large "
32491 "enough to contain all the files, with not much wasted space."
32492 msgstr ""
32493
32494 #. type: textblock
32495 #: ../tools/virt-make-fs.pl:199
32496 msgid ""
32497 "To choose a fixed size output disk, specify an absolute number followed by "
32498 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
32499 "Petabytes or Exabytes.  This must be large enough to contain all the input "
32500 "files, else you will get an error."
32501 msgstr ""
32502
32503 #. type: textblock
32504 #: ../tools/virt-make-fs.pl:204
32505 msgid ""
32506 "To leave extra space, specify C<+> (plus sign) and a number followed by "
32507 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
32508 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
32509 "the input files, and (approximately) an extra 200 MB free space."
32510 msgstr ""
32511
32512 #. type: textblock
32513 #: ../tools/virt-make-fs.pl:210
32514 msgid ""
32515 "Note that virt-make-fs estimates free space, and therefore will not produce "
32516 "filesystems containing precisely the free space requested.  (It is much more"
32517 " expensive and time-consuming to produce a filesystem which has precisely "
32518 "the desired free space)."
32519 msgstr ""
32520
32521 #. type: =item
32522 #: ../tools/virt-make-fs.pl:219
32523 msgid "B<--format=E<lt>fmtE<gt>>"
32524 msgstr ""
32525
32526 #. type: =item
32527 #: ../tools/virt-make-fs.pl:221
32528 msgid "B<-F E<lt>fmtE<gt>>"
32529 msgstr ""
32530
32531 #. type: textblock
32532 #: ../tools/virt-make-fs.pl:223
32533 msgid "Choose the output disk image format."
32534 msgstr ""
32535
32536 #. type: textblock
32537 #: ../tools/virt-make-fs.pl:225
32538 msgid "The default is C<raw> (raw disk image)."
32539 msgstr ""
32540
32541 #. type: textblock
32542 #: ../tools/virt-make-fs.pl:227
32543 msgid ""
32544 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
32545 "that would really make sense here is C<qcow2>."
32546 msgstr ""
32547
32548 #. type: =item
32549 #: ../tools/virt-make-fs.pl:234
32550 msgid "B<--type=E<lt>fsE<gt>>"
32551 msgstr ""
32552
32553 #. type: =item
32554 #: ../tools/virt-make-fs.pl:236
32555 msgid "B<-t E<lt>fsE<gt>>"
32556 msgstr ""
32557
32558 #. type: textblock
32559 #: ../tools/virt-make-fs.pl:238
32560 msgid "Choose the output filesystem type."
32561 msgstr ""
32562
32563 #. type: textblock
32564 #: ../tools/virt-make-fs.pl:240
32565 msgid "The default is C<ext2>."
32566 msgstr "Типовим значенням є C<ext2>."
32567
32568 #. type: textblock
32569 #: ../tools/virt-make-fs.pl:242
32570 msgid ""
32571 "Any filesystem which is supported read-write by libguestfs can be used here."
32572 msgstr ""
32573
32574 #. type: =item
32575 #: ../tools/virt-make-fs.pl:249
32576 msgid "B<--partition>"
32577 msgstr "B<--partition>"
32578
32579 #. type: =item
32580 #: ../tools/virt-make-fs.pl:251
32581 msgid "B<--partition=E<lt>parttypeE<gt>>"
32582 msgstr ""
32583
32584 #. type: textblock
32585 #: ../tools/virt-make-fs.pl:253
32586 msgid ""
32587 "If specified, this flag adds an MBR partition table to the output disk "
32588 "image."
32589 msgstr ""
32590
32591 #. type: textblock
32592 #: ../tools/virt-make-fs.pl:256
32593 msgid ""
32594 "You can change the partition table type, eg. I<--partition=gpt> for large "
32595 "disks."
32596 msgstr ""
32597
32598 #. type: textblock
32599 #: ../tools/virt-make-fs.pl:259
32600 msgid ""
32601 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
32602 "might consider the next parameter to be the partition type.  For example:"
32603 msgstr ""
32604
32605 #. type: verbatim
32606 #: ../tools/virt-make-fs.pl:263
32607 #, no-wrap
32608 msgid ""
32609 " virt-make-fs --partition input.tar ...\n"
32610 "\n"
32611 msgstr ""
32612
32613 #. type: textblock
32614 #: ../tools/virt-make-fs.pl:265
32615 msgid ""
32616 "would cause virt-make-fs to think you wanted to use a partition type of "
32617 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
32618 "dash) between options and the input file argument:"
32619 msgstr ""
32620
32621 #. type: verbatim
32622 #: ../tools/virt-make-fs.pl:269
32623 #, no-wrap
32624 msgid ""
32625 " virt-make-fs --partition -- input.tar ...\n"
32626 "\n"
32627 msgstr ""
32628 " virt-make-fs --partition -- input.tar ...\n"
32629 "\n"
32630
32631 #. type: textblock
32632 #: ../tools/virt-make-fs.pl:541
32633 msgid ""
32634 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
32635 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
32636 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
32637 msgstr ""
32638 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
32639 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
32640 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
32641
32642 #. type: verbatim
32643 #: ../tools/virt-make-fs.pl:558
32644 #, no-wrap
32645 msgid ""
32646 " export LIBGUESTFS_DEBUG=1\n"
32647 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
32648 "\n"
32649 msgstr ""
32650 " export LIBGUESTFS_DEBUG=1\n"
32651 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
32652 "\n"
32653
32654 #. type: textblock
32655 #: ../tools/virt-make-fs.pl:561
32656 msgid ""
32657 "Attach /tmp/virt-make-fs.log to a new bug report at "
32658 "L<https://bugzilla.redhat.com/>"
32659 msgstr ""
32660
32661 #. type: textblock
32662 #: ../tools/virt-list-partitions.pl:32
32663 msgid ""
32664 "virt-list-partitions - List partitions in a virtual machine or disk image"
32665 msgstr ""
32666
32667 #. type: verbatim
32668 #: ../tools/virt-list-partitions.pl:36
32669 #, no-wrap
32670 msgid ""
32671 " virt-list-partitions [--options] domname\n"
32672 "\n"
32673 msgstr ""
32674 " virt-list-partitions [--параметри] назва_домену\n"
32675 "\n"
32676
32677 #. type: verbatim
32678 #: ../tools/virt-list-partitions.pl:38
32679 #, no-wrap
32680 msgid ""
32681 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
32682 "\n"
32683 msgstr ""
32684 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
32685 "\n"
32686
32687 #. type: textblock
32688 #: ../tools/virt-list-partitions.pl:45
32689 msgid ""
32690 "C<virt-list-partitions> is a command line tool to list the partitions that "
32691 "are contained in a virtual machine or disk image.  It is mainly useful as a "
32692 "first step to using L<virt-resize(1)>."
32693 msgstr ""
32694
32695 #. type: textblock
32696 #: ../tools/virt-list-partitions.pl:50
32697 msgid ""
32698 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
32699 "functionality.  For more complex cases you should look at the "
32700 "L<guestfish(1)> tool."
32701 msgstr ""
32702
32703 #. type: =item
32704 #: ../tools/virt-list-partitions.pl:107
32705 msgid "B<-h> | B<--human-readable>"
32706 msgstr "B<-h> | B<--human-readable>"
32707
32708 #. type: textblock
32709 #: ../tools/virt-list-partitions.pl:109
32710 msgid "Show sizes in human-readable form (eg. \"1G\")."
32711 msgstr ""
32712
32713 #. type: textblock
32714 #: ../tools/virt-list-partitions.pl:117
32715 msgid ""
32716 "With this option, C<virt-list-partitions> displays the type and size of each"
32717 " partition too (where \"type\" means C<ext3>, C<pv> etc.)"
32718 msgstr ""
32719
32720 #. type: =item
32721 #: ../tools/virt-list-partitions.pl:124
32722 msgid "B<-t> | B<--total>"
32723 msgstr "B<-t> | B<--total>"
32724
32725 #. type: textblock
32726 #: ../tools/virt-list-partitions.pl:126
32727 msgid ""
32728 "Display the total size of each block device (as a separate row or rows)."
32729 msgstr ""
32730
32731 #. type: textblock
32732 #: ../tools/virt-list-partitions.pl:259
32733 msgid ""
32734 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
32735 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
32736 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
32737 msgstr ""
32738 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
32739 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
32740 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
32741
32742 #. type: textblock
32743 #: ../tools/virt-list-partitions.pl:275
32744 msgid "Copyright (C) 2009-2010 Red Hat Inc."
32745 msgstr "© Red Hat Inc., 2009–2010"
32746
32747