1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
5 # Yuri Chornoivan <yurchor@ukr.net>, 2011.
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"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\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"
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
30 #: ../src/guestfs.pod:5
31 msgid "guestfs - Library for accessing and modifying virtual machine images"
33 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
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
43 msgstr "КОРОТКИЙ ОПИС"
46 #: ../src/guestfs.pod:9
49 " #include <guestfs.h>\n"
52 " #include <guestfs.h>\n"
56 #: ../src/guestfs.pod:11
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"
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"
78 #: ../src/guestfs.pod:19
81 " cc prog.c -o prog -lguestfs\n"
83 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
86 " cc prog.c -o prog -lguestfs\n"
88 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
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
101 #: ../src/guestfs.pod:25
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."
112 #: ../src/guestfs.pod:33
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, "
121 #: ../src/guestfs.pod:38
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."
129 #: ../src/guestfs.pod:43
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"
138 #: ../src/guestfs.pod:48
140 "You don't need to be root to use libguestfs, although obviously you do need "
141 "enough permissions to access the disk images."
145 #: ../src/guestfs.pod:51
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."
152 #: ../src/guestfs.pod:54
154 "There are also some example programs in the L<guestfs-examples(3)> manual "
159 #: ../src/guestfs.pod:57
164 #: ../src/guestfs.pod:59
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."
172 #: ../src/guestfs.pod:64
177 #: ../src/guestfs.pod:66
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."
187 #: ../src/guestfs.pod:73
189 "The general structure of all libguestfs-using programs looks like this:"
193 #: ../src/guestfs.pod:76
196 " guestfs_h *g = guestfs_create ();\n"
199 " guestfs_h *g = guestfs_create ();\n"
203 #: ../src/guestfs.pod:78
206 " /* Call guestfs_add_drive additional times if there are\n"
207 " * multiple disk images.\n"
209 " guestfs_add_drive (g, \"guest.img\");\n"
214 #: ../src/guestfs.pod:83
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"
221 " guestfs_launch (g);\n"
226 #: ../src/guestfs.pod:89
229 " /* Now you can examine what partitions, LVs etc are available.\n"
231 " char **partitions = guestfs_list_partitions (g);\n"
232 " char **logvols = guestfs_lvs (g);\n"
235 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
237 " char **partitions = guestfs_list_partitions (g);\n"
238 " char **logvols = guestfs_lvs (g);\n"
242 #: ../src/guestfs.pod:94
245 " /* To access a filesystem in the image, you must mount it.\n"
247 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
250 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
252 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
256 #: ../src/guestfs.pod:98
259 " /* Now you can perform filesystem actions on the guest\n"
262 " guestfs_touch (g, \"/hello\");\n"
267 #: ../src/guestfs.pod:103
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"
274 " guestfs_sync (g);\n"
279 #: ../src/guestfs.pod:109
282 " /* Close the handle 'g'. */\n"
283 " guestfs_close (g);\n"
286 " /* Закрити дескриптор 'g'. */\n"
287 " guestfs_close (g);\n"
291 #: ../src/guestfs.pod:112
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."
303 #: ../src/guestfs.pod:121
305 msgstr "ОБРАЗИ ДИСКІВ"
308 #: ../src/guestfs.pod:123
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"
318 #: ../src/guestfs.pod:129
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:"
326 #: ../src/guestfs.pod:133
329 " guestfs_add_drive_opts (g, filename,\n"
330 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
334 " guestfs_add_drive_opts (g, filename,\n"
335 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
340 #: ../src/guestfs.pod:137
341 msgid "You can add a disk read-only using:"
342 msgstr "Ви можете додати диск у режимі лише читання:"
345 #: ../src/guestfs.pod:139
348 " guestfs_add_drive_opts (g, filename,\n"
349 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
350 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
354 " guestfs_add_drive_opts (g, filename,\n"
355 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
356 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
361 #: ../src/guestfs.pod:144
363 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
364 "libguestfs won't modify the file."
368 #: ../src/guestfs.pod:147
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."
376 #: ../src/guestfs.pod:151
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."
384 #: ../src/guestfs.pod:156
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."
392 #: ../src/guestfs.pod:161
397 #: ../src/guestfs.pod:163
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:"
407 #: ../src/guestfs.pod:170
410 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
413 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
417 #: ../src/guestfs.pod:172
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 "
427 #: ../src/guestfs.pod:178
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>."
438 #: ../src/guestfs.pod:186
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-"
447 #: ../src/guestfs.pod:191
449 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
450 "several other variations of the C<guestfs_mount_*> call."
454 #: ../src/guestfs.pod:194
455 msgid "FILESYSTEM ACCESS AND MODIFICATION"
456 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
459 #: ../src/guestfs.pod:196
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."
469 #: ../src/guestfs.pod:202
471 "Specify filenames as full paths, starting with C<\"/\"> and including the "
474 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
478 #: ../src/guestfs.pod:205
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:"
483 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
484 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
488 #: ../src/guestfs.pod:208
491 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
494 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
498 #: ../src/guestfs.pod:210
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."
506 #: ../src/guestfs.pod:214
508 "As another example, to create a top-level directory on that filesystem "
509 "called C<\"var\"> you would do:"
513 #: ../src/guestfs.pod:217
516 " guestfs_mkdir (g, \"/var\");\n"
519 " guestfs_mkdir (g, \"/var\");\n"
523 #: ../src/guestfs.pod:219
524 msgid "To create a symlink you could do:"
526 "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
529 #: ../src/guestfs.pod:221
532 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
533 " \"/etc/rc3.d/S30portmap\");\n"
536 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
537 " \"/etc/rc3.d/S30portmap\");\n"
541 #: ../src/guestfs.pod:224
543 "Libguestfs will reject attempts to use relative paths and there is no "
544 "concept of a current working directory."
548 #: ../src/guestfs.pod:227
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)."
558 #: ../src/guestfs.pod:233
560 "File writes are affected by the per-handle umask, set by calling "
561 "L</guestfs_umask> and defaulting to 022. See L</UMASK>."
565 #: ../src/guestfs.pod:236
567 msgstr "ПОДІЛ НА РОЗДІЛИ"
570 #: ../src/guestfs.pod:238
572 "Libguestfs contains API calls to read, create and modify partition tables on"
577 #: ../src/guestfs.pod:241
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:"
584 #: ../src/guestfs.pod:245
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"
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"
600 #: ../src/guestfs.pod:250
602 "Obviously this effectively wipes anything that was on that disk image "
607 #: ../src/guestfs.pod:253
612 #: ../src/guestfs.pod:255
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."
621 #: ../src/guestfs.pod:260
623 "This author strongly recommends reading the LVM HOWTO, online at "
624 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
628 #: ../src/guestfs.pod:263
630 msgstr "ОТРИМАННЯ ДАНИХ"
633 #: ../src/guestfs.pod:265
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."
641 #: ../src/guestfs.pod:269
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."
649 #: ../src/guestfs.pod:273
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)."
656 #: ../src/guestfs.pod:276
658 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
662 #: ../src/guestfs.pod:279
664 msgstr "ВИВАНТАЖЕННЯ"
667 #: ../src/guestfs.pod:281
669 "It's often the case that you want to write a file or files to the disk "
674 #: ../src/guestfs.pod:284
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>."
684 #: ../src/guestfs.pod:290
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)."
691 #: ../src/guestfs.pod:293
693 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
697 #: ../src/guestfs.pod:295
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."
711 #: ../src/guestfs.pod:306
716 #: ../src/guestfs.pod:308
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 "
724 #: ../src/guestfs.pod:314
725 msgid "B<file> to B<file>"
726 msgstr "B<файл> у B<файл>"
729 #: ../src/guestfs.pod:316
731 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
732 "directories recursively."
736 #: ../src/guestfs.pod:319
737 msgid "B<file or device> to B<file or device>"
738 msgstr "B<файл або пристрій> у B<файл або пристрій>"
741 #: ../src/guestfs.pod:321
743 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and"
744 " devices in the guest."
748 #: ../src/guestfs.pod:324
749 msgid "Example: duplicate the contents of an LV:"
753 #: ../src/guestfs.pod:326
756 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
759 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
763 #: ../src/guestfs.pod:328
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>."
771 #: ../src/guestfs.pod:332
772 msgid "B<file on the host> to B<file or device>"
776 #: ../src/guestfs.pod:334
777 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
781 #: ../src/guestfs.pod:336
782 msgid "B<file or device> to B<file on the host>"
786 #: ../src/guestfs.pod:338
787 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
791 #: ../src/guestfs.pod:342
792 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
796 #: ../src/guestfs.pod:344
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."
807 #: ../src/guestfs.pod:352
808 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
812 #: ../src/guestfs.pod:355
815 " guestfs_download (g, filename, \"/dev/stdout\");\n"
818 " guestfs_download (g, filename, \"/dev/stdout\");\n"
822 #: ../src/guestfs.pod:357
823 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
827 #: ../src/guestfs.pod:359
831 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
832 " guestfs_tar_out (g, \"/\", devfd);\n"
836 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
837 " guestfs_tar_out (g, \"/\", devfd);\n"
841 #: ../src/guestfs.pod:363
842 msgid "LISTING FILES"
843 msgstr "СПИСКИ ФАЙЛІВ"
846 #: ../src/guestfs.pod:365
848 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
849 "L<guestfish(1)>-equivalent command C<ll>)."
853 #: ../src/guestfs.pod:368
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."
860 #: ../src/guestfs.pod:371
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."
868 #: ../src/guestfs.pod:375
870 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
875 #: ../src/guestfs.pod:378
876 msgid "RUNNING COMMANDS"
877 msgstr "ВИКОНАННЯ КОМАНД"
880 #: ../src/guestfs.pod:380
882 "Although libguestfs is primarily an API for manipulating files inside guest "
883 "images, we also provide some limited facilities for running commands inside "
888 #: ../src/guestfs.pod:384
889 msgid "There are many limitations to this:"
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
944 #: ../src/guestfs.pod:390
946 "The kernel version that the command runs under will be different from what "
951 #: ../src/guestfs.pod:395
953 "If the command needs to communicate with daemons, then most likely they "
958 #: ../src/guestfs.pod:400
959 msgid "The command will be running in limited memory."
963 #: ../src/guestfs.pod:404
965 "The network may not be available unless you enable it (see "
966 "L</guestfs_set_network>)."
970 #: ../src/guestfs.pod:409
971 msgid "Only supports Linux guests (not Windows, BSD, etc)."
975 #: ../src/guestfs.pod:413
977 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
981 #: ../src/guestfs.pod:418
983 "For SELinux guests, you may need to enable SELinux and load policy first. "
984 "See L</SELINUX> in this manpage."
988 #: ../src/guestfs.pod:423
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."
1000 #: ../src/guestfs.pod:432
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, "
1010 #: ../src/guestfs.pod:440
1012 "The two main API calls to run commands are L</guestfs_command> and "
1013 "L</guestfs_sh> (there are also variations)."
1017 #: ../src/guestfs.pod:443
1019 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
1020 "shell globs, redirections, etc will work."
1024 #: ../src/guestfs.pod:446
1025 msgid "CONFIGURATION FILES"
1026 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
1029 #: ../src/guestfs.pod:448
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."
1038 #: ../src/guestfs.pod:453
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."
1046 #: ../src/guestfs.pod:457
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 "
1054 #: ../src/guestfs.pod:461
1059 #: ../src/guestfs.pod:463
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:"
1066 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1257 ../src/guestfs.pod:1395
1067 #: ../src/guestfs.pod:2465
1072 #: ../src/guestfs.pod:471
1073 msgid "Before launching, do:"
1077 #: ../src/guestfs.pod:473
1080 " guestfs_set_selinux (g, 1);\n"
1083 " guestfs_set_selinux (g, 1);\n"
1087 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1261 ../src/guestfs.pod:1399
1088 #: ../src/guestfs.pod:2490
1093 #: ../src/guestfs.pod:477
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:"
1100 #: ../src/guestfs.pod:481
1103 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
1106 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
1110 #: ../src/guestfs.pod:483
1112 "(Older versions of C<load_policy> require you to specify the name of the "
1117 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1405
1122 #: ../src/guestfs.pod:488
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:"
1129 #: ../src/guestfs.pod:492
1132 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1135 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1139 #: ../src/guestfs.pod:496
1140 msgid "This will work for running commands and editing existing files."
1144 #: ../src/guestfs.pod:498
1146 "When new files are created, you may need to label them explicitly, for "
1147 "example by running the external command C<restorecon pathname>."
1151 #: ../src/guestfs.pod:502
1156 #: ../src/guestfs.pod:504
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 "
1166 #: ../src/guestfs.pod:510
1168 "The default umask is C<022>, so files are created with modes such as C<0644>"
1169 " and directories with C<0755>."
1173 #: ../src/guestfs.pod:513
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."
1181 #: ../src/guestfs.pod:517
1182 msgid "For more information about umask, see L<umask(2)>."
1186 #: ../src/guestfs.pod:519 ../fish/guestfish.pod:825
1187 msgid "ENCRYPTED DISKS"
1188 msgstr "ЗАШИФРОВАНІ ДИСКИ"
1191 #: ../src/guestfs.pod:521
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."
1200 #: ../src/guestfs.pod:527
1202 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1203 "returns the string C<crypto_LUKS>)."
1207 #: ../src/guestfs.pod:530
1209 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
1210 "will require the passphrase!"
1214 #: ../src/guestfs.pod:533
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."
1223 #: ../src/guestfs.pod:539
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."
1231 #: ../src/guestfs.pod:543
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)."
1241 #: ../src/guestfs.pod:550
1246 #: ../src/guestfs.pod:552
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)."
1256 #: ../src/guestfs.pod:559
1258 "Add all disks belonging to the unknown virtual machine and call "
1259 "L</guestfs_launch> in the usual way."
1263 #: ../src/guestfs.pod:562
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.)"
1276 #: ../src/guestfs.pod:571
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."
1285 #: ../src/guestfs.pod:577
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:"
1296 #: ../src/guestfs.pod:584
1299 " /boot => /dev/sda1\n"
1300 " / => /dev/vg_guest/lv_root\n"
1301 " /usr => /dev/vg_guest/lv_usr\n"
1304 " /boot => /dev/sda1\n"
1305 " / => /dev/vg_guest/lv_root\n"
1306 " /usr => /dev/vg_guest/lv_usr\n"
1310 #: ../src/guestfs.pod:588
1312 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1313 "filesystems as suggested."
1317 #: ../src/guestfs.pod:591
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 "
1325 #: ../src/guestfs.pod:595
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."
1333 #: ../src/guestfs.pod:599
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."
1341 #: ../src/guestfs.pod:603
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 "
1354 #: ../src/guestfs.pod:612
1355 msgid "INSPECTING INSTALL DISKS"
1359 #: ../src/guestfs.pod:614
1361 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
1366 #: ../src/guestfs.pod:617
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)."
1374 #: ../src/guestfs.pod:621
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> "
1383 #: ../src/guestfs.pod:626
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."
1391 #: ../src/guestfs.pod:631
1392 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1396 #: ../src/guestfs.pod:633
1398 "Libguestfs can mount NTFS partitions. It does this using the L<http://www"
1399 ".ntfs-3g.org/> driver."
1403 #: ../src/guestfs.pod:636
1404 msgid "DRIVE LETTERS AND PATHS"
1405 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
1408 #: ../src/guestfs.pod:638
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>."
1418 #: ../src/guestfs.pod:644
1420 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
1421 "L</guestfs_inspect_get_drive_mappings>)"
1425 #: ../src/guestfs.pod:647
1427 "Dealing with separator characters (backslash vs forward slash) is outside "
1428 "the scope of libguestfs, but usually a simple character replacement will "
1433 #: ../src/guestfs.pod:651
1435 "To resolve the case insensitivity of paths, call "
1436 "L</guestfs_case_sensitive_path>."
1440 #: ../src/guestfs.pod:654
1441 msgid "ACCESSING THE WINDOWS REGISTRY"
1442 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
1445 #: ../src/guestfs.pod:656
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."
1456 #: ../src/guestfs.pod:664
1457 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
1458 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
1461 #: ../src/guestfs.pod:666
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:"
1469 #: ../src/guestfs.pod:670
1471 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1474 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1478 #: ../src/guestfs.pod:672
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)."
1488 #: ../src/guestfs.pod:679
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)."
1497 #: ../src/guestfs.pod:684
1498 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
1502 #: ../src/guestfs.pod:686
1504 "There are other useful extended attributes that can be read from ntfs-3g "
1505 "filesystems (using L</guestfs_getxattr>). See:"
1509 #: ../src/guestfs.pod:689
1511 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1513 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1516 #: ../src/guestfs.pod:691
1517 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1518 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
1521 #: ../src/guestfs.pod:693
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."
1528 #: ../src/guestfs.pod:696
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 "
1538 #: ../src/guestfs.pod:702
1540 "Error messages are automatically transformed into exceptions if the language"
1545 #: ../src/guestfs.pod:705
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."
1553 #: ../src/guestfs.pod:711
1558 #: ../src/guestfs.pod:713
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."
1565 #: ../src/guestfs.pod:717
1570 #: ../src/guestfs.pod:719
1572 "The C# bindings are highly experimental. Please read the warnings at the "
1573 "top of C<csharp/Libguestfs.cs>."
1577 #: ../src/guestfs.pod:722
1582 #: ../src/guestfs.pod:724
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."
1590 #: ../src/guestfs.pod:728
1595 #: ../src/guestfs.pod:730
1597 "Full documentation is contained in the Javadoc which is distributed with "
1602 #: ../src/guestfs.pod:733
1607 #: ../src/guestfs.pod:735
1608 msgid "See L<guestfs-ocaml(3)>."
1609 msgstr "Див. L<guestfs-ocaml(3)>."
1612 #: ../src/guestfs.pod:737
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)>."
1622 #: ../src/guestfs.pod:741
1627 #: ../src/guestfs.pod:743
1629 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1630 "the php-libguestfs package for your distribution."
1634 #: ../src/guestfs.pod:746
1635 msgid "The PHP binding only works correctly on 64 bit machines."
1639 #: ../src/guestfs.pod:748
1644 #: ../src/guestfs.pod:750
1645 msgid "See L<guestfs-python(3)>."
1646 msgstr "Див. L<guestfs-python(3)>."
1649 #: ../src/guestfs.pod:752
1654 #: ../src/guestfs.pod:754
1655 msgid "See L<guestfs-ruby(3)>."
1656 msgstr "Див. L<guestfs-ruby(3)>."
1659 #: ../src/guestfs.pod:756
1660 msgid "B<shell scripts>"
1661 msgstr "B<скрипти оболонки>"
1664 #: ../src/guestfs.pod:758
1665 msgid "See L<guestfish(1)>."
1666 msgstr "Див. L<guestfish(1)>."
1669 #: ../src/guestfs.pod:762
1670 msgid "LIBGUESTFS GOTCHAS"
1674 #: ../src/guestfs.pod:764
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.\""
1682 #: ../src/guestfs.pod:768
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."
1691 #: ../src/guestfs.pod:776
1692 msgid "Autosync / forgetting to sync."
1696 #: ../src/guestfs.pod:778
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."
1703 #: ../src/guestfs.pod:781
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:"
1711 #: ../src/guestfs.pod:785
1714 " guestfs_set_autosync (g, 1);\n"
1717 " guestfs_set_autosync (g, 1);\n"
1721 #: ../src/guestfs.pod:787
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> "
1729 #: ../src/guestfs.pod:791
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."
1737 #: ../src/guestfs.pod:795
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."
1745 #: ../src/guestfs.pod:799
1746 msgid "Mount option C<-o sync> should not be the default."
1750 #: ../src/guestfs.pod:801
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."
1758 #: ../src/guestfs.pod:805
1760 "The work around is to use L</guestfs_mount_options> and set the mount "
1761 "options that you actually want to use."
1765 #: ../src/guestfs.pod:808
1766 msgid "Read-only should be the default."
1770 #: ../src/guestfs.pod:810
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."
1777 #: ../src/guestfs.pod:813
1778 msgid "This would reduce the potential to corrupt live VM images."
1782 #: ../src/guestfs.pod:815
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."
1790 #: ../src/guestfs.pod:819
1791 msgid "guestfish command line is hard to use."
1795 #: ../src/guestfs.pod:821
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."
1805 #: ../src/guestfs.pod:828
1806 msgid "guestfish megabyte modifiers don't work right on all commands"
1810 #: ../src/guestfs.pod:830
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)."
1820 #: ../src/guestfs.pod:837
1821 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
1825 #: ../src/guestfs.pod:839
1828 " lvcreate LV VG 100M\n"
1831 " lvcreate LV VG 100M\n"
1835 #: ../src/guestfs.pod:841
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."
1844 #: ../src/guestfs.pod:846
1846 "This could be fixed in the generator by specially marking parameters and "
1847 "return values which take bytes or other units."
1851 #: ../src/guestfs.pod:849
1852 msgid "Ambiguity between devices and paths"
1856 #: ../src/guestfs.pod:851
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)."
1864 #: ../src/guestfs.pod:856
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/>."
1873 #: ../src/guestfs.pod:862
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:"
1883 #: ../src/guestfs.pod:868
1886 " type path = Path of string | Device of int | Partition of int * int\n"
1891 #: ../src/guestfs.pod:870
1892 msgid "which would allow you to pass arguments like:"
1896 #: ../src/guestfs.pod:872
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"
1907 #: ../src/guestfs.pod:877
1909 "As you can see there are still problems to resolve even with this "
1910 "representation. Also consider how it might work in guestfish."
1914 #: ../src/guestfs.pod:882
1915 msgid "KEYS AND PASSPHRASES"
1916 msgstr "КЛЮЧІ І ПАРОЛІ"
1919 #: ../src/guestfs.pod:884
1921 "Certain libguestfs calls take a parameter that contains sensitive key "
1922 "material, passed in as a C string."
1926 #: ../src/guestfs.pod:887
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."
1935 #: ../src/guestfs.pod:892
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."
1943 #: ../src/guestfs.pod:897
1944 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1948 #: ../src/guestfs.pod:899
1950 "All high-level libguestfs actions are synchronous. If you want to use "
1951 "libguestfs asynchronously then you must create a thread."
1955 #: ../src/guestfs.pod:902
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."
1963 #: ../src/guestfs.pod:906
1965 "See the graphical program guestfs-browser for one possible architecture for "
1966 "multithreaded programs using libvirt and libguestfs."
1970 #: ../src/guestfs.pod:909
1975 #: ../src/guestfs.pod:911
1977 "Libguestfs needs a supermin appliance, which it finds by looking along an "
1982 #: ../src/guestfs.pod:914
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>)."
1989 #: ../src/guestfs.pod:917
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>."
2000 #: ../src/guestfs.pod:924
2001 msgid "QEMU WRAPPERS"
2005 #: ../src/guestfs.pod:926
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 "
2013 #: ../src/guestfs.pod:930
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."
2022 #: ../src/guestfs.pod:935
2024 "Here is an example of a wrapper, where I have built my own copy of qemu from"
2029 #: ../src/guestfs.pod:938
2033 " qemudir=/home/rjones/d/qemu\n"
2034 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
2038 " qemudir=/home/rjones/d/qemu\n"
2039 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
2043 #: ../src/guestfs.pod:942
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 "
2051 #: ../src/guestfs.pod:946
2054 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
2057 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
2061 #: ../src/guestfs.pod:948
2063 "Note that libguestfs also calls qemu with the -help and -version options in "
2064 "order to determine features."
2068 #: ../src/guestfs.pod:951
2069 msgid "ATTACHING TO RUNNING DAEMONS"
2070 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
2073 #: ../src/guestfs.pod:953
2075 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
2076 "babies. Use with caution."
2080 #: ../src/guestfs.pod:956
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\"."
2088 #: ../src/guestfs.pod:960
2089 msgid "Using guestfs_set_attach_method"
2090 msgstr "За допомогою guestfs_set_attach_method"
2093 #: ../src/guestfs.pod:962
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)."
2101 #: ../src/guestfs.pod:966
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."
2108 #: ../src/guestfs.pod:969
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."
2116 #: ../src/guestfs.pod:973
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."
2124 #: ../src/guestfs.pod:977
2125 msgid "Using guestfs_add_domain with live flag"
2126 msgstr "За допомогою guestfs_add_domain з прапорцем live"
2129 #: ../src/guestfs.pod:979
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:"
2138 #: ../src/guestfs.pod:985
2145 " <channel type='unix'>\n"
2146 " <source mode='bind' path='/path/to/socket'/>\n"
2147 " <target type='virtio' name='org.libguestfs.channel.0'/>\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"
2168 #: ../src/guestfs.pod:997
2170 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
2171 "method to C<unix:/path/to/socket>."
2175 #: ../src/guestfs.pod:1000
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."
2183 #: ../src/guestfs.pod:1004
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."
2190 #: ../src/guestfs.pod:1008
2191 msgid "ABI GUARANTEE"
2192 msgstr "ГАРАНТІЯ ЩОДО ABI"
2195 #: ../src/guestfs.pod:1010
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."
2205 #: ../src/guestfs.pod:1016
2206 msgid "BLOCK DEVICE NAMING"
2207 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
2210 #: ../src/guestfs.pod:1018
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 "
2225 #: ../src/guestfs.pod:1030
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."
2233 #: ../src/guestfs.pod:1034
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."
2241 #: ../src/guestfs.pod:1039
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."
2250 #: ../src/guestfs.pod:1045
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."
2258 #: ../src/guestfs.pod:1050
2259 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2263 #: ../src/guestfs.pod:1052
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."
2272 #: ../src/guestfs.pod:1058
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."
2280 #: ../src/guestfs.pod:1066
2281 msgid "Is the string a parameter which is a device or partition name?"
2285 #: ../src/guestfs.pod:1070
2286 msgid "Does the string begin with C</dev/sd>?"
2287 msgstr "Чи починається рядок з C</dev/sd>?"
2290 #: ../src/guestfs.pod:1074
2292 "Does the named device exist? If so, we use that device. However if I<not> "
2293 "then we continue with this algorithm."
2297 #: ../src/guestfs.pod:1079
2298 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2302 #: ../src/guestfs.pod:1081
2303 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2307 #: ../src/guestfs.pod:1083
2308 msgid "If that named device exists, use it. If not, continue."
2312 #: ../src/guestfs.pod:1087
2313 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2317 #: ../src/guestfs.pod:1089
2318 msgid "If that named device exists, use it. If not, return an error."
2322 #: ../src/guestfs.pod:1093
2323 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2327 #: ../src/guestfs.pod:1095
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."
2335 #: ../src/guestfs.pod:1099
2337 "Where possible for maximum future portability programs using libguestfs "
2338 "should use these future-proof techniques:"
2342 #: ../src/guestfs.pod:1106
2344 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2345 "device names, and then use those names directly."
2349 #: ../src/guestfs.pod:1109
2351 "Since those device names exist by definition, they will never be translated."
2355 #: ../src/guestfs.pod:1114
2357 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2358 "filesystem labels."
2362 #: ../src/guestfs.pod:1119
2367 #: ../src/guestfs.pod:1121
2369 "This section discusses security implications of using libguestfs, "
2370 "particularly with untrusted or malicious guests or disk images."
2374 #: ../src/guestfs.pod:1124
2375 msgid "GENERAL SECURITY CONSIDERATIONS"
2376 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
2379 #: ../src/guestfs.pod:1126
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:"
2389 #: ../src/guestfs.pod:1136
2390 msgid "the data (file etc) not being present"
2394 #: ../src/guestfs.pod:1140
2395 msgid "being present but empty"
2399 #: ../src/guestfs.pod:1144
2400 msgid "being much larger than normal"
2404 #: ../src/guestfs.pod:1148
2405 msgid "containing arbitrary 8 bit data"
2409 #: ../src/guestfs.pod:1152
2410 msgid "being in an unexpected character encoding"
2414 #: ../src/guestfs.pod:1156
2415 msgid "containing homoglyphs."
2419 #: ../src/guestfs.pod:1160
2420 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2421 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
2424 #: ../src/guestfs.pod:1162
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."
2440 #: ../src/guestfs.pod:1175
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."
2454 #: ../src/guestfs.pod:1186
2456 "In any case callers can reduce the attack surface by forcing the filesystem "
2457 "type when mounting (use L</guestfs_mount_vfs>)."
2461 #: ../src/guestfs.pod:1189
2462 msgid "PROTOCOL SECURITY"
2463 msgstr "ЗАХИСТ ПРОТОКОЛУ"
2466 #: ../src/guestfs.pod:1191
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."
2476 #: ../src/guestfs.pod:1197
2477 msgid "INSPECTION SECURITY"
2481 #: ../src/guestfs.pod:1199
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)."
2490 #: ../src/guestfs.pod:1205
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."
2501 #: ../src/guestfs.pod:1213
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"
2511 #: ../src/guestfs.pod:1219
2512 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2513 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
2516 #: ../src/guestfs.pod:1221
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>."
2526 #: ../src/guestfs.pod:1227
2527 msgid "CVE-2010-3851"
2528 msgstr "CVE-2010-3851"
2531 #: ../src/guestfs.pod:1229
2532 msgid "https://bugzilla.redhat.com/642934"
2533 msgstr "https://bugzilla.redhat.com/642934"
2536 #: ../src/guestfs.pod:1231
2538 "This security bug concerns the automatic disk format detection that qemu "
2539 "does on disk images."
2543 #: ../src/guestfs.pod:1234
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."
2552 #: ../src/guestfs.pod:1239
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."
2561 #: ../src/guestfs.pod:1244
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."
2573 #: ../src/guestfs.pod:1252
2575 "In libguestfs this is rather hard to exploit except under two circumstances:"
2579 #: ../src/guestfs.pod:1259
2580 msgid "You have enabled the network or have opened the disk in write mode."
2584 #: ../src/guestfs.pod:1263
2586 "You are also running untrusted code from the guest (see L</RUNNING "
2591 #: ../src/guestfs.pod:1268
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 "
2600 #: ../src/guestfs.pod:1273
2602 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2603 "format is fetched from libvirt and passed through."
2607 #: ../src/guestfs.pod:1276
2609 "For libguestfs tools, use the I<--format> command line parameter as "
2614 #: ../src/guestfs.pod:1279
2615 msgid "CONNECTION MANAGEMENT"
2616 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
2619 #: ../src/guestfs.pod:1281
2621 msgstr "guestfs_h *"
2624 #: ../src/guestfs.pod:1283
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."
2632 #: ../src/guestfs.pod:1287
2634 "For information on using multiple handles and threads, see the section "
2635 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
2639 #: ../src/guestfs.pod:1290
2640 msgid "guestfs_create"
2641 msgstr "guestfs_create"
2644 #: ../src/guestfs.pod:1292
2647 " guestfs_h *guestfs_create (void);\n"
2650 " guestfs_h *guestfs_create (void);\n"
2654 #: ../src/guestfs.pod:1294
2655 msgid "Create a connection handle."
2656 msgstr "Створити дескриптор з’єднання."
2659 #: ../src/guestfs.pod:1296
2661 "On success this returns a non-NULL pointer to a handle. On error it returns"
2666 #: ../src/guestfs.pod:1299
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."
2674 #: ../src/guestfs.pod:1303
2675 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2679 #: ../src/guestfs.pod:1305
2681 "You may also want to configure error handling for the handle. See the "
2682 "L</ERROR HANDLING> section below."
2686 #: ../src/guestfs.pod:1308
2687 msgid "guestfs_close"
2688 msgstr "guestfs_close"
2691 #: ../src/guestfs.pod:1310
2694 " void guestfs_close (guestfs_h *g);\n"
2697 " void guestfs_close (guestfs_h *g);\n"
2701 #: ../src/guestfs.pod:1312
2702 msgid "This closes the connection handle and frees up all resources used."
2706 #: ../src/guestfs.pod:1314
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."
2714 #: ../src/guestfs.pod:1318
2715 msgid "If a close callback was set on the handle, then it is called."
2719 #: ../src/guestfs.pod:1320
2720 msgid "ERROR HANDLING"
2721 msgstr "ОБРОБКА ПОМИЛОК"
2724 #: ../src/guestfs.pod:1322
2726 "API functions can return errors. For example, almost all functions that "
2727 "return C<int> will return C<-1> to indicate an error."
2731 #: ../src/guestfs.pod:1325
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 "
2739 #: ../src/guestfs.pod:1329
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>."
2747 #: ../src/guestfs.pod:1334
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:"
2755 #: ../src/guestfs.pod:1338
2758 " if (guestfs_launch (g) == -1)\n"
2759 " exit (EXIT_FAILURE);\n"
2762 " if (guestfs_launch (g) == -1)\n"
2763 " exit (EXIT_FAILURE);\n"
2767 #: ../src/guestfs.pod:1341
2769 "since the default error handler will ensure that an error message has been "
2770 "printed to C<stderr> before the program exits."
2774 #: ../src/guestfs.pod:1344
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:"
2781 #: ../src/guestfs.pod:1347
2784 " g = guestfs_create ();\n"
2787 " g = guestfs_create ();\n"
2791 #: ../src/guestfs.pod:1349
2794 " /* This disables the default behaviour of printing errors\n"
2796 " guestfs_set_error_handler (g, NULL, NULL);\n"
2801 #: ../src/guestfs.pod:1353
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"
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"
2823 #: ../src/guestfs.pod:1361
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>."
2831 #: ../src/guestfs.pod:1365
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)."
2841 #: ../src/guestfs.pod:1371
2842 msgid "guestfs_last_error"
2843 msgstr "guestfs_last_error"
2846 #: ../src/guestfs.pod:1373
2849 " const char *guestfs_last_error (guestfs_h *g);\n"
2852 " const char *guestfs_last_error (guestfs_h *g);\n"
2856 #: ../src/guestfs.pod:1375
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>."
2863 #: ../src/guestfs.pod:1379
2865 "The lifetime of the returned string is until the next error occurs, or "
2866 "L</guestfs_close> is called."
2870 #: ../src/guestfs.pod:1382
2871 msgid "guestfs_last_errno"
2872 msgstr "guestfs_last_errno"
2875 #: ../src/guestfs.pod:1384
2878 " int guestfs_last_errno (guestfs_h *g);\n"
2881 " int guestfs_last_errno (guestfs_h *g);\n"
2885 #: ../src/guestfs.pod:1386
2886 msgid "This returns the last error number (errno) that happened on C<g>."
2890 #: ../src/guestfs.pod:1388
2891 msgid "If successful, an errno integer not equal to zero is returned."
2895 #: ../src/guestfs.pod:1390
2897 "If no error, this returns 0. This call can return 0 in three situations:"
2901 #: ../src/guestfs.pod:1397
2902 msgid "There has not been any error on the handle."
2906 #: ../src/guestfs.pod:1401
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."
2914 #: ../src/guestfs.pod:1407
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."
2921 #: ../src/guestfs.pod:1413
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."
2932 #: ../src/guestfs.pod:1421
2933 msgid "guestfs_set_error_handler"
2934 msgstr "guestfs_set_error_handler"
2937 #: ../src/guestfs.pod:1423
2940 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2942 " const char *msg);\n"
2943 " void guestfs_set_error_handler (guestfs_h *g,\n"
2944 " guestfs_error_handler_cb cb,\n"
2948 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2950 " const char *msg);\n"
2951 " void guestfs_set_error_handler (guestfs_h *g,\n"
2952 " guestfs_error_handler_cb cb,\n"
2957 #: ../src/guestfs.pod:1430
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 "
2965 #: ../src/guestfs.pod:1434
2967 "C<errno> is not passed to the callback. To get that the callback must call "
2968 "L</guestfs_last_errno>."
2972 #: ../src/guestfs.pod:1437
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 "
2980 #: ../src/guestfs.pod:1441
2981 msgid "The default handler prints messages on C<stderr>."
2985 #: ../src/guestfs.pod:1443
2986 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2990 #: ../src/guestfs.pod:1445
2991 msgid "guestfs_get_error_handler"
2992 msgstr "guestfs_get_error_handler"
2995 #: ../src/guestfs.pod:1447
2998 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2999 " void **opaque_rtn);\n"
3002 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
3003 " void **opaque_rtn);\n"
3007 #: ../src/guestfs.pod:1450
3008 msgid "Returns the current error handler callback."
3012 #: ../src/guestfs.pod:1452
3013 msgid "guestfs_set_out_of_memory_handler"
3014 msgstr "guestfs_set_out_of_memory_handler"
3017 #: ../src/guestfs.pod:1454
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"
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"
3031 #: ../src/guestfs.pod:1458
3033 "The callback C<cb> will be called if there is an out of memory situation. "
3034 "I<Note this callback must not return>."
3038 #: ../src/guestfs.pod:1461
3039 msgid "The default is to call L<abort(3)>."
3043 #: ../src/guestfs.pod:1463
3045 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
3049 #: ../src/guestfs.pod:1466
3050 msgid "guestfs_get_out_of_memory_handler"
3051 msgstr "guestfs_get_out_of_memory_handler"
3054 #: ../src/guestfs.pod:1468
3057 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
3060 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
3064 #: ../src/guestfs.pod:1470
3065 msgid "This returns the current out of memory handler."
3069 #: ../src/guestfs.pod:1472
3071 msgstr "ВИКЛИКИ API"
3074 #: ../src/guestfs.pod:1474 ../fish/guestfish.pod:1068
3079 #: ../src/guestfs.pod:1476
3084 #: ../src/guestfs.pod:1478
3089 #: ../src/guestfs.pod:1480
3090 msgid "AVAILABILITY"
3091 msgstr "ДОСТУПНІСТЬ"
3094 #: ../src/guestfs.pod:1482
3095 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
3096 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
3099 #: ../src/guestfs.pod:1484
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."
3107 #: ../src/guestfs.pod:1489
3108 msgid "@AVAILABILITY@"
3109 msgstr "@AVAILABILITY@"
3112 #: ../src/guestfs.pod:1491
3113 msgid "GUESTFISH supported COMMAND"
3117 #: ../src/guestfs.pod:1493
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."
3125 #: ../src/guestfs.pod:1498
3126 msgid "SINGLE CALLS AT COMPILE TIME"
3130 #: ../src/guestfs.pod:1500
3132 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
3133 "function, such as:"
3137 #: ../src/guestfs.pod:1503
3140 " #define LIBGUESTFS_HAVE_DD 1\n"
3143 " #define LIBGUESTFS_HAVE_DD 1\n"
3147 #: ../src/guestfs.pod:1505
3148 msgid "if L</guestfs_dd> is available."
3152 #: ../src/guestfs.pod:1507
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:"
3160 #: ../src/guestfs.pod:1512
3163 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
3164 " AC_CHECK_FUNCS([guestfs_dd])\n"
3167 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
3168 " AC_CHECK_FUNCS([guestfs_dd])\n"
3172 #: ../src/guestfs.pod:1515
3174 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined"
3179 #: ../src/guestfs.pod:1518
3180 msgid "SINGLE CALLS AT RUN TIME"
3184 #: ../src/guestfs.pod:1520
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."
3194 #: ../src/guestfs.pod:1527
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 "
3202 #: ../src/guestfs.pod:1531
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"
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"
3220 #: ../src/guestfs.pod:1537
3225 " #ifdef LIBGUESTFS_HAVE_DD\n"
3227 " int has_function;\n"
3232 " #ifdef LIBGUESTFS_HAVE_DD\n"
3234 " int has_function;\n"
3238 #: ../src/guestfs.pod:1543
3241 " /* Test if the function guestfs_dd is really available. */\n"
3242 " dl = dlopen (NULL, RTLD_LAZY);\n"
3244 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
3245 " exit (EXIT_FAILURE);\n"
3247 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
3253 #: ../src/guestfs.pod:1552
3256 " if (!has_function)\n"
3257 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\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"
3265 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
3272 #: ../src/guestfs.pod:1565
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:"
3280 #: ../src/guestfs.pod:1570
3283 " Requires: libguestfs >= 1.0.80\n"
3288 #: ../src/guestfs.pod:1572
3289 msgid "CALLS WITH OPTIONAL ARGUMENTS"
3293 #: ../src/guestfs.pod:1574
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:"
3301 #: ../src/guestfs.pod:1579
3304 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
3307 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
3311 #: ../src/guestfs.pod:1581
3313 "Call this with a list of optional arguments, terminated by C<-1>. So to "
3314 "call with no optional arguments specified:"
3318 #: ../src/guestfs.pod:1584
3321 " guestfs_add_drive_opts (g, filename, -1);\n"
3324 " guestfs_add_drive_opts (g, filename, -1);\n"
3328 #: ../src/guestfs.pod:1586
3329 msgid "With a single optional argument:"
3333 #: ../src/guestfs.pod:1588
3336 " guestfs_add_drive_opts (g, filename,\n"
3337 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3341 " guestfs_add_drive_opts (g, filename,\n"
3342 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3347 #: ../src/guestfs.pod:1592
3352 #: ../src/guestfs.pod:1594
3355 " guestfs_add_drive_opts (g, filename,\n"
3356 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3357 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
3361 " guestfs_add_drive_opts (g, filename,\n"
3362 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3363 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
3368 #: ../src/guestfs.pod:1599
3370 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
3375 #: ../src/guestfs.pod:1602
3376 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
3380 #: ../src/guestfs.pod:1604
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:"
3388 #: ../src/guestfs.pod:1608
3391 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3395 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3400 #: ../src/guestfs.pod:1611
3401 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
3405 #: ../src/guestfs.pod:1613
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 "
3415 #: ../src/guestfs.pod:1619
3418 " struct guestfs_add_drive_opts_argv {\n"
3419 " uint64_t bitmask;\n"
3421 " const char *format;\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"
3428 " struct guestfs_add_drive_opts_argv {\n"
3429 " uint64_t bitmask;\n"
3431 " const char *format;\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"
3439 #: ../src/guestfs.pod:1628
3440 msgid "You could call it like this:"
3444 #: ../src/guestfs.pod:1630
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"
3451 " .format = \"qcow2\"\n"
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"
3459 " .format = \"qcow2\"\n"
3464 #: ../src/guestfs.pod:1637
3467 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3470 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
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
3482 #: ../src/guestfs.pod:1645
3484 "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3488 #: ../src/guestfs.pod:1650
3489 msgid "You do not need to fill in all fields of the structure."
3493 #: ../src/guestfs.pod:1654
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."
3500 #: ../src/guestfs.pod:1659
3501 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3505 #: ../src/guestfs.pod:1661
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."
3513 #: ../src/guestfs.pod:1665
3514 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3518 #: ../src/guestfs.pod:1667
3519 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3523 #: ../src/guestfs.pod:1669
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."
3535 #: ../src/guestfs.pod:1678
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."
3547 #: ../src/guestfs.pod:1686
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"
3556 #: ../src/guestfs.pod:1691
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."
3563 #: ../src/guestfs.pod:1695
3564 msgid "CLASSES OF EVENTS"
3568 #: ../src/guestfs.pod:1699
3569 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
3573 #: ../src/guestfs.pod:1702
3575 "The callback function will be called while the handle is being closed "
3576 "(synchronously from L</guestfs_close>)."
3580 #: ../src/guestfs.pod:1705
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)."
3591 #: ../src/guestfs.pod:1712
3593 "If no callback is registered: the handle is closed without any callback "
3598 #: ../src/guestfs.pod:1715
3599 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
3603 #: ../src/guestfs.pod:1718
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)."
3611 #: ../src/guestfs.pod:1722 ../src/guestfs.pod:1731
3612 msgid "If no callback is registered: the event is ignored."
3616 #: ../src/guestfs.pod:1724
3617 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
3621 #: ../src/guestfs.pod:1727
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)."
3629 #: ../src/guestfs.pod:1733
3630 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
3634 #: ../src/guestfs.pod:1736
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)."
3644 #: ../src/guestfs.pod:1742
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>."
3651 #: ../src/guestfs.pod:1745
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 "
3660 #: ../src/guestfs.pod:1750
3661 msgid "The only defined and stable parts of the API are:"
3665 #: ../src/guestfs.pod:1756
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>."
3672 #: ../src/guestfs.pod:1761
3673 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3677 #: ../src/guestfs.pod:1765
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)."
3685 #: ../src/guestfs.pod:1769
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."
3693 #: ../src/guestfs.pod:1775
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)."
3702 #: ../src/guestfs.pod:1780
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>."
3710 #: ../src/guestfs.pod:1784
3712 "As noted above, if the call fails with an error then the final message may "
3717 #: ../src/guestfs.pod:1789
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."
3726 #: ../src/guestfs.pod:1795
3727 msgid "If no callback is registered: progress messages are discarded."
3731 #: ../src/guestfs.pod:1797
3732 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
3736 #: ../src/guestfs.pod:1800
3738 "The callback function is called whenever a log message is generated by qemu,"
3739 " the appliance kernel, guestfsd (daemon), or utility programs."
3743 #: ../src/guestfs.pod:1803
3745 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
3746 "(L</guestfs_launch>) then additional debug messages are generated."
3750 #: ../src/guestfs.pod:1806 ../src/guestfs.pod:1820
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."
3758 #: ../src/guestfs.pod:1811
3759 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
3763 #: ../src/guestfs.pod:1814
3765 "The callback function is called whenever a log message is generated by the "
3766 "library part of libguestfs."
3770 #: ../src/guestfs.pod:1817
3772 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
3773 "messages are generated."
3777 #: ../src/guestfs.pod:1825
3778 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
3782 #: ../src/guestfs.pod:1828
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."
3789 #: ../src/guestfs.pod:1831
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."
3796 #: ../src/guestfs.pod:1837
3797 msgid "guestfs_set_event_callback"
3801 #: ../src/guestfs.pod:1839
3804 " int guestfs_set_event_callback (guestfs_h *g,\n"
3805 " guestfs_event_callback cb,\n"
3806 " uint64_t event_bitmask,\n"
3813 #: ../src/guestfs.pod:1845
3815 "This function registers a callback (C<cb>) for all event classes in the "
3820 #: ../src/guestfs.pod:1848
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>."
3829 #: ../src/guestfs.pod:1854
3830 msgid "C<flags> should always be passed as 0."
3834 #: ../src/guestfs.pod:1856
3836 "C<opaque> is an opaque pointer which is passed to the callback. You can use"
3837 " it for any purpose."
3841 #: ../src/guestfs.pod:1859
3843 "The return value is the event handle (an integer) which you can use to "
3844 "delete the callback (see below)."
3848 #: ../src/guestfs.pod:1862
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.)"
3855 #: ../src/guestfs.pod:1865
3857 "Callbacks remain in effect until they are deleted, or until the handle is "
3862 #: ../src/guestfs.pod:1868
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."
3870 #: ../src/guestfs.pod:1872
3871 msgid "guestfs_delete_event_callback"
3875 #: ../src/guestfs.pod:1874
3878 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
3883 #: ../src/guestfs.pod:1876
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."
3891 #: ../src/guestfs.pod:1880
3892 msgid "guestfs_event_callback"
3896 #: ../src/guestfs.pod:1882
3899 " typedef void (*guestfs_event_callback) (\n"
3902 " uint64_t event,\n"
3903 " int event_handle,\n"
3905 " const char *buf, size_t buf_len,\n"
3906 " const uint64_t *array, size_t array_len);\n"
3911 #: ../src/guestfs.pod:1891
3913 "This is the type of the event callback function that you have to provide."
3917 #: ../src/guestfs.pod:1894
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."
3925 #: ../src/guestfs.pod:1898
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 "
3934 #: ../src/guestfs.pod:1903
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."
3942 #: ../src/guestfs.pod:1907
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."
3949 #: ../src/guestfs.pod:1910
3950 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
3954 #: ../src/guestfs.pod:1912
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>."
3962 #: ../src/guestfs.pod:1916
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)."
3970 #: ../src/guestfs.pod:1921
3972 "Programs have to set up a callback to capture the classes of events of "
3977 #: ../src/guestfs.pod:1924
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"
3993 #: ../src/guestfs.pod:1934
3995 "The callback can then direct messages to the appropriate place. In this "
3996 "example, messages are directed to syslog:"
4000 #: ../src/guestfs.pod:1937
4004 " message_callback (\n"
4007 " uint64_t event,\n"
4008 " int event_handle,\n"
4010 " const char *buf, size_t buf_len,\n"
4011 " const uint64_t *array, size_t array_len)\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"
4021 #: ../src/guestfs.pod:1952
4022 msgid "CANCELLING LONG TRANSFERS"
4026 #: ../src/guestfs.pod:1954
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)."
4035 #: ../src/guestfs.pod:1959
4036 msgid "guestfs_user_cancel"
4040 #: ../src/guestfs.pod:1961
4043 " void guestfs_user_cancel (guestfs_h *g);\n"
4048 #: ../src/guestfs.pod:1963
4050 "C<guestfs_user_cancel> cancels the current upload or download operation."
4054 #: ../src/guestfs.pod:1966
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."
4062 #: ../src/guestfs.pod:1970
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."
4071 #: ../src/guestfs.pod:1976
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."
4079 #: ../src/guestfs.pod:1980
4081 "There are two common places that you might call C<guestfs_user_cancel>."
4085 #: ../src/guestfs.pod:1982
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)."
4094 #: ../src/guestfs.pod:1987
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."
4101 #: ../src/guestfs.pod:1991
4102 msgid "PRIVATE DATA AREA"
4106 #: ../src/guestfs.pod:1993
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."
4114 #: ../src/guestfs.pod:1998
4115 msgid "To attach a named piece of data, use the following call:"
4119 #: ../src/guestfs.pod:2000
4122 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
4125 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
4129 #: ../src/guestfs.pod:2002
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 "
4137 #: ../src/guestfs.pod:2006
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."
4147 #: ../src/guestfs.pod:2012
4148 msgid "To retrieve the pointer, use:"
4152 #: ../src/guestfs.pod:2014
4155 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
4158 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
4162 #: ../src/guestfs.pod:2016
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 "
4170 #: ../src/guestfs.pod:2020
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>)."
4181 #: ../src/guestfs.pod:2027
4182 msgid "To walk over all entries, use these two functions:"
4186 #: ../src/guestfs.pod:2029
4189 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
4194 #: ../src/guestfs.pod:2031
4197 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
4202 #: ../src/guestfs.pod:2033
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."
4212 #: ../src/guestfs.pod:2039
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 "
4220 #: ../src/guestfs.pod:2043
4221 msgid "Notes about walking over entries:"
4225 #: ../src/guestfs.pod:2049
4227 "You must not call C<guestfs_set_private> while walking over the entries."
4231 #: ../src/guestfs.pod:2054
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>."
4239 #: ../src/guestfs.pod:2060
4240 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
4244 #: ../src/guestfs.pod:2062
4247 " guestfs_set_private (g, key, NULL);\n"
4252 #: ../src/guestfs.pod:2064
4253 msgid "then that C<key> is not returned when walking."
4257 #: ../src/guestfs.pod:2068
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>."
4264 #: ../src/guestfs.pod:2074
4266 "The following example code shows how to print all keys and data pointers "
4267 "that are associated with the handle C<g>:"
4271 #: ../src/guestfs.pod:2077
4274 " const char *key;\n"
4275 " void *data = guestfs_first_private (g, &key);\n"
4276 " while (data != NULL)\n"
4278 " printf (\"key = %s, data = %p\\n\", key, data);\n"
4279 " data = guestfs_next_private (g, &key);\n"
4285 #: ../src/guestfs.pod:2085
4287 "More commonly you are only interested in keys that begin with an "
4288 "application-specific prefix C<foo_>. Modify the loop like so:"
4292 #: ../src/guestfs.pod:2088
4295 " const char *key;\n"
4296 " void *data = guestfs_first_private (g, &key);\n"
4297 " while (data != NULL)\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"
4307 #: ../src/guestfs.pod:2097
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 "
4315 #: ../src/guestfs.pod:2101
4318 " const char *key;\n"
4321 " data = guestfs_first_private (g, &key);\n"
4322 " while (data != NULL)\n"
4324 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\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"
4331 " data = guestfs_next_private (g, &key);\n"
4337 #: ../src/guestfs.pod:2117
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 "
4346 #: ../src/guestfs.pod:2122 ../src/guestfs.pod:2127
4351 #: ../src/guestfs.pod:2124
4353 "<!-- old anchor for the next section --> <a "
4354 "name=\"state_machine_and_low_level_event_api\"/>"
4356 "<!-- old anchor for the next section --> <a "
4357 "name=\"state_machine_and_low_level_event_api\"/>"
4360 #: ../src/guestfs.pod:2129
4361 msgid "ARCHITECTURE"
4362 msgstr "АРХІТЕКТУРА"
4365 #: ../src/guestfs.pod:2131
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."
4373 #: ../src/guestfs.pod:2135
4376 " ___________________\n"
4378 " | main program |\n"
4380 " | | child process / appliance\n"
4381 " | | __________________________\n"
4383 " +-------------------+ RPC | +-----------------+ |\n"
4384 " | libguestfs <--------------------> guestfsd | |\n"
4385 " | | | +-----------------+ |\n"
4386 " \\___________________/ | | Linux kernel | |\n"
4387 " | +--^--------------+ |\n"
4388 " \\_________|________________/\n"
4394 " \\______________/\n"
4399 #: ../src/guestfs.pod:2155
4401 "The library, linked to the main program, creates the child process and hence"
4402 " the appliance in the L</guestfs_launch> function."
4406 #: ../src/guestfs.pod:2158
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."
4418 #: ../src/guestfs.pod:2167
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)."
4429 #: ../src/guestfs.pod:2174
4430 msgid "STATE MACHINE"
4431 msgstr "СКІНЧЕННИЙ АВТОМАТ"
4434 #: ../src/guestfs.pod:2176
4435 msgid "libguestfs uses a state machine to model the child process:"
4439 #: ../src/guestfs.pod:2178
4451 " / | \\ \\ guestfs_launch\n"
4452 " / | _\\__V______\n"
4454 " / | | LAUNCHING |\n"
4455 " / | \\___________/\n"
4457 " / | guestfs_launch\n"
4459 " ______ / __|____V\n"
4460 " / \\ ------> / \\\n"
4461 " | BUSY | | READY |\n"
4462 " \\______/ <------ \\________/\n"
4467 #: ../src/guestfs.pod:2200
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."
4476 #: ../src/guestfs.pod:2205
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."
4484 #: ../src/guestfs.pod:2209
4486 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
4487 "issued when in the CONFIG state."
4491 #: ../src/guestfs.pod:2212
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."
4500 #: ../src/guestfs.pod:2218
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 "
4510 #: ../src/guestfs.pod:2224
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."
4518 #: ../src/guestfs.pod:2228
4523 #: ../src/guestfs.pod:2230
4524 msgid "COMMUNICATION PROTOCOL"
4528 #: ../src/guestfs.pod:2232
4530 "Don't rely on using this protocol directly. This section documents how it "
4531 "currently works, but it may change at any time."
4535 #: ../src/guestfs.pod:2235
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)."
4543 #: ../src/guestfs.pod:2239
4545 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
4546 "this file is automatically generated)."
4550 #: ../src/guestfs.pod:2242
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."
4560 #: ../src/guestfs.pod:2249
4561 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
4565 #: ../src/guestfs.pod:2251
4566 msgid "For ordinary functions, the request message is:"
4570 #: ../src/guestfs.pod:2253
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"
4581 #: ../src/guestfs.pod:2258
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."
4590 #: ../src/guestfs.pod:2264
4592 "Note also that many functions don't take any arguments, in which case the "
4593 "C<guestfs_I<foo>_args> is completely omitted."
4597 #: ../src/guestfs.pod:2267
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."
4604 #: ../src/guestfs.pod:2271
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 "
4616 #: ../src/guestfs.pod:2279
4617 msgid "The reply message for ordinary functions is:"
4621 #: ../src/guestfs.pod:2281
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"
4632 #: ../src/guestfs.pod:2286
4634 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
4635 "functions that return no formal return values."
4639 #: ../src/guestfs.pod:2289
4641 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
4645 #: ../src/guestfs.pod:2292
4647 "In the case of an error, a flag is set in the header, and the reply message "
4648 "is slightly changed:"
4652 #: ../src/guestfs.pod:2295
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"
4663 #: ../src/guestfs.pod:2300
4665 "The C<guestfs_message_error> structure contains the error message as a "
4670 #: ../src/guestfs.pod:2303
4671 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
4675 #: ../src/guestfs.pod:2305
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."
4683 #: ../src/guestfs.pod:2309
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"
4697 #: ../src/guestfs.pod:2317
4698 msgid "The \"sequence of chunks\" is:"
4702 #: ../src/guestfs.pod:2319
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"
4710 " length of chunk\n"
4711 " struct guestfs_chunk (with data.data_len == 0)\n"
4716 #: ../src/guestfs.pod:2327
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 "
4724 #: ../src/guestfs.pod:2331
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"
4733 #: ../src/guestfs.pod:2336
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."
4742 #: ../src/guestfs.pod:2342
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."
4754 #: ../src/guestfs.pod:2351
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."
4764 #: ../src/guestfs.pod:2357
4765 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
4769 #: ../src/guestfs.pod:2359
4771 "The protocol for FileOut parameters is exactly the same as for FileIn "
4772 "parameters, but with the roles of daemon and library reversed."
4776 #: ../src/guestfs.pod:2362
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"
4790 #: ../src/guestfs.pod:2370
4791 msgid "INITIAL MESSAGE"
4795 #: ../src/guestfs.pod:2372
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."
4803 #: ../src/guestfs.pod:2376
4804 msgid "PROGRESS NOTIFICATION MESSAGES"
4808 #: ../src/guestfs.pod:2378
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."
4816 #: ../src/guestfs.pod:2382
4818 "The library turns them into progress callbacks (see "
4819 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
4824 #: ../src/guestfs.pod:2386
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 "
4832 #: ../src/guestfs.pod:2390
4833 msgid "LIBGUESTFS VERSION NUMBERS"
4837 #: ../src/guestfs.pod:2392
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:"
4845 #: ../src/guestfs.pod:2397
4848 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
4849 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
4855 " | `-------- sub-version\n"
4857 " `------ always '1' because we don't change the ABI\n"
4862 #: ../src/guestfs.pod:2408
4863 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
4867 #: ../src/guestfs.pod:2410
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 "
4877 #: ../src/guestfs.pod:2416
4878 msgid "Our criteria for backporting changes are:"
4882 #: ../src/guestfs.pod:2422
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."
4889 #: ../src/guestfs.pod:2428
4891 "Bug fixes which are not controversial, fix obvious problems, and have been "
4892 "well tested are backported."
4896 #: ../src/guestfs.pod:2433
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."
4904 #: ../src/guestfs.pod:2439
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."
4912 #: ../src/guestfs.pod:2445
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."
4923 #: ../src/guestfs.pod:2453
4924 msgid "EXTENDING LIBGUESTFS"
4928 #: ../src/guestfs.pod:2455
4929 msgid "ADDING A NEW API ACTION"
4933 #: ../src/guestfs.pod:2457
4935 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
4936 "documentation) are generated, and this makes it easy to extend the "
4941 #: ../src/guestfs.pod:2461
4942 msgid "To add a new API action there are two changes:"
4946 #: ../src/guestfs.pod:2467
4948 "You need to add a description of the call (name, parameters, return type, "
4949 "tests, documentation) to C<generator/generator_actions.ml>."
4953 #: ../src/guestfs.pod:2470
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."
4964 #: ../src/guestfs.pod:2478
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 "
4974 #: ../src/guestfs.pod:2484
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"
4984 #: ../src/guestfs.pod:2492
4985 msgid "Implement the action (in C):"
4989 #: ../src/guestfs.pod:2494
4991 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
4992 "C<daemon/> directory."
4996 #: ../src/guestfs.pod:2497
4998 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
4999 "(note: double underscore) in the C<src/> directory."
5003 #: ../src/guestfs.pod:2500
5004 msgid "In either case, use another function as an example of what to do."
5008 #: ../src/guestfs.pod:2504
5009 msgid "After making these changes, use C<make> to compile."
5013 #: ../src/guestfs.pod:2506
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 "
5021 #: ../src/guestfs.pod:2510
5022 msgid "ADDING TESTS FOR AN API ACTION"
5026 #: ../src/guestfs.pod:2512
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."
5036 #: ../src/guestfs.pod:2518
5038 "The following describes the test environment used when you add an API test "
5039 "in C<generator_actions.ml>."
5043 #: ../src/guestfs.pod:2521
5044 msgid "The test environment has 4 block devices:"
5048 #: ../src/guestfs.pod:2525
5049 msgid "C</dev/sda> 500MB"
5050 msgstr "C</dev/sda> 500 МБ"
5053 #: ../src/guestfs.pod:2527
5054 msgid "General block device for testing."
5058 #: ../src/guestfs.pod:2529
5059 msgid "C</dev/sdb> 50MB"
5060 msgstr "C</dev/sdb> 50 МБ"
5063 #: ../src/guestfs.pod:2531
5065 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
5070 #: ../src/guestfs.pod:2534
5071 msgid "C</dev/sdc> 10MB"
5072 msgstr "C</dev/sdc> 10 МБ"
5075 #: ../src/guestfs.pod:2536
5076 msgid "Used in a few tests where two block devices are needed."
5080 #: ../src/guestfs.pod:2538
5082 msgstr "C</dev/sdd>"
5085 #: ../src/guestfs.pod:2540
5086 msgid "ISO with fixed content (see C<images/test.iso>)."
5090 #: ../src/guestfs.pod:2544
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"
5098 #: ../src/guestfs.pod:2548
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."
5108 #: ../src/guestfs.pod:2554
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 "
5118 #: ../src/guestfs.pod:2560
5120 "In addition, packagers can skip individual tests by setting environment "
5121 "variables before running C<make check>."
5125 #: ../src/guestfs.pod:2563
5128 " SKIP_TEST_<CMD>_<NUM>=1\n"
5133 #: ../src/guestfs.pod:2565
5134 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
5138 #: ../src/guestfs.pod:2567
5143 #: ../src/guestfs.pod:2569
5146 " SKIP_TEST_<CMD>=1\n"
5151 #: ../src/guestfs.pod:2571
5152 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
5156 #: ../src/guestfs.pod:2573
5157 msgid "Packagers can run only certain tests by setting for example:"
5161 #: ../src/guestfs.pod:2575
5164 " TEST_ONLY=\"vfs_type zerofree\"\n"
5169 #: ../src/guestfs.pod:2577
5171 "See C<capitests/tests.c> for more details of how these environment variables"
5176 #: ../src/guestfs.pod:2580
5177 msgid "DEBUGGING NEW API ACTIONS"
5181 #: ../src/guestfs.pod:2582
5182 msgid "Test new actions work before submitting them."
5186 #: ../src/guestfs.pod:2584
5187 msgid "You can use guestfish to try out new commands."
5191 #: ../src/guestfs.pod:2586
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>."
5199 #: ../src/guestfs.pod:2590
5200 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
5204 #: ../src/guestfs.pod:2592
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."
5214 #: ../src/guestfs.pod:2598
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:"
5221 #: ../src/guestfs.pod:2601
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"
5237 #: ../src/guestfs.pod:2611
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"
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"
5255 #: ../src/guestfs.pod:2623
5256 msgid "Enable warnings when compiling (and fix any problems this finds):"
5260 #: ../src/guestfs.pod:2626
5263 " ./configure --enable-gcc-warnings\n"
5266 " ./configure --enable-gcc-warnings\n"
5270 #: ../src/guestfs.pod:2628
5271 msgid "Useful targets are:"
5275 #: ../src/guestfs.pod:2630
5278 " make syntax-check # checks the syntax of the C code\n"
5279 " make check # runs the test suite\n"
5284 #: ../src/guestfs.pod:2633
5285 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
5289 #: ../src/guestfs.pod:2635
5291 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>,"
5292 " which are used to do shell quoting."
5296 #: ../src/guestfs.pod:2640
5301 #: ../src/guestfs.pod:2642
5303 "Simple shell quoted string. Any spaces or other shell characters are "
5308 #: ../src/guestfs.pod:2645
5313 #: ../src/guestfs.pod:2647
5315 "Same as C<%Q> except the string is treated as a path which is prefixed by "
5320 #: ../src/guestfs.pod:2652 ../fish/guestfish.pod:242 ../fish/guestfish.pod:673
5321 msgid "For example:"
5325 #: ../src/guestfs.pod:2654
5328 " asprintf (&cmd, \"cat %R\", path);\n"
5333 #: ../src/guestfs.pod:2656
5334 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
5338 #: ../src/guestfs.pod:2658
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."
5347 #: ../src/guestfs.pod:2664
5348 msgid "SUBMITTING YOUR NEW API ACTIONS"
5352 #: ../src/guestfs.pod:2666
5354 "Submit patches to the mailing list: "
5355 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
5356 "L<rjones@redhat.com>."
5360 #: ../src/guestfs.pod:2670
5361 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
5365 #: ../src/guestfs.pod:2672
5366 msgid "We support i18n (gettext anyhow) in the library."
5370 #: ../src/guestfs.pod:2674
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."
5379 #: ../src/guestfs.pod:2680
5381 "Debugging messages are never translated, since they are intended for the "
5386 #: ../src/guestfs.pod:2683
5387 msgid "SOURCE CODE SUBDIRECTORIES"
5391 #: ../src/guestfs.pod:2687 ../src/guestfs-actions.pod:6174
5392 #: ../fish/guestfish-actions.pod:4072
5393 msgid "C<appliance>"
5394 msgstr "C<appliance>"
5397 #: ../src/guestfs.pod:2689
5398 msgid "The libguestfs appliance, build scripts and so on."
5402 #: ../src/guestfs.pod:2691
5403 msgid "C<capitests>"
5404 msgstr "C<capitests>"
5407 #: ../src/guestfs.pod:2693
5408 msgid "Automated tests of the C API."
5412 #: ../src/guestfs.pod:2695
5417 #: ../src/guestfs.pod:2697
5419 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
5424 #: ../src/guestfs.pod:2700
5429 #: ../src/guestfs.pod:2702
5431 "Safety and liveness tests of components that libguestfs depends upon (not of"
5432 " libguestfs itself). Mainly this is for qemu and the kernel."
5436 #: ../src/guestfs.pod:2705
5441 #: ../src/guestfs.pod:2707
5442 msgid "Outside contributions, experimental parts."
5446 #: ../src/guestfs.pod:2709
5451 #: ../src/guestfs.pod:2711
5453 "The daemon that runs inside the libguestfs appliance and carries out "
5458 #: ../src/guestfs.pod:2714
5463 #: ../src/guestfs.pod:2716
5464 msgid "L<virt-df(1)> command and documentation."
5468 #: ../src/guestfs.pod:2718
5473 #: ../src/guestfs.pod:2720
5474 msgid "L<virt-edit(1)> command and documentation."
5478 #: ../src/guestfs.pod:2722
5480 msgstr "C<examples>"
5483 #: ../src/guestfs.pod:2724
5484 msgid "C API example code."
5485 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
5488 #: ../src/guestfs.pod:2726
5493 #: ../src/guestfs.pod:2728
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)>."
5501 #: ../src/guestfs.pod:2732
5506 #: ../src/guestfs.pod:2734
5508 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
5512 #: ../src/guestfs.pod:2736
5513 msgid "C<generator>"
5514 msgstr "C<generator>"
5517 #: ../src/guestfs.pod:2738
5519 "The crucially important generator, used to automatically generate large "
5520 "amounts of boilerplate C code for things like RPC and bindings."
5524 #: ../src/guestfs.pod:2741
5529 #: ../src/guestfs.pod:2743
5530 msgid "Files used by the test suite."
5534 #: ../src/guestfs.pod:2745
5535 msgid "Some \"phony\" guest images which we test against."
5539 #: ../src/guestfs.pod:2747
5540 msgid "C<inspector>"
5541 msgstr "C<inspector>"
5544 #: ../src/guestfs.pod:2749
5545 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
5549 #: ../src/guestfs.pod:2751
5554 #: ../src/guestfs.pod:2753
5555 msgid "Logo used on the website. The fish is called Arthur by the way."
5559 #: ../src/guestfs.pod:2755
5564 #: ../src/guestfs.pod:2757
5565 msgid "M4 macros used by autoconf."
5569 #: ../src/guestfs.pod:2759
5574 #: ../src/guestfs.pod:2761
5575 msgid "Translations of simple gettext strings."
5576 msgstr "Переклади простих рядків gettext."
5579 #: ../src/guestfs.pod:2763
5584 #: ../src/guestfs.pod:2765
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."
5592 #: ../src/guestfs.pod:2769
5593 msgid "C<regressions>"
5594 msgstr "C<regressions>"
5597 #: ../src/guestfs.pod:2771
5598 msgid "Regression tests."
5599 msgstr "Тести на регресії."
5602 #: ../src/guestfs.pod:2773
5607 #: ../src/guestfs.pod:2775
5608 msgid "L<virt-rescue(1)> command and documentation."
5612 #: ../src/guestfs.pod:2777
5617 #: ../src/guestfs.pod:2779
5618 msgid "Source code to the C library."
5622 #: ../src/guestfs.pod:2781
5627 #: ../src/guestfs.pod:2783
5629 "Command line tools written in Perl (L<virt-resize(1)> and many others)."
5633 #: ../src/guestfs.pod:2785
5634 msgid "C<test-tool>"
5635 msgstr "C<test-tool>"
5638 #: ../src/guestfs.pod:2787
5640 "Test tool for end users to test if their qemu/kernel combination will work "
5645 #: ../src/guestfs.pod:2790
5650 #: ../src/guestfs.pod:2792
5655 #: ../src/guestfs.pod:2794
5660 #: ../src/guestfs.pod:2796
5665 #: ../src/guestfs.pod:2798
5670 #: ../src/guestfs.pod:2800
5675 #: ../src/guestfs.pod:2802
5680 #: ../src/guestfs.pod:2804
5685 #: ../src/guestfs.pod:2806
5686 msgid "Language bindings."
5687 msgstr "Прив’язки до мов програмування."
5690 #: ../src/guestfs.pod:2810
5695 #: ../src/guestfs.pod:2812
5696 msgid "PROTOCOL LIMITS"
5697 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
5700 #: ../src/guestfs.pod:2814
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."
5711 #: ../src/guestfs.pod:2822
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."
5720 #: ../src/guestfs.pod:2828
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."
5728 #: ../src/guestfs.pod:2832
5730 "You might also consider mounting the disk image using our FUSE filesystem "
5731 "support (L<guestmount(1)>)."
5735 #: ../src/guestfs.pod:2835
5736 msgid "MAXIMUM NUMBER OF DISKS"
5740 #: ../src/guestfs.pod:2837
5742 "When using virtio disks (the default) the current limit is B<25> disks."
5746 #: ../src/guestfs.pod:2840
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 "
5755 #: ../src/guestfs.pod:2845
5757 "We are working to substantially raise this limit in future versions but it "
5758 "requires complex changes to qemu."
5762 #: ../src/guestfs.pod:2848
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."
5770 #: ../src/guestfs.pod:2852
5771 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
5775 #: ../src/guestfs.pod:2854
5776 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
5780 #: ../src/guestfs.pod:2856
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>)."
5787 #: ../src/guestfs.pod:2859
5789 "If you attach a disk with more than 15 partitions, the extra partitions are "
5790 "ignored by libguestfs."
5794 #: ../src/guestfs.pod:2862
5795 msgid "MAXIMUM SIZE OF A DISK"
5799 #: ../src/guestfs.pod:2864
5800 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
5804 #: ../src/guestfs.pod:2866
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 "
5812 #: ../src/guestfs.pod:2870
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."
5822 #: ../src/guestfs.pod:2876
5824 "For the hugest disk image files, we recommend using XFS on the host for "
5829 #: ../src/guestfs.pod:2879
5830 msgid "MAXIMUM SIZE OF A PARTITION"
5834 #: ../src/guestfs.pod:2881
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."
5842 #: ../src/guestfs.pod:2885
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."
5850 #: ../src/guestfs.pod:2890
5851 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
5855 #: ../src/guestfs.pod:2892
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."
5863 #: ../src/guestfs.pod:2896
5864 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
5868 #: ../src/guestfs.pod:2898
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."
5876 #: ../src/guestfs.pod:2902
5877 msgid "INSPECTION LIMITS"
5881 #: ../src/guestfs.pod:2904
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."
5891 #: ../src/guestfs.pod:2910 ../fish/guestfish.pod:1075
5892 #: ../test-tool/libguestfs-test-tool.pod:82
5893 msgid "ENVIRONMENT VARIABLES"
5894 msgstr "ЗМІННІ СЕРЕДОВИЩА"
5897 #: ../src/guestfs.pod:2914 ../fish/guestfish.pod:1106
5898 msgid "LIBGUESTFS_APPEND"
5902 #: ../src/guestfs.pod:2916 ../fish/guestfish.pod:1108
5903 msgid "Pass additional options to the guest kernel."
5907 #: ../src/guestfs.pod:2918 ../fish/guestfish.pod:1110
5908 msgid "LIBGUESTFS_DEBUG"
5909 msgstr "LIBGUESTFS_DEBUG"
5912 #: ../src/guestfs.pod:2920
5914 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
5915 "effect as calling C<guestfs_set_verbose (g, 1)>."
5919 #: ../src/guestfs.pod:2923 ../fish/guestfish.pod:1115
5920 msgid "LIBGUESTFS_MEMSIZE"
5921 msgstr "LIBGUESTFS_MEMSIZE"
5924 #: ../src/guestfs.pod:2925 ../fish/guestfish.pod:1117
5926 "Set the memory allocated to the qemu process, in megabytes. For example:"
5930 #: ../src/guestfs.pod:2928 ../fish/guestfish.pod:1120
5933 " LIBGUESTFS_MEMSIZE=700\n"
5936 " LIBGUESTFS_MEMSIZE=700\n"
5940 #: ../src/guestfs.pod:2930 ../fish/guestfish.pod:1122
5941 msgid "LIBGUESTFS_PATH"
5945 #: ../src/guestfs.pod:2932
5947 "Set the path that libguestfs uses to search for a supermin appliance. See "
5948 "the discussion of paths in section L</PATH> above."
5952 #: ../src/guestfs.pod:2935 ../fish/guestfish.pod:1127
5953 msgid "LIBGUESTFS_QEMU"
5957 #: ../src/guestfs.pod:2937 ../fish/guestfish.pod:1129
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."
5964 #: ../src/guestfs.pod:2941
5965 msgid "See also L</QEMU WRAPPERS> above."
5969 #: ../src/guestfs.pod:2943 ../fish/guestfish.pod:1133
5970 msgid "LIBGUESTFS_TRACE"
5974 #: ../src/guestfs.pod:2945
5976 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
5977 "effect as calling C<guestfs_set_trace (g, 1)>."
5981 #: ../src/guestfs.pod:2948 ../fish/guestfish.pod:1142
5986 #: ../src/guestfs.pod:2950 ../fish/guestfish.pod:1144
5988 "Location of temporary directory, defaults to C</tmp> except for the cached "
5989 "supermin appliance which defaults to C</var/tmp>."
5993 #: ../src/guestfs.pod:2953 ../fish/guestfish.pod:1147
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."
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
6008 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
6011 #: ../src/guestfs.pod:2963
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/>."
6024 #: ../src/guestfs.pod:2990
6026 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
6027 "L<lvm(8)>, L<disktype(1)>."
6031 #: ../src/guestfs.pod:2997 ../tools/virt-win-reg.pl:759
6032 #: ../tools/virt-make-fs.pl:553
6037 #: ../src/guestfs.pod:2999
6038 msgid "To get a list of bugs against libguestfs use this link:"
6040 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
6044 #: ../src/guestfs.pod:3001
6046 "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
6048 "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
6051 #: ../src/guestfs.pod:3003
6052 msgid "To report a new bug against libguestfs use this link:"
6053 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
6056 #: ../src/guestfs.pod:3005
6058 "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
6060 "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
6063 #: ../src/guestfs.pod:3007
6064 msgid "When reporting a bug, please check:"
6068 #: ../src/guestfs.pod:3013
6069 msgid "That the bug hasn't been reported already."
6073 #: ../src/guestfs.pod:3017
6074 msgid "That you are testing a recent version."
6078 #: ../src/guestfs.pod:3021
6079 msgid "Describe the bug accurately, and give a way to reproduce it."
6083 #: ../src/guestfs.pod:3025
6085 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the"
6090 #: ../src/guestfs.pod:3030 ../fish/guestfish.pod:1238
6091 #: ../test-tool/libguestfs-test-tool.pod:93 ../fuse/guestmount.pod:290
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>)"
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
6108 msgstr "АВТОРСЬКІ ПРАВА"
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/>"
6117 #: ../src/guestfs.pod:3039
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."
6126 #: ../src/guestfs.pod:3044
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."
6135 #: ../src/guestfs.pod:3049
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"
6143 #: ../src/guestfs-actions.pod:1
6144 msgid "guestfs_add_cdrom"
6148 #: ../src/guestfs-actions.pod:3
6152 " guestfs_add_cdrom (guestfs_h *g,\n"
6153 " const char *filename);\n"
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."
6163 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
6164 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
6168 #: ../src/guestfs-actions.pod:17
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"
6177 #: ../src/guestfs-actions.pod:24
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."
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."
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
6283 "This function is deprecated. In new code, use the C<add_drive_opts> call "
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
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 "
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)"
6324 #: ../src/guestfs-actions.pod:41
6325 msgid "guestfs_add_domain"
6329 #: ../src/guestfs-actions.pod:43
6333 " guestfs_add_domain (guestfs_h *g,\n"
6334 " const char *dom,\n"
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
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>."
6351 #: ../src/guestfs-actions.pod:53
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"
6363 #: ../src/guestfs-actions.pod:59
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"
6372 #: ../src/guestfs-actions.pod:64 ../fish/guestfish-actions.pod:46
6374 "The number of disks added is returned. This operation is atomic: if an "
6375 "error is returned, then no disks are added."
6379 #: ../src/guestfs-actions.pod:67 ../fish/guestfish-actions.pod:49
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."
6387 #: ../src/guestfs-actions.pod:71 ../fish/guestfish-actions.pod:53
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."
6395 #: ../src/guestfs-actions.pod:76 ../fish/guestfish-actions.pod:58
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)."
6404 #: ../src/guestfs-actions.pod:82 ../fish/guestfish-actions.pod:64
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."
6414 #: ../src/guestfs-actions.pod:89 ../fish/guestfish-actions.pod:71
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"
6423 #: ../src/guestfs-actions.pod:94
6425 "The other optional parameters are passed directly through to "
6426 "C<guestfs_add_drive_opts>."
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."
6447 #: ../src/guestfs-actions.pod:99
6448 msgid "(Added in 1.7.4)"
6452 #: ../src/guestfs-actions.pod:101
6453 msgid "guestfs_add_domain_va"
6457 #: ../src/guestfs-actions.pod:103
6461 " guestfs_add_domain_va (guestfs_h *g,\n"
6462 " const char *dom,\n"
6468 #: ../src/guestfs-actions.pod:108
6469 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
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>."
6484 #: ../src/guestfs-actions.pod:112
6485 msgid "guestfs_add_domain_argv"
6486 msgstr "guestfs_add_domain_argv"
6489 #: ../src/guestfs-actions.pod:114
6493 " guestfs_add_domain_argv (guestfs_h *g,\n"
6494 " const char *dom,\n"
6495 " const struct guestfs_add_domain_argv *optargs);\n"
6500 #: ../src/guestfs-actions.pod:119
6501 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
6505 #: ../src/guestfs-actions.pod:123
6506 msgid "guestfs_add_drive"
6510 #: ../src/guestfs-actions.pod:125
6514 " guestfs_add_drive (guestfs_h *g,\n"
6515 " const char *filename);\n"
6520 #: ../src/guestfs-actions.pod:129
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."
6528 #: ../src/guestfs-actions.pod:133
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."
6538 #: ../src/guestfs-actions.pod:144
6539 msgid "guestfs_add_drive_opts"
6543 #: ../src/guestfs-actions.pod:146
6547 " guestfs_add_drive_opts (guestfs_h *g,\n"
6548 " const char *filename,\n"
6554 #: ../src/guestfs-actions.pod:156
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"
6564 #: ../src/guestfs-actions.pod:160 ../fish/guestfish-actions.pod:102
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."
6572 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:107
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)."
6581 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:113
6582 msgid "This call checks that C<filename> exists."
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:"
6592 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:119
6594 msgstr "C<readonly>"
6597 #: ../src/guestfs-actions.pod:179 ../fish/guestfish-actions.pod:121
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."
6605 #: ../src/guestfs-actions.pod:183 ../fish/guestfish-actions.pod:125
6610 #: ../src/guestfs-actions.pod:185
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>."
6618 #: ../src/guestfs-actions.pod:189 ../fish/guestfish-actions.pod:131
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."
6626 #: ../src/guestfs-actions.pod:194 ../fish/guestfish-actions.pod:136
6631 #: ../src/guestfs-actions.pod:196
6633 "This rarely-used option lets you emulate the behaviour of the deprecated "
6634 "C<guestfs_add_drive_with_if> call (q.v.)"
6638 #: ../src/guestfs-actions.pod:203
6639 msgid "(Added in 1.5.23)"
6643 #: ../src/guestfs-actions.pod:205
6644 msgid "guestfs_add_drive_opts_va"
6648 #: ../src/guestfs-actions.pod:207
6652 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
6653 " const char *filename,\n"
6659 #: ../src/guestfs-actions.pod:212
6660 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
6664 #: ../src/guestfs-actions.pod:216
6665 msgid "guestfs_add_drive_opts_argv"
6669 #: ../src/guestfs-actions.pod:218
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"
6680 #: ../src/guestfs-actions.pod:223
6681 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
6685 #: ../src/guestfs-actions.pod:227
6686 msgid "guestfs_add_drive_ro"
6690 #: ../src/guestfs-actions.pod:229
6694 " guestfs_add_drive_ro (guestfs_h *g,\n"
6695 " const char *filename);\n"
6700 #: ../src/guestfs-actions.pod:233
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."
6708 #: ../src/guestfs-actions.pod:240
6709 msgid "(Added in 1.0.38)"
6713 #: ../src/guestfs-actions.pod:242
6714 msgid "guestfs_add_drive_ro_with_if"
6718 #: ../src/guestfs-actions.pod:244
6722 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
6723 " const char *filename,\n"
6724 " const char *iface);\n"
6729 #: ../src/guestfs-actions.pod:249
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."
6736 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
6737 #: ../src/guestfs-actions.pod:2429
6738 msgid "(Added in 1.0.84)"
6742 #: ../src/guestfs-actions.pod:263
6743 msgid "guestfs_add_drive_with_if"
6747 #: ../src/guestfs-actions.pod:265
6751 " guestfs_add_drive_with_if (guestfs_h *g,\n"
6752 " const char *filename,\n"
6753 " const char *iface);\n"
6758 #: ../src/guestfs-actions.pod:270
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."
6765 #: ../src/guestfs-actions.pod:284
6766 msgid "guestfs_aug_clear"
6770 #: ../src/guestfs-actions.pod:286
6774 " guestfs_aug_clear (guestfs_h *g,\n"
6775 " const char *augpath);\n"
6780 #: ../src/guestfs-actions.pod:290 ../fish/guestfish-actions.pod:188
6782 "Set the value associated with C<path> to C<NULL>. This is the same as the "
6783 "L<augtool(1)> C<clear> command."
6787 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2179
6788 msgid "(Added in 1.3.4)"
6792 #: ../src/guestfs-actions.pod:297
6793 msgid "guestfs_aug_close"
6797 #: ../src/guestfs-actions.pod:299
6801 " guestfs_aug_close (guestfs_h *g);\n"
6806 #: ../src/guestfs-actions.pod:302
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."
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)"
6825 #: ../src/guestfs-actions.pod:311
6826 msgid "guestfs_aug_defnode"
6830 #: ../src/guestfs-actions.pod:313
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"
6842 #: ../src/guestfs-actions.pod:319 ../fish/guestfish-actions.pod:204
6844 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6848 #: ../src/guestfs-actions.pod:322
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."
6856 #: ../src/guestfs-actions.pod:326 ../fish/guestfish-actions.pod:211
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."
6863 #: ../src/guestfs-actions.pod:330
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>."
6870 #: ../src/guestfs-actions.pod:336
6871 msgid "guestfs_aug_defvar"
6875 #: ../src/guestfs-actions.pod:338
6879 " guestfs_aug_defvar (guestfs_h *g,\n"
6880 " const char *name,\n"
6881 " const char *expr);\n"
6886 #: ../src/guestfs-actions.pod:343 ../fish/guestfish-actions.pod:219
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."
6893 #: ../src/guestfs-actions.pod:347 ../fish/guestfish-actions.pod:223
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."
6900 #: ../src/guestfs-actions.pod:354
6901 msgid "guestfs_aug_get"
6905 #: ../src/guestfs-actions.pod:356
6909 " guestfs_aug_get (guestfs_h *g,\n"
6910 " const char *augpath);\n"
6915 #: ../src/guestfs-actions.pod:360 ../fish/guestfish-actions.pod:230
6917 "Look up the value associated with C<path>. If C<path> matches exactly one "
6918 "node, the C<value> is returned."
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
6947 "This function returns a string, or NULL on error. I<The caller must free "
6948 "the returned string after use>."
6952 #: ../src/guestfs-actions.pod:368
6953 msgid "guestfs_aug_init"
6957 #: ../src/guestfs-actions.pod:370
6961 " guestfs_aug_init (guestfs_h *g,\n"
6962 " const char *root,\n"
6968 #: ../src/guestfs-actions.pod:375 ../fish/guestfish-actions.pod:237
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 "
6976 #: ../src/guestfs-actions.pod:379
6977 msgid "You must call this before using any other C<guestfs_aug_*> commands."
6981 #: ../src/guestfs-actions.pod:382 ../fish/guestfish-actions.pod:244
6983 "C<root> is the filesystem root. C<root> must not be NULL, use C</> instead."
6987 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:247
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:"
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"
6999 #: ../src/guestfs-actions.pod:393 ../fish/guestfish-actions.pod:255
7000 msgid "Keep the original file with a C<.augsave> extension."
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"
7009 #: ../src/guestfs-actions.pod:397 ../fish/guestfish-actions.pod:259
7011 "Save changes into a file with extension C<.augnew>, and do not overwrite "
7012 "original. Overrides C<AUG_SAVE_BACKUP>."
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"
7021 #: ../src/guestfs-actions.pod:402 ../fish/guestfish-actions.pod:264
7022 msgid "Typecheck lenses (can be expensive)."
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"
7031 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:268
7032 msgid "Do not use standard load path for modules."
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"
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."
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"
7051 #: ../src/guestfs-actions.pod:414
7052 msgid "Do not load the tree in C<guestfs_aug_init>."
7056 #: ../src/guestfs-actions.pod:418
7057 msgid "To close the handle, you can call C<guestfs_aug_close>."
7061 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:282
7062 msgid "To find out more about Augeas, see L<http://augeas.net/>."
7066 #: ../src/guestfs-actions.pod:426
7067 msgid "guestfs_aug_insert"
7071 #: ../src/guestfs-actions.pod:428
7075 " guestfs_aug_insert (guestfs_h *g,\n"
7076 " const char *augpath,\n"
7077 " const char *label,\n"
7083 #: ../src/guestfs-actions.pod:434 ../fish/guestfish-actions.pod:288
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>)."
7090 #: ../src/guestfs-actions.pod:438 ../fish/guestfish-actions.pod:292
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]>."
7097 #: ../src/guestfs-actions.pod:446
7098 msgid "guestfs_aug_load"
7102 #: ../src/guestfs-actions.pod:448
7106 " guestfs_aug_load (guestfs_h *g);\n"
7111 #: ../src/guestfs-actions.pod:451 ../fish/guestfish-actions.pod:300
7112 msgid "Load files into the tree."
7113 msgstr "Завантажити файли до ієрархії."
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."
7121 #: ../src/guestfs-actions.pod:460
7122 msgid "guestfs_aug_ls"
7126 #: ../src/guestfs-actions.pod:462
7130 " guestfs_aug_ls (guestfs_h *g,\n"
7131 " const char *augpath);\n"
7136 #: ../src/guestfs-actions.pod:466
7138 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
7139 "sorting the resulting nodes into alphabetical order."
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
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>."
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)"
7187 #: ../src/guestfs-actions.pod:475
7188 msgid "guestfs_aug_match"
7192 #: ../src/guestfs-actions.pod:477
7196 " guestfs_aug_match (guestfs_h *g,\n"
7197 " const char *augpath);\n"
7202 #: ../src/guestfs-actions.pod:481 ../fish/guestfish-actions.pod:316
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."
7210 #: ../src/guestfs-actions.pod:491
7211 msgid "guestfs_aug_mv"
7215 #: ../src/guestfs-actions.pod:493
7219 " guestfs_aug_mv (guestfs_h *g,\n"
7220 " const char *src,\n"
7221 " const char *dest);\n"
7226 #: ../src/guestfs-actions.pod:498 ../fish/guestfish-actions.pod:324
7228 "Move the node C<src> to C<dest>. C<src> must match exactly one node. "
7229 "C<dest> is overwritten if it exists."
7233 #: ../src/guestfs-actions.pod:505
7234 msgid "guestfs_aug_rm"
7238 #: ../src/guestfs-actions.pod:507
7242 " guestfs_aug_rm (guestfs_h *g,\n"
7243 " const char *augpath);\n"
7248 #: ../src/guestfs-actions.pod:511 ../fish/guestfish-actions.pod:331
7249 msgid "Remove C<path> and all of its children."
7253 #: ../src/guestfs-actions.pod:513 ../fish/guestfish-actions.pod:333
7254 msgid "On success this returns the number of entries which were removed."
7258 #: ../src/guestfs-actions.pod:519
7259 msgid "guestfs_aug_save"
7263 #: ../src/guestfs-actions.pod:521
7267 " guestfs_aug_save (guestfs_h *g);\n"
7272 #: ../src/guestfs-actions.pod:524 ../fish/guestfish-actions.pod:339
7273 msgid "This writes all pending changes to disk."
7277 #: ../src/guestfs-actions.pod:526
7279 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
7284 #: ../src/guestfs-actions.pod:533
7285 msgid "guestfs_aug_set"
7289 #: ../src/guestfs-actions.pod:535
7293 " guestfs_aug_set (guestfs_h *g,\n"
7294 " const char *augpath,\n"
7295 " const char *val);\n"
7300 #: ../src/guestfs-actions.pod:540 ../fish/guestfish-actions.pod:348
7301 msgid "Set the value associated with C<path> to C<val>."
7305 #: ../src/guestfs-actions.pod:542
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."
7313 #: ../src/guestfs-actions.pod:551
7314 msgid "guestfs_available"
7318 #: ../src/guestfs-actions.pod:553
7322 " guestfs_available (guestfs_h *g,\n"
7323 " char *const *groups);\n"
7328 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:359
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."
7336 #: ../src/guestfs-actions.pod:561
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>."
7344 #: ../src/guestfs-actions.pod:566 ../fish/guestfish-actions.pod:368
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."
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."
7357 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:375
7359 "It fails with an error if one or more of the requested groups is unavailable"
7360 " in the appliance."
7364 #: ../src/guestfs-actions.pod:576 ../fish/guestfish-actions.pod:378
7366 "If an unknown group name is included in the list of groups then an error is "
7371 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:381
7373 msgstr "I<Нотатки:>"
7376 #: ../src/guestfs-actions.pod:585
7377 msgid "You must call C<guestfs_launch> before calling this function."
7381 #: ../src/guestfs-actions.pod:587 ../fish/guestfish-actions.pod:389
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."
7388 #: ../src/guestfs-actions.pod:593 ../fish/guestfish-actions.pod:395
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."
7396 #: ../src/guestfs-actions.pod:600 ../fish/guestfish-actions.pod:402
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."
7404 #: ../src/guestfs-actions.pod:607
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>."
7412 #: ../src/guestfs-actions.pod:616 ../src/guestfs-actions.pod:1236
7413 msgid "(Added in 1.0.80)"
7417 #: ../src/guestfs-actions.pod:618
7418 msgid "guestfs_available_all_groups"
7422 #: ../src/guestfs-actions.pod:620
7426 " guestfs_available_all_groups (guestfs_h *g);\n"
7431 #: ../src/guestfs-actions.pod:623
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."
7440 #: ../src/guestfs-actions.pod:629
7441 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
7445 #: ../src/guestfs-actions.pod:635
7446 msgid "(Added in 1.3.15)"
7450 #: ../src/guestfs-actions.pod:637
7451 msgid "guestfs_base64_in"
7455 #: ../src/guestfs-actions.pod:639
7459 " guestfs_base64_in (guestfs_h *g,\n"
7460 " const char *base64file,\n"
7461 " const char *filename);\n"
7466 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:432
7468 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7472 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:663
7473 msgid "(Added in 1.3.5)"
7477 #: ../src/guestfs-actions.pod:651
7478 msgid "guestfs_base64_out"
7482 #: ../src/guestfs-actions.pod:653
7486 " guestfs_base64_out (guestfs_h *g,\n"
7487 " const char *filename,\n"
7488 " const char *base64file);\n"
7493 #: ../src/guestfs-actions.pod:658 ../fish/guestfish-actions.pod:441
7495 "This command downloads the contents of C<filename>, writing it out to local "
7496 "file C<base64file> encoded as base64."
7500 #: ../src/guestfs-actions.pod:665
7501 msgid "guestfs_blockdev_flushbufs"
7505 #: ../src/guestfs-actions.pod:667
7509 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
7510 " const char *device);\n"
7515 #: ../src/guestfs-actions.pod:671 ../fish/guestfish-actions.pod:450
7517 "This tells the kernel to flush internal buffers associated with C<device>."
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."
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)"
7544 #: ../src/guestfs-actions.pod:680
7545 msgid "guestfs_blockdev_getbsz"
7549 #: ../src/guestfs-actions.pod:682
7553 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
7554 " const char *device);\n"
7559 #: ../src/guestfs-actions.pod:686 ../fish/guestfish-actions.pod:459
7560 msgid "This returns the block size of a device."
7564 #: ../src/guestfs-actions.pod:688 ../src/guestfs-actions.pod:788
7565 #: ../fish/guestfish-actions.pod:461 ../fish/guestfish-actions.pod:524
7567 "(Note this is different from both I<size in blocks> and I<filesystem block "
7572 #: ../src/guestfs-actions.pod:697
7573 msgid "guestfs_blockdev_getro"
7577 #: ../src/guestfs-actions.pod:699
7581 " guestfs_blockdev_getro (guestfs_h *g,\n"
7582 " const char *device);\n"
7587 #: ../src/guestfs-actions.pod:703 ../fish/guestfish-actions.pod:470
7589 "Returns a boolean indicating if the block device is read-only (true if read-"
7590 "only, false if not)."
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."
7613 #: ../src/guestfs-actions.pod:712
7614 msgid "guestfs_blockdev_getsize64"
7618 #: ../src/guestfs-actions.pod:714
7622 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
7623 " const char *device);\n"
7628 #: ../src/guestfs-actions.pod:718 ../fish/guestfish-actions.pod:479
7629 msgid "This returns the size of the device in bytes."
7633 #: ../src/guestfs-actions.pod:720
7634 msgid "See also C<guestfs_blockdev_getsz>."
7638 #: ../src/guestfs-actions.pod:728
7639 msgid "guestfs_blockdev_getss"
7643 #: ../src/guestfs-actions.pod:730
7647 " guestfs_blockdev_getss (guestfs_h *g,\n"
7648 " const char *device);\n"
7653 #: ../src/guestfs-actions.pod:734 ../fish/guestfish-actions.pod:489
7655 "This returns the size of sectors on a block device. Usually 512, but can be"
7656 " larger for modern devices."
7660 #: ../src/guestfs-actions.pod:737
7662 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
7667 #: ../src/guestfs-actions.pod:746
7668 msgid "guestfs_blockdev_getsz"
7672 #: ../src/guestfs-actions.pod:748
7676 " guestfs_blockdev_getsz (guestfs_h *g,\n"
7677 " const char *device);\n"
7682 #: ../src/guestfs-actions.pod:752 ../fish/guestfish-actions.pod:501
7684 "This returns the size of the device in units of 512-byte sectors (even if "
7685 "the sectorsize isn't 512 bytes ... weird)."
7689 #: ../src/guestfs-actions.pod:755
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>."
7696 #: ../src/guestfs-actions.pod:765
7697 msgid "guestfs_blockdev_rereadpt"
7701 #: ../src/guestfs-actions.pod:767
7705 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
7706 " const char *device);\n"
7711 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:514
7712 msgid "Reread the partition table on C<device>."
7716 #: ../src/guestfs-actions.pod:779
7717 msgid "guestfs_blockdev_setbsz"
7721 #: ../src/guestfs-actions.pod:781
7725 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
7726 " const char *device,\n"
7727 " int blocksize);\n"
7732 #: ../src/guestfs-actions.pod:786 ../fish/guestfish-actions.pod:522
7733 msgid "This sets the block size of a device."
7737 #: ../src/guestfs-actions.pod:797
7738 msgid "guestfs_blockdev_setro"
7742 #: ../src/guestfs-actions.pod:799
7746 " guestfs_blockdev_setro (guestfs_h *g,\n"
7747 " const char *device);\n"
7752 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:533
7753 msgid "Sets the block device named C<device> to read-only."
7757 #: ../src/guestfs-actions.pod:811
7758 msgid "guestfs_blockdev_setrw"
7762 #: ../src/guestfs-actions.pod:813
7766 " guestfs_blockdev_setrw (guestfs_h *g,\n"
7767 " const char *device);\n"
7772 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:541
7773 msgid "Sets the block device named C<device> to read-write."
7777 #: ../src/guestfs-actions.pod:825
7778 msgid "guestfs_btrfs_filesystem_resize"
7782 #: ../src/guestfs-actions.pod:827
7786 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
7787 " const char *mountpoint,\n"
7793 #: ../src/guestfs-actions.pod:837
7796 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
7801 #: ../src/guestfs-actions.pod:839 ../fish/guestfish-actions.pod:549
7802 msgid "This command resizes a btrfs filesystem."
7806 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:551
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 "
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:"
7820 #: ../src/guestfs-actions.pod:849 ../src/guestfs-actions.pod:5191
7821 #: ../fish/guestfish-actions.pod:559 ../fish/guestfish-actions.pod:3421
7826 #: ../src/guestfs-actions.pod:851 ../fish/guestfish-actions.pod:561
7828 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
7829 "resized to the maximum size."
7833 #: ../src/guestfs-actions.pod:856 ../fish/guestfish-actions.pod:566
7834 msgid "See also L<btrfs(8)>."
7838 #: ../src/guestfs-actions.pod:860
7839 msgid "(Added in 1.11.17)"
7843 #: ../src/guestfs-actions.pod:862
7844 msgid "guestfs_btrfs_filesystem_resize_va"
7848 #: ../src/guestfs-actions.pod:864
7852 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
7853 " const char *mountpoint,\n"
7859 #: ../src/guestfs-actions.pod:869
7860 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
7864 #: ../src/guestfs-actions.pod:873
7865 msgid "guestfs_btrfs_filesystem_resize_argv"
7869 #: ../src/guestfs-actions.pod:875
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"
7880 #: ../src/guestfs-actions.pod:880
7881 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
7885 #: ../src/guestfs-actions.pod:884
7886 msgid "guestfs_case_sensitive_path"
7890 #: ../src/guestfs-actions.pod:886
7894 " guestfs_case_sensitive_path (guestfs_h *g,\n"
7895 " const char *path);\n"
7900 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:574
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."
7908 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:579
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-"
7917 #: ../src/guestfs-actions.pod:900 ../fish/guestfish-actions.pod:584
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 "
7926 #: ../src/guestfs-actions.pod:906 ../fish/guestfish-actions.pod:590
7928 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-"
7929 "faq/#posixfilenames1>"
7933 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:593
7935 "This function resolves the true case of each element in the path and returns"
7936 " the case-sensitive path."
7940 #: ../src/guestfs-actions.pod:912
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)."
7948 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:601
7949 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7953 #: ../src/guestfs-actions.pod:920
7954 msgid "See also C<guestfs_realpath>."
7958 #: ../src/guestfs-actions.pod:925 ../src/guestfs-actions.pod:7377
7959 msgid "(Added in 1.0.75)"
7963 #: ../src/guestfs-actions.pod:927
7968 #: ../src/guestfs-actions.pod:929
7972 " guestfs_cat (guestfs_h *g,\n"
7973 " const char *path);\n"
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>."
7984 #: ../src/guestfs-actions.pod:935
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."
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
8026 "Because of the message protocol, there is a transfer limit of somewhere "
8027 "between 2MB and 4MB. See L<guestfs(3)/PROTOCOL LIMITS>."
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)"
8041 #: ../src/guestfs-actions.pod:948
8042 msgid "guestfs_checksum"
8046 #: ../src/guestfs-actions.pod:950
8050 " guestfs_checksum (guestfs_h *g,\n"
8051 " const char *csumtype,\n"
8052 " const char *path);\n"
8057 #: ../src/guestfs-actions.pod:955 ../fish/guestfish-actions.pod:624
8059 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
8063 #: ../src/guestfs-actions.pod:958 ../fish/guestfish-actions.pod:627
8065 "The type of checksum to compute is given by the C<csumtype> parameter which "
8066 "must have one of the following values:"
8070 #: ../src/guestfs-actions.pod:963 ../fish/guestfish-actions.pod:632
8075 #: ../src/guestfs-actions.pod:965 ../fish/guestfish-actions.pod:634
8077 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
8082 #: ../src/guestfs-actions.pod:968 ../fish/guestfish-actions.pod:637
8087 #: ../src/guestfs-actions.pod:970 ../fish/guestfish-actions.pod:639
8088 msgid "Compute the MD5 hash (using the C<md5sum> program)."
8092 #: ../src/guestfs-actions.pod:972 ../fish/guestfish-actions.pod:641
8097 #: ../src/guestfs-actions.pod:974 ../fish/guestfish-actions.pod:643
8098 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
8102 #: ../src/guestfs-actions.pod:976 ../fish/guestfish-actions.pod:645
8107 #: ../src/guestfs-actions.pod:978 ../fish/guestfish-actions.pod:647
8108 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
8112 #: ../src/guestfs-actions.pod:980 ../fish/guestfish-actions.pod:649
8117 #: ../src/guestfs-actions.pod:982 ../fish/guestfish-actions.pod:651
8118 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
8122 #: ../src/guestfs-actions.pod:984 ../fish/guestfish-actions.pod:653
8127 #: ../src/guestfs-actions.pod:986 ../fish/guestfish-actions.pod:655
8128 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
8132 #: ../src/guestfs-actions.pod:988 ../fish/guestfish-actions.pod:657
8137 #: ../src/guestfs-actions.pod:990 ../fish/guestfish-actions.pod:659
8138 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
8142 #: ../src/guestfs-actions.pod:994 ../fish/guestfish-actions.pod:663
8143 msgid "The checksum is returned as a printable string."
8147 #: ../src/guestfs-actions.pod:996
8148 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
8152 #: ../src/guestfs-actions.pod:998
8153 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
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)"
8165 #: ../src/guestfs-actions.pod:1005
8166 msgid "guestfs_checksum_device"
8170 #: ../src/guestfs-actions.pod:1007
8174 " guestfs_checksum_device (guestfs_h *g,\n"
8175 " const char *csumtype,\n"
8176 " const char *device);\n"
8181 #: ../src/guestfs-actions.pod:1012
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."
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)"
8198 #: ../src/guestfs-actions.pod:1021
8199 msgid "guestfs_checksums_out"
8203 #: ../src/guestfs-actions.pod:1023
8207 " guestfs_checksums_out (guestfs_h *g,\n"
8208 " const char *csumtype,\n"
8209 " const char *directory,\n"
8210 " const char *sumsfile);\n"
8215 #: ../src/guestfs-actions.pod:1029 ../fish/guestfish-actions.pod:681
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>."
8222 #: ../src/guestfs-actions.pod:1033 ../fish/guestfish-actions.pod:685
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."
8232 #: ../src/guestfs-actions.pod:1043
8233 msgid "(Added in 1.3.7)"
8237 #: ../src/guestfs-actions.pod:1045
8238 msgid "guestfs_chmod"
8242 #: ../src/guestfs-actions.pod:1047
8246 " guestfs_chmod (guestfs_h *g,\n"
8248 " const char *path);\n"
8253 #: ../src/guestfs-actions.pod:1052 ../fish/guestfish-actions.pod:699
8255 "Change the mode (permissions) of C<path> to C<mode>. Only numeric modes are"
8260 #: ../src/guestfs-actions.pod:1055 ../fish/guestfish-actions.pod:702
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 "
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."
8277 #: ../src/guestfs-actions.pod:1065
8278 msgid "guestfs_chown"
8282 #: ../src/guestfs-actions.pod:1067
8286 " guestfs_chown (guestfs_h *g,\n"
8289 " const char *path);\n"
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>."
8299 #: ../src/guestfs-actions.pod:1075 ../src/guestfs-actions.pod:3655
8300 #: ../fish/guestfish-actions.pod:714 ../fish/guestfish-actions.pod:2495
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)."
8308 #: ../src/guestfs-actions.pod:1083
8309 msgid "guestfs_command"
8313 #: ../src/guestfs-actions.pod:1085
8317 " guestfs_command (guestfs_h *g,\n"
8318 " char *const *arguments);\n"
8323 #: ../src/guestfs-actions.pod:1089 ../fish/guestfish-actions.pod:722
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)."
8331 #: ../src/guestfs-actions.pod:1094
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 "
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."
8346 #: ../src/guestfs-actions.pod:1104 ../fish/guestfish-actions.pod:737
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 "
8354 #: ../src/guestfs-actions.pod:1108 ../fish/guestfish-actions.pod:741
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."
8362 #: ../src/guestfs-actions.pod:1113 ../fish/guestfish-actions.pod:746
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 "
8371 #: ../src/guestfs-actions.pod:1125 ../src/guestfs-actions.pod:1145
8372 #: ../src/guestfs-actions.pod:1610
8373 msgid "(Added in 0.9.1)"
8377 #: ../src/guestfs-actions.pod:1127
8378 msgid "guestfs_command_lines"
8382 #: ../src/guestfs-actions.pod:1129
8386 " guestfs_command_lines (guestfs_h *g,\n"
8387 " char *const *arguments);\n"
8392 #: ../src/guestfs-actions.pod:1133
8394 "This is the same as C<guestfs_command>, but splits the result into a list of"
8399 #: ../src/guestfs-actions.pod:1136
8400 msgid "See also: C<guestfs_sh_lines>"
8404 #: ../src/guestfs-actions.pod:1147
8405 msgid "guestfs_config"
8409 #: ../src/guestfs-actions.pod:1149
8413 " guestfs_config (guestfs_h *g,\n"
8414 " const char *qemuparam,\n"
8415 " const char *qemuvalue);\n"
8420 #: ../src/guestfs-actions.pod:1154 ../fish/guestfish-actions.pod:771
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."
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)."
8433 #: ../src/guestfs-actions.pod:1161 ../fish/guestfish-actions.pod:778
8434 msgid "C<value> can be NULL."
8438 #: ../src/guestfs-actions.pod:1167
8439 msgid "guestfs_copy_size"
8443 #: ../src/guestfs-actions.pod:1169
8447 " guestfs_copy_size (guestfs_h *g,\n"
8448 " const char *src,\n"
8449 " const char *dest,\n"
8455 #: ../src/guestfs-actions.pod:1175 ../fish/guestfish-actions.pod:784
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>."
8462 #: ../src/guestfs-actions.pod:1178 ../fish/guestfish-actions.pod:787
8464 "Note this will fail if the source is too short or if the destination is not "
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
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>."
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)"
8490 #: ../src/guestfs-actions.pod:1190
8495 #: ../src/guestfs-actions.pod:1192
8499 " guestfs_cp (guestfs_h *g,\n"
8500 " const char *src,\n"
8501 " const char *dest);\n"
8506 #: ../src/guestfs-actions.pod:1197 ../fish/guestfish-actions.pod:794
8508 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8509 "destination filename or destination directory."
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)"
8521 #: ../src/guestfs-actions.pod:1204
8522 msgid "guestfs_cp_a"
8526 #: ../src/guestfs-actions.pod:1206
8530 " guestfs_cp_a (guestfs_h *g,\n"
8531 " const char *src,\n"
8532 " const char *dest);\n"
8537 #: ../src/guestfs-actions.pod:1211 ../fish/guestfish-actions.pod:801
8539 "This copies a file or directory from C<src> to C<dest> recursively using the"
8540 " C<cp -a> command."
8544 #: ../src/guestfs-actions.pod:1218
8549 #: ../src/guestfs-actions.pod:1220
8553 " guestfs_dd (guestfs_h *g,\n"
8554 " const char *src,\n"
8555 " const char *dest);\n"
8560 #: ../src/guestfs-actions.pod:1225 ../fish/guestfish-actions.pod:808
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."
8568 #: ../src/guestfs-actions.pod:1230
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>)."
8576 #: ../src/guestfs-actions.pod:1238
8581 #: ../src/guestfs-actions.pod:1240
8585 " guestfs_df (guestfs_h *g);\n"
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."
8595 #: ../src/guestfs-actions.pod:1245 ../src/guestfs-actions.pod:1262
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> "
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)"
8614 #: ../src/guestfs-actions.pod:1254
8615 msgid "guestfs_df_h"
8619 #: ../src/guestfs-actions.pod:1256
8623 " guestfs_df_h (guestfs_h *g);\n"
8628 #: ../src/guestfs-actions.pod:1259 ../fish/guestfish-actions.pod:831
8630 "This command runs the C<df -h> command to report disk space used in human-"
8635 #: ../src/guestfs-actions.pod:1271
8636 msgid "guestfs_dmesg"
8640 #: ../src/guestfs-actions.pod:1273
8644 " guestfs_dmesg (guestfs_h *g);\n"
8649 #: ../src/guestfs-actions.pod:1276 ../fish/guestfish-actions.pod:842
8651 "This returns the kernel messages (C<dmesg> output) from the guest kernel. "
8652 "This is sometimes useful for extended debugging of problems."
8656 #: ../src/guestfs-actions.pod:1280
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."
8664 #: ../src/guestfs-actions.pod:1290
8665 msgid "guestfs_download"
8669 #: ../src/guestfs-actions.pod:1292
8673 " guestfs_download (guestfs_h *g,\n"
8674 " const char *remotefilename,\n"
8675 " const char *filename);\n"
8680 #: ../src/guestfs-actions.pod:1297 ../src/guestfs-actions.pod:1322
8681 #: ../fish/guestfish-actions.pod:855 ../fish/guestfish-actions.pod:868
8683 "Download file C<remotefilename> and save it as C<filename> on the local "
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."
8694 #: ../src/guestfs-actions.pod:1302
8695 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
8699 #: ../src/guestfs-actions.pod:1313
8700 msgid "guestfs_download_offset"
8704 #: ../src/guestfs-actions.pod:1315
8708 " guestfs_download_offset (guestfs_h *g,\n"
8709 " const char *remotefilename,\n"
8710 " const char *filename,\n"
8711 " int64_t offset,\n"
8717 #: ../src/guestfs-actions.pod:1325 ../fish/guestfish-actions.pod:871
8719 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8720 "region must be within the file or device)."
8724 #: ../src/guestfs-actions.pod:1328
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."
8732 #: ../src/guestfs-actions.pod:1333
8733 msgid "See also C<guestfs_download>, C<guestfs_pread>."
8737 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:7267
8738 msgid "(Added in 1.5.17)"
8742 #: ../src/guestfs-actions.pod:1344
8743 msgid "guestfs_drop_caches"
8747 #: ../src/guestfs-actions.pod:1346
8751 " guestfs_drop_caches (guestfs_h *g,\n"
8752 " int whattodrop);\n"
8757 #: ../src/guestfs-actions.pod:1350 ../fish/guestfish-actions.pod:887
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>"
8765 #: ../src/guestfs-actions.pod:1355 ../fish/guestfish-actions.pod:892
8766 msgid "Setting C<whattodrop> to 3 should drop everything."
8770 #: ../src/guestfs-actions.pod:1357 ../fish/guestfish-actions.pod:894
8772 "This automatically calls L<sync(2)> before the operation, so that the "
8773 "maximum guest memory is freed."
8777 #: ../src/guestfs-actions.pod:1364
8782 #: ../src/guestfs-actions.pod:1366
8786 " guestfs_du (guestfs_h *g,\n"
8787 " const char *path);\n"
8792 #: ../src/guestfs-actions.pod:1370 ../fish/guestfish-actions.pod:901
8794 "This command runs the C<du -s> command to estimate file space usage for "
8799 #: ../src/guestfs-actions.pod:1373 ../fish/guestfish-actions.pod:904
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 "
8807 #: ../src/guestfs-actions.pod:1377 ../fish/guestfish-actions.pod:908
8809 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8813 #: ../src/guestfs-actions.pod:1389
8814 msgid "guestfs_e2fsck_f"
8818 #: ../src/guestfs-actions.pod:1391
8822 " guestfs_e2fsck_f (guestfs_h *g,\n"
8823 " const char *device);\n"
8828 #: ../src/guestfs-actions.pod:1395 ../fish/guestfish-actions.pod:915
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"
8836 #: ../src/guestfs-actions.pod:1399
8838 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
8839 "Normally you should use C<guestfs_fsck>."
8843 #: ../src/guestfs-actions.pod:1404
8844 msgid "(Added in 1.0.29)"
8848 #: ../src/guestfs-actions.pod:1406
8849 msgid "guestfs_echo_daemon"
8853 #: ../src/guestfs-actions.pod:1408
8857 " guestfs_echo_daemon (guestfs_h *g,\n"
8858 " char *const *words);\n"
8863 #: ../src/guestfs-actions.pod:1412 ../fish/guestfish-actions.pod:926
8865 "This command concatenates the list of C<words> passed with single spaces "
8866 "between them and returns the resulting string."
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."
8875 #: ../src/guestfs-actions.pod:1417
8876 msgid "See also C<guestfs_ping_daemon>."
8880 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:2167
8881 #: ../src/guestfs-actions.pod:6438
8882 msgid "(Added in 1.0.69)"
8886 #: ../src/guestfs-actions.pod:1424
8887 msgid "guestfs_egrep"
8891 #: ../src/guestfs-actions.pod:1426
8895 " guestfs_egrep (guestfs_h *g,\n"
8896 " const char *regex,\n"
8897 " const char *path);\n"
8902 #: ../src/guestfs-actions.pod:1431 ../fish/guestfish-actions.pod:937
8904 "This calls the external C<egrep> program and returns the matching lines."
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)"
8929 #: ../src/guestfs-actions.pod:1443
8930 msgid "guestfs_egrepi"
8934 #: ../src/guestfs-actions.pod:1445
8938 " guestfs_egrepi (guestfs_h *g,\n"
8939 " const char *regex,\n"
8940 " const char *path);\n"
8945 #: ../src/guestfs-actions.pod:1450 ../fish/guestfish-actions.pod:947
8947 "This calls the external C<egrep -i> program and returns the matching lines."
8951 #: ../src/guestfs-actions.pod:1462
8952 msgid "guestfs_equal"
8956 #: ../src/guestfs-actions.pod:1464
8960 " guestfs_equal (guestfs_h *g,\n"
8961 " const char *file1,\n"
8962 " const char *file2);\n"
8967 #: ../src/guestfs-actions.pod:1469 ../fish/guestfish-actions.pod:957
8969 "This compares the two files C<file1> and C<file2> and returns true if their "
8970 "content is exactly equal, or false otherwise."
8974 #: ../src/guestfs-actions.pod:1472 ../fish/guestfish-actions.pod:960
8975 msgid "The external L<cmp(1)> program is used for the comparison."
8979 #: ../src/guestfs-actions.pod:1478
8980 msgid "guestfs_exists"
8984 #: ../src/guestfs-actions.pod:1480
8988 " guestfs_exists (guestfs_h *g,\n"
8989 " const char *path);\n"
8994 #: ../src/guestfs-actions.pod:1484 ../fish/guestfish-actions.pod:966
8996 "This returns C<true> if and only if there is a file, directory (or anything)"
8997 " with the given C<path> name."
9001 #: ../src/guestfs-actions.pod:1487
9002 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
9006 #: ../src/guestfs-actions.pod:1493
9007 msgid "guestfs_fallocate"
9011 #: ../src/guestfs-actions.pod:1495
9015 " guestfs_fallocate (guestfs_h *g,\n"
9016 " const char *path,\n"
9022 #: ../src/guestfs-actions.pod:1500 ../src/guestfs-actions.pod:1526
9023 #: ../fish/guestfish-actions.pod:975 ../fish/guestfish-actions.pod:994
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."
9030 #: ../src/guestfs-actions.pod:1504 ../fish/guestfish-actions.pod:979
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."
9037 #: ../src/guestfs-actions.pod:1510 ../fish/guestfish-actions.pod:983
9039 "This function is deprecated. In new code, use the C<fallocate64> call "
9044 #: ../src/guestfs-actions.pod:1519
9045 msgid "guestfs_fallocate64"
9049 #: ../src/guestfs-actions.pod:1521
9053 " guestfs_fallocate64 (guestfs_h *g,\n"
9054 " const char *path,\n"
9060 #: ../src/guestfs-actions.pod:1530
9062 "Note that this call allocates disk blocks for the file. To create a sparse "
9063 "file use C<guestfs_truncate_size> instead."
9067 #: ../src/guestfs-actions.pod:1533
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."
9075 #: ../src/guestfs-actions.pod:1538 ../fish/guestfish-actions.pod:1006
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."
9082 #: ../src/guestfs-actions.pod:1544
9083 msgid "(Added in 1.3.17)"
9087 #: ../src/guestfs-actions.pod:1546
9088 msgid "guestfs_fgrep"
9092 #: ../src/guestfs-actions.pod:1548
9096 " guestfs_fgrep (guestfs_h *g,\n"
9097 " const char *pattern,\n"
9098 " const char *path);\n"
9103 #: ../src/guestfs-actions.pod:1553 ../fish/guestfish-actions.pod:1014
9105 "This calls the external C<fgrep> program and returns the matching lines."
9109 #: ../src/guestfs-actions.pod:1565
9110 msgid "guestfs_fgrepi"
9114 #: ../src/guestfs-actions.pod:1567
9118 " guestfs_fgrepi (guestfs_h *g,\n"
9119 " const char *pattern,\n"
9120 " const char *path);\n"
9125 #: ../src/guestfs-actions.pod:1572 ../fish/guestfish-actions.pod:1024
9127 "This calls the external C<fgrep -i> program and returns the matching lines."
9131 #: ../src/guestfs-actions.pod:1584
9132 msgid "guestfs_file"
9136 #: ../src/guestfs-actions.pod:1586
9140 " guestfs_file (guestfs_h *g,\n"
9141 " const char *path);\n"
9146 #: ../src/guestfs-actions.pod:1590 ../fish/guestfish-actions.pod:1034
9148 "This call uses the standard L<file(1)> command to determine the type or "
9149 "contents of the file."
9153 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1037
9155 "This call will also transparently look inside various types of compressed "
9160 #: ../src/guestfs-actions.pod:1596 ../fish/guestfish-actions.pod:1040
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)."
9167 #: ../src/guestfs-actions.pod:1600 ../fish/guestfish-actions.pod:1044
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."
9175 #: ../src/guestfs-actions.pod:1604
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>."
9182 #: ../src/guestfs-actions.pod:1612
9183 msgid "guestfs_file_architecture"
9187 #: ../src/guestfs-actions.pod:1614
9191 " guestfs_file_architecture (guestfs_h *g,\n"
9192 " const char *filename);\n"
9197 #: ../src/guestfs-actions.pod:1618 ../fish/guestfish-actions.pod:1055
9199 "This detects the architecture of the binary C<filename>, and returns it if "
9204 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1058
9205 msgid "Currently defined architectures are:"
9209 #: ../src/guestfs-actions.pod:1625 ../fish/guestfish-actions.pod:1062
9214 #: ../src/guestfs-actions.pod:1627 ../fish/guestfish-actions.pod:1064
9216 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
9217 "irrespective of the precise processor requirements of the binary."
9221 #: ../src/guestfs-actions.pod:1630 ../fish/guestfish-actions.pod:1067
9226 #: ../src/guestfs-actions.pod:1632 ../fish/guestfish-actions.pod:1069
9227 msgid "64 bit x86-64."
9231 #: ../src/guestfs-actions.pod:1634 ../fish/guestfish-actions.pod:1071
9236 #: ../src/guestfs-actions.pod:1636 ../fish/guestfish-actions.pod:1073
9237 msgid "32 bit SPARC."
9241 #: ../src/guestfs-actions.pod:1638 ../fish/guestfish-actions.pod:1075
9246 #: ../src/guestfs-actions.pod:1640 ../fish/guestfish-actions.pod:1077
9247 msgid "64 bit SPARC V9 and above."
9251 #: ../src/guestfs-actions.pod:1642 ../fish/guestfish-actions.pod:1079
9256 #: ../src/guestfs-actions.pod:1644 ../fish/guestfish-actions.pod:1081
9257 msgid "Intel Itanium."
9258 msgstr "Intel Itanium."
9261 #: ../src/guestfs-actions.pod:1646 ../fish/guestfish-actions.pod:1083
9266 #: ../src/guestfs-actions.pod:1648 ../fish/guestfish-actions.pod:1085
9267 msgid "32 bit Power PC."
9271 #: ../src/guestfs-actions.pod:1650 ../fish/guestfish-actions.pod:1087
9276 #: ../src/guestfs-actions.pod:1652 ../fish/guestfish-actions.pod:1089
9277 msgid "64 bit Power PC."
9281 #: ../src/guestfs-actions.pod:1656 ../fish/guestfish-actions.pod:1093
9282 msgid "Libguestfs may return other architecture strings in future."
9286 #: ../src/guestfs-actions.pod:1658 ../fish/guestfish-actions.pod:1095
9287 msgid "The function works on at least the following types of files:"
9291 #: ../src/guestfs-actions.pod:1664 ../fish/guestfish-actions.pod:1101
9292 msgid "many types of Un*x and Linux binary"
9296 #: ../src/guestfs-actions.pod:1668 ../fish/guestfish-actions.pod:1105
9297 msgid "many types of Un*x and Linux shared library"
9301 #: ../src/guestfs-actions.pod:1672 ../fish/guestfish-actions.pod:1109
9302 msgid "Windows Win32 and Win64 binaries"
9306 #: ../src/guestfs-actions.pod:1676 ../fish/guestfish-actions.pod:1113
9307 msgid "Windows Win32 and Win64 DLLs"
9311 #: ../src/guestfs-actions.pod:1678 ../fish/guestfish-actions.pod:1115
9312 msgid "Win32 binaries and DLLs return C<i386>."
9316 #: ../src/guestfs-actions.pod:1680 ../fish/guestfish-actions.pod:1117
9317 msgid "Win64 binaries and DLLs return C<x86_64>."
9321 #: ../src/guestfs-actions.pod:1684 ../fish/guestfish-actions.pod:1121
9322 msgid "Linux kernel modules"
9326 #: ../src/guestfs-actions.pod:1688 ../fish/guestfish-actions.pod:1125
9327 msgid "Linux new-style initrd images"
9331 #: ../src/guestfs-actions.pod:1692 ../fish/guestfish-actions.pod:1129
9332 msgid "some non-x86 Linux vmlinuz kernels"
9336 #: ../src/guestfs-actions.pod:1696 ../fish/guestfish-actions.pod:1133
9337 msgid "What it can't do currently:"
9341 #: ../src/guestfs-actions.pod:1702 ../fish/guestfish-actions.pod:1139
9342 msgid "static libraries (libfoo.a)"
9346 #: ../src/guestfs-actions.pod:1706 ../fish/guestfish-actions.pod:1143
9347 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9351 #: ../src/guestfs-actions.pod:1710 ../fish/guestfish-actions.pod:1147
9352 msgid "x86 Linux vmlinuz kernels"
9356 #: ../src/guestfs-actions.pod:1712 ../fish/guestfish-actions.pod:1149
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."
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)"
9376 #: ../src/guestfs-actions.pod:1724
9377 msgid "guestfs_filesize"
9381 #: ../src/guestfs-actions.pod:1726
9385 " guestfs_filesize (guestfs_h *g,\n"
9386 " const char *file);\n"
9391 #: ../src/guestfs-actions.pod:1730 ../fish/guestfish-actions.pod:1160
9392 msgid "This command returns the size of C<file> in bytes."
9396 #: ../src/guestfs-actions.pod:1732
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>."
9404 #: ../src/guestfs-actions.pod:1738
9405 msgid "(Added in 1.0.82)"
9409 #: ../src/guestfs-actions.pod:1740
9410 msgid "guestfs_fill"
9414 #: ../src/guestfs-actions.pod:1742
9418 " guestfs_fill (guestfs_h *g,\n"
9421 " const char *path);\n"
9426 #: ../src/guestfs-actions.pod:1748 ../fish/guestfish-actions.pod:1170
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 "
9434 #: ../src/guestfs-actions.pod:1752
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>."
9442 #: ../src/guestfs-actions.pod:1764
9443 msgid "(Added in 1.0.79)"
9447 #: ../src/guestfs-actions.pod:1766
9448 msgid "guestfs_fill_pattern"
9452 #: ../src/guestfs-actions.pod:1768
9456 " guestfs_fill_pattern (guestfs_h *g,\n"
9457 " const char *pattern,\n"
9459 " const char *path);\n"
9464 #: ../src/guestfs-actions.pod:1774
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."
9473 #: ../src/guestfs-actions.pod:1786
9474 msgid "(Added in 1.3.12)"
9478 #: ../src/guestfs-actions.pod:1788
9479 msgid "guestfs_find"
9483 #: ../src/guestfs-actions.pod:1790
9487 " guestfs_find (guestfs_h *g,\n"
9488 " const char *directory);\n"
9493 #: ../src/guestfs-actions.pod:1794 ../fish/guestfish-actions.pod:1192
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, "
9502 #: ../src/guestfs-actions.pod:1799 ../fish/guestfish-actions.pod:1197
9504 "This returns a list of strings I<without any prefix>. Thus if the directory"
9509 #: ../src/guestfs-actions.pod:1802 ../fish/guestfish-actions.pod:1200
9519 #: ../src/guestfs-actions.pod:1806
9521 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
9525 #: ../src/guestfs-actions.pod:1809 ../fish/guestfish-actions.pod:1207
9536 #: ../src/guestfs-actions.pod:1814 ../fish/guestfish-actions.pod:1212
9538 "If C<directory> is not a directory, then this command returns an error."
9542 #: ../src/guestfs-actions.pod:1817 ../fish/guestfish-actions.pod:1215
9543 msgid "The returned list is sorted."
9547 #: ../src/guestfs-actions.pod:1819
9548 msgid "See also C<guestfs_find0>."
9552 #: ../src/guestfs-actions.pod:1828 ../src/guestfs-actions.pod:4297
9553 #: ../src/guestfs-actions.pod:6001
9554 msgid "(Added in 1.0.27)"
9558 #: ../src/guestfs-actions.pod:1830
9559 msgid "guestfs_find0"
9563 #: ../src/guestfs-actions.pod:1832
9567 " guestfs_find0 (guestfs_h *g,\n"
9568 " const char *directory,\n"
9569 " const char *files);\n"
9574 #: ../src/guestfs-actions.pod:1837 ../fish/guestfish-actions.pod:1226
9576 "This command lists out all files and directories, recursively, starting at "
9577 "C<directory>, placing the resulting list in the external file called "
9582 #: ../src/guestfs-actions.pod:1841
9584 "This command works the same way as C<guestfs_find> with the following "
9589 #: ../src/guestfs-actions.pod:1848 ../fish/guestfish-actions.pod:1237
9590 msgid "The resulting list is written to an external file."
9594 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1241
9596 "Items (filenames) in the result are separated by C<\\0> characters. See "
9597 "L<find(1)> option I<-print0>."
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."
9606 #: ../src/guestfs-actions.pod:1862 ../fish/guestfish-actions.pod:1251
9607 msgid "The result list is not sorted."
9611 #: ../src/guestfs-actions.pod:1868
9612 msgid "(Added in 1.0.74)"
9616 #: ../src/guestfs-actions.pod:1870
9617 msgid "guestfs_findfs_label"
9621 #: ../src/guestfs-actions.pod:1872
9625 " guestfs_findfs_label (guestfs_h *g,\n"
9626 " const char *label);\n"
9631 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1261
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."
9638 #: ../src/guestfs-actions.pod:1880
9639 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
9643 #: ../src/guestfs-actions.pod:1887
9644 msgid "guestfs_findfs_uuid"
9648 #: ../src/guestfs-actions.pod:1889
9652 " guestfs_findfs_uuid (guestfs_h *g,\n"
9653 " const char *uuid);\n"
9658 #: ../src/guestfs-actions.pod:1893 ../fish/guestfish-actions.pod:1271
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."
9665 #: ../src/guestfs-actions.pod:1897
9666 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
9670 #: ../src/guestfs-actions.pod:1904
9671 msgid "guestfs_fsck"
9675 #: ../src/guestfs-actions.pod:1906
9679 " guestfs_fsck (guestfs_h *g,\n"
9680 " const char *fstype,\n"
9681 " const char *device);\n"
9686 #: ../src/guestfs-actions.pod:1911 ../fish/guestfish-actions.pod:1281
9688 "This runs the filesystem checker (fsck) on C<device> which should have "
9689 "filesystem type C<fstype>."
9693 #: ../src/guestfs-actions.pod:1914 ../fish/guestfish-actions.pod:1284
9695 "The returned integer is the status. See L<fsck(8)> for the list of status "
9696 "codes from C<fsck>."
9700 #: ../src/guestfs-actions.pod:1923 ../fish/guestfish-actions.pod:1293
9701 msgid "Multiple status codes can be summed together."
9705 #: ../src/guestfs-actions.pod:1927 ../fish/guestfish-actions.pod:1297
9707 "A non-zero return code can mean \"success\", for example if errors have been"
9708 " corrected on the filesystem."
9712 #: ../src/guestfs-actions.pod:1932 ../fish/guestfish-actions.pod:1302
9713 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9717 #: ../src/guestfs-actions.pod:1937 ../fish/guestfish-actions.pod:1307
9719 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9723 #: ../src/guestfs-actions.pod:1941 ../src/guestfs-actions.pod:7768
9724 msgid "(Added in 1.0.16)"
9728 #: ../src/guestfs-actions.pod:1943
9729 msgid "guestfs_get_append"
9733 #: ../src/guestfs-actions.pod:1945
9737 " guestfs_get_append (guestfs_h *g);\n"
9742 #: ../src/guestfs-actions.pod:1948 ../fish/guestfish-actions.pod:1313
9744 "Return the additional kernel options which are added to the guest kernel "
9749 #: ../src/guestfs-actions.pod:1951 ../fish/guestfish-actions.pod:1316
9750 msgid "If C<NULL> then no options are added."
9754 #: ../src/guestfs-actions.pod:1953
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."
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)"
9771 #: ../src/guestfs-actions.pod:1959
9772 msgid "guestfs_get_attach_method"
9776 #: ../src/guestfs-actions.pod:1961
9780 " guestfs_get_attach_method (guestfs_h *g);\n"
9785 #: ../src/guestfs-actions.pod:1964
9786 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
9790 #: ../src/guestfs-actions.pod:1969 ../src/guestfs-actions.pod:6191
9791 msgid "(Added in 1.9.8)"
9795 #: ../src/guestfs-actions.pod:1971
9796 msgid "guestfs_get_autosync"
9800 #: ../src/guestfs-actions.pod:1973
9804 " guestfs_get_autosync (guestfs_h *g);\n"
9809 #: ../src/guestfs-actions.pod:1976 ../fish/guestfish-actions.pod:1328
9810 msgid "Get the autosync flag."
9814 #: ../src/guestfs-actions.pod:1982
9815 msgid "guestfs_get_direct"
9819 #: ../src/guestfs-actions.pod:1984
9823 " guestfs_get_direct (guestfs_h *g);\n"
9828 #: ../src/guestfs-actions.pod:1987 ../fish/guestfish-actions.pod:1334
9829 msgid "Return the direct appliance mode flag."
9833 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:6232
9834 msgid "(Added in 1.0.72)"
9838 #: ../src/guestfs-actions.pod:1993
9839 msgid "guestfs_get_e2label"
9843 #: ../src/guestfs-actions.pod:1995
9847 " guestfs_get_e2label (guestfs_h *g,\n"
9848 " const char *device);\n"
9853 #: ../src/guestfs-actions.pod:1999 ../fish/guestfish-actions.pod:1340
9855 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9859 #: ../src/guestfs-actions.pod:2005 ../fish/guestfish-actions.pod:1343
9861 "This function is deprecated. In new code, use the C<vfs_label> call "
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)"
9872 #: ../src/guestfs-actions.pod:2014
9873 msgid "guestfs_get_e2uuid"
9877 #: ../src/guestfs-actions.pod:2016
9881 " guestfs_get_e2uuid (guestfs_h *g,\n"
9882 " const char *device);\n"
9887 #: ../src/guestfs-actions.pod:2020 ../fish/guestfish-actions.pod:1354
9889 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9893 #: ../src/guestfs-actions.pod:2026 ../fish/guestfish-actions.pod:1357
9895 "This function is deprecated. In new code, use the C<vfs_uuid> call instead."
9899 #: ../src/guestfs-actions.pod:2035
9900 msgid "guestfs_get_memsize"
9904 #: ../src/guestfs-actions.pod:2037
9908 " guestfs_get_memsize (guestfs_h *g);\n"
9913 #: ../src/guestfs-actions.pod:2040 ../fish/guestfish-actions.pod:1368
9915 "This gets the memory size in megabytes allocated to the qemu subprocess."
9919 #: ../src/guestfs-actions.pod:2043
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."
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
9932 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
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)"
9946 #: ../src/guestfs-actions.pod:2054
9947 msgid "guestfs_get_network"
9951 #: ../src/guestfs-actions.pod:2056
9955 " guestfs_get_network (guestfs_h *g);\n"
9960 #: ../src/guestfs-actions.pod:2059 ../fish/guestfish-actions.pod:1382
9961 msgid "This returns the enable network flag."
9965 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:6309
9966 msgid "(Added in 1.5.4)"
9970 #: ../src/guestfs-actions.pod:2065
9971 msgid "guestfs_get_path"
9975 #: ../src/guestfs-actions.pod:2067
9979 " guestfs_get_path (guestfs_h *g);\n"
9984 #: ../src/guestfs-actions.pod:2070 ../fish/guestfish-actions.pod:1388
9985 msgid "Return the current search path."
9989 #: ../src/guestfs-actions.pod:2072 ../fish/guestfish-actions.pod:1390
9991 "This is always non-NULL. If it wasn't set already, then this will return "
9996 #: ../src/guestfs-actions.pod:2075 ../src/guestfs-actions.pod:2113
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."
10003 #: ../src/guestfs-actions.pod:2080
10004 msgid "guestfs_get_pgroup"
10008 #: ../src/guestfs-actions.pod:2082
10012 " guestfs_get_pgroup (guestfs_h *g);\n"
10017 #: ../src/guestfs-actions.pod:2085 ../fish/guestfish-actions.pod:1397
10018 msgid "This returns the process group flag."
10022 #: ../src/guestfs-actions.pod:2089
10023 msgid "guestfs_get_pid"
10027 #: ../src/guestfs-actions.pod:2091
10031 " guestfs_get_pid (guestfs_h *g);\n"
10036 #: ../src/guestfs-actions.pod:2094 ../fish/guestfish-actions.pod:1405
10038 "Return the process ID of the qemu subprocess. If there is no qemu "
10039 "subprocess, then this will return an error."
10043 #: ../src/guestfs-actions.pod:2097 ../fish/guestfish-actions.pod:1408
10044 msgid "This is an internal call used for debugging and testing."
10048 #: ../src/guestfs-actions.pod:2101
10049 msgid "(Added in 1.0.56)"
10053 #: ../src/guestfs-actions.pod:2103
10054 msgid "guestfs_get_qemu"
10058 #: ../src/guestfs-actions.pod:2105
10062 " guestfs_get_qemu (guestfs_h *g);\n"
10067 #: ../src/guestfs-actions.pod:2108 ../fish/guestfish-actions.pod:1414
10068 msgid "Return the current qemu binary."
10072 #: ../src/guestfs-actions.pod:2110 ../fish/guestfish-actions.pod:1416
10074 "This is always non-NULL. If it wasn't set already, then this will return "
10075 "the default qemu binary name."
10079 #: ../src/guestfs-actions.pod:2116 ../src/guestfs-actions.pod:6371
10080 msgid "(Added in 1.0.6)"
10084 #: ../src/guestfs-actions.pod:2118
10085 msgid "guestfs_get_recovery_proc"
10089 #: ../src/guestfs-actions.pod:2120
10093 " guestfs_get_recovery_proc (guestfs_h *g);\n"
10098 #: ../src/guestfs-actions.pod:2123 ../fish/guestfish-actions.pod:1423
10099 msgid "Return the recovery process enabled flag."
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)"
10113 #: ../src/guestfs-actions.pod:2129
10114 msgid "guestfs_get_selinux"
10118 #: ../src/guestfs-actions.pod:2131
10122 " guestfs_get_selinux (guestfs_h *g);\n"
10127 #: ../src/guestfs-actions.pod:2134
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>."
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)"
10140 #: ../src/guestfs-actions.pod:2144
10141 msgid "guestfs_get_state"
10145 #: ../src/guestfs-actions.pod:2146
10149 " guestfs_get_state (guestfs_h *g);\n"
10154 #: ../src/guestfs-actions.pod:2149 ../fish/guestfish-actions.pod:1439
10156 "This returns the current state as an opaque integer. This is only useful "
10157 "for printing debug and internal error messages."
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)>."
10170 #: ../src/guestfs-actions.pod:2158
10171 msgid "guestfs_get_trace"
10175 #: ../src/guestfs-actions.pod:2160
10179 " guestfs_get_trace (guestfs_h *g);\n"
10184 #: ../src/guestfs-actions.pod:2163 ../fish/guestfish-actions.pod:1448
10185 msgid "Return the command trace flag."
10189 #: ../src/guestfs-actions.pod:2169
10190 msgid "guestfs_get_umask"
10194 #: ../src/guestfs-actions.pod:2171
10198 " guestfs_get_umask (guestfs_h *g);\n"
10203 #: ../src/guestfs-actions.pod:2174
10205 "Return the current umask. By default the umask is C<022> unless it has been"
10206 " set by calling C<guestfs_umask>."
10210 #: ../src/guestfs-actions.pod:2181
10211 msgid "guestfs_get_verbose"
10215 #: ../src/guestfs-actions.pod:2183
10219 " guestfs_get_verbose (guestfs_h *g);\n"
10224 #: ../src/guestfs-actions.pod:2186 ../fish/guestfish-actions.pod:1461
10225 msgid "This returns the verbose messages flag."
10229 #: ../src/guestfs-actions.pod:2192
10230 msgid "guestfs_getcon"
10234 #: ../src/guestfs-actions.pod:2194
10238 " guestfs_getcon (guestfs_h *g);\n"
10243 #: ../src/guestfs-actions.pod:2197 ../fish/guestfish-actions.pod:1467
10244 msgid "This gets the SELinux security context of the daemon."
10248 #: ../src/guestfs-actions.pod:2199
10250 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
10254 #: ../src/guestfs-actions.pod:2207
10255 msgid "guestfs_getxattr"
10259 #: ../src/guestfs-actions.pod:2209
10263 " guestfs_getxattr (guestfs_h *g,\n"
10264 " const char *path,\n"
10265 " const char *name,\n"
10266 " size_t *size_r);\n"
10271 #: ../src/guestfs-actions.pod:2215
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>."
10279 #: ../src/guestfs-actions.pod:2219 ../src/guestfs-actions.pod:3675
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."
10289 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3682
10290 #: ../fish/guestfish-actions.pod:1487 ../fish/guestfish-actions.pod:2514
10292 "Extended attribute values are blobs of binary data. If there is no extended"
10293 " attribute named C<name>, this returns an error."
10297 #: ../src/guestfs-actions.pod:2229
10298 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
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
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"
10313 #: ../src/guestfs-actions.pod:2235 ../src/guestfs-actions.pod:3691
10314 msgid "(Added in 1.7.24)"
10318 #: ../src/guestfs-actions.pod:2237
10319 msgid "guestfs_getxattrs"
10323 #: ../src/guestfs-actions.pod:2239
10326 " struct guestfs_xattr_list *\n"
10327 " guestfs_getxattrs (guestfs_h *g,\n"
10328 " const char *path);\n"
10333 #: ../src/guestfs-actions.pod:2243 ../fish/guestfish-actions.pod:1496
10335 "This call lists the extended attributes of the file or directory C<path>."
10339 #: ../src/guestfs-actions.pod:2246 ../fish/guestfish-actions.pod:1499
10341 "At the system call level, this is a combination of the L<listxattr(2)> and "
10342 "L<getxattr(2)> calls."
10346 #: ../src/guestfs-actions.pod:2249
10347 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
10351 #: ../src/guestfs-actions.pod:2251 ../src/guestfs-actions.pod:3703
10352 #: ../src/guestfs-actions.pod:4391
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>."
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)"
10367 #: ../src/guestfs-actions.pod:2257
10368 msgid "guestfs_glob_expand"
10372 #: ../src/guestfs-actions.pod:2259
10376 " guestfs_glob_expand (guestfs_h *g,\n"
10377 " const char *pattern);\n"
10382 #: ../src/guestfs-actions.pod:2263 ../fish/guestfish-actions.pod:1508
10384 "This command searches for all the pathnames matching C<pattern> according to"
10385 " the wildcard expansion rules used by the shell."
10389 #: ../src/guestfs-actions.pod:2267 ../fish/guestfish-actions.pod:1512
10391 "If no paths match, then this returns an empty list (note: not an error)."
10395 #: ../src/guestfs-actions.pod:2270 ../fish/guestfish-actions.pod:1515
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."
10402 #: ../src/guestfs-actions.pod:2278 ../src/guestfs-actions.pod:6684
10403 #: ../src/guestfs-actions.pod:6701
10404 msgid "(Added in 1.0.50)"
10408 #: ../src/guestfs-actions.pod:2280
10409 msgid "guestfs_grep"
10413 #: ../src/guestfs-actions.pod:2282
10417 " guestfs_grep (guestfs_h *g,\n"
10418 " const char *regex,\n"
10419 " const char *path);\n"
10424 #: ../src/guestfs-actions.pod:2287 ../fish/guestfish-actions.pod:1523
10426 "This calls the external C<grep> program and returns the matching lines."
10430 #: ../src/guestfs-actions.pod:2299
10431 msgid "guestfs_grepi"
10435 #: ../src/guestfs-actions.pod:2301
10439 " guestfs_grepi (guestfs_h *g,\n"
10440 " const char *regex,\n"
10441 " const char *path);\n"
10446 #: ../src/guestfs-actions.pod:2306 ../fish/guestfish-actions.pod:1533
10448 "This calls the external C<grep -i> program and returns the matching lines."
10452 #: ../src/guestfs-actions.pod:2318
10453 msgid "guestfs_grub_install"
10457 #: ../src/guestfs-actions.pod:2320
10461 " guestfs_grub_install (guestfs_h *g,\n"
10462 " const char *root,\n"
10463 " const char *device);\n"
10468 #: ../src/guestfs-actions.pod:2325 ../fish/guestfish-actions.pod:1543
10470 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with"
10471 " the root directory being C<root>."
10475 #: ../src/guestfs-actions.pod:2328 ../fish/guestfish-actions.pod:1546
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 "
10485 #: ../src/guestfs-actions.pod:2335 ../fish/guestfish-actions.pod:1553
10488 " (hd0) /dev/vda\n"
10493 #: ../src/guestfs-actions.pod:2337 ../fish/guestfish-actions.pod:1555
10494 msgid "replacing C</dev/vda> with the name of the installation device."
10498 #: ../src/guestfs-actions.pod:2341
10499 msgid "(Added in 1.0.17)"
10503 #: ../src/guestfs-actions.pod:2343
10504 msgid "guestfs_head"
10508 #: ../src/guestfs-actions.pod:2345
10512 " guestfs_head (guestfs_h *g,\n"
10513 " const char *path);\n"
10518 #: ../src/guestfs-actions.pod:2349 ../fish/guestfish-actions.pod:1561
10520 "This command returns up to the first 10 lines of a file as a list of "
10525 #: ../src/guestfs-actions.pod:2361
10526 msgid "guestfs_head_n"
10530 #: ../src/guestfs-actions.pod:2363
10534 " guestfs_head_n (guestfs_h *g,\n"
10536 " const char *path);\n"
10541 #: ../src/guestfs-actions.pod:2368 ../fish/guestfish-actions.pod:1571
10543 "If the parameter C<nrlines> is a positive number, this returns the first "
10544 "C<nrlines> lines of the file C<path>."
10548 #: ../src/guestfs-actions.pod:2371 ../fish/guestfish-actions.pod:1574
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."
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."
10561 #: ../src/guestfs-actions.pod:2385
10562 msgid "guestfs_hexdump"
10566 #: ../src/guestfs-actions.pod:2387
10570 " guestfs_hexdump (guestfs_h *g,\n"
10571 " const char *path);\n"
10576 #: ../src/guestfs-actions.pod:2391 ../fish/guestfish-actions.pod:1586
10578 "This runs C<hexdump -C> on the given C<path>. The result is the human-"
10579 "readable, canonical hex dump of the file."
10583 #: ../src/guestfs-actions.pod:2400 ../src/guestfs-actions.pod:6765
10584 #: ../src/guestfs-actions.pod:6820
10585 msgid "(Added in 1.0.22)"
10589 #: ../src/guestfs-actions.pod:2402
10590 msgid "guestfs_initrd_cat"
10594 #: ../src/guestfs-actions.pod:2404
10598 " guestfs_initrd_cat (guestfs_h *g,\n"
10599 " const char *initrdpath,\n"
10600 " const char *filename,\n"
10601 " size_t *size_r);\n"
10606 #: ../src/guestfs-actions.pod:2410 ../fish/guestfish-actions.pod:1596
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</> "
10614 #: ../src/guestfs-actions.pod:2414 ../fish/guestfish-actions.pod:1600
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 "
10622 #: ../src/guestfs-actions.pod:2418 ../fish/guestfish-actions.pod:1604
10625 " initrd-cat /boot/initrd-<version>.img init\n"
10630 #: ../src/guestfs-actions.pod:2420
10631 msgid "See also C<guestfs_initrd_list>."
10635 #: ../src/guestfs-actions.pod:2431
10636 msgid "guestfs_initrd_list"
10640 #: ../src/guestfs-actions.pod:2433
10644 " guestfs_initrd_list (guestfs_h *g,\n"
10645 " const char *path);\n"
10650 #: ../src/guestfs-actions.pod:2437 ../fish/guestfish-actions.pod:1615
10651 msgid "This command lists out files contained in an initrd."
10655 #: ../src/guestfs-actions.pod:2439 ../fish/guestfish-actions.pod:1617
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."
10663 #: ../src/guestfs-actions.pod:2443 ../fish/guestfish-actions.pod:1621
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 "
10671 #: ../src/guestfs-actions.pod:2453
10672 msgid "guestfs_inotify_add_watch"
10676 #: ../src/guestfs-actions.pod:2455
10680 " guestfs_inotify_add_watch (guestfs_h *g,\n"
10681 " const char *path,\n"
10687 #: ../src/guestfs-actions.pod:2460 ../fish/guestfish-actions.pod:1629
10688 msgid "Watch C<path> for the events listed in C<mask>."
10692 #: ../src/guestfs-actions.pod:2462 ../fish/guestfish-actions.pod:1631
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)."
10699 #: ../src/guestfs-actions.pod:2466 ../fish/guestfish-actions.pod:1635
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>."
10706 #: ../src/guestfs-actions.pod:2474
10707 msgid "guestfs_inotify_close"
10711 #: ../src/guestfs-actions.pod:2476
10715 " guestfs_inotify_close (guestfs_h *g);\n"
10720 #: ../src/guestfs-actions.pod:2479 ../fish/guestfish-actions.pod:1643
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 "
10728 #: ../src/guestfs-actions.pod:2487
10729 msgid "guestfs_inotify_files"
10733 #: ../src/guestfs-actions.pod:2489
10737 " guestfs_inotify_files (guestfs_h *g);\n"
10742 #: ../src/guestfs-actions.pod:2492
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."
10750 #: ../src/guestfs-actions.pod:2502
10751 msgid "guestfs_inotify_init"
10755 #: ../src/guestfs-actions.pod:2504
10759 " guestfs_inotify_init (guestfs_h *g,\n"
10760 " int maxevents);\n"
10765 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1659
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."
10772 #: ../src/guestfs-actions.pod:2512
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>)."
10784 #: ../src/guestfs-actions.pod:2522
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>."
10792 #: ../src/guestfs-actions.pod:2528
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."
10801 #: ../src/guestfs-actions.pod:2535
10803 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
10804 "This also removes any watches automatically."
10808 #: ../src/guestfs-actions.pod:2539 ../fish/guestfish-actions.pod:1690
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."
10816 #: ../src/guestfs-actions.pod:2548
10817 msgid "guestfs_inotify_read"
10821 #: ../src/guestfs-actions.pod:2550
10824 " struct guestfs_inotify_event_list *\n"
10825 " guestfs_inotify_read (guestfs_h *g);\n"
10830 #: ../src/guestfs-actions.pod:2553 ../fish/guestfish-actions.pod:1699
10832 "Return the complete queue of events that have happened since the previous "
10837 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:1702
10838 msgid "If no events have happened, this returns an empty list."
10842 #: ../src/guestfs-actions.pod:2558 ../fish/guestfish-actions.pod:1704
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."
10851 #: ../src/guestfs-actions.pod:2564
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>."
10859 #: ../src/guestfs-actions.pod:2570
10860 msgid "guestfs_inotify_rm_watch"
10864 #: ../src/guestfs-actions.pod:2572
10868 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
10874 #: ../src/guestfs-actions.pod:2576
10876 "Remove a previously defined inotify watch. See "
10877 "C<guestfs_inotify_add_watch>."
10881 #: ../src/guestfs-actions.pod:2583
10882 msgid "guestfs_inspect_get_arch"
10886 #: ../src/guestfs-actions.pod:2585
10890 " guestfs_inspect_get_arch (guestfs_h *g,\n"
10891 " const char *root);\n"
10896 #: ../src/guestfs-actions.pod:2589
10898 "This returns the architecture of the inspected operating system. The "
10899 "possible return values are listed under C<guestfs_file_architecture>."
10903 #: ../src/guestfs-actions.pod:2593 ../fish/guestfish-actions.pod:1725
10905 "If the architecture could not be determined, then the string C<unknown> is "
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."
10931 #: ../src/guestfs-actions.pod:2603
10932 msgid "guestfs_inspect_get_distro"
10936 #: ../src/guestfs-actions.pod:2605
10940 " guestfs_inspect_get_distro (guestfs_h *g,\n"
10941 " const char *root);\n"
10946 #: ../src/guestfs-actions.pod:2609 ../fish/guestfish-actions.pod:1734
10948 "This returns the distro (distribution) of the inspected operating system."
10952 #: ../src/guestfs-actions.pod:2612 ../fish/guestfish-actions.pod:1737
10953 msgid "Currently defined distros are:"
10957 #: ../src/guestfs-actions.pod:2616 ../fish/guestfish-actions.pod:1741
10958 msgid "\"archlinux\""
10959 msgstr "\"archlinux\""
10962 #: ../src/guestfs-actions.pod:2618 ../fish/guestfish-actions.pod:1743
10963 msgid "Arch Linux."
10964 msgstr "Arch Linux."
10967 #: ../src/guestfs-actions.pod:2620 ../fish/guestfish-actions.pod:1745
10972 #: ../src/guestfs-actions.pod:2622 ../fish/guestfish-actions.pod:1747
10977 #: ../src/guestfs-actions.pod:2624 ../fish/guestfish-actions.pod:1749
10979 msgstr "\"debian\""
10982 #: ../src/guestfs-actions.pod:2626 ../fish/guestfish-actions.pod:1751
10987 #: ../src/guestfs-actions.pod:2628 ../fish/guestfish-actions.pod:1753
10989 msgstr "\"fedora\""
10992 #: ../src/guestfs-actions.pod:2630 ../fish/guestfish-actions.pod:1755
10997 #: ../src/guestfs-actions.pod:2632 ../fish/guestfish-actions.pod:1757
10999 msgstr "\"gentoo\""
11002 #: ../src/guestfs-actions.pod:2634 ../fish/guestfish-actions.pod:1759
11007 #: ../src/guestfs-actions.pod:2636 ../fish/guestfish-actions.pod:1761
11008 msgid "\"linuxmint\""
11009 msgstr "\"linuxmint\""
11012 #: ../src/guestfs-actions.pod:2638 ../fish/guestfish-actions.pod:1763
11013 msgid "Linux Mint."
11014 msgstr "Linux Mint."
11017 #: ../src/guestfs-actions.pod:2640 ../fish/guestfish-actions.pod:1765
11018 msgid "\"mandriva\""
11019 msgstr "\"mandriva\""
11022 #: ../src/guestfs-actions.pod:2642 ../fish/guestfish-actions.pod:1767
11027 #: ../src/guestfs-actions.pod:2644 ../fish/guestfish-actions.pod:1769
11032 #: ../src/guestfs-actions.pod:2646 ../fish/guestfish-actions.pod:1771
11037 #: ../src/guestfs-actions.pod:2648 ../fish/guestfish-actions.pod:1773
11039 msgstr "\"pardus\""
11042 #: ../src/guestfs-actions.pod:2650 ../fish/guestfish-actions.pod:1775
11047 #: ../src/guestfs-actions.pod:2652 ../fish/guestfish-actions.pod:1777
11048 msgid "\"redhat-based\""
11049 msgstr "\"redhat-based\""
11052 #: ../src/guestfs-actions.pod:2654 ../fish/guestfish-actions.pod:1779
11053 msgid "Some Red Hat-derived distro."
11054 msgstr "Дистрибутив, що походить від Red Hat."
11057 #: ../src/guestfs-actions.pod:2656 ../fish/guestfish-actions.pod:1781
11062 #: ../src/guestfs-actions.pod:2658 ../fish/guestfish-actions.pod:1783
11063 msgid "Red Hat Enterprise Linux."
11067 #: ../src/guestfs-actions.pod:2660 ../fish/guestfish-actions.pod:1785
11068 msgid "\"scientificlinux\""
11072 #: ../src/guestfs-actions.pod:2662 ../fish/guestfish-actions.pod:1787
11073 msgid "Scientific Linux."
11077 #: ../src/guestfs-actions.pod:2664 ../fish/guestfish-actions.pod:1789
11078 msgid "\"slackware\""
11082 #: ../src/guestfs-actions.pod:2666 ../fish/guestfish-actions.pod:1791
11087 #: ../src/guestfs-actions.pod:2668 ../fish/guestfish-actions.pod:1793
11089 msgstr "\"ubuntu\""
11092 #: ../src/guestfs-actions.pod:2670 ../fish/guestfish-actions.pod:1795
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\""
11104 #: ../src/guestfs-actions.pod:2674 ../fish/guestfish-actions.pod:1799
11105 msgid "The distro could not be determined."
11106 msgstr "Дистрибутив, тип якого не вдалося визначити."
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\""
11115 #: ../src/guestfs-actions.pod:2678 ../fish/guestfish-actions.pod:1803
11117 "Windows does not have distributions. This string is returned if the OS type"
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
11126 "Future versions of libguestfs may return other strings here. The caller "
11127 "should be prepared to handle any string."
11131 #: ../src/guestfs-actions.pod:2693
11132 msgid "guestfs_inspect_get_drive_mappings"
11136 #: ../src/guestfs-actions.pod:2695
11140 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
11141 " const char *root);\n"
11146 #: ../src/guestfs-actions.pod:2699 ../fish/guestfish-actions.pod:1817
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:"
11155 #: ../src/guestfs-actions.pod:2705 ../fish/guestfish-actions.pod:1823
11158 " C => /dev/vda2\n"
11159 " E => /dev/vdb1\n"
11160 " F => /dev/vdc1\n"
11165 #: ../src/guestfs-actions.pod:2709 ../fish/guestfish-actions.pod:1827
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 "
11173 #: ../src/guestfs-actions.pod:2713 ../fish/guestfish-actions.pod:1831
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>,"
11182 #: ../src/guestfs-actions.pod:2718 ../fish/guestfish-actions.pod:1836
11184 "For Windows guests, currently only hard drive mappings are returned. "
11185 "Removable disks (eg. DVD-ROMs) are ignored."
11189 #: ../src/guestfs-actions.pod:2721 ../fish/guestfish-actions.pod:1839
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."
11196 #: ../src/guestfs-actions.pod:2724
11198 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
11199 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
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
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>."
11214 #: ../src/guestfs-actions.pod:2734 ../src/guestfs-actions.pod:3190
11215 msgid "(Added in 1.9.17)"
11219 #: ../src/guestfs-actions.pod:2736
11220 msgid "guestfs_inspect_get_filesystems"
11224 #: ../src/guestfs-actions.pod:2738
11228 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
11229 " const char *root);\n"
11234 #: ../src/guestfs-actions.pod:2742 ../fish/guestfish-actions.pod:1850
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."
11242 #: ../src/guestfs-actions.pod:2747 ../fish/guestfish-actions.pod:1855
11244 "In the case of a multi-boot virtual machine, it is possible for a filesystem"
11245 " to be shared between operating systems."
11249 #: ../src/guestfs-actions.pod:2750
11251 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
11252 "C<guestfs_inspect_get_mountpoints>."
11256 #: ../src/guestfs-actions.pod:2759
11257 msgid "guestfs_inspect_get_format"
11261 #: ../src/guestfs-actions.pod:2761
11265 " guestfs_inspect_get_format (guestfs_h *g,\n"
11266 " const char *root);\n"
11271 #: ../src/guestfs-actions.pod:2765 ../fish/guestfish-actions.pod:1865
11273 "This returns the format of the inspected operating system. You can use it "
11274 "to detect install images, live CDs and similar."
11278 #: ../src/guestfs-actions.pod:2768 ../fish/guestfish-actions.pod:1868
11279 msgid "Currently defined formats are:"
11283 #: ../src/guestfs-actions.pod:2772 ../fish/guestfish-actions.pod:1872
11284 msgid "\"installed\""
11285 msgstr "\"installed\""
11288 #: ../src/guestfs-actions.pod:2774 ../fish/guestfish-actions.pod:1874
11289 msgid "This is an installed operating system."
11290 msgstr "Це встановлена операційна система."
11293 #: ../src/guestfs-actions.pod:2776 ../fish/guestfish-actions.pod:1876
11294 msgid "\"installer\""
11298 #: ../src/guestfs-actions.pod:2778 ../fish/guestfish-actions.pod:1878
11300 "The disk image being inspected is not an installed operating system, but a "
11301 "I<bootable> install disk, live CD, or similar."
11305 #: ../src/guestfs-actions.pod:2783 ../fish/guestfish-actions.pod:1883
11306 msgid "The format of this disk image is not known."
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)"
11317 #: ../src/guestfs-actions.pod:2797
11318 msgid "guestfs_inspect_get_hostname"
11322 #: ../src/guestfs-actions.pod:2799
11326 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
11327 " const char *root);\n"
11332 #: ../src/guestfs-actions.pod:2803 ../fish/guestfish-actions.pod:1896
11334 "This function returns the hostname of the operating system as found by "
11335 "inspection of the guest's configuration files."
11339 #: ../src/guestfs-actions.pod:2806 ../fish/guestfish-actions.pod:1899
11341 "If the hostname could not be determined, then the string C<unknown> is "
11346 #: ../src/guestfs-actions.pod:2814
11347 msgid "(Added in 1.7.9)"
11351 #: ../src/guestfs-actions.pod:2816
11352 msgid "guestfs_inspect_get_icon"
11356 #: ../src/guestfs-actions.pod:2818
11360 " guestfs_inspect_get_icon (guestfs_h *g,\n"
11361 " const char *root,\n"
11362 " size_t *size_r,\n"
11368 #: ../src/guestfs-actions.pod:2829
11371 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
11372 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
11377 #: ../src/guestfs-actions.pod:2832 ../fish/guestfish-actions.pod:1908
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)."
11385 #: ../src/guestfs-actions.pod:2836 ../fish/guestfish-actions.pod:1912
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>."
11392 #: ../src/guestfs-actions.pod:2839 ../fish/guestfish-actions.pod:1915
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)."
11401 #: ../src/guestfs-actions.pod:2845 ../fish/guestfish-actions.pod:1921
11403 "If finding the favicon fails, then we look in other places in the guest for "
11408 #: ../src/guestfs-actions.pod:2848 ../fish/guestfish-actions.pod:1924
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."
11417 #: ../src/guestfs-actions.pod:2859 ../fish/guestfish-actions.pod:1935
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."
11425 #: ../src/guestfs-actions.pod:2865 ../fish/guestfish-actions.pod:1941
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."
11434 #: ../src/guestfs-actions.pod:2873 ../fish/guestfish-actions.pod:1949
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."
11442 #: ../src/guestfs-actions.pod:2880 ../fish/guestfish-actions.pod:1956
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."
11451 #: ../src/guestfs-actions.pod:2887 ../fish/guestfish-actions.pod:1963
11453 "Operating system icons are usually trademarks. Seek legal advice before "
11454 "using trademarks in applications."
11458 #: ../src/guestfs-actions.pod:2896 ../src/guestfs-actions.pod:3721
11459 #: ../src/guestfs-actions.pod:4975
11460 msgid "(Added in 1.11.12)"
11464 #: ../src/guestfs-actions.pod:2898
11465 msgid "guestfs_inspect_get_icon_va"
11469 #: ../src/guestfs-actions.pod:2900
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"
11481 #: ../src/guestfs-actions.pod:2906
11482 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
11486 #: ../src/guestfs-actions.pod:2910
11487 msgid "guestfs_inspect_get_icon_argv"
11491 #: ../src/guestfs-actions.pod:2912
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"
11503 #: ../src/guestfs-actions.pod:2918
11504 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
11508 #: ../src/guestfs-actions.pod:2922
11509 msgid "guestfs_inspect_get_major_version"
11513 #: ../src/guestfs-actions.pod:2924
11517 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
11518 " const char *root);\n"
11523 #: ../src/guestfs-actions.pod:2928 ../fish/guestfish-actions.pod:1974
11525 "This returns the major version number of the inspected operating system."
11529 #: ../src/guestfs-actions.pod:2931 ../fish/guestfish-actions.pod:1977
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."
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."
11545 #: ../src/guestfs-actions.pod:2946
11546 msgid "guestfs_inspect_get_minor_version"
11550 #: ../src/guestfs-actions.pod:2948
11554 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
11555 " const char *root);\n"
11560 #: ../src/guestfs-actions.pod:2952 ../fish/guestfish-actions.pod:1992
11562 "This returns the minor version number of the inspected operating system."
11566 #: ../src/guestfs-actions.pod:2957
11568 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
11569 "C<guestfs_inspect_get_major_version>."
11573 #: ../src/guestfs-actions.pod:2964
11574 msgid "guestfs_inspect_get_mountpoints"
11578 #: ../src/guestfs-actions.pod:2966
11582 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
11583 " const char *root);\n"
11588 #: ../src/guestfs-actions.pod:2970 ../fish/guestfish-actions.pod:2004
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."
11599 #: ../src/guestfs-actions.pod:2979 ../fish/guestfish-actions.pod:2013
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>)."
11607 #: ../src/guestfs-actions.pod:2984 ../fish/guestfish-actions.pod:2018
11609 "Non-mounted devices such as swap devices are I<not> returned in this list."
11613 #: ../src/guestfs-actions.pod:2987
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>."
11622 #: ../src/guestfs-actions.pod:2993
11624 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
11625 "C<guestfs_inspect_get_filesystems>."
11629 #: ../src/guestfs-actions.pod:3004
11630 msgid "guestfs_inspect_get_package_format"
11634 #: ../src/guestfs-actions.pod:3006
11638 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
11639 " const char *root);\n"
11644 #: ../src/guestfs-actions.pod:3010
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)."
11653 #: ../src/guestfs-actions.pod:3016 ../fish/guestfish-actions.pod:2040
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 "
11661 #: ../src/guestfs-actions.pod:3020 ../fish/guestfish-actions.pod:2044
11663 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>. "
11664 "Future versions of libguestfs may return other strings."
11668 #: ../src/guestfs-actions.pod:3028 ../src/guestfs-actions.pod:3056
11669 msgid "(Added in 1.7.5)"
11673 #: ../src/guestfs-actions.pod:3030
11674 msgid "guestfs_inspect_get_package_management"
11678 #: ../src/guestfs-actions.pod:3032
11682 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
11683 " const char *root);\n"
11688 #: ../src/guestfs-actions.pod:3036
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)."
11697 #: ../src/guestfs-actions.pod:3042 ../fish/guestfish-actions.pod:2059
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)."
11705 #: ../src/guestfs-actions.pod:3046 ../fish/guestfish-actions.pod:2063
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."
11713 #: ../src/guestfs-actions.pod:3058
11714 msgid "guestfs_inspect_get_product_name"
11718 #: ../src/guestfs-actions.pod:3060
11722 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
11723 " const char *root);\n"
11728 #: ../src/guestfs-actions.pod:3064 ../fish/guestfish-actions.pod:2074
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."
11736 #: ../src/guestfs-actions.pod:3069 ../fish/guestfish-actions.pod:2079
11738 "If the product name could not be determined, then the string C<unknown> is "
11743 #: ../src/guestfs-actions.pod:3079
11744 msgid "guestfs_inspect_get_product_variant"
11748 #: ../src/guestfs-actions.pod:3081
11752 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
11753 " const char *root);\n"
11758 #: ../src/guestfs-actions.pod:3085 ../fish/guestfish-actions.pod:2088
11759 msgid "This returns the product variant of the inspected operating system."
11763 #: ../src/guestfs-actions.pod:3088 ../fish/guestfish-actions.pod:2091
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>)."
11775 #: ../src/guestfs-actions.pod:3097 ../fish/guestfish-actions.pod:2100
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."
11783 #: ../src/guestfs-actions.pod:3101 ../fish/guestfish-actions.pod:2104
11785 "If the product variant could not be determined, then the string C<unknown> "
11790 #: ../src/guestfs-actions.pod:3104
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>."
11797 #: ../src/guestfs-actions.pod:3111
11798 msgid "(Added in 1.9.13)"
11802 #: ../src/guestfs-actions.pod:3113
11803 msgid "guestfs_inspect_get_roots"
11807 #: ../src/guestfs-actions.pod:3115
11811 " guestfs_inspect_get_roots (guestfs_h *g);\n"
11816 #: ../src/guestfs-actions.pod:3118
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."
11824 #: ../src/guestfs-actions.pod:3122
11826 "This returns an empty list if either no root devices were found or the "
11827 "caller has not called C<guestfs_inspect_os>."
11831 #: ../src/guestfs-actions.pod:3131
11832 msgid "(Added in 1.7.3)"
11836 #: ../src/guestfs-actions.pod:3133
11837 msgid "guestfs_inspect_get_type"
11841 #: ../src/guestfs-actions.pod:3135
11845 " guestfs_inspect_get_type (guestfs_h *g,\n"
11846 " const char *root);\n"
11851 #: ../src/guestfs-actions.pod:3139 ../fish/guestfish-actions.pod:2128
11853 "This returns the type of the inspected operating system. Currently defined "
11858 #: ../src/guestfs-actions.pod:3144 ../fish/guestfish-actions.pod:2133
11863 #: ../src/guestfs-actions.pod:3146 ../fish/guestfish-actions.pod:2135
11864 msgid "Any Linux-based operating system."
11868 #: ../src/guestfs-actions.pod:3150 ../fish/guestfish-actions.pod:2139
11869 msgid "Any Microsoft Windows operating system."
11873 #: ../src/guestfs-actions.pod:3152 ../fish/guestfish-actions.pod:2141
11874 msgid "\"freebsd\""
11875 msgstr "\"freebsd\""
11878 #: ../src/guestfs-actions.pod:3154 ../fish/guestfish-actions.pod:2143
11883 #: ../src/guestfs-actions.pod:3158 ../fish/guestfish-actions.pod:2147
11884 msgid "The operating system type could not be determined."
11888 #: ../src/guestfs-actions.pod:3172
11889 msgid "guestfs_inspect_get_windows_current_control_set"
11893 #: ../src/guestfs-actions.pod:3174
11897 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
11898 " const char *root);\n"
11903 #: ../src/guestfs-actions.pod:3178 ../fish/guestfish-actions.pod:2160
11905 "This returns the Windows CurrentControlSet of the inspected guest. The "
11906 "CurrentControlSet is a registry key name such as C<ControlSet001>."
11910 #: ../src/guestfs-actions.pod:3181 ../fish/guestfish-actions.pod:2163
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."
11917 #: ../src/guestfs-actions.pod:3192
11918 msgid "guestfs_inspect_get_windows_systemroot"
11922 #: ../src/guestfs-actions.pod:3194
11926 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
11927 " const char *root);\n"
11932 #: ../src/guestfs-actions.pod:3198 ../fish/guestfish-actions.pod:2173
11934 "This returns the Windows systemroot of the inspected guest. The systemroot "
11935 "is a directory path such as C</WINDOWS>."
11939 #: ../src/guestfs-actions.pod:3201 ../fish/guestfish-actions.pod:2176
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 "
11947 #: ../src/guestfs-actions.pod:3210
11948 msgid "(Added in 1.5.25)"
11952 #: ../src/guestfs-actions.pod:3212
11953 msgid "guestfs_inspect_is_live"
11957 #: ../src/guestfs-actions.pod:3214
11961 " guestfs_inspect_is_live (guestfs_h *g,\n"
11962 " const char *root);\n"
11967 #: ../src/guestfs-actions.pod:3218
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."
11974 #: ../src/guestfs-actions.pod:3228
11975 msgid "guestfs_inspect_is_multipart"
11979 #: ../src/guestfs-actions.pod:3230
11983 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
11984 " const char *root);\n"
11989 #: ../src/guestfs-actions.pod:3234
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."
11996 #: ../src/guestfs-actions.pod:3244
11997 msgid "guestfs_inspect_is_netinst"
12001 #: ../src/guestfs-actions.pod:3246
12005 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
12006 " const char *root);\n"
12011 #: ../src/guestfs-actions.pod:3250
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."
12020 #: ../src/guestfs-actions.pod:3262
12021 msgid "guestfs_inspect_list_applications"
12025 #: ../src/guestfs-actions.pod:3264
12028 " struct guestfs_application_list *\n"
12029 " guestfs_inspect_list_applications (guestfs_h *g,\n"
12030 " const char *root);\n"
12035 #: ../src/guestfs-actions.pod:3268 ../fish/guestfish-actions.pod:2218
12036 msgid "Return the list of applications installed in the operating system."
12040 #: ../src/guestfs-actions.pod:3270
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."
12053 #: ../src/guestfs-actions.pod:3280 ../fish/guestfish-actions.pod:2230
12055 "This returns an empty list if the inspection code was not able to determine "
12056 "the list of applications."
12060 #: ../src/guestfs-actions.pod:3283 ../fish/guestfish-actions.pod:2233
12061 msgid "The application structure contains the following fields:"
12065 #: ../src/guestfs-actions.pod:3287 ../fish/guestfish-actions.pod:2237
12066 msgid "C<app_name>"
12067 msgstr "C<app_name>"
12070 #: ../src/guestfs-actions.pod:3289 ../fish/guestfish-actions.pod:2239
12072 "The name of the application. For Red Hat-derived and Debian-derived Linux "
12073 "guests, this is the package name."
12077 #: ../src/guestfs-actions.pod:3292 ../fish/guestfish-actions.pod:2242
12078 msgid "C<app_display_name>"
12079 msgstr "C<app_display_name>"
12082 #: ../src/guestfs-actions.pod:3294 ../fish/guestfish-actions.pod:2244
12084 "The display name of the application, sometimes localized to the install "
12085 "language of the guest operating system."
12089 #: ../src/guestfs-actions.pod:3297 ../fish/guestfish-actions.pod:2247
12091 "If unavailable this is returned as an empty string C<\"\">. Callers needing"
12092 " to display something can use C<app_name> instead."
12096 #: ../src/guestfs-actions.pod:3300 ../fish/guestfish-actions.pod:2250
12097 msgid "C<app_epoch>"
12098 msgstr "C<app_epoch>"
12101 #: ../src/guestfs-actions.pod:3302 ../fish/guestfish-actions.pod:2252
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>."
12108 #: ../src/guestfs-actions.pod:3305 ../fish/guestfish-actions.pod:2255
12109 msgid "C<app_version>"
12110 msgstr "C<app_version>"
12113 #: ../src/guestfs-actions.pod:3307 ../fish/guestfish-actions.pod:2257
12115 "The version string of the application or package. If unavailable this is "
12116 "returned as an empty string C<\"\">."
12120 #: ../src/guestfs-actions.pod:3310 ../fish/guestfish-actions.pod:2260
12121 msgid "C<app_release>"
12122 msgstr "C<app_release>"
12125 #: ../src/guestfs-actions.pod:3312 ../fish/guestfish-actions.pod:2262
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<\"\">."
12132 #: ../src/guestfs-actions.pod:3316 ../fish/guestfish-actions.pod:2266
12133 msgid "C<app_install_path>"
12134 msgstr "C<app_install_path>"
12137 #: ../src/guestfs-actions.pod:3318 ../fish/guestfish-actions.pod:2268
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."
12145 #: ../src/guestfs-actions.pod:3323 ../fish/guestfish-actions.pod:2273
12146 msgid "If unavailable this is returned as an empty string C<\"\">."
12150 #: ../src/guestfs-actions.pod:3325 ../fish/guestfish-actions.pod:2275
12151 msgid "C<app_trans_path>"
12152 msgstr "C<app_trans_path>"
12155 #: ../src/guestfs-actions.pod:3327 ../fish/guestfish-actions.pod:2277
12157 "The install path translated into a libguestfs path. If unavailable this is "
12158 "returned as an empty string C<\"\">."
12162 #: ../src/guestfs-actions.pod:3330 ../fish/guestfish-actions.pod:2280
12163 msgid "C<app_publisher>"
12164 msgstr "C<app_publisher>"
12167 #: ../src/guestfs-actions.pod:3332 ../fish/guestfish-actions.pod:2282
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<\"\">."
12174 #: ../src/guestfs-actions.pod:3336 ../fish/guestfish-actions.pod:2286
12176 msgstr "C<app_url>"
12179 #: ../src/guestfs-actions.pod:3338 ../fish/guestfish-actions.pod:2288
12181 "The URL (eg. upstream URL) of the application. If unavailable this is "
12182 "returned as an empty string C<\"\">."
12186 #: ../src/guestfs-actions.pod:3341 ../fish/guestfish-actions.pod:2291
12187 msgid "C<app_source_package>"
12188 msgstr "C<app_source_package>"
12191 #: ../src/guestfs-actions.pod:3343 ../fish/guestfish-actions.pod:2293
12193 "For packaging systems which support this, the name of the source package. "
12194 "If unavailable this is returned as an empty string C<\"\">."
12198 #: ../src/guestfs-actions.pod:3346 ../fish/guestfish-actions.pod:2296
12199 msgid "C<app_summary>"
12200 msgstr "C<app_summary>"
12203 #: ../src/guestfs-actions.pod:3348 ../fish/guestfish-actions.pod:2298
12205 "A short (usually one line) description of the application or package. If "
12206 "unavailable this is returned as an empty string C<\"\">."
12210 #: ../src/guestfs-actions.pod:3351 ../fish/guestfish-actions.pod:2301
12211 msgid "C<app_description>"
12212 msgstr "C<app_description>"
12215 #: ../src/guestfs-actions.pod:3353 ../fish/guestfish-actions.pod:2303
12217 "A longer description of the application or package. If unavailable this is "
12218 "returned as an empty string C<\"\">."
12222 #: ../src/guestfs-actions.pod:3360
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>"
12230 #: ../src/guestfs-actions.pod:3364
12231 msgid "(Added in 1.7.8)"
12235 #: ../src/guestfs-actions.pod:3366
12236 msgid "guestfs_inspect_os"
12240 #: ../src/guestfs-actions.pod:3368
12244 " guestfs_inspect_os (guestfs_h *g);\n"
12249 #: ../src/guestfs-actions.pod:3371 ../fish/guestfish-actions.pod:2314
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."
12257 #: ../src/guestfs-actions.pod:3375 ../fish/guestfish-actions.pod:2318
12258 msgid "The list returned is empty if no operating systems were found."
12262 #: ../src/guestfs-actions.pod:3377 ../fish/guestfish-actions.pod:2320
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."
12272 #: ../src/guestfs-actions.pod:3384
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."
12280 #: ../src/guestfs-actions.pod:3389
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."
12289 #: ../src/guestfs-actions.pod:3395 ../fish/guestfish-actions.pod:2338
12291 "This function cannot decrypt encrypted disks. The caller must do that first"
12292 " (supplying the necessary keys) if the disk is encrypted."
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>."
12302 #: ../src/guestfs-actions.pod:3409
12303 msgid "guestfs_is_blockdev"
12307 #: ../src/guestfs-actions.pod:3411
12311 " guestfs_is_blockdev (guestfs_h *g,\n"
12312 " const char *path);\n"
12317 #: ../src/guestfs-actions.pod:3415 ../fish/guestfish-actions.pod:2350
12319 "This returns C<true> if and only if there is a block device with the given "
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>."
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)"
12339 #: ../src/guestfs-actions.pod:3424
12340 msgid "guestfs_is_busy"
12344 #: ../src/guestfs-actions.pod:3426
12348 " guestfs_is_busy (guestfs_h *g);\n"
12353 #: ../src/guestfs-actions.pod:3429 ../fish/guestfish-actions.pod:2359
12355 "This returns true iff this handle is busy processing a command (in the "
12360 #: ../src/guestfs-actions.pod:3438
12361 msgid "guestfs_is_chardev"
12365 #: ../src/guestfs-actions.pod:3440
12369 " guestfs_is_chardev (guestfs_h *g,\n"
12370 " const char *path);\n"
12375 #: ../src/guestfs-actions.pod:3444 ../fish/guestfish-actions.pod:2368
12377 "This returns C<true> if and only if there is a character device with the "
12378 "given C<path> name."
12382 #: ../src/guestfs-actions.pod:3453
12383 msgid "guestfs_is_config"
12387 #: ../src/guestfs-actions.pod:3455
12391 " guestfs_is_config (guestfs_h *g);\n"
12396 #: ../src/guestfs-actions.pod:3458 ../fish/guestfish-actions.pod:2377
12398 "This returns true iff this handle is being configured (in the C<CONFIG> "
12403 #: ../src/guestfs-actions.pod:3467
12404 msgid "guestfs_is_dir"
12408 #: ../src/guestfs-actions.pod:3469
12412 " guestfs_is_dir (guestfs_h *g,\n"
12413 " const char *path);\n"
12418 #: ../src/guestfs-actions.pod:3473 ../fish/guestfish-actions.pod:2386
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."
12425 #: ../src/guestfs-actions.pod:3483
12426 msgid "guestfs_is_fifo"
12430 #: ../src/guestfs-actions.pod:3485
12434 " guestfs_is_fifo (guestfs_h *g,\n"
12435 " const char *path);\n"
12440 #: ../src/guestfs-actions.pod:3489 ../fish/guestfish-actions.pod:2396
12442 "This returns C<true> if and only if there is a FIFO (named pipe) with the "
12443 "given C<path> name."
12447 #: ../src/guestfs-actions.pod:3498
12448 msgid "guestfs_is_file"
12452 #: ../src/guestfs-actions.pod:3500
12456 " guestfs_is_file (guestfs_h *g,\n"
12457 " const char *path);\n"
12462 #: ../src/guestfs-actions.pod:3504 ../fish/guestfish-actions.pod:2405
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 "
12470 #: ../src/guestfs-actions.pod:3514
12471 msgid "guestfs_is_launching"
12475 #: ../src/guestfs-actions.pod:3516
12479 " guestfs_is_launching (guestfs_h *g);\n"
12484 #: ../src/guestfs-actions.pod:3519 ../fish/guestfish-actions.pod:2415
12486 "This returns true iff this handle is launching the subprocess (in the "
12487 "C<LAUNCHING> state)."
12491 #: ../src/guestfs-actions.pod:3528
12492 msgid "guestfs_is_lv"
12496 #: ../src/guestfs-actions.pod:3530
12500 " guestfs_is_lv (guestfs_h *g,\n"
12501 " const char *device);\n"
12506 #: ../src/guestfs-actions.pod:3534 ../fish/guestfish-actions.pod:2424
12508 "This command tests whether C<device> is a logical volume, and returns true "
12509 "iff this is the case."
12513 #: ../src/guestfs-actions.pod:3541
12514 msgid "guestfs_is_ready"
12518 #: ../src/guestfs-actions.pod:3543
12522 " guestfs_is_ready (guestfs_h *g);\n"
12527 #: ../src/guestfs-actions.pod:3546 ../fish/guestfish-actions.pod:2431
12529 "This returns true iff this handle is ready to accept commands (in the "
12534 #: ../src/guestfs-actions.pod:3555
12535 msgid "guestfs_is_socket"
12539 #: ../src/guestfs-actions.pod:3557
12543 " guestfs_is_socket (guestfs_h *g,\n"
12544 " const char *path);\n"
12549 #: ../src/guestfs-actions.pod:3561 ../fish/guestfish-actions.pod:2440
12551 "This returns C<true> if and only if there is a Unix domain socket with the "
12552 "given C<path> name."
12556 #: ../src/guestfs-actions.pod:3570
12557 msgid "guestfs_is_symlink"
12561 #: ../src/guestfs-actions.pod:3572
12565 " guestfs_is_symlink (guestfs_h *g,\n"
12566 " const char *path);\n"
12571 #: ../src/guestfs-actions.pod:3576 ../fish/guestfish-actions.pod:2449
12573 "This returns C<true> if and only if there is a symbolic link with the given "
12578 #: ../src/guestfs-actions.pod:3585
12579 msgid "guestfs_is_zero"
12583 #: ../src/guestfs-actions.pod:3587
12587 " guestfs_is_zero (guestfs_h *g,\n"
12588 " const char *path);\n"
12593 #: ../src/guestfs-actions.pod:3591 ../fish/guestfish-actions.pod:2458
12595 "This returns true iff the file exists and the file is empty or it contains "
12600 #: ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3610
12601 msgid "(Added in 1.11.8)"
12605 #: ../src/guestfs-actions.pod:3598
12606 msgid "guestfs_is_zero_device"
12610 #: ../src/guestfs-actions.pod:3600
12614 " guestfs_is_zero_device (guestfs_h *g,\n"
12615 " const char *device);\n"
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."
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."
12630 #: ../src/guestfs-actions.pod:3612
12631 msgid "guestfs_kill_subprocess"
12635 #: ../src/guestfs-actions.pod:3614
12639 " guestfs_kill_subprocess (guestfs_h *g);\n"
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."
12649 #: ../src/guestfs-actions.pod:3623
12650 msgid "guestfs_launch"
12654 #: ../src/guestfs-actions.pod:3625
12658 " guestfs_launch (guestfs_h *g);\n"
12663 #: ../src/guestfs-actions.pod:3628 ../fish/guestfish-actions.pod:2481
12665 "Internally libguestfs is implemented by running a virtual machine using "
12670 #: ../src/guestfs-actions.pod:3631 ../fish/guestfish-actions.pod:2484
12672 "You should call this after configuring the handle (eg. adding drives) but "
12673 "before performing any actions."
12677 #: ../src/guestfs-actions.pod:3643
12678 msgid "guestfs_lchown"
12682 #: ../src/guestfs-actions.pod:3645
12686 " guestfs_lchown (guestfs_h *g,\n"
12689 " const char *path);\n"
12694 #: ../src/guestfs-actions.pod:3651
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."
12702 #: ../src/guestfs-actions.pod:3663
12703 msgid "guestfs_lgetxattr"
12707 #: ../src/guestfs-actions.pod:3665
12711 " guestfs_lgetxattr (guestfs_h *g,\n"
12712 " const char *path,\n"
12713 " const char *name,\n"
12714 " size_t *size_r);\n"
12719 #: ../src/guestfs-actions.pod:3671 ../fish/guestfish-actions.pod:2503
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 "
12727 #: ../src/guestfs-actions.pod:3685
12728 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
12732 #: ../src/guestfs-actions.pod:3693
12733 msgid "guestfs_lgetxattrs"
12737 #: ../src/guestfs-actions.pod:3695
12740 " struct guestfs_xattr_list *\n"
12741 " guestfs_lgetxattrs (guestfs_h *g,\n"
12742 " const char *path);\n"
12747 #: ../src/guestfs-actions.pod:3699
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."
12754 #: ../src/guestfs-actions.pod:3709
12755 msgid "guestfs_list_9p"
12759 #: ../src/guestfs-actions.pod:3711
12763 " guestfs_list_9p (guestfs_h *g);\n"
12768 #: ../src/guestfs-actions.pod:3714 ../fish/guestfish-actions.pod:2531
12770 "List all 9p filesystems attached to the guest. A list of mount tags is "
12775 #: ../src/guestfs-actions.pod:3723
12776 msgid "guestfs_list_devices"
12780 #: ../src/guestfs-actions.pod:3725
12784 " guestfs_list_devices (guestfs_h *g);\n"
12789 #: ../src/guestfs-actions.pod:3728 ../fish/guestfish-actions.pod:2538
12790 msgid "List all the block devices."
12794 #: ../src/guestfs-actions.pod:3730 ../fish/guestfish-actions.pod:2540
12795 msgid "The full block device names are returned, eg. C</dev/sda>."
12799 #: ../src/guestfs-actions.pod:3740
12800 msgid "guestfs_list_dm_devices"
12804 #: ../src/guestfs-actions.pod:3742
12808 " guestfs_list_dm_devices (guestfs_h *g);\n"
12813 #: ../src/guestfs-actions.pod:3745 ../fish/guestfish-actions.pod:2548
12814 msgid "List all device mapper devices."
12818 #: ../src/guestfs-actions.pod:3747
12820 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
12821 "previous call to C<guestfs_luks_open>."
12825 #: ../src/guestfs-actions.pod:3750
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 "
12833 #: ../src/guestfs-actions.pod:3758 ../src/guestfs-actions.pod:5214
12834 msgid "(Added in 1.11.15)"
12838 #: ../src/guestfs-actions.pod:3760
12839 msgid "guestfs_list_filesystems"
12843 #: ../src/guestfs-actions.pod:3762
12847 " guestfs_list_filesystems (guestfs_h *g);\n"
12852 #: ../src/guestfs-actions.pod:3765 ../fish/guestfish-actions.pod:2561
12854 "This inspection command looks for filesystems on partitions, block devices "
12855 "and logical volumes, returning a list of devices containing filesystems and "
12860 #: ../src/guestfs-actions.pod:3769 ../fish/guestfish-actions.pod:2565
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:"
12867 #: ../src/guestfs-actions.pod:3773 ../fish/guestfish-actions.pod:2569
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"
12878 #: ../src/guestfs-actions.pod:3778 ../fish/guestfish-actions.pod:2574
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."
12885 #: ../src/guestfs-actions.pod:3782
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."
12893 #: ../src/guestfs-actions.pod:3786
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 "
12904 #: ../src/guestfs-actions.pod:3800 ../src/guestfs-actions.pod:5569
12905 msgid "(Added in 1.5.15)"
12909 #: ../src/guestfs-actions.pod:3802
12910 msgid "guestfs_list_partitions"
12911 msgstr "guestfs_list_partitions"
12914 #: ../src/guestfs-actions.pod:3804
12918 " guestfs_list_partitions (guestfs_h *g);\n"
12922 " guestfs_list_partitions (guestfs_h *g);\n"
12926 #: ../src/guestfs-actions.pod:3807 ../fish/guestfish-actions.pod:2594
12927 msgid "List all the partitions detected on all block devices."
12931 #: ../src/guestfs-actions.pod:3809 ../fish/guestfish-actions.pod:2596
12932 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12936 #: ../src/guestfs-actions.pod:3811
12938 "This does not return logical volumes. For that you will need to call "
12943 #: ../src/guestfs-actions.pod:3822
12945 msgstr "guestfs_ll"
12948 #: ../src/guestfs-actions.pod:3824
12952 " guestfs_ll (guestfs_h *g,\n"
12953 " const char *directory);\n"
12957 " guestfs_ll (guestfs_h *g,\n"
12958 " const char *directory);\n"
12962 #: ../src/guestfs-actions.pod:3828 ../fish/guestfish-actions.pod:2607
12964 "List the files in C<directory> (relative to the root directory, there is no "
12965 "cwd) in the format of 'ls -la'."
12969 #: ../src/guestfs-actions.pod:3831 ../fish/guestfish-actions.pod:2610
12971 "This command is mostly useful for interactive sessions. It is I<not> "
12972 "intended that you try to parse the output string."
12976 #: ../src/guestfs-actions.pod:3839
12978 msgstr "guestfs_ln"
12981 #: ../src/guestfs-actions.pod:3841
12985 " guestfs_ln (guestfs_h *g,\n"
12986 " const char *target,\n"
12987 " const char *linkname);\n"
12991 " guestfs_ln (guestfs_h *g,\n"
12992 " const char *target,\n"
12993 " const char *linkname);\n"
12997 #: ../src/guestfs-actions.pod:3846 ../fish/guestfish-actions.pod:2617
12998 msgid "This command creates a hard link using the C<ln> command."
13002 #: ../src/guestfs-actions.pod:3852
13003 msgid "guestfs_ln_f"
13004 msgstr "guestfs_ln_f"
13007 #: ../src/guestfs-actions.pod:3854
13011 " guestfs_ln_f (guestfs_h *g,\n"
13012 " const char *target,\n"
13013 " const char *linkname);\n"
13017 " guestfs_ln_f (guestfs_h *g,\n"
13018 " const char *target,\n"
13019 " const char *linkname);\n"
13023 #: ../src/guestfs-actions.pod:3859 ../fish/guestfish-actions.pod:2623
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."
13030 #: ../src/guestfs-actions.pod:3866
13031 msgid "guestfs_ln_s"
13032 msgstr "guestfs_ln_s"
13035 #: ../src/guestfs-actions.pod:3868
13039 " guestfs_ln_s (guestfs_h *g,\n"
13040 " const char *target,\n"
13041 " const char *linkname);\n"
13045 " guestfs_ln_s (guestfs_h *g,\n"
13046 " const char *target,\n"
13047 " const char *linkname);\n"
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."
13056 #: ../src/guestfs-actions.pod:3879
13057 msgid "guestfs_ln_sf"
13058 msgstr "guestfs_ln_sf"
13061 #: ../src/guestfs-actions.pod:3881
13065 " guestfs_ln_sf (guestfs_h *g,\n"
13066 " const char *target,\n"
13067 " const char *linkname);\n"
13071 " guestfs_ln_sf (guestfs_h *g,\n"
13072 " const char *target,\n"
13073 " const char *linkname);\n"
13077 #: ../src/guestfs-actions.pod:3886 ../fish/guestfish-actions.pod:2636
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."
13084 #: ../src/guestfs-actions.pod:3893
13085 msgid "guestfs_lremovexattr"
13086 msgstr "guestfs_lremovexattr"
13089 #: ../src/guestfs-actions.pod:3895
13093 " guestfs_lremovexattr (guestfs_h *g,\n"
13094 " const char *xattr,\n"
13095 " const char *path);\n"
13099 " guestfs_lremovexattr (guestfs_h *g,\n"
13100 " const char *xattr,\n"
13101 " const char *path);\n"
13105 #: ../src/guestfs-actions.pod:3900
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."
13112 #: ../src/guestfs-actions.pod:3908
13114 msgstr "guestfs_ls"
13117 #: ../src/guestfs-actions.pod:3910
13121 " guestfs_ls (guestfs_h *g,\n"
13122 " const char *directory);\n"
13126 " guestfs_ls (guestfs_h *g,\n"
13127 " const char *directory);\n"
13131 #: ../src/guestfs-actions.pod:3914 ../fish/guestfish-actions.pod:2651
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 "
13139 #: ../src/guestfs-actions.pod:3918
13141 "This command is mostly useful for interactive sessions. Programs should "
13142 "probably use C<guestfs_readdir> instead."
13146 #: ../src/guestfs-actions.pod:3927
13147 msgid "guestfs_lsetxattr"
13148 msgstr "guestfs_lsetxattr"
13151 #: ../src/guestfs-actions.pod:3929
13155 " guestfs_lsetxattr (guestfs_h *g,\n"
13156 " const char *xattr,\n"
13157 " const char *val,\n"
13159 " const char *path);\n"
13163 " guestfs_lsetxattr (guestfs_h *g,\n"
13164 " const char *xattr,\n"
13165 " const char *val,\n"
13167 " const char *path);\n"
13171 #: ../src/guestfs-actions.pod:3936
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."
13178 #: ../src/guestfs-actions.pod:3944
13179 msgid "guestfs_lstat"
13180 msgstr "guestfs_lstat"
13183 #: ../src/guestfs-actions.pod:3946
13186 " struct guestfs_stat *\n"
13187 " guestfs_lstat (guestfs_h *g,\n"
13188 " const char *path);\n"
13191 " struct guestfs_stat *\n"
13192 " guestfs_lstat (guestfs_h *g,\n"
13193 " const char *path);\n"
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>."
13203 #: ../src/guestfs-actions.pod:3952
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."
13210 #: ../src/guestfs-actions.pod:3956 ../fish/guestfish-actions.pod:2676
13211 msgid "This is the same as the C<lstat(2)> system call."
13215 #: ../src/guestfs-actions.pod:3958 ../src/guestfs-actions.pod:6725
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>."
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)"
13228 #: ../src/guestfs-actions.pod:3964
13229 msgid "guestfs_lstatlist"
13230 msgstr "guestfs_lstatlist"
13233 #: ../src/guestfs-actions.pod:3966
13236 " struct guestfs_stat_list *\n"
13237 " guestfs_lstatlist (guestfs_h *g,\n"
13238 " const char *path,\n"
13239 " char *const *names);\n"
13242 " struct guestfs_stat_list *\n"
13243 " guestfs_lstatlist (guestfs_h *g,\n"
13244 " const char *path,\n"
13245 " char *const *names);\n"
13249 #: ../src/guestfs-actions.pod:3971
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."
13257 #: ../src/guestfs-actions.pod:3975 ../fish/guestfish-actions.pod:2686
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>."
13265 #: ../src/guestfs-actions.pod:3980
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."
13276 #: ../src/guestfs-actions.pod:3988
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>."
13283 #: ../src/guestfs-actions.pod:3994
13284 msgid "guestfs_luks_add_key"
13285 msgstr "guestfs_luks_add_key"
13288 #: ../src/guestfs-actions.pod:3996
13292 " guestfs_luks_add_key (guestfs_h *g,\n"
13293 " const char *device,\n"
13294 " const char *key,\n"
13295 " const char *newkey,\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"
13308 #: ../src/guestfs-actions.pod:4003 ../fish/guestfish-actions.pod:2703
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."
13316 #: ../src/guestfs-actions.pod:4008
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."
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
13327 "This function takes a key or passphrase parameter which could contain "
13328 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
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)"
13339 #: ../src/guestfs-actions.pod:4020
13340 msgid "guestfs_luks_close"
13341 msgstr "guestfs_luks_close"
13344 #: ../src/guestfs-actions.pod:4022
13348 " guestfs_luks_close (guestfs_h *g,\n"
13349 " const char *device);\n"
13353 " guestfs_luks_close (guestfs_h *g,\n"
13354 " const char *device);\n"
13358 #: ../src/guestfs-actions.pod:4026
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."
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)"
13374 #: ../src/guestfs-actions.pod:4036
13375 msgid "guestfs_luks_format"
13376 msgstr "guestfs_luks_format"
13379 #: ../src/guestfs-actions.pod:4038
13383 " guestfs_luks_format (guestfs_h *g,\n"
13384 " const char *device,\n"
13385 " const char *key,\n"
13390 " guestfs_luks_format (guestfs_h *g,\n"
13391 " const char *device,\n"
13392 " const char *key,\n"
13397 #: ../src/guestfs-actions.pod:4044 ../fish/guestfish-actions.pod:2729
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)."
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
13415 "B<This command is dangerous. Without careful use you can easily destroy all"
13420 #: ../src/guestfs-actions.pod:4060
13421 msgid "guestfs_luks_format_cipher"
13422 msgstr "guestfs_luks_format_cipher"
13425 #: ../src/guestfs-actions.pod:4062
13429 " guestfs_luks_format_cipher (guestfs_h *g,\n"
13430 " const char *device,\n"
13431 " const char *key,\n"
13433 " const char *cipher);\n"
13437 " guestfs_luks_format_cipher (guestfs_h *g,\n"
13438 " const char *device,\n"
13439 " const char *key,\n"
13441 " const char *cipher);\n"
13445 #: ../src/guestfs-actions.pod:4069
13447 "This command is the same as C<guestfs_luks_format> but it also allows you to"
13448 " set the C<cipher> used."
13452 #: ../src/guestfs-actions.pod:4083
13453 msgid "guestfs_luks_kill_slot"
13454 msgstr "guestfs_luks_kill_slot"
13457 #: ../src/guestfs-actions.pod:4085
13461 " guestfs_luks_kill_slot (guestfs_h *g,\n"
13462 " const char *device,\n"
13463 " const char *key,\n"
13468 " guestfs_luks_kill_slot (guestfs_h *g,\n"
13469 " const char *device,\n"
13470 " const char *key,\n"
13475 #: ../src/guestfs-actions.pod:4091 ../fish/guestfish-actions.pod:2757
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."
13482 #: ../src/guestfs-actions.pod:4103
13483 msgid "guestfs_luks_open"
13484 msgstr "guestfs_luks_open"
13487 #: ../src/guestfs-actions.pod:4105
13491 " guestfs_luks_open (guestfs_h *g,\n"
13492 " const char *device,\n"
13493 " const char *key,\n"
13494 " const char *mapname);\n"
13498 " guestfs_luks_open (guestfs_h *g,\n"
13499 " const char *device,\n"
13500 " const char *key,\n"
13501 " const char *mapname);\n"
13505 #: ../src/guestfs-actions.pod:4111 ../fish/guestfish-actions.pod:2768
13507 "This command opens a block device which has been encrypted according to the "
13508 "Linux Unified Key Setup (LUKS) standard."
13512 #: ../src/guestfs-actions.pod:4114 ../fish/guestfish-actions.pod:2771
13513 msgid "C<device> is the encrypted block device or partition."
13517 #: ../src/guestfs-actions.pod:4116 ../fish/guestfish-actions.pod:2773
13519 "The caller must supply one of the keys associated with the LUKS block "
13520 "device, in the C<key> parameter."
13524 #: ../src/guestfs-actions.pod:4119 ../fish/guestfish-actions.pod:2776
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."
13532 #: ../src/guestfs-actions.pod:4123
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 "
13540 #: ../src/guestfs-actions.pod:4127
13541 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
13545 #: ../src/guestfs-actions.pod:4138
13546 msgid "guestfs_luks_open_ro"
13547 msgstr "guestfs_luks_open_ro"
13550 #: ../src/guestfs-actions.pod:4140
13554 " guestfs_luks_open_ro (guestfs_h *g,\n"
13555 " const char *device,\n"
13556 " const char *key,\n"
13557 " const char *mapname);\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"
13568 #: ../src/guestfs-actions.pod:4146
13570 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
13575 #: ../src/guestfs-actions.pod:4157
13576 msgid "guestfs_lvcreate"
13577 msgstr "guestfs_lvcreate"
13580 #: ../src/guestfs-actions.pod:4159
13584 " guestfs_lvcreate (guestfs_h *g,\n"
13585 " const char *logvol,\n"
13586 " const char *volgroup,\n"
13591 " guestfs_lvcreate (guestfs_h *g,\n"
13592 " const char *logvol,\n"
13593 " const char *volgroup,\n"
13598 #: ../src/guestfs-actions.pod:4165 ../fish/guestfish-actions.pod:2804
13600 "This creates an LVM logical volume called C<logvol> on the volume group "
13601 "C<volgroup>, with C<size> megabytes."
13605 #: ../src/guestfs-actions.pod:4172
13606 msgid "guestfs_lvm_canonical_lv_name"
13607 msgstr "guestfs_lvm_canonical_lv_name"
13610 #: ../src/guestfs-actions.pod:4174
13614 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
13615 " const char *lvname);\n"
13619 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
13620 " const char *lvname);\n"
13624 #: ../src/guestfs-actions.pod:4178 ../fish/guestfish-actions.pod:2811
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 "
13632 #: ../src/guestfs-actions.pod:4182 ../fish/guestfish-actions.pod:2815
13634 "This command returns an error if the C<lvname> parameter does not refer to a"
13639 #: ../src/guestfs-actions.pod:4185
13640 msgid "See also C<guestfs_is_lv>."
13644 #: ../src/guestfs-actions.pod:4190
13645 msgid "(Added in 1.5.24)"
13646 msgstr "(Додано у 1.5.24)"
13649 #: ../src/guestfs-actions.pod:4192
13650 msgid "guestfs_lvm_clear_filter"
13651 msgstr "guestfs_lvm_clear_filter"
13654 #: ../src/guestfs-actions.pod:4194
13658 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
13662 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
13666 #: ../src/guestfs-actions.pod:4197
13668 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
13669 "see every block device."
13673 #: ../src/guestfs-actions.pod:4200 ../src/guestfs-actions.pod:4242
13674 #: ../fish/guestfish-actions.pod:2827 ../fish/guestfish-actions.pod:2858
13676 "This command also clears the LVM cache and performs a volume group scan."
13680 #: ../src/guestfs-actions.pod:4207
13681 msgid "guestfs_lvm_remove_all"
13682 msgstr "guestfs_lvm_remove_all"
13685 #: ../src/guestfs-actions.pod:4209
13689 " guestfs_lvm_remove_all (guestfs_h *g);\n"
13693 " guestfs_lvm_remove_all (guestfs_h *g);\n"
13697 #: ../src/guestfs-actions.pod:4212 ../fish/guestfish-actions.pod:2834
13699 "This command removes all LVM logical volumes, volume groups and physical "
13704 #: ../src/guestfs-actions.pod:4222
13705 msgid "guestfs_lvm_set_filter"
13706 msgstr "guestfs_lvm_set_filter"
13709 #: ../src/guestfs-actions.pod:4224
13713 " guestfs_lvm_set_filter (guestfs_h *g,\n"
13714 " char *const *devices);\n"
13718 " guestfs_lvm_set_filter (guestfs_h *g,\n"
13719 " char *const *devices);\n"
13723 #: ../src/guestfs-actions.pod:4228 ../fish/guestfish-actions.pod:2844
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 "
13731 #: ../src/guestfs-actions.pod:4232 ../fish/guestfish-actions.pod:2848
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."
13743 #: ../src/guestfs-actions.pod:4245 ../fish/guestfish-actions.pod:2861
13744 msgid "You can filter whole block devices or individual partitions."
13748 #: ../src/guestfs-actions.pod:4247 ../fish/guestfish-actions.pod:2863
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."
13755 #: ../src/guestfs-actions.pod:4255
13756 msgid "guestfs_lvremove"
13757 msgstr "guestfs_lvremove"
13760 #: ../src/guestfs-actions.pod:4257
13764 " guestfs_lvremove (guestfs_h *g,\n"
13765 " const char *device);\n"
13769 " guestfs_lvremove (guestfs_h *g,\n"
13770 " const char *device);\n"
13774 #: ../src/guestfs-actions.pod:4261 ../fish/guestfish-actions.pod:2871
13776 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
13777 "LV, such as C</dev/VG/LV>."
13781 #: ../src/guestfs-actions.pod:4264 ../fish/guestfish-actions.pod:2874
13783 "You can also remove all LVs in a volume group by specifying the VG name, "
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)"
13794 #: ../src/guestfs-actions.pod:4271
13795 msgid "guestfs_lvrename"
13796 msgstr "guestfs_lvrename"
13799 #: ../src/guestfs-actions.pod:4273
13803 " guestfs_lvrename (guestfs_h *g,\n"
13804 " const char *logvol,\n"
13805 " const char *newlogvol);\n"
13809 " guestfs_lvrename (guestfs_h *g,\n"
13810 " const char *logvol,\n"
13811 " const char *newlogvol);\n"
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>."
13820 #: ../src/guestfs-actions.pod:4282 ../src/guestfs-actions.pod:7511
13821 msgid "(Added in 1.0.83)"
13822 msgstr "(Додано у 1.0.83)"
13825 #: ../src/guestfs-actions.pod:4284
13826 msgid "guestfs_lvresize"
13827 msgstr "guestfs_lvresize"
13830 #: ../src/guestfs-actions.pod:4286
13834 " guestfs_lvresize (guestfs_h *g,\n"
13835 " const char *device,\n"
13840 " guestfs_lvresize (guestfs_h *g,\n"
13841 " const char *device,\n"
13846 #: ../src/guestfs-actions.pod:4291 ../fish/guestfish-actions.pod:2887
13848 "This resizes (expands or shrinks) an existing LVM logical volume to "
13849 "C<mbytes>. When reducing, data in the reduced part is lost."
13853 #: ../src/guestfs-actions.pod:4299
13854 msgid "guestfs_lvresize_free"
13855 msgstr "guestfs_lvresize_free"
13858 #: ../src/guestfs-actions.pod:4301
13862 " guestfs_lvresize_free (guestfs_h *g,\n"
13863 " const char *lv,\n"
13868 " guestfs_lvresize_free (guestfs_h *g,\n"
13869 " const char *lv,\n"
13874 #: ../src/guestfs-actions.pod:4306 ../fish/guestfish-actions.pod:2895
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."
13883 #: ../src/guestfs-actions.pod:4314
13884 msgid "(Added in 1.3.3)"
13885 msgstr "(Додано у 1.3.3)"
13888 #: ../src/guestfs-actions.pod:4316
13889 msgid "guestfs_lvs"
13890 msgstr "guestfs_lvs"
13893 #: ../src/guestfs-actions.pod:4318
13897 " guestfs_lvs (guestfs_h *g);\n"
13901 " guestfs_lvs (guestfs_h *g);\n"
13905 #: ../src/guestfs-actions.pod:4321 ../fish/guestfish-actions.pod:2905
13907 "List all the logical volumes detected. This is the equivalent of the "
13908 "L<lvs(8)> command."
13912 #: ../src/guestfs-actions.pod:4324 ../fish/guestfish-actions.pod:2908
13914 "This returns a list of the logical volume device names (eg. "
13915 "C</dev/VolGroup00/LogVol00>)."
13919 #: ../src/guestfs-actions.pod:4327
13920 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
13924 #: ../src/guestfs-actions.pod:4335
13925 msgid "guestfs_lvs_full"
13926 msgstr "guestfs_lvs_full"
13929 #: ../src/guestfs-actions.pod:4337
13932 " struct guestfs_lvm_lv_list *\n"
13933 " guestfs_lvs_full (guestfs_h *g);\n"
13936 " struct guestfs_lvm_lv_list *\n"
13937 " guestfs_lvs_full (guestfs_h *g);\n"
13941 #: ../src/guestfs-actions.pod:4340 ../fish/guestfish-actions.pod:2917
13943 "List all the logical volumes detected. This is the equivalent of the "
13944 "L<lvs(8)> command. The \"full\" version includes all fields."
13948 #: ../src/guestfs-actions.pod:4343
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 "
13956 #: ../src/guestfs-actions.pod:4349
13957 msgid "guestfs_lvuuid"
13958 msgstr "guestfs_lvuuid"
13961 #: ../src/guestfs-actions.pod:4351
13965 " guestfs_lvuuid (guestfs_h *g,\n"
13966 " const char *device);\n"
13970 " guestfs_lvuuid (guestfs_h *g,\n"
13971 " const char *device);\n"
13975 #: ../src/guestfs-actions.pod:4355 ../fish/guestfish-actions.pod:2924
13976 msgid "This command returns the UUID of the LVM LV C<device>."
13980 #: ../src/guestfs-actions.pod:4362
13981 msgid "guestfs_lxattrlist"
13982 msgstr "guestfs_lxattrlist"
13985 #: ../src/guestfs-actions.pod:4364
13988 " struct guestfs_xattr_list *\n"
13989 " guestfs_lxattrlist (guestfs_h *g,\n"
13990 " const char *path,\n"
13991 " char *const *names);\n"
13994 " struct guestfs_xattr_list *\n"
13995 " guestfs_lxattrlist (guestfs_h *g,\n"
13996 " const char *path,\n"
13997 " char *const *names);\n"
14001 #: ../src/guestfs-actions.pod:4369 ../fish/guestfish-actions.pod:2930
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"
14009 #: ../src/guestfs-actions.pod:4373 ../fish/guestfish-actions.pod:2934
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."
14022 #: ../src/guestfs-actions.pod:4383
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."
14033 #: ../src/guestfs-actions.pod:4397
14034 msgid "guestfs_mkdir"
14035 msgstr "guestfs_mkdir"
14038 #: ../src/guestfs-actions.pod:4399
14042 " guestfs_mkdir (guestfs_h *g,\n"
14043 " const char *path);\n"
14047 " guestfs_mkdir (guestfs_h *g,\n"
14048 " const char *path);\n"
14052 #: ../src/guestfs-actions.pod:4403 ../fish/guestfish-actions.pod:2956
14053 msgid "Create a directory named C<path>."
14057 #: ../src/guestfs-actions.pod:4409
14058 msgid "guestfs_mkdir_mode"
14059 msgstr "guestfs_mkdir_mode"
14062 #: ../src/guestfs-actions.pod:4411
14066 " guestfs_mkdir_mode (guestfs_h *g,\n"
14067 " const char *path,\n"
14072 " guestfs_mkdir_mode (guestfs_h *g,\n"
14073 " const char *path,\n"
14078 #: ../src/guestfs-actions.pod:4416 ../fish/guestfish-actions.pod:2962
14080 "This command creates a directory, setting the initial permissions of the "
14081 "directory to C<mode>."
14085 #: ../src/guestfs-actions.pod:4419 ../fish/guestfish-actions.pod:2965
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 "
14093 #: ../src/guestfs-actions.pod:4423
14094 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
14098 #: ../src/guestfs-actions.pod:4429
14099 msgid "guestfs_mkdir_p"
14100 msgstr "guestfs_mkdir_p"
14103 #: ../src/guestfs-actions.pod:4431
14107 " guestfs_mkdir_p (guestfs_h *g,\n"
14108 " const char *path);\n"
14112 " guestfs_mkdir_p (guestfs_h *g,\n"
14113 " const char *path);\n"
14117 #: ../src/guestfs-actions.pod:4435 ../fish/guestfish-actions.pod:2975
14119 "Create a directory named C<path>, creating any parent directories as "
14120 "necessary. This is like the C<mkdir -p> shell command."
14124 #: ../src/guestfs-actions.pod:4442
14125 msgid "guestfs_mkdtemp"
14126 msgstr "guestfs_mkdtemp"
14129 #: ../src/guestfs-actions.pod:4444
14133 " guestfs_mkdtemp (guestfs_h *g,\n"
14134 " const char *template);\n"
14138 " guestfs_mkdtemp (guestfs_h *g,\n"
14139 " const char *template);\n"
14143 #: ../src/guestfs-actions.pod:4448 ../fish/guestfish-actions.pod:2982
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\"."
14151 #: ../src/guestfs-actions.pod:4453 ../fish/guestfish-actions.pod:2987
14153 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one"
14154 " being suitable for Windows filesystems."
14158 #: ../src/guestfs-actions.pod:4456 ../fish/guestfish-actions.pod:2990
14159 msgid "The name of the temporary directory that was created is returned."
14163 #: ../src/guestfs-actions.pod:4459 ../fish/guestfish-actions.pod:2993
14165 "The temporary directory is created with mode 0700 and is owned by root."
14169 #: ../src/guestfs-actions.pod:4462 ../fish/guestfish-actions.pod:2996
14171 "The caller is responsible for deleting the temporary directory and its "
14172 "contents after use."
14176 #: ../src/guestfs-actions.pod:4465 ../fish/guestfish-actions.pod:2999
14177 msgid "See also: L<mkdtemp(3)>"
14181 #: ../src/guestfs-actions.pod:4472
14182 msgid "guestfs_mke2fs_J"
14183 msgstr "guestfs_mke2fs_J"
14186 #: ../src/guestfs-actions.pod:4474
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"
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"
14206 #: ../src/guestfs-actions.pod:4481 ../fish/guestfish-actions.pod:3005
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:"
14213 #: ../src/guestfs-actions.pod:4485 ../fish/guestfish-actions.pod:3009
14216 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
14219 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
14223 #: ../src/guestfs-actions.pod:4487
14224 msgid "See also C<guestfs_mke2journal>."
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)"
14236 #: ../src/guestfs-actions.pod:4493
14237 msgid "guestfs_mke2fs_JL"
14238 msgstr "guestfs_mke2fs_JL"
14241 #: ../src/guestfs-actions.pod:4495
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"
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"
14261 #: ../src/guestfs-actions.pod:4502 ../fish/guestfish-actions.pod:3017
14263 "This creates an ext2/3/4 filesystem on C<device> with an external journal on"
14264 " the journal labeled C<label>."
14268 #: ../src/guestfs-actions.pod:4505
14269 msgid "See also C<guestfs_mke2journal_L>."
14273 #: ../src/guestfs-actions.pod:4511
14274 msgid "guestfs_mke2fs_JU"
14275 msgstr "guestfs_mke2fs_JU"
14278 #: ../src/guestfs-actions.pod:4513
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"
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"
14298 #: ../src/guestfs-actions.pod:4520 ../fish/guestfish-actions.pod:3026
14300 "This creates an ext2/3/4 filesystem on C<device> with an external journal on"
14301 " the journal with UUID C<uuid>."
14305 #: ../src/guestfs-actions.pod:4523
14306 msgid "See also C<guestfs_mke2journal_U>."
14310 #: ../src/guestfs-actions.pod:4529
14311 msgid "guestfs_mke2journal"
14312 msgstr "guestfs_mke2journal"
14315 #: ../src/guestfs-actions.pod:4531
14319 " guestfs_mke2journal (guestfs_h *g,\n"
14320 " int blocksize,\n"
14321 " const char *device);\n"
14325 " guestfs_mke2journal (guestfs_h *g,\n"
14326 " int blocksize,\n"
14327 " const char *device);\n"
14331 #: ../src/guestfs-actions.pod:4536 ../fish/guestfish-actions.pod:3035
14333 "This creates an ext2 external journal on C<device>. It is equivalent to the"
14338 #: ../src/guestfs-actions.pod:4539 ../fish/guestfish-actions.pod:3038
14341 " mke2fs -O journal_dev -b blocksize device\n"
14346 #: ../src/guestfs-actions.pod:4545
14347 msgid "guestfs_mke2journal_L"
14348 msgstr "guestfs_mke2journal_L"
14351 #: ../src/guestfs-actions.pod:4547
14355 " guestfs_mke2journal_L (guestfs_h *g,\n"
14356 " int blocksize,\n"
14357 " const char *label,\n"
14358 " const char *device);\n"
14362 " guestfs_mke2journal_L (guestfs_h *g,\n"
14363 " int blocksize,\n"
14364 " const char *label,\n"
14365 " const char *device);\n"
14369 #: ../src/guestfs-actions.pod:4553 ../fish/guestfish-actions.pod:3044
14371 "This creates an ext2 external journal on C<device> with label C<label>."
14375 #: ../src/guestfs-actions.pod:4559
14376 msgid "guestfs_mke2journal_U"
14377 msgstr "guestfs_mke2journal_U"
14380 #: ../src/guestfs-actions.pod:4561
14384 " guestfs_mke2journal_U (guestfs_h *g,\n"
14385 " int blocksize,\n"
14386 " const char *uuid,\n"
14387 " const char *device);\n"
14391 " guestfs_mke2journal_U (guestfs_h *g,\n"
14392 " int blocksize,\n"
14393 " const char *uuid,\n"
14394 " const char *device);\n"
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>."
14403 #: ../src/guestfs-actions.pod:4573
14404 msgid "guestfs_mkfifo"
14405 msgstr "guestfs_mkfifo"
14408 #: ../src/guestfs-actions.pod:4575
14412 " guestfs_mkfifo (guestfs_h *g,\n"
14414 " const char *path);\n"
14418 " guestfs_mkfifo (guestfs_h *g,\n"
14420 " const char *path);\n"
14424 #: ../src/guestfs-actions.pod:4580
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>."
14431 #: ../src/guestfs-actions.pod:4590
14432 msgid "guestfs_mkfs"
14433 msgstr "guestfs_mkfs"
14436 #: ../src/guestfs-actions.pod:4592
14440 " guestfs_mkfs (guestfs_h *g,\n"
14441 " const char *fstype,\n"
14442 " const char *device);\n"
14446 " guestfs_mkfs (guestfs_h *g,\n"
14447 " const char *fstype,\n"
14448 " const char *device);\n"
14452 #: ../src/guestfs-actions.pod:4597 ../fish/guestfish-actions.pod:3066
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>."
14459 #: ../src/guestfs-actions.pod:4605
14460 msgid "guestfs_mkfs_b"
14461 msgstr "guestfs_mkfs_b"
14464 #: ../src/guestfs-actions.pod:4607
14468 " guestfs_mkfs_b (guestfs_h *g,\n"
14469 " const char *fstype,\n"
14470 " int blocksize,\n"
14471 " const char *device);\n"
14475 " guestfs_mkfs_b (guestfs_h *g,\n"
14476 " const char *fstype,\n"
14477 " int blocksize,\n"
14478 " const char *device);\n"
14482 #: ../src/guestfs-actions.pod:4613
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."
14490 #: ../src/guestfs-actions.pod:4618 ../src/guestfs-actions.pod:4663
14491 #: ../fish/guestfish-actions.pod:3079 ../fish/guestfish-actions.pod:3106
14493 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
14498 #: ../src/guestfs-actions.pod:4623 ../fish/guestfish-actions.pod:3082
14500 "This function is deprecated. In new code, use the C<mkfs_opts> call "
14505 #: ../src/guestfs-actions.pod:4632
14506 msgid "guestfs_mkfs_opts"
14507 msgstr "guestfs_mkfs_opts"
14510 #: ../src/guestfs-actions.pod:4634
14514 " guestfs_mkfs_opts (guestfs_h *g,\n"
14515 " const char *fstype,\n"
14516 " const char *device,\n"
14521 " guestfs_mkfs_opts (guestfs_h *g,\n"
14522 " const char *fstype,\n"
14523 " const char *device,\n"
14528 #: ../src/guestfs-actions.pod:4645
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"
14539 #: ../src/guestfs-actions.pod:4650 ../fish/guestfish-actions.pod:3093
14541 "This function creates a filesystem on C<device>. The filesystem type is "
14542 "C<fstype>, for example C<ext3>."
14546 #: ../src/guestfs-actions.pod:4657 ../fish/guestfish-actions.pod:3100
14547 msgid "C<blocksize>"
14548 msgstr "C<blocksize>"
14551 #: ../src/guestfs-actions.pod:4659 ../fish/guestfish-actions.pod:3102
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 "
14559 #: ../src/guestfs-actions.pod:4666 ../fish/guestfish-actions.pod:3109
14560 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
14564 #: ../src/guestfs-actions.pod:4668 ../fish/guestfish-actions.pod:3111
14565 msgid "C<features>"
14566 msgstr "C<features>"
14569 #: ../src/guestfs-actions.pod:4670 ../fish/guestfish-actions.pod:3113
14570 msgid "This passes the I<-O> parameter to the external mkfs program."
14574 #: ../src/guestfs-actions.pod:4672 ../fish/guestfish-actions.pod:3115
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."
14581 #: ../src/guestfs-actions.pod:4676 ../fish/guestfish-actions.pod:3119
14583 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem"
14588 #: ../src/guestfs-actions.pod:4679 ../fish/guestfish-actions.pod:3122
14593 #: ../src/guestfs-actions.pod:4681 ../fish/guestfish-actions.pod:3124
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)."
14600 #: ../src/guestfs-actions.pod:4684 ../fish/guestfish-actions.pod:3127
14601 msgid "C<sectorsize>"
14605 #: ../src/guestfs-actions.pod:4686 ../fish/guestfish-actions.pod:3129
14607 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
14608 "sets sector size for ufs filesystem."
14612 #: ../src/guestfs-actions.pod:4693
14613 msgid "(Added in 1.7.19)"
14614 msgstr "(Додано у 1.7.19)"
14617 #: ../src/guestfs-actions.pod:4695
14618 msgid "guestfs_mkfs_opts_va"
14619 msgstr "guestfs_mkfs_opts_va"
14622 #: ../src/guestfs-actions.pod:4697
14626 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
14627 " const char *fstype,\n"
14628 " const char *device,\n"
14629 " va_list args);\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"
14640 #: ../src/guestfs-actions.pod:4703
14641 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
14645 #: ../src/guestfs-actions.pod:4707
14646 msgid "guestfs_mkfs_opts_argv"
14647 msgstr "guestfs_mkfs_opts_argv"
14650 #: ../src/guestfs-actions.pod:4709
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"
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"
14668 #: ../src/guestfs-actions.pod:4715
14669 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
14673 #: ../src/guestfs-actions.pod:4719
14674 msgid "guestfs_mkmountpoint"
14675 msgstr "guestfs_mkmountpoint"
14678 #: ../src/guestfs-actions.pod:4721
14682 " guestfs_mkmountpoint (guestfs_h *g,\n"
14683 " const char *exemptpath);\n"
14687 " guestfs_mkmountpoint (guestfs_h *g,\n"
14688 " const char *exemptpath);\n"
14692 #: ../src/guestfs-actions.pod:4725
14694 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
14695 "that can be used to create extra mountpoints before mounting the first "
14700 #: ../src/guestfs-actions.pod:4729 ../fish/guestfish-actions.pod:3144
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."
14708 #: ../src/guestfs-actions.pod:4733 ../fish/guestfish-actions.pod:3148
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:"
14716 #: ../src/guestfs-actions.pod:4738 ../fish/guestfish-actions.pod:3153
14719 " add-ro Fedora-11-i686-Live.iso\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"
14729 " add-ro Fedora-11-i686-Live.iso\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"
14740 #: ../src/guestfs-actions.pod:4747 ../fish/guestfish-actions.pod:3162
14741 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
14745 #: ../src/guestfs-actions.pod:4749
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."
14753 #: ../src/guestfs-actions.pod:4753
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 "
14762 #: ../src/guestfs-actions.pod:4758 ../fish/guestfish-actions.pod:3173
14764 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
14768 #: ../src/guestfs-actions.pod:4760
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."
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)"
14782 #: ../src/guestfs-actions.pod:4768
14783 msgid "guestfs_mknod"
14787 #: ../src/guestfs-actions.pod:4770
14791 " guestfs_mknod (guestfs_h *g,\n"
14795 " const char *path);\n"
14800 #: ../src/guestfs-actions.pod:4777 ../fish/guestfish-actions.pod:3183
14802 "This call creates block or character special devices, or named pipes "
14807 #: ../src/guestfs-actions.pod:4780 ../fish/guestfish-actions.pod:3186
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."
14815 #: ../src/guestfs-actions.pod:4785
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."
14826 #: ../src/guestfs-actions.pod:4799
14827 msgid "guestfs_mknod_b"
14831 #: ../src/guestfs-actions.pod:4801
14835 " guestfs_mknod_b (guestfs_h *g,\n"
14839 " const char *path);\n"
14844 #: ../src/guestfs-actions.pod:4808
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>."
14852 #: ../src/guestfs-actions.pod:4818
14853 msgid "guestfs_mknod_c"
14857 #: ../src/guestfs-actions.pod:4820
14861 " guestfs_mknod_c (guestfs_h *g,\n"
14865 " const char *path);\n"
14870 #: ../src/guestfs-actions.pod:4827
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>."
14878 #: ../src/guestfs-actions.pod:4837
14879 msgid "guestfs_mkswap"
14883 #: ../src/guestfs-actions.pod:4839
14887 " guestfs_mkswap (guestfs_h *g,\n"
14888 " const char *device);\n"
14893 #: ../src/guestfs-actions.pod:4843 ../fish/guestfish-actions.pod:3225
14894 msgid "Create a swap partition on C<device>."
14898 #: ../src/guestfs-actions.pod:4849
14899 msgid "guestfs_mkswap_L"
14903 #: ../src/guestfs-actions.pod:4851
14907 " guestfs_mkswap_L (guestfs_h *g,\n"
14908 " const char *label,\n"
14909 " const char *device);\n"
14914 #: ../src/guestfs-actions.pod:4856 ../fish/guestfish-actions.pod:3231
14915 msgid "Create a swap partition on C<device> with label C<label>."
14919 #: ../src/guestfs-actions.pod:4858 ../fish/guestfish-actions.pod:3233
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."
14927 #: ../src/guestfs-actions.pod:4866
14928 msgid "guestfs_mkswap_U"
14932 #: ../src/guestfs-actions.pod:4868
14936 " guestfs_mkswap_U (guestfs_h *g,\n"
14937 " const char *uuid,\n"
14938 " const char *device);\n"
14943 #: ../src/guestfs-actions.pod:4873 ../fish/guestfish-actions.pod:3241
14944 msgid "Create a swap partition on C<device> with UUID C<uuid>."
14948 #: ../src/guestfs-actions.pod:4879
14949 msgid "guestfs_mkswap_file"
14953 #: ../src/guestfs-actions.pod:4881
14957 " guestfs_mkswap_file (guestfs_h *g,\n"
14958 " const char *path);\n"
14963 #: ../src/guestfs-actions.pod:4885 ../fish/guestfish-actions.pod:3247
14964 msgid "Create a swap file."
14965 msgstr "Створити файл резервної пам’яті."
14968 #: ../src/guestfs-actions.pod:4887
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>."
14975 #: ../src/guestfs-actions.pod:4894
14976 msgid "guestfs_modprobe"
14980 #: ../src/guestfs-actions.pod:4896
14984 " guestfs_modprobe (guestfs_h *g,\n"
14985 " const char *modulename);\n"
14990 #: ../src/guestfs-actions.pod:4900 ../fish/guestfish-actions.pod:3256
14991 msgid "This loads a kernel module in the appliance."
14995 #: ../src/guestfs-actions.pod:4902 ../fish/guestfish-actions.pod:3258
14997 "The kernel module must have been whitelisted when libguestfs was built (see "
14998 "C<appliance/kmod.whitelist.in> in the source)."
15002 #: ../src/guestfs-actions.pod:4909
15003 msgid "guestfs_mount"
15007 #: ../src/guestfs-actions.pod:4911
15011 " guestfs_mount (guestfs_h *g,\n"
15012 " const char *device,\n"
15013 " const char *mountpoint);\n"
15018 #: ../src/guestfs-actions.pod:4916 ../fish/guestfish-actions.pod:3265
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."
15027 #: ../src/guestfs-actions.pod:4922 ../fish/guestfish-actions.pod:3271
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."
15035 #: ../src/guestfs-actions.pod:4927 ../fish/guestfish-actions.pod:3276
15037 "The mounted filesystem is writable, if we have sufficient permissions on the"
15038 " underlying device."
15042 #: ../src/guestfs-actions.pod:4930
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 "
15055 #: ../src/guestfs-actions.pod:4942 ../fish/guestfish-actions.pod:3289
15057 "This function is deprecated. In new code, use the C<mount_options> call "
15062 #: ../src/guestfs-actions.pod:4951
15063 msgid "guestfs_mount_9p"
15067 #: ../src/guestfs-actions.pod:4953
15071 " guestfs_mount_9p (guestfs_h *g,\n"
15072 " const char *mounttag,\n"
15073 " const char *mountpoint,\n"
15079 #: ../src/guestfs-actions.pod:4964
15082 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
15087 #: ../src/guestfs-actions.pod:4966 ../fish/guestfish-actions.pod:3300
15089 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
15094 #: ../src/guestfs-actions.pod:4969 ../fish/guestfish-actions.pod:3303
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> "
15102 #: ../src/guestfs-actions.pod:4977
15103 msgid "guestfs_mount_9p_va"
15107 #: ../src/guestfs-actions.pod:4979
15111 " guestfs_mount_9p_va (guestfs_h *g,\n"
15112 " const char *mounttag,\n"
15113 " const char *mountpoint,\n"
15114 " va_list args);\n"
15119 #: ../src/guestfs-actions.pod:4985
15120 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
15124 #: ../src/guestfs-actions.pod:4989
15125 msgid "guestfs_mount_9p_argv"
15129 #: ../src/guestfs-actions.pod:4991
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"
15141 #: ../src/guestfs-actions.pod:4997
15142 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
15146 #: ../src/guestfs-actions.pod:5001
15147 msgid "guestfs_mount_loop"
15151 #: ../src/guestfs-actions.pod:5003
15155 " guestfs_mount_loop (guestfs_h *g,\n"
15156 " const char *file,\n"
15157 " const char *mountpoint);\n"
15162 #: ../src/guestfs-actions.pod:5008 ../fish/guestfish-actions.pod:3313
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 "
15170 #: ../src/guestfs-actions.pod:5016
15171 msgid "guestfs_mount_options"
15175 #: ../src/guestfs-actions.pod:5018
15179 " guestfs_mount_options (guestfs_h *g,\n"
15180 " const char *options,\n"
15181 " const char *device,\n"
15182 " const char *mountpoint);\n"
15187 #: ../src/guestfs-actions.pod:5024
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."
15194 #: ../src/guestfs-actions.pod:5028 ../fish/guestfish-actions.pod:3325
15196 "If the C<options> parameter is an empty string, then no options are passed "
15197 "(all options default to whatever the filesystem uses)."
15201 #: ../src/guestfs-actions.pod:5034 ../src/guestfs-actions.pod:5048
15202 #: ../src/guestfs-actions.pod:5065
15203 msgid "(Added in 1.0.10)"
15207 #: ../src/guestfs-actions.pod:5036
15208 msgid "guestfs_mount_ro"
15212 #: ../src/guestfs-actions.pod:5038
15216 " guestfs_mount_ro (guestfs_h *g,\n"
15217 " const char *device,\n"
15218 " const char *mountpoint);\n"
15223 #: ../src/guestfs-actions.pod:5043
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."
15230 #: ../src/guestfs-actions.pod:5050
15231 msgid "guestfs_mount_vfs"
15235 #: ../src/guestfs-actions.pod:5052
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"
15248 #: ../src/guestfs-actions.pod:5059
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 "
15256 #: ../src/guestfs-actions.pod:5067
15257 msgid "guestfs_mountpoints"
15261 #: ../src/guestfs-actions.pod:5069
15265 " guestfs_mountpoints (guestfs_h *g);\n"
15270 #: ../src/guestfs-actions.pod:5072
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."
15278 #: ../src/guestfs-actions.pod:5084
15279 msgid "guestfs_mounts"
15283 #: ../src/guestfs-actions.pod:5086
15287 " guestfs_mounts (guestfs_h *g);\n"
15292 #: ../src/guestfs-actions.pod:5089 ../fish/guestfish-actions.pod:3356
15294 "This returns the list of currently mounted filesystems. It returns the list"
15295 " of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
15299 #: ../src/guestfs-actions.pod:5092 ../fish/guestfish-actions.pod:3359
15300 msgid "Some internal mounts are not shown."
15304 #: ../src/guestfs-actions.pod:5094
15305 msgid "See also: C<guestfs_mountpoints>"
15309 #: ../src/guestfs-actions.pod:5102
15314 #: ../src/guestfs-actions.pod:5104
15318 " guestfs_mv (guestfs_h *g,\n"
15319 " const char *src,\n"
15320 " const char *dest);\n"
15325 #: ../src/guestfs-actions.pod:5109 ../fish/guestfish-actions.pod:3367
15327 "This moves a file from C<src> to C<dest> where C<dest> is either a "
15328 "destination filename or destination directory."
15332 #: ../src/guestfs-actions.pod:5116
15333 msgid "guestfs_ntfs_3g_probe"
15337 #: ../src/guestfs-actions.pod:5118
15341 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
15343 " const char *device);\n"
15348 #: ../src/guestfs-actions.pod:5123 ../fish/guestfish-actions.pod:3374
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)."
15356 #: ../src/guestfs-actions.pod:5127 ../fish/guestfish-actions.pod:3378
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."
15364 #: ../src/guestfs-actions.pod:5131 ../fish/guestfish-actions.pod:3382
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."
15371 #: ../src/guestfs-actions.pod:5137
15372 msgid "(Added in 1.0.43)"
15376 #: ../src/guestfs-actions.pod:5139
15377 msgid "guestfs_ntfsresize"
15381 #: ../src/guestfs-actions.pod:5141
15385 " guestfs_ntfsresize (guestfs_h *g,\n"
15386 " const char *device);\n"
15391 #: ../src/guestfs-actions.pod:5145 ../src/guestfs-actions.pod:5184
15392 #: ../fish/guestfish-actions.pod:3390 ../fish/guestfish-actions.pod:3414
15394 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
15395 "size of the underlying device."
15399 #: ../src/guestfs-actions.pod:5148 ../fish/guestfish-actions.pod:3393
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."
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)>."
15416 #: ../src/guestfs-actions.pod:5160 ../src/guestfs-actions.pod:5250
15417 #: ../fish/guestfish-actions.pod:3403 ../fish/guestfish-actions.pod:3451
15419 "This function is deprecated. In new code, use the C<ntfsresize_opts> call "
15424 #: ../src/guestfs-actions.pod:5169
15425 msgid "guestfs_ntfsresize_opts"
15429 #: ../src/guestfs-actions.pod:5171
15433 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
15434 " const char *device,\n"
15440 #: ../src/guestfs-actions.pod:5181
15443 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
15444 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
15449 #: ../src/guestfs-actions.pod:5193 ../fish/guestfish-actions.pod:3423
15451 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
15452 "resized to fit the container (eg. partition)."
15456 #: ../src/guestfs-actions.pod:5196 ../fish/guestfish-actions.pod:3426
15461 #: ../src/guestfs-actions.pod:5198 ../fish/guestfish-actions.pod:3428
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."
15468 #: ../src/guestfs-actions.pod:5201
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 "
15479 #: ../src/guestfs-actions.pod:5216
15480 msgid "guestfs_ntfsresize_opts_va"
15484 #: ../src/guestfs-actions.pod:5218
15488 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
15489 " const char *device,\n"
15490 " va_list args);\n"
15495 #: ../src/guestfs-actions.pod:5223
15496 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
15500 #: ../src/guestfs-actions.pod:5227
15501 msgid "guestfs_ntfsresize_opts_argv"
15505 #: ../src/guestfs-actions.pod:5229
15509 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
15510 " const char *device,\n"
15511 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
15516 #: ../src/guestfs-actions.pod:5234
15517 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
15521 #: ../src/guestfs-actions.pod:5238
15522 msgid "guestfs_ntfsresize_size"
15526 #: ../src/guestfs-actions.pod:5240
15530 " guestfs_ntfsresize_size (guestfs_h *g,\n"
15531 " const char *device,\n"
15532 " int64_t size);\n"
15537 #: ../src/guestfs-actions.pod:5245
15539 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
15540 "to specify the new size (in bytes) explicitly."
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)"
15551 #: ../src/guestfs-actions.pod:5259
15552 msgid "guestfs_part_add"
15556 #: ../src/guestfs-actions.pod:5261
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"
15569 #: ../src/guestfs-actions.pod:5268
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."
15576 #: ../src/guestfs-actions.pod:5271 ../fish/guestfish-actions.pod:3465
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."
15584 #: ../src/guestfs-actions.pod:5276 ../fish/guestfish-actions.pod:3470
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)."
15592 #: ../src/guestfs-actions.pod:5280
15594 "Creating a partition which covers the whole disk is not so easy. Use "
15595 "C<guestfs_part_disk> to do that."
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)"
15607 #: ../src/guestfs-actions.pod:5287
15608 msgid "guestfs_part_del"
15612 #: ../src/guestfs-actions.pod:5289
15616 " guestfs_part_del (guestfs_h *g,\n"
15617 " const char *device,\n"
15623 #: ../src/guestfs-actions.pod:5294 ../fish/guestfish-actions.pod:3481
15624 msgid "This command deletes the partition numbered C<partnum> on C<device>."
15628 #: ../src/guestfs-actions.pod:5296 ../fish/guestfish-actions.pod:3483
15630 "Note that in the case of MBR partitioning, deleting an extended partition "
15631 "also deletes any logical partitions it contains."
15635 #: ../src/guestfs-actions.pod:5304
15636 msgid "guestfs_part_disk"
15640 #: ../src/guestfs-actions.pod:5306
15644 " guestfs_part_disk (guestfs_h *g,\n"
15645 " const char *device,\n"
15646 " const char *parttype);\n"
15651 #: ../src/guestfs-actions.pod:5311
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 "
15659 #: ../src/guestfs-actions.pod:5315
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>."
15666 #: ../src/guestfs-actions.pod:5325
15667 msgid "guestfs_part_get_bootable"
15671 #: ../src/guestfs-actions.pod:5327
15675 " guestfs_part_get_bootable (guestfs_h *g,\n"
15676 " const char *device,\n"
15682 #: ../src/guestfs-actions.pod:5332 ../fish/guestfish-actions.pod:3505
15684 "This command returns true if the partition C<partnum> on C<device> has the "
15685 "bootable flag set."
15689 #: ../src/guestfs-actions.pod:5335
15690 msgid "See also C<guestfs_part_set_bootable>."
15694 #: ../src/guestfs-actions.pod:5341
15695 msgid "guestfs_part_get_mbr_id"
15699 #: ../src/guestfs-actions.pod:5343
15703 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
15704 " const char *device,\n"
15710 #: ../src/guestfs-actions.pod:5348 ../fish/guestfish-actions.pod:3514
15712 "Returns the MBR type byte (also known as the ID byte) from the numbered "
15713 "partition C<partnum>."
15717 #: ../src/guestfs-actions.pod:5351 ../src/guestfs-actions.pod:5527
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>)."
15725 #: ../src/guestfs-actions.pod:5359
15726 msgid "guestfs_part_get_parttype"
15730 #: ../src/guestfs-actions.pod:5361
15734 " guestfs_part_get_parttype (guestfs_h *g,\n"
15735 " const char *device);\n"
15740 #: ../src/guestfs-actions.pod:5365 ../fish/guestfish-actions.pod:3525
15742 "This command examines the partition table on C<device> and returns the "
15743 "partition table type (format) being used."
15747 #: ../src/guestfs-actions.pod:5368
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."
15755 #: ../src/guestfs-actions.pod:5378
15756 msgid "guestfs_part_init"
15760 #: ../src/guestfs-actions.pod:5380
15764 " guestfs_part_init (guestfs_h *g,\n"
15765 " const char *device,\n"
15766 " const char *parttype);\n"
15771 #: ../src/guestfs-actions.pod:5385 ../fish/guestfish-actions.pod:3537
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)."
15779 #: ../src/guestfs-actions.pod:5389
15781 "Initially there are no partitions. Following this, you should call "
15782 "C<guestfs_part_add> for each partition required."
15786 #: ../src/guestfs-actions.pod:5392 ../fish/guestfish-actions.pod:3544
15787 msgid "Possible values for C<parttype> are:"
15791 #: ../src/guestfs-actions.pod:5396 ../fish/guestfish-actions.pod:3548
15792 msgid "B<efi> | B<gpt>"
15796 #: ../src/guestfs-actions.pod:5398 ../fish/guestfish-actions.pod:3550
15797 msgid "Intel EFI / GPT partition table."
15801 #: ../src/guestfs-actions.pod:5400 ../fish/guestfish-actions.pod:3552
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."
15809 #: ../src/guestfs-actions.pod:5404 ../fish/guestfish-actions.pod:3556
15810 msgid "B<mbr> | B<msdos>"
15814 #: ../src/guestfs-actions.pod:5406 ../fish/guestfish-actions.pod:3558
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>."
15822 #: ../src/guestfs-actions.pod:5413 ../fish/guestfish-actions.pod:3565
15824 "Other partition table types that may work but are not supported include:"
15828 #: ../src/guestfs-actions.pod:5418 ../fish/guestfish-actions.pod:3570
15833 #: ../src/guestfs-actions.pod:5420 ../fish/guestfish-actions.pod:3572
15834 msgid "AIX disk labels."
15835 msgstr "Мітки дисків AIX."
15838 #: ../src/guestfs-actions.pod:5422 ../fish/guestfish-actions.pod:3574
15839 msgid "B<amiga> | B<rdb>"
15840 msgstr "B<amiga> | B<rdb>"
15843 #: ../src/guestfs-actions.pod:5424 ../fish/guestfish-actions.pod:3576
15844 msgid "Amiga \"Rigid Disk Block\" format."
15845 msgstr "Формат \"Rigid Disk Block\" Amiga."
15848 #: ../src/guestfs-actions.pod:5426 ../fish/guestfish-actions.pod:3578
15853 #: ../src/guestfs-actions.pod:5428 ../fish/guestfish-actions.pod:3580
15854 msgid "BSD disk labels."
15855 msgstr "Мітки дисків BSD."
15858 #: ../src/guestfs-actions.pod:5430 ../fish/guestfish-actions.pod:3582
15863 #: ../src/guestfs-actions.pod:5432 ../fish/guestfish-actions.pod:3584
15864 msgid "DASD, used on IBM mainframes."
15865 msgstr "DASD, використовувалися у мейнфреймах IBM."
15868 #: ../src/guestfs-actions.pod:5434 ../fish/guestfish-actions.pod:3586
15873 #: ../src/guestfs-actions.pod:5436 ../fish/guestfish-actions.pod:3588
15874 msgid "MIPS/SGI volumes."
15875 msgstr "Томи MIPS/SGI."
15878 #: ../src/guestfs-actions.pod:5438 ../fish/guestfish-actions.pod:3590
15883 #: ../src/guestfs-actions.pod:5440 ../fish/guestfish-actions.pod:3592
15884 msgid "Old Mac partition format. Modern Macs use C<gpt>."
15886 "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
15889 #: ../src/guestfs-actions.pod:5442 ../fish/guestfish-actions.pod:3594
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, поширений у Японії."
15899 #: ../src/guestfs-actions.pod:5446 ../fish/guestfish-actions.pod:3598
15904 #: ../src/guestfs-actions.pod:5448 ../fish/guestfish-actions.pod:3600
15905 msgid "Sun disk labels."
15906 msgstr "Мітки дисків Sun."
15909 #: ../src/guestfs-actions.pod:5456
15910 msgid "guestfs_part_list"
15911 msgstr "guestfs_part_list"
15914 #: ../src/guestfs-actions.pod:5458
15917 " struct guestfs_partition_list *\n"
15918 " guestfs_part_list (guestfs_h *g,\n"
15919 " const char *device);\n"
15922 " struct guestfs_partition_list *\n"
15923 " guestfs_part_list (guestfs_h *g,\n"
15924 " const char *device);\n"
15928 #: ../src/guestfs-actions.pod:5462 ../fish/guestfish-actions.pod:3608
15930 "This command parses the partition table on C<device> and returns the list of"
15931 " partitions found."
15935 #: ../src/guestfs-actions.pod:5465 ../fish/guestfish-actions.pod:3611
15936 msgid "The fields in the returned structure are:"
15940 #: ../src/guestfs-actions.pod:5469 ../fish/guestfish-actions.pod:3615
15941 msgid "B<part_num>"
15942 msgstr "B<part_num>"
15945 #: ../src/guestfs-actions.pod:5471 ../fish/guestfish-actions.pod:3617
15946 msgid "Partition number, counting from 1."
15950 #: ../src/guestfs-actions.pod:5473 ../fish/guestfish-actions.pod:3619
15951 msgid "B<part_start>"
15952 msgstr "B<part_start>"
15955 #: ../src/guestfs-actions.pod:5475
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>."
15962 #: ../src/guestfs-actions.pod:5478 ../fish/guestfish-actions.pod:3624
15963 msgid "B<part_end>"
15964 msgstr "B<part_end>"
15967 #: ../src/guestfs-actions.pod:5480 ../fish/guestfish-actions.pod:3626
15968 msgid "End of the partition in bytes."
15972 #: ../src/guestfs-actions.pod:5482 ../fish/guestfish-actions.pod:3628
15973 msgid "B<part_size>"
15974 msgstr "B<part_size>"
15977 #: ../src/guestfs-actions.pod:5484 ../fish/guestfish-actions.pod:3630
15978 msgid "Size of the partition in bytes."
15982 #: ../src/guestfs-actions.pod:5488
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 "
15990 #: ../src/guestfs-actions.pod:5494
15991 msgid "guestfs_part_set_bootable"
15995 #: ../src/guestfs-actions.pod:5496
15999 " guestfs_part_set_bootable (guestfs_h *g,\n"
16000 " const char *device,\n"
16002 " int bootable);\n"
16007 #: ../src/guestfs-actions.pod:5502 ../fish/guestfish-actions.pod:3638
16009 "This sets the bootable flag on partition numbered C<partnum> on device "
16010 "C<device>. Note that partitions are numbered from 1."
16014 #: ../src/guestfs-actions.pod:5505 ../fish/guestfish-actions.pod:3641
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 "
16022 #: ../src/guestfs-actions.pod:5513
16023 msgid "guestfs_part_set_mbr_id"
16027 #: ../src/guestfs-actions.pod:5515
16031 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
16032 " const char *device,\n"
16039 #: ../src/guestfs-actions.pod:5521 ../fish/guestfish-actions.pod:3649
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."
16048 #: ../src/guestfs-actions.pod:5535
16049 msgid "guestfs_part_set_name"
16053 #: ../src/guestfs-actions.pod:5537
16057 " guestfs_part_set_name (guestfs_h *g,\n"
16058 " const char *device,\n"
16060 " const char *name);\n"
16065 #: ../src/guestfs-actions.pod:5543 ../fish/guestfish-actions.pod:3663
16067 "This sets the partition name on partition numbered C<partnum> on device "
16068 "C<device>. Note that partitions are numbered from 1."
16072 #: ../src/guestfs-actions.pod:5546 ../fish/guestfish-actions.pod:3666
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."
16079 #: ../src/guestfs-actions.pod:5553
16080 msgid "guestfs_part_to_dev"
16084 #: ../src/guestfs-actions.pod:5555
16088 " guestfs_part_to_dev (guestfs_h *g,\n"
16089 " const char *partition);\n"
16094 #: ../src/guestfs-actions.pod:5559 ../fish/guestfish-actions.pod:3673
16096 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
16097 "partition number, returning the device name (eg. \"/dev/sdb\")."
16101 #: ../src/guestfs-actions.pod:5563
16103 "The named partition must exist, for example as a string returned from "
16104 "C<guestfs_list_partitions>."
16108 #: ../src/guestfs-actions.pod:5571
16109 msgid "guestfs_ping_daemon"
16113 #: ../src/guestfs-actions.pod:5573
16117 " guestfs_ping_daemon (guestfs_h *g);\n"
16122 #: ../src/guestfs-actions.pod:5576 ../fish/guestfish-actions.pod:3684
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 "
16131 #: ../src/guestfs-actions.pod:5585
16132 msgid "guestfs_pread"
16136 #: ../src/guestfs-actions.pod:5587
16140 " guestfs_pread (guestfs_h *g,\n"
16141 " const char *path,\n"
16143 " int64_t offset,\n"
16144 " size_t *size_r);\n"
16149 #: ../src/guestfs-actions.pod:5594 ../fish/guestfish-actions.pod:3693
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>."
16156 #: ../src/guestfs-actions.pod:5597 ../src/guestfs-actions.pod:5623
16157 #: ../fish/guestfish-actions.pod:3696 ../fish/guestfish-actions.pod:3711
16159 "This may read fewer bytes than requested. For further details see the "
16160 "L<pread(2)> system call."
16164 #: ../src/guestfs-actions.pod:5600
16165 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
16169 #: ../src/guestfs-actions.pod:5611
16170 msgid "guestfs_pread_device"
16174 #: ../src/guestfs-actions.pod:5613
16178 " guestfs_pread_device (guestfs_h *g,\n"
16179 " const char *device,\n"
16181 " int64_t offset,\n"
16182 " size_t *size_r);\n"
16187 #: ../src/guestfs-actions.pod:5620 ../fish/guestfish-actions.pod:3708
16189 "This command lets you read part of a file. It reads C<count> bytes of "
16190 "C<device>, starting at C<offset>."
16194 #: ../src/guestfs-actions.pod:5626
16195 msgid "See also C<guestfs_pread>."
16199 #: ../src/guestfs-actions.pod:5635
16200 msgid "(Added in 1.5.21)"
16204 #: ../src/guestfs-actions.pod:5637
16205 msgid "guestfs_pvcreate"
16209 #: ../src/guestfs-actions.pod:5639
16213 " guestfs_pvcreate (guestfs_h *g,\n"
16214 " const char *device);\n"
16219 #: ../src/guestfs-actions.pod:5643 ../fish/guestfish-actions.pod:3723
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>."
16226 #: ../src/guestfs-actions.pod:5651
16227 msgid "guestfs_pvremove"
16231 #: ../src/guestfs-actions.pod:5653
16235 " guestfs_pvremove (guestfs_h *g,\n"
16236 " const char *device);\n"
16241 #: ../src/guestfs-actions.pod:5657 ../fish/guestfish-actions.pod:3731
16243 "This wipes a physical volume C<device> so that LVM will no longer recognise "
16248 #: ../src/guestfs-actions.pod:5660 ../fish/guestfish-actions.pod:3734
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"
16256 #: ../src/guestfs-actions.pod:5668
16257 msgid "guestfs_pvresize"
16261 #: ../src/guestfs-actions.pod:5670
16265 " guestfs_pvresize (guestfs_h *g,\n"
16266 " const char *device);\n"
16271 #: ../src/guestfs-actions.pod:5674 ../fish/guestfish-actions.pod:3742
16273 "This resizes (expands or shrinks) an existing LVM physical volume to match "
16274 "the new size of the underlying device."
16278 #: ../src/guestfs-actions.pod:5681
16279 msgid "guestfs_pvresize_size"
16283 #: ../src/guestfs-actions.pod:5683
16287 " guestfs_pvresize_size (guestfs_h *g,\n"
16288 " const char *device,\n"
16289 " int64_t size);\n"
16294 #: ../src/guestfs-actions.pod:5688
16296 "This command is the same as C<guestfs_pvresize> except that it allows you to"
16297 " specify the new size (in bytes) explicitly."
16301 #: ../src/guestfs-actions.pod:5695
16302 msgid "guestfs_pvs"
16306 #: ../src/guestfs-actions.pod:5697
16310 " guestfs_pvs (guestfs_h *g);\n"
16315 #: ../src/guestfs-actions.pod:5700 ../fish/guestfish-actions.pod:3756
16317 "List all the physical volumes detected. This is the equivalent of the "
16318 "L<pvs(8)> command."
16322 #: ../src/guestfs-actions.pod:5703 ../fish/guestfish-actions.pod:3759
16324 "This returns a list of just the device names that contain PVs (eg. "
16329 #: ../src/guestfs-actions.pod:5706
16330 msgid "See also C<guestfs_pvs_full>."
16334 #: ../src/guestfs-actions.pod:5714
16335 msgid "guestfs_pvs_full"
16339 #: ../src/guestfs-actions.pod:5716
16342 " struct guestfs_lvm_pv_list *\n"
16343 " guestfs_pvs_full (guestfs_h *g);\n"
16348 #: ../src/guestfs-actions.pod:5719 ../fish/guestfish-actions.pod:3768
16350 "List all the physical volumes detected. This is the equivalent of the "
16351 "L<pvs(8)> command. The \"full\" version includes all fields."
16355 #: ../src/guestfs-actions.pod:5722
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 "
16363 #: ../src/guestfs-actions.pod:5728
16364 msgid "guestfs_pvuuid"
16368 #: ../src/guestfs-actions.pod:5730
16372 " guestfs_pvuuid (guestfs_h *g,\n"
16373 " const char *device);\n"
16378 #: ../src/guestfs-actions.pod:5734 ../fish/guestfish-actions.pod:3775
16379 msgid "This command returns the UUID of the LVM PV C<device>."
16383 #: ../src/guestfs-actions.pod:5741
16384 msgid "guestfs_pwrite"
16388 #: ../src/guestfs-actions.pod:5743
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"
16401 #: ../src/guestfs-actions.pod:5750 ../fish/guestfish-actions.pod:3781
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>."
16408 #: ../src/guestfs-actions.pod:5753 ../fish/guestfish-actions.pod:3784
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 "
16418 #: ../src/guestfs-actions.pod:5759
16419 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
16423 #: ../src/guestfs-actions.pod:5768
16424 msgid "guestfs_pwrite_device"
16428 #: ../src/guestfs-actions.pod:5770
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"
16441 #: ../src/guestfs-actions.pod:5777 ../fish/guestfish-actions.pod:3799
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>."
16448 #: ../src/guestfs-actions.pod:5780 ../fish/guestfish-actions.pod:3802
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 "
16457 #: ../src/guestfs-actions.pod:5785
16458 msgid "See also C<guestfs_pwrite>."
16462 #: ../src/guestfs-actions.pod:5792
16463 msgid "(Added in 1.5.20)"
16467 #: ../src/guestfs-actions.pod:5794
16468 msgid "guestfs_read_file"
16472 #: ../src/guestfs-actions.pod:5796
16476 " guestfs_read_file (guestfs_h *g,\n"
16477 " const char *path,\n"
16478 " size_t *size_r);\n"
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."
16488 #: ../src/guestfs-actions.pod:5804
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."
16496 #: ../src/guestfs-actions.pod:5816
16497 msgid "(Added in 1.0.63)"
16501 #: ../src/guestfs-actions.pod:5818
16502 msgid "guestfs_read_lines"
16506 #: ../src/guestfs-actions.pod:5820
16510 " guestfs_read_lines (guestfs_h *g,\n"
16511 " const char *path);\n"
16516 #: ../src/guestfs-actions.pod:5826 ../fish/guestfish-actions.pod:3833
16518 "The file contents are returned as a list of lines. Trailing C<LF> and "
16519 "C<CRLF> character sequences are I<not> returned."
16523 #: ../src/guestfs-actions.pod:5829
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."
16532 #: ../src/guestfs-actions.pod:5840
16533 msgid "guestfs_readdir"
16537 #: ../src/guestfs-actions.pod:5842
16540 " struct guestfs_dirent_list *\n"
16541 " guestfs_readdir (guestfs_h *g,\n"
16542 " const char *dir);\n"
16547 #: ../src/guestfs-actions.pod:5846 ../fish/guestfish-actions.pod:3845
16548 msgid "This returns the list of directory entries in directory C<dir>."
16552 #: ../src/guestfs-actions.pod:5848 ../fish/guestfish-actions.pod:3847
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 "
16560 #: ../src/guestfs-actions.pod:5852 ../fish/guestfish-actions.pod:3851
16562 "Also this call returns basic file type information about each file. The "
16563 "C<ftyp> field will contain one of the following characters:"
16567 #: ../src/guestfs-actions.pod:5857 ../fish/guestfish-actions.pod:3856
16572 #: ../src/guestfs-actions.pod:5859 ../fish/guestfish-actions.pod:3858
16573 msgid "Block special"
16574 msgstr "Блоковий особливий"
16577 #: ../src/guestfs-actions.pod:5861 ../fish/guestfish-actions.pod:3860
16582 #: ../src/guestfs-actions.pod:5863 ../fish/guestfish-actions.pod:3862
16583 msgid "Char special"
16584 msgstr "Символьний особливий"
16587 #: ../src/guestfs-actions.pod:5865 ../fish/guestfish-actions.pod:3864
16592 #: ../src/guestfs-actions.pod:5867 ../fish/guestfish-actions.pod:3866
16597 #: ../src/guestfs-actions.pod:5869 ../fish/guestfish-actions.pod:3868
16602 #: ../src/guestfs-actions.pod:5871 ../fish/guestfish-actions.pod:3870
16603 msgid "FIFO (named pipe)"
16604 msgstr "FIFO (іменований канал)"
16607 #: ../src/guestfs-actions.pod:5873 ../fish/guestfish-actions.pod:3872
16612 #: ../src/guestfs-actions.pod:5875 ../fish/guestfish-actions.pod:3874
16613 msgid "Symbolic link"
16614 msgstr "Символічне посилання"
16617 #: ../src/guestfs-actions.pod:5877 ../fish/guestfish-actions.pod:3876
16622 #: ../src/guestfs-actions.pod:5879 ../fish/guestfish-actions.pod:3878
16623 msgid "Regular file"
16624 msgstr "Звичайний файл"
16627 #: ../src/guestfs-actions.pod:5881 ../fish/guestfish-actions.pod:3880
16632 #: ../src/guestfs-actions.pod:5883 ../fish/guestfish-actions.pod:3882
16637 #: ../src/guestfs-actions.pod:5885 ../fish/guestfish-actions.pod:3884
16642 #: ../src/guestfs-actions.pod:5887 ../fish/guestfish-actions.pod:3886
16643 msgid "Unknown file type"
16644 msgstr "Невідомий тип файла"
16647 #: ../src/guestfs-actions.pod:5889 ../fish/guestfish-actions.pod:3888
16652 #: ../src/guestfs-actions.pod:5891 ../fish/guestfish-actions.pod:3890
16654 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
16658 #: ../src/guestfs-actions.pod:5896
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>."
16666 #: ../src/guestfs-actions.pod:5900
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 "
16674 #: ../src/guestfs-actions.pod:5906
16675 msgid "guestfs_readlink"
16679 #: ../src/guestfs-actions.pod:5908
16683 " guestfs_readlink (guestfs_h *g,\n"
16684 " const char *path);\n"
16689 #: ../src/guestfs-actions.pod:5912 ../fish/guestfish-actions.pod:3903
16690 msgid "This command reads the target of a symbolic link."
16694 #: ../src/guestfs-actions.pod:5919
16695 msgid "guestfs_readlinklist"
16699 #: ../src/guestfs-actions.pod:5921
16703 " guestfs_readlinklist (guestfs_h *g,\n"
16704 " const char *path,\n"
16705 " char *const *names);\n"
16710 #: ../src/guestfs-actions.pod:5926 ../fish/guestfish-actions.pod:3909
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 "
16718 #: ../src/guestfs-actions.pod:5930 ../fish/guestfish-actions.pod:3913
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."
16725 #: ../src/guestfs-actions.pod:5934 ../fish/guestfish-actions.pod:3917
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)."
16735 #: ../src/guestfs-actions.pod:5941 ../fish/guestfish-actions.pod:3924
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."
16744 #: ../src/guestfs-actions.pod:5954
16745 msgid "guestfs_realpath"
16749 #: ../src/guestfs-actions.pod:5956
16753 " guestfs_realpath (guestfs_h *g,\n"
16754 " const char *path);\n"
16759 #: ../src/guestfs-actions.pod:5960 ../fish/guestfish-actions.pod:3935
16761 "Return the canonicalized absolute pathname of C<path>. The returned path "
16762 "has no C<.>, C<..> or symbolic link path elements."
16766 #: ../src/guestfs-actions.pod:5968
16767 msgid "guestfs_removexattr"
16771 #: ../src/guestfs-actions.pod:5970
16775 " guestfs_removexattr (guestfs_h *g,\n"
16776 " const char *xattr,\n"
16777 " const char *path);\n"
16782 #: ../src/guestfs-actions.pod:5975 ../fish/guestfish-actions.pod:3942
16784 "This call removes the extended attribute named C<xattr> of the file C<path>."
16788 #: ../src/guestfs-actions.pod:5978
16789 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
16793 #: ../src/guestfs-actions.pod:5984
16794 msgid "guestfs_resize2fs"
16798 #: ../src/guestfs-actions.pod:5986
16802 " guestfs_resize2fs (guestfs_h *g,\n"
16803 " const char *device);\n"
16808 #: ../src/guestfs-actions.pod:5990 ../fish/guestfish-actions.pod:3951
16810 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
16811 "underlying device."
16815 #: ../src/guestfs-actions.pod:5993
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."
16824 #: ../src/guestfs-actions.pod:6003
16825 msgid "guestfs_resize2fs_M"
16829 #: ../src/guestfs-actions.pod:6005
16833 " guestfs_resize2fs_M (guestfs_h *g,\n"
16834 " const char *device);\n"
16839 #: ../src/guestfs-actions.pod:6009
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."
16847 #: ../src/guestfs-actions.pod:6013
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."
16856 #: ../src/guestfs-actions.pod:6022
16857 msgid "guestfs_resize2fs_size"
16861 #: ../src/guestfs-actions.pod:6024
16865 " guestfs_resize2fs_size (guestfs_h *g,\n"
16866 " const char *device,\n"
16867 " int64_t size);\n"
16872 #: ../src/guestfs-actions.pod:6029
16874 "This command is the same as C<guestfs_resize2fs> except that it allows you "
16875 "to specify the new size (in bytes) explicitly."
16879 #: ../src/guestfs-actions.pod:6036
16884 #: ../src/guestfs-actions.pod:6038
16888 " guestfs_rm (guestfs_h *g,\n"
16889 " const char *path);\n"
16894 #: ../src/guestfs-actions.pod:6042 ../fish/guestfish-actions.pod:3984
16895 msgid "Remove the single file C<path>."
16899 #: ../src/guestfs-actions.pod:6048
16900 msgid "guestfs_rm_rf"
16904 #: ../src/guestfs-actions.pod:6050
16908 " guestfs_rm_rf (guestfs_h *g,\n"
16909 " const char *path);\n"
16914 #: ../src/guestfs-actions.pod:6054 ../fish/guestfish-actions.pod:3990
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."
16921 #: ../src/guestfs-actions.pod:6062
16922 msgid "guestfs_rmdir"
16926 #: ../src/guestfs-actions.pod:6064
16930 " guestfs_rmdir (guestfs_h *g,\n"
16931 " const char *path);\n"
16936 #: ../src/guestfs-actions.pod:6068 ../fish/guestfish-actions.pod:3998
16937 msgid "Remove the single directory C<path>."
16941 #: ../src/guestfs-actions.pod:6074
16942 msgid "guestfs_rmmountpoint"
16946 #: ../src/guestfs-actions.pod:6076
16950 " guestfs_rmmountpoint (guestfs_h *g,\n"
16951 " const char *exemptpath);\n"
16956 #: ../src/guestfs-actions.pod:6080
16958 "This calls removes a mountpoint that was previously created with "
16959 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
16963 #: ../src/guestfs-actions.pod:6088
16964 msgid "guestfs_scrub_device"
16968 #: ../src/guestfs-actions.pod:6090
16972 " guestfs_scrub_device (guestfs_h *g,\n"
16973 " const char *device);\n"
16978 #: ../src/guestfs-actions.pod:6094 ../fish/guestfish-actions.pod:4012
16980 "This command writes patterns over C<device> to make data retrieval more "
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
16989 "It is an interface to the L<scrub(1)> program. See that manual page for "
16994 #: ../src/guestfs-actions.pod:6105 ../src/guestfs-actions.pod:6123
16995 #: ../src/guestfs-actions.pod:6142
16996 msgid "(Added in 1.0.52)"
17000 #: ../src/guestfs-actions.pod:6107
17001 msgid "guestfs_scrub_file"
17005 #: ../src/guestfs-actions.pod:6109
17009 " guestfs_scrub_file (guestfs_h *g,\n"
17010 " const char *file);\n"
17015 #: ../src/guestfs-actions.pod:6113 ../fish/guestfish-actions.pod:4025
17017 "This command writes patterns over a file to make data retrieval more "
17022 #: ../src/guestfs-actions.pod:6116 ../fish/guestfish-actions.pod:4028
17023 msgid "The file is I<removed> after scrubbing."
17027 #: ../src/guestfs-actions.pod:6125
17028 msgid "guestfs_scrub_freespace"
17032 #: ../src/guestfs-actions.pod:6127
17036 " guestfs_scrub_freespace (guestfs_h *g,\n"
17037 " const char *dir);\n"
17042 #: ../src/guestfs-actions.pod:6131
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>."
17051 #: ../src/guestfs-actions.pod:6144
17052 msgid "guestfs_set_append"
17056 #: ../src/guestfs-actions.pod:6146
17060 " guestfs_set_append (guestfs_h *g,\n"
17061 " const char *append);\n"
17066 #: ../src/guestfs-actions.pod:6150 ../fish/guestfish-actions.pod:4052
17068 "This function is used to add additional options to the guest kernel command "
17073 #: ../src/guestfs-actions.pod:6153 ../fish/guestfish-actions.pod:4055
17075 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
17076 "environment variable."
17080 #: ../src/guestfs-actions.pod:6156 ../fish/guestfish-actions.pod:4058
17082 "Setting C<append> to C<NULL> means I<no> additional options are passed "
17083 "(libguestfs always adds a few of its own)."
17087 #: ../src/guestfs-actions.pod:6163
17088 msgid "guestfs_set_attach_method"
17092 #: ../src/guestfs-actions.pod:6165
17096 " guestfs_set_attach_method (guestfs_h *g,\n"
17097 " const char *attachmethod);\n"
17102 #: ../src/guestfs-actions.pod:6169 ../fish/guestfish-actions.pod:4067
17104 "Set the method that libguestfs uses to connect to the back end guestfsd "
17105 "daemon. Possible methods are:"
17109 #: ../src/guestfs-actions.pod:6176 ../fish/guestfish-actions.pod:4074
17111 "Launch an appliance and connect to it. This is the ordinary method and the "
17116 #: ../src/guestfs-actions.pod:6179 ../fish/guestfish-actions.pod:4077
17117 msgid "C<unix:I<path>>"
17118 msgstr "C<unix:I<шлях>>"
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<шлях>."
17126 #: ../src/guestfs-actions.pod:6183 ../fish/guestfish-actions.pod:4081
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>."
17134 #: ../src/guestfs-actions.pod:6193
17135 msgid "guestfs_set_autosync"
17139 #: ../src/guestfs-actions.pod:6195
17143 " guestfs_set_autosync (guestfs_h *g,\n"
17144 " int autosync);\n"
17149 #: ../src/guestfs-actions.pod:6199 ../fish/guestfish-actions.pod:4093
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)."
17157 #: ../src/guestfs-actions.pod:6204 ../fish/guestfish-actions.pod:4098
17159 "This is enabled by default (since libguestfs 1.5.24, previously it was "
17160 "disabled by default)."
17164 #: ../src/guestfs-actions.pod:6211
17165 msgid "guestfs_set_direct"
17169 #: ../src/guestfs-actions.pod:6213
17173 " guestfs_set_direct (guestfs_h *g,\n"
17179 #: ../src/guestfs-actions.pod:6217 ../fish/guestfish-actions.pod:4107
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."
17186 #: ../src/guestfs-actions.pod:6221
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 "
17194 #: ../src/guestfs-actions.pod:6225 ../fish/guestfish-actions.pod:4115
17196 "You probably don't want to use this unless you know what you are doing."
17200 #: ../src/guestfs-actions.pod:6228 ../fish/guestfish-actions.pod:4118
17201 msgid "The default is disabled."
17205 #: ../src/guestfs-actions.pod:6234
17206 msgid "guestfs_set_e2label"
17210 #: ../src/guestfs-actions.pod:6236
17214 " guestfs_set_e2label (guestfs_h *g,\n"
17215 " const char *device,\n"
17216 " const char *label);\n"
17221 #: ../src/guestfs-actions.pod:6241 ../fish/guestfish-actions.pod:4124
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."
17228 #: ../src/guestfs-actions.pod:6245
17230 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
17231 "the existing label on a filesystem."
17235 #: ../src/guestfs-actions.pod:6252
17236 msgid "guestfs_set_e2uuid"
17240 #: ../src/guestfs-actions.pod:6254
17244 " guestfs_set_e2uuid (guestfs_h *g,\n"
17245 " const char *device,\n"
17246 " const char *uuid);\n"
17251 #: ../src/guestfs-actions.pod:6259 ../fish/guestfish-actions.pod:4135
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."
17259 #: ../src/guestfs-actions.pod:6264
17261 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
17262 "the existing UUID of a filesystem."
17266 #: ../src/guestfs-actions.pod:6271
17267 msgid "guestfs_set_memsize"
17271 #: ../src/guestfs-actions.pod:6273
17275 " guestfs_set_memsize (guestfs_h *g,\n"
17281 #: ../src/guestfs-actions.pod:6277
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>."
17288 #: ../src/guestfs-actions.pod:6281 ../fish/guestfish-actions.pod:4153
17290 "You can also change this by setting the environment variable "
17291 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
17295 #: ../src/guestfs-actions.pod:6292
17296 msgid "guestfs_set_network"
17300 #: ../src/guestfs-actions.pod:6294
17304 " guestfs_set_network (guestfs_h *g,\n"
17310 #: ../src/guestfs-actions.pod:6298 ../fish/guestfish-actions.pod:4166
17312 "If C<network> is true, then the network is enabled in the libguestfs "
17313 "appliance. The default is false."
17317 #: ../src/guestfs-actions.pod:6301 ../fish/guestfish-actions.pod:4169
17319 "This affects whether commands are able to access the network (see "
17320 "L<guestfs(3)/RUNNING COMMANDS>)."
17324 #: ../src/guestfs-actions.pod:6304
17326 "You must call this before calling C<guestfs_launch>, otherwise it has no "
17331 #: ../src/guestfs-actions.pod:6311
17332 msgid "guestfs_set_path"
17336 #: ../src/guestfs-actions.pod:6313
17340 " guestfs_set_path (guestfs_h *g,\n"
17341 " const char *searchpath);\n"
17346 #: ../src/guestfs-actions.pod:6317 ../fish/guestfish-actions.pod:4181
17347 msgid "Set the path that libguestfs searches for kernel and initrd.img."
17351 #: ../src/guestfs-actions.pod:6319 ../fish/guestfish-actions.pod:4183
17353 "The default is C<$libdir/guestfs> unless overridden by setting "
17354 "C<LIBGUESTFS_PATH> environment variable."
17358 #: ../src/guestfs-actions.pod:6322 ../fish/guestfish-actions.pod:4186
17359 msgid "Setting C<path> to C<NULL> restores the default path."
17363 #: ../src/guestfs-actions.pod:6328
17364 msgid "guestfs_set_pgroup"
17368 #: ../src/guestfs-actions.pod:6330
17372 " guestfs_set_pgroup (guestfs_h *g,\n"
17378 #: ../src/guestfs-actions.pod:6334 ../fish/guestfish-actions.pod:4194
17380 "If C<pgroup> is true, child processes are placed into their own process "
17385 #: ../src/guestfs-actions.pod:6337 ../fish/guestfish-actions.pod:4197
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."
17392 #: ../src/guestfs-actions.pod:6340 ../fish/guestfish-actions.pod:4200
17394 "The default for this flag is false, because usually you want C<^C> to kill "
17399 #: ../src/guestfs-actions.pod:6345
17400 msgid "guestfs_set_qemu"
17404 #: ../src/guestfs-actions.pod:6347
17408 " guestfs_set_qemu (guestfs_h *g,\n"
17409 " const char *qemu);\n"
17414 #: ../src/guestfs-actions.pod:6351 ../fish/guestfish-actions.pod:4209
17415 msgid "Set the qemu binary that we will use."
17419 #: ../src/guestfs-actions.pod:6353 ../fish/guestfish-actions.pod:4211
17421 "The default is chosen when the library was compiled by the configure script."
17425 #: ../src/guestfs-actions.pod:6356 ../fish/guestfish-actions.pod:4214
17427 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
17432 #: ../src/guestfs-actions.pod:6359 ../fish/guestfish-actions.pod:4217
17433 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
17437 #: ../src/guestfs-actions.pod:6361 ../fish/guestfish-actions.pod:4219
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."
17448 #: ../src/guestfs-actions.pod:6373
17449 msgid "guestfs_set_recovery_proc"
17453 #: ../src/guestfs-actions.pod:6375
17457 " guestfs_set_recovery_proc (guestfs_h *g,\n"
17458 " int recoveryproc);\n"
17463 #: ../src/guestfs-actions.pod:6379
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 "
17472 #: ../src/guestfs-actions.pod:6384
17474 "This only has any effect if called before C<guestfs_launch>, and the default"
17479 #: ../src/guestfs-actions.pod:6387 ../fish/guestfish-actions.pod:4241
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."
17488 #: ../src/guestfs-actions.pod:6397
17489 msgid "guestfs_set_selinux"
17493 #: ../src/guestfs-actions.pod:6399
17497 " guestfs_set_selinux (guestfs_h *g,\n"
17503 #: ../src/guestfs-actions.pod:6403 ../fish/guestfish-actions.pod:4253
17505 "This sets the selinux flag that is passed to the appliance at boot time. "
17506 "The default is C<selinux=0> (disabled)."
17510 #: ../src/guestfs-actions.pod:6406 ../fish/guestfish-actions.pod:4256
17512 "Note that if SELinux is enabled, it is always in Permissive mode "
17513 "(C<enforcing=0>)."
17517 #: ../src/guestfs-actions.pod:6416
17518 msgid "guestfs_set_trace"
17522 #: ../src/guestfs-actions.pod:6418
17526 " guestfs_set_trace (guestfs_h *g,\n"
17532 #: ../src/guestfs-actions.pod:6422 ../fish/guestfish-actions.pod:4268
17534 "If the command trace flag is set to 1, then libguestfs calls, parameters and"
17535 " return values are traced."
17539 #: ../src/guestfs-actions.pod:6425 ../fish/guestfish-actions.pod:4271
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."
17546 #: ../src/guestfs-actions.pod:6429 ../fish/guestfish-actions.pod:4275
17548 "Command traces are disabled unless the environment variable "
17549 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
17553 #: ../src/guestfs-actions.pod:6432
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>)."
17560 #: ../src/guestfs-actions.pod:6440
17561 msgid "guestfs_set_verbose"
17565 #: ../src/guestfs-actions.pod:6442
17569 " guestfs_set_verbose (guestfs_h *g,\n"
17575 #: ../src/guestfs-actions.pod:6446 ../fish/guestfish-actions.pod:4288
17576 msgid "If C<verbose> is true, this turns on verbose messages."
17580 #: ../src/guestfs-actions.pod:6448 ../fish/guestfish-actions.pod:4290
17582 "Verbose messages are disabled unless the environment variable "
17583 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
17587 #: ../src/guestfs-actions.pod:6451
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>)."
17594 #: ../src/guestfs-actions.pod:6459
17595 msgid "guestfs_setcon"
17599 #: ../src/guestfs-actions.pod:6461
17603 " guestfs_setcon (guestfs_h *g,\n"
17604 " const char *context);\n"
17609 #: ../src/guestfs-actions.pod:6465 ../fish/guestfish-actions.pod:4301
17611 "This sets the SELinux security context of the daemon to the string "
17616 #: ../src/guestfs-actions.pod:6468 ../fish/guestfish-actions.pod:4304
17617 msgid "See the documentation about SELINUX in L<guestfs(3)>."
17621 #: ../src/guestfs-actions.pod:6474
17622 msgid "guestfs_setxattr"
17626 #: ../src/guestfs-actions.pod:6476
17630 " guestfs_setxattr (guestfs_h *g,\n"
17631 " const char *xattr,\n"
17632 " const char *val,\n"
17634 " const char *path);\n"
17639 #: ../src/guestfs-actions.pod:6483 ../fish/guestfish-actions.pod:4310
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."
17646 #: ../src/guestfs-actions.pod:6487
17647 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
17651 #: ../src/guestfs-actions.pod:6493
17652 msgid "guestfs_sfdisk"
17656 #: ../src/guestfs-actions.pod:6495
17660 " guestfs_sfdisk (guestfs_h *g,\n"
17661 " const char *device,\n"
17665 " char *const *lines);\n"
17670 #: ../src/guestfs-actions.pod:6503 ../fish/guestfish-actions.pod:4320
17672 "This is a direct interface to the L<sfdisk(8)> program for creating "
17673 "partitions on block devices."
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>."
17682 #: ../src/guestfs-actions.pod:6508 ../fish/guestfish-actions.pod:4325
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 "
17694 #: ../src/guestfs-actions.pod:6516 ../fish/guestfish-actions.pod:4333
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."
17701 #: ../src/guestfs-actions.pod:6519 ../fish/guestfish-actions.pod:4336
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 "
17709 #: ../src/guestfs-actions.pod:6523
17711 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
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
17719 "This function is deprecated. In new code, use the C<part_add> call instead."
17723 #: ../src/guestfs-actions.pod:6540
17724 msgid "guestfs_sfdiskM"
17728 #: ../src/guestfs-actions.pod:6542
17732 " guestfs_sfdiskM (guestfs_h *g,\n"
17733 " const char *device,\n"
17734 " char *const *lines);\n"
17739 #: ../src/guestfs-actions.pod:6547
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."
17748 #: ../src/guestfs-actions.pod:6553
17750 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
17751 "C<guestfs_part_disk>"
17755 #: ../src/guestfs-actions.pod:6570
17756 msgid "guestfs_sfdisk_N"
17760 #: ../src/guestfs-actions.pod:6572
17764 " guestfs_sfdisk_N (guestfs_h *g,\n"
17765 " const char *device,\n"
17770 " const char *line);\n"
17775 #: ../src/guestfs-actions.pod:6581 ../fish/guestfish-actions.pod:4380
17777 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
17778 "(note: C<n> counts from 1)."
17782 #: ../src/guestfs-actions.pod:6584
17784 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
17785 "for the cyls/heads/sectors parameters."
17789 #: ../src/guestfs-actions.pod:6587
17790 msgid "See also: C<guestfs_part_add>"
17794 #: ../src/guestfs-actions.pod:6603
17795 msgid "guestfs_sfdisk_disk_geometry"
17799 #: ../src/guestfs-actions.pod:6605
17803 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
17804 " const char *device);\n"
17809 #: ../src/guestfs-actions.pod:6609
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>)."
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."
17824 #: ../src/guestfs-actions.pod:6622
17825 msgid "guestfs_sfdisk_kernel_geometry"
17829 #: ../src/guestfs-actions.pod:6624
17833 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
17834 " const char *device);\n"
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>."
17844 #: ../src/guestfs-actions.pod:6638
17845 msgid "guestfs_sfdisk_l"
17849 #: ../src/guestfs-actions.pod:6640
17853 " guestfs_sfdisk_l (guestfs_h *g,\n"
17854 " const char *device);\n"
17859 #: ../src/guestfs-actions.pod:6644 ../fish/guestfish-actions.pod:4423
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."
17866 #: ../src/guestfs-actions.pod:6648
17867 msgid "See also: C<guestfs_part_list>"
17871 #: ../src/guestfs-actions.pod:6653 ../fish/guestfish-actions.pod:4429
17873 "This function is deprecated. In new code, use the C<part_list> call "
17878 #: ../src/guestfs-actions.pod:6662
17883 #: ../src/guestfs-actions.pod:6664
17887 " guestfs_sh (guestfs_h *g,\n"
17888 " const char *command);\n"
17893 #: ../src/guestfs-actions.pod:6668 ../fish/guestfish-actions.pod:4440
17895 "This call runs a command from the guest filesystem via the guest's "
17900 #: ../src/guestfs-actions.pod:6671
17901 msgid "This is like C<guestfs_command>, but passes the command to:"
17905 #: ../src/guestfs-actions.pod:6673 ../fish/guestfish-actions.pod:4445
17908 " /bin/sh -c \"command\"\n"
17913 #: ../src/guestfs-actions.pod:6675 ../fish/guestfish-actions.pod:4447
17915 "Depending on the guest's shell, this usually results in wildcards being "
17916 "expanded, shell expressions being interpolated and so on."
17920 #: ../src/guestfs-actions.pod:6679
17921 msgid "All the provisos about C<guestfs_command> apply to this call."
17925 #: ../src/guestfs-actions.pod:6686
17926 msgid "guestfs_sh_lines"
17930 #: ../src/guestfs-actions.pod:6688
17934 " guestfs_sh_lines (guestfs_h *g,\n"
17935 " const char *command);\n"
17940 #: ../src/guestfs-actions.pod:6692
17942 "This is the same as C<guestfs_sh>, but splits the result into a list of "
17947 #: ../src/guestfs-actions.pod:6695
17948 msgid "See also: C<guestfs_command_lines>"
17952 #: ../src/guestfs-actions.pod:6703
17953 msgid "guestfs_sleep"
17957 #: ../src/guestfs-actions.pod:6705
17961 " guestfs_sleep (guestfs_h *g,\n"
17967 #: ../src/guestfs-actions.pod:6709 ../fish/guestfish-actions.pod:4466
17968 msgid "Sleep for C<secs> seconds."
17972 #: ../src/guestfs-actions.pod:6713
17973 msgid "(Added in 1.0.41)"
17977 #: ../src/guestfs-actions.pod:6715 ../src/guestfs-structs.pod:109
17978 msgid "guestfs_stat"
17982 #: ../src/guestfs-actions.pod:6717
17985 " struct guestfs_stat *\n"
17986 " guestfs_stat (guestfs_h *g,\n"
17987 " const char *path);\n"
17992 #: ../src/guestfs-actions.pod:6723 ../fish/guestfish-actions.pod:4474
17993 msgid "This is the same as the C<stat(2)> system call."
17997 #: ../src/guestfs-actions.pod:6731 ../src/guestfs-structs.pod:135
17998 msgid "guestfs_statvfs"
18002 #: ../src/guestfs-actions.pod:6733
18005 " struct guestfs_statvfs *\n"
18006 " guestfs_statvfs (guestfs_h *g,\n"
18007 " const char *path);\n"
18012 #: ../src/guestfs-actions.pod:6737 ../fish/guestfish-actions.pod:4480
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)."
18020 #: ../src/guestfs-actions.pod:6741 ../fish/guestfish-actions.pod:4484
18021 msgid "This is the same as the C<statvfs(2)> system call."
18025 #: ../src/guestfs-actions.pod:6743
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>."
18032 #: ../src/guestfs-actions.pod:6749
18033 msgid "guestfs_strings"
18037 #: ../src/guestfs-actions.pod:6751
18041 " guestfs_strings (guestfs_h *g,\n"
18042 " const char *path);\n"
18047 #: ../src/guestfs-actions.pod:6755 ../fish/guestfish-actions.pod:4490
18049 "This runs the L<strings(1)> command on a file and returns the list of "
18050 "printable strings found."
18054 #: ../src/guestfs-actions.pod:6767
18055 msgid "guestfs_strings_e"
18059 #: ../src/guestfs-actions.pod:6769
18063 " guestfs_strings_e (guestfs_h *g,\n"
18064 " const char *encoding,\n"
18065 " const char *path);\n"
18070 #: ../src/guestfs-actions.pod:6774
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>."
18077 #: ../src/guestfs-actions.pod:6778 ../fish/guestfish-actions.pod:4504
18078 msgid "Allowed encodings are:"
18079 msgstr "Можливими кодуваннями є:"
18082 #: ../src/guestfs-actions.pod:6782 ../fish/guestfish-actions.pod:4508
18087 #: ../src/guestfs-actions.pod:6784
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)."
18094 #: ../src/guestfs-actions.pod:6787 ../fish/guestfish-actions.pod:4513
18099 #: ../src/guestfs-actions.pod:6789 ../fish/guestfish-actions.pod:4515
18100 msgid "Single 8-bit-byte characters."
18101 msgstr "Окремі 8-бітові-байтові символи."
18104 #: ../src/guestfs-actions.pod:6791 ../fish/guestfish-actions.pod:4517
18109 #: ../src/guestfs-actions.pod:6793 ../fish/guestfish-actions.pod:4519
18111 "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
18115 #: ../src/guestfs-actions.pod:6796 ../fish/guestfish-actions.pod:4522
18116 msgid "l (lower case letter L)"
18120 #: ../src/guestfs-actions.pod:6798 ../fish/guestfish-actions.pod:4524
18122 "16-bit little endian such as UTF-16LE and UCS-2LE. This is useful for "
18123 "examining binaries in Windows guests."
18127 #: ../src/guestfs-actions.pod:6801 ../fish/guestfish-actions.pod:4527
18132 #: ../src/guestfs-actions.pod:6803 ../fish/guestfish-actions.pod:4529
18133 msgid "32-bit big endian such as UCS-4BE."
18137 #: ../src/guestfs-actions.pod:6805 ../fish/guestfish-actions.pod:4531
18142 #: ../src/guestfs-actions.pod:6807 ../fish/guestfish-actions.pod:4533
18143 msgid "32-bit little endian such as UCS-4LE."
18147 #: ../src/guestfs-actions.pod:6811 ../fish/guestfish-actions.pod:4537
18148 msgid "The returned strings are transcoded to UTF-8."
18152 #: ../src/guestfs-actions.pod:6822
18153 msgid "guestfs_swapoff_device"
18157 #: ../src/guestfs-actions.pod:6824
18161 " guestfs_swapoff_device (guestfs_h *g,\n"
18162 " const char *device);\n"
18167 #: ../src/guestfs-actions.pod:6828
18169 "This command disables the libguestfs appliance swap device or partition "
18170 "named C<device>. See C<guestfs_swapon_device>."
18174 #: ../src/guestfs-actions.pod:6836
18175 msgid "guestfs_swapoff_file"
18179 #: ../src/guestfs-actions.pod:6838
18183 " guestfs_swapoff_file (guestfs_h *g,\n"
18184 " const char *file);\n"
18189 #: ../src/guestfs-actions.pod:6842 ../fish/guestfish-actions.pod:4554
18190 msgid "This command disables the libguestfs appliance swap on file."
18194 #: ../src/guestfs-actions.pod:6848
18195 msgid "guestfs_swapoff_label"
18199 #: ../src/guestfs-actions.pod:6850
18203 " guestfs_swapoff_label (guestfs_h *g,\n"
18204 " const char *label);\n"
18209 #: ../src/guestfs-actions.pod:6854 ../fish/guestfish-actions.pod:4560
18211 "This command disables the libguestfs appliance swap on labeled swap "
18216 #: ../src/guestfs-actions.pod:6861
18217 msgid "guestfs_swapoff_uuid"
18221 #: ../src/guestfs-actions.pod:6863
18225 " guestfs_swapoff_uuid (guestfs_h *g,\n"
18226 " const char *uuid);\n"
18231 #: ../src/guestfs-actions.pod:6867 ../fish/guestfish-actions.pod:4567
18233 "This command disables the libguestfs appliance swap partition with the given"
18238 #: ../src/guestfs-actions.pod:6874
18239 msgid "guestfs_swapon_device"
18243 #: ../src/guestfs-actions.pod:6876
18247 " guestfs_swapon_device (guestfs_h *g,\n"
18248 " const char *device);\n"
18253 #: ../src/guestfs-actions.pod:6880
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>."
18261 #: ../src/guestfs-actions.pod:6885 ../fish/guestfish-actions.pod:4579
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."
18271 #: ../src/guestfs-actions.pod:6896
18272 msgid "guestfs_swapon_file"
18276 #: ../src/guestfs-actions.pod:6898
18280 " guestfs_swapon_file (guestfs_h *g,\n"
18281 " const char *file);\n"
18286 #: ../src/guestfs-actions.pod:6902
18288 "This command enables swap to a file. See C<guestfs_swapon_device> for other"
18293 #: ../src/guestfs-actions.pod:6909
18294 msgid "guestfs_swapon_label"
18298 #: ../src/guestfs-actions.pod:6911
18302 " guestfs_swapon_label (guestfs_h *g,\n"
18303 " const char *label);\n"
18308 #: ../src/guestfs-actions.pod:6915
18310 "This command enables swap to a labeled swap partition. See "
18311 "C<guestfs_swapon_device> for other notes."
18315 #: ../src/guestfs-actions.pod:6922
18316 msgid "guestfs_swapon_uuid"
18320 #: ../src/guestfs-actions.pod:6924
18324 " guestfs_swapon_uuid (guestfs_h *g,\n"
18325 " const char *uuid);\n"
18330 #: ../src/guestfs-actions.pod:6928
18332 "This command enables swap to a swap partition with the given UUID. See "
18333 "C<guestfs_swapon_device> for other notes."
18337 #: ../src/guestfs-actions.pod:6935
18338 msgid "guestfs_sync"
18342 #: ../src/guestfs-actions.pod:6937
18346 " guestfs_sync (guestfs_h *g);\n"
18351 #: ../src/guestfs-actions.pod:6940 ../fish/guestfish-actions.pod:4611
18353 "This syncs the disk, so that any writes are flushed through to the "
18354 "underlying disk image."
18358 #: ../src/guestfs-actions.pod:6943 ../fish/guestfish-actions.pod:4614
18360 "You should always call this if you have modified a disk image, before "
18361 "closing the handle."
18365 #: ../src/guestfs-actions.pod:6950
18366 msgid "guestfs_tail"
18370 #: ../src/guestfs-actions.pod:6952
18374 " guestfs_tail (guestfs_h *g,\n"
18375 " const char *path);\n"
18380 #: ../src/guestfs-actions.pod:6956 ../fish/guestfish-actions.pod:4621
18382 "This command returns up to the last 10 lines of a file as a list of strings."
18386 #: ../src/guestfs-actions.pod:6968
18387 msgid "guestfs_tail_n"
18391 #: ../src/guestfs-actions.pod:6970
18395 " guestfs_tail_n (guestfs_h *g,\n"
18397 " const char *path);\n"
18402 #: ../src/guestfs-actions.pod:6975 ../fish/guestfish-actions.pod:4631
18404 "If the parameter C<nrlines> is a positive number, this returns the last "
18405 "C<nrlines> lines of the file C<path>."
18409 #: ../src/guestfs-actions.pod:6978 ../fish/guestfish-actions.pod:4634
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."
18416 #: ../src/guestfs-actions.pod:6992
18417 msgid "guestfs_tar_in"
18421 #: ../src/guestfs-actions.pod:6994
18425 " guestfs_tar_in (guestfs_h *g,\n"
18426 " const char *tarfile,\n"
18427 " const char *directory);\n"
18432 #: ../src/guestfs-actions.pod:6999 ../fish/guestfish-actions.pod:4646
18434 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
18435 "tar file) into C<directory>."
18439 #: ../src/guestfs-actions.pod:7002
18441 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
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)"
18451 #: ../src/guestfs-actions.pod:7009
18452 msgid "guestfs_tar_out"
18456 #: ../src/guestfs-actions.pod:7011
18460 " guestfs_tar_out (guestfs_h *g,\n"
18461 " const char *directory,\n"
18462 " const char *tarfile);\n"
18467 #: ../src/guestfs-actions.pod:7016 ../fish/guestfish-actions.pod:4658
18469 "This command packs the contents of C<directory> and downloads it to local "
18474 #: ../src/guestfs-actions.pod:7019
18476 "To download a compressed tarball, use C<guestfs_tgz_out> or "
18477 "C<guestfs_txz_out>."
18481 #: ../src/guestfs-actions.pod:7026
18482 msgid "guestfs_tgz_in"
18486 #: ../src/guestfs-actions.pod:7028
18490 " guestfs_tgz_in (guestfs_h *g,\n"
18491 " const char *tarball,\n"
18492 " const char *directory);\n"
18497 #: ../src/guestfs-actions.pod:7033 ../fish/guestfish-actions.pod:4670
18499 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed>"
18500 " tar file) into C<directory>."
18504 #: ../src/guestfs-actions.pod:7036
18505 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
18509 #: ../src/guestfs-actions.pod:7042
18510 msgid "guestfs_tgz_out"
18514 #: ../src/guestfs-actions.pod:7044
18518 " guestfs_tgz_out (guestfs_h *g,\n"
18519 " const char *directory,\n"
18520 " const char *tarball);\n"
18525 #: ../src/guestfs-actions.pod:7049 ../fish/guestfish-actions.pod:4681
18527 "This command packs the contents of C<directory> and downloads it to local "
18532 #: ../src/guestfs-actions.pod:7052
18533 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
18537 #: ../src/guestfs-actions.pod:7058
18538 msgid "guestfs_touch"
18542 #: ../src/guestfs-actions.pod:7060
18546 " guestfs_touch (guestfs_h *g,\n"
18547 " const char *path);\n"
18552 #: ../src/guestfs-actions.pod:7064 ../fish/guestfish-actions.pod:4692
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-"
18560 #: ../src/guestfs-actions.pod:7068 ../fish/guestfish-actions.pod:4696
18562 "This command only works on regular files, and will fail on other file types "
18563 "such as directories, symbolic links, block special etc."
18567 #: ../src/guestfs-actions.pod:7075
18568 msgid "guestfs_truncate"
18572 #: ../src/guestfs-actions.pod:7077
18576 " guestfs_truncate (guestfs_h *g,\n"
18577 " const char *path);\n"
18582 #: ../src/guestfs-actions.pod:7081 ../fish/guestfish-actions.pod:4703
18584 "This command truncates C<path> to a zero-length file. The file must exist "
18589 #: ../src/guestfs-actions.pod:7088
18590 msgid "guestfs_truncate_size"
18594 #: ../src/guestfs-actions.pod:7090
18598 " guestfs_truncate_size (guestfs_h *g,\n"
18599 " const char *path,\n"
18600 " int64_t size);\n"
18605 #: ../src/guestfs-actions.pod:7095 ../fish/guestfish-actions.pod:4710
18607 "This command truncates C<path> to size C<size> bytes. The file must exist "
18612 #: ../src/guestfs-actions.pod:7098
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."
18621 #: ../src/guestfs-actions.pod:7108
18622 msgid "guestfs_tune2fs_l"
18626 #: ../src/guestfs-actions.pod:7110
18630 " guestfs_tune2fs_l (guestfs_h *g,\n"
18631 " const char *device);\n"
18636 #: ../src/guestfs-actions.pod:7114 ../fish/guestfish-actions.pod:4723
18638 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on"
18643 #: ../src/guestfs-actions.pod:7117 ../fish/guestfish-actions.pod:4726
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."
18652 #: ../src/guestfs-actions.pod:7130
18653 msgid "guestfs_txz_in"
18657 #: ../src/guestfs-actions.pod:7132
18661 " guestfs_txz_in (guestfs_h *g,\n"
18662 " const char *tarball,\n"
18663 " const char *directory);\n"
18668 #: ../src/guestfs-actions.pod:7137 ../fish/guestfish-actions.pod:4735
18670 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
18671 "tar file) into C<directory>."
18675 #: ../src/guestfs-actions.pod:7144
18676 msgid "guestfs_txz_out"
18680 #: ../src/guestfs-actions.pod:7146
18684 " guestfs_txz_out (guestfs_h *g,\n"
18685 " const char *directory,\n"
18686 " const char *tarball);\n"
18691 #: ../src/guestfs-actions.pod:7151 ../fish/guestfish-actions.pod:4744
18693 "This command packs the contents of C<directory> and downloads it to local "
18694 "file C<tarball> (as an xz compressed tar archive)."
18698 #: ../src/guestfs-actions.pod:7158
18699 msgid "guestfs_umask"
18703 #: ../src/guestfs-actions.pod:7160
18707 " guestfs_umask (guestfs_h *g,\n"
18713 #: ../src/guestfs-actions.pod:7164 ../fish/guestfish-actions.pod:4753
18715 "This function sets the mask used for creating new files and device nodes to "
18720 #: ../src/guestfs-actions.pod:7167 ../fish/guestfish-actions.pod:4756
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\"."
18728 #: ../src/guestfs-actions.pod:7172 ../fish/guestfish-actions.pod:4761
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>."
18736 #: ../src/guestfs-actions.pod:7176
18738 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
18739 "C<guestfs_mkdir>."
18743 #: ../src/guestfs-actions.pod:7179 ../fish/guestfish-actions.pod:4768
18744 msgid "This call returns the previous umask."
18748 #: ../src/guestfs-actions.pod:7185
18749 msgid "guestfs_umount"
18753 #: ../src/guestfs-actions.pod:7187
18757 " guestfs_umount (guestfs_h *g,\n"
18758 " const char *pathordevice);\n"
18763 #: ../src/guestfs-actions.pod:7191 ../fish/guestfish-actions.pod:4776
18765 "This unmounts the given filesystem. The filesystem may be specified either "
18766 "by its mountpoint (path) or the device which contains the filesystem."
18770 #: ../src/guestfs-actions.pod:7199
18771 msgid "guestfs_umount_all"
18775 #: ../src/guestfs-actions.pod:7201
18779 " guestfs_umount_all (guestfs_h *g);\n"
18784 #: ../src/guestfs-actions.pod:7204 ../fish/guestfish-actions.pod:4786
18785 msgid "This unmounts all mounted filesystems."
18789 #: ../src/guestfs-actions.pod:7206 ../fish/guestfish-actions.pod:4788
18790 msgid "Some internal mounts are not unmounted by this call."
18794 #: ../src/guestfs-actions.pod:7212
18795 msgid "guestfs_upload"
18799 #: ../src/guestfs-actions.pod:7214
18803 " guestfs_upload (guestfs_h *g,\n"
18804 " const char *filename,\n"
18805 " const char *remotefilename);\n"
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."
18816 #: ../src/guestfs-actions.pod:7224
18817 msgid "See also C<guestfs_download>."
18821 #: ../src/guestfs-actions.pod:7235
18822 msgid "guestfs_upload_offset"
18826 #: ../src/guestfs-actions.pod:7237
18830 " guestfs_upload_offset (guestfs_h *g,\n"
18831 " const char *filename,\n"
18832 " const char *remotefilename,\n"
18833 " int64_t offset);\n"
18838 #: ../src/guestfs-actions.pod:7246 ../fish/guestfish-actions.pod:4810
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>."
18848 #: ../src/guestfs-actions.pod:7253
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."
18856 #: ../src/guestfs-actions.pod:7258
18857 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
18861 #: ../src/guestfs-actions.pod:7269
18862 msgid "guestfs_utimens"
18866 #: ../src/guestfs-actions.pod:7271
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"
18880 #: ../src/guestfs-actions.pod:7279 ../fish/guestfish-actions.pod:4830
18881 msgid "This command sets the timestamps of a file with nanosecond precision."
18885 #: ../src/guestfs-actions.pod:7282 ../fish/guestfish-actions.pod:4833
18887 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
18892 #: ../src/guestfs-actions.pod:7285 ../fish/guestfish-actions.pod:4836
18894 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
18895 "nanoseconds from the epoch."
18899 #: ../src/guestfs-actions.pod:7288 ../fish/guestfish-actions.pod:4839
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)."
18907 #: ../src/guestfs-actions.pod:7292 ../fish/guestfish-actions.pod:4843
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 "
18915 #: ../src/guestfs-actions.pod:7300 ../src/guestfs-structs.pod:175
18916 msgid "guestfs_version"
18920 #: ../src/guestfs-actions.pod:7302
18923 " struct guestfs_version *\n"
18924 " guestfs_version (guestfs_h *g);\n"
18929 #: ../src/guestfs-actions.pod:7305 ../fish/guestfish-actions.pod:4851
18931 "Return the libguestfs version number that the program is linked against."
18935 #: ../src/guestfs-actions.pod:7308 ../fish/guestfish-actions.pod:4854
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>"
18944 #: ../src/guestfs-actions.pod:7313 ../fish/guestfish-actions.pod:4859
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)."
18953 #: ../src/guestfs-actions.pod:7319 ../fish/guestfish-actions.pod:4865
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."
18962 #: ../src/guestfs-actions.pod:7325 ../fish/guestfish-actions.pod:4871
18964 "To construct the original version string: C<$major.$minor.$release$extra>"
18968 #: ../src/guestfs-actions.pod:7328 ../fish/guestfish-actions.pod:4874
18969 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
18973 #: ../src/guestfs-actions.pod:7330
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."
18982 #: ../src/guestfs-actions.pod:7336
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>."
18989 #: ../src/guestfs-actions.pod:7340
18990 msgid "(Added in 1.0.58)"
18994 #: ../src/guestfs-actions.pod:7342
18995 msgid "guestfs_vfs_label"
18999 #: ../src/guestfs-actions.pod:7344
19003 " guestfs_vfs_label (guestfs_h *g,\n"
19004 " const char *device);\n"
19009 #: ../src/guestfs-actions.pod:7348 ../fish/guestfish-actions.pod:4886
19010 msgid "This returns the filesystem label of the filesystem on C<device>."
19014 #: ../src/guestfs-actions.pod:7351 ../fish/guestfish-actions.pod:4889
19015 msgid "If the filesystem is unlabeled, this returns the empty string."
19019 #: ../src/guestfs-actions.pod:7353
19020 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
19024 #: ../src/guestfs-actions.pod:7358 ../src/guestfs-actions.pod:7395
19025 msgid "(Added in 1.3.18)"
19029 #: ../src/guestfs-actions.pod:7360
19030 msgid "guestfs_vfs_type"
19034 #: ../src/guestfs-actions.pod:7362
19038 " guestfs_vfs_type (guestfs_h *g,\n"
19039 " const char *device);\n"
19044 #: ../src/guestfs-actions.pod:7366 ../fish/guestfish-actions.pod:4897
19046 "This command gets the filesystem type corresponding to the filesystem on "
19051 #: ../src/guestfs-actions.pod:7369 ../fish/guestfish-actions.pod:4900
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>."
19059 #: ../src/guestfs-actions.pod:7379
19060 msgid "guestfs_vfs_uuid"
19064 #: ../src/guestfs-actions.pod:7381
19068 " guestfs_vfs_uuid (guestfs_h *g,\n"
19069 " const char *device);\n"
19074 #: ../src/guestfs-actions.pod:7385 ../fish/guestfish-actions.pod:4909
19075 msgid "This returns the filesystem UUID of the filesystem on C<device>."
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."
19084 #: ../src/guestfs-actions.pod:7390
19085 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
19089 #: ../src/guestfs-actions.pod:7397
19090 msgid "guestfs_vg_activate"
19094 #: ../src/guestfs-actions.pod:7399
19098 " guestfs_vg_activate (guestfs_h *g,\n"
19100 " char *const *volgroups);\n"
19105 #: ../src/guestfs-actions.pod:7404 ../fish/guestfish-actions.pod:4920
19107 "This command activates or (if C<activate> is false) deactivates all logical "
19108 "volumes in the listed volume groups C<volgroups>."
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...>"
19117 #: ../src/guestfs-actions.pod:7409 ../fish/guestfish-actions.pod:4925
19119 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
19120 "activated or deactivated."
19124 #: ../src/guestfs-actions.pod:7416
19125 msgid "guestfs_vg_activate_all"
19129 #: ../src/guestfs-actions.pod:7418
19133 " guestfs_vg_activate_all (guestfs_h *g,\n"
19134 " int activate);\n"
19139 #: ../src/guestfs-actions.pod:7422 ../fish/guestfish-actions.pod:4932
19141 "This command activates or (if C<activate> is false) deactivates all logical "
19142 "volumes in all volume groups."
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>"
19151 #: ../src/guestfs-actions.pod:7431
19152 msgid "guestfs_vgcreate"
19156 #: ../src/guestfs-actions.pod:7433
19160 " guestfs_vgcreate (guestfs_h *g,\n"
19161 " const char *volgroup,\n"
19162 " char *const *physvols);\n"
19167 #: ../src/guestfs-actions.pod:7438 ../fish/guestfish-actions.pod:4941
19169 "This creates an LVM volume group called C<volgroup> from the non-empty list "
19170 "of physical volumes C<physvols>."
19174 #: ../src/guestfs-actions.pod:7445
19175 msgid "guestfs_vglvuuids"
19179 #: ../src/guestfs-actions.pod:7447
19183 " guestfs_vglvuuids (guestfs_h *g,\n"
19184 " const char *vgname);\n"
19189 #: ../src/guestfs-actions.pod:7451 ../fish/guestfish-actions.pod:4948
19191 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
19192 "volumes created in this volume group."
19196 #: ../src/guestfs-actions.pod:7454
19198 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
19199 "associate logical volumes and volume groups."
19203 #: ../src/guestfs-actions.pod:7457
19204 msgid "See also C<guestfs_vgpvuuids>."
19208 #: ../src/guestfs-actions.pod:7465
19209 msgid "guestfs_vgpvuuids"
19213 #: ../src/guestfs-actions.pod:7467
19217 " guestfs_vgpvuuids (guestfs_h *g,\n"
19218 " const char *vgname);\n"
19223 #: ../src/guestfs-actions.pod:7471 ../fish/guestfish-actions.pod:4960
19225 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
19226 "volumes that this volume group resides on."
19230 #: ../src/guestfs-actions.pod:7474
19232 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
19233 "associate physical volumes and volume groups."
19237 #: ../src/guestfs-actions.pod:7477
19238 msgid "See also C<guestfs_vglvuuids>."
19242 #: ../src/guestfs-actions.pod:7485
19243 msgid "guestfs_vgremove"
19247 #: ../src/guestfs-actions.pod:7487
19251 " guestfs_vgremove (guestfs_h *g,\n"
19252 " const char *vgname);\n"
19257 #: ../src/guestfs-actions.pod:7491 ../fish/guestfish-actions.pod:4972
19258 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
19262 #: ../src/guestfs-actions.pod:7493 ../fish/guestfish-actions.pod:4974
19264 "This also forcibly removes all logical volumes in the volume group (if any)."
19268 #: ../src/guestfs-actions.pod:7500
19269 msgid "guestfs_vgrename"
19273 #: ../src/guestfs-actions.pod:7502
19277 " guestfs_vgrename (guestfs_h *g,\n"
19278 " const char *volgroup,\n"
19279 " const char *newvolgroup);\n"
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>."
19289 #: ../src/guestfs-actions.pod:7513
19290 msgid "guestfs_vgs"
19294 #: ../src/guestfs-actions.pod:7515
19298 " guestfs_vgs (guestfs_h *g);\n"
19303 #: ../src/guestfs-actions.pod:7518 ../fish/guestfish-actions.pod:4987
19305 "List all the volumes groups detected. This is the equivalent of the "
19306 "L<vgs(8)> command."
19310 #: ../src/guestfs-actions.pod:7521 ../fish/guestfish-actions.pod:4990
19312 "This returns a list of just the volume group names that were detected (eg. "
19317 #: ../src/guestfs-actions.pod:7524
19318 msgid "See also C<guestfs_vgs_full>."
19322 #: ../src/guestfs-actions.pod:7532
19323 msgid "guestfs_vgs_full"
19327 #: ../src/guestfs-actions.pod:7534
19330 " struct guestfs_lvm_vg_list *\n"
19331 " guestfs_vgs_full (guestfs_h *g);\n"
19336 #: ../src/guestfs-actions.pod:7537 ../fish/guestfish-actions.pod:4999
19338 "List all the volumes groups detected. This is the equivalent of the "
19339 "L<vgs(8)> command. The \"full\" version includes all fields."
19343 #: ../src/guestfs-actions.pod:7540
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 "
19351 #: ../src/guestfs-actions.pod:7546
19352 msgid "guestfs_vgscan"
19356 #: ../src/guestfs-actions.pod:7548
19360 " guestfs_vgscan (guestfs_h *g);\n"
19365 #: ../src/guestfs-actions.pod:7551 ../fish/guestfish-actions.pod:5006
19367 "This rescans all block devices and rebuilds the list of LVM physical "
19368 "volumes, volume groups and logical volumes."
19372 #: ../src/guestfs-actions.pod:7558
19373 msgid "guestfs_vguuid"
19377 #: ../src/guestfs-actions.pod:7560
19381 " guestfs_vguuid (guestfs_h *g,\n"
19382 " const char *vgname);\n"
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>."
19392 #: ../src/guestfs-actions.pod:7571
19393 msgid "guestfs_wait_ready"
19397 #: ../src/guestfs-actions.pod:7573
19401 " guestfs_wait_ready (guestfs_h *g);\n"
19406 #: ../src/guestfs-actions.pod:7576
19407 msgid "This function is a no op."
19411 #: ../src/guestfs-actions.pod:7578
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."
19419 #: ../src/guestfs-actions.pod:7583
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."
19426 #: ../src/guestfs-actions.pod:7589
19428 "This function is deprecated. In new code, use the C<launch> call instead."
19432 #: ../src/guestfs-actions.pod:7598
19433 msgid "guestfs_wc_c"
19437 #: ../src/guestfs-actions.pod:7600
19441 " guestfs_wc_c (guestfs_h *g,\n"
19442 " const char *path);\n"
19447 #: ../src/guestfs-actions.pod:7604 ../fish/guestfish-actions.pod:5019
19449 "This command counts the characters in a file, using the C<wc -c> external "
19454 #: ../src/guestfs-actions.pod:7611
19455 msgid "guestfs_wc_l"
19459 #: ../src/guestfs-actions.pod:7613
19463 " guestfs_wc_l (guestfs_h *g,\n"
19464 " const char *path);\n"
19469 #: ../src/guestfs-actions.pod:7617 ../fish/guestfish-actions.pod:5026
19471 "This command counts the lines in a file, using the C<wc -l> external "
19476 #: ../src/guestfs-actions.pod:7624
19477 msgid "guestfs_wc_w"
19481 #: ../src/guestfs-actions.pod:7626
19485 " guestfs_wc_w (guestfs_h *g,\n"
19486 " const char *path);\n"
19491 #: ../src/guestfs-actions.pod:7630 ../fish/guestfish-actions.pod:5033
19493 "This command counts the words in a file, using the C<wc -w> external "
19498 #: ../src/guestfs-actions.pod:7637
19499 msgid "guestfs_write"
19503 #: ../src/guestfs-actions.pod:7639
19507 " guestfs_write (guestfs_h *g,\n"
19508 " const char *path,\n"
19509 " const char *content,\n"
19510 " size_t content_size);\n"
19515 #: ../src/guestfs-actions.pod:7645 ../fish/guestfish-actions.pod:5040
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)."
19522 #: ../src/guestfs-actions.pod:7648
19523 msgid "See also C<guestfs_write_append>."
19527 #: ../src/guestfs-actions.pod:7657
19528 msgid "guestfs_write_append"
19532 #: ../src/guestfs-actions.pod:7659
19536 " guestfs_write_append (guestfs_h *g,\n"
19537 " const char *path,\n"
19538 " const char *content,\n"
19539 " size_t content_size);\n"
19544 #: ../src/guestfs-actions.pod:7665 ../fish/guestfish-actions.pod:5052
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."
19551 #: ../src/guestfs-actions.pod:7668
19552 msgid "See also C<guestfs_write>."
19556 #: ../src/guestfs-actions.pod:7675
19557 msgid "guestfs_write_file"
19558 msgstr "guestfs_write_file"
19561 #: ../src/guestfs-actions.pod:7677
19565 " guestfs_write_file (guestfs_h *g,\n"
19566 " const char *path,\n"
19567 " const char *content,\n"
19572 " guestfs_write_file (guestfs_h *g,\n"
19573 " const char *path,\n"
19574 " const char *content,\n"
19579 #: ../src/guestfs-actions.pod:7683 ../fish/guestfish-actions.pod:5064
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>."
19586 #: ../src/guestfs-actions.pod:7687 ../fish/guestfish-actions.pod:5068
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)."
19593 #: ../src/guestfs-actions.pod:7691 ../fish/guestfish-actions.pod:5072
19595 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
19596 "I<not> work, even if the length is specified."
19600 #: ../src/guestfs-actions.pod:7699 ../fish/guestfish-actions.pod:5078
19602 "This function is deprecated. In new code, use the C<write> call instead."
19606 #: ../src/guestfs-actions.pod:7708
19607 msgid "guestfs_zegrep"
19608 msgstr "guestfs_zegrep"
19611 #: ../src/guestfs-actions.pod:7710
19615 " guestfs_zegrep (guestfs_h *g,\n"
19616 " const char *regex,\n"
19617 " const char *path);\n"
19621 " guestfs_zegrep (guestfs_h *g,\n"
19622 " const char *regex,\n"
19623 " const char *path);\n"
19627 #: ../src/guestfs-actions.pod:7715 ../fish/guestfish-actions.pod:5089
19629 "This calls the external C<zegrep> program and returns the matching lines."
19633 #: ../src/guestfs-actions.pod:7727
19634 msgid "guestfs_zegrepi"
19635 msgstr "guestfs_zegrepi"
19638 #: ../src/guestfs-actions.pod:7729
19642 " guestfs_zegrepi (guestfs_h *g,\n"
19643 " const char *regex,\n"
19644 " const char *path);\n"
19648 " guestfs_zegrepi (guestfs_h *g,\n"
19649 " const char *regex,\n"
19650 " const char *path);\n"
19654 #: ../src/guestfs-actions.pod:7734 ../fish/guestfish-actions.pod:5099
19656 "This calls the external C<zegrep -i> program and returns the matching lines."
19660 #: ../src/guestfs-actions.pod:7746
19661 msgid "guestfs_zero"
19662 msgstr "guestfs_zero"
19665 #: ../src/guestfs-actions.pod:7748
19669 " guestfs_zero (guestfs_h *g,\n"
19670 " const char *device);\n"
19674 " guestfs_zero (guestfs_h *g,\n"
19675 " const char *device);\n"
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>."
19684 #: ../src/guestfs-actions.pod:7754 ../fish/guestfish-actions.pod:5111
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."
19692 #: ../src/guestfs-actions.pod:7758
19694 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
19695 "C<guestfs_is_zero_device>"
19699 #: ../src/guestfs-actions.pod:7770
19700 msgid "guestfs_zero_device"
19701 msgstr "guestfs_zero_device"
19704 #: ../src/guestfs-actions.pod:7772
19708 " guestfs_zero_device (guestfs_h *g,\n"
19709 " const char *device);\n"
19713 " guestfs_zero_device (guestfs_h *g,\n"
19714 " const char *device);\n"
19718 #: ../src/guestfs-actions.pod:7776
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."
19725 #: ../src/guestfs-actions.pod:7790
19726 msgid "(Added in 1.3.1)"
19727 msgstr "(Додано у 1.3.1)"
19730 #: ../src/guestfs-actions.pod:7792
19731 msgid "guestfs_zerofree"
19732 msgstr "guestfs_zerofree"
19735 #: ../src/guestfs-actions.pod:7794
19739 " guestfs_zerofree (guestfs_h *g,\n"
19740 " const char *device);\n"
19744 " guestfs_zerofree (guestfs_h *g,\n"
19745 " const char *device);\n"
19749 #: ../src/guestfs-actions.pod:7798 ../fish/guestfish-actions.pod:5133
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."
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."
19762 #: ../src/guestfs-actions.pod:7806 ../fish/guestfish-actions.pod:5141
19764 "It is possible that using this program can damage the filesystem or data on "
19769 #: ../src/guestfs-actions.pod:7813
19770 msgid "guestfs_zfgrep"
19771 msgstr "guestfs_zfgrep"
19774 #: ../src/guestfs-actions.pod:7815
19778 " guestfs_zfgrep (guestfs_h *g,\n"
19779 " const char *pattern,\n"
19780 " const char *path);\n"
19784 " guestfs_zfgrep (guestfs_h *g,\n"
19785 " const char *pattern,\n"
19786 " const char *path);\n"
19790 #: ../src/guestfs-actions.pod:7820 ../fish/guestfish-actions.pod:5148
19792 "This calls the external C<zfgrep> program and returns the matching lines."
19796 #: ../src/guestfs-actions.pod:7832
19797 msgid "guestfs_zfgrepi"
19798 msgstr "guestfs_zfgrepi"
19801 #: ../src/guestfs-actions.pod:7834
19805 " guestfs_zfgrepi (guestfs_h *g,\n"
19806 " const char *pattern,\n"
19807 " const char *path);\n"
19811 " guestfs_zfgrepi (guestfs_h *g,\n"
19812 " const char *pattern,\n"
19813 " const char *path);\n"
19817 #: ../src/guestfs-actions.pod:7839 ../fish/guestfish-actions.pod:5158
19819 "This calls the external C<zfgrep -i> program and returns the matching lines."
19823 #: ../src/guestfs-actions.pod:7851
19824 msgid "guestfs_zfile"
19825 msgstr "guestfs_zfile"
19828 #: ../src/guestfs-actions.pod:7853
19832 " guestfs_zfile (guestfs_h *g,\n"
19833 " const char *meth,\n"
19834 " const char *path);\n"
19838 " guestfs_zfile (guestfs_h *g,\n"
19839 " const char *meth,\n"
19840 " const char *path);\n"
19844 #: ../src/guestfs-actions.pod:7858 ../fish/guestfish-actions.pod:5168
19846 "This command runs C<file> after first decompressing C<path> using C<method>."
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>."
19855 #: ../src/guestfs-actions.pod:7863
19857 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
19862 #: ../src/guestfs-actions.pod:7869 ../fish/guestfish-actions.pod:5176
19864 "This function is deprecated. In new code, use the C<file> call instead."
19868 #: ../src/guestfs-actions.pod:7878
19869 msgid "guestfs_zgrep"
19870 msgstr "guestfs_zgrep"
19873 #: ../src/guestfs-actions.pod:7880
19877 " guestfs_zgrep (guestfs_h *g,\n"
19878 " const char *regex,\n"
19879 " const char *path);\n"
19883 " guestfs_zgrep (guestfs_h *g,\n"
19884 " const char *regex,\n"
19885 " const char *path);\n"
19889 #: ../src/guestfs-actions.pod:7885 ../fish/guestfish-actions.pod:5187
19891 "This calls the external C<zgrep> program and returns the matching lines."
19895 #: ../src/guestfs-actions.pod:7897
19896 msgid "guestfs_zgrepi"
19897 msgstr "guestfs_zgrepi"
19900 #: ../src/guestfs-actions.pod:7899
19904 " guestfs_zgrepi (guestfs_h *g,\n"
19905 " const char *regex,\n"
19906 " const char *path);\n"
19910 " guestfs_zgrepi (guestfs_h *g,\n"
19911 " const char *regex,\n"
19912 " const char *path);\n"
19916 #: ../src/guestfs-actions.pod:7904 ../fish/guestfish-actions.pod:5197
19918 "This calls the external C<zgrep -i> program and returns the matching lines."
19922 #: ../src/guestfs-availability.pod:3
19927 #: ../src/guestfs-availability.pod:5
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>"
19937 #: ../src/guestfs-availability.pod:21
19942 #: ../src/guestfs-availability.pod:23
19943 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
19947 #: ../src/guestfs-availability.pod:26
19949 msgstr "B<inotify>"
19952 #: ../src/guestfs-availability.pod:28
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>"
19960 #: ../src/guestfs-availability.pod:36
19961 msgid "B<linuxfsuuid>"
19962 msgstr "B<linuxfsuuid>"
19965 #: ../src/guestfs-availability.pod:38
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>"
19972 #: ../src/guestfs-availability.pod:45
19973 msgid "B<linuxmodules>"
19974 msgstr "B<linuxmodules>"
19977 #: ../src/guestfs-availability.pod:47
19978 msgid "The following functions: L</guestfs_modprobe>"
19982 #: ../src/guestfs-availability.pod:50
19983 msgid "B<linuxxattrs>"
19984 msgstr "B<linuxxattrs>"
19987 #: ../src/guestfs-availability.pod:52
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>"
19996 #: ../src/guestfs-availability.pod:63
20001 #: ../src/guestfs-availability.pod:65
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>"
20009 #: ../src/guestfs-availability.pod:74
20014 #: ../src/guestfs-availability.pod:76
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>"
20027 #: ../src/guestfs-availability.pod:99
20032 #: ../src/guestfs-availability.pod:101
20034 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
20035 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
20039 #: ../src/guestfs-availability.pod:107
20044 #: ../src/guestfs-availability.pod:109
20045 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
20049 #: ../src/guestfs-availability.pod:112
20050 msgid "B<ntfsprogs>"
20051 msgstr "B<ntfsprogs>"
20054 #: ../src/guestfs-availability.pod:114
20056 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
20057 "L</guestfs_ntfsresize_size>"
20061 #: ../src/guestfs-availability.pod:119
20062 msgid "B<realpath>"
20063 msgstr "B<realpath>"
20066 #: ../src/guestfs-availability.pod:121
20067 msgid "The following functions: L</guestfs_realpath>"
20071 #: ../src/guestfs-availability.pod:124
20076 #: ../src/guestfs-availability.pod:126
20078 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
20079 "L</guestfs_scrub_freespace>"
20083 #: ../src/guestfs-availability.pod:131
20085 msgstr "B<selinux>"
20088 #: ../src/guestfs-availability.pod:133
20089 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
20093 #: ../src/guestfs-availability.pod:137
20098 #: ../src/guestfs-availability.pod:139
20099 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
20103 #: ../src/guestfs-availability.pod:143
20104 msgid "B<zerofree>"
20105 msgstr "B<zerofree>"
20108 #: ../src/guestfs-availability.pod:145
20109 msgid "The following functions: L</guestfs_zerofree>"
20113 #: ../src/guestfs-structs.pod:1
20114 msgid "guestfs_int_bool"
20118 #: ../src/guestfs-structs.pod:3
20121 " struct guestfs_int_bool {\n"
20129 #: ../src/guestfs-structs.pod:8
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"
20140 #: ../src/guestfs-structs.pod:13
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"
20149 #: ../src/guestfs-structs.pod:16
20150 msgid "guestfs_lvm_pv"
20154 #: ../src/guestfs-structs.pod:18
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"
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"
20178 #: ../src/guestfs-structs.pod:36
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"
20189 #: ../src/guestfs-structs.pod:41
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"
20198 #: ../src/guestfs-structs.pod:44
20199 msgid "guestfs_lvm_vg"
20203 #: ../src/guestfs-structs.pod:46
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"
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"
20232 #: ../src/guestfs-structs.pod:69
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"
20243 #: ../src/guestfs-structs.pod:74
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"
20252 #: ../src/guestfs-structs.pod:77
20253 msgid "guestfs_lvm_lv"
20257 #: ../src/guestfs-structs.pod:79
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"
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"
20285 #: ../src/guestfs-structs.pod:101
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"
20296 #: ../src/guestfs-structs.pod:106
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"
20305 #: ../src/guestfs-structs.pod:111
20308 " struct guestfs_stat {\n"
20312 " int64_t nlink;\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"
20327 #: ../src/guestfs-structs.pod:127
20330 " struct guestfs_stat_list {\n"
20331 " uint32_t len; /* Number of elements in list. */\n"
20332 " struct guestfs_stat *val; /* Elements. */\n"
20338 #: ../src/guestfs-structs.pod:132
20341 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
20342 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
20347 #: ../src/guestfs-structs.pod:137
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"
20361 " int64_t namemax;\n"
20367 #: ../src/guestfs-structs.pod:151
20370 " struct guestfs_statvfs_list {\n"
20371 " uint32_t len; /* Number of elements in list. */\n"
20372 " struct guestfs_statvfs *val; /* Elements. */\n"
20378 #: ../src/guestfs-structs.pod:156
20381 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
20382 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
20387 #: ../src/guestfs-structs.pod:159
20388 msgid "guestfs_dirent"
20392 #: ../src/guestfs-structs.pod:161
20395 " struct guestfs_dirent {\n"
20404 #: ../src/guestfs-structs.pod:167
20407 " struct guestfs_dirent_list {\n"
20408 " uint32_t len; /* Number of elements in list. */\n"
20409 " struct guestfs_dirent *val; /* Elements. */\n"
20415 #: ../src/guestfs-structs.pod:172
20418 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
20419 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
20424 #: ../src/guestfs-structs.pod:177
20427 " struct guestfs_version {\n"
20428 " int64_t major;\n"
20429 " int64_t minor;\n"
20430 " int64_t release;\n"
20437 #: ../src/guestfs-structs.pod:184
20440 " struct guestfs_version_list {\n"
20441 " uint32_t len; /* Number of elements in list. */\n"
20442 " struct guestfs_version *val; /* Elements. */\n"
20448 #: ../src/guestfs-structs.pod:189
20451 " void guestfs_free_version (struct guestfs_free_version *);\n"
20452 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
20457 #: ../src/guestfs-structs.pod:192
20458 msgid "guestfs_xattr"
20462 #: ../src/guestfs-structs.pod:194
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"
20475 #: ../src/guestfs-structs.pod:201
20478 " struct guestfs_xattr_list {\n"
20479 " uint32_t len; /* Number of elements in list. */\n"
20480 " struct guestfs_xattr *val; /* Elements. */\n"
20486 #: ../src/guestfs-structs.pod:206
20489 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
20490 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
20495 #: ../src/guestfs-structs.pod:209
20496 msgid "guestfs_inotify_event"
20500 #: ../src/guestfs-structs.pod:211
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"
20513 #: ../src/guestfs-structs.pod:218
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"
20524 #: ../src/guestfs-structs.pod:223
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"
20533 #: ../src/guestfs-structs.pod:226
20534 msgid "guestfs_partition"
20538 #: ../src/guestfs-structs.pod:228
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"
20551 #: ../src/guestfs-structs.pod:235
20554 " struct guestfs_partition_list {\n"
20555 " uint32_t len; /* Number of elements in list. */\n"
20556 " struct guestfs_partition *val; /* Elements. */\n"
20562 #: ../src/guestfs-structs.pod:240
20565 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
20566 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
20571 #: ../src/guestfs-structs.pod:243
20572 msgid "guestfs_application"
20576 #: ../src/guestfs-structs.pod:245
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"
20597 #: ../src/guestfs-structs.pod:260
20600 " struct guestfs_application_list {\n"
20601 " uint32_t len; /* Number of elements in list. */\n"
20602 " struct guestfs_application *val; /* Elements. */\n"
20608 #: ../src/guestfs-structs.pod:265
20611 " void guestfs_free_application (struct guestfs_free_application *);\n"
20612 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
20617 #: ../fish/guestfish.pod:5
20618 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
20622 #: ../fish/guestfish.pod:9
20625 " guestfish [--options] [commands]\n"
20630 #: ../fish/guestfish.pod:11
20638 #: ../fish/guestfish.pod:13
20641 " guestfish [--ro|--rw] -a disk.img\n"
20646 #: ../fish/guestfish.pod:15
20649 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
20654 #: ../fish/guestfish.pod:17
20657 " guestfish -d libvirt-domain\n"
20662 #: ../fish/guestfish.pod:19
20665 " guestfish [--ro|--rw] -a disk.img -i\n"
20670 #: ../fish/guestfish.pod:21
20673 " guestfish -d libvirt-domain -i\n"
20678 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15
20679 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:64
20681 msgstr "ПОПЕРЕДЖЕННЯ"
20684 #: ../fish/guestfish.pod:25
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 "
20693 #: ../fish/guestfish.pod:32
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)>."
20701 #: ../fish/guestfish.pod:36
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)> "
20710 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:1007
20711 #: ../fuse/guestmount.pod:39 ../tools/virt-tar.pl:50
20716 #: ../fish/guestfish.pod:43
20717 msgid "As an interactive shell"
20721 #: ../fish/guestfish.pod:45
20729 #: ../fish/guestfish.pod:47
20732 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
20733 " editing virtual machine filesystems.\n"
20738 #: ../fish/guestfish.pod:50
20741 " Type: 'help' for a list of commands\n"
20742 " 'man' to read the manual\n"
20743 " 'quit' to quit the shell\n"
20748 #: ../fish/guestfish.pod:54
20751 " ><fs> add-ro disk.img\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"
20760 " # Created by anaconda\n"
20767 #: ../fish/guestfish.pod:67
20768 msgid "From shell scripts"
20772 #: ../fish/guestfish.pod:69
20773 msgid "Create a new C</etc/motd> file in a guest or disk image:"
20777 #: ../fish/guestfish.pod:71
20780 " guestfish <<_EOF_\n"
20783 " mount /dev/vg_guest/lv_root /\n"
20784 " write /etc/motd \"Welcome, new users\"\n"
20790 #: ../fish/guestfish.pod:78
20791 msgid "List the LVM logical volumes in a disk image:"
20795 #: ../fish/guestfish.pod:80
20798 " guestfish -a disk.img --ro <<_EOF_\n"
20806 #: ../fish/guestfish.pod:85
20807 msgid "List all the filesystems in a disk image:"
20811 #: ../fish/guestfish.pod:87
20814 " guestfish -a disk.img --ro <<_EOF_\n"
20816 " list-filesystems\n"
20822 #: ../fish/guestfish.pod:92
20823 msgid "On one command line"
20827 #: ../fish/guestfish.pod:94
20828 msgid "Update C</etc/resolv.conf> in a guest:"
20832 #: ../fish/guestfish.pod:96
20836 " add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
20837 " write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
20842 #: ../fish/guestfish.pod:100
20843 msgid "Edit C</boot/grub/grub.conf> interactively:"
20847 #: ../fish/guestfish.pod:102
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"
20858 #: ../fish/guestfish.pod:107
20859 msgid "Mount disks automatically"
20863 #: ../fish/guestfish.pod:109
20865 "Use the I<-i> option to automatically mount the disks from a virtual "
20870 #: ../fish/guestfish.pod:112
20873 " guestfish --ro -a disk.img -i cat /etc/group\n"
20878 #: ../fish/guestfish.pod:114
20881 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
20886 #: ../fish/guestfish.pod:116
20887 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
20891 #: ../fish/guestfish.pod:118
20894 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
20899 #: ../fish/guestfish.pod:120
20900 msgid "As a script interpreter"
20904 #: ../fish/guestfish.pod:122
20905 msgid "Create a 100MB disk containing an ext2-formatted partition:"
20909 #: ../fish/guestfish.pod:124
20912 " #!/usr/bin/guestfish -f\n"
20913 " sparse test1.img 100M\n"
20915 " part-disk /dev/sda mbr\n"
20916 " mkfs ext2 /dev/sda1\n"
20921 #: ../fish/guestfish.pod:130
20922 msgid "Start with a prepared disk"
20926 #: ../fish/guestfish.pod:132
20928 "An alternate way to create a 100MB disk called C<test1.img> containing a "
20929 "single ext2-formatted partition:"
20933 #: ../fish/guestfish.pod:135
20936 " guestfish -N fs\n"
20941 #: ../fish/guestfish.pod:137
20942 msgid "To list what is available do:"
20946 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:998
20949 " guestfish -N help | less\n"
20954 #: ../fish/guestfish.pod:141
20955 msgid "Remote control"
20956 msgstr "Дистанційне керування"
20959 #: ../fish/guestfish.pod:143
20962 " eval \"`guestfish --listen`\"\n"
20963 " guestfish --remote add-ro disk.img\n"
20964 " guestfish --remote run\n"
20965 " guestfish --remote lvs\n"
20968 " eval \"`guestfish --listen`\"\n"
20969 " guestfish --remote add-ro disk.img\n"
20970 " guestfish --remote run\n"
20971 " guestfish --remote lvs\n"
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
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
20991 #: ../fish/guestfish.pod:154
20992 msgid "Displays general help on options."
20996 #: ../fish/guestfish.pod:156
21001 #: ../fish/guestfish.pod:158
21002 msgid "B<--cmd-help>"
21003 msgstr "B<--cmd-help>"
21006 #: ../fish/guestfish.pod:160
21007 msgid "Lists all available guestfish commands."
21011 #: ../fish/guestfish.pod:162
21013 msgstr "B<-h команда>"
21016 #: ../fish/guestfish.pod:164
21017 msgid "B<--cmd-help cmd>"
21018 msgstr "B<--cmd-help команда>"
21021 #: ../fish/guestfish.pod:166
21022 msgid "Displays detailed help on a single command C<cmd>."
21026 #: ../fish/guestfish.pod:168
21027 msgid "B<-a image>"
21028 msgstr "B<-a образ>"
21031 #: ../fish/guestfish.pod:170
21032 msgid "B<--add image>"
21033 msgstr "B<--add образ>"
21036 #: ../fish/guestfish.pod:172
21037 msgid "Add a block device or virtual machine image to the shell."
21041 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:91
21043 "The format of the disk image is auto-detected. To override this and force a"
21044 " particular format use the I<--format=..> option."
21048 #: ../fish/guestfish.pod:177
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."
21056 #: ../fish/guestfish.pod:181
21058 msgstr "B<-c адреса>"
21061 #: ../fish/guestfish.pod:183
21062 msgid "B<--connect URI>"
21063 msgstr "B<--connect адреса>"
21066 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:96
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."
21073 #: ../fish/guestfish.pod:189
21078 #: ../fish/guestfish.pod:191
21080 "If using the I<--listen> option and a csh-like shell, use this option. See "
21081 "section L</REMOTE CONTROL AND CSH> below."
21085 #: ../fish/guestfish.pod:194
21086 msgid "B<-d libvirt-domain>"
21087 msgstr "B<-d домен-libvirt>"
21090 #: ../fish/guestfish.pod:196
21091 msgid "B<--domain libvirt-domain>"
21092 msgstr "B<--domain домен-libvirt>"
21095 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:102
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."
21103 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:106
21104 msgid "Domain UUIDs can be used instead of names."
21108 #: ../fish/guestfish.pod:204
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."
21116 #: ../fish/guestfish.pod:208
21121 #: ../fish/guestfish.pod:210
21122 msgid "B<--no-dest-paths>"
21123 msgstr "B<--no-dest-paths>"
21126 #: ../fish/guestfish.pod:212
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."
21135 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:120
21136 msgid "B<--echo-keys>"
21137 msgstr "B<--echo-keys>"
21140 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:122
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."
21149 #: ../fish/guestfish.pod:224
21151 msgstr "B<-f файл>"
21154 #: ../fish/guestfish.pod:226
21155 msgid "B<--file file>"
21156 msgstr "B<--file файл>"
21159 #: ../fish/guestfish.pod:228
21160 msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
21164 #: ../fish/guestfish.pod:231
21167 " #!/usr/bin/guestfish -f\n"
21170 " #!/usr/bin/guestfish -f\n"
21174 #: ../fish/guestfish.pod:233
21175 msgid "B<--format=raw|qcow2|..>"
21176 msgstr "B<--format=raw|qcow2|..>"
21179 #: ../fish/guestfish.pod:235
21180 msgid "B<--format>"
21181 msgstr "B<--format>"
21184 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:129
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."
21193 #: ../fish/guestfish.pod:244
21196 " guestfish --format=raw -a disk.img\n"
21199 " guestfish --format=raw -a disk.img\n"
21203 #: ../fish/guestfish.pod:246
21204 msgid "forces raw format (no auto-detection) for C<disk.img>."
21208 #: ../fish/guestfish.pod:248
21211 " guestfish --format=raw -a disk.img --format -a another.img\n"
21214 " guestfish --format=raw -a disk.img --format -a another.img\n"
21218 #: ../fish/guestfish.pod:250
21220 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
21221 "detection for C<another.img>."
21225 #: ../fish/guestfish.pod:253
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>."
21233 #: ../fish/guestfish.pod:258
21238 #: ../fish/guestfish.pod:260
21239 msgid "B<--inspector>"
21240 msgstr "B<--inspector>"
21243 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:149
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 "
21251 #: ../fish/guestfish.pod:266
21252 msgid "Typical usage is either:"
21256 #: ../fish/guestfish.pod:268
21259 " guestfish -d myguest -i\n"
21262 " guestfish -d myguest -i\n"
21266 #: ../fish/guestfish.pod:270
21267 msgid "(for an inactive libvirt domain called I<myguest>), or:"
21271 #: ../fish/guestfish.pod:272
21274 " guestfish --ro -d myguest -i\n"
21277 " guestfish --ro -d myguest -i\n"
21281 #: ../fish/guestfish.pod:274
21282 msgid "(for active domains, readonly), or specify the block device directly:"
21286 #: ../fish/guestfish.pod:276
21289 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
21292 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
21296 #: ../fish/guestfish.pod:278
21298 "Note that the command line syntax changed slightly over older versions of "
21299 "guestfish. You can still use the old syntax:"
21303 #: ../fish/guestfish.pod:281
21306 " guestfish [--ro] -i disk.img\n"
21309 " guestfish [--ro] -i disk.img\n"
21313 #: ../fish/guestfish.pod:283
21316 " guestfish [--ro] -i libvirt-domain\n"
21321 #: ../fish/guestfish.pod:285
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."
21328 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:153
21329 msgid "B<--keys-from-stdin>"
21330 msgstr "B<--keys-from-stdin>"
21333 #: ../fish/guestfish.pod:291 ../fuse/guestmount.pod:155
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>."
21340 #: ../fish/guestfish.pod:294
21341 msgid "B<--listen>"
21342 msgstr "B<--listen>"
21345 #: ../fish/guestfish.pod:296
21347 "Fork into the background and listen for remote commands. See section "
21348 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
21352 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:158
21357 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:160
21359 "Connect to a live virtual machine. (Experimental, see "
21360 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
21364 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:163
21365 msgid "B<-m dev[:mountpoint[:options]]>"
21369 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:165
21370 msgid "B<--mount dev[:mountpoint[:options]]>"
21374 #: ../fish/guestfish.pod:308
21375 msgid "Mount the named partition or logical volume on the given mountpoint."
21379 #: ../fish/guestfish.pod:310
21380 msgid "If the mountpoint is omitted, it defaults to C</>."
21384 #: ../fish/guestfish.pod:312
21385 msgid "You have to mount something on C</> before most commands will work."
21389 #: ../fish/guestfish.pod:314
21391 "If any I<-m> or I<--mount> options are given, the guest is automatically "
21396 #: ../fish/guestfish.pod:317
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."
21405 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:173
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:"
21416 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:181
21419 " -m /dev/sda1:/:acl,user_xattr\n"
21424 #: ../fish/guestfish.pod:333
21425 msgid "Using this flag is equivalent to using the C<mount-options> command."
21429 #: ../fish/guestfish.pod:335
21434 #: ../fish/guestfish.pod:337
21435 msgid "B<--no-sync>"
21436 msgstr "B<--no-sync>"
21439 #: ../fish/guestfish.pod:339
21441 "Disable autosync. This is enabled by default. See the discussion of "
21442 "autosync in the L<guestfs(3)> manpage."
21446 #: ../fish/guestfish.pod:342
21451 #: ../fish/guestfish.pod:344
21452 msgid "B<--new type>"
21453 msgstr "B<--new тип>"
21456 #: ../fish/guestfish.pod:346
21458 msgstr "B<-N help>"
21461 #: ../fish/guestfish.pod:348
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 "
21470 #: ../fish/guestfish.pod:353
21471 msgid "B<--progress-bars>"
21472 msgstr "B<--progress-bars>"
21475 #: ../fish/guestfish.pod:355
21476 msgid "Enable progress bars, even when guestfish is used non-interactively."
21480 #: ../fish/guestfish.pod:357
21482 "Progress bars are enabled by default when guestfish is used as an "
21483 "interactive shell."
21487 #: ../fish/guestfish.pod:360
21488 msgid "B<--no-progress-bars>"
21489 msgstr "B<--no-progress-bars>"
21492 #: ../fish/guestfish.pod:362
21493 msgid "Disable progress bars."
21497 #: ../fish/guestfish.pod:364
21498 msgid "B<--remote[=pid]>"
21499 msgstr "B<--remote[=pid]>"
21502 #: ../fish/guestfish.pod:366
21504 "Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
21505 "CONTROL GUESTFISH OVER A SOCKET> below."
21509 #: ../fish/guestfish.pod:369
21514 #: ../fish/guestfish.pod:371
21519 #: ../fish/guestfish.pod:373
21521 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
21522 "mounts are done read-only."
21526 #: ../fish/guestfish.pod:376
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."
21534 #: ../fish/guestfish.pod:380
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."
21542 #: ../fish/guestfish.pod:384
21543 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
21547 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:237
21548 msgid "B<--selinux>"
21549 msgstr "B<--selinux>"
21552 #: ../fish/guestfish.pod:388
21553 msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
21557 #: ../fish/guestfish.pod:390
21562 #: ../fish/guestfish.pod:392
21563 msgid "B<--verbose>"
21564 msgstr "B<--verbose>"
21567 #: ../fish/guestfish.pod:394
21569 "Enable very verbose messages. This is particularly useful if you find a "
21574 #: ../fish/guestfish.pod:397
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>"
21586 #: ../fish/guestfish.pod:401
21587 msgid "Display the guestfish / libguestfs version number and exit."
21591 #: ../fish/guestfish.pod:403
21596 #: ../fish/guestfish.pod:405
21601 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:251
21603 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
21604 "mounts are done read-write."
21608 #: ../fish/guestfish.pod:410
21609 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
21613 #: ../fish/guestfish.pod:412
21618 #: ../fish/guestfish.pod:414
21619 msgid "Echo each command before executing it."
21623 #: ../fish/guestfish.pod:418
21624 msgid "COMMANDS ON COMMAND LINE"
21628 #: ../fish/guestfish.pod:420
21630 "Any additional (non-option) arguments are treated as commands to execute."
21634 #: ../fish/guestfish.pod:423
21636 "Commands to execute should be separated by a colon (C<:>), where the colon "
21637 "is a separate parameter. Thus:"
21641 #: ../fish/guestfish.pod:426
21644 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
21649 #: ../fish/guestfish.pod:428
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."
21657 #: ../fish/guestfish.pod:432
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."
21665 #: ../fish/guestfish.pod:437
21666 msgid "USING launch (OR run)"
21670 #: ../fish/guestfish.pod:439
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:"
21678 #: ../fish/guestfish.pod:447
21679 msgid "add or -a/--add"
21683 #: ../fish/guestfish.pod:451
21684 msgid "launch (aka run)"
21688 #: ../fish/guestfish.pod:455
21689 msgid "mount or -m/--mount"
21693 #: ../fish/guestfish.pod:459
21694 msgid "any other commands"
21698 #: ../fish/guestfish.pod:463
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."
21705 #: ../fish/guestfish.pod:466
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."
21713 #: ../fish/guestfish.pod:471
21714 msgid "OPENING DISKS FOR READ AND WRITE"
21718 #: ../fish/guestfish.pod:473
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."
21726 #: ../fish/guestfish.pod:478
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>."
21734 #: ../fish/guestfish.pod:482
21736 "This matters: If you accidentally open a live VM disk image writable then "
21737 "you will cause irreversible disk corruption."
21741 #: ../fish/guestfish.pod:485
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."
21751 #: ../fish/guestfish.pod:492
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 "
21761 #: ../fish/guestfish.pod:498
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."
21768 #: ../fish/guestfish.pod:501
21773 #: ../fish/guestfish.pod:503
21775 "You can quote ordinary parameters using either single or double quotes. For"
21780 #: ../fish/guestfish.pod:506
21783 " add \"file with a space.img\"\n"
21788 #: ../fish/guestfish.pod:508
21791 " rm '/file name'\n"
21796 #: ../fish/guestfish.pod:510
21804 #: ../fish/guestfish.pod:512
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."
21813 #: ../fish/guestfish.pod:517
21816 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
21817 " command \"/bin/echo 'foo bar'\"\n"
21818 " command \"/bin/echo \\'foo\\'\"\n"
21823 #: ../fish/guestfish.pod:521
21824 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
21828 #: ../fish/guestfish.pod:523
21830 "In double-quoted arguments (only) use backslash to insert special "
21835 #: ../fish/guestfish.pod:528
21840 #: ../fish/guestfish.pod:530
21841 msgid "Alert (bell) character."
21845 #: ../fish/guestfish.pod:532
21850 #: ../fish/guestfish.pod:534
21851 msgid "Backspace character."
21855 #: ../fish/guestfish.pod:536
21860 #: ../fish/guestfish.pod:538
21861 msgid "Form feed character."
21865 #: ../fish/guestfish.pod:540
21870 #: ../fish/guestfish.pod:542
21871 msgid "Newline character."
21875 #: ../fish/guestfish.pod:544
21880 #: ../fish/guestfish.pod:546
21881 msgid "Carriage return character."
21885 #: ../fish/guestfish.pod:548
21890 #: ../fish/guestfish.pod:550
21891 msgid "Horizontal tab character."
21895 #: ../fish/guestfish.pod:552
21900 #: ../fish/guestfish.pod:554
21901 msgid "Vertical tab character."
21905 #: ../fish/guestfish.pod:556
21910 #: ../fish/guestfish.pod:558
21911 msgid "A literal double quote character."
21915 #: ../fish/guestfish.pod:560
21920 #: ../fish/guestfish.pod:562
21922 "A character with octal value I<ooo>. There must be precisely 3 octal digits"
21927 #: ../fish/guestfish.pod:565
21932 #: ../fish/guestfish.pod:567
21934 "A character with hex value I<hh>. There must be precisely 2 hex digits."
21938 #: ../fish/guestfish.pod:570
21940 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
21945 #: ../fish/guestfish.pod:573
21950 #: ../fish/guestfish.pod:575
21951 msgid "A literal backslash character."
21955 #: ../fish/guestfish.pod:579
21956 msgid "OPTIONAL ARGUMENTS"
21960 #: ../fish/guestfish.pod:581
21962 "Some commands take optional arguments. These arguments appear in this "
21963 "documentation as C<[argname:..]>. You can use them as in these examples:"
21967 #: ../fish/guestfish.pod:585
21970 " add-drive-opts filename\n"
21975 #: ../fish/guestfish.pod:587
21978 " add-drive-opts filename readonly:true\n"
21983 #: ../fish/guestfish.pod:589
21986 " add-drive-opts filename format:qcow2 readonly:false\n"
21991 #: ../fish/guestfish.pod:591
21993 "Each optional argument can appear at most once. All optional arguments must"
21994 " appear after the required ones."
21998 #: ../fish/guestfish.pod:594
22003 #: ../fish/guestfish.pod:596
22005 "This section applies to all commands which can take integers as parameters."
22009 #: ../fish/guestfish.pod:599
22010 msgid "SIZE SUFFIX"
22014 #: ../fish/guestfish.pod:601
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:"
22021 #: ../fish/guestfish.pod:607
22022 msgid "B<k> or B<K> or B<KiB>"
22023 msgstr "B<k>, B<K> або B<KiB>"
22026 #: ../fish/guestfish.pod:609
22027 msgid "The size in kilobytes (multiplied by 1024)."
22031 #: ../fish/guestfish.pod:611
22036 #: ../fish/guestfish.pod:613
22037 msgid "The size in SI 1000 byte units."
22041 #: ../fish/guestfish.pod:615
22042 msgid "B<M> or B<MiB>"
22043 msgstr "B<M> або B<MiB>"
22046 #: ../fish/guestfish.pod:617
22047 msgid "The size in megabytes (multiplied by 1048576)."
22051 #: ../fish/guestfish.pod:619
22056 #: ../fish/guestfish.pod:621
22057 msgid "The size in SI 1000000 byte units."
22061 #: ../fish/guestfish.pod:623
22062 msgid "B<G> or B<GiB>"
22063 msgstr "B<G> або B<GiB>"
22066 #: ../fish/guestfish.pod:625
22067 msgid "The size in gigabytes (multiplied by 2**30)."
22068 msgstr "Розмір у гігабайтах (з множником 2**30)."
22071 #: ../fish/guestfish.pod:627
22076 #: ../fish/guestfish.pod:629
22077 msgid "The size in SI 10**9 byte units."
22078 msgstr "Розмір у одиницях СІ: 10**9 байтів."
22081 #: ../fish/guestfish.pod:631
22082 msgid "B<T> or B<TiB>"
22083 msgstr "B<T> або B<TiB>"
22086 #: ../fish/guestfish.pod:633
22087 msgid "The size in terabytes (multiplied by 2**40)."
22088 msgstr "Розмір у терабайтах (з множником 2**40)."
22091 #: ../fish/guestfish.pod:635
22096 #: ../fish/guestfish.pod:637
22097 msgid "The size in SI 10**12 byte units."
22101 #: ../fish/guestfish.pod:639
22102 msgid "B<P> or B<PiB>"
22103 msgstr "B<P> або B<PiB>"
22106 #: ../fish/guestfish.pod:641
22107 msgid "The size in petabytes (multiplied by 2**50)."
22111 #: ../fish/guestfish.pod:643
22116 #: ../fish/guestfish.pod:645
22117 msgid "The size in SI 10**15 byte units."
22121 #: ../fish/guestfish.pod:647
22122 msgid "B<E> or B<EiB>"
22123 msgstr "B<E> або B<EiB>"
22126 #: ../fish/guestfish.pod:649
22127 msgid "The size in exabytes (multiplied by 2**60)."
22131 #: ../fish/guestfish.pod:651
22136 #: ../fish/guestfish.pod:653
22137 msgid "The size in SI 10**18 byte units."
22141 #: ../fish/guestfish.pod:655
22142 msgid "B<Z> or B<ZiB>"
22143 msgstr "B<Z> або B<ZiB>"
22146 #: ../fish/guestfish.pod:657
22147 msgid "The size in zettabytes (multiplied by 2**70)."
22151 #: ../fish/guestfish.pod:659
22156 #: ../fish/guestfish.pod:661
22157 msgid "The size in SI 10**21 byte units."
22161 #: ../fish/guestfish.pod:663
22162 msgid "B<Y> or B<YiB>"
22163 msgstr "B<Y> або B<YiB>"
22166 #: ../fish/guestfish.pod:665
22167 msgid "The size in yottabytes (multiplied by 2**80)."
22171 #: ../fish/guestfish.pod:667
22176 #: ../fish/guestfish.pod:669
22177 msgid "The size in SI 10**24 byte units."
22181 #: ../fish/guestfish.pod:675
22184 " truncate-size /file 1G\n"
22189 #: ../fish/guestfish.pod:677
22190 msgid "would truncate the file to 1 gigabyte."
22194 #: ../fish/guestfish.pod:679
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."
22202 #: ../fish/guestfish.pod:683
22203 msgid "OCTAL AND HEXADECIMAL NUMBERS"
22207 #: ../fish/guestfish.pod:685
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:"
22214 #: ../fish/guestfish.pod:688
22217 " 1234 decimal number 1234\n"
22218 " 02322 octal number, equivalent to decimal 1234\n"
22219 " 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
22224 #: ../fish/guestfish.pod:692
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):"
22232 #: ../fish/guestfish.pod:696
22235 " chmod 0777 /public # OK\n"
22236 " chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
22241 #: ../fish/guestfish.pod:699
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>)."
22249 #: ../fish/guestfish.pod:703
22250 msgid "WILDCARDS AND GLOBBING"
22254 #: ../fish/guestfish.pod:705
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 "
22262 #: ../fish/guestfish.pod:709
22270 #: ../fish/guestfish.pod:711
22272 "Assuming you don't have a directory called literally C</home/*> then the "
22273 "above command will return an error."
22277 #: ../fish/guestfish.pod:714
22278 msgid "To perform wildcard expansion, use the C<glob> command."
22282 #: ../fish/guestfish.pod:716
22285 " glob rm-rf /home/*\n"
22290 #: ../fish/guestfish.pod:718
22292 "runs C<rm-rf> on each path that matches (ie. potentially running the command"
22293 " many times), equivalent to:"
22297 #: ../fish/guestfish.pod:721
22300 " rm-rf /home/jim\n"
22301 " rm-rf /home/joe\n"
22302 " rm-rf /home/mary\n"
22307 #: ../fish/guestfish.pod:725
22308 msgid "C<glob> only works on simple guest paths and not on device names."
22312 #: ../fish/guestfish.pod:727
22314 "If you have several parameters, each containing a wildcard, then glob will "
22315 "perform a Cartesian product."
22319 #: ../fish/guestfish.pod:730
22324 #: ../fish/guestfish.pod:732
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:"
22332 #: ../fish/guestfish.pod:736
22335 " # this is a comment\n"
22336 " # this is a comment\n"
22337 " foo # NOT a comment\n"
22342 #: ../fish/guestfish.pod:740
22343 msgid "Blank lines are also ignored."
22347 #: ../fish/guestfish.pod:742
22348 msgid "RUNNING COMMANDS LOCALLY"
22352 #: ../fish/guestfish.pod:744
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:"
22359 #: ../fish/guestfish.pod:748
22363 " tgz-out /remote local/remote-data.tar.gz\n"
22368 #: ../fish/guestfish.pod:751
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>)."
22376 #: ../fish/guestfish.pod:755
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."
22383 #: ../fish/guestfish.pod:758
22384 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
22388 #: ../fish/guestfish.pod:760
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."
22396 #: ../fish/guestfish.pod:764
22398 "Thus you can use shell script to construct arbitrary guestfish commands "
22399 "which are then parsed by guestfish."
22403 #: ../fish/guestfish.pod:767
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:"
22411 #: ../fish/guestfish.pod:772
22414 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
22419 #: ../fish/guestfish.pod:774
22420 msgid "or with names like C</foo.001>:"
22424 #: ../fish/guestfish.pod:776
22427 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
22432 #: ../fish/guestfish.pod:778
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."
22442 #: ../fish/guestfish.pod:784
22447 #: ../fish/guestfish.pod:786
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"
22455 #: ../fish/guestfish.pod:790
22458 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
22463 #: ../fish/guestfish.pod:792
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:"
22471 #: ../fish/guestfish.pod:797
22474 " hexdump /bin/ls | head\n"
22475 " list-devices | tail -1\n"
22476 " tgz-out / - | tar ztf -\n"
22481 #: ../fish/guestfish.pod:801
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."
22490 #: ../fish/guestfish.pod:806
22492 "To use a literal argument which begins with a pipe symbol, you have to quote"
22497 #: ../fish/guestfish.pod:809
22505 #: ../fish/guestfish.pod:811
22506 msgid "HOME DIRECTORIES"
22510 #: ../fish/guestfish.pod:813
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)."
22518 #: ../fish/guestfish.pod:817
22520 "Note that home directory expansion happens for users known I<on the host>, "
22521 "not in the guest filesystem."
22525 #: ../fish/guestfish.pod:820
22527 "To use a literal argument which begins with a tilde, you have to quote it, "
22532 #: ../fish/guestfish.pod:823
22540 #: ../fish/guestfish.pod:827
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."
22549 #: ../fish/guestfish.pod:832
22550 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
22554 #: ../fish/guestfish.pod:834
22557 " ><fs> vfs-type /dev/sda2\n"
22563 #: ../fish/guestfish.pod:837
22565 "Then open those devices using L</luks-open>. This creates a device-mapper "
22566 "device called C</dev/mapper/luksdev>."
22570 #: ../fish/guestfish.pod:840
22573 " ><fs> luks-open /dev/sda2 luksdev\n"
22574 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
22579 #: ../fish/guestfish.pod:843
22581 "Finally you have to tell LVM to scan for volume groups on the newly created "
22586 #: ../fish/guestfish.pod:846
22590 " vg-activate-all true\n"
22595 #: ../fish/guestfish.pod:849
22596 msgid "The logical volume(s) can now be mounted in the usual way."
22600 #: ../fish/guestfish.pod:851
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:"
22608 #: ../fish/guestfish.pod:855
22611 " vg-activate false /dev/VG\n"
22612 " luks-close /dev/mapper/luksdev\n"
22617 #: ../fish/guestfish.pod:858
22618 msgid "WINDOWS PATHS"
22622 #: ../fish/guestfish.pod:860
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 "
22630 #: ../fish/guestfish.pod:864
22633 " file /WINDOWS/system32/config/system.LOG\n"
22638 #: ../fish/guestfish.pod:866
22641 " file win:\\windows\\system32\\config\\system.log\n"
22646 #: ../fish/guestfish.pod:868
22649 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
22654 #: ../fish/guestfish.pod:870
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:"
22664 #: ../fish/guestfish.pod:876
22667 " win:e:\\foo\\bar => /e/FOO/bar\n"
22672 #: ../fish/guestfish.pod:878
22673 msgid "This only works in argument positions that expect a path."
22677 #: ../fish/guestfish.pod:880
22678 msgid "UPLOADING AND DOWNLOADING FILES"
22682 #: ../fish/guestfish.pod:882
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:"
22690 #: ../fish/guestfish.pod:886
22698 #: ../fish/guestfish.pod:888
22700 "reads stdin and creates from that a file C</foo> in the disk image, and:"
22704 #: ../fish/guestfish.pod:891
22707 " tar-out /etc - | tar tf -\n"
22712 #: ../fish/guestfish.pod:893
22714 "writes the tarball to stdout and then pipes that into the external \"tar\" "
22715 "command (see L</PIPES>)."
22719 #: ../fish/guestfish.pod:896
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:"
22727 #: ../fish/guestfish.pod:900
22730 " upload -<<END /foo\n"
22739 #: ../fish/guestfish.pod:906
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)."
22747 #: ../fish/guestfish.pod:910
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)."
22754 #: ../fish/guestfish.pod:913
22755 msgid "EXIT ON ERROR BEHAVIOUR"
22759 #: ../fish/guestfish.pod:915
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)."
22767 #: ../fish/guestfish.pod:920
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."
22774 #: ../fish/guestfish.pod:924
22775 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
22779 #: ../fish/guestfish.pod:926
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."
22788 #: ../fish/guestfish.pod:931
22789 msgid "Start a guestfish server process using:"
22793 #: ../fish/guestfish.pod:933
22796 " eval \"`guestfish --listen`\"\n"
22801 #: ../fish/guestfish.pod:935
22802 msgid "and then send it commands by doing:"
22806 #: ../fish/guestfish.pod:937
22809 " guestfish --remote cmd [...]\n"
22814 #: ../fish/guestfish.pod:939
22815 msgid "To cause the server to exit, send it the exit command:"
22819 #: ../fish/guestfish.pod:941
22822 " guestfish --remote exit\n"
22827 #: ../fish/guestfish.pod:943
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 "
22835 #: ../fish/guestfish.pod:947
22836 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
22840 #: ../fish/guestfish.pod:949
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:"
22848 #: ../fish/guestfish.pod:953
22851 " eval \"`guestfish --listen`\"\n"
22852 " pid1=$GUESTFISH_PID\n"
22853 " eval \"`guestfish --listen`\"\n"
22854 " pid2=$GUESTFISH_PID\n"
22856 " guestfish --remote=$pid1 cmd\n"
22857 " guestfish --remote=$pid2 cmd\n"
22862 #: ../fish/guestfish.pod:961
22863 msgid "REMOTE CONTROL AND CSH"
22867 #: ../fish/guestfish.pod:963
22869 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
22874 #: ../fish/guestfish.pod:966
22877 " eval \"`guestfish --listen --csh`\"\n"
22882 #: ../fish/guestfish.pod:968
22883 msgid "REMOTE CONTROL DETAILS"
22887 #: ../fish/guestfish.pod:970
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."
22895 #: ../fish/guestfish.pod:974
22896 msgid "Guestfish client and server versions must match exactly."
22900 #: ../fish/guestfish.pod:976
22901 msgid "PREPARED DISK IMAGES"
22905 #: ../fish/guestfish.pod:978
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>)."
22915 #: ../fish/guestfish.pod:984
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 "
22923 #: ../fish/guestfish.pod:988
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."
22935 #: ../fish/guestfish.pod:996
22936 msgid "To list the available types and any extra parameters they take, run:"
22940 #: ../fish/guestfish.pod:1000
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."
22947 #: ../fish/guestfish.pod:1004
22949 "If any I<-N> or I<--new> options are given, the guest is automatically "
22954 #: ../fish/guestfish.pod:1009
22955 msgid "Create a 100MB disk with an ext4-formatted partition:"
22959 #: ../fish/guestfish.pod:1011
22962 " guestfish -N fs:ext4\n"
22967 #: ../fish/guestfish.pod:1013
22968 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
22972 #: ../fish/guestfish.pod:1015
22975 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
22980 #: ../fish/guestfish.pod:1017
22981 msgid "Create a blank 200MB disk:"
22985 #: ../fish/guestfish.pod:1019
22988 " guestfish -N disk:200M\n"
22993 #: ../fish/guestfish.pod:1021
22994 msgid "PROGRESS BARS"
22998 #: ../fish/guestfish.pod:1023
23000 "Some (not all) long-running commands send progress notification messages as "
23001 "they are running. Guestfish turns these messages into progress bars."
23005 #: ../fish/guestfish.pod:1027
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"
23013 #: ../fish/guestfish.pod:1031
23016 " ><fs> copy-size /large-file /another-file 2048M\n"
23017 " / 10% [#####-----------------------------------------] 00:30\n"
23022 #: ../fish/guestfish.pod:1034
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."
23033 #: ../fish/guestfish.pod:1041
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>."
23041 #: ../fish/guestfish.pod:1046
23042 msgid "GUESTFISH COMMANDS"
23046 #: ../fish/guestfish.pod:1048
23048 "The commands in this section are guestfish convenience commands, in other "
23049 "words, they are not part of the L<guestfs(3)> API."
23053 #: ../fish/guestfish.pod:1051
23058 #: ../fish/guestfish.pod:1053
23070 #: ../fish/guestfish.pod:1056
23071 msgid "Without any parameter, this provides general help."
23072 msgstr "Без параметра показує загальну довідкову інформацію."
23075 #: ../fish/guestfish.pod:1058
23076 msgid "With a C<cmd> parameter, this displays detailed help for that command."
23080 #: ../fish/guestfish.pod:1060
23081 msgid "quit | exit"
23085 #: ../fish/guestfish.pod:1062
23086 msgid "This exits guestfish. You can also use C<^D> key."
23090 #: ../fish/guestfish.pod:1064
23091 msgid "@FISH_COMMANDS@"
23095 #: ../fish/guestfish.pod:1066
23100 #: ../fish/guestfish.pod:1070 ../test-tool/libguestfs-test-tool.pod:77
23102 msgstr "КОД ВИХОДУ"
23105 #: ../fish/guestfish.pod:1072
23107 "guestfish returns 0 if the commands completed without error, or 1 if there "
23112 #: ../fish/guestfish.pod:1079
23117 #: ../fish/guestfish.pod:1081
23119 "The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
23124 #: ../fish/guestfish.pod:1084
23125 msgid "GUESTFISH_DISPLAY_IMAGE"
23129 #: ../fish/guestfish.pod:1086
23131 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
23132 "If not set, it uses L<display(1)>."
23136 #: ../fish/guestfish.pod:1089
23137 msgid "GUESTFISH_PID"
23141 #: ../fish/guestfish.pod:1091
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>."
23148 #: ../fish/guestfish.pod:1095
23153 #: ../fish/guestfish.pod:1097
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."
23160 #: ../fish/guestfish.pod:1101
23165 #: ../fish/guestfish.pod:1103
23167 "If compiled with GNU readline support, various files in the home directory "
23168 "can be used. See L</FILES>."
23172 #: ../fish/guestfish.pod:1112
23174 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
23175 "effect as using the B<-v> option."
23179 #: ../fish/guestfish.pod:1124
23181 "Set the path that guestfish uses to search for kernel and initrd.img. See "
23182 "the discussion of paths in L<guestfs(3)>."
23186 #: ../fish/guestfish.pod:1135
23187 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
23191 #: ../fish/guestfish.pod:1137
23193 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
23196 #: ../fish/guestfish.pod:1139
23198 "The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
23203 #: ../fish/guestfish.pod:1155 ../fuse/guestmount.pod:264
23208 #: ../fish/guestfish.pod:1159 ../fuse/guestmount.pod:268
23209 msgid "$HOME/.libguestfs-tools.rc"
23213 #: ../fish/guestfish.pod:1161 ../fuse/guestmount.pod:270
23214 msgid "/etc/libguestfs-tools.conf"
23218 #: ../fish/guestfish.pod:1163 ../fuse/guestmount.pod:272
23220 "This configuration file controls the default read-only or read-write mode "
23221 "(I<--ro> or I<--rw>)."
23225 #: ../fish/guestfish.pod:1166
23226 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
23230 #: ../fish/guestfish.pod:1168
23231 msgid "$HOME/.guestfish"
23235 #: ../fish/guestfish.pod:1170
23237 "If compiled with GNU readline support, then the command history is saved in "
23242 #: ../fish/guestfish.pod:1173
23243 msgid "$HOME/.inputrc"
23247 #: ../fish/guestfish.pod:1175
23248 msgid "/etc/inputrc"
23252 #: ../fish/guestfish.pod:1177
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>."
23260 #: ../fish/guestfish.pod:1181
23261 msgid "To write rules which only apply to guestfish, use:"
23265 #: ../fish/guestfish.pod:1183
23275 #: ../fish/guestfish.pod:1187
23277 "Variables that you can set in inputrc that change the behaviour of guestfish"
23278 " in useful ways include:"
23282 #: ../fish/guestfish.pod:1192
23283 msgid "completion-ignore-case (default: on)"
23287 #: ../fish/guestfish.pod:1194
23289 "By default, guestfish will ignore case when tab-completing paths on the "
23294 #: ../fish/guestfish.pod:1197
23297 " set completion-ignore-case off\n"
23302 #: ../fish/guestfish.pod:1199
23303 msgid "to make guestfish case sensitive."
23307 #: ../fish/guestfish.pod:1203
23312 #: ../fish/guestfish.pod:1205
23313 msgid "test2.img (etc)"
23317 #: ../fish/guestfish.pod:1207
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."
23326 #: ../fish/guestfish.pod:1216
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)>."
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
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."
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
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 "
23359 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
23360 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
23361 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
23362 "дізнатися з GNU General Public License."
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
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."
23376 #: ../fish/guestfish-actions.pod:1
23381 #: ../fish/guestfish-actions.pod:3
23384 " add-cdrom filename\n"
23389 #: ../fish/guestfish-actions.pod:15
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 "
23398 #: ../fish/guestfish-actions.pod:22
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."
23406 #: ../fish/guestfish-actions.pod:35
23408 msgstr "add-domain"
23411 #: ../fish/guestfish-actions.pod:37
23416 #: ../fish/guestfish-actions.pod:39
23419 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
23424 #: ../fish/guestfish-actions.pod:41
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 "
23433 #: ../fish/guestfish-actions.pod:76
23435 "The other optional parameters are passed directly through to L</add-drive-"
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
23445 "This command has one or more optional arguments. See L</OPTIONAL "
23450 #: ../fish/guestfish-actions.pod:81
23455 #: ../fish/guestfish-actions.pod:83
23458 " add-drive filename\n"
23461 " add-drive назва_файла\n"
23465 #: ../fish/guestfish-actions.pod:85
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."
23473 #: ../fish/guestfish-actions.pod:89
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."
23483 #: ../fish/guestfish-actions.pod:96
23484 msgid "add-drive-opts"
23485 msgstr "add-drive-opts"
23488 #: ../fish/guestfish-actions.pod:98
23493 #: ../fish/guestfish-actions.pod:100
23496 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
23501 #: ../fish/guestfish-actions.pod:127
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>."
23509 #: ../fish/guestfish-actions.pod:138
23511 "This rarely-used option lets you emulate the behaviour of the deprecated L"
23512 "</add-drive-with-if> call (q.v.)"
23516 #: ../fish/guestfish-actions.pod:145
23517 msgid "add-drive-ro"
23518 msgstr "add-drive-ro"
23521 #: ../fish/guestfish-actions.pod:147
23526 #: ../fish/guestfish-actions.pod:149
23529 " add-drive-ro filename\n"
23534 #: ../fish/guestfish-actions.pod:151
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."
23542 #: ../fish/guestfish-actions.pod:156
23543 msgid "add-drive-ro-with-if"
23547 #: ../fish/guestfish-actions.pod:158
23550 " add-drive-ro-with-if filename iface\n"
23555 #: ../fish/guestfish-actions.pod:160
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."
23562 #: ../fish/guestfish-actions.pod:170
23563 msgid "add-drive-with-if"
23567 #: ../fish/guestfish-actions.pod:172
23570 " add-drive-with-if filename iface\n"
23575 #: ../fish/guestfish-actions.pod:174
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."
23582 #: ../fish/guestfish-actions.pod:184
23587 #: ../fish/guestfish-actions.pod:186
23590 " aug-clear augpath\n"
23595 #: ../fish/guestfish-actions.pod:191
23600 #: ../fish/guestfish-actions.pod:193
23608 #: ../fish/guestfish-actions.pod:195
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."
23616 #: ../fish/guestfish-actions.pod:200
23617 msgid "aug-defnode"
23621 #: ../fish/guestfish-actions.pod:202
23624 " aug-defnode name expr val\n"
23629 #: ../fish/guestfish-actions.pod:207
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."
23637 #: ../fish/guestfish-actions.pod:215
23642 #: ../fish/guestfish-actions.pod:217
23645 " aug-defvar name expr\n"
23650 #: ../fish/guestfish-actions.pod:226
23655 #: ../fish/guestfish-actions.pod:228
23658 " aug-get augpath\n"
23663 #: ../fish/guestfish-actions.pod:233
23668 #: ../fish/guestfish-actions.pod:235
23671 " aug-init root flags\n"
23676 #: ../fish/guestfish-actions.pod:241
23677 msgid "You must call this before using any other L</aug-*> commands."
23681 #: ../fish/guestfish-actions.pod:276
23682 msgid "Do not load the tree in L</aug-init>."
23686 #: ../fish/guestfish-actions.pod:280
23687 msgid "To close the handle, you can call L</aug-close>."
23691 #: ../fish/guestfish-actions.pod:284
23696 #: ../fish/guestfish-actions.pod:286
23699 " aug-insert augpath label true|false\n"
23704 #: ../fish/guestfish-actions.pod:296
23709 #: ../fish/guestfish-actions.pod:298
23717 #: ../fish/guestfish-actions.pod:305
23722 #: ../fish/guestfish-actions.pod:307
23725 " aug-ls augpath\n"
23730 #: ../fish/guestfish-actions.pod:309
23732 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
23733 "resulting nodes into alphabetical order."
23737 #: ../fish/guestfish-actions.pod:312
23742 #: ../fish/guestfish-actions.pod:314
23745 " aug-match augpath\n"
23750 #: ../fish/guestfish-actions.pod:320
23755 #: ../fish/guestfish-actions.pod:322
23758 " aug-mv src dest\n"
23763 #: ../fish/guestfish-actions.pod:327
23768 #: ../fish/guestfish-actions.pod:329
23771 " aug-rm augpath\n"
23776 #: ../fish/guestfish-actions.pod:335
23781 #: ../fish/guestfish-actions.pod:337
23789 #: ../fish/guestfish-actions.pod:341
23791 "The flags which were passed to L</aug-init> affect exactly how files are "
23796 #: ../fish/guestfish-actions.pod:344
23801 #: ../fish/guestfish-actions.pod:346
23804 " aug-set augpath val\n"
23809 #: ../fish/guestfish-actions.pod:350
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."
23817 #: ../fish/guestfish-actions.pod:355
23822 #: ../fish/guestfish-actions.pod:357
23825 " available 'groups ...'\n"
23830 #: ../fish/guestfish-actions.pod:363
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>."
23838 #: ../fish/guestfish-actions.pod:387
23839 msgid "You must call L</launch> before calling this function."
23843 #: ../fish/guestfish-actions.pod:409
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>."
23851 #: ../fish/guestfish-actions.pod:416
23852 msgid "available-all-groups"
23856 #: ../fish/guestfish-actions.pod:418
23859 " available-all-groups\n"
23864 #: ../fish/guestfish-actions.pod:420
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."
23873 #: ../fish/guestfish-actions.pod:426
23874 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
23878 #: ../fish/guestfish-actions.pod:428
23883 #: ../fish/guestfish-actions.pod:430
23886 " base64-in (base64file|-) filename\n"
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."
23902 #: ../fish/guestfish-actions.pod:437
23907 #: ../fish/guestfish-actions.pod:439
23910 " base64-out filename (base64file|-)\n"
23915 #: ../fish/guestfish-actions.pod:446
23916 msgid "blockdev-flushbufs"
23920 #: ../fish/guestfish-actions.pod:448
23923 " blockdev-flushbufs device\n"
23928 #: ../fish/guestfish-actions.pod:455
23929 msgid "blockdev-getbsz"
23933 #: ../fish/guestfish-actions.pod:457
23936 " blockdev-getbsz device\n"
23941 #: ../fish/guestfish-actions.pod:466
23942 msgid "blockdev-getro"
23946 #: ../fish/guestfish-actions.pod:468
23949 " blockdev-getro device\n"
23954 #: ../fish/guestfish-actions.pod:475
23955 msgid "blockdev-getsize64"
23959 #: ../fish/guestfish-actions.pod:477
23962 " blockdev-getsize64 device\n"
23967 #: ../fish/guestfish-actions.pod:481
23968 msgid "See also L</blockdev-getsz>."
23972 #: ../fish/guestfish-actions.pod:485
23973 msgid "blockdev-getss"
23977 #: ../fish/guestfish-actions.pod:487
23980 " blockdev-getss device\n"
23985 #: ../fish/guestfish-actions.pod:492
23987 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
23991 #: ../fish/guestfish-actions.pod:497
23992 msgid "blockdev-getsz"
23996 #: ../fish/guestfish-actions.pod:499
23999 " blockdev-getsz device\n"
24004 #: ../fish/guestfish-actions.pod:504
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>."
24011 #: ../fish/guestfish-actions.pod:510
24012 msgid "blockdev-rereadpt"
24016 #: ../fish/guestfish-actions.pod:512
24019 " blockdev-rereadpt device\n"
24024 #: ../fish/guestfish-actions.pod:518
24025 msgid "blockdev-setbsz"
24029 #: ../fish/guestfish-actions.pod:520
24032 " blockdev-setbsz device blocksize\n"
24037 #: ../fish/guestfish-actions.pod:529
24038 msgid "blockdev-setro"
24042 #: ../fish/guestfish-actions.pod:531
24045 " blockdev-setro device\n"
24050 #: ../fish/guestfish-actions.pod:537
24051 msgid "blockdev-setrw"
24055 #: ../fish/guestfish-actions.pod:539
24058 " blockdev-setrw device\n"
24063 #: ../fish/guestfish-actions.pod:545
24064 msgid "btrfs-filesystem-resize"
24068 #: ../fish/guestfish-actions.pod:547
24071 " btrfs-filesystem-resize mountpoint [size:..]\n"
24076 #: ../fish/guestfish-actions.pod:570
24077 msgid "case-sensitive-path"
24081 #: ../fish/guestfish-actions.pod:572
24084 " case-sensitive-path path\n"
24089 #: ../fish/guestfish-actions.pod:596
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)."
24097 #: ../fish/guestfish-actions.pod:604
24098 msgid "See also L</realpath>."
24102 #: ../fish/guestfish-actions.pod:606
24107 #: ../fish/guestfish-actions.pod:608
24117 #: ../fish/guestfish-actions.pod:612
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."
24126 #: ../fish/guestfish-actions.pod:620
24131 #: ../fish/guestfish-actions.pod:622
24134 " checksum csumtype path\n"
24139 #: ../fish/guestfish-actions.pod:665
24140 msgid "To get the checksum for a device, use L</checksum-device>."
24144 #: ../fish/guestfish-actions.pod:667
24145 msgid "To get the checksums for many files, use L</checksums-out>."
24149 #: ../fish/guestfish-actions.pod:669
24150 msgid "checksum-device"
24151 msgstr "checksum-device"
24154 #: ../fish/guestfish-actions.pod:671
24157 " checksum-device csumtype device\n"
24162 #: ../fish/guestfish-actions.pod:673
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."
24170 #: ../fish/guestfish-actions.pod:677
24171 msgid "checksums-out"
24175 #: ../fish/guestfish-actions.pod:679
24178 " checksums-out csumtype directory (sumsfile|-)\n"
24183 #: ../fish/guestfish-actions.pod:695
24188 #: ../fish/guestfish-actions.pod:697
24191 " chmod mode path\n"
24196 #: ../fish/guestfish-actions.pod:708
24201 #: ../fish/guestfish-actions.pod:710
24204 " chown owner group path\n"
24209 #: ../fish/guestfish-actions.pod:718
24214 #: ../fish/guestfish-actions.pod:720
24217 " command 'arguments ...'\n"
24222 #: ../fish/guestfish-actions.pod:727
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>)."
24231 #: ../fish/guestfish-actions.pod:755
24232 msgid "command-lines"
24236 #: ../fish/guestfish-actions.pod:757
24239 " command-lines 'arguments ...'\n"
24244 #: ../fish/guestfish-actions.pod:759
24246 "This is the same as L</command>, but splits the result into a list of lines."
24250 #: ../fish/guestfish-actions.pod:762
24251 msgid "See also: L</sh-lines>"
24255 #: ../fish/guestfish-actions.pod:767
24260 #: ../fish/guestfish-actions.pod:769
24263 " config qemuparam qemuvalue\n"
24268 #: ../fish/guestfish-actions.pod:780
24273 #: ../fish/guestfish-actions.pod:782
24276 " copy-size src dest size\n"
24281 #: ../fish/guestfish-actions.pod:790
24286 #: ../fish/guestfish-actions.pod:792
24294 #: ../fish/guestfish-actions.pod:797
24299 #: ../fish/guestfish-actions.pod:799
24307 #: ../fish/guestfish-actions.pod:804
24312 #: ../fish/guestfish-actions.pod:806
24320 #: ../fish/guestfish-actions.pod:813
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>)."
24328 #: ../fish/guestfish-actions.pod:817
24333 #: ../fish/guestfish-actions.pod:819
24343 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:834
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 "
24351 #: ../fish/guestfish-actions.pod:827
24356 #: ../fish/guestfish-actions.pod:829
24366 #: ../fish/guestfish-actions.pod:838
24371 #: ../fish/guestfish-actions.pod:840
24381 #: ../fish/guestfish-actions.pod:846
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."
24389 #: ../fish/guestfish-actions.pod:851
24394 #: ../fish/guestfish-actions.pod:853
24397 " download remotefilename (filename|-)\n"
24402 #: ../fish/guestfish-actions.pod:860
24403 msgid "See also L</upload>, L</cat>."
24407 #: ../fish/guestfish-actions.pod:864
24408 msgid "download-offset"
24409 msgstr "download-offset"
24412 #: ../fish/guestfish-actions.pod:866
24415 " download-offset remotefilename (filename|-) offset size\n"
24420 #: ../fish/guestfish-actions.pod:874
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."
24428 #: ../fish/guestfish-actions.pod:879
24429 msgid "See also L</download>, L</pread>."
24433 #: ../fish/guestfish-actions.pod:883
24434 msgid "drop-caches"
24438 #: ../fish/guestfish-actions.pod:885
24441 " drop-caches whattodrop\n"
24446 #: ../fish/guestfish-actions.pod:897
24451 #: ../fish/guestfish-actions.pod:899
24461 #: ../fish/guestfish-actions.pod:911
24466 #: ../fish/guestfish-actions.pod:913
24469 " e2fsck-f device\n"
24474 #: ../fish/guestfish-actions.pod:919
24476 "This command is only needed because of L</resize2fs> (q.v.). Normally you "
24477 "should use L</fsck>."
24481 #: ../fish/guestfish-actions.pod:922
24482 msgid "echo-daemon"
24486 #: ../fish/guestfish-actions.pod:924
24489 " echo-daemon 'words ...'\n"
24494 #: ../fish/guestfish-actions.pod:931
24495 msgid "See also L</ping-daemon>."
24499 #: ../fish/guestfish-actions.pod:933
24504 #: ../fish/guestfish-actions.pod:935
24507 " egrep regex path\n"
24512 #: ../fish/guestfish-actions.pod:943
24517 #: ../fish/guestfish-actions.pod:945
24520 " egrepi regex path\n"
24525 #: ../fish/guestfish-actions.pod:953
24530 #: ../fish/guestfish-actions.pod:955
24533 " equal file1 file2\n"
24536 " equal файл1 файл2\n"
24540 #: ../fish/guestfish-actions.pod:962
24545 #: ../fish/guestfish-actions.pod:964
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>."
24560 #: ../fish/guestfish-actions.pod:971
24565 #: ../fish/guestfish-actions.pod:973
24568 " fallocate path len\n"
24571 " fallocate шлях довжина\n"
24575 #: ../fish/guestfish-actions.pod:990
24576 msgid "fallocate64"
24577 msgstr "fallocate64"
24580 #: ../fish/guestfish-actions.pod:992
24583 " fallocate64 path len\n"
24586 " fallocate64 шлях довжина\n"
24590 #: ../fish/guestfish-actions.pod:998
24592 "Note that this call allocates disk blocks for the file. To create a sparse "
24593 "file use L</truncate-size> instead."
24597 #: ../fish/guestfish-actions.pod:1001
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."
24605 #: ../fish/guestfish-actions.pod:1010
24610 #: ../fish/guestfish-actions.pod:1012
24613 " fgrep pattern path\n"
24616 " fgrep шаблон шлях\n"
24620 #: ../fish/guestfish-actions.pod:1020
24625 #: ../fish/guestfish-actions.pod:1022
24628 " fgrepi pattern path\n"
24631 " fgrepi шаблон шлях\n"
24635 #: ../fish/guestfish-actions.pod:1030
24640 #: ../fish/guestfish-actions.pod:1032
24650 #: ../fish/guestfish-actions.pod:1048
24652 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
24653 "(etc), L</is-zero>."
24657 #: ../fish/guestfish-actions.pod:1051
24658 msgid "file-architecture"
24659 msgstr "file-architecture"
24662 #: ../fish/guestfish-actions.pod:1053
24665 " file-architecture filename\n"
24668 " file-architecture назва_файла\n"
24672 #: ../fish/guestfish-actions.pod:1156
24677 #: ../fish/guestfish-actions.pod:1158
24687 #: ../fish/guestfish-actions.pod:1162
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>."
24694 #: ../fish/guestfish-actions.pod:1166
24699 #: ../fish/guestfish-actions.pod:1168
24702 " fill c len path\n"
24707 #: ../fish/guestfish-actions.pod:1174
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"
24715 #: ../fish/guestfish-actions.pod:1179
24716 msgid "fill-pattern"
24717 msgstr "fill-pattern"
24720 #: ../fish/guestfish-actions.pod:1181
24723 " fill-pattern pattern len path\n"
24728 #: ../fish/guestfish-actions.pod:1183
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 "
24737 #: ../fish/guestfish-actions.pod:1188
24742 #: ../fish/guestfish-actions.pod:1190
24745 " find directory\n"
24752 #: ../fish/guestfish-actions.pod:1204
24753 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
24757 #: ../fish/guestfish-actions.pod:1217
24758 msgid "See also L</find0>."
24759 msgstr "Див. також L</find0>."
24762 #: ../fish/guestfish-actions.pod:1222
24767 #: ../fish/guestfish-actions.pod:1224
24770 " find0 directory (files|-)\n"
24773 " find0 каталог (файли|-)\n"
24777 #: ../fish/guestfish-actions.pod:1230
24779 "This command works the same way as L</find> with the following exceptions:"
24783 #: ../fish/guestfish-actions.pod:1257
24784 msgid "findfs-label"
24785 msgstr "findfs-label"
24788 #: ../fish/guestfish-actions.pod:1259
24791 " findfs-label label\n"
24794 " findfs-label мітка\n"
24798 #: ../fish/guestfish-actions.pod:1265
24799 msgid "To find the label of a filesystem, use L</vfs-label>."
24800 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
24803 #: ../fish/guestfish-actions.pod:1267
24804 msgid "findfs-uuid"
24805 msgstr "findfs-uuid"
24808 #: ../fish/guestfish-actions.pod:1269
24811 " findfs-uuid uuid\n"
24814 " findfs-uuid uuid\n"
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>."
24823 #: ../fish/guestfish-actions.pod:1277
24828 #: ../fish/guestfish-actions.pod:1279
24831 " fsck fstype device\n"
24834 " fsck тип_файлової_системи пристрій\n"
24838 #: ../fish/guestfish-actions.pod:1309
24840 msgstr "get-append"
24843 #: ../fish/guestfish-actions.pod:1311
24853 #: ../fish/guestfish-actions.pod:1318
24854 msgid "get-attach-method"
24855 msgstr "get-attach-method"
24858 #: ../fish/guestfish-actions.pod:1320
24861 " get-attach-method\n"
24864 " get-attach-method\n"
24868 #: ../fish/guestfish-actions.pod:1322
24869 msgid "Return the current attach method. See L</set-attach-method>."
24873 #: ../fish/guestfish-actions.pod:1324
24874 msgid "get-autosync"
24875 msgstr "get-autosync"
24878 #: ../fish/guestfish-actions.pod:1326
24888 #: ../fish/guestfish-actions.pod:1330
24890 msgstr "get-direct"
24893 #: ../fish/guestfish-actions.pod:1332
24903 #: ../fish/guestfish-actions.pod:1336
24904 msgid "get-e2label"
24905 msgstr "get-e2label"
24908 #: ../fish/guestfish-actions.pod:1338
24911 " get-e2label device\n"
24914 " get-e2label пристрій\n"
24918 #: ../fish/guestfish-actions.pod:1350
24920 msgstr "get-e2uuid"
24923 #: ../fish/guestfish-actions.pod:1352
24926 " get-e2uuid device\n"
24929 " get-e2uuid пристрій\n"
24933 #: ../fish/guestfish-actions.pod:1364
24934 msgid "get-memsize"
24935 msgstr "get-memsize"
24938 #: ../fish/guestfish-actions.pod:1366
24948 #: ../fish/guestfish-actions.pod:1371
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."
24956 #: ../fish/guestfish-actions.pod:1378
24957 msgid "get-network"
24958 msgstr "get-network"
24961 #: ../fish/guestfish-actions.pod:1380
24971 #: ../fish/guestfish-actions.pod:1384
24976 #: ../fish/guestfish-actions.pod:1386
24986 #: ../fish/guestfish-actions.pod:1393
24991 #: ../fish/guestfish-actions.pod:1395
24999 #: ../fish/guestfish-actions.pod:1399
25004 #: ../fish/guestfish-actions.pod:1401
25009 #: ../fish/guestfish-actions.pod:1403
25019 #: ../fish/guestfish-actions.pod:1410
25024 #: ../fish/guestfish-actions.pod:1412
25034 #: ../fish/guestfish-actions.pod:1419
25035 msgid "get-recovery-proc"
25036 msgstr "get-recovery-proc"
25039 #: ../fish/guestfish-actions.pod:1421
25042 " get-recovery-proc\n"
25045 " get-recovery-proc\n"
25049 #: ../fish/guestfish-actions.pod:1425
25050 msgid "get-selinux"
25051 msgstr "get-selinux"
25054 #: ../fish/guestfish-actions.pod:1427
25064 #: ../fish/guestfish-actions.pod:1429
25066 "This returns the current setting of the selinux flag which is passed to the "
25067 "appliance at boot time. See L</set-selinux>."
25071 #: ../fish/guestfish-actions.pod:1435
25076 #: ../fish/guestfish-actions.pod:1437
25086 #: ../fish/guestfish-actions.pod:1444
25091 #: ../fish/guestfish-actions.pod:1446
25101 #: ../fish/guestfish-actions.pod:1450
25106 #: ../fish/guestfish-actions.pod:1452
25116 #: ../fish/guestfish-actions.pod:1454
25118 "Return the current umask. By default the umask is C<022> unless it has been"
25119 " set by calling L</umask>."
25123 #: ../fish/guestfish-actions.pod:1457
25124 msgid "get-verbose"
25125 msgstr "get-verbose"
25128 #: ../fish/guestfish-actions.pod:1459
25138 #: ../fish/guestfish-actions.pod:1463
25143 #: ../fish/guestfish-actions.pod:1465
25153 #: ../fish/guestfish-actions.pod:1469
25154 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
25158 #: ../fish/guestfish-actions.pod:1472
25163 #: ../fish/guestfish-actions.pod:1474
25166 " getxattr path name\n"
25169 " getxattr шлях назва\n"
25173 #: ../fish/guestfish-actions.pod:1476
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>."
25181 #: ../fish/guestfish-actions.pod:1480 ../fish/guestfish-actions.pod:2507
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."
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)>."
25196 #: ../fish/guestfish-actions.pod:1492
25201 #: ../fish/guestfish-actions.pod:1494
25204 " getxattrs path\n"
25207 " getxattrs шлях\n"
25211 #: ../fish/guestfish-actions.pod:1502
25212 msgid "See also: L</lgetxattrs>, L<attr(5)>."
25213 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
25216 #: ../fish/guestfish-actions.pod:1504
25217 msgid "glob-expand"
25218 msgstr "glob-expand"
25221 #: ../fish/guestfish-actions.pod:1506
25224 " glob-expand pattern\n"
25227 " glob-expand шаблон\n"
25231 #: ../fish/guestfish-actions.pod:1519
25236 #: ../fish/guestfish-actions.pod:1521
25239 " grep regex path\n"
25242 " grepi формальний_вираз шлях\n"
25246 #: ../fish/guestfish-actions.pod:1529
25251 #: ../fish/guestfish-actions.pod:1531
25254 " grepi regex path\n"
25257 " grepi формальний_вираз шлях\n"
25261 #: ../fish/guestfish-actions.pod:1539
25262 msgid "grub-install"
25263 msgstr "grub-install"
25266 #: ../fish/guestfish-actions.pod:1541
25269 " grub-install root device\n"
25272 " grub-install кореневий пристрій\n"
25276 #: ../fish/guestfish-actions.pod:1557
25281 #: ../fish/guestfish-actions.pod:1559
25291 #: ../fish/guestfish-actions.pod:1567
25296 #: ../fish/guestfish-actions.pod:1569
25299 " head-n nrlines path\n"
25304 #: ../fish/guestfish-actions.pod:1582
25309 #: ../fish/guestfish-actions.pod:1584
25319 #: ../fish/guestfish-actions.pod:1592
25321 msgstr "initrd-cat"
25324 #: ../fish/guestfish-actions.pod:1594
25327 " initrd-cat initrdpath filename\n"
25330 " initrd-cat шлях_initrd назва_файла\n"
25334 #: ../fish/guestfish-actions.pod:1606
25335 msgid "See also L</initrd-list>."
25336 msgstr "Див. також L</initrd-list>."
25339 #: ../fish/guestfish-actions.pod:1611
25340 msgid "initrd-list"
25341 msgstr "initrd-list"
25344 #: ../fish/guestfish-actions.pod:1613
25347 " initrd-list path\n"
25350 " initrd-list шлях\n"
25354 #: ../fish/guestfish-actions.pod:1625
25355 msgid "inotify-add-watch"
25356 msgstr "inotify-add-watch"
25359 #: ../fish/guestfish-actions.pod:1627
25362 " inotify-add-watch path mask\n"
25365 " inotify-add-watch шлях маска\n"
25369 #: ../fish/guestfish-actions.pod:1639
25370 msgid "inotify-close"
25371 msgstr "inotify-close"
25374 #: ../fish/guestfish-actions.pod:1641
25384 #: ../fish/guestfish-actions.pod:1647
25385 msgid "inotify-files"
25386 msgstr "inotify-files"
25389 #: ../fish/guestfish-actions.pod:1649
25399 #: ../fish/guestfish-actions.pod:1651
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."
25407 #: ../fish/guestfish-actions.pod:1655
25408 msgid "inotify-init"
25409 msgstr "inotify-init"
25412 #: ../fish/guestfish-actions.pod:1657
25415 " inotify-init maxevents\n"
25420 #: ../fish/guestfish-actions.pod:1663
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>)."
25431 #: ../fish/guestfish-actions.pod:1673
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>."
25439 #: ../fish/guestfish-actions.pod:1679
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."
25448 #: ../fish/guestfish-actions.pod:1686
25450 "The handle should be closed after use by calling L</inotify-close>. This "
25451 "also removes any watches automatically."
25455 #: ../fish/guestfish-actions.pod:1695
25456 msgid "inotify-read"
25457 msgstr "inotify-read"
25460 #: ../fish/guestfish-actions.pod:1697
25470 #: ../fish/guestfish-actions.pod:1710
25471 msgid "inotify-rm-watch"
25472 msgstr "inotify-rm-watch"
25475 #: ../fish/guestfish-actions.pod:1712
25478 " inotify-rm-watch wd\n"
25483 #: ../fish/guestfish-actions.pod:1714
25484 msgid "Remove a previously defined inotify watch. See L</inotify-add-watch>."
25488 #: ../fish/guestfish-actions.pod:1717
25489 msgid "inspect-get-arch"
25490 msgstr "inspect-get-arch"
25493 #: ../fish/guestfish-actions.pod:1719
25496 " inspect-get-arch root\n"
25499 " inspect-get-arch корінь\n"
25503 #: ../fish/guestfish-actions.pod:1721
25505 "This returns the architecture of the inspected operating system. The "
25506 "possible return values are listed under L</file-architecture>."
25510 #: ../fish/guestfish-actions.pod:1730
25511 msgid "inspect-get-distro"
25512 msgstr "inspect-get-distro"
25515 #: ../fish/guestfish-actions.pod:1732
25518 " inspect-get-distro root\n"
25521 " inspect-get-distro корінь\n"
25525 #: ../fish/guestfish-actions.pod:1813
25526 msgid "inspect-get-drive-mappings"
25530 #: ../fish/guestfish-actions.pod:1815
25533 " inspect-get-drive-mappings root\n"
25538 #: ../fish/guestfish-actions.pod:1842
25540 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
25541 "get-mountpoints>, L</inspect-get-filesystems>."
25545 #: ../fish/guestfish-actions.pod:1846
25546 msgid "inspect-get-filesystems"
25547 msgstr "inspect-get-filesystems"
25550 #: ../fish/guestfish-actions.pod:1848
25553 " inspect-get-filesystems root\n"
25556 " inspect-get-filesystems корінь\n"
25560 #: ../fish/guestfish-actions.pod:1858
25562 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
25563 "get-mountpoints>."
25567 #: ../fish/guestfish-actions.pod:1861
25568 msgid "inspect-get-format"
25569 msgstr "inspect-get-format"
25572 #: ../fish/guestfish-actions.pod:1863
25575 " inspect-get-format root\n"
25578 " inspect-get-format корінь\n"
25582 #: ../fish/guestfish-actions.pod:1892
25583 msgid "inspect-get-hostname"
25584 msgstr "inspect-get-hostname"
25587 #: ../fish/guestfish-actions.pod:1894
25590 " inspect-get-hostname root\n"
25593 " inspect-get-hostname корінь\n"
25597 #: ../fish/guestfish-actions.pod:1904
25598 msgid "inspect-get-icon"
25602 #: ../fish/guestfish-actions.pod:1906
25605 " inspect-get-icon root [favicon:..] [highquality:..]\n"
25610 #: ../fish/guestfish-actions.pod:1970
25611 msgid "inspect-get-major-version"
25612 msgstr "inspect-get-major-version"
25615 #: ../fish/guestfish-actions.pod:1972
25618 " inspect-get-major-version root\n"
25621 " inspect-get-major-version корінь\n"
25625 #: ../fish/guestfish-actions.pod:1988
25626 msgid "inspect-get-minor-version"
25627 msgstr "inspect-get-minor-version"
25630 #: ../fish/guestfish-actions.pod:1990
25633 " inspect-get-minor-version root\n"
25636 " inspect-get-minor-version корінь\n"
25640 #: ../fish/guestfish-actions.pod:1997
25642 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
25643 "get-major-version>."
25647 #: ../fish/guestfish-actions.pod:2000
25648 msgid "inspect-get-mountpoints"
25649 msgstr "inspect-get-mountpoints"
25652 #: ../fish/guestfish-actions.pod:2002
25655 " inspect-get-mountpoints root\n"
25658 " inspect-get-mountpoints корінь\n"
25662 #: ../fish/guestfish-actions.pod:2021
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>."
25671 #: ../fish/guestfish-actions.pod:2027
25673 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
25674 "get-filesystems>."
25678 #: ../fish/guestfish-actions.pod:2030
25679 msgid "inspect-get-package-format"
25680 msgstr "inspect-get-package-format"
25683 #: ../fish/guestfish-actions.pod:2032
25686 " inspect-get-package-format root\n"
25689 " inspect-get-package-format корінь\n"
25693 #: ../fish/guestfish-actions.pod:2034
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)."
25702 #: ../fish/guestfish-actions.pod:2049
25703 msgid "inspect-get-package-management"
25704 msgstr "inspect-get-package-management"
25707 #: ../fish/guestfish-actions.pod:2051
25710 " inspect-get-package-management root\n"
25713 " inspect-get-package-management корінь\n"
25717 #: ../fish/guestfish-actions.pod:2053
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)."
25726 #: ../fish/guestfish-actions.pod:2070
25727 msgid "inspect-get-product-name"
25728 msgstr "inspect-get-product-name"
25731 #: ../fish/guestfish-actions.pod:2072
25734 " inspect-get-product-name root\n"
25737 " inspect-get-product-name корінь\n"
25741 #: ../fish/guestfish-actions.pod:2084
25742 msgid "inspect-get-product-variant"
25746 #: ../fish/guestfish-actions.pod:2086
25749 " inspect-get-product-variant root\n"
25754 #: ../fish/guestfish-actions.pod:2107
25756 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
25757 "get-product-name>, L</inspect-get-major-version>."
25761 #: ../fish/guestfish-actions.pod:2111
25762 msgid "inspect-get-roots"
25763 msgstr "inspect-get-roots"
25766 #: ../fish/guestfish-actions.pod:2113
25769 " inspect-get-roots\n"
25772 " inspect-get-roots\n"
25776 #: ../fish/guestfish-actions.pod:2115
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."
25784 #: ../fish/guestfish-actions.pod:2119
25786 "This returns an empty list if either no root devices were found or the "
25787 "caller has not called L</inspect-os>."
25791 #: ../fish/guestfish-actions.pod:2124
25792 msgid "inspect-get-type"
25793 msgstr "inspect-get-type"
25796 #: ../fish/guestfish-actions.pod:2126
25799 " inspect-get-type root\n"
25802 " inspect-get-type корінь\n"
25806 #: ../fish/guestfish-actions.pod:2156
25807 msgid "inspect-get-windows-current-control-set"
25811 #: ../fish/guestfish-actions.pod:2158
25814 " inspect-get-windows-current-control-set root\n"
25819 #: ../fish/guestfish-actions.pod:2169
25820 msgid "inspect-get-windows-systemroot"
25821 msgstr "inspect-get-windows-systemroot"
25824 #: ../fish/guestfish-actions.pod:2171
25827 " inspect-get-windows-systemroot root\n"
25830 " inspect-get-windows-systemroot корінь\n"
25834 #: ../fish/guestfish-actions.pod:2182
25835 msgid "inspect-is-live"
25836 msgstr "inspect-is-live"
25839 #: ../fish/guestfish-actions.pod:2184
25842 " inspect-is-live root\n"
25845 " inspect-is-live корінь\n"
25849 #: ../fish/guestfish-actions.pod:2186
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."
25856 #: ../fish/guestfish-actions.pod:2192
25857 msgid "inspect-is-multipart"
25858 msgstr "inspect-is-multipart"
25861 #: ../fish/guestfish-actions.pod:2194
25864 " inspect-is-multipart root\n"
25867 " inspect-is-multipart корінь\n"
25871 #: ../fish/guestfish-actions.pod:2196
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."
25878 #: ../fish/guestfish-actions.pod:2202
25879 msgid "inspect-is-netinst"
25880 msgstr "inspect-is-netinst"
25883 #: ../fish/guestfish-actions.pod:2204
25886 " inspect-is-netinst root\n"
25889 " inspect-is-netinst корінь\n"
25893 #: ../fish/guestfish-actions.pod:2206
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."
25902 #: ../fish/guestfish-actions.pod:2214
25903 msgid "inspect-list-applications"
25904 msgstr "inspect-list-applications"
25907 #: ../fish/guestfish-actions.pod:2216
25910 " inspect-list-applications root\n"
25913 " inspect-list-applications кореневий_каталог\n"
25917 #: ../fish/guestfish-actions.pod:2220
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."
25929 #: ../fish/guestfish-actions.pod:2310
25931 msgstr "inspect-os"
25934 #: ../fish/guestfish-actions.pod:2312
25944 #: ../fish/guestfish-actions.pod:2327
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."
25952 #: ../fish/guestfish-actions.pod:2332
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."
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>."
25967 #: ../fish/guestfish-actions.pod:2346
25968 msgid "is-blockdev"
25969 msgstr "is-blockdev"
25972 #: ../fish/guestfish-actions.pod:2348
25975 " is-blockdev path\n"
25978 " is-blockdev шлях\n"
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>."
25990 #: ../fish/guestfish-actions.pod:2355
25995 #: ../fish/guestfish-actions.pod:2357
26005 #: ../fish/guestfish-actions.pod:2364
26007 msgstr "is-chardev"
26010 #: ../fish/guestfish-actions.pod:2366
26013 " is-chardev path\n"
26016 " is-chardev шлях\n"
26020 #: ../fish/guestfish-actions.pod:2373
26025 #: ../fish/guestfish-actions.pod:2375
26035 #: ../fish/guestfish-actions.pod:2382
26040 #: ../fish/guestfish-actions.pod:2384
26050 #: ../fish/guestfish-actions.pod:2392
26055 #: ../fish/guestfish-actions.pod:2394
26065 #: ../fish/guestfish-actions.pod:2401
26070 #: ../fish/guestfish-actions.pod:2403
26080 #: ../fish/guestfish-actions.pod:2411
26081 msgid "is-launching"
26082 msgstr "is-launching"
26085 #: ../fish/guestfish-actions.pod:2413
26095 #: ../fish/guestfish-actions.pod:2420
26100 #: ../fish/guestfish-actions.pod:2422
26106 " is-lv пристрій\n"
26110 #: ../fish/guestfish-actions.pod:2427
26115 #: ../fish/guestfish-actions.pod:2429
26125 #: ../fish/guestfish-actions.pod:2436
26130 #: ../fish/guestfish-actions.pod:2438
26133 " is-socket path\n"
26136 " is-socket шлях\n"
26140 #: ../fish/guestfish-actions.pod:2445
26142 msgstr "is-symlink"
26145 #: ../fish/guestfish-actions.pod:2447
26148 " is-symlink path\n"
26151 " is-symlink шлях\n"
26155 #: ../fish/guestfish-actions.pod:2454
26160 #: ../fish/guestfish-actions.pod:2456
26168 #: ../fish/guestfish-actions.pod:2461
26169 msgid "is-zero-device"
26173 #: ../fish/guestfish-actions.pod:2463
26176 " is-zero-device device\n"
26181 #: ../fish/guestfish-actions.pod:2469
26182 msgid "kill-subprocess"
26183 msgstr "kill-subprocess"
26186 #: ../fish/guestfish-actions.pod:2471
26189 " kill-subprocess\n"
26192 " kill-subprocess\n"
26196 #: ../fish/guestfish-actions.pod:2475
26201 #: ../fish/guestfish-actions.pod:2477
26206 #: ../fish/guestfish-actions.pod:2479
26216 #: ../fish/guestfish-actions.pod:2487
26221 #: ../fish/guestfish-actions.pod:2489
26224 " lchown owner group path\n"
26227 " lchown власник група шлях\n"
26231 #: ../fish/guestfish-actions.pod:2491
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 "
26239 #: ../fish/guestfish-actions.pod:2499
26244 #: ../fish/guestfish-actions.pod:2501
26247 " lgetxattr path name\n"
26250 " lgetxattr шлях назва\n"
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)>."
26259 #: ../fish/guestfish-actions.pod:2519
26261 msgstr "lgetxattrs"
26264 #: ../fish/guestfish-actions.pod:2521
26267 " lgetxattrs path\n"
26270 " lgetxattrs шлях\n"
26274 #: ../fish/guestfish-actions.pod:2523
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."
26281 #: ../fish/guestfish-actions.pod:2527
26286 #: ../fish/guestfish-actions.pod:2529
26294 #: ../fish/guestfish-actions.pod:2534
26295 msgid "list-devices"
26296 msgstr "list-devices"
26299 #: ../fish/guestfish-actions.pod:2536
26309 #: ../fish/guestfish-actions.pod:2544
26310 msgid "list-dm-devices"
26314 #: ../fish/guestfish-actions.pod:2546
26317 " list-dm-devices\n"
26322 #: ../fish/guestfish-actions.pod:2550
26324 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
26325 "previous call to L</luks-open>."
26329 #: ../fish/guestfish-actions.pod:2553
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."
26336 #: ../fish/guestfish-actions.pod:2557
26337 msgid "list-filesystems"
26338 msgstr "list-filesystems"
26341 #: ../fish/guestfish-actions.pod:2559
26344 " list-filesystems\n"
26347 " list-filesystems\n"
26351 #: ../fish/guestfish-actions.pod:2578
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."
26359 #: ../fish/guestfish-actions.pod:2582
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)."
26369 #: ../fish/guestfish-actions.pod:2590
26370 msgid "list-partitions"
26371 msgstr "list-partitions"
26374 #: ../fish/guestfish-actions.pod:2592
26377 " list-partitions\n"
26380 " list-partitions\n"
26384 #: ../fish/guestfish-actions.pod:2598
26386 "This does not return logical volumes. For that you will need to call "
26391 #: ../fish/guestfish-actions.pod:2603
26396 #: ../fish/guestfish-actions.pod:2605
26406 #: ../fish/guestfish-actions.pod:2613
26411 #: ../fish/guestfish-actions.pod:2615
26414 " ln target linkname\n"
26417 " ln призначення назва_посилання\n"
26421 #: ../fish/guestfish-actions.pod:2619
26426 #: ../fish/guestfish-actions.pod:2621
26429 " ln-f target linkname\n"
26432 " ln-f призначення назва_посилання\n"
26436 #: ../fish/guestfish-actions.pod:2626
26441 #: ../fish/guestfish-actions.pod:2628
26444 " ln-s target linkname\n"
26447 " ln-s призначення назва_посилання\n"
26451 #: ../fish/guestfish-actions.pod:2632
26456 #: ../fish/guestfish-actions.pod:2634
26459 " ln-sf target linkname\n"
26462 " ln-sf призначення назва_посилання\n"
26466 #: ../fish/guestfish-actions.pod:2639
26467 msgid "lremovexattr"
26468 msgstr "lremovexattr"
26471 #: ../fish/guestfish-actions.pod:2641
26474 " lremovexattr xattr path\n"
26479 #: ../fish/guestfish-actions.pod:2643
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."
26486 #: ../fish/guestfish-actions.pod:2647
26491 #: ../fish/guestfish-actions.pod:2649
26501 #: ../fish/guestfish-actions.pod:2655
26503 "This command is mostly useful for interactive sessions. Programs should "
26504 "probably use L</readdir> instead."
26508 #: ../fish/guestfish-actions.pod:2658
26513 #: ../fish/guestfish-actions.pod:2660
26516 " lsetxattr xattr val vallen path\n"
26521 #: ../fish/guestfish-actions.pod:2662
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."
26528 #: ../fish/guestfish-actions.pod:2666
26533 #: ../fish/guestfish-actions.pod:2668
26543 #: ../fish/guestfish-actions.pod:2672
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."
26550 #: ../fish/guestfish-actions.pod:2678
26555 #: ../fish/guestfish-actions.pod:2680
26558 " lstatlist path 'names ...'\n"
26563 #: ../fish/guestfish-actions.pod:2682
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."
26571 #: ../fish/guestfish-actions.pod:2691
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."
26582 #: ../fish/guestfish-actions.pod:2699
26583 msgid "luks-add-key"
26584 msgstr "luks-add-key"
26587 #: ../fish/guestfish-actions.pod:2701
26590 " luks-add-key device keyslot\n"
26595 #: ../fish/guestfish-actions.pod:2708
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."
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
26606 "This command has one or more key or passphrase parameters. Guestfish will "
26607 "prompt for these separately."
26611 #: ../fish/guestfish-actions.pod:2715
26613 msgstr "luks-close"
26616 #: ../fish/guestfish-actions.pod:2717
26619 " luks-close device\n"
26622 " luks-close пристрій\n"
26626 #: ../fish/guestfish-actions.pod:2719
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."
26635 #: ../fish/guestfish-actions.pod:2725
26636 msgid "luks-format"
26637 msgstr "luks-format"
26640 #: ../fish/guestfish-actions.pod:2727
26643 " luks-format device keyslot\n"
26648 #: ../fish/guestfish-actions.pod:2740
26649 msgid "luks-format-cipher"
26650 msgstr "luks-format-cipher"
26653 #: ../fish/guestfish-actions.pod:2742
26656 " luks-format-cipher device keyslot cipher\n"
26661 #: ../fish/guestfish-actions.pod:2744
26663 "This command is the same as L</luks-format> but it also allows you to set "
26664 "the C<cipher> used."
26668 #: ../fish/guestfish-actions.pod:2753
26669 msgid "luks-kill-slot"
26670 msgstr "luks-kill-slot"
26673 #: ../fish/guestfish-actions.pod:2755
26676 " luks-kill-slot device keyslot\n"
26681 #: ../fish/guestfish-actions.pod:2764
26686 #: ../fish/guestfish-actions.pod:2766
26689 " luks-open device mapname\n"
26694 #: ../fish/guestfish-actions.pod:2780
26696 "If this block device contains LVM volume groups, then calling L</vgscan> "
26697 "followed by L</vg-activate-all> will make them visible."
26701 #: ../fish/guestfish-actions.pod:2784
26702 msgid "Use L</list-dm-devices> to list all device mapper devices."
26706 #: ../fish/guestfish-actions.pod:2790
26707 msgid "luks-open-ro"
26708 msgstr "luks-open-ro"
26711 #: ../fish/guestfish-actions.pod:2792
26714 " luks-open-ro device mapname\n"
26719 #: ../fish/guestfish-actions.pod:2794
26721 "This is the same as L</luks-open> except that a read-only mapping is "
26726 #: ../fish/guestfish-actions.pod:2800
26731 #: ../fish/guestfish-actions.pod:2802
26734 " lvcreate logvol volgroup mbytes\n"
26739 #: ../fish/guestfish-actions.pod:2807
26740 msgid "lvm-canonical-lv-name"
26741 msgstr "lvm-canonical-lv-name"
26744 #: ../fish/guestfish-actions.pod:2809
26747 " lvm-canonical-lv-name lvname\n"
26752 #: ../fish/guestfish-actions.pod:2818
26753 msgid "See also L</is-lv>."
26754 msgstr "Див. також L</is-lv>."
26757 #: ../fish/guestfish-actions.pod:2820
26758 msgid "lvm-clear-filter"
26759 msgstr "lvm-clear-filter"
26762 #: ../fish/guestfish-actions.pod:2822
26765 " lvm-clear-filter\n"
26768 " lvm-clear-filter\n"
26772 #: ../fish/guestfish-actions.pod:2824
26774 "This undoes the effect of L</lvm-set-filter>. LVM will be able to see every"
26779 #: ../fish/guestfish-actions.pod:2830
26780 msgid "lvm-remove-all"
26781 msgstr "lvm-remove-all"
26784 #: ../fish/guestfish-actions.pod:2832
26787 " lvm-remove-all\n"
26790 " lvm-remove-all\n"
26794 #: ../fish/guestfish-actions.pod:2840
26795 msgid "lvm-set-filter"
26796 msgstr "lvm-set-filter"
26799 #: ../fish/guestfish-actions.pod:2842
26802 " lvm-set-filter 'devices ...'\n"
26805 " lvm-set-filter 'пристрої...'\n"
26809 #: ../fish/guestfish-actions.pod:2867
26814 #: ../fish/guestfish-actions.pod:2869
26817 " lvremove device\n"
26820 " lvremove пристрій\n"
26824 #: ../fish/guestfish-actions.pod:2877
26829 #: ../fish/guestfish-actions.pod:2879
26832 " lvrename logvol newlogvol\n"
26837 #: ../fish/guestfish-actions.pod:2883
26842 #: ../fish/guestfish-actions.pod:2885
26845 " lvresize device mbytes\n"
26850 #: ../fish/guestfish-actions.pod:2891
26851 msgid "lvresize-free"
26852 msgstr "lvresize-free"
26855 #: ../fish/guestfish-actions.pod:2893
26858 " lvresize-free lv percent\n"
26863 #: ../fish/guestfish-actions.pod:2901
26868 #: ../fish/guestfish-actions.pod:2903
26878 #: ../fish/guestfish-actions.pod:2911
26879 msgid "See also L</lvs-full>, L</list-filesystems>."
26880 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
26883 #: ../fish/guestfish-actions.pod:2913
26888 #: ../fish/guestfish-actions.pod:2915
26898 #: ../fish/guestfish-actions.pod:2920
26903 #: ../fish/guestfish-actions.pod:2922
26909 " lvuuid пристрій\n"
26913 #: ../fish/guestfish-actions.pod:2926
26915 msgstr "lxattrlist"
26918 #: ../fish/guestfish-actions.pod:2928
26921 " lxattrlist path 'names ...'\n"
26926 #: ../fish/guestfish-actions.pod:2944
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"
26937 #: ../fish/guestfish-actions.pod:2952
26942 #: ../fish/guestfish-actions.pod:2954
26952 #: ../fish/guestfish-actions.pod:2958
26954 msgstr "mkdir-mode"
26957 #: ../fish/guestfish-actions.pod:2960
26960 " mkdir-mode path mode\n"
26963 " mkdir-mode шлях режим\n"
26967 #: ../fish/guestfish-actions.pod:2969
26968 msgid "See also L</mkdir>, L</umask>"
26969 msgstr "Див. також L</mkdir>, L</umask>"
26972 #: ../fish/guestfish-actions.pod:2971
26977 #: ../fish/guestfish-actions.pod:2973
26987 #: ../fish/guestfish-actions.pod:2978
26992 #: ../fish/guestfish-actions.pod:2980
26995 " mkdtemp template\n"
26998 " mkdtemp шаблон\n"
27002 #: ../fish/guestfish-actions.pod:3001
27007 #: ../fish/guestfish-actions.pod:3003
27010 " mke2fs-J fstype blocksize device journal\n"
27015 #: ../fish/guestfish-actions.pod:3011
27016 msgid "See also L</mke2journal>."
27017 msgstr "Див. також L</mke2journal>."
27020 #: ../fish/guestfish-actions.pod:3013
27025 #: ../fish/guestfish-actions.pod:3015
27028 " mke2fs-JL fstype blocksize device label\n"
27033 #: ../fish/guestfish-actions.pod:3020
27034 msgid "See also L</mke2journal-L>."
27035 msgstr "Див. також L</mke2journal-L>."
27038 #: ../fish/guestfish-actions.pod:3022
27043 #: ../fish/guestfish-actions.pod:3024
27046 " mke2fs-JU fstype blocksize device uuid\n"
27051 #: ../fish/guestfish-actions.pod:3029
27052 msgid "See also L</mke2journal-U>."
27053 msgstr "Див. також L</mke2journal-U>."
27056 #: ../fish/guestfish-actions.pod:3031
27057 msgid "mke2journal"
27058 msgstr "mke2journal"
27061 #: ../fish/guestfish-actions.pod:3033
27064 " mke2journal blocksize device\n"
27069 #: ../fish/guestfish-actions.pod:3040
27070 msgid "mke2journal-L"
27071 msgstr "mke2journal-L"
27074 #: ../fish/guestfish-actions.pod:3042
27077 " mke2journal-L blocksize label device\n"
27082 #: ../fish/guestfish-actions.pod:3046
27083 msgid "mke2journal-U"
27084 msgstr "mke2journal-U"
27087 #: ../fish/guestfish-actions.pod:3048
27090 " mke2journal-U blocksize uuid device\n"
27095 #: ../fish/guestfish-actions.pod:3052
27100 #: ../fish/guestfish-actions.pod:3054
27103 " mkfifo mode path\n"
27106 " mkfifo режим шлях\n"
27110 #: ../fish/guestfish-actions.pod:3056
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>."
27117 #: ../fish/guestfish-actions.pod:3062
27122 #: ../fish/guestfish-actions.pod:3064
27125 " mkfs fstype device\n"
27128 " mkfs тип_файлової_системи пристрій\n"
27132 #: ../fish/guestfish-actions.pod:3070
27137 #: ../fish/guestfish-actions.pod:3072
27140 " mkfs-b fstype blocksize device\n"
27145 #: ../fish/guestfish-actions.pod:3074
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."
27153 #: ../fish/guestfish-actions.pod:3089
27158 #: ../fish/guestfish-actions.pod:3091
27161 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
27166 #: ../fish/guestfish-actions.pod:3136
27167 msgid "mkmountpoint"
27168 msgstr "mkmountpoint"
27171 #: ../fish/guestfish-actions.pod:3138
27174 " mkmountpoint exemptpath\n"
27179 #: ../fish/guestfish-actions.pod:3140
27181 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used"
27182 " to create extra mountpoints before mounting the first filesystem."
27186 #: ../fish/guestfish-actions.pod:3164
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."
27194 #: ../fish/guestfish-actions.pod:3168
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."
27202 #: ../fish/guestfish-actions.pod:3175
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."
27210 #: ../fish/guestfish-actions.pod:3179
27215 #: ../fish/guestfish-actions.pod:3181
27218 " mknod mode devmajor devminor path\n"
27223 #: ../fish/guestfish-actions.pod:3191
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 "
27234 #: ../fish/guestfish-actions.pod:3201
27239 #: ../fish/guestfish-actions.pod:3203
27242 " mknod-b mode devmajor devminor path\n"
27247 #: ../fish/guestfish-actions.pod:3205
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>."
27255 #: ../fish/guestfish-actions.pod:3211
27260 #: ../fish/guestfish-actions.pod:3213
27263 " mknod-c mode devmajor devminor path\n"
27268 #: ../fish/guestfish-actions.pod:3215
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>."
27276 #: ../fish/guestfish-actions.pod:3221
27281 #: ../fish/guestfish-actions.pod:3223
27287 " mkswap пристрій\n"
27291 #: ../fish/guestfish-actions.pod:3227
27296 #: ../fish/guestfish-actions.pod:3229
27299 " mkswap-L label device\n"
27302 " mkswap-L мітка пристрій\n"
27306 #: ../fish/guestfish-actions.pod:3237
27311 #: ../fish/guestfish-actions.pod:3239
27314 " mkswap-U uuid device\n"
27317 " mkswap-U uuid пристрій\n"
27321 #: ../fish/guestfish-actions.pod:3243
27322 msgid "mkswap-file"
27323 msgstr "mkswap-file"
27326 #: ../fish/guestfish-actions.pod:3245
27329 " mkswap-file path\n"
27332 " mkswap-file шлях\n"
27336 #: ../fish/guestfish-actions.pod:3249
27338 "This command just writes a swap file signature to an existing file. To "
27339 "create the file itself, use something like L</fallocate>."
27343 #: ../fish/guestfish-actions.pod:3252
27348 #: ../fish/guestfish-actions.pod:3254
27351 " modprobe modulename\n"
27354 " modprobe назва_модуля\n"
27358 #: ../fish/guestfish-actions.pod:3261
27363 #: ../fish/guestfish-actions.pod:3263
27366 " mount device mountpoint\n"
27369 " mount пристрій точка_монтування\n"
27373 #: ../fish/guestfish-actions.pod:3279
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)."
27385 #: ../fish/guestfish-actions.pod:3296
27390 #: ../fish/guestfish-actions.pod:3298
27393 " mount-9p mounttag mountpoint [options:..]\n"
27398 #: ../fish/guestfish-actions.pod:3309
27400 msgstr "mount-loop"
27403 #: ../fish/guestfish-actions.pod:3311
27406 " mount-loop file mountpoint\n"
27411 #: ../fish/guestfish-actions.pod:3317
27412 msgid "mount-options"
27413 msgstr "mount-options"
27416 #: ../fish/guestfish-actions.pod:3319
27419 " mount-options options device mountpoint\n"
27424 #: ../fish/guestfish-actions.pod:3321
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."
27431 #: ../fish/guestfish-actions.pod:3329
27436 #: ../fish/guestfish-actions.pod:3331
27439 " mount-ro device mountpoint\n"
27442 " mount-ro пристрій точка_монтування\n"
27446 #: ../fish/guestfish-actions.pod:3333
27448 "This is the same as the L</mount> command, but it mounts the filesystem with"
27449 " the read-only (I<-o ro>) flag."
27453 #: ../fish/guestfish-actions.pod:3336
27458 #: ../fish/guestfish-actions.pod:3338
27461 " mount-vfs options vfstype device mountpoint\n"
27466 #: ../fish/guestfish-actions.pod:3340
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."
27473 #: ../fish/guestfish-actions.pod:3344
27474 msgid "mountpoints"
27475 msgstr "mountpoints"
27478 #: ../fish/guestfish-actions.pod:3346
27488 #: ../fish/guestfish-actions.pod:3348
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."
27496 #: ../fish/guestfish-actions.pod:3352
27501 #: ../fish/guestfish-actions.pod:3354
27511 #: ../fish/guestfish-actions.pod:3361
27512 msgid "See also: L</mountpoints>"
27513 msgstr "Див. також L</mountpoints>"
27516 #: ../fish/guestfish-actions.pod:3363
27521 #: ../fish/guestfish-actions.pod:3365
27527 " mv джерело призначення\n"
27531 #: ../fish/guestfish-actions.pod:3370
27532 msgid "ntfs-3g-probe"
27533 msgstr "ntfs-3g-probe"
27536 #: ../fish/guestfish-actions.pod:3372
27539 " ntfs-3g-probe true|false device\n"
27544 #: ../fish/guestfish-actions.pod:3386
27546 msgstr "ntfsresize"
27549 #: ../fish/guestfish-actions.pod:3388
27552 " ntfsresize device\n"
27555 " ntfsresize пристрій\n"
27559 #: ../fish/guestfish-actions.pod:3410
27560 msgid "ntfsresize-opts"
27564 #: ../fish/guestfish-actions.pod:3412
27567 " ntfsresize-opts device [size:..] [force:..]\n"
27572 #: ../fish/guestfish-actions.pod:3431
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."
27582 #: ../fish/guestfish-actions.pod:3444
27583 msgid "ntfsresize-size"
27584 msgstr "ntfsresize-size"
27587 #: ../fish/guestfish-actions.pod:3446
27590 " ntfsresize-size device size\n"
27595 #: ../fish/guestfish-actions.pod:3448
27597 "This command is the same as L</ntfsresize> except that it allows you to "
27598 "specify the new size (in bytes) explicitly."
27602 #: ../fish/guestfish-actions.pod:3458
27607 #: ../fish/guestfish-actions.pod:3460
27610 " part-add device prlogex startsect endsect\n"
27615 #: ../fish/guestfish-actions.pod:3462
27617 "This command adds a partition to C<device>. If there is no partition table "
27618 "on the device, call L</part-init> first."
27622 #: ../fish/guestfish-actions.pod:3474
27624 "Creating a partition which covers the whole disk is not so easy. Use L"
27625 "</part-disk> to do that."
27629 #: ../fish/guestfish-actions.pod:3477
27634 #: ../fish/guestfish-actions.pod:3479
27637 " part-del device partnum\n"
27642 #: ../fish/guestfish-actions.pod:3487
27647 #: ../fish/guestfish-actions.pod:3489
27650 " part-disk device parttype\n"
27653 " part-disk пристрій тип_розділу\n"
27657 #: ../fish/guestfish-actions.pod:3491
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."
27664 #: ../fish/guestfish-actions.pod:3495
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>."
27671 #: ../fish/guestfish-actions.pod:3501
27672 msgid "part-get-bootable"
27673 msgstr "part-get-bootable"
27676 #: ../fish/guestfish-actions.pod:3503
27679 " part-get-bootable device partnum\n"
27684 #: ../fish/guestfish-actions.pod:3508
27685 msgid "See also L</part-set-bootable>."
27686 msgstr "Див. також L</part-set-bootable>."
27689 #: ../fish/guestfish-actions.pod:3510
27690 msgid "part-get-mbr-id"
27691 msgstr "part-get-mbr-id"
27694 #: ../fish/guestfish-actions.pod:3512
27697 " part-get-mbr-id device partnum\n"
27702 #: ../fish/guestfish-actions.pod:3517 ../fish/guestfish-actions.pod:3655
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-"
27710 #: ../fish/guestfish-actions.pod:3521
27711 msgid "part-get-parttype"
27712 msgstr "part-get-parttype"
27715 #: ../fish/guestfish-actions.pod:3523
27718 " part-get-parttype device\n"
27721 " part-get-parttype пристрій\n"
27725 #: ../fish/guestfish-actions.pod:3528
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."
27733 #: ../fish/guestfish-actions.pod:3533
27738 #: ../fish/guestfish-actions.pod:3535
27741 " part-init device parttype\n"
27746 #: ../fish/guestfish-actions.pod:3541
27748 "Initially there are no partitions. Following this, you should call L</part-"
27749 "add> for each partition required."
27753 #: ../fish/guestfish-actions.pod:3604
27758 #: ../fish/guestfish-actions.pod:3606
27761 " part-list device\n"
27764 " part-list device\n"
27768 #: ../fish/guestfish-actions.pod:3621
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>."
27775 #: ../fish/guestfish-actions.pod:3634
27776 msgid "part-set-bootable"
27777 msgstr "part-set-bootable"
27780 #: ../fish/guestfish-actions.pod:3636
27783 " part-set-bootable device partnum true|false\n"
27788 #: ../fish/guestfish-actions.pod:3645
27789 msgid "part-set-mbr-id"
27790 msgstr "part-set-mbr-id"
27793 #: ../fish/guestfish-actions.pod:3647
27796 " part-set-mbr-id device partnum idbyte\n"
27801 #: ../fish/guestfish-actions.pod:3659
27802 msgid "part-set-name"
27803 msgstr "part-set-name"
27806 #: ../fish/guestfish-actions.pod:3661
27809 " part-set-name device partnum name\n"
27814 #: ../fish/guestfish-actions.pod:3669
27815 msgid "part-to-dev"
27816 msgstr "part-to-dev"
27819 #: ../fish/guestfish-actions.pod:3671
27822 " part-to-dev partition\n"
27825 " part-to-dev розділ\n"
27829 #: ../fish/guestfish-actions.pod:3677
27831 "The named partition must exist, for example as a string returned from L"
27832 "</list-partitions>."
27836 #: ../fish/guestfish-actions.pod:3680
27837 msgid "ping-daemon"
27838 msgstr "ping-daemon"
27841 #: ../fish/guestfish-actions.pod:3682
27851 #: ../fish/guestfish-actions.pod:3689
27856 #: ../fish/guestfish-actions.pod:3691
27859 " pread path count offset\n"
27864 #: ../fish/guestfish-actions.pod:3699
27865 msgid "See also L</pwrite>, L</pread-device>."
27866 msgstr "Див. також L</pwrite>, L</pread-device>."
27869 #: ../fish/guestfish-actions.pod:3704
27870 msgid "pread-device"
27871 msgstr "pread-device"
27874 #: ../fish/guestfish-actions.pod:3706
27877 " pread-device device count offset\n"
27882 #: ../fish/guestfish-actions.pod:3714
27883 msgid "See also L</pread>."
27884 msgstr "Див. також L</pread>."
27887 #: ../fish/guestfish-actions.pod:3719
27892 #: ../fish/guestfish-actions.pod:3721
27895 " pvcreate device\n"
27898 " pvcreate пристрій\n"
27902 #: ../fish/guestfish-actions.pod:3727
27907 #: ../fish/guestfish-actions.pod:3729
27910 " pvremove device\n"
27913 " pvremove пристрій\n"
27917 #: ../fish/guestfish-actions.pod:3738
27922 #: ../fish/guestfish-actions.pod:3740
27925 " pvresize device\n"
27928 " pvresize пристрій\n"
27932 #: ../fish/guestfish-actions.pod:3745
27933 msgid "pvresize-size"
27934 msgstr "pvresize-size"
27937 #: ../fish/guestfish-actions.pod:3747
27940 " pvresize-size device size\n"
27945 #: ../fish/guestfish-actions.pod:3749
27947 "This command is the same as L</pvresize> except that it allows you to "
27948 "specify the new size (in bytes) explicitly."
27952 #: ../fish/guestfish-actions.pod:3752
27957 #: ../fish/guestfish-actions.pod:3754
27967 #: ../fish/guestfish-actions.pod:3762
27968 msgid "See also L</pvs-full>."
27969 msgstr "Див. також L</pvs-full>."
27972 #: ../fish/guestfish-actions.pod:3764
27977 #: ../fish/guestfish-actions.pod:3766
27987 #: ../fish/guestfish-actions.pod:3771
27992 #: ../fish/guestfish-actions.pod:3773
27998 " pvuuid пристрій\n"
28002 #: ../fish/guestfish-actions.pod:3777
28007 #: ../fish/guestfish-actions.pod:3779
28010 " pwrite path content offset\n"
28015 #: ../fish/guestfish-actions.pod:3790
28016 msgid "See also L</pread>, L</pwrite-device>."
28017 msgstr "Див. також L</pread>, L</pwrite-device>."
28020 #: ../fish/guestfish-actions.pod:3795
28021 msgid "pwrite-device"
28022 msgstr "pwrite-device"
28025 #: ../fish/guestfish-actions.pod:3797
28028 " pwrite-device device content offset\n"
28033 #: ../fish/guestfish-actions.pod:3807
28034 msgid "See also L</pwrite>."
28035 msgstr "Див. також L</pwrite>."
28038 #: ../fish/guestfish-actions.pod:3812
28043 #: ../fish/guestfish-actions.pod:3814
28046 " read-file path\n"
28049 " read-file шлях\n"
28053 #: ../fish/guestfish-actions.pod:3819
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."
28061 #: ../fish/guestfish-actions.pod:3827
28063 msgstr "read-lines"
28066 #: ../fish/guestfish-actions.pod:3829
28069 " read-lines path\n"
28072 " read-lines шлях\n"
28076 #: ../fish/guestfish-actions.pod:3836
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 "
28085 #: ../fish/guestfish-actions.pod:3841
28090 #: ../fish/guestfish-actions.pod:3843
28096 " readdir каталог\n"
28100 #: ../fish/guestfish-actions.pod:3895
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>."
28108 #: ../fish/guestfish-actions.pod:3899
28113 #: ../fish/guestfish-actions.pod:3901
28123 #: ../fish/guestfish-actions.pod:3905
28124 msgid "readlinklist"
28125 msgstr "readlinklist"
28128 #: ../fish/guestfish-actions.pod:3907
28131 " readlinklist path 'names ...'\n"
28136 #: ../fish/guestfish-actions.pod:3931
28141 #: ../fish/guestfish-actions.pod:3933
28151 #: ../fish/guestfish-actions.pod:3938
28152 msgid "removexattr"
28153 msgstr "removexattr"
28156 #: ../fish/guestfish-actions.pod:3940
28159 " removexattr xattr path\n"
28164 #: ../fish/guestfish-actions.pod:3945
28165 msgid "See also: L</lremovexattr>, L<attr(5)>."
28166 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
28169 #: ../fish/guestfish-actions.pod:3947
28174 #: ../fish/guestfish-actions.pod:3949
28177 " resize2fs device\n"
28180 " resize2fs пристрій\n"
28184 #: ../fish/guestfish-actions.pod:3954
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."
28193 #: ../fish/guestfish-actions.pod:3960
28194 msgid "resize2fs-M"
28195 msgstr "resize2fs-M"
28198 #: ../fish/guestfish-actions.pod:3962
28201 " resize2fs-M device\n"
28204 " resize2fs-M пристрій\n"
28208 #: ../fish/guestfish-actions.pod:3964
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> "
28216 #: ../fish/guestfish-actions.pod:3968
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 "
28225 #: ../fish/guestfish-actions.pod:3973
28226 msgid "resize2fs-size"
28227 msgstr "resize2fs-size"
28230 #: ../fish/guestfish-actions.pod:3975
28233 " resize2fs-size device size\n"
28238 #: ../fish/guestfish-actions.pod:3977
28240 "This command is the same as L</resize2fs> except that it allows you to "
28241 "specify the new size (in bytes) explicitly."
28245 #: ../fish/guestfish-actions.pod:3980
28250 #: ../fish/guestfish-actions.pod:3982
28260 #: ../fish/guestfish-actions.pod:3986
28265 #: ../fish/guestfish-actions.pod:3988
28275 #: ../fish/guestfish-actions.pod:3994
28280 #: ../fish/guestfish-actions.pod:3996
28290 #: ../fish/guestfish-actions.pod:4000
28291 msgid "rmmountpoint"
28292 msgstr "rmmountpoint"
28295 #: ../fish/guestfish-actions.pod:4002
28298 " rmmountpoint exemptpath\n"
28303 #: ../fish/guestfish-actions.pod:4004
28305 "This calls removes a mountpoint that was previously created with "
28306 "L</mkmountpoint>. See L</mkmountpoint> for full details."
28310 #: ../fish/guestfish-actions.pod:4008
28311 msgid "scrub-device"
28312 msgstr "scrub-device"
28315 #: ../fish/guestfish-actions.pod:4010
28318 " scrub-device device\n"
28321 " scrub-device пристрій\n"
28325 #: ../fish/guestfish-actions.pod:4021
28327 msgstr "scrub-file"
28330 #: ../fish/guestfish-actions.pod:4023
28333 " scrub-file file\n"
28336 " scrub-file файл\n"
28340 #: ../fish/guestfish-actions.pod:4033
28341 msgid "scrub-freespace"
28342 msgstr "scrub-freespace"
28345 #: ../fish/guestfish-actions.pod:4035
28348 " scrub-freespace dir\n"
28351 " scrub-freespace каталог\n"
28355 #: ../fish/guestfish-actions.pod:4037
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>."
28364 #: ../fish/guestfish-actions.pod:4046
28366 msgstr "set-append"
28369 #: ../fish/guestfish-actions.pod:4048
28374 #: ../fish/guestfish-actions.pod:4050
28377 " set-append append\n"
28382 #: ../fish/guestfish-actions.pod:4061
28383 msgid "set-attach-method"
28384 msgstr "set-attach-method"
28387 #: ../fish/guestfish-actions.pod:4063
28388 msgid "attach-method"
28392 #: ../fish/guestfish-actions.pod:4065
28395 " set-attach-method attachmethod\n"
28400 #: ../fish/guestfish-actions.pod:4087
28401 msgid "set-autosync"
28402 msgstr "set-autosync"
28405 #: ../fish/guestfish-actions.pod:4089
28410 #: ../fish/guestfish-actions.pod:4091
28413 " set-autosync true|false\n"
28416 " set-autosync true|false\n"
28420 #: ../fish/guestfish-actions.pod:4101
28422 msgstr "set-direct"
28425 #: ../fish/guestfish-actions.pod:4103
28430 #: ../fish/guestfish-actions.pod:4105
28433 " set-direct true|false\n"
28436 " set-direct true|false\n"
28440 #: ../fish/guestfish-actions.pod:4111
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."
28447 #: ../fish/guestfish-actions.pod:4120
28448 msgid "set-e2label"
28449 msgstr "set-e2label"
28452 #: ../fish/guestfish-actions.pod:4122
28455 " set-e2label device label\n"
28460 #: ../fish/guestfish-actions.pod:4128
28462 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
28463 "label on a filesystem."
28467 #: ../fish/guestfish-actions.pod:4131
28469 msgstr "set-e2uuid"
28472 #: ../fish/guestfish-actions.pod:4133
28475 " set-e2uuid device uuid\n"
28480 #: ../fish/guestfish-actions.pod:4140
28482 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
28483 "UUID of a filesystem."
28487 #: ../fish/guestfish-actions.pod:4143
28488 msgid "set-memsize"
28489 msgstr "set-memsize"
28492 #: ../fish/guestfish-actions.pod:4145
28497 #: ../fish/guestfish-actions.pod:4147
28500 " set-memsize memsize\n"
28505 #: ../fish/guestfish-actions.pod:4149
28507 "This sets the memory size in megabytes allocated to the qemu subprocess. "
28508 "This only has any effect if called before L</launch>."
28512 #: ../fish/guestfish-actions.pod:4160
28513 msgid "set-network"
28514 msgstr "set-network"
28517 #: ../fish/guestfish-actions.pod:4162
28522 #: ../fish/guestfish-actions.pod:4164
28525 " set-network true|false\n"
28528 " set-network true|false\n"
28532 #: ../fish/guestfish-actions.pod:4172
28534 "You must call this before calling L</launch>, otherwise it has no effect."
28538 #: ../fish/guestfish-actions.pod:4175
28543 #: ../fish/guestfish-actions.pod:4177
28548 #: ../fish/guestfish-actions.pod:4179
28551 " set-path searchpath\n"
28556 #: ../fish/guestfish-actions.pod:4188
28561 #: ../fish/guestfish-actions.pod:4190
28566 #: ../fish/guestfish-actions.pod:4192
28569 " set-pgroup true|false\n"
28574 #: ../fish/guestfish-actions.pod:4203
28579 #: ../fish/guestfish-actions.pod:4205
28584 #: ../fish/guestfish-actions.pod:4207
28594 #: ../fish/guestfish-actions.pod:4227
28595 msgid "set-recovery-proc"
28596 msgstr "set-recovery-proc"
28599 #: ../fish/guestfish-actions.pod:4229
28600 msgid "recovery-proc"
28601 msgstr "recovery-proc"
28604 #: ../fish/guestfish-actions.pod:4231
28607 " set-recovery-proc true|false\n"
28610 " set-recovery-proc true|false\n"
28614 #: ../fish/guestfish-actions.pod:4233
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."
28622 #: ../fish/guestfish-actions.pod:4238
28624 "This only has any effect if called before L</launch>, and the default is "
28629 #: ../fish/guestfish-actions.pod:4247
28630 msgid "set-selinux"
28631 msgstr "set-selinux"
28634 #: ../fish/guestfish-actions.pod:4249
28639 #: ../fish/guestfish-actions.pod:4251
28642 " set-selinux true|false\n"
28645 " set-selinux true|false\n"
28649 #: ../fish/guestfish-actions.pod:4262
28654 #: ../fish/guestfish-actions.pod:4264
28659 #: ../fish/guestfish-actions.pod:4266
28662 " set-trace true|false\n"
28665 " set-trace true|false\n"
28669 #: ../fish/guestfish-actions.pod:4278
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>)."
28676 #: ../fish/guestfish-actions.pod:4282
28677 msgid "set-verbose"
28678 msgstr "set-verbose"
28681 #: ../fish/guestfish-actions.pod:4284
28686 #: ../fish/guestfish-actions.pod:4286
28689 " set-verbose true|false\n"
28692 " set-verbose true|false\n"
28696 #: ../fish/guestfish-actions.pod:4293
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>)."
28703 #: ../fish/guestfish-actions.pod:4297
28708 #: ../fish/guestfish-actions.pod:4299
28711 " setcon context\n"
28714 " setcon контекст\n"
28718 #: ../fish/guestfish-actions.pod:4306
28723 #: ../fish/guestfish-actions.pod:4308
28726 " setxattr xattr val vallen path\n"
28731 #: ../fish/guestfish-actions.pod:4314
28732 msgid "See also: L</lsetxattr>, L<attr(5)>."
28733 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
28736 #: ../fish/guestfish-actions.pod:4316
28741 #: ../fish/guestfish-actions.pod:4318
28744 " sfdisk device cyls heads sectors 'lines ...'\n"
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>"
28754 #: ../fish/guestfish-actions.pod:4353
28759 #: ../fish/guestfish-actions.pod:4355
28762 " sfdiskM device 'lines ...'\n"
28767 #: ../fish/guestfish-actions.pod:4357
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."
28776 #: ../fish/guestfish-actions.pod:4363
28777 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
28779 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
28782 #: ../fish/guestfish-actions.pod:4376
28787 #: ../fish/guestfish-actions.pod:4378
28790 " sfdisk-N device partnum cyls heads sectors line\n"
28795 #: ../fish/guestfish-actions.pod:4383
28797 "For other parameters, see L</sfdisk>. You should usually pass C<0> for the "
28798 "cyls/heads/sectors parameters."
28802 #: ../fish/guestfish-actions.pod:4386
28803 msgid "See also: L</part-add>"
28804 msgstr "Див. також L</part-add>"
28807 #: ../fish/guestfish-actions.pod:4398
28808 msgid "sfdisk-disk-geometry"
28809 msgstr "sfdisk-disk-geometry"
28812 #: ../fish/guestfish-actions.pod:4400
28815 " sfdisk-disk-geometry device\n"
28818 " sfdisk-disk-geometry пристрій\n"
28822 #: ../fish/guestfish-actions.pod:4402
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>)."
28831 #: ../fish/guestfish-actions.pod:4410
28832 msgid "sfdisk-kernel-geometry"
28833 msgstr "sfdisk-kernel-geometry"
28836 #: ../fish/guestfish-actions.pod:4412
28839 " sfdisk-kernel-geometry device\n"
28842 " sfdisk-kernel-geometry пристрій\n"
28846 #: ../fish/guestfish-actions.pod:4419
28851 #: ../fish/guestfish-actions.pod:4421
28854 " sfdisk-l device\n"
28857 " sfdisk-l пристрій\n"
28861 #: ../fish/guestfish-actions.pod:4427
28862 msgid "See also: L</part-list>"
28863 msgstr "Див. також L</part-list>"
28866 #: ../fish/guestfish-actions.pod:4436
28871 #: ../fish/guestfish-actions.pod:4438
28881 #: ../fish/guestfish-actions.pod:4443
28882 msgid "This is like L</command>, but passes the command to:"
28886 #: ../fish/guestfish-actions.pod:4451
28887 msgid "All the provisos about L</command> apply to this call."
28891 #: ../fish/guestfish-actions.pod:4453
28896 #: ../fish/guestfish-actions.pod:4455
28899 " sh-lines command\n"
28902 " sh-lines команда\n"
28906 #: ../fish/guestfish-actions.pod:4457
28908 "This is the same as L</sh>, but splits the result into a list of lines."
28912 #: ../fish/guestfish-actions.pod:4460
28913 msgid "See also: L</command-lines>"
28914 msgstr "Див. також L</command-lines>"
28917 #: ../fish/guestfish-actions.pod:4462
28922 #: ../fish/guestfish-actions.pod:4464
28928 " sleep час_у_секундах\n"
28932 #: ../fish/guestfish-actions.pod:4468
28937 #: ../fish/guestfish-actions.pod:4470
28947 #: ../fish/guestfish-actions.pod:4476
28952 #: ../fish/guestfish-actions.pod:4478
28962 #: ../fish/guestfish-actions.pod:4486
28967 #: ../fish/guestfish-actions.pod:4488
28977 #: ../fish/guestfish-actions.pod:4496
28982 #: ../fish/guestfish-actions.pod:4498
28985 " strings-e encoding path\n"
28988 " strings-e кодування шлях\n"
28992 #: ../fish/guestfish-actions.pod:4500
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>."
28999 #: ../fish/guestfish-actions.pod:4510
29001 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
29002 "ISO-8859-X (this is what L</strings> uses)."
29006 #: ../fish/guestfish-actions.pod:4542
29007 msgid "swapoff-device"
29008 msgstr "swapoff-device"
29011 #: ../fish/guestfish-actions.pod:4544
29014 " swapoff-device device\n"
29017 " swapoff-device пристрій\n"
29021 #: ../fish/guestfish-actions.pod:4546
29023 "This command disables the libguestfs appliance swap device or partition "
29024 "named C<device>. See L</swapon-device>."
29028 #: ../fish/guestfish-actions.pod:4550
29029 msgid "swapoff-file"
29030 msgstr "swapoff-file"
29033 #: ../fish/guestfish-actions.pod:4552
29036 " swapoff-file file\n"
29039 " swapoff-file файл\n"
29043 #: ../fish/guestfish-actions.pod:4556
29044 msgid "swapoff-label"
29045 msgstr "swapoff-label"
29048 #: ../fish/guestfish-actions.pod:4558
29051 " swapoff-label label\n"
29054 " swapoff-label мітка\n"
29058 #: ../fish/guestfish-actions.pod:4563
29059 msgid "swapoff-uuid"
29060 msgstr "swapoff-uuid"
29063 #: ../fish/guestfish-actions.pod:4565
29066 " swapoff-uuid uuid\n"
29069 " swapoff-uuid uuid\n"
29073 #: ../fish/guestfish-actions.pod:4570
29074 msgid "swapon-device"
29075 msgstr "swapon-device"
29078 #: ../fish/guestfish-actions.pod:4572
29081 " swapon-device device\n"
29084 " swapon-device пристрій\n"
29088 #: ../fish/guestfish-actions.pod:4574
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>."
29096 #: ../fish/guestfish-actions.pod:4586
29097 msgid "swapon-file"
29098 msgstr "swapon-file"
29101 #: ../fish/guestfish-actions.pod:4588
29104 " swapon-file file\n"
29107 " swapon-file файл\n"
29111 #: ../fish/guestfish-actions.pod:4590
29113 "This command enables swap to a file. See L</swapon-device> for other notes."
29117 #: ../fish/guestfish-actions.pod:4593
29118 msgid "swapon-label"
29119 msgstr "swapon-label"
29122 #: ../fish/guestfish-actions.pod:4595
29125 " swapon-label label\n"
29128 " swapon-label мітка\n"
29132 #: ../fish/guestfish-actions.pod:4597
29134 "This command enables swap to a labeled swap partition. See L</swapon-"
29135 "device> for other notes."
29139 #: ../fish/guestfish-actions.pod:4600
29140 msgid "swapon-uuid"
29141 msgstr "swapon-uuid"
29144 #: ../fish/guestfish-actions.pod:4602
29147 " swapon-uuid uuid\n"
29150 " swapon-uuid uuid\n"
29154 #: ../fish/guestfish-actions.pod:4604
29156 "This command enables swap to a swap partition with the given UUID. See L"
29157 "</swapon-device> for other notes."
29161 #: ../fish/guestfish-actions.pod:4607
29166 #: ../fish/guestfish-actions.pod:4609
29176 #: ../fish/guestfish-actions.pod:4617
29181 #: ../fish/guestfish-actions.pod:4619
29191 #: ../fish/guestfish-actions.pod:4627
29196 #: ../fish/guestfish-actions.pod:4629
29199 " tail-n nrlines path\n"
29204 #: ../fish/guestfish-actions.pod:4642
29209 #: ../fish/guestfish-actions.pod:4644
29212 " tar-in (tarfile|-) directory\n"
29215 " tar-in (файл_tar|-) каталог\n"
29219 #: ../fish/guestfish-actions.pod:4649
29220 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
29224 #: ../fish/guestfish-actions.pod:4654
29229 #: ../fish/guestfish-actions.pod:4656
29232 " tar-out directory (tarfile|-)\n"
29235 " tar-out каталог (файл tar|-)\n"
29239 #: ../fish/guestfish-actions.pod:4661
29240 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
29244 #: ../fish/guestfish-actions.pod:4666
29249 #: ../fish/guestfish-actions.pod:4668
29252 " tgz-in (tarball|-) directory\n"
29255 " tgz-in (архів tar|-) каталог\n"
29259 #: ../fish/guestfish-actions.pod:4673
29260 msgid "To upload an uncompressed tarball, use L</tar-in>."
29264 #: ../fish/guestfish-actions.pod:4677
29269 #: ../fish/guestfish-actions.pod:4679
29272 " tgz-out directory (tarball|-)\n"
29275 " tgz-out каталог (архів tar|-)\n"
29279 #: ../fish/guestfish-actions.pod:4684
29280 msgid "To download an uncompressed tarball, use L</tar-out>."
29284 #: ../fish/guestfish-actions.pod:4688
29289 #: ../fish/guestfish-actions.pod:4690
29299 #: ../fish/guestfish-actions.pod:4699
29304 #: ../fish/guestfish-actions.pod:4701
29314 #: ../fish/guestfish-actions.pod:4706
29315 msgid "truncate-size"
29316 msgstr "truncate-size"
29319 #: ../fish/guestfish-actions.pod:4708
29322 " truncate-size path size\n"
29325 " truncate-size шлях розмір\n"
29329 #: ../fish/guestfish-actions.pod:4713
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."
29338 #: ../fish/guestfish-actions.pod:4719
29343 #: ../fish/guestfish-actions.pod:4721
29346 " tune2fs-l device\n"
29349 " tune2fs-l пристрій\n"
29353 #: ../fish/guestfish-actions.pod:4731
29358 #: ../fish/guestfish-actions.pod:4733
29361 " txz-in (tarball|-) directory\n"
29364 " txz-in (архів tar|-) каталог\n"
29368 #: ../fish/guestfish-actions.pod:4740
29373 #: ../fish/guestfish-actions.pod:4742
29376 " txz-out directory (tarball|-)\n"
29379 " txz-out каталог (архів tar|-)\n"
29383 #: ../fish/guestfish-actions.pod:4749
29388 #: ../fish/guestfish-actions.pod:4751
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>."
29403 #: ../fish/guestfish-actions.pod:4770
29408 #: ../fish/guestfish-actions.pod:4772
29413 #: ../fish/guestfish-actions.pod:4774
29416 " umount pathordevice\n"
29419 " umount шлях_або_пристрій\n"
29423 #: ../fish/guestfish-actions.pod:4780
29425 msgstr "umount-all"
29428 #: ../fish/guestfish-actions.pod:4782
29429 msgid "unmount-all"
29430 msgstr "unmount-all"
29433 #: ../fish/guestfish-actions.pod:4784
29443 #: ../fish/guestfish-actions.pod:4790
29448 #: ../fish/guestfish-actions.pod:4792
29451 " upload (filename|-) remotefilename\n"
29454 " upload (назва_файла|-) назва_віддаленого_файла\n"
29458 #: ../fish/guestfish-actions.pod:4799
29459 msgid "See also L</download>."
29460 msgstr "Див. також L</download>."
29463 #: ../fish/guestfish-actions.pod:4803
29464 msgid "upload-offset"
29465 msgstr "upload-offset"
29468 #: ../fish/guestfish-actions.pod:4805
29471 " upload-offset (filename|-) remotefilename offset\n"
29474 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
29478 #: ../fish/guestfish-actions.pod:4817
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."
29486 #: ../fish/guestfish-actions.pod:4822
29487 msgid "See also L</upload>, L</pwrite>."
29488 msgstr "Див. також L</upload>, L</pwrite>."
29491 #: ../fish/guestfish-actions.pod:4826
29496 #: ../fish/guestfish-actions.pod:4828
29499 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
29504 #: ../fish/guestfish-actions.pod:4847
29509 #: ../fish/guestfish-actions.pod:4849
29519 #: ../fish/guestfish-actions.pod:4876
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."
29528 #: ../fish/guestfish-actions.pod:4882
29533 #: ../fish/guestfish-actions.pod:4884
29536 " vfs-label device\n"
29539 " vfs-label пристрій\n"
29543 #: ../fish/guestfish-actions.pod:4891
29544 msgid "To find a filesystem from the label, use L</findfs-label>."
29548 #: ../fish/guestfish-actions.pod:4893
29553 #: ../fish/guestfish-actions.pod:4895
29556 " vfs-type device\n"
29559 " vfs-type пристрій\n"
29563 #: ../fish/guestfish-actions.pod:4905
29568 #: ../fish/guestfish-actions.pod:4907
29571 " vfs-uuid device\n"
29574 " vfs-uuid пристрій\n"
29578 #: ../fish/guestfish-actions.pod:4914
29579 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
29583 #: ../fish/guestfish-actions.pod:4916
29584 msgid "vg-activate"
29585 msgstr "vg-activate"
29588 #: ../fish/guestfish-actions.pod:4918
29591 " vg-activate true|false 'volgroups ...'\n"
29596 #: ../fish/guestfish-actions.pod:4928
29597 msgid "vg-activate-all"
29598 msgstr "vg-activate-all"
29601 #: ../fish/guestfish-actions.pod:4930
29604 " vg-activate-all true|false\n"
29607 " vg-activate-all true|false\n"
29611 #: ../fish/guestfish-actions.pod:4937
29616 #: ../fish/guestfish-actions.pod:4939
29619 " vgcreate volgroup 'physvols ...'\n"
29624 #: ../fish/guestfish-actions.pod:4944
29629 #: ../fish/guestfish-actions.pod:4946
29632 " vglvuuids vgname\n"
29637 #: ../fish/guestfish-actions.pod:4951
29639 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
29640 "logical volumes and volume groups."
29644 #: ../fish/guestfish-actions.pod:4954
29645 msgid "See also L</vgpvuuids>."
29646 msgstr "Див. також L</vgpvuuids>."
29649 #: ../fish/guestfish-actions.pod:4956
29654 #: ../fish/guestfish-actions.pod:4958
29657 " vgpvuuids vgname\n"
29662 #: ../fish/guestfish-actions.pod:4963
29664 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
29665 "physical volumes and volume groups."
29669 #: ../fish/guestfish-actions.pod:4966
29670 msgid "See also L</vglvuuids>."
29671 msgstr "Див. також L</vglvuuids>."
29674 #: ../fish/guestfish-actions.pod:4968
29679 #: ../fish/guestfish-actions.pod:4970
29682 " vgremove vgname\n"
29687 #: ../fish/guestfish-actions.pod:4977
29692 #: ../fish/guestfish-actions.pod:4979
29695 " vgrename volgroup newvolgroup\n"
29700 #: ../fish/guestfish-actions.pod:4983
29705 #: ../fish/guestfish-actions.pod:4985
29715 #: ../fish/guestfish-actions.pod:4993
29716 msgid "See also L</vgs-full>."
29717 msgstr "Див. також L</vgs-full>."
29720 #: ../fish/guestfish-actions.pod:4995
29725 #: ../fish/guestfish-actions.pod:4997
29735 #: ../fish/guestfish-actions.pod:5002
29740 #: ../fish/guestfish-actions.pod:5004
29750 #: ../fish/guestfish-actions.pod:5009
29755 #: ../fish/guestfish-actions.pod:5011
29763 #: ../fish/guestfish-actions.pod:5015
29768 #: ../fish/guestfish-actions.pod:5017
29778 #: ../fish/guestfish-actions.pod:5022
29783 #: ../fish/guestfish-actions.pod:5024
29793 #: ../fish/guestfish-actions.pod:5029
29798 #: ../fish/guestfish-actions.pod:5031
29808 #: ../fish/guestfish-actions.pod:5036
29813 #: ../fish/guestfish-actions.pod:5038
29816 " write path content\n"
29819 " write шлях дані\n"
29823 #: ../fish/guestfish-actions.pod:5043
29824 msgid "See also L</write-append>."
29828 #: ../fish/guestfish-actions.pod:5048
29829 msgid "write-append"
29833 #: ../fish/guestfish-actions.pod:5050
29836 " write-append path content\n"
29841 #: ../fish/guestfish-actions.pod:5055
29842 msgid "See also L</write>."
29846 #: ../fish/guestfish-actions.pod:5060
29848 msgstr "write-file"
29851 #: ../fish/guestfish-actions.pod:5062
29854 " write-file path content size\n"
29859 #: ../fish/guestfish-actions.pod:5085
29864 #: ../fish/guestfish-actions.pod:5087
29867 " zegrep regex path\n"
29870 " zegrep формальний_вираз шлях\n"
29874 #: ../fish/guestfish-actions.pod:5095
29879 #: ../fish/guestfish-actions.pod:5097
29882 " zegrepi regex path\n"
29887 #: ../fish/guestfish-actions.pod:5105
29892 #: ../fish/guestfish-actions.pod:5107
29902 #: ../fish/guestfish-actions.pod:5115
29903 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
29907 #: ../fish/guestfish-actions.pod:5118
29908 msgid "zero-device"
29909 msgstr "zero-device"
29912 #: ../fish/guestfish-actions.pod:5120
29915 " zero-device device\n"
29918 " zero-device пристрій\n"
29922 #: ../fish/guestfish-actions.pod:5122
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."
29929 #: ../fish/guestfish-actions.pod:5129
29934 #: ../fish/guestfish-actions.pod:5131
29937 " zerofree device\n"
29940 " zerofree пристрій\n"
29944 #: ../fish/guestfish-actions.pod:5144
29949 #: ../fish/guestfish-actions.pod:5146
29952 " zfgrep pattern path\n"
29955 " zfgrep шаблон шлях\n"
29959 #: ../fish/guestfish-actions.pod:5154
29964 #: ../fish/guestfish-actions.pod:5156
29967 " zfgrepi pattern path\n"
29970 " zfgrepi шаблон шлях\n"
29974 #: ../fish/guestfish-actions.pod:5164
29979 #: ../fish/guestfish-actions.pod:5166
29982 " zfile meth path\n"
29985 " zfile метод шлях\n"
29989 #: ../fish/guestfish-actions.pod:5173
29991 "Since 1.0.63, use L</file> instead which can now process compressed files."
29995 #: ../fish/guestfish-actions.pod:5183
30000 #: ../fish/guestfish-actions.pod:5185
30003 " zgrep regex path\n"
30006 " zgrep формальний_вираз шлях\n"
30010 #: ../fish/guestfish-actions.pod:5193
30015 #: ../fish/guestfish-actions.pod:5195
30018 " zgrepi regex path\n"
30021 " zgrepi формальний_вираз шлях\n"
30025 #: ../fish/guestfish-commands.pod:1
30030 #: ../fish/guestfish-commands.pod:3
30035 #: ../fish/guestfish-commands.pod:5
30038 " alloc filename size\n"
30043 #: ../fish/guestfish-commands.pod:7
30045 "This creates an empty (zeroed) file of the given size, and then adds so it "
30046 "can be further examined."
30050 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:182
30051 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
30055 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:184
30056 msgid "Size can be specified using standard suffixes, eg. C<1M>."
30060 #: ../fish/guestfish-commands.pod:14
30062 "To create a sparse file, use L</sparse> instead. To create a prepared disk "
30063 "image, see L</PREPARED DISK IMAGES>."
30067 #: ../fish/guestfish-commands.pod:17
30072 #: ../fish/guestfish-commands.pod:19
30075 " copy-in local [local ...] /remotedir\n"
30080 #: ../fish/guestfish-commands.pod:21
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."
30089 #: ../fish/guestfish-commands.pod:26
30091 "Multiple local files and directories can be specified, but the last "
30092 "parameter must always be a remote directory. Wildcards cannot be used."
30096 #: ../fish/guestfish-commands.pod:30
30101 #: ../fish/guestfish-commands.pod:32
30104 " copy-out remote [remote ...] localdir\n"
30109 #: ../fish/guestfish-commands.pod:34
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."
30118 #: ../fish/guestfish-commands.pod:40
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:"
30126 #: ../fish/guestfish-commands.pod:44
30129 " copy-out /home .\n"
30132 " copy-out /home .\n"
30136 #: ../fish/guestfish-commands.pod:46
30138 "Wildcards cannot be used in the ordinary command, but you can use them with "
30139 "the help of L</glob> like this:"
30143 #: ../fish/guestfish-commands.pod:49
30146 " glob copy-out /home/* .\n"
30149 " glob copy-out /home/* .\n"
30153 #: ../fish/guestfish-commands.pod:51
30158 #: ../fish/guestfish-commands.pod:53
30161 " display filename\n"
30166 #: ../fish/guestfish-commands.pod:55
30168 "Use C<display> (a graphical display program) to display an image file. It "
30169 "downloads the file, and runs C<display> on it."
30173 #: ../fish/guestfish-commands.pod:58
30175 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
30176 "environment variable. For example to use the GNOME display program:"
30180 #: ../fish/guestfish-commands.pod:61
30183 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
30188 #: ../fish/guestfish-commands.pod:63
30189 msgid "See also L<display(1)>."
30193 #: ../fish/guestfish-commands.pod:65
30198 #: ../fish/guestfish-commands.pod:67
30201 " echo [params ...]\n"
30204 " echo [параметри...]\n"
30208 #: ../fish/guestfish-commands.pod:69
30209 msgid "This echos the parameters to the terminal."
30213 #: ../fish/guestfish-commands.pod:71
30218 #: ../fish/guestfish-commands.pod:73
30223 #: ../fish/guestfish-commands.pod:75
30228 #: ../fish/guestfish-commands.pod:77
30234 " edit назва_файла\n"
30238 #: ../fish/guestfish-commands.pod:79
30240 "This is used to edit a file. It downloads the file, edits it locally using "
30241 "your editor, then uploads the result."
30245 #: ../fish/guestfish-commands.pod:82
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."
30252 #: ../fish/guestfish-commands.pod:86
30257 #: ../fish/guestfish-commands.pod:88
30260 " glob command args...\n"
30263 " glob команда параметри...\n"
30267 #: ../fish/guestfish-commands.pod:90
30269 "Expand wildcards in any paths in the args list, and run C<command> "
30270 "repeatedly on each matching path."
30274 #: ../fish/guestfish-commands.pod:93
30275 msgid "See L</WILDCARDS AND GLOBBING>."
30276 msgstr "Див. L</WILDCARDS AND GLOBBING>."
30279 #: ../fish/guestfish-commands.pod:95
30284 #: ../fish/guestfish-commands.pod:97
30287 " hexedit <filename|device>\n"
30288 " hexedit <filename|device> <max>\n"
30289 " hexedit <filename|device> <start> <max>\n"
30294 #: ../fish/guestfish-commands.pod:101
30296 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
30301 #: ../fish/guestfish-commands.pod:104
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)."
30311 #: ../fish/guestfish-commands.pod:111
30312 msgid "For example to edit the first few sectors of a disk you might do:"
30316 #: ../fish/guestfish-commands.pod:114
30319 " hexedit /dev/sda 1M\n"
30322 " hexedit /dev/sda 1M\n"
30326 #: ../fish/guestfish-commands.pod:116
30328 "which would allow you to edit anywhere within the first megabyte of the "
30333 #: ../fish/guestfish-commands.pod:119
30334 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
30338 #: ../fish/guestfish-commands.pod:121
30341 " hexedit /dev/sda1 0x400 0x400\n"
30344 " hexedit /dev/sda1 0x400 0x400\n"
30348 #: ../fish/guestfish-commands.pod:123
30349 msgid "(assuming the superblock is in the standard location)."
30353 #: ../fish/guestfish-commands.pod:125
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."
30360 #: ../fish/guestfish-commands.pod:129
30361 msgid "See also L</hexdump>."
30362 msgstr "Див. також L</hexdump>."
30365 #: ../fish/guestfish-commands.pod:131
30370 #: ../fish/guestfish-commands.pod:133
30378 #: ../fish/guestfish-commands.pod:135
30380 "Change the local directory, ie. the current directory of guestfish itself."
30384 #: ../fish/guestfish-commands.pod:138
30385 msgid "Note that C<!cd> won't do what you might expect."
30389 #: ../fish/guestfish-commands.pod:140
30394 #: ../fish/guestfish-commands.pod:142
30399 #: ../fish/guestfish-commands.pod:144
30409 #: ../fish/guestfish-commands.pod:146
30410 msgid "Opens the manual page for guestfish."
30414 #: ../fish/guestfish-commands.pod:148
30419 #: ../fish/guestfish-commands.pod:150
30424 #: ../fish/guestfish-commands.pod:152
30432 #: ../fish/guestfish-commands.pod:154
30440 #: ../fish/guestfish-commands.pod:156
30441 msgid "This is used to view a file."
30445 #: ../fish/guestfish-commands.pod:158
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."
30452 #: ../fish/guestfish-commands.pod:161
30457 #: ../fish/guestfish-commands.pod:163
30465 #: ../fish/guestfish-commands.pod:165
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."
30473 #: ../fish/guestfish-commands.pod:169
30478 #: ../fish/guestfish-commands.pod:171
30481 " sparse filename size\n"
30486 #: ../fish/guestfish-commands.pod:173
30488 "This creates an empty sparse file of the given size, and then adds so it can"
30489 " be further examined."
30493 #: ../fish/guestfish-commands.pod:176
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."
30503 #: ../fish/guestfish-commands.pod:186
30508 #: ../fish/guestfish-commands.pod:188
30518 #: ../fish/guestfish-commands.pod:190
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 "
30526 #: ../fish/guestfish-commands.pod:194
30527 msgid "See also L<guestfs(3)/AVAILABILITY>."
30531 #: ../fish/guestfish-commands.pod:196
30536 #: ../fish/guestfish-commands.pod:198
30539 " time command args...\n"
30544 #: ../fish/guestfish-commands.pod:200
30546 "Run the command as usual, but print the elapsed time afterwards. This can "
30547 "be useful for benchmarking operations."
30551 #: ../test-tool/libguestfs-test-tool.pod:5
30552 msgid "libguestfs-test-tool - End user tests for libguestfs"
30556 #: ../test-tool/libguestfs-test-tool.pod:9
30559 " libguestfs-test-tool [--options]\n"
30564 #: ../test-tool/libguestfs-test-tool.pod:13
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."
30574 #: ../test-tool/libguestfs-test-tool.pod:20
30575 msgid "If you suspect a problem in libguestfs, then just run:"
30579 #: ../test-tool/libguestfs-test-tool.pod:22
30582 " libguestfs-test-tool\n"
30587 #: ../test-tool/libguestfs-test-tool.pod:24
30588 msgid "It will print lots of diagnostic messages."
30592 #: ../test-tool/libguestfs-test-tool.pod:26
30593 msgid "If it runs to completion successfully, you will see this near the end:"
30597 #: ../test-tool/libguestfs-test-tool.pod:28
30600 " ===== TEST FINISHED OK =====\n"
30605 #: ../test-tool/libguestfs-test-tool.pod:30
30606 msgid "and the test tool will exit with code 0."
30610 #: ../test-tool/libguestfs-test-tool.pod:32
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."
30619 #: ../test-tool/libguestfs-test-tool.pod:41
30624 #: ../test-tool/libguestfs-test-tool.pod:43
30625 msgid "Display short usage information and exit."
30629 #: ../test-tool/libguestfs-test-tool.pod:45
30630 msgid "I<--qemu qemu_binary>"
30631 msgstr "I<--qemu виконуваний_файл_qemu>"
30634 #: ../test-tool/libguestfs-test-tool.pod:47
30636 "If you have downloaded another qemu binary, point this option at the full "
30637 "path of the binary to try it."
30641 #: ../test-tool/libguestfs-test-tool.pod:50
30642 msgid "I<--qemudir qemu_source_dir>"
30646 #: ../test-tool/libguestfs-test-tool.pod:52
30648 "If you have compiled qemu from source, point this option at the source "
30649 "directory to try it."
30653 #: ../test-tool/libguestfs-test-tool.pod:55
30654 msgid "I<--timeout N>"
30655 msgstr "I<--timeout N>"
30658 #: ../test-tool/libguestfs-test-tool.pod:57
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."
30665 #: ../test-tool/libguestfs-test-tool.pod:63
30666 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
30670 #: ../test-tool/libguestfs-test-tool.pod:65
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."
30678 #: ../test-tool/libguestfs-test-tool.pod:69
30680 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
30681 "option to point to the binary."
30685 #: ../test-tool/libguestfs-test-tool.pod:72
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."
30694 #: ../test-tool/libguestfs-test-tool.pod:79
30696 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
30697 "I<1> if there was an error."
30701 #: ../test-tool/libguestfs-test-tool.pod:84
30703 "For the full list of environment variables which may affect libguestfs, "
30704 "please see the L<guestfs(3)> manual page."
30708 #: ../test-tool/libguestfs-test-tool.pod:89
30709 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
30713 #: ../fuse/guestmount.pod:5
30715 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
30719 #: ../fuse/guestmount.pod:9
30722 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
30727 #: ../fuse/guestmount.pod:11
30730 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
30735 #: ../fuse/guestmount.pod:13
30738 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
30743 #: ../fuse/guestmount.pod:17
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."
30750 #: ../fuse/guestmount.pod:22
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."
30759 #: ../fuse/guestmount.pod:27
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 "
30769 #: ../fuse/guestmount.pod:33
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."
30778 #: ../fuse/guestmount.pod:41
30780 "For a typical Windows guest which has its main filesystem on the first "
30785 #: ../fuse/guestmount.pod:44
30788 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
30793 #: ../fuse/guestmount.pod:46
30795 "For a typical Linux guest which has a /boot filesystem on the first "
30796 "partition, and the root filesystem on a logical volume:"
30800 #: ../fuse/guestmount.pod:49
30803 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
30808 #: ../fuse/guestmount.pod:51
30809 msgid "To get libguestfs to detect guest mountpoints for you:"
30813 #: ../fuse/guestmount.pod:53
30816 " guestmount -a guest.img -i --ro /mnt\n"
30821 #: ../fuse/guestmount.pod:55
30822 msgid "For a libvirt guest called \"Guest\" you could do:"
30826 #: ../fuse/guestmount.pod:57
30829 " guestmount -d Guest -i --ro /mnt\n"
30834 #: ../fuse/guestmount.pod:59
30836 "If you don't know what filesystems are contained in a guest or disk image, "
30837 "use L<virt-filesystems(1)> first:"
30841 #: ../fuse/guestmount.pod:62
30844 " virt-filesystems MyGuest\n"
30849 #: ../fuse/guestmount.pod:64
30851 "If you want to trace the libguestfs calls but without excessive debugging "
30852 "information, we recommend:"
30856 #: ../fuse/guestmount.pod:67
30859 " guestmount [...] --trace /mnt\n"
30864 #: ../fuse/guestmount.pod:69
30865 msgid "If you want to debug the program, we recommend:"
30869 #: ../fuse/guestmount.pod:71
30872 " guestmount [...] --trace --verbose /mnt\n"
30877 #: ../fuse/guestmount.pod:73
30882 #: ../fuse/guestmount.pod:75
30883 msgid "Other users cannot see the filesystem by default"
30887 #: ../fuse/guestmount.pod:77
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:"
30895 #: ../fuse/guestmount.pod:81
30898 " sudo guestmount [...] -o allow_other /mnt\n"
30903 #: ../fuse/guestmount.pod:87
30904 msgid "B<-a image> | B<--add image>"
30908 #: ../fuse/guestmount.pod:89
30909 msgid "Add a block device or virtual machine image."
30913 #: ../fuse/guestmount.pod:94
30914 msgid "B<-c URI> | B<--connect URI>"
30918 #: ../fuse/guestmount.pod:100
30919 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
30923 #: ../fuse/guestmount.pod:108
30924 msgid "B<--dir-cache-timeout N>"
30925 msgstr "B<--dir-cache-timeout N>"
30928 #: ../fuse/guestmount.pod:110
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"
30938 #: ../fuse/guestmount.pod:116
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."
30946 #: ../fuse/guestmount.pod:127
30947 msgid "B<--format=raw|qcow2|..> | B<--format>"
30951 #: ../fuse/guestmount.pod:134
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>."
30960 #: ../fuse/guestmount.pod:139
30961 msgid "B<--fuse-help>"
30962 msgstr "B<--fuse-help>"
30965 #: ../fuse/guestmount.pod:141
30966 msgid "Display help on special FUSE options (see I<-o> below)."
30970 #: ../fuse/guestmount.pod:145
30971 msgid "Display brief help and exit."
30975 #: ../fuse/guestmount.pod:147
30976 msgid "B<-i> | B<--inspector>"
30980 #: ../fuse/guestmount.pod:167
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)."
30987 #: ../fuse/guestmount.pod:170
30989 "If the mountpoint is omitted, it defaults to C</>. You have to mount "
30990 "something on C</>."
30994 #: ../fuse/guestmount.pod:183
30995 msgid "B<-n> | B<--no-sync>"
30999 #: ../fuse/guestmount.pod:185
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."
31007 #: ../fuse/guestmount.pod:190
31008 msgid "B<-o option> | B<--option option>"
31012 #: ../fuse/guestmount.pod:192
31013 msgid "Pass extra options to FUSE."
31017 #: ../fuse/guestmount.pod:194
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."
31025 #: ../fuse/guestmount.pod:198
31028 " guestmount --fuse-help\n"
31033 #: ../fuse/guestmount.pod:200
31034 msgid "Some potentially useful FUSE options:"
31038 #: ../fuse/guestmount.pod:204
31039 msgid "B<-o allow_other>"
31043 #: ../fuse/guestmount.pod:206
31044 msgid "Allow other users to see the filesystem."
31048 #: ../fuse/guestmount.pod:208
31049 msgid "B<-o attr_timeout=N>"
31050 msgstr "B<-o attr_timeout=N>"
31053 #: ../fuse/guestmount.pod:210
31054 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
31058 #: ../fuse/guestmount.pod:212
31059 msgid "B<-o kernel_cache>"
31063 #: ../fuse/guestmount.pod:214
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."
31071 #: ../fuse/guestmount.pod:218
31072 msgid "B<-o uid=N> B<-o gid=N>"
31076 #: ../fuse/guestmount.pod:220
31078 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
31079 "the chosen values."
31083 #: ../fuse/guestmount.pod:225
31084 msgid "B<-r> | B<--ro>"
31088 #: ../fuse/guestmount.pod:227
31090 "Add devices and mount everything read-only. Also disallow writes and make "
31091 "the disk appear read-only to FUSE."
31095 #: ../fuse/guestmount.pod:230
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."
31104 #: ../fuse/guestmount.pod:235
31105 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
31109 #: ../fuse/guestmount.pod:239
31110 msgid "Enable SELinux support for the guest."
31114 #: ../fuse/guestmount.pod:241
31115 msgid "B<-v> | B<--verbose>"
31119 #: ../fuse/guestmount.pod:243
31120 msgid "Enable verbose messages from underlying libguestfs."
31124 #: ../fuse/guestmount.pod:245
31125 msgid "B<-V> | B<--version>"
31129 #: ../fuse/guestmount.pod:247
31130 msgid "Display the program version and exit."
31134 #: ../fuse/guestmount.pod:249
31135 msgid "B<-w> | B<--rw>"
31139 #: ../fuse/guestmount.pod:254 ../fuse/guestmount.pod:275
31140 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
31144 #: ../fuse/guestmount.pod:256
31145 msgid "B<-x> | B<--trace>"
31149 #: ../fuse/guestmount.pod:258
31150 msgid "Trace libguestfs calls and entry into each FUSE function."
31154 #: ../fuse/guestmount.pod:260
31155 msgid "This also stops the daemon from forking into the background."
31159 #: ../fuse/guestmount.pod:281
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/>."
31167 #: ../fuse/guestmount.pod:296
31168 msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
31172 #: ../tools/virt-win-reg.pl:37
31174 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
31179 #: ../tools/virt-win-reg.pl:41
31182 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
31187 #: ../tools/virt-win-reg.pl:43
31190 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
31195 #: ../tools/virt-win-reg.pl:45
31198 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
31203 #: ../tools/virt-win-reg.pl:47
31206 " virt-win-reg --merge domname [input.reg ...]\n"
31211 #: ../tools/virt-win-reg.pl:49
31214 " virt-win-reg [--options] disk.img ... # instead of domname\n"
31219 #: ../tools/virt-win-reg.pl:53
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."
31228 #: ../tools/virt-win-reg.pl:58
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."
31237 #: ../tools/virt-win-reg.pl:65
31239 "This program can export and merge Windows Registry entries from a Windows "
31244 #: ../tools/virt-win-reg.pl:68
31246 "The first parameter is the libvirt guest name or the raw disk image of a "
31251 #: ../tools/virt-win-reg.pl:71
31253 "If I<--merge> is I<not> specified, then the chosen registry key is "
31254 "displayed/exported (recursively). For example:"
31258 #: ../tools/virt-win-reg.pl:74
31261 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
31266 #: ../tools/virt-win-reg.pl:76
31268 "You can also display single values from within registry keys, for example:"
31272 #: ../tools/virt-win-reg.pl:79
31275 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
31276 " $ virt-win-reg Windows7 $cvkey ProductName\n"
31277 " Windows 7 Enterprise\n"
31282 #: ../tools/virt-win-reg.pl:83
31284 "With I<--merge>, you can merge a textual regedit file into the Windows "
31289 #: ../tools/virt-win-reg.pl:86
31292 " $ virt-win-reg --merge Windows7 changes.reg\n"
31297 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
31302 #: ../tools/virt-win-reg.pl:90
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)>."
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."
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 "Показати дані щодо версії і завершити роботу."
31326 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
31328 msgstr "B<--debug>"
31331 #: ../tools/virt-win-reg.pl:122
31332 msgid "Enable debugging messages."
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>"
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
31345 "If using libvirt, connect to the given I<URI>. If omitted, then we connect "
31346 "to the default libvirt hypervisor."
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
31353 "If you specify guest block devices directly, then libvirt is not used at "
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"
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
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."
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
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 "
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
31384 "If working with untrusted raw-format guest disk images, you should ensure "
31385 "the format is always specified."
31389 #: ../tools/virt-win-reg.pl:157
31391 msgstr "B<--merge>"
31394 #: ../tools/virt-win-reg.pl:159
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."
31402 #: ../tools/virt-win-reg.pl:163
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"
31410 #: ../tools/virt-win-reg.pl:171
31411 msgid "B<--encoding> UTF-16LE|ASCII"
31415 #: ../tools/virt-win-reg.pl:173
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>."
31423 #: ../tools/virt-win-reg.pl:177
31425 "The default is to use UTF-16LE, which should work with recent versions of "
31430 #: ../tools/virt-win-reg.pl:184
31431 msgid "B<--unsafe-printable-strings>"
31435 #: ../tools/virt-win-reg.pl:186
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 "
31443 #: ../tools/virt-win-reg.pl:190
31445 "This is unsafe and does not preserve the fidelity of strings in the original"
31446 " Registry for various reasons:"
31450 #: ../tools/virt-win-reg.pl:197
31452 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
31453 "other encodings will be corrupted by this transformation."
31457 #: ../tools/virt-win-reg.pl:202
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 "
31465 #: ../tools/virt-win-reg.pl:208
31467 "Loses information about whether a zero codepoint followed the string in the "
31472 #: ../tools/virt-win-reg.pl:213
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>)."
31479 #: ../tools/virt-win-reg.pl:217
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."
31487 #: ../tools/virt-win-reg.pl:554
31488 msgid "SUPPORTED SYSTEMS"
31492 #: ../tools/virt-win-reg.pl:556
31494 "The program currently supports Windows NT-derived guests starting with "
31495 "Windows XP through to at least Windows 7."
31499 #: ../tools/virt-win-reg.pl:559
31500 msgid "The following Registry keys are supported:"
31504 #: ../tools/virt-win-reg.pl:563
31505 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
31509 #: ../tools/virt-win-reg.pl:565
31510 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
31514 #: ../tools/virt-win-reg.pl:567
31515 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
31519 #: ../tools/virt-win-reg.pl:569
31520 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
31524 #: ../tools/virt-win-reg.pl:571
31525 msgid "C<HKEY_USERS\\.DEFAULT>"
31529 #: ../tools/virt-win-reg.pl:573
31530 msgid "C<HKEY_USERS\\I<SID>>"
31534 #: ../tools/virt-win-reg.pl:575
31535 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
31539 #: ../tools/virt-win-reg.pl:577
31540 msgid "C<HKEY_USERS\\I<username>>"
31544 #: ../tools/virt-win-reg.pl:579
31546 "where I<username> is a local user name (this is a libguestfs extension)."
31550 #: ../tools/virt-win-reg.pl:583
31552 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for"
31557 #: ../tools/virt-win-reg.pl:586
31559 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
31560 "supported (there is no \"current user\")."
31564 #: ../tools/virt-win-reg.pl:589
31569 #: ../tools/virt-win-reg.pl:591
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."
31579 #: ../tools/virt-win-reg.pl:597
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:"
31586 #: ../tools/virt-win-reg.pl:600
31589 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
31594 #: ../tools/virt-win-reg.pl:602
31596 "To go in the opposite direction, after exporting and before sending the file"
31597 " to a Windows user, do something like this:"
31601 #: ../tools/virt-win-reg.pl:605
31604 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
31609 #: ../tools/virt-win-reg.pl:607
31610 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
31614 #: ../tools/virt-win-reg.pl:609
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:"
31622 #: ../tools/virt-win-reg.pl:613
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"
31632 #: ../tools/virt-win-reg.pl:617
31633 msgid "This file would need conversion before you could I<--merge> it."
31637 #: ../tools/virt-win-reg.pl:619
31638 msgid "CurrentControlSet etc."
31642 #: ../tools/virt-win-reg.pl:621
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 "
31650 #: ../tools/virt-win-reg.pl:625
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:"
31658 #: ../tools/virt-win-reg.pl:629
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"
31671 #: ../tools/virt-win-reg.pl:636
31672 msgid "\"Current\" is the one which Windows will choose when it boots."
31676 #: ../tools/virt-win-reg.pl:638
31678 "Similarly, other C<Current...> keys in the path may need to be replaced."
31682 #: ../tools/virt-win-reg.pl:641
31683 msgid "WINDOWS TIPS"
31687 #: ../tools/virt-win-reg.pl:643
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."
31694 #: ../tools/virt-win-reg.pl:646
31695 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
31699 #: ../tools/virt-win-reg.pl:648
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:\\>:"
31707 #: ../tools/virt-win-reg.pl:652
31710 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
31715 #: ../tools/virt-win-reg.pl:654
31716 msgid "Prepare a regedit file containing the registry change:"
31720 #: ../tools/virt-win-reg.pl:656
31723 " cat > test.reg <<'EOF'\n"
31724 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
31725 " \"Test\"=\"c:\\\\test.bat\"\n"
31731 #: ../tools/virt-win-reg.pl:661
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>."
31739 #: ../tools/virt-win-reg.pl:665
31740 msgid "Now update the registry:"
31744 #: ../tools/virt-win-reg.pl:667
31747 " virt-win-reg --merge WindowsGuest test.reg\n"
31752 #: ../tools/virt-win-reg.pl:669
31753 msgid "INSTALLING A SERVICE"
31757 #: ../tools/virt-win-reg.pl:671
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 "
31766 #: ../tools/virt-win-reg.pl:676
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 "
31774 #: ../tools/virt-win-reg.pl:680
31777 " guestfish -i -d WindowsGuest <<EOF\n"
31778 " upload rhsrvany.exe /rhsrvany.exe\n"
31779 " upload test.exe /test.exe\n"
31785 #: ../tools/virt-win-reg.pl:685
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."
31794 #: ../tools/virt-win-reg.pl:690
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"
31809 #: ../tools/virt-win-reg.pl:699
31812 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
31813 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
31814 " \"PWD\"=\"c:\\\\Temp\"\n"
31820 #: ../tools/virt-win-reg.pl:710
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 "
31828 #: ../tools/virt-win-reg.pl:716
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."
31836 #: ../tools/virt-win-reg.pl:722
31838 "For the meaning of the magic numbers, see this Microsoft KB article: "
31839 "L<http://support.microsoft.com/kb/103000>."
31843 #: ../tools/virt-win-reg.pl:727
31844 msgid "Update the registry:"
31848 #: ../tools/virt-win-reg.pl:729
31851 " virt-win-reg --merge WindowsGuest service.reg\n"
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"
31863 #: ../tools/virt-win-reg.pl:733
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."
31871 #: ../tools/virt-win-reg.pl:737
31872 msgid "Paths and value names are case-insensitive."
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
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."
31887 #: ../tools/virt-win-reg.pl:746
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/>."
31896 #: ../tools/virt-win-reg.pl:761 ../tools/virt-make-fs.pl:555
31898 "When reporting bugs, please enable debugging and capture the I<complete> "
31903 #: ../tools/virt-win-reg.pl:764
31906 " export LIBGUESTFS_DEBUG=1\n"
31907 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
31912 #: ../tools/virt-win-reg.pl:767
31914 "Attach /tmp/virt-win-reg.log to a new bug report at "
31915 "L<https://bugzilla.redhat.com/>"
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
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/>"
31933 #: ../tools/virt-win-reg.pl:776 ../tools/virt-make-fs.pl:570
31934 msgid "Copyright (C) 2010 Red Hat Inc."
31938 #: ../tools/virt-list-filesystems.pl:32
31940 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
31944 #: ../tools/virt-list-filesystems.pl:36
31947 " virt-list-filesystems [--options] domname\n"
31952 #: ../tools/virt-list-filesystems.pl:38
31955 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
31960 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
31962 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
31967 #: ../tools/virt-list-filesystems.pl:45
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."
31974 #: ../tools/virt-list-filesystems.pl:49
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."
31982 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
31983 msgid "B<-l> | B<--long>"
31987 #: ../tools/virt-list-filesystems.pl:108
31989 "With this option, C<virt-list-filesystems> displays the type of each "
31990 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
31994 #: ../tools/virt-list-filesystems.pl:115
31995 msgid "B<-a> | B<--all>"
31996 msgstr "B<-a> | B<--all>"
31999 #: ../tools/virt-list-filesystems.pl:117
32001 "Normally we only show mountable filesystems. If this option is given then "
32002 "swap devices are shown too."
32006 #: ../tools/virt-list-filesystems.pl:191
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/>."
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/>."
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"
32022 #: ../tools/virt-tar.pl:33
32023 msgid "virt-tar - Extract or upload files to a virtual machine"
32027 #: ../tools/virt-tar.pl:37
32030 " virt-tar [--options] -x domname directory tarball\n"
32035 #: ../tools/virt-tar.pl:39
32038 " virt-tar [--options] -u domname tarball directory\n"
32043 #: ../tools/virt-tar.pl:41
32046 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
32051 #: ../tools/virt-tar.pl:43
32054 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
32059 #: ../tools/virt-tar.pl:47
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."
32066 #: ../tools/virt-tar.pl:52
32067 msgid "Download C</home> from the VM into a local tarball:"
32071 #: ../tools/virt-tar.pl:54
32074 " virt-tar -x domname /home home.tar\n"
32079 #: ../tools/virt-tar.pl:56
32082 " virt-tar -zx domname /home home.tar.gz\n"
32087 #: ../tools/virt-tar.pl:58
32088 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
32092 #: ../tools/virt-tar.pl:60
32095 " virt-tar -u domname uploadstuff.tar /tmp\n"
32100 #: ../tools/virt-tar.pl:62
32103 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
32108 #: ../tools/virt-tar.pl:66
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."
32116 #: ../tools/virt-tar.pl:71
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."
32126 #: ../tools/virt-tar.pl:79
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 "
32135 #: ../tools/virt-tar.pl:84
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."
32143 #: ../tools/virt-tar.pl:88
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."
32152 #: ../tools/virt-tar.pl:94
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."
32160 #: ../tools/virt-tar.pl:98
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)."
32169 #: ../tools/virt-tar.pl:156
32170 msgid "B<-x> | B<--extract> | B<--download>"
32171 msgstr "B<-x> | B<--extract> | B<--download>"
32174 #: ../tools/virt-tar.pl:158
32175 msgid "B<-u> | B<--upload>"
32176 msgstr "B<-u> | B<--upload>"
32179 #: ../tools/virt-tar.pl:160
32181 "Use I<-x> to extract (download) a directory from a virtual machine to a "
32186 #: ../tools/virt-tar.pl:163
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."
32193 #: ../tools/virt-tar.pl:167
32194 msgid "You must specify exactly one of these options."
32198 #: ../tools/virt-tar.pl:173
32199 msgid "B<-z> | B<--gzip>"
32200 msgstr "B<-z> | B<--gzip>"
32203 #: ../tools/virt-tar.pl:175
32204 msgid "Specify that the input or output tarball is gzip-compressed."
32208 #: ../tools/virt-tar.pl:288
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/>."
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/>."
32221 #: ../tools/virt-make-fs.pl:37
32222 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
32226 #: ../tools/virt-make-fs.pl:41
32229 " virt-make-fs [--options] input.tar output.img\n"
32234 #: ../tools/virt-make-fs.pl:43
32237 " virt-make-fs [--options] input.tar.gz output.img\n"
32242 #: ../tools/virt-make-fs.pl:45
32245 " virt-make-fs [--options] directory output.img\n"
32250 #: ../tools/virt-make-fs.pl:49
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)."
32261 #: ../tools/virt-make-fs.pl:57
32262 msgid "Basic usage is:"
32266 #: ../tools/virt-make-fs.pl:59
32269 " virt-make-fs input output\n"
32274 #: ../tools/virt-make-fs.pl:61
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)."
32284 #: ../tools/virt-make-fs.pl:67
32285 msgid "EXTRA SPACE"
32289 #: ../tools/virt-make-fs.pl:69
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 "
32301 #: ../tools/virt-make-fs.pl:77
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."
32312 #: ../tools/virt-make-fs.pl:85
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."
32320 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
32321 #: ../tools/virt-make-fs.pl:142
32326 #: ../tools/virt-make-fs.pl:91
32329 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
32332 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
32336 #: ../tools/virt-make-fs.pl:93
32337 msgid "FILESYSTEM TYPE"
32338 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
32341 #: ../tools/virt-make-fs.pl:95
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:"
32349 #: ../tools/virt-make-fs.pl:101
32354 #: ../tools/virt-make-fs.pl:103
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."
32362 #: ../tools/virt-make-fs.pl:107
32363 msgid "I<ntfs> or I<vfat>"
32364 msgstr "I<ntfs> або I<vfat>"
32367 #: ../tools/virt-make-fs.pl:109
32368 msgid "Useful if exporting data to a Windows guest."
32372 #: ../tools/virt-make-fs.pl:111
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."
32381 #: ../tools/virt-make-fs.pl:116
32386 #: ../tools/virt-make-fs.pl:118
32388 "Lower overhead than C<ext2>, but certain limitations on filename length and "
32389 "total filesystem size."
32393 #: ../tools/virt-make-fs.pl:125
32396 " virt-make-fs --type=minix input minixfs.img\n"
32401 #: ../tools/virt-make-fs.pl:127
32402 msgid "TO PARTITION OR NOT TO PARTITION"
32406 #: ../tools/virt-make-fs.pl:129
32407 msgid "Optionally virt-make-fs can add a partition table to the output disk."
32411 #: ../tools/virt-make-fs.pl:131
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)."
32420 #: ../tools/virt-make-fs.pl:136
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)."
32429 #: ../tools/virt-make-fs.pl:144
32430 msgid "Add an MBR partition:"
32434 #: ../tools/virt-make-fs.pl:146
32437 " virt-make-fs --partition -- input disk.img\n"
32442 #: ../tools/virt-make-fs.pl:148
32444 "If the output disk image could be terabyte-sized or larger, it's better to "
32445 "use an EFI/GPT-compatible partition table:"
32449 #: ../tools/virt-make-fs.pl:151
32452 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
32457 #: ../tools/virt-make-fs.pl:179
32458 msgid "Enable debugging information."
32459 msgstr "Увімкнути виведення діагностичних даних."
32462 #: ../tools/virt-make-fs.pl:185
32463 msgid "B<--size=E<lt>NE<gt>>"
32464 msgstr "B<--size=E<lt>NE<gt>>"
32467 #: ../tools/virt-make-fs.pl:187
32468 msgid "B<--size=+E<lt>NE<gt>>"
32469 msgstr "B<--size=+E<lt>NE<gt>>"
32472 #: ../tools/virt-make-fs.pl:189
32473 msgid "B<-s E<lt>NE<gt>>"
32474 msgstr "B<-s E<lt>NE<gt>>"
32477 #: ../tools/virt-make-fs.pl:191
32478 msgid "B<-s +E<lt>NE<gt>>"
32479 msgstr "B<-s +E<lt>NE<gt>>"
32482 #: ../tools/virt-make-fs.pl:193
32484 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
32488 #: ../tools/virt-make-fs.pl:196
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."
32495 #: ../tools/virt-make-fs.pl:199
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."
32504 #: ../tools/virt-make-fs.pl:204
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."
32513 #: ../tools/virt-make-fs.pl:210
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)."
32522 #: ../tools/virt-make-fs.pl:219
32523 msgid "B<--format=E<lt>fmtE<gt>>"
32527 #: ../tools/virt-make-fs.pl:221
32528 msgid "B<-F E<lt>fmtE<gt>>"
32532 #: ../tools/virt-make-fs.pl:223
32533 msgid "Choose the output disk image format."
32537 #: ../tools/virt-make-fs.pl:225
32538 msgid "The default is C<raw> (raw disk image)."
32542 #: ../tools/virt-make-fs.pl:227
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>."
32549 #: ../tools/virt-make-fs.pl:234
32550 msgid "B<--type=E<lt>fsE<gt>>"
32554 #: ../tools/virt-make-fs.pl:236
32555 msgid "B<-t E<lt>fsE<gt>>"
32559 #: ../tools/virt-make-fs.pl:238
32560 msgid "Choose the output filesystem type."
32564 #: ../tools/virt-make-fs.pl:240
32565 msgid "The default is C<ext2>."
32566 msgstr "Типовим значенням є C<ext2>."
32569 #: ../tools/virt-make-fs.pl:242
32571 "Any filesystem which is supported read-write by libguestfs can be used here."
32575 #: ../tools/virt-make-fs.pl:249
32576 msgid "B<--partition>"
32577 msgstr "B<--partition>"
32580 #: ../tools/virt-make-fs.pl:251
32581 msgid "B<--partition=E<lt>parttypeE<gt>>"
32585 #: ../tools/virt-make-fs.pl:253
32587 "If specified, this flag adds an MBR partition table to the output disk "
32592 #: ../tools/virt-make-fs.pl:256
32594 "You can change the partition table type, eg. I<--partition=gpt> for large "
32599 #: ../tools/virt-make-fs.pl:259
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:"
32606 #: ../tools/virt-make-fs.pl:263
32609 " virt-make-fs --partition input.tar ...\n"
32614 #: ../tools/virt-make-fs.pl:265
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:"
32622 #: ../tools/virt-make-fs.pl:269
32625 " virt-make-fs --partition -- input.tar ...\n"
32628 " virt-make-fs --partition -- input.tar ...\n"
32632 #: ../tools/virt-make-fs.pl:541
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/>."
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/>."
32643 #: ../tools/virt-make-fs.pl:558
32646 " export LIBGUESTFS_DEBUG=1\n"
32647 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
32650 " export LIBGUESTFS_DEBUG=1\n"
32651 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
32655 #: ../tools/virt-make-fs.pl:561
32657 "Attach /tmp/virt-make-fs.log to a new bug report at "
32658 "L<https://bugzilla.redhat.com/>"
32662 #: ../tools/virt-list-partitions.pl:32
32664 "virt-list-partitions - List partitions in a virtual machine or disk image"
32668 #: ../tools/virt-list-partitions.pl:36
32671 " virt-list-partitions [--options] domname\n"
32674 " virt-list-partitions [--параметри] назва_домену\n"
32678 #: ../tools/virt-list-partitions.pl:38
32681 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
32684 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
32688 #: ../tools/virt-list-partitions.pl:45
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)>."
32696 #: ../tools/virt-list-partitions.pl:50
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."
32704 #: ../tools/virt-list-partitions.pl:107
32705 msgid "B<-h> | B<--human-readable>"
32706 msgstr "B<-h> | B<--human-readable>"
32709 #: ../tools/virt-list-partitions.pl:109
32710 msgid "Show sizes in human-readable form (eg. \"1G\")."
32714 #: ../tools/virt-list-partitions.pl:117
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.)"
32721 #: ../tools/virt-list-partitions.pl:124
32722 msgid "B<-t> | B<--total>"
32723 msgstr "B<-t> | B<--total>"
32726 #: ../tools/virt-list-partitions.pl:126
32728 "Display the total size of each block device (as a separate row or rows)."
32732 #: ../tools/virt-list-partitions.pl:259
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/>."
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/>."
32743 #: ../tools/virt-list-partitions.pl:275
32744 msgid "Copyright (C) 2009-2010 Red Hat Inc."
32745 msgstr "© Red Hat Inc., 2009–2010"