Version 1.11.12.
[libguestfs.git] / po-docs / uk.po
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: libguestfs\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2011-06-28 19:35+0200\n"
11 "PO-Revision-Date: 2011-04-01 15:39+0000\n"
12 "Last-Translator: yurchor <yurchor@ukr.net>\n"
13 "Language-Team: Ukrainian <trans-uk@lists.fedoraproject.org>\n"
14 "Language: uk\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
19 "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
20
21 #. type: =head1
22 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3
23 #: ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
24 #: ../tools/virt-win-reg.pl:35 ../tools/virt-list-filesystems.pl:30
25 #: ../tools/virt-tar.pl:31 ../tools/virt-make-fs.pl:35
26 #: ../tools/virt-list-partitions.pl:30
27 msgid "NAME"
28 msgstr "НАЗВА"
29
30 #. type: textblock
31 #: ../src/guestfs.pod:5
32 msgid "guestfs - Library for accessing and modifying virtual machine images"
33 msgstr ""
34 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
35 "машин"
36
37 #. type: =head1
38 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7
39 #: ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
40 #: ../tools/virt-win-reg.pl:39 ../tools/virt-list-filesystems.pl:34
41 #: ../tools/virt-tar.pl:35 ../tools/virt-make-fs.pl:39
42 #: ../tools/virt-list-partitions.pl:34
43 msgid "SYNOPSIS"
44 msgstr "КОРОТКИЙ ОПИС"
45
46 #. type: verbatim
47 #: ../src/guestfs.pod:9
48 #, no-wrap
49 msgid ""
50 " #include <guestfs.h>\n"
51 " \n"
52 msgstr ""
53 " #include <guestfs.h>\n"
54 " \n"
55
56 #. type: verbatim
57 #: ../src/guestfs.pod:11
58 #, no-wrap
59 msgid ""
60 " guestfs_h *g = guestfs_create ();\n"
61 " guestfs_add_drive (g, \"guest.img\");\n"
62 " guestfs_launch (g);\n"
63 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
64 " guestfs_touch (g, \"/hello\");\n"
65 " guestfs_umount (g, \"/\");\n"
66 " guestfs_close (g);\n"
67 "\n"
68 msgstr ""
69 " guestfs_h *g = guestfs_create ();\n"
70 " guestfs_add_drive (g, \"guest.img\");\n"
71 " guestfs_launch (g);\n"
72 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
73 " guestfs_touch (g, \"/hello\");\n"
74 " guestfs_umount (g, \"/\");\n"
75 " guestfs_close (g);\n"
76 "\n"
77
78 #. type: verbatim
79 #: ../src/guestfs.pod:19
80 #, no-wrap
81 msgid ""
82 " cc prog.c -o prog -lguestfs\n"
83 "or:\n"
84 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
85 "\n"
86 msgstr ""
87 " cc prog.c -o prog -lguestfs\n"
88 "або:\n"
89 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
90 "\n"
91
92 #. type: =head1
93 #: ../src/guestfs.pod:23 ../fish/guestfish.pod:30
94 #: ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20
95 #: ../tools/virt-win-reg.pl:63 ../tools/virt-list-filesystems.pl:40
96 #: ../tools/virt-tar.pl:77 ../tools/virt-make-fs.pl:47
97 #: ../tools/virt-list-partitions.pl:40
98 msgid "DESCRIPTION"
99 msgstr "ОПИС"
100
101 #. type: textblock
102 #: ../src/guestfs.pod:25
103 msgid ""
104 "Libguestfs is a library for accessing and modifying guest disk images.  "
105 "Amongst the things this is good for: making batch configuration changes to "
106 "guests, getting disk used/free statistics (see also: virt-df), migrating "
107 "between virtualization systems (see also: virt-p2v), performing partial "
108 "backups, performing partial guest clones, cloning guests and changing "
109 "registry/UUID/hostname info, and much else besides."
110 msgstr ""
111
112 #. type: textblock
113 #: ../src/guestfs.pod:33
114 msgid ""
115 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
116 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
117 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
118 "qcow2, vmdk."
119 msgstr ""
120
121 #. type: textblock
122 #: ../src/guestfs.pod:38
123 msgid ""
124 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
125 "what filesystem is in each LV, etc.).  It can also run commands in the "
126 "context of the guest.  Also you can access filesystems over FUSE."
127 msgstr ""
128
129 #. type: textblock
130 #: ../src/guestfs.pod:43
131 msgid ""
132 "Libguestfs is a library that can be linked with C and C++ management "
133 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
134 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
135 "line."
136 msgstr ""
137
138 #. type: textblock
139 #: ../src/guestfs.pod:48
140 msgid ""
141 "You don't need to be root to use libguestfs, although obviously you do need "
142 "enough permissions to access the disk images."
143 msgstr ""
144
145 #. type: textblock
146 #: ../src/guestfs.pod:51
147 msgid ""
148 "Libguestfs is a large API because it can do many things.  For a gentle "
149 "introduction, please read the L</API OVERVIEW> section next."
150 msgstr ""
151
152 #. type: textblock
153 #: ../src/guestfs.pod:54
154 msgid ""
155 "There are also some example programs in the L<guestfs-examples(3)> manual "
156 "page."
157 msgstr ""
158
159 #. type: =head1
160 #: ../src/guestfs.pod:57
161 msgid "API OVERVIEW"
162 msgstr "ОГЛЯД API"
163
164 #. type: textblock
165 #: ../src/guestfs.pod:59
166 msgid ""
167 "This section provides a gentler overview of the libguestfs API.  We also try "
168 "to group API calls together, where that may not be obvious from reading "
169 "about the individual calls in the main section of this manual."
170 msgstr ""
171
172 #. type: =head2
173 #: ../src/guestfs.pod:64
174 msgid "HANDLES"
175 msgstr "ОБРОБНИКИ"
176
177 #. type: textblock
178 #: ../src/guestfs.pod:66
179 msgid ""
180 "Before you can use libguestfs calls, you have to create a handle.  Then you "
181 "must add at least one disk image to the handle, followed by launching the "
182 "handle, then performing whatever operations you want, and finally closing "
183 "the handle.  By convention we use the single letter C<g> for the name of the "
184 "handle variable, although of course you can use any name you want."
185 msgstr ""
186
187 #. type: textblock
188 #: ../src/guestfs.pod:73
189 msgid "The general structure of all libguestfs-using programs looks like this:"
190 msgstr ""
191
192 #. type: verbatim
193 #: ../src/guestfs.pod:76
194 #, no-wrap
195 msgid ""
196 " guestfs_h *g = guestfs_create ();\n"
197 " \n"
198 msgstr ""
199 " guestfs_h *g = guestfs_create ();\n"
200 " \n"
201
202 #. type: verbatim
203 #: ../src/guestfs.pod:78
204 #, no-wrap
205 msgid ""
206 " /* Call guestfs_add_drive additional times if there are\n"
207 "  * multiple disk images.\n"
208 "  */\n"
209 " guestfs_add_drive (g, \"guest.img\");\n"
210 " \n"
211 msgstr ""
212
213 #. type: verbatim
214 #: ../src/guestfs.pod:83
215 #, no-wrap
216 msgid ""
217 " /* Most manipulation calls won't work until you've launched\n"
218 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
219 "  * and _before_ other commands.\n"
220 "  */\n"
221 " guestfs_launch (g);\n"
222 " \n"
223 msgstr ""
224
225 #. type: verbatim
226 #: ../src/guestfs.pod:89
227 #, no-wrap
228 msgid ""
229 " /* Now you can examine what partitions, LVs etc are available.\n"
230 "  */\n"
231 " char **partitions = guestfs_list_partitions (g);\n"
232 " char **logvols = guestfs_lvs (g);\n"
233 " \n"
234 msgstr ""
235
236 #. type: verbatim
237 #: ../src/guestfs.pod:94
238 #, no-wrap
239 msgid ""
240 " /* To access a filesystem in the image, you must mount it.\n"
241 "  */\n"
242 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
243 " \n"
244 msgstr ""
245 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
246 "  */\n"
247 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
248 " \n"
249
250 #. type: verbatim
251 #: ../src/guestfs.pod:98
252 #, fuzzy, no-wrap
253 #| msgid ""
254 #| " /* Now you can perform filesystem actions on the guest\n"
255 #| "  * disk image.\n"
256 #| "  */\n"
257 #| " guestfs_touch (g, \"/hello\");\n"
258 #| "\n"
259 msgid ""
260 " /* Now you can perform filesystem actions on the guest\n"
261 "  * disk image.\n"
262 "  */\n"
263 " guestfs_touch (g, \"/hello\");\n"
264 " \n"
265 msgstr ""
266 " /* Тепер ви можете виконувати дії з файловою системою на\n"
267 "  * образі диска операційної системи.\n"
268 "  */\n"
269 " guestfs_touch (g, \"/hello\");\n"
270 "\n"
271
272 #. type: verbatim
273 #: ../src/guestfs.pod:103
274 #, no-wrap
275 msgid ""
276 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
277 "  * it is done automatically when you close the handle.  See\n"
278 "  * discussion of autosync in this page.\n"
279 "  */\n"
280 " guestfs_sync (g);\n"
281 " \n"
282 msgstr ""
283
284 #. type: verbatim
285 #: ../src/guestfs.pod:109
286 #, no-wrap
287 msgid ""
288 " /* Close the handle 'g'. */\n"
289 " guestfs_close (g);\n"
290 "\n"
291 msgstr ""
292
293 #. type: textblock
294 #: ../src/guestfs.pod:112
295 msgid ""
296 "The code above doesn't include any error checking.  In real code you should "
297 "check return values carefully for errors.  In general all functions that "
298 "return integers return C<-1> on error, and all functions that return "
299 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
300 "how to handle errors, and consult the documentation for each function call "
301 "below to see precisely how they return error indications.  See L<guestfs-"
302 "examples(3)> for fully worked examples."
303 msgstr ""
304
305 #. type: =head2
306 #: ../src/guestfs.pod:121
307 msgid "DISK IMAGES"
308 msgstr ""
309
310 #. type: textblock
311 #: ../src/guestfs.pod:123
312 msgid ""
313 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
314 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
315 "actual block device, or simply an empty file of zeroes that you have created "
316 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
317 "of these."
318 msgstr ""
319
320 #. type: textblock
321 #: ../src/guestfs.pod:129
322 msgid ""
323 "The call you should use in modern code for adding drives is L</"
324 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
325 "specifying that the format is raw, do:"
326 msgstr ""
327
328 #. type: verbatim
329 #: ../src/guestfs.pod:133
330 #, no-wrap
331 msgid ""
332 " guestfs_add_drive_opts (g, filename,\n"
333 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
334 "                         -1);\n"
335 "\n"
336 msgstr ""
337
338 #. type: textblock
339 #: ../src/guestfs.pod:137
340 msgid "You can add a disk read-only using:"
341 msgstr ""
342
343 #. type: verbatim
344 #: ../src/guestfs.pod:139
345 #, no-wrap
346 msgid ""
347 " guestfs_add_drive_opts (g, filename,\n"
348 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
349 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
350 "                         -1);\n"
351 "\n"
352 msgstr ""
353
354 #. type: textblock
355 #: ../src/guestfs.pod:144
356 msgid ""
357 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
358 "libguestfs won't modify the file."
359 msgstr ""
360
361 #. type: textblock
362 #: ../src/guestfs.pod:147
363 msgid ""
364 "Be extremely cautious if the disk image is in use, eg. if it is being used "
365 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
366 "corruption, but adding it read-only is safe."
367 msgstr ""
368
369 #. type: textblock
370 #: ../src/guestfs.pod:151
371 msgid ""
372 "You must add at least one disk image, and you may add multiple disk images.  "
373 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
374 "first one you added), C</dev/sdb> (for the second one you added), etc."
375 msgstr ""
376
377 #. type: textblock
378 #: ../src/guestfs.pod:156
379 msgid ""
380 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
381 "can call L</guestfs_list_devices> to get a list of the device names, in the "
382 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
383 msgstr ""
384
385 #. type: =head2
386 #: ../src/guestfs.pod:161
387 msgid "MOUNTING"
388 msgstr "МОНТУВАННЯ"
389
390 #. type: textblock
391 #: ../src/guestfs.pod:163
392 msgid ""
393 "Before you can read or write files, create directories and so on in a disk "
394 "image that contains filesystems, you have to mount those filesystems using "
395 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
396 "a disk image contains (for example) one partition with a filesystem on that "
397 "partition, then you can mount it directly:"
398 msgstr ""
399
400 #. type: verbatim
401 #: ../src/guestfs.pod:170
402 #, no-wrap
403 msgid ""
404 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
405 "\n"
406 msgstr ""
407
408 #. type: textblock
409 #: ../src/guestfs.pod:172
410 msgid ""
411 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
412 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
413 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
414 "that these are libguestfs virtual devices, and are nothing to do with host "
415 "devices."
416 msgstr ""
417
418 #. type: textblock
419 #: ../src/guestfs.pod:178
420 msgid ""
421 "If you are given a disk image and you don't know what it contains then you "
422 "have to find out.  Libguestfs can do that too: use L</"
423 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
424 "LVs, and either try mounting each to see what is mountable, or else examine "
425 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
426 "filesystems, use L</guestfs_list_filesystems>."
427 msgstr ""
428
429 #. type: textblock
430 #: ../src/guestfs.pod:186
431 msgid ""
432 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
433 "L</INSPECTION> below).  But you might find it easier to look at higher level "
434 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
435 msgstr ""
436
437 #. type: textblock
438 #: ../src/guestfs.pod:191
439 msgid ""
440 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
441 "several other variations of the C<guestfs_mount_*> call."
442 msgstr ""
443
444 #. type: =head2
445 #: ../src/guestfs.pod:194
446 msgid "FILESYSTEM ACCESS AND MODIFICATION"
447 msgstr ""
448
449 #. type: textblock
450 #: ../src/guestfs.pod:196
451 msgid ""
452 "The majority of the libguestfs API consists of fairly low-level calls for "
453 "accessing and modifying the files, directories, symlinks etc on mounted "
454 "filesystems.  There are over a hundred such calls which you can find listed "
455 "in detail below in this man page, and we don't even pretend to cover them "
456 "all in this overview."
457 msgstr ""
458
459 #. type: textblock
460 #: ../src/guestfs.pod:202
461 msgid ""
462 "Specify filenames as full paths, starting with C<\"/\"> and including the "
463 "mount point."
464 msgstr ""
465
466 #. type: textblock
467 #: ../src/guestfs.pod:205
468 msgid ""
469 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
470 "the file called C<\"etc/passwd\"> then you could do:"
471 msgstr ""
472
473 #. type: verbatim
474 #: ../src/guestfs.pod:208
475 #, no-wrap
476 msgid ""
477 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
478 "\n"
479 msgstr ""
480
481 #. type: textblock
482 #: ../src/guestfs.pod:210
483 msgid ""
484 "This would return C<data> as a newly allocated buffer containing the full "
485 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
486 "or C<NULL> if there was an error."
487 msgstr ""
488
489 #. type: textblock
490 #: ../src/guestfs.pod:214
491 msgid ""
492 "As another example, to create a top-level directory on that filesystem "
493 "called C<\"var\"> you would do:"
494 msgstr ""
495
496 #. type: verbatim
497 #: ../src/guestfs.pod:217
498 #, no-wrap
499 msgid ""
500 " guestfs_mkdir (g, \"/var\");\n"
501 "\n"
502 msgstr ""
503
504 #. type: textblock
505 #: ../src/guestfs.pod:219
506 msgid "To create a symlink you could do:"
507 msgstr ""
508
509 #. type: verbatim
510 #: ../src/guestfs.pod:221
511 #, no-wrap
512 msgid ""
513 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
514 "               \"/etc/rc3.d/S30portmap\");\n"
515 "\n"
516 msgstr ""
517
518 #. type: textblock
519 #: ../src/guestfs.pod:224
520 msgid ""
521 "Libguestfs will reject attempts to use relative paths and there is no "
522 "concept of a current working directory."
523 msgstr ""
524
525 #. type: textblock
526 #: ../src/guestfs.pod:227
527 msgid ""
528 "Libguestfs can return errors in many situations: for example if the "
529 "filesystem isn't writable, or if a file or directory that you requested "
530 "doesn't exist.  If you are using the C API (documented here)  you have to "
531 "check for those error conditions after each call.  (Other language bindings "
532 "turn these errors into exceptions)."
533 msgstr ""
534
535 #. type: textblock
536 #: ../src/guestfs.pod:233
537 msgid ""
538 "File writes are affected by the per-handle umask, set by calling L</"
539 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
540 msgstr ""
541
542 #. type: =head2
543 #: ../src/guestfs.pod:236
544 msgid "PARTITIONING"
545 msgstr "ПОДІЛ НА РОЗДІЛИ"
546
547 #. type: textblock
548 #: ../src/guestfs.pod:238
549 msgid ""
550 "Libguestfs contains API calls to read, create and modify partition tables on "
551 "disk images."
552 msgstr ""
553
554 #. type: textblock
555 #: ../src/guestfs.pod:241
556 msgid ""
557 "In the common case where you want to create a single partition covering the "
558 "whole disk, you should use the L</guestfs_part_disk> call:"
559 msgstr ""
560
561 #. type: verbatim
562 #: ../src/guestfs.pod:245
563 #, no-wrap
564 msgid ""
565 " const char *parttype = \"mbr\";\n"
566 " if (disk_is_larger_than_2TB)\n"
567 "   parttype = \"gpt\";\n"
568 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
569 "\n"
570 msgstr ""
571
572 #. type: textblock
573 #: ../src/guestfs.pod:250
574 msgid ""
575 "Obviously this effectively wipes anything that was on that disk image before."
576 msgstr ""
577
578 #. type: =head2
579 #: ../src/guestfs.pod:253
580 msgid "LVM2"
581 msgstr "LVM2"
582
583 #. type: textblock
584 #: ../src/guestfs.pod:255
585 msgid ""
586 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
587 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
588 "you familiarize yourself with the concepts of physical volumes, volume "
589 "groups and logical volumes."
590 msgstr ""
591
592 #. type: textblock
593 #: ../src/guestfs.pod:260
594 msgid ""
595 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
596 "tldp.org/HOWTO/LVM-HOWTO/>."
597 msgstr ""
598
599 #. type: =head2
600 #: ../src/guestfs.pod:263
601 msgid "DOWNLOADING"
602 msgstr ""
603
604 #. type: textblock
605 #: ../src/guestfs.pod:265
606 msgid ""
607 "Use L</guestfs_cat> to download small, text only files.  This call is "
608 "limited to files which are less than 2 MB and which cannot contain any ASCII "
609 "NUL (C<\\0>) characters.  However the API is very simple to use."
610 msgstr ""
611
612 #. type: textblock
613 #: ../src/guestfs.pod:269
614 msgid ""
615 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
616 "bit data, since it returns a (pointer, size) pair.  However it is still "
617 "limited to \"small\" files, less than 2 MB."
618 msgstr ""
619
620 #. type: textblock
621 #: ../src/guestfs.pod:273
622 msgid ""
623 "L</guestfs_download> can be used to download any file, with no limits on "
624 "content or size (even files larger than 4 GB)."
625 msgstr ""
626
627 #. type: textblock
628 #: ../src/guestfs.pod:276
629 msgid ""
630 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
631 msgstr ""
632
633 #. type: =head2
634 #: ../src/guestfs.pod:279
635 msgid "UPLOADING"
636 msgstr "ВИВАНТАЖЕННЯ"
637
638 #. type: textblock
639 #: ../src/guestfs.pod:281
640 msgid ""
641 "It's often the case that you want to write a file or files to the disk image."
642 msgstr ""
643
644 #. type: textblock
645 #: ../src/guestfs.pod:284
646 msgid ""
647 "To write a small file with fixed content, use L</guestfs_write>.  To create "
648 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
649 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
650 "of other functions for creating test files, for example L</guestfs_fill> and "
651 "L</guestfs_fill_pattern>."
652 msgstr ""
653
654 #. type: textblock
655 #: ../src/guestfs.pod:290
656 msgid ""
657 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
658 "file content or size (even files larger than 4 GB)."
659 msgstr ""
660
661 #. type: textblock
662 #: ../src/guestfs.pod:293
663 msgid ""
664 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
665 msgstr ""
666
667 #. type: textblock
668 #: ../src/guestfs.pod:295
669 msgid ""
670 "However the fastest way to upload I<large numbers of arbitrary files> is to "
671 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
672 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
673 "in a predictable way (eg. adding it last after all other drives) then you "
674 "can get the device name from L</guestfs_list_devices> and mount it directly "
675 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
676 "portable between kernel versions, and they don't support labels or UUIDs.  "
677 "If you want to pre-build an image or you need to mount it using a label or "
678 "UUID, use an ISO image instead."
679 msgstr ""
680
681 #. type: =head2
682 #: ../src/guestfs.pod:306
683 msgid "COPYING"
684 msgstr "КОПІЮВАННЯ"
685
686 #. type: textblock
687 #: ../src/guestfs.pod:308
688 msgid ""
689 "There are various different commands for copying between files and devices "
690 "and in and out of the guest filesystem.  These are summarised in the table "
691 "below."
692 msgstr ""
693
694 #. type: =item
695 #: ../src/guestfs.pod:314
696 msgid "B<file> to B<file>"
697 msgstr ""
698
699 #. type: textblock
700 #: ../src/guestfs.pod:316
701 msgid ""
702 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
703 "directories recursively."
704 msgstr ""
705
706 #. type: =item
707 #: ../src/guestfs.pod:319
708 msgid "B<file or device> to B<file or device>"
709 msgstr ""
710
711 #. type: textblock
712 #: ../src/guestfs.pod:321
713 msgid ""
714 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
715 "devices in the guest."
716 msgstr ""
717
718 #. type: textblock
719 #: ../src/guestfs.pod:324
720 msgid "Example: duplicate the contents of an LV:"
721 msgstr ""
722
723 #. type: verbatim
724 #: ../src/guestfs.pod:326
725 #, no-wrap
726 msgid ""
727 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
728 "\n"
729 msgstr ""
730
731 #. type: textblock
732 #: ../src/guestfs.pod:328
733 msgid ""
734 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
735 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
736 "guestfs_copy_size>."
737 msgstr ""
738
739 #. type: =item
740 #: ../src/guestfs.pod:332
741 msgid "B<file on the host> to B<file or device>"
742 msgstr ""
743
744 #. type: textblock
745 #: ../src/guestfs.pod:334
746 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
747 msgstr ""
748
749 #. type: =item
750 #: ../src/guestfs.pod:336
751 msgid "B<file or device> to B<file on the host>"
752 msgstr ""
753
754 #. type: textblock
755 #: ../src/guestfs.pod:338
756 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
757 msgstr ""
758
759 #. type: =head2
760 #: ../src/guestfs.pod:342
761 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
762 msgstr ""
763
764 #. type: textblock
765 #: ../src/guestfs.pod:344
766 msgid ""
767 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
768 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
769 "appears you can only upload and download to files.  However many Un*x-like "
770 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
771 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
772 "and arbitrary file descriptor N."
773 msgstr ""
774
775 #. type: textblock
776 #: ../src/guestfs.pod:352
777 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
778 msgstr ""
779
780 #. type: verbatim
781 #: ../src/guestfs.pod:355
782 #, no-wrap
783 msgid ""
784 " guestfs_download (g, filename, \"/dev/stdout\");\n"
785 "\n"
786 msgstr ""
787
788 #. type: textblock
789 #: ../src/guestfs.pod:357
790 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
791 msgstr ""
792
793 #. type: verbatim
794 #: ../src/guestfs.pod:359
795 #, no-wrap
796 msgid ""
797 " char devfd[64];\n"
798 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
799 " guestfs_tar_out (g, \"/\", devfd);\n"
800 "\n"
801 msgstr ""
802
803 #. type: =head2
804 #: ../src/guestfs.pod:363
805 msgid "LISTING FILES"
806 msgstr ""
807
808 #. type: textblock
809 #: ../src/guestfs.pod:365
810 msgid ""
811 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
812 "L<guestfish(1)>-equivalent command C<ll>)."
813 msgstr ""
814
815 #. type: textblock
816 #: ../src/guestfs.pod:368
817 msgid ""
818 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
819 "programs, as a flat list of strings."
820 msgstr ""
821
822 #. type: textblock
823 #: ../src/guestfs.pod:371
824 msgid ""
825 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
826 "directory, plus additional information about each one.  It is more "
827 "equivalent to using the L<readdir(3)> call on a local filesystem."
828 msgstr ""
829
830 #. type: textblock
831 #: ../src/guestfs.pod:375
832 msgid ""
833 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
834 msgstr ""
835
836 #. type: =head2
837 #: ../src/guestfs.pod:378
838 msgid "RUNNING COMMANDS"
839 msgstr ""
840
841 #. type: textblock
842 #: ../src/guestfs.pod:380
843 msgid ""
844 "Although libguestfs is primarily an API for manipulating files inside guest "
845 "images, we also provide some limited facilities for running commands inside "
846 "guests."
847 msgstr ""
848
849 #. type: textblock
850 #: ../src/guestfs.pod:384
851 msgid "There are many limitations to this:"
852 msgstr ""
853
854 #. type: =item
855 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
856 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
857 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1064
858 #: ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077
859 #: ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112
860 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142
861 #: ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154
862 #: ../src/guestfs.pod:1643 ../src/guestfs.pod:1648 ../src/guestfs.pod:1652
863 #: ../src/guestfs.pod:1754 ../src/guestfs.pod:1759 ../src/guestfs.pod:1763
864 #: ../src/guestfs.pod:1773 ../src/guestfs.pod:2008 ../src/guestfs.pod:2013
865 #: ../src/guestfs.pod:2019 ../src/guestfs.pod:2027 ../src/guestfs.pod:2381
866 #: ../src/guestfs.pod:2387 ../src/guestfs.pod:2392 ../src/guestfs.pod:2398
867 #: ../src/guestfs.pod:2967 ../src/guestfs.pod:2971 ../src/guestfs.pod:2975
868 #: ../src/guestfs.pod:2979 ../src/guestfs-actions.pod:15
869 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:583
870 #: ../src/guestfs-actions.pod:591 ../src/guestfs-actions.pod:598
871 #: ../src/guestfs-actions.pod:605 ../src/guestfs-actions.pod:1603
872 #: ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1611
873 #: ../src/guestfs-actions.pod:1615 ../src/guestfs-actions.pod:1623
874 #: ../src/guestfs-actions.pod:1627 ../src/guestfs-actions.pod:1631
875 #: ../src/guestfs-actions.pod:1641 ../src/guestfs-actions.pod:1645
876 #: ../src/guestfs-actions.pod:1649 ../src/guestfs-actions.pod:1787
877 #: ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:1796
878 #: ../src/guestfs-actions.pod:1801 ../src/guestfs-actions.pod:1862
879 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:1871
880 #: ../src/guestfs-actions.pod:2783 ../src/guestfs-actions.pod:2789
881 #: ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:2804
882 #: ../src/guestfs-actions.pod:2811 ../fish/guestfish.pod:445
883 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
884 #: ../fish/guestfish.pod:457 ../fish/guestfish-actions.pod:13
885 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:385
886 #: ../fish/guestfish-actions.pod:393 ../fish/guestfish-actions.pod:400
887 #: ../fish/guestfish-actions.pod:407 ../fish/guestfish-actions.pod:1074
888 #: ../fish/guestfish-actions.pod:1078 ../fish/guestfish-actions.pod:1082
889 #: ../fish/guestfish-actions.pod:1086 ../fish/guestfish-actions.pod:1094
890 #: ../fish/guestfish-actions.pod:1098 ../fish/guestfish-actions.pod:1102
891 #: ../fish/guestfish-actions.pod:1112 ../fish/guestfish-actions.pod:1116
892 #: ../fish/guestfish-actions.pod:1120 ../fish/guestfish-actions.pod:1210
893 #: ../fish/guestfish-actions.pod:1214 ../fish/guestfish-actions.pod:1219
894 #: ../fish/guestfish-actions.pod:1224 ../fish/guestfish-actions.pod:1266
895 #: ../fish/guestfish-actions.pod:1270 ../fish/guestfish-actions.pod:1275
896 #: ../fish/guestfish-actions.pod:1902 ../fish/guestfish-actions.pod:1908
897 #: ../fish/guestfish-actions.pod:1916 ../fish/guestfish-actions.pod:1923
898 #: ../fish/guestfish-actions.pod:1930 ../tools/virt-win-reg.pl:195
899 #: ../tools/virt-win-reg.pl:200 ../tools/virt-win-reg.pl:206
900 #: ../tools/virt-win-reg.pl:708 ../tools/virt-win-reg.pl:714
901 #: ../tools/virt-win-reg.pl:720
902 msgid "*"
903 msgstr ""
904
905 #. type: textblock
906 #: ../src/guestfs.pod:390
907 msgid ""
908 "The kernel version that the command runs under will be different from what "
909 "it expects."
910 msgstr ""
911
912 #. type: textblock
913 #: ../src/guestfs.pod:395
914 msgid ""
915 "If the command needs to communicate with daemons, then most likely they "
916 "won't be running."
917 msgstr ""
918
919 #. type: textblock
920 #: ../src/guestfs.pod:400
921 msgid "The command will be running in limited memory."
922 msgstr ""
923
924 #. type: textblock
925 #: ../src/guestfs.pod:404
926 msgid ""
927 "The network may not be available unless you enable it (see L</"
928 "guestfs_set_network>)."
929 msgstr ""
930
931 #. type: textblock
932 #: ../src/guestfs.pod:409
933 msgid "Only supports Linux guests (not Windows, BSD, etc)."
934 msgstr ""
935
936 #. type: textblock
937 #: ../src/guestfs.pod:413
938 msgid ""
939 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
940 msgstr ""
941
942 #. type: textblock
943 #: ../src/guestfs.pod:418
944 msgid ""
945 "For SELinux guests, you may need to enable SELinux and load policy first.  "
946 "See L</SELINUX> in this manpage."
947 msgstr ""
948
949 #. type: textblock
950 #: ../src/guestfs.pod:423
951 msgid ""
952 "I<Security:> It is not safe to run commands from untrusted, possibly "
953 "malicious guests.  These commands may attempt to exploit your program by "
954 "sending unexpected output.  They could also try to exploit the Linux kernel "
955 "or qemu provided by the libguestfs appliance.  They could use the network "
956 "provided by the libguestfs appliance to bypass ordinary network partitions "
957 "and firewalls.  They could use the elevated privileges or different SELinux "
958 "context of your program to their advantage."
959 msgstr ""
960
961 #. type: textblock
962 #: ../src/guestfs.pod:432
963 msgid ""
964 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
965 "(a script which runs when the guest next boots normally), and to have this "
966 "script run the commands you want in the normal context of the running guest, "
967 "network security and so on.  For information about other security issues, "
968 "see L</SECURITY>."
969 msgstr ""
970
971 #. type: textblock
972 #: ../src/guestfs.pod:440
973 msgid ""
974 "The two main API calls to run commands are L</guestfs_command> and L</"
975 "guestfs_sh> (there are also variations)."
976 msgstr ""
977
978 #. type: textblock
979 #: ../src/guestfs.pod:443
980 msgid ""
981 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
982 "shell globs, redirections, etc will work."
983 msgstr ""
984
985 #. type: =head2
986 #: ../src/guestfs.pod:446
987 msgid "CONFIGURATION FILES"
988 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
989
990 #. type: textblock
991 #: ../src/guestfs.pod:448
992 msgid ""
993 "To read and write configuration files in Linux guest filesystems, we "
994 "strongly recommend using Augeas.  For example, Augeas understands how to "
995 "read and write, say, a Linux shadow password file or X.org configuration "
996 "file, and so avoids you having to write that code."
997 msgstr ""
998
999 #. type: textblock
1000 #: ../src/guestfs.pod:453
1001 msgid ""
1002 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
1003 "document Augeas itself here because there is excellent documentation on the "
1004 "L<http://augeas.net/> website."
1005 msgstr ""
1006
1007 #. type: textblock
1008 #: ../src/guestfs.pod:457
1009 msgid ""
1010 "If you don't want to use Augeas (you fool!) then try calling L</"
1011 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
1012 "over."
1013 msgstr ""
1014
1015 #. type: =head2
1016 #: ../src/guestfs.pod:461
1017 msgid "SELINUX"
1018 msgstr "SELINUX"
1019
1020 #. type: textblock
1021 #: ../src/guestfs.pod:463
1022 msgid ""
1023 "We support SELinux guests.  To ensure that labeling happens correctly in "
1024 "SELinux guests, you need to enable SELinux and load the guest's policy:"
1025 msgstr ""
1026
1027 #. type: =item
1028 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1257 ../src/guestfs.pod:1395
1029 #: ../src/guestfs.pod:2426
1030 msgid "1."
1031 msgstr ""
1032
1033 #. type: textblock
1034 #: ../src/guestfs.pod:471
1035 msgid "Before launching, do:"
1036 msgstr ""
1037
1038 #. type: verbatim
1039 #: ../src/guestfs.pod:473
1040 #, no-wrap
1041 msgid ""
1042 " guestfs_set_selinux (g, 1);\n"
1043 "\n"
1044 msgstr ""
1045
1046 #. type: =item
1047 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1261 ../src/guestfs.pod:1399
1048 #: ../src/guestfs.pod:2451
1049 msgid "2."
1050 msgstr ""
1051
1052 #. type: textblock
1053 #: ../src/guestfs.pod:477
1054 msgid ""
1055 "After mounting the guest's filesystem(s), load the policy.  This is best "
1056 "done by running the L<load_policy(8)> command in the guest itself:"
1057 msgstr ""
1058
1059 #. type: verbatim
1060 #: ../src/guestfs.pod:481
1061 #, no-wrap
1062 msgid ""
1063 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
1064 "\n"
1065 msgstr ""
1066
1067 #. type: textblock
1068 #: ../src/guestfs.pod:483
1069 msgid ""
1070 "(Older versions of C<load_policy> require you to specify the name of the "
1071 "policy file)."
1072 msgstr ""
1073
1074 #. type: =item
1075 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1405
1076 msgid "3."
1077 msgstr ""
1078
1079 #. type: textblock
1080 #: ../src/guestfs.pod:488
1081 msgid ""
1082 "Optionally, set the security context for the API.  The correct security "
1083 "context to use can only be known by inspecting the guest.  As an example:"
1084 msgstr ""
1085
1086 #. type: verbatim
1087 #: ../src/guestfs.pod:492
1088 #, no-wrap
1089 msgid ""
1090 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1091 "\n"
1092 msgstr ""
1093
1094 #. type: textblock
1095 #: ../src/guestfs.pod:496
1096 msgid "This will work for running commands and editing existing files."
1097 msgstr ""
1098
1099 #. type: textblock
1100 #: ../src/guestfs.pod:498
1101 msgid ""
1102 "When new files are created, you may need to label them explicitly, for "
1103 "example by running the external command C<restorecon pathname>."
1104 msgstr ""
1105
1106 #. type: =head2
1107 #: ../src/guestfs.pod:502
1108 msgid "UMASK"
1109 msgstr ""
1110
1111 #. type: textblock
1112 #: ../src/guestfs.pod:504
1113 msgid ""
1114 "Certain calls are affected by the current file mode creation mask (the "
1115 "\"umask\").  In particular ones which create files or directories, such as "
1116 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1117 "either the default mode that the file is created with or modifies the mode "
1118 "that you supply."
1119 msgstr ""
1120
1121 #. type: textblock
1122 #: ../src/guestfs.pod:510
1123 msgid ""
1124 "The default umask is C<022>, so files are created with modes such as C<0644> "
1125 "and directories with C<0755>."
1126 msgstr ""
1127
1128 #. type: textblock
1129 #: ../src/guestfs.pod:513
1130 msgid ""
1131 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1132 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1133 "guestfs_chmod> after creating each file or directory."
1134 msgstr ""
1135
1136 #. type: textblock
1137 #: ../src/guestfs.pod:517
1138 msgid "For more information about umask, see L<umask(2)>."
1139 msgstr ""
1140
1141 #. type: =head1
1142 #: ../src/guestfs.pod:519 ../fish/guestfish.pod:767
1143 msgid "ENCRYPTED DISKS"
1144 msgstr ""
1145
1146 #. type: textblock
1147 #: ../src/guestfs.pod:521
1148 msgid ""
1149 "Libguestfs allows you to access Linux guests which have been encrypted using "
1150 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1151 "standard.  This includes nearly all whole disk encryption systems used by "
1152 "modern Linux guests."
1153 msgstr ""
1154
1155 #. type: textblock
1156 #: ../src/guestfs.pod:527
1157 msgid ""
1158 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1159 "returns the string C<crypto_LUKS>)."
1160 msgstr ""
1161
1162 #. type: textblock
1163 #: ../src/guestfs.pod:530
1164 msgid ""
1165 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1166 "will require the passphrase!"
1167 msgstr ""
1168
1169 #. type: textblock
1170 #: ../src/guestfs.pod:533
1171 msgid ""
1172 "Opening a LUKS device creates a new device mapper device called C</dev/"
1173 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1174 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1175 "from and encrypted to the underlying block device respectively."
1176 msgstr ""
1177
1178 #. type: textblock
1179 #: ../src/guestfs.pod:539
1180 msgid ""
1181 "LVM volume groups on the device can be made visible by calling L</"
1182 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1183 "(s) can now be mounted in the usual way."
1184 msgstr ""
1185
1186 #. type: textblock
1187 #: ../src/guestfs.pod:543
1188 msgid ""
1189 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1190 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1191 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1192 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1193 "underlying encrypted block device)."
1194 msgstr ""
1195
1196 #. type: =head2
1197 #: ../src/guestfs.pod:550
1198 msgid "INSPECTION"
1199 msgstr "ПЕРЕВІРКА"
1200
1201 #. type: textblock
1202 #: ../src/guestfs.pod:552
1203 msgid ""
1204 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1205 "contains operating systems, an install CD or a live CD.  (These APIs used to "
1206 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
1207 "version 1.5.3 the most frequently used part of this library has been "
1208 "rewritten in C and moved into the core code)."
1209 msgstr ""
1210
1211 #. type: textblock
1212 #: ../src/guestfs.pod:559
1213 msgid ""
1214 "Add all disks belonging to the unknown virtual machine and call L</"
1215 "guestfs_launch> in the usual way."
1216 msgstr ""
1217
1218 #. type: textblock
1219 #: ../src/guestfs.pod:562
1220 msgid ""
1221 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1222 "and certain heuristics, and returns a list of operating systems that were "
1223 "found.  An empty list means none were found.  A single element is the root "
1224 "filesystem of the operating system.  For dual- or multi-boot guests, "
1225 "multiple roots can be returned, each one corresponding to a separate "
1226 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1227 "world of virtualization, but since this scenario can happen, we have built "
1228 "libguestfs to deal with it.)"
1229 msgstr ""
1230
1231 #. type: textblock
1232 #: ../src/guestfs.pod:571
1233 msgid ""
1234 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1235 "to get additional details about that operating system.  For example, call L</"
1236 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1237 "Windows and Linux-based operating systems respectively."
1238 msgstr ""
1239
1240 #. type: textblock
1241 #: ../src/guestfs.pod:577
1242 msgid ""
1243 "Un*x-like and Linux-based operating systems usually consist of several "
1244 "filesystems which are mounted at boot time (for example, a separate boot "
1245 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1246 "filesystems correspond to mount points.  Call "
1247 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1248 "hash table like this example:"
1249 msgstr ""
1250
1251 #. type: verbatim
1252 #: ../src/guestfs.pod:584
1253 #, no-wrap
1254 msgid ""
1255 " /boot => /dev/sda1\n"
1256 " /     => /dev/vg_guest/lv_root\n"
1257 " /usr  => /dev/vg_guest/lv_usr\n"
1258 "\n"
1259 msgstr ""
1260
1261 #. type: textblock
1262 #: ../src/guestfs.pod:588
1263 msgid ""
1264 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1265 "filesystems as suggested."
1266 msgstr ""
1267
1268 #. type: textblock
1269 #: ../src/guestfs.pod:591
1270 msgid ""
1271 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1272 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1273 msgstr ""
1274
1275 #. type: textblock
1276 #: ../src/guestfs.pod:595
1277 msgid ""
1278 "Inspection currently only works for some common operating systems.  "
1279 "Contributors are welcome to send patches for other operating systems that we "
1280 "currently cannot detect."
1281 msgstr ""
1282
1283 #. type: textblock
1284 #: ../src/guestfs.pod:599
1285 msgid ""
1286 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1287 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1288 "encrypted devices."
1289 msgstr ""
1290
1291 #. type: textblock
1292 #: ../src/guestfs.pod:603
1293 msgid ""
1294 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1295 "inspection and caches the results in the guest handle.  Subsequent calls to "
1296 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1297 "read the disks.  If you change the content of the guest disks, you can redo "
1298 "inspection by calling L</guestfs_inspect_os> again.  (L</"
1299 "guestfs_inspect_list_applications> works a little differently from the other "
1300 "calls and does read the disks.  See documentation for that function for "
1301 "details)."
1302 msgstr ""
1303
1304 #. type: =head3
1305 #: ../src/guestfs.pod:612
1306 msgid "INSPECTING INSTALL DISKS"
1307 msgstr ""
1308
1309 #. type: textblock
1310 #: ../src/guestfs.pod:614
1311 msgid ""
1312 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
1313 "CDs and more."
1314 msgstr ""
1315
1316 #. type: textblock
1317 #: ../src/guestfs.pod:617
1318 msgid ""
1319 "Call L</guestfs_inspect_get_format> to return the format of the operating "
1320 "system, which currently can be C<installed> (a regular operating system) or "
1321 "C<installer> (some sort of install disk)."
1322 msgstr ""
1323
1324 #. type: textblock
1325 #: ../src/guestfs.pod:621
1326 msgid ""
1327 "Further information is available about the operating system that can be "
1328 "installed using the regular inspection APIs like L</"
1329 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
1330 msgstr ""
1331
1332 #. type: textblock
1333 #: ../src/guestfs.pod:626
1334 msgid ""
1335 "Some additional information specific to installer disks is also available "
1336 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
1337 "guestfs_inspect_is_multipart> calls."
1338 msgstr ""
1339
1340 #. type: =head2
1341 #: ../src/guestfs.pod:631
1342 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1343 msgstr ""
1344
1345 #. type: textblock
1346 #: ../src/guestfs.pod:633
1347 msgid ""
1348 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1349 "ntfs-3g.org/> driver."
1350 msgstr ""
1351
1352 #. type: =head3
1353 #: ../src/guestfs.pod:636
1354 msgid "DRIVE LETTERS AND PATHS"
1355 msgstr ""
1356
1357 #. type: textblock
1358 #: ../src/guestfs.pod:638
1359 msgid ""
1360 "DOS and Windows still use drive letters, and the filesystems are always "
1361 "treated as case insensitive by Windows itself, and therefore you might find "
1362 "a Windows configuration file referring to a path like C<c:\\windows"
1363 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1364 "might be referred to as C</WINDOWS/System32>."
1365 msgstr ""
1366
1367 #. type: textblock
1368 #: ../src/guestfs.pod:644
1369 msgid ""
1370 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
1371 "L</guestfs_inspect_get_drive_mappings>)"
1372 msgstr ""
1373
1374 #. type: textblock
1375 #: ../src/guestfs.pod:647
1376 msgid ""
1377 "Dealing with separator characters (backslash vs forward slash) is outside "
1378 "the scope of libguestfs, but usually a simple character replacement will "
1379 "work."
1380 msgstr ""
1381
1382 #. type: textblock
1383 #: ../src/guestfs.pod:651
1384 msgid ""
1385 "To resolve the case insensitivity of paths, call L</"
1386 "guestfs_case_sensitive_path>."
1387 msgstr ""
1388
1389 #. type: =head3
1390 #: ../src/guestfs.pod:654
1391 msgid "ACCESSING THE WINDOWS REGISTRY"
1392 msgstr ""
1393
1394 #. type: textblock
1395 #: ../src/guestfs.pod:656
1396 msgid ""
1397 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1398 "files, through the library C<hivex> which is part of the libguestfs project "
1399 "although ships as a separate tarball.  You have to locate and download the "
1400 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1401 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1402 "reg(1)> for more help on this issue."
1403 msgstr ""
1404
1405 #. type: =head3
1406 #: ../src/guestfs.pod:664
1407 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
1408 msgstr ""
1409
1410 #. type: textblock
1411 #: ../src/guestfs.pod:666
1412 msgid ""
1413 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
1414 "provide something which looks like a Linux symlink.  The way it tries to do "
1415 "the rewriting is described here:"
1416 msgstr ""
1417
1418 #. type: textblock
1419 #: ../src/guestfs.pod:670
1420 msgid ""
1421 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1422 "symbolic-links/>"
1423 msgstr ""
1424 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1425 "symbolic-links/>"
1426
1427 #. type: textblock
1428 #: ../src/guestfs.pod:672
1429 msgid ""
1430 "The essential problem is that ntfs-3g simply does not have enough "
1431 "information to do a correct job.  NTFS links can contain drive letters and "
1432 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
1433 "It is almost certainly the case that libguestfs callers should ignore what "
1434 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
1435 msgstr ""
1436
1437 #. type: textblock
1438 #: ../src/guestfs.pod:679
1439 msgid ""
1440 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
1441 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
1442 "attribute, and read the raw reparse data from that (you can find the format "
1443 "documented in various places around the web)."
1444 msgstr ""
1445
1446 #. type: =head3
1447 #: ../src/guestfs.pod:684
1448 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
1449 msgstr ""
1450
1451 #. type: textblock
1452 #: ../src/guestfs.pod:686
1453 msgid ""
1454 "There are other useful extended attributes that can be read from ntfs-3g "
1455 "filesystems (using L</guestfs_getxattr>).  See:"
1456 msgstr ""
1457
1458 #. type: textblock
1459 #: ../src/guestfs.pod:689
1460 msgid ""
1461 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1462 msgstr ""
1463 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1464
1465 #. type: =head2
1466 #: ../src/guestfs.pod:691
1467 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1468 msgstr ""
1469
1470 #. type: textblock
1471 #: ../src/guestfs.pod:693
1472 msgid ""
1473 "Although we don't want to discourage you from using the C API, we will "
1474 "mention here that the same API is also available in other languages."
1475 msgstr ""
1476
1477 #. type: textblock
1478 #: ../src/guestfs.pod:696
1479 msgid ""
1480 "The API is broadly identical in all supported languages.  This means that "
1481 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
1482 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
1483 "OCaml.  In other words, a straightforward, predictable isomorphism between "
1484 "each language."
1485 msgstr ""
1486
1487 #. type: textblock
1488 #: ../src/guestfs.pod:702
1489 msgid ""
1490 "Error messages are automatically transformed into exceptions if the language "
1491 "supports it."
1492 msgstr ""
1493
1494 #. type: textblock
1495 #: ../src/guestfs.pod:705
1496 msgid ""
1497 "We don't try to \"object orientify\" parts of the API in OO languages, "
1498 "although contributors are welcome to write higher level APIs above what we "
1499 "provide in their favourite languages if they wish."
1500 msgstr ""
1501
1502 #. type: =item
1503 #: ../src/guestfs.pod:711
1504 msgid "B<C++>"
1505 msgstr "B<C++>"
1506
1507 #. type: textblock
1508 #: ../src/guestfs.pod:713
1509 msgid ""
1510 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1511 "identical to the C API.  C++ classes and exceptions are not used."
1512 msgstr ""
1513
1514 #. type: =item
1515 #: ../src/guestfs.pod:717
1516 msgid "B<C#>"
1517 msgstr "B<C#>"
1518
1519 #. type: textblock
1520 #: ../src/guestfs.pod:719
1521 msgid ""
1522 "The C# bindings are highly experimental.  Please read the warnings at the "
1523 "top of C<csharp/Libguestfs.cs>."
1524 msgstr ""
1525
1526 #. type: =item
1527 #: ../src/guestfs.pod:722
1528 msgid "B<Haskell>"
1529 msgstr "B<Haskell>"
1530
1531 #. type: textblock
1532 #: ../src/guestfs.pod:724
1533 msgid ""
1534 "This is the only language binding that is working but incomplete.  Only "
1535 "calls which return simple integers have been bound in Haskell, and we are "
1536 "looking for help to complete this binding."
1537 msgstr ""
1538
1539 #. type: =item
1540 #: ../src/guestfs.pod:728
1541 msgid "B<Java>"
1542 msgstr "B<Java>"
1543
1544 #. type: textblock
1545 #: ../src/guestfs.pod:730
1546 msgid ""
1547 "Full documentation is contained in the Javadoc which is distributed with "
1548 "libguestfs."
1549 msgstr ""
1550
1551 #. type: =item
1552 #: ../src/guestfs.pod:733
1553 msgid "B<OCaml>"
1554 msgstr "B<OCaml>"
1555
1556 #. type: textblock
1557 #: ../src/guestfs.pod:735
1558 msgid "See L<guestfs-ocaml(3)>."
1559 msgstr "Див. L<guestfs-ocaml(3)>."
1560
1561 #. type: =item
1562 #: ../src/guestfs.pod:737
1563 msgid "B<Perl>"
1564 msgstr "B<Perl>"
1565
1566 #. type: textblock
1567 #: ../src/guestfs.pod:739
1568 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
1569 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
1570
1571 #. type: =item
1572 #: ../src/guestfs.pod:741
1573 msgid "B<PHP>"
1574 msgstr "B<PHP>"
1575
1576 #. type: textblock
1577 #: ../src/guestfs.pod:743
1578 msgid ""
1579 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1580 "the php-libguestfs package for your distribution."
1581 msgstr ""
1582
1583 #. type: textblock
1584 #: ../src/guestfs.pod:746
1585 msgid "The PHP binding only works correctly on 64 bit machines."
1586 msgstr ""
1587
1588 #. type: =item
1589 #: ../src/guestfs.pod:748
1590 msgid "B<Python>"
1591 msgstr "B<Python>"
1592
1593 #. type: textblock
1594 #: ../src/guestfs.pod:750
1595 msgid "See L<guestfs-python(3)>."
1596 msgstr "Див. L<guestfs-python(3)>."
1597
1598 #. type: =item
1599 #: ../src/guestfs.pod:752
1600 msgid "B<Ruby>"
1601 msgstr "B<Ruby>"
1602
1603 #. type: textblock
1604 #: ../src/guestfs.pod:754
1605 msgid "See L<guestfs-ruby(3)>."
1606 msgstr "Див. L<guestfs-ruby(3)>."
1607
1608 #. type: =item
1609 #: ../src/guestfs.pod:756
1610 msgid "B<shell scripts>"
1611 msgstr "B<скрипти оболонки>"
1612
1613 #. type: textblock
1614 #: ../src/guestfs.pod:758
1615 msgid "See L<guestfish(1)>."
1616 msgstr "Див. L<guestfish(1)>."
1617
1618 #. type: =head2
1619 #: ../src/guestfs.pod:762
1620 msgid "LIBGUESTFS GOTCHAS"
1621 msgstr ""
1622
1623 #. type: textblock
1624 #: ../src/guestfs.pod:764
1625 msgid ""
1626 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1627 "system [...] that works in the way it is documented but is counterintuitive "
1628 "and almost invites mistakes.\""
1629 msgstr ""
1630
1631 #. type: textblock
1632 #: ../src/guestfs.pod:768
1633 msgid ""
1634 "Since we developed libguestfs and the associated tools, there are several "
1635 "things we would have designed differently, but are now stuck with for "
1636 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1637 "release, you can expect these to change.  Beware of them."
1638 msgstr ""
1639
1640 #. type: =item
1641 #: ../src/guestfs.pod:776
1642 msgid "Autosync / forgetting to sync."
1643 msgstr ""
1644
1645 #. type: textblock
1646 #: ../src/guestfs.pod:778
1647 msgid ""
1648 "I<Update:> Autosync is enabled by default for all API users starting from "
1649 "libguestfs 1.5.24.  This section only applies to older versions."
1650 msgstr ""
1651
1652 #. type: textblock
1653 #: ../src/guestfs.pod:781
1654 msgid ""
1655 "When modifying a filesystem from C or another language, you B<must> unmount "
1656 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1657 "libguestfs handle.  You can also call:"
1658 msgstr ""
1659
1660 #. type: verbatim
1661 #: ../src/guestfs.pod:785
1662 #, no-wrap
1663 msgid ""
1664 " guestfs_set_autosync (g, 1);\n"
1665 "\n"
1666 msgstr ""
1667
1668 #. type: textblock
1669 #: ../src/guestfs.pod:787
1670 msgid ""
1671 "to have the unmount/sync done automatically for you when the handle 'g' is "
1672 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1673 msgstr ""
1674
1675 #. type: textblock
1676 #: ../src/guestfs.pod:791
1677 msgid ""
1678 "If you forget to do this, then it is entirely possible that your changes "
1679 "won't be written out, or will be partially written, or (very rarely) that "
1680 "you'll get disk corruption."
1681 msgstr ""
1682
1683 #. type: textblock
1684 #: ../src/guestfs.pod:795
1685 msgid ""
1686 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1687 "guestfish scripts that forget to sync will work just fine, which can make "
1688 "this very puzzling if you are trying to debug a problem."
1689 msgstr ""
1690
1691 #. type: =item
1692 #: ../src/guestfs.pod:799
1693 msgid "Mount option C<-o sync> should not be the default."
1694 msgstr ""
1695
1696 #. type: textblock
1697 #: ../src/guestfs.pod:801
1698 msgid ""
1699 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1700 "However C<-o sync> does not add any reliability benefit, but does have a "
1701 "very large performance impact."
1702 msgstr ""
1703
1704 #. type: textblock
1705 #: ../src/guestfs.pod:805
1706 msgid ""
1707 "The work around is to use L</guestfs_mount_options> and set the mount "
1708 "options that you actually want to use."
1709 msgstr ""
1710
1711 #. type: =item
1712 #: ../src/guestfs.pod:808
1713 msgid "Read-only should be the default."
1714 msgstr ""
1715
1716 #. type: textblock
1717 #: ../src/guestfs.pod:810
1718 msgid ""
1719 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1720 "specify I<--rw> if you want to make changes to the image."
1721 msgstr ""
1722
1723 #. type: textblock
1724 #: ../src/guestfs.pod:813
1725 msgid "This would reduce the potential to corrupt live VM images."
1726 msgstr ""
1727
1728 #. type: textblock
1729 #: ../src/guestfs.pod:815
1730 msgid ""
1731 "Note that many filesystems change the disk when you just mount and unmount, "
1732 "even if you didn't perform any writes.  You need to use L</"
1733 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1734 msgstr ""
1735
1736 #. type: =item
1737 #: ../src/guestfs.pod:819
1738 msgid "guestfish command line is hard to use."
1739 msgstr ""
1740
1741 #. type: textblock
1742 #: ../src/guestfs.pod:821
1743 msgid ""
1744 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1745 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1746 "exist, so it fails.  In earlier versions of guestfish the error message was "
1747 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1748 "we should have used C<guestfish -c command> to run commands."
1749 msgstr ""
1750
1751 #. type: =item
1752 #: ../src/guestfs.pod:828
1753 msgid "guestfish megabyte modifiers don't work right on all commands"
1754 msgstr ""
1755
1756 #. type: textblock
1757 #: ../src/guestfs.pod:830
1758 msgid ""
1759 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1760 "other modifiers).  What guestfish actually does is to multiply the number "
1761 "part by the modifier part and pass the result to the C API.  However this "
1762 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1763 "expecting some other unit (eg. megabytes)."
1764 msgstr ""
1765
1766 #. type: textblock
1767 #: ../src/guestfs.pod:837
1768 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1769 msgstr ""
1770
1771 #. type: verbatim
1772 #: ../src/guestfs.pod:839
1773 #, no-wrap
1774 msgid ""
1775 " lvcreate LV VG 100M\n"
1776 "\n"
1777 msgstr ""
1778
1779 #. type: textblock
1780 #: ../src/guestfs.pod:841
1781 msgid ""
1782 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1783 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1784 "megabytes * megabytes) logical volume.  The error message you get from this "
1785 "is also a little obscure."
1786 msgstr ""
1787
1788 #. type: textblock
1789 #: ../src/guestfs.pod:846
1790 msgid ""
1791 "This could be fixed in the generator by specially marking parameters and "
1792 "return values which take bytes or other units."
1793 msgstr ""
1794
1795 #. type: =item
1796 #: ../src/guestfs.pod:849
1797 msgid "Ambiguity between devices and paths"
1798 msgstr ""
1799
1800 #. type: textblock
1801 #: ../src/guestfs.pod:851
1802 msgid ""
1803 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1804 "sdb2>) and a similar pathname.  A file might just happen to be called "
1805 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1806 msgstr ""
1807
1808 #. type: textblock
1809 #: ../src/guestfs.pod:856
1810 msgid ""
1811 "In the current API we usually resolve this ambiguity by having two separate "
1812 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1813 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1814 "detecting if the path supplied begins with C</dev/>."
1815 msgstr ""
1816
1817 #. type: textblock
1818 #: ../src/guestfs.pod:862
1819 msgid ""
1820 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1821 "make paths/devices into structured names.  One way to do this would be to "
1822 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1823 "aspect of grub.  Another way would be to use a structured type, equivalent "
1824 "to this OCaml type:"
1825 msgstr ""
1826
1827 #. type: verbatim
1828 #: ../src/guestfs.pod:868
1829 #, no-wrap
1830 msgid ""
1831 " type path = Path of string | Device of int | Partition of int * int\n"
1832 "\n"
1833 msgstr ""
1834
1835 #. type: textblock
1836 #: ../src/guestfs.pod:870
1837 msgid "which would allow you to pass arguments like:"
1838 msgstr ""
1839
1840 #. type: verbatim
1841 #: ../src/guestfs.pod:872
1842 #, no-wrap
1843 msgid ""
1844 " Path \"/foo/bar\"\n"
1845 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1846 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1847 " Path \"/dev/sdb2\"    (* not a device *)\n"
1848 "\n"
1849 msgstr ""
1850
1851 #. type: textblock
1852 #: ../src/guestfs.pod:877
1853 msgid ""
1854 "As you can see there are still problems to resolve even with this "
1855 "representation.  Also consider how it might work in guestfish."
1856 msgstr ""
1857
1858 #. type: =head2
1859 #: ../src/guestfs.pod:882
1860 msgid "KEYS AND PASSPHRASES"
1861 msgstr ""
1862
1863 #. type: textblock
1864 #: ../src/guestfs.pod:884
1865 msgid ""
1866 "Certain libguestfs calls take a parameter that contains sensitive key "
1867 "material, passed in as a C string."
1868 msgstr ""
1869
1870 #. type: textblock
1871 #: ../src/guestfs.pod:887
1872 msgid ""
1873 "In the future we would hope to change the libguestfs implementation so that "
1874 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1875 "swap.  However this is I<not> done at the moment, because of the complexity "
1876 "of such an implementation."
1877 msgstr ""
1878
1879 #. type: textblock
1880 #: ../src/guestfs.pod:892
1881 msgid ""
1882 "Therefore you should be aware that any key parameter you pass to libguestfs "
1883 "might end up being written out to the swap partition.  If this is a concern, "
1884 "scrub the swap partition or don't use libguestfs on encrypted devices."
1885 msgstr ""
1886
1887 #. type: =head2
1888 #: ../src/guestfs.pod:897
1889 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1890 msgstr ""
1891
1892 #. type: textblock
1893 #: ../src/guestfs.pod:899
1894 msgid ""
1895 "All high-level libguestfs actions are synchronous.  If you want to use "
1896 "libguestfs asynchronously then you must create a thread."
1897 msgstr ""
1898
1899 #. type: textblock
1900 #: ../src/guestfs.pod:902
1901 msgid ""
1902 "Only use the handle from a single thread.  Either use the handle exclusively "
1903 "from one thread, or provide your own mutex so that two threads cannot issue "
1904 "calls on the same handle at the same time."
1905 msgstr ""
1906
1907 #. type: textblock
1908 #: ../src/guestfs.pod:906
1909 msgid ""
1910 "See the graphical program guestfs-browser for one possible architecture for "
1911 "multithreaded programs using libvirt and libguestfs."
1912 msgstr ""
1913
1914 #. type: =head2
1915 #: ../src/guestfs.pod:909
1916 msgid "PATH"
1917 msgstr "ШЛЯХ"
1918
1919 #. type: textblock
1920 #: ../src/guestfs.pod:911
1921 msgid ""
1922 "Libguestfs needs a supermin appliance, which it finds by looking along an "
1923 "internal path."
1924 msgstr ""
1925
1926 #. type: textblock
1927 #: ../src/guestfs.pod:914
1928 msgid ""
1929 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
1930 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1931 msgstr ""
1932
1933 #. type: textblock
1934 #: ../src/guestfs.pod:917
1935 msgid ""
1936 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1937 "to change the directories that libguestfs will search in.  The value is a "
1938 "colon-separated list of paths.  The current directory is I<not> searched "
1939 "unless the path contains an empty element or C<.>.  For example "
1940 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1941 "then C</usr/lib/guestfs>."
1942 msgstr ""
1943
1944 #. type: =head2
1945 #: ../src/guestfs.pod:924
1946 msgid "QEMU WRAPPERS"
1947 msgstr ""
1948
1949 #. type: textblock
1950 #: ../src/guestfs.pod:926
1951 msgid ""
1952 "If you want to compile your own qemu, run qemu from a non-standard location, "
1953 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1954 "around qemu."
1955 msgstr ""
1956
1957 #. type: textblock
1958 #: ../src/guestfs.pod:930
1959 msgid ""
1960 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1961 "last command in the shell script (so that qemu replaces the shell and "
1962 "becomes the direct child of the libguestfs-using program).  If you don't do "
1963 "this, then the qemu process won't be cleaned up correctly."
1964 msgstr ""
1965
1966 #. type: textblock
1967 #: ../src/guestfs.pod:935
1968 msgid ""
1969 "Here is an example of a wrapper, where I have built my own copy of qemu from "
1970 "source:"
1971 msgstr ""
1972
1973 #. type: verbatim
1974 #: ../src/guestfs.pod:938
1975 #, no-wrap
1976 msgid ""
1977 " #!/bin/sh -\n"
1978 " qemudir=/home/rjones/d/qemu\n"
1979 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
1980 "\n"
1981 msgstr ""
1982
1983 #. type: textblock
1984 #: ../src/guestfs.pod:942
1985 msgid ""
1986 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
1987 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
1988 "example:"
1989 msgstr ""
1990
1991 #. type: verbatim
1992 #: ../src/guestfs.pod:946
1993 #, no-wrap
1994 msgid ""
1995 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
1996 "\n"
1997 msgstr ""
1998
1999 #. type: textblock
2000 #: ../src/guestfs.pod:948
2001 msgid ""
2002 "Note that libguestfs also calls qemu with the -help and -version options in "
2003 "order to determine features."
2004 msgstr ""
2005
2006 #. type: =head2
2007 #: ../src/guestfs.pod:951
2008 msgid "ATTACHING TO RUNNING DAEMONS"
2009 msgstr ""
2010
2011 #. type: textblock
2012 #: ../src/guestfs.pod:953
2013 msgid ""
2014 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
2015 "babies.  Use with caution."
2016 msgstr ""
2017
2018 #. type: textblock
2019 #: ../src/guestfs.pod:956
2020 msgid ""
2021 "I<Note (2):> This section explains how to attach to a running daemon from a "
2022 "low level perspective.  For most users, simply using virt tools such as "
2023 "L<guestfish(1)> with the I<--live> option will \"just work\"."
2024 msgstr ""
2025
2026 #. type: =head3
2027 #: ../src/guestfs.pod:960
2028 msgid "Using guestfs_set_attach_method"
2029 msgstr ""
2030
2031 #. type: textblock
2032 #: ../src/guestfs.pod:962
2033 msgid ""
2034 "By calling L</guestfs_set_attach_method> you can change how the library "
2035 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
2036 "ARCHITECTURE> for some background)."
2037 msgstr ""
2038
2039 #. type: textblock
2040 #: ../src/guestfs.pod:966
2041 msgid ""
2042 "The normal attach method is C<appliance>, where a small appliance is created "
2043 "containing the daemon, and then the library connects to this."
2044 msgstr ""
2045
2046 #. type: textblock
2047 #: ../src/guestfs.pod:969
2048 msgid ""
2049 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
2050 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
2051 "daemon over the Unix domain socket."
2052 msgstr ""
2053
2054 #. type: textblock
2055 #: ../src/guestfs.pod:973
2056 msgid ""
2057 "The normal use for this is to connect to a running virtual machine that "
2058 "contains a C<guestfsd> daemon, and send commands so you can read and write "
2059 "files inside the live virtual machine."
2060 msgstr ""
2061
2062 #. type: =head3
2063 #: ../src/guestfs.pod:977
2064 msgid "Using guestfs_add_domain with live flag"
2065 msgstr ""
2066
2067 #. type: textblock
2068 #: ../src/guestfs.pod:979
2069 msgid ""
2070 "L</guestfs_add_domain> provides some help for getting the correct attach "
2071 "method.  If you pass the C<live> option to this function, then (if the "
2072 "virtual machine is running) it will examine the libvirt XML looking for a "
2073 "virtio-serial channel to connect to:"
2074 msgstr ""
2075
2076 #. type: verbatim
2077 #: ../src/guestfs.pod:985
2078 #, no-wrap
2079 msgid ""
2080 " <domain>\n"
2081 "   ...\n"
2082 "   <devices>\n"
2083 "     ...\n"
2084 "     <channel type='unix'>\n"
2085 "       <source mode='bind' path='/path/to/socket'/>\n"
2086 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
2087 "     </channel>\n"
2088 "     ...\n"
2089 "   </devices>\n"
2090 " </domain>\n"
2091 "\n"
2092 msgstr ""
2093
2094 #. type: textblock
2095 #: ../src/guestfs.pod:997
2096 msgid ""
2097 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
2098 "method to C<unix:/path/to/socket>."
2099 msgstr ""
2100
2101 #. type: textblock
2102 #: ../src/guestfs.pod:1000
2103 msgid ""
2104 "Some of the libguestfs tools (including guestfish) support a I<--live> "
2105 "option which is passed through to L</guestfs_add_domain> thus allowing you "
2106 "to attach to and modify live virtual machines."
2107 msgstr ""
2108
2109 #. type: textblock
2110 #: ../src/guestfs.pod:1004
2111 msgid ""
2112 "The virtual machine needs to have been set up beforehand so that it has the "
2113 "virtio-serial channel and so that guestfsd is running inside it."
2114 msgstr ""
2115
2116 #. type: =head2
2117 #: ../src/guestfs.pod:1008
2118 msgid "ABI GUARANTEE"
2119 msgstr ""
2120
2121 #. type: textblock
2122 #: ../src/guestfs.pod:1010
2123 msgid ""
2124 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2125 "actions as outlined in this section.  Although we will deprecate some "
2126 "actions, for example if they get replaced by newer calls, we will keep the "
2127 "old actions forever.  This allows you the developer to program in confidence "
2128 "against the libguestfs API."
2129 msgstr ""
2130
2131 #. type: =head2
2132 #: ../src/guestfs.pod:1016
2133 msgid "BLOCK DEVICE NAMING"
2134 msgstr ""
2135
2136 #. type: textblock
2137 #: ../src/guestfs.pod:1018
2138 msgid ""
2139 "In the kernel there is now quite a profusion of schemata for naming block "
2140 "devices (in this context, by I<block device> I mean a physical or virtual "
2141 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
2142 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
2143 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
2144 "for the old IDE driver (particularly for SATA devices) those devices also "
2145 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
2146 "paravirtualized drivers.  This has created several different naming systems, "
2147 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
2148 msgstr ""
2149
2150 #. type: textblock
2151 #: ../src/guestfs.pod:1030
2152 msgid ""
2153 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2154 "Linux kernel to access block devices.  We can run a variety of appliances "
2155 "based on a variety of Linux kernels."
2156 msgstr ""
2157
2158 #. type: textblock
2159 #: ../src/guestfs.pod:1034
2160 msgid ""
2161 "This causes a problem for libguestfs because many API calls use device or "
2162 "partition names.  Working scripts and the recipe (example) scripts that we "
2163 "make available over the internet could fail if the naming scheme changes."
2164 msgstr ""
2165
2166 #. type: textblock
2167 #: ../src/guestfs.pod:1039
2168 msgid ""
2169 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2170 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2171 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2172 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2173 msgstr ""
2174
2175 #. type: textblock
2176 #: ../src/guestfs.pod:1045
2177 msgid ""
2178 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2179 "L</guestfs_list_partitions> and similar calls return the true names of the "
2180 "devices and partitions as known to the appliance."
2181 msgstr ""
2182
2183 #. type: =head3
2184 #: ../src/guestfs.pod:1050
2185 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2186 msgstr ""
2187
2188 #. type: textblock
2189 #: ../src/guestfs.pod:1052
2190 msgid ""
2191 "Usually this translation is transparent.  However in some (very rare)  cases "
2192 "you may need to know the exact algorithm.  Such cases include where you use "
2193 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
2194 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
2195 msgstr ""
2196
2197 #. type: textblock
2198 #: ../src/guestfs.pod:1058
2199 msgid ""
2200 "The algorithm is applied only to I<parameters> which are known to be either "
2201 "device or partition names.  Return values from functions such as L</"
2202 "guestfs_list_devices> are never changed."
2203 msgstr ""
2204
2205 #. type: textblock
2206 #: ../src/guestfs.pod:1066
2207 msgid "Is the string a parameter which is a device or partition name?"
2208 msgstr ""
2209
2210 #. type: textblock
2211 #: ../src/guestfs.pod:1070
2212 msgid "Does the string begin with C</dev/sd>?"
2213 msgstr ""
2214
2215 #. type: textblock
2216 #: ../src/guestfs.pod:1074
2217 msgid ""
2218 "Does the named device exist? If so, we use that device.  However if I<not> "
2219 "then we continue with this algorithm."
2220 msgstr ""
2221
2222 #. type: textblock
2223 #: ../src/guestfs.pod:1079
2224 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2225 msgstr ""
2226
2227 #. type: textblock
2228 #: ../src/guestfs.pod:1081
2229 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2230 msgstr ""
2231
2232 #. type: textblock
2233 #: ../src/guestfs.pod:1083
2234 msgid "If that named device exists, use it.  If not, continue."
2235 msgstr ""
2236
2237 #. type: textblock
2238 #: ../src/guestfs.pod:1087
2239 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2240 msgstr ""
2241
2242 #. type: textblock
2243 #: ../src/guestfs.pod:1089
2244 msgid "If that named device exists, use it.  If not, return an error."
2245 msgstr ""
2246
2247 #. type: =head3
2248 #: ../src/guestfs.pod:1093
2249 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2250 msgstr ""
2251
2252 #. type: textblock
2253 #: ../src/guestfs.pod:1095
2254 msgid ""
2255 "Although the standard naming scheme and automatic translation is useful for "
2256 "simple programs and guestfish scripts, for larger programs it is best not to "
2257 "rely on this mechanism."
2258 msgstr ""
2259
2260 #. type: textblock
2261 #: ../src/guestfs.pod:1099
2262 msgid ""
2263 "Where possible for maximum future portability programs using libguestfs "
2264 "should use these future-proof techniques:"
2265 msgstr ""
2266
2267 #. type: textblock
2268 #: ../src/guestfs.pod:1106
2269 msgid ""
2270 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2271 "device names, and then use those names directly."
2272 msgstr ""
2273
2274 #. type: textblock
2275 #: ../src/guestfs.pod:1109
2276 msgid ""
2277 "Since those device names exist by definition, they will never be translated."
2278 msgstr ""
2279
2280 #. type: textblock
2281 #: ../src/guestfs.pod:1114
2282 msgid ""
2283 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2284 "filesystem labels."
2285 msgstr ""
2286
2287 #. type: =head1
2288 #: ../src/guestfs.pod:1119
2289 msgid "SECURITY"
2290 msgstr "БЕЗПЕКА"
2291
2292 #. type: textblock
2293 #: ../src/guestfs.pod:1121
2294 msgid ""
2295 "This section discusses security implications of using libguestfs, "
2296 "particularly with untrusted or malicious guests or disk images."
2297 msgstr ""
2298
2299 #. type: =head2
2300 #: ../src/guestfs.pod:1124
2301 msgid "GENERAL SECURITY CONSIDERATIONS"
2302 msgstr ""
2303
2304 #. type: textblock
2305 #: ../src/guestfs.pod:1126
2306 msgid ""
2307 "Be careful with any files or data that you download from a guest (by "
2308 "\"download\" we mean not just the L</guestfs_download> command but any "
2309 "command that reads files, filenames, directories or anything else from a "
2310 "disk image).  An attacker could manipulate the data to fool your program "
2311 "into doing the wrong thing.  Consider cases such as:"
2312 msgstr ""
2313
2314 #. type: textblock
2315 #: ../src/guestfs.pod:1136
2316 msgid "the data (file etc) not being present"
2317 msgstr ""
2318
2319 #. type: textblock
2320 #: ../src/guestfs.pod:1140
2321 msgid "being present but empty"
2322 msgstr ""
2323
2324 #. type: textblock
2325 #: ../src/guestfs.pod:1144
2326 msgid "being much larger than normal"
2327 msgstr ""
2328
2329 #. type: textblock
2330 #: ../src/guestfs.pod:1148
2331 msgid "containing arbitrary 8 bit data"
2332 msgstr ""
2333
2334 #. type: textblock
2335 #: ../src/guestfs.pod:1152
2336 msgid "being in an unexpected character encoding"
2337 msgstr ""
2338
2339 #. type: textblock
2340 #: ../src/guestfs.pod:1156
2341 msgid "containing homoglyphs."
2342 msgstr ""
2343
2344 #. type: =head2
2345 #: ../src/guestfs.pod:1160
2346 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2347 msgstr ""
2348
2349 #. type: textblock
2350 #: ../src/guestfs.pod:1162
2351 msgid ""
2352 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2353 "(VFS) module can sometimes be escalated into exploits by deliberately "
2354 "creating a malicious, malformed filesystem.  These exploits are very severe "
2355 "for two reasons.  Firstly there are very many filesystem drivers in the "
2356 "kernel, and many of them are infrequently used and not much developer "
2357 "attention has been paid to the code.  Linux userspace helps potential "
2358 "crackers by detecting the filesystem type and automatically choosing the "
2359 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2360 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2361 "exploit (worse in some ways), giving immediate and total access to the "
2362 "system right down to the hardware level."
2363 msgstr ""
2364
2365 #. type: textblock
2366 #: ../src/guestfs.pod:1175
2367 msgid ""
2368 "That explains why you should never mount a filesystem from an untrusted "
2369 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2370 "inside a qemu virtual machine, usually running as a non-root user.  The "
2371 "attacker would need to write a filesystem which first exploited the kernel, "
2372 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2373 "the libguestfs protocol, and finally to be as serious as the host kernel "
2374 "exploit it would need to escalate its privileges to root.  This multi-step "
2375 "escalation, performed by a static piece of data, is thought to be extremely "
2376 "hard to do, although we never say 'never' about security issues."
2377 msgstr ""
2378
2379 #. type: textblock
2380 #: ../src/guestfs.pod:1186
2381 msgid ""
2382 "In any case callers can reduce the attack surface by forcing the filesystem "
2383 "type when mounting (use L</guestfs_mount_vfs>)."
2384 msgstr ""
2385
2386 #. type: =head2
2387 #: ../src/guestfs.pod:1189
2388 msgid "PROTOCOL SECURITY"
2389 msgstr ""
2390
2391 #. type: textblock
2392 #: ../src/guestfs.pod:1191
2393 msgid ""
2394 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2395 "defined upper message size.  However a program that uses libguestfs must "
2396 "also take care - for example you can write a program that downloads a binary "
2397 "from a disk image and executes it locally, and no amount of protocol "
2398 "security will save you from the consequences."
2399 msgstr ""
2400
2401 #. type: =head2
2402 #: ../src/guestfs.pod:1197
2403 msgid "INSPECTION SECURITY"
2404 msgstr ""
2405
2406 #. type: textblock
2407 #: ../src/guestfs.pod:1199
2408 msgid ""
2409 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2410 "directly from the guest, and these could contain any 8 bit data.  Callers "
2411 "should be careful to escape these before printing them to a structured file "
2412 "(for example, use HTML escaping if creating a web page)."
2413 msgstr ""
2414
2415 #. type: textblock
2416 #: ../src/guestfs.pod:1205
2417 msgid ""
2418 "Guest configuration may be altered in unusual ways by the administrator of "
2419 "the virtual machine, and may not reflect reality (particularly for untrusted "
2420 "or actively malicious guests).  For example we parse the hostname from "
2421 "configuration files like C</etc/sysconfig/network> that we find in the "
2422 "guest, but the guest administrator can easily manipulate these files to "
2423 "provide the wrong hostname."
2424 msgstr ""
2425
2426 #. type: textblock
2427 #: ../src/guestfs.pod:1213
2428 msgid ""
2429 "The inspection API parses guest configuration using two external libraries: "
2430 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2431 "designed to be robust in the face of malicious data, although denial of "
2432 "service attacks are still possible, for example with oversized configuration "
2433 "files."
2434 msgstr ""
2435
2436 #. type: =head2
2437 #: ../src/guestfs.pod:1219
2438 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2439 msgstr ""
2440
2441 #. type: textblock
2442 #: ../src/guestfs.pod:1221
2443 msgid ""
2444 "Be very cautious about running commands from the guest.  By running a "
2445 "command in the guest, you are giving CPU time to a binary that you do not "
2446 "control, under the same user account as the library, albeit wrapped in qemu "
2447 "virtualization.  More information and alternatives can be found in the "
2448 "section L</RUNNING COMMANDS>."
2449 msgstr ""
2450
2451 #. type: =head2
2452 #: ../src/guestfs.pod:1227
2453 msgid "CVE-2010-3851"
2454 msgstr "CVE-2010-3851"
2455
2456 #. type: textblock
2457 #: ../src/guestfs.pod:1229
2458 msgid "https://bugzilla.redhat.com/642934"
2459 msgstr "https://bugzilla.redhat.com/642934"
2460
2461 #. type: textblock
2462 #: ../src/guestfs.pod:1231
2463 msgid ""
2464 "This security bug concerns the automatic disk format detection that qemu "
2465 "does on disk images."
2466 msgstr ""
2467
2468 #. type: textblock
2469 #: ../src/guestfs.pod:1234
2470 msgid ""
2471 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2472 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2473 "for one of the known headers, and if none is found then assuming the disk "
2474 "image must be raw."
2475 msgstr ""
2476
2477 #. type: textblock
2478 #: ../src/guestfs.pod:1239
2479 msgid ""
2480 "This allows a guest which has been given a raw disk image to write some "
2481 "other header.  At next boot (or when the disk image is accessed by "
2482 "libguestfs) qemu would do autodetection and think the disk image format was, "
2483 "say, qcow2 based on the header written by the guest."
2484 msgstr ""
2485
2486 #. type: textblock
2487 #: ../src/guestfs.pod:1244
2488 msgid ""
2489 "This in itself would not be a problem, but qcow2 offers many features, one "
2490 "of which is to allow a disk image to refer to another image (called the "
2491 "\"backing disk\").  It does this by placing the path to the backing disk "
2492 "into the qcow2 header.  This path is not validated and could point to any "
2493 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2494 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2495 "control of the attacker."
2496 msgstr ""
2497
2498 #. type: textblock
2499 #: ../src/guestfs.pod:1252
2500 msgid ""
2501 "In libguestfs this is rather hard to exploit except under two circumstances:"
2502 msgstr ""
2503
2504 #. type: textblock
2505 #: ../src/guestfs.pod:1259
2506 msgid "You have enabled the network or have opened the disk in write mode."
2507 msgstr ""
2508
2509 #. type: textblock
2510 #: ../src/guestfs.pod:1263
2511 msgid ""
2512 "You are also running untrusted code from the guest (see L</RUNNING "
2513 "COMMANDS>)."
2514 msgstr ""
2515
2516 #. type: textblock
2517 #: ../src/guestfs.pod:1268
2518 msgid ""
2519 "The way to avoid this is to specify the expected disk format when adding "
2520 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2521 "should always do this if the disk is raw format, and it's a good idea for "
2522 "other cases too."
2523 msgstr ""
2524
2525 #. type: textblock
2526 #: ../src/guestfs.pod:1273
2527 msgid ""
2528 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2529 "format is fetched from libvirt and passed through."
2530 msgstr ""
2531
2532 #. type: textblock
2533 #: ../src/guestfs.pod:1276
2534 msgid ""
2535 "For libguestfs tools, use the I<--format> command line parameter as "
2536 "appropriate."
2537 msgstr ""
2538
2539 #. type: =head1
2540 #: ../src/guestfs.pod:1279
2541 msgid "CONNECTION MANAGEMENT"
2542 msgstr ""
2543
2544 #. type: =head2
2545 #: ../src/guestfs.pod:1281
2546 msgid "guestfs_h *"
2547 msgstr ""
2548
2549 #. type: textblock
2550 #: ../src/guestfs.pod:1283
2551 msgid ""
2552 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2553 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2554 "handle and release all resources used."
2555 msgstr ""
2556
2557 #. type: textblock
2558 #: ../src/guestfs.pod:1287
2559 msgid ""
2560 "For information on using multiple handles and threads, see the section L</"
2561 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
2562 msgstr ""
2563
2564 #. type: =head2
2565 #: ../src/guestfs.pod:1290
2566 msgid "guestfs_create"
2567 msgstr ""
2568
2569 #. type: verbatim
2570 #: ../src/guestfs.pod:1292
2571 #, no-wrap
2572 msgid ""
2573 " guestfs_h *guestfs_create (void);\n"
2574 "\n"
2575 msgstr ""
2576
2577 #. type: textblock
2578 #: ../src/guestfs.pod:1294
2579 msgid "Create a connection handle."
2580 msgstr ""
2581
2582 #. type: textblock
2583 #: ../src/guestfs.pod:1296
2584 msgid ""
2585 "On success this returns a non-NULL pointer to a handle.  On error it returns "
2586 "NULL."
2587 msgstr ""
2588
2589 #. type: textblock
2590 #: ../src/guestfs.pod:1299
2591 msgid ""
2592 "You have to \"configure\" the handle after creating it.  This includes "
2593 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
2594 "handle at least once."
2595 msgstr ""
2596
2597 #. type: textblock
2598 #: ../src/guestfs.pod:1303
2599 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2600 msgstr ""
2601
2602 #. type: textblock
2603 #: ../src/guestfs.pod:1305
2604 msgid ""
2605 "You may also want to configure error handling for the handle.  See the L</"
2606 "ERROR HANDLING> section below."
2607 msgstr ""
2608
2609 #. type: =head2
2610 #: ../src/guestfs.pod:1308
2611 msgid "guestfs_close"
2612 msgstr ""
2613
2614 #. type: verbatim
2615 #: ../src/guestfs.pod:1310
2616 #, no-wrap
2617 msgid ""
2618 " void guestfs_close (guestfs_h *g);\n"
2619 "\n"
2620 msgstr ""
2621
2622 #. type: textblock
2623 #: ../src/guestfs.pod:1312
2624 msgid "This closes the connection handle and frees up all resources used."
2625 msgstr ""
2626
2627 #. type: textblock
2628 #: ../src/guestfs.pod:1314
2629 msgid ""
2630 "If autosync was set on the handle and the handle was launched, then this "
2631 "implicitly calls various functions to unmount filesystems and sync the "
2632 "disk.  See L</guestfs_set_autosync> for more details."
2633 msgstr ""
2634
2635 #. type: textblock
2636 #: ../src/guestfs.pod:1318
2637 msgid "If a close callback was set on the handle, then it is called."
2638 msgstr ""
2639
2640 #. type: =head1
2641 #: ../src/guestfs.pod:1320
2642 msgid "ERROR HANDLING"
2643 msgstr "ОБРОБКА ПОМИЛОК"
2644
2645 #. type: textblock
2646 #: ../src/guestfs.pod:1322
2647 msgid ""
2648 "API functions can return errors.  For example, almost all functions that "
2649 "return C<int> will return C<-1> to indicate an error."
2650 msgstr ""
2651
2652 #. type: textblock
2653 #: ../src/guestfs.pod:1325
2654 msgid ""
2655 "Additional information is available for errors: an error message string and "
2656 "optionally an error number (errno) if the thing that failed was a system "
2657 "call."
2658 msgstr ""
2659
2660 #. type: textblock
2661 #: ../src/guestfs.pod:1329
2662 msgid ""
2663 "You can get at the additional information about the last error on the handle "
2664 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2665 "up an error handler with L</guestfs_set_error_handler>."
2666 msgstr ""
2667
2668 #. type: textblock
2669 #: ../src/guestfs.pod:1334
2670 msgid ""
2671 "When the handle is created, a default error handler is installed which "
2672 "prints the error message string to C<stderr>.  For small short-running "
2673 "command line programs it is sufficient to do:"
2674 msgstr ""
2675
2676 #. type: verbatim
2677 #: ../src/guestfs.pod:1338
2678 #, no-wrap
2679 msgid ""
2680 " if (guestfs_launch (g) == -1)\n"
2681 "   exit (EXIT_FAILURE);\n"
2682 "\n"
2683 msgstr ""
2684
2685 #. type: textblock
2686 #: ../src/guestfs.pod:1341
2687 msgid ""
2688 "since the default error handler will ensure that an error message has been "
2689 "printed to C<stderr> before the program exits."
2690 msgstr ""
2691
2692 #. type: textblock
2693 #: ../src/guestfs.pod:1344
2694 msgid ""
2695 "For other programs the caller will almost certainly want to install an "
2696 "alternate error handler or do error handling in-line like this:"
2697 msgstr ""
2698
2699 #. type: verbatim
2700 #: ../src/guestfs.pod:1347
2701 #, no-wrap
2702 msgid ""
2703 " g = guestfs_create ();\n"
2704 " \n"
2705 msgstr ""
2706
2707 #. type: verbatim
2708 #: ../src/guestfs.pod:1349
2709 #, no-wrap
2710 msgid ""
2711 " /* This disables the default behaviour of printing errors\n"
2712 "    on stderr. */\n"
2713 " guestfs_set_error_handler (g, NULL, NULL);\n"
2714 " \n"
2715 msgstr ""
2716
2717 #. type: verbatim
2718 #: ../src/guestfs.pod:1353
2719 #, no-wrap
2720 msgid ""
2721 " if (guestfs_launch (g) == -1) {\n"
2722 "   /* Examine the error message and print it etc. */\n"
2723 "   char *msg = guestfs_last_error (g);\n"
2724 "   int errnum = guestfs_last_errno (g);\n"
2725 "   fprintf (stderr, \"%s\\n\", msg);\n"
2726 "   /* ... */\n"
2727 "  }\n"
2728 "\n"
2729 msgstr ""
2730
2731 #. type: textblock
2732 #: ../src/guestfs.pod:1361
2733 msgid ""
2734 "Out of memory errors are handled differently.  The default action is to call "
2735 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
2736 "guestfs_set_out_of_memory_handler>."
2737 msgstr ""
2738
2739 #. type: textblock
2740 #: ../src/guestfs.pod:1365
2741 msgid ""
2742 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2743 "because there is no handle if this happens there is no way to get additional "
2744 "error information.  However L</guestfs_create> is supposed to be a "
2745 "lightweight operation which can only fail because of insufficient memory (it "
2746 "returns NULL in this case)."
2747 msgstr ""
2748
2749 #. type: =head2
2750 #: ../src/guestfs.pod:1371
2751 msgid "guestfs_last_error"
2752 msgstr ""
2753
2754 #. type: verbatim
2755 #: ../src/guestfs.pod:1373
2756 #, no-wrap
2757 msgid ""
2758 " const char *guestfs_last_error (guestfs_h *g);\n"
2759 "\n"
2760 msgstr ""
2761
2762 #. type: textblock
2763 #: ../src/guestfs.pod:1375
2764 msgid ""
2765 "This returns the last error message that happened on C<g>.  If there has not "
2766 "been an error since the handle was created, then this returns C<NULL>."
2767 msgstr ""
2768
2769 #. type: textblock
2770 #: ../src/guestfs.pod:1379
2771 msgid ""
2772 "The lifetime of the returned string is until the next error occurs, or L</"
2773 "guestfs_close> is called."
2774 msgstr ""
2775
2776 #. type: =head2
2777 #: ../src/guestfs.pod:1382
2778 msgid "guestfs_last_errno"
2779 msgstr ""
2780
2781 #. type: verbatim
2782 #: ../src/guestfs.pod:1384
2783 #, no-wrap
2784 msgid ""
2785 " int guestfs_last_errno (guestfs_h *g);\n"
2786 "\n"
2787 msgstr ""
2788
2789 #. type: textblock
2790 #: ../src/guestfs.pod:1386
2791 msgid "This returns the last error number (errno) that happened on C<g>."
2792 msgstr ""
2793
2794 #. type: textblock
2795 #: ../src/guestfs.pod:1388
2796 msgid "If successful, an errno integer not equal to zero is returned."
2797 msgstr ""
2798
2799 #. type: textblock
2800 #: ../src/guestfs.pod:1390
2801 msgid ""
2802 "If no error, this returns 0.  This call can return 0 in three situations:"
2803 msgstr ""
2804
2805 #. type: textblock
2806 #: ../src/guestfs.pod:1397
2807 msgid "There has not been any error on the handle."
2808 msgstr ""
2809
2810 #. type: textblock
2811 #: ../src/guestfs.pod:1401
2812 msgid ""
2813 "There has been an error but the errno was meaningless.  This corresponds to "
2814 "the case where the error did not come from a failed system call, but for "
2815 "some other reason."
2816 msgstr ""
2817
2818 #. type: textblock
2819 #: ../src/guestfs.pod:1407
2820 msgid ""
2821 "There was an error from a failed system call, but for some reason the errno "
2822 "was not captured and returned.  This usually indicates a bug in libguestfs."
2823 msgstr ""
2824
2825 #. type: textblock
2826 #: ../src/guestfs.pod:1413
2827 msgid ""
2828 "Libguestfs tries to convert the errno from inside the applicance into a "
2829 "corresponding errno for the caller (not entirely trivial: the appliance "
2830 "might be running a completely different operating system from the library "
2831 "and error numbers are not standardized across Un*xen).  If this could not be "
2832 "done, then the error is translated to C<EINVAL>.  In practice this should "
2833 "only happen in very rare circumstances."
2834 msgstr ""
2835
2836 #. type: =head2
2837 #: ../src/guestfs.pod:1421
2838 msgid "guestfs_set_error_handler"
2839 msgstr ""
2840
2841 #. type: verbatim
2842 #: ../src/guestfs.pod:1423
2843 #, no-wrap
2844 msgid ""
2845 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2846 "                                           void *opaque,\n"
2847 "                                           const char *msg);\n"
2848 " void guestfs_set_error_handler (guestfs_h *g,\n"
2849 "                                 guestfs_error_handler_cb cb,\n"
2850 "                                 void *opaque);\n"
2851 "\n"
2852 msgstr ""
2853
2854 #. type: textblock
2855 #: ../src/guestfs.pod:1430
2856 msgid ""
2857 "The callback C<cb> will be called if there is an error.  The parameters "
2858 "passed to the callback are an opaque data pointer and the error message "
2859 "string."
2860 msgstr ""
2861
2862 #. type: textblock
2863 #: ../src/guestfs.pod:1434
2864 msgid ""
2865 "C<errno> is not passed to the callback.  To get that the callback must call "
2866 "L</guestfs_last_errno>."
2867 msgstr ""
2868
2869 #. type: textblock
2870 #: ../src/guestfs.pod:1437
2871 msgid ""
2872 "Note that the message string C<msg> is freed as soon as the callback "
2873 "function returns, so if you want to stash it somewhere you must make your "
2874 "own copy."
2875 msgstr ""
2876
2877 #. type: textblock
2878 #: ../src/guestfs.pod:1441
2879 msgid "The default handler prints messages on C<stderr>."
2880 msgstr ""
2881
2882 #. type: textblock
2883 #: ../src/guestfs.pod:1443
2884 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2885 msgstr ""
2886
2887 #. type: =head2
2888 #: ../src/guestfs.pod:1445
2889 msgid "guestfs_get_error_handler"
2890 msgstr ""
2891
2892 #. type: verbatim
2893 #: ../src/guestfs.pod:1447
2894 #, no-wrap
2895 msgid ""
2896 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2897 "                                                     void **opaque_rtn);\n"
2898 "\n"
2899 msgstr ""
2900
2901 #. type: textblock
2902 #: ../src/guestfs.pod:1450
2903 msgid "Returns the current error handler callback."
2904 msgstr ""
2905
2906 #. type: =head2
2907 #: ../src/guestfs.pod:1452
2908 msgid "guestfs_set_out_of_memory_handler"
2909 msgstr ""
2910
2911 #. type: verbatim
2912 #: ../src/guestfs.pod:1454
2913 #, no-wrap
2914 msgid ""
2915 " typedef void (*guestfs_abort_cb) (void);\n"
2916 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2917 "                                        guestfs_abort_cb);\n"
2918 "\n"
2919 msgstr ""
2920
2921 #. type: textblock
2922 #: ../src/guestfs.pod:1458
2923 msgid ""
2924 "The callback C<cb> will be called if there is an out of memory situation.  "
2925 "I<Note this callback must not return>."
2926 msgstr ""
2927
2928 #. type: textblock
2929 #: ../src/guestfs.pod:1461
2930 msgid "The default is to call L<abort(3)>."
2931 msgstr ""
2932
2933 #. type: textblock
2934 #: ../src/guestfs.pod:1463
2935 msgid ""
2936 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2937 msgstr ""
2938
2939 #. type: =head2
2940 #: ../src/guestfs.pod:1466
2941 msgid "guestfs_get_out_of_memory_handler"
2942 msgstr ""
2943
2944 #. type: verbatim
2945 #: ../src/guestfs.pod:1468
2946 #, no-wrap
2947 msgid ""
2948 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2949 "\n"
2950 msgstr ""
2951
2952 #. type: textblock
2953 #: ../src/guestfs.pod:1470
2954 msgid "This returns the current out of memory handler."
2955 msgstr ""
2956
2957 #. type: =head1
2958 #: ../src/guestfs.pod:1472
2959 msgid "API CALLS"
2960 msgstr ""
2961
2962 #. type: textblock
2963 #: ../src/guestfs.pod:1474 ../fish/guestfish.pod:1010
2964 msgid "@ACTIONS@"
2965 msgstr "@ACTIONS@"
2966
2967 #. type: =head1
2968 #: ../src/guestfs.pod:1476
2969 msgid "STRUCTURES"
2970 msgstr "СТРУКТУРИ"
2971
2972 #. type: textblock
2973 #: ../src/guestfs.pod:1478
2974 msgid "@STRUCTS@"
2975 msgstr "@STRUCTS@"
2976
2977 #. type: =head1
2978 #: ../src/guestfs.pod:1480
2979 msgid "AVAILABILITY"
2980 msgstr ""
2981
2982 #. type: =head2
2983 #: ../src/guestfs.pod:1482
2984 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2985 msgstr ""
2986
2987 #. type: textblock
2988 #: ../src/guestfs.pod:1484
2989 msgid ""
2990 "Using L</guestfs_available> you can test availability of the following "
2991 "groups of functions.  This test queries the appliance to see if the "
2992 "appliance you are currently using supports the functionality."
2993 msgstr ""
2994
2995 #. type: textblock
2996 #: ../src/guestfs.pod:1489
2997 msgid "@AVAILABILITY@"
2998 msgstr ""
2999
3000 #. type: =head2
3001 #: ../src/guestfs.pod:1491
3002 msgid "GUESTFISH supported COMMAND"
3003 msgstr ""
3004
3005 #. type: textblock
3006 #: ../src/guestfs.pod:1493
3007 msgid ""
3008 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
3009 "prints out the available groups and whether they are supported by this build "
3010 "of libguestfs.  Note however that you have to do C<run> first."
3011 msgstr ""
3012
3013 #. type: =head2
3014 #: ../src/guestfs.pod:1498
3015 msgid "SINGLE CALLS AT COMPILE TIME"
3016 msgstr ""
3017
3018 #. type: textblock
3019 #: ../src/guestfs.pod:1500
3020 msgid ""
3021 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
3022 "function, such as:"
3023 msgstr ""
3024
3025 #. type: verbatim
3026 #: ../src/guestfs.pod:1503
3027 #, no-wrap
3028 msgid ""
3029 " #define LIBGUESTFS_HAVE_DD 1\n"
3030 "\n"
3031 msgstr ""
3032
3033 #. type: textblock
3034 #: ../src/guestfs.pod:1505
3035 msgid "if L</guestfs_dd> is available."
3036 msgstr ""
3037
3038 #. type: textblock
3039 #: ../src/guestfs.pod:1507
3040 msgid ""
3041 "Before version 1.5.8, if you needed to test whether a single libguestfs "
3042 "function is available at compile time, we recommended using build tools such "
3043 "as autoconf or cmake.  For example in autotools you could use:"
3044 msgstr ""
3045
3046 #. type: verbatim
3047 #: ../src/guestfs.pod:1512
3048 #, no-wrap
3049 msgid ""
3050 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
3051 " AC_CHECK_FUNCS([guestfs_dd])\n"
3052 "\n"
3053 msgstr ""
3054
3055 #. type: textblock
3056 #: ../src/guestfs.pod:1515
3057 msgid ""
3058 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
3059 "in your program."
3060 msgstr ""
3061
3062 #. type: =head2
3063 #: ../src/guestfs.pod:1518
3064 msgid "SINGLE CALLS AT RUN TIME"
3065 msgstr ""
3066
3067 #. type: textblock
3068 #: ../src/guestfs.pod:1520
3069 msgid ""
3070 "Testing at compile time doesn't guarantee that a function really exists in "
3071 "the library.  The reason is that you might be dynamically linked against a "
3072 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
3073 "This situation unfortunately results in a segmentation fault, which is a "
3074 "shortcoming of the C dynamic linking system itself."
3075 msgstr ""
3076
3077 #. type: textblock
3078 #: ../src/guestfs.pod:1527
3079 msgid ""
3080 "You can use L<dlopen(3)> to test if a function is available at run time, as "
3081 "in this example program (note that you still need the compile time check as "
3082 "well):"
3083 msgstr ""
3084
3085 #. type: verbatim
3086 #: ../src/guestfs.pod:1531
3087 #, no-wrap
3088 msgid ""
3089 " #include <stdio.h>\n"
3090 " #include <stdlib.h>\n"
3091 " #include <unistd.h>\n"
3092 " #include <dlfcn.h>\n"
3093 " #include <guestfs.h>\n"
3094 " \n"
3095 msgstr ""
3096
3097 #. type: verbatim
3098 #: ../src/guestfs.pod:1537
3099 #, no-wrap
3100 msgid ""
3101 " main ()\n"
3102 " {\n"
3103 " #ifdef LIBGUESTFS_HAVE_DD\n"
3104 "   void *dl;\n"
3105 "   int has_function;\n"
3106 " \n"
3107 msgstr ""
3108
3109 #. type: verbatim
3110 #: ../src/guestfs.pod:1543
3111 #, no-wrap
3112 msgid ""
3113 "   /* Test if the function guestfs_dd is really available. */\n"
3114 "   dl = dlopen (NULL, RTLD_LAZY);\n"
3115 "   if (!dl) {\n"
3116 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
3117 "     exit (EXIT_FAILURE);\n"
3118 "   }\n"
3119 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
3120 "   dlclose (dl);\n"
3121 " \n"
3122 msgstr ""
3123
3124 #. type: verbatim
3125 #: ../src/guestfs.pod:1552
3126 #, no-wrap
3127 msgid ""
3128 "   if (!has_function)\n"
3129 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
3130 "   else {\n"
3131 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
3132 "     /* Now it's safe to call\n"
3133 "     guestfs_dd (g, \"foo\", \"bar\");\n"
3134 "     */\n"
3135 "   }\n"
3136 " #else\n"
3137 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
3138 " #endif\n"
3139 "  }\n"
3140 "\n"
3141 msgstr ""
3142
3143 #. type: textblock
3144 #: ../src/guestfs.pod:1565
3145 msgid ""
3146 "You may think the above is an awful lot of hassle, and it is.  There are "
3147 "other ways outside of the C linking system to ensure that this kind of "
3148 "incompatibility never arises, such as using package versioning:"
3149 msgstr ""
3150
3151 #. type: verbatim
3152 #: ../src/guestfs.pod:1570
3153 #, no-wrap
3154 msgid ""
3155 " Requires: libguestfs >= 1.0.80\n"
3156 "\n"
3157 msgstr ""
3158
3159 #. type: =head1
3160 #: ../src/guestfs.pod:1572
3161 msgid "CALLS WITH OPTIONAL ARGUMENTS"
3162 msgstr ""
3163
3164 #. type: textblock
3165 #: ../src/guestfs.pod:1574
3166 msgid ""
3167 "A recent feature of the API is the introduction of calls which take optional "
3168 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
3169 "takes variable arguments (ie. C<...>), as in this example:"
3170 msgstr ""
3171
3172 #. type: verbatim
3173 #: ../src/guestfs.pod:1579
3174 #, no-wrap
3175 msgid ""
3176 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
3177 "\n"
3178 msgstr ""
3179
3180 #. type: textblock
3181 #: ../src/guestfs.pod:1581
3182 msgid ""
3183 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
3184 "call with no optional arguments specified:"
3185 msgstr ""
3186
3187 #. type: verbatim
3188 #: ../src/guestfs.pod:1584
3189 #, no-wrap
3190 msgid ""
3191 " guestfs_add_drive_opts (g, filename, -1);\n"
3192 "\n"
3193 msgstr ""
3194
3195 #. type: textblock
3196 #: ../src/guestfs.pod:1586
3197 msgid "With a single optional argument:"
3198 msgstr ""
3199
3200 #. type: verbatim
3201 #: ../src/guestfs.pod:1588
3202 #, no-wrap
3203 msgid ""
3204 " guestfs_add_drive_opts (g, filename,\n"
3205 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3206 "                         -1);\n"
3207 "\n"
3208 msgstr ""
3209
3210 #. type: textblock
3211 #: ../src/guestfs.pod:1592
3212 msgid "With two:"
3213 msgstr ""
3214
3215 #. type: verbatim
3216 #: ../src/guestfs.pod:1594
3217 #, no-wrap
3218 msgid ""
3219 " guestfs_add_drive_opts (g, filename,\n"
3220 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3221 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
3222 "                         -1);\n"
3223 "\n"
3224 msgstr ""
3225
3226 #. type: textblock
3227 #: ../src/guestfs.pod:1599
3228 msgid ""
3229 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
3230 "happen!"
3231 msgstr ""
3232
3233 #. type: =head2
3234 #: ../src/guestfs.pod:1602
3235 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
3236 msgstr ""
3237
3238 #. type: textblock
3239 #: ../src/guestfs.pod:1604
3240 msgid ""
3241 "The second variant has the same name with the suffix C<_va>, which works the "
3242 "same way but takes a C<va_list>.  See the C manual for details.  For the "
3243 "example function, this is declared:"
3244 msgstr ""
3245
3246 #. type: verbatim
3247 #: ../src/guestfs.pod:1608
3248 #, no-wrap
3249 msgid ""
3250 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3251 "                                va_list args);\n"
3252 "\n"
3253 msgstr ""
3254
3255 #. type: =head2
3256 #: ../src/guestfs.pod:1611
3257 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
3258 msgstr ""
3259
3260 #. type: textblock
3261 #: ../src/guestfs.pod:1613
3262 msgid ""
3263 "The third variant is useful where you need to construct these calls.  You "
3264 "pass in a structure where you fill in the optional fields.  The structure "
3265 "has a bitmask as the first element which you must set to indicate which "
3266 "fields you have filled in.  For our example function the structure and call "
3267 "are declared:"
3268 msgstr ""
3269
3270 #. type: verbatim
3271 #: ../src/guestfs.pod:1619
3272 #, no-wrap
3273 msgid ""
3274 " struct guestfs_add_drive_opts_argv {\n"
3275 "   uint64_t bitmask;\n"
3276 "   int readonly;\n"
3277 "   const char *format;\n"
3278 "   /* ... */\n"
3279 " };\n"
3280 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3281 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3282 "\n"
3283 msgstr ""
3284
3285 #. type: textblock
3286 #: ../src/guestfs.pod:1628
3287 msgid "You could call it like this:"
3288 msgstr ""
3289
3290 #. type: verbatim
3291 #: ../src/guestfs.pod:1630
3292 #, no-wrap
3293 msgid ""
3294 " struct guestfs_add_drive_opts_argv optargs = {\n"
3295 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3296 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3297 "   .readonly = 1,\n"
3298 "   .format = \"qcow2\"\n"
3299 " };\n"
3300 " \n"
3301 msgstr ""
3302
3303 #. type: verbatim
3304 #: ../src/guestfs.pod:1637
3305 #, no-wrap
3306 msgid ""
3307 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3308 "\n"
3309 msgstr ""
3310
3311 #. type: textblock
3312 #: ../src/guestfs.pod:1639 ../src/guestfs-actions.pod:11
3313 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:2779
3314 #: ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1262
3315 #: ../fish/guestfish-actions.pod:1898 ../tools/virt-win-reg.pl:704
3316 msgid "Notes:"
3317 msgstr "Нотатки:"
3318
3319 #. type: textblock
3320 #: ../src/guestfs.pod:1645
3321 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3322 msgstr ""
3323
3324 #. type: textblock
3325 #: ../src/guestfs.pod:1650
3326 msgid "You do not need to fill in all fields of the structure."
3327 msgstr ""
3328
3329 #. type: textblock
3330 #: ../src/guestfs.pod:1654
3331 msgid ""
3332 "There must be a one-to-one correspondence between fields of the structure "
3333 "that are filled in, and bits set in the bitmask."
3334 msgstr ""
3335
3336 #. type: =head2
3337 #: ../src/guestfs.pod:1659
3338 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3339 msgstr ""
3340
3341 #. type: textblock
3342 #: ../src/guestfs.pod:1661
3343 msgid ""
3344 "In other languages, optional arguments are expressed in the way that is "
3345 "natural for that language.  We refer you to the language-specific "
3346 "documentation for more details on that."
3347 msgstr ""
3348
3349 #. type: textblock
3350 #: ../src/guestfs.pod:1665
3351 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3352 msgstr ""
3353
3354 #. type: =head2
3355 #: ../src/guestfs.pod:1667
3356 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3357 msgstr ""
3358
3359 #. type: textblock
3360 #: ../src/guestfs.pod:1669
3361 msgid ""
3362 "B<Note:> This section documents the generic event mechanism introduced in "
3363 "libguestfs 1.10, which you should use in new code if possible.  The old "
3364 "functions C<guestfs_set_log_message_callback>, "
3365 "C<guestfs_set_subprocess_quit_callback>, "
3366 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
3367 "C<guestfs_set_progress_callback> are no longer documented in this manual "
3368 "page.  Because of the ABI guarantee, the old functions continue to work."
3369 msgstr ""
3370
3371 #. type: textblock
3372 #: ../src/guestfs.pod:1678
3373 msgid ""
3374 "Handles generate events when certain things happen, such as log messages "
3375 "being generated, progress messages during long-running operations, or the "
3376 "handle being closed.  The API calls described below let you register a "
3377 "callback to be called when events happen.  You can register multiple "
3378 "callbacks (for the same, different or overlapping sets of events), and "
3379 "individually remove callbacks.  If callbacks are not removed, then they "
3380 "remain in force until the handle is closed."
3381 msgstr ""
3382
3383 #. type: textblock
3384 #: ../src/guestfs.pod:1686
3385 msgid ""
3386 "In the current implementation, events are only generated synchronously: that "
3387 "means that events (and hence callbacks) can only happen while you are in the "
3388 "middle of making another libguestfs call.  The callback is called in the "
3389 "same thread."
3390 msgstr ""
3391
3392 #. type: textblock
3393 #: ../src/guestfs.pod:1691
3394 msgid ""
3395 "Events may contain a payload, usually nothing (void), an array of 64 bit "
3396 "unsigned integers, or a message buffer.  Payloads are discussed later on."
3397 msgstr ""
3398
3399 #. type: =head3
3400 #: ../src/guestfs.pod:1695
3401 msgid "CLASSES OF EVENTS"
3402 msgstr ""
3403
3404 #. type: =item
3405 #: ../src/guestfs.pod:1699
3406 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
3407 msgstr ""
3408
3409 #. type: textblock
3410 #: ../src/guestfs.pod:1702
3411 msgid ""
3412 "The callback function will be called while the handle is being closed "
3413 "(synchronously from L</guestfs_close>)."
3414 msgstr ""
3415
3416 #. type: textblock
3417 #: ../src/guestfs.pod:1705
3418 msgid ""
3419 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3420 "handles that are open when the program exits.  This means that this callback "
3421 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3422 "problems in higher-level languages (eg. if your HLL interpreter has already "
3423 "been cleaned up by the time this is called, and if your callback then jumps "
3424 "into some HLL function)."
3425 msgstr ""
3426
3427 #. type: textblock
3428 #: ../src/guestfs.pod:1712
3429 msgid ""
3430 "If no callback is registered: the handle is closed without any callback "
3431 "being invoked."
3432 msgstr ""
3433
3434 #. type: =item
3435 #: ../src/guestfs.pod:1715
3436 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
3437 msgstr ""
3438
3439 #. type: textblock
3440 #: ../src/guestfs.pod:1718
3441 msgid ""
3442 "The callback function will be called when the child process quits, either "
3443 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3444 "corresponds to a transition from any state to the CONFIG state)."
3445 msgstr ""
3446
3447 #. type: textblock
3448 #: ../src/guestfs.pod:1722 ../src/guestfs.pod:1731
3449 msgid "If no callback is registered: the event is ignored."
3450 msgstr ""
3451
3452 #. type: =item
3453 #: ../src/guestfs.pod:1724
3454 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
3455 msgstr ""
3456
3457 #. type: textblock
3458 #: ../src/guestfs.pod:1727
3459 msgid ""
3460 "The callback function will be called when the child process becomes ready "
3461 "first time after it has been launched.  (This corresponds to a transition "
3462 "from LAUNCHING to the READY state)."
3463 msgstr ""
3464
3465 #. type: =item
3466 #: ../src/guestfs.pod:1733
3467 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
3468 msgstr ""
3469
3470 #. type: textblock
3471 #: ../src/guestfs.pod:1736
3472 msgid ""
3473 "Some long-running operations can generate progress messages.  If this "
3474 "callback is registered, then it will be called each time a progress message "
3475 "is generated (usually two seconds after the operation started, and three "
3476 "times per second thereafter until it completes, although the frequency may "
3477 "change in future versions)."
3478 msgstr ""
3479
3480 #. type: textblock
3481 #: ../src/guestfs.pod:1742
3482 msgid ""
3483 "The callback receives in the payload four unsigned 64 bit numbers which are "
3484 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
3485 msgstr ""
3486
3487 #. type: textblock
3488 #: ../src/guestfs.pod:1745
3489 msgid ""
3490 "The units of C<total> are not defined, although for some operations C<total> "
3491 "may relate in some way to the amount of data to be transferred (eg. in bytes "
3492 "or megabytes), and C<position> may be the portion which has been transferred."
3493 msgstr ""
3494
3495 #. type: textblock
3496 #: ../src/guestfs.pod:1750
3497 msgid "The only defined and stable parts of the API are:"
3498 msgstr ""
3499
3500 #. type: textblock
3501 #: ../src/guestfs.pod:1756
3502 msgid ""
3503 "The callback can display to the user some type of progress bar or indicator "
3504 "which shows the ratio of C<position>:C<total>."
3505 msgstr ""
3506
3507 #. type: textblock
3508 #: ../src/guestfs.pod:1761
3509 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3510 msgstr ""
3511
3512 #. type: textblock
3513 #: ../src/guestfs.pod:1765
3514 msgid ""
3515 "If any progress notification is sent during a call, then a final progress "
3516 "notification is always sent when C<position> = C<total> (I<unless> the call "
3517 "fails with an error)."
3518 msgstr ""
3519
3520 #. type: textblock
3521 #: ../src/guestfs.pod:1769
3522 msgid ""
3523 "This is to simplify caller code, so callers can easily set the progress "
3524 "indicator to \"100%\" at the end of the operation, without requiring special "
3525 "code to detect this case."
3526 msgstr ""
3527
3528 #. type: textblock
3529 #: ../src/guestfs.pod:1775
3530 msgid ""
3531 "For some calls we are unable to estimate the progress of the call, but we "
3532 "can still generate progress messages to indicate activity.  This is known as "
3533 "\"pulse mode\", and is directly supported by certain progress bar "
3534 "implementations (eg. GtkProgressBar)."
3535 msgstr ""
3536
3537 #. type: textblock
3538 #: ../src/guestfs.pod:1780
3539 msgid ""
3540 "For these calls, zero or more progress messages are generated with "
3541 "C<position = 0> and C<total = 1>, followed by a final message with "
3542 "C<position = total = 1>."
3543 msgstr ""
3544
3545 #. type: textblock
3546 #: ../src/guestfs.pod:1784
3547 msgid ""
3548 "As noted above, if the call fails with an error then the final message may "
3549 "not be generated."
3550 msgstr ""
3551
3552 #. type: textblock
3553 #: ../src/guestfs.pod:1789
3554 msgid ""
3555 "The callback also receives the procedure number (C<proc_nr>) and serial "
3556 "number (C<serial>) of the call.  These are only useful for debugging "
3557 "protocol issues, and the callback can normally ignore them.  The callback "
3558 "may want to print these numbers in error messages or debugging messages."
3559 msgstr ""
3560
3561 #. type: textblock
3562 #: ../src/guestfs.pod:1795
3563 msgid "If no callback is registered: progress messages are discarded."
3564 msgstr ""
3565
3566 #. type: =item
3567 #: ../src/guestfs.pod:1797
3568 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
3569 msgstr ""
3570
3571 #. type: textblock
3572 #: ../src/guestfs.pod:1800
3573 msgid ""
3574 "The callback function is called whenever a log message is generated by qemu, "
3575 "the appliance kernel, guestfsd (daemon), or utility programs."
3576 msgstr ""
3577
3578 #. type: textblock
3579 #: ../src/guestfs.pod:1803
3580 msgid ""
3581 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
3582 "guestfs_launch>) then additional debug messages are generated."
3583 msgstr ""
3584
3585 #. type: textblock
3586 #: ../src/guestfs.pod:1806 ../src/guestfs.pod:1820
3587 msgid ""
3588 "If no callback is registered: the messages are discarded unless the verbose "
3589 "flag is set in which case they are sent to stderr.  You can override the "
3590 "printing of verbose messages to stderr by setting up a callback."
3591 msgstr ""
3592
3593 #. type: =item
3594 #: ../src/guestfs.pod:1811
3595 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
3596 msgstr ""
3597
3598 #. type: textblock
3599 #: ../src/guestfs.pod:1814
3600 msgid ""
3601 "The callback function is called whenever a log message is generated by the "
3602 "library part of libguestfs."
3603 msgstr ""
3604
3605 #. type: textblock
3606 #: ../src/guestfs.pod:1817
3607 msgid ""
3608 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
3609 "messages are generated."
3610 msgstr ""
3611
3612 #. type: =item
3613 #: ../src/guestfs.pod:1825
3614 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
3615 msgstr ""
3616
3617 #. type: textblock
3618 #: ../src/guestfs.pod:1828
3619 msgid ""
3620 "The callback function is called whenever a trace message is generated.  This "
3621 "only applies if the trace flag (L</guestfs_set_trace>) is set."
3622 msgstr ""
3623
3624 #. type: textblock
3625 #: ../src/guestfs.pod:1831
3626 msgid ""
3627 "If no callback is registered: the messages are sent to stderr.  You can "
3628 "override the printing of trace messages to stderr by setting up a callback."
3629 msgstr ""
3630
3631 #. type: =head3
3632 #: ../src/guestfs.pod:1837
3633 msgid "guestfs_set_event_callback"
3634 msgstr ""
3635
3636 #. type: verbatim
3637 #: ../src/guestfs.pod:1839
3638 #, no-wrap
3639 msgid ""
3640 " int guestfs_set_event_callback (guestfs_h *g,\n"
3641 "                                 guestfs_event_callback cb,\n"
3642 "                                 uint64_t event_bitmask,\n"
3643 "                                 int flags,\n"
3644 "                                 void *opaque);\n"
3645 "\n"
3646 msgstr ""
3647
3648 #. type: textblock
3649 #: ../src/guestfs.pod:1845
3650 msgid ""
3651 "This function registers a callback (C<cb>) for all event classes in the "
3652 "C<event_bitmask>."
3653 msgstr ""
3654
3655 #. type: textblock
3656 #: ../src/guestfs.pod:1848
3657 msgid ""
3658 "For example, to register for all log message events, you could call this "
3659 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
3660 "To register a single callback for all possible classes of events, use "
3661 "C<GUESTFS_EVENT_ALL>."
3662 msgstr ""
3663
3664 #. type: textblock
3665 #: ../src/guestfs.pod:1854
3666 msgid "C<flags> should always be passed as 0."
3667 msgstr ""
3668
3669 #. type: textblock
3670 #: ../src/guestfs.pod:1856
3671 msgid ""
3672 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
3673 "it for any purpose."
3674 msgstr ""
3675
3676 #. type: textblock
3677 #: ../src/guestfs.pod:1859
3678 msgid ""
3679 "The return value is the event handle (an integer) which you can use to "
3680 "delete the callback (see below)."
3681 msgstr ""
3682
3683 #. type: textblock
3684 #: ../src/guestfs.pod:1862
3685 msgid ""
3686 "If there is an error, this function returns C<-1>, and sets the error in the "
3687 "handle in the usual way (see L</guestfs_last_error> etc.)"
3688 msgstr ""
3689
3690 #. type: textblock
3691 #: ../src/guestfs.pod:1865
3692 msgid ""
3693 "Callbacks remain in effect until they are deleted, or until the handle is "
3694 "closed."
3695 msgstr ""
3696
3697 #. type: textblock
3698 #: ../src/guestfs.pod:1868
3699 msgid ""
3700 "In the case where multiple callbacks are registered for a particular event "
3701 "class, all of the callbacks are called.  The order in which multiple "
3702 "callbacks are called is not defined."
3703 msgstr ""
3704
3705 #. type: =head3
3706 #: ../src/guestfs.pod:1872
3707 msgid "guestfs_delete_event_callback"
3708 msgstr ""
3709
3710 #. type: verbatim
3711 #: ../src/guestfs.pod:1874
3712 #, no-wrap
3713 msgid ""
3714 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
3715 "\n"
3716 msgstr ""
3717
3718 #. type: textblock
3719 #: ../src/guestfs.pod:1876
3720 msgid ""
3721 "Delete a callback that was previously registered.  C<event_handle> should be "
3722 "the integer that was returned by a previous call to "
3723 "C<guestfs_set_event_callback> on the same handle."
3724 msgstr ""
3725
3726 #. type: =head3
3727 #: ../src/guestfs.pod:1880
3728 msgid "guestfs_event_callback"
3729 msgstr ""
3730
3731 #. type: verbatim
3732 #: ../src/guestfs.pod:1882
3733 #, no-wrap
3734 msgid ""
3735 " typedef void (*guestfs_event_callback) (\n"
3736 "                  guestfs_h *g,\n"
3737 "                  void *opaque,\n"
3738 "                  uint64_t event,\n"
3739 "                  int event_handle,\n"
3740 "                  int flags,\n"
3741 "                  const char *buf, size_t buf_len,\n"
3742 "                  const uint64_t *array, size_t array_len);\n"
3743 "\n"
3744 msgstr ""
3745
3746 #. type: textblock
3747 #: ../src/guestfs.pod:1891
3748 msgid ""
3749 "This is the type of the event callback function that you have to provide."
3750 msgstr ""
3751
3752 #. type: textblock
3753 #: ../src/guestfs.pod:1894
3754 msgid ""
3755 "The basic parameters are: the handle (C<g>), the opaque user pointer "
3756 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
3757 "handle, and C<flags> which in the current API you should ignore."
3758 msgstr ""
3759
3760 #. type: textblock
3761 #: ../src/guestfs.pod:1898
3762 msgid ""
3763 "The remaining parameters contain the event payload (if any).  Each event may "
3764 "contain a payload, which usually relates to the event class, but for future "
3765 "proofing your code should be written to handle any payload for any event "
3766 "class."
3767 msgstr ""
3768
3769 #. type: textblock
3770 #: ../src/guestfs.pod:1903
3771 msgid ""
3772 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
3773 "there is no message buffer).  Note that this message buffer can contain "
3774 "arbitrary 8 bit data, including NUL bytes."
3775 msgstr ""
3776
3777 #. type: textblock
3778 #: ../src/guestfs.pod:1907
3779 msgid ""
3780 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
3781 "moment this is only used for progress messages."
3782 msgstr ""
3783
3784 #. type: =head3
3785 #: ../src/guestfs.pod:1910
3786 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
3787 msgstr ""
3788
3789 #. type: textblock
3790 #: ../src/guestfs.pod:1912
3791 msgid ""
3792 "One motivation for the generic event API was to allow GUI programs to "
3793 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
3794 "unconditionally to C<stderr>."
3795 msgstr ""
3796
3797 #. type: textblock
3798 #: ../src/guestfs.pod:1916
3799 msgid ""
3800 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
3801 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
3802 "messages are not events; you must capture error messages separately)."
3803 msgstr ""
3804
3805 #. type: textblock
3806 #: ../src/guestfs.pod:1921
3807 msgid ""
3808 "Programs have to set up a callback to capture the classes of events of "
3809 "interest:"
3810 msgstr ""
3811
3812 #. type: verbatim
3813 #: ../src/guestfs.pod:1924
3814 #, no-wrap
3815 msgid ""
3816 " int eh =\n"
3817 "   guestfs_set_event_callback\n"
3818 "     (g, message_callback,\n"
3819 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
3820 "      GUESTFS_EVENT_TRACE,\n"
3821 "      0, NULL) == -1)\n"
3822 " if (eh == -1) {\n"
3823 "   // handle error in the usual way\n"
3824 " }\n"
3825 "\n"
3826 msgstr ""
3827
3828 #. type: textblock
3829 #: ../src/guestfs.pod:1934
3830 msgid ""
3831 "The callback can then direct messages to the appropriate place.  In this "
3832 "example, messages are directed to syslog:"
3833 msgstr ""
3834
3835 #. type: verbatim
3836 #: ../src/guestfs.pod:1937
3837 #, no-wrap
3838 msgid ""
3839 " static void\n"
3840 " message_callback (\n"
3841 "         guestfs_h *g,\n"
3842 "         void *opaque,\n"
3843 "         uint64_t event,\n"
3844 "         int event_handle,\n"
3845 "         int flags,\n"
3846 "         const char *buf, size_t buf_len,\n"
3847 "         const uint64_t *array, size_t array_len)\n"
3848 " {\n"
3849 "   const int priority = LOG_USER|LOG_INFO;\n"
3850 "   if (buf_len > 0)\n"
3851 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
3852 " }\n"
3853 "\n"
3854 msgstr ""
3855
3856 #. type: =head1
3857 #: ../src/guestfs.pod:1952
3858 msgid "PRIVATE DATA AREA"
3859 msgstr ""
3860
3861 #. type: textblock
3862 #: ../src/guestfs.pod:1954
3863 msgid ""
3864 "You can attach named pieces of private data to the libguestfs handle, fetch "
3865 "them by name, and walk over them, for the lifetime of the handle.  This is "
3866 "called the private data area and is only available from the C API."
3867 msgstr ""
3868
3869 #. type: textblock
3870 #: ../src/guestfs.pod:1959
3871 msgid "To attach a named piece of data, use the following call:"
3872 msgstr ""
3873
3874 #. type: verbatim
3875 #: ../src/guestfs.pod:1961
3876 #, no-wrap
3877 msgid ""
3878 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3879 "\n"
3880 msgstr ""
3881
3882 #. type: textblock
3883 #: ../src/guestfs.pod:1963
3884 msgid ""
3885 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3886 "pointer (which can be C<NULL>).  Any previous item with the same key is "
3887 "overwritten."
3888 msgstr ""
3889
3890 #. type: textblock
3891 #: ../src/guestfs.pod:1967
3892 msgid ""
3893 "You can use any C<key> you want, but your key should I<not> start with an "
3894 "underscore character.  Keys beginning with an underscore character are "
3895 "reserved for internal libguestfs purposes (eg. for implementing language "
3896 "bindings).  It is recommended that you prefix the key with some unique "
3897 "string to avoid collisions with other users."
3898 msgstr ""
3899
3900 #. type: textblock
3901 #: ../src/guestfs.pod:1973
3902 msgid "To retrieve the pointer, use:"
3903 msgstr ""
3904
3905 #. type: verbatim
3906 #: ../src/guestfs.pod:1975
3907 #, no-wrap
3908 msgid ""
3909 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3910 "\n"
3911 msgstr ""
3912
3913 #. type: textblock
3914 #: ../src/guestfs.pod:1977
3915 msgid ""
3916 "This function returns C<NULL> if either no data is found associated with "
3917 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3918 "C<NULL>."
3919 msgstr ""
3920
3921 #. type: textblock
3922 #: ../src/guestfs.pod:1981
3923 msgid ""
3924 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3925 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3926 "all.  In particular, libguestfs does I<not> try to free the data when the "
3927 "handle is closed.  If the data must be freed, then the caller must either "
3928 "free it before calling L</guestfs_close> or must set up a close callback to "
3929 "do it (see L</GUESTFS_EVENT_CLOSE>)."
3930 msgstr ""
3931
3932 #. type: textblock
3933 #: ../src/guestfs.pod:1988
3934 msgid "To walk over all entries, use these two functions:"
3935 msgstr ""
3936
3937 #. type: verbatim
3938 #: ../src/guestfs.pod:1990
3939 #, no-wrap
3940 msgid ""
3941 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
3942 "\n"
3943 msgstr ""
3944
3945 #. type: verbatim
3946 #: ../src/guestfs.pod:1992
3947 #, no-wrap
3948 msgid ""
3949 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
3950 "\n"
3951 msgstr ""
3952
3953 #. type: textblock
3954 #: ../src/guestfs.pod:1994
3955 msgid ""
3956 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
3957 "not have any particular meaning -- keys are not returned in any defined "
3958 "order).  A pointer to the key is returned in C<*key_rtn> and the "
3959 "corresponding data pointer is returned from the function.  C<NULL> is "
3960 "returned if there are no keys stored in the handle."
3961 msgstr ""
3962
3963 #. type: textblock
3964 #: ../src/guestfs.pod:2000
3965 msgid ""
3966 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
3967 "value of this function is also C<NULL> is there are no further entries to "
3968 "return."
3969 msgstr ""
3970
3971 #. type: textblock
3972 #: ../src/guestfs.pod:2004
3973 msgid "Notes about walking over entries:"
3974 msgstr ""
3975
3976 #. type: textblock
3977 #: ../src/guestfs.pod:2010
3978 msgid ""
3979 "You must not call C<guestfs_set_private> while walking over the entries."
3980 msgstr ""
3981
3982 #. type: textblock
3983 #: ../src/guestfs.pod:2015
3984 msgid ""
3985 "The handle maintains an internal iterator which is reset when you call "
3986 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
3987 "call C<guestfs_set_private>."
3988 msgstr ""
3989
3990 #. type: textblock
3991 #: ../src/guestfs.pod:2021
3992 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
3993 msgstr ""
3994
3995 #. type: verbatim
3996 #: ../src/guestfs.pod:2023
3997 #, no-wrap
3998 msgid ""
3999 " guestfs_set_private (g, key, NULL);\n"
4000 "\n"
4001 msgstr ""
4002
4003 #. type: textblock
4004 #: ../src/guestfs.pod:2025
4005 msgid "then that C<key> is not returned when walking."
4006 msgstr ""
4007
4008 #. type: textblock
4009 #: ../src/guestfs.pod:2029
4010 msgid ""
4011 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
4012 "C<guestfs_next_private> or C<guestfs_set_private>."
4013 msgstr ""
4014
4015 #. type: textblock
4016 #: ../src/guestfs.pod:2035
4017 msgid ""
4018 "The following example code shows how to print all keys and data pointers "
4019 "that are associated with the handle C<g>:"
4020 msgstr ""
4021
4022 #. type: verbatim
4023 #: ../src/guestfs.pod:2038
4024 #, no-wrap
4025 msgid ""
4026 " const char *key;\n"
4027 " void *data = guestfs_first_private (g, &key);\n"
4028 " while (data != NULL)\n"
4029 "   {\n"
4030 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
4031 "     data = guestfs_next_private (g, &key);\n"
4032 "   }\n"
4033 "\n"
4034 msgstr ""
4035
4036 #. type: textblock
4037 #: ../src/guestfs.pod:2046
4038 msgid ""
4039 "More commonly you are only interested in keys that begin with an application-"
4040 "specific prefix C<foo_>.  Modify the loop like so:"
4041 msgstr ""
4042
4043 #. type: verbatim
4044 #: ../src/guestfs.pod:2049
4045 #, no-wrap
4046 msgid ""
4047 " const char *key;\n"
4048 " void *data = guestfs_first_private (g, &key);\n"
4049 " while (data != NULL)\n"
4050 "   {\n"
4051 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4052 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
4053 "     data = guestfs_next_private (g, &key);\n"
4054 "   }\n"
4055 "\n"
4056 msgstr ""
4057
4058 #. type: textblock
4059 #: ../src/guestfs.pod:2058
4060 msgid ""
4061 "If you need to modify keys while walking, then you have to jump back to the "
4062 "beginning of the loop.  For example, to delete all keys prefixed with "
4063 "C<foo_>:"
4064 msgstr ""
4065
4066 #. type: verbatim
4067 #: ../src/guestfs.pod:2062
4068 #, no-wrap
4069 msgid ""
4070 "  const char *key;\n"
4071 "  void *data;\n"
4072 " again:\n"
4073 "  data = guestfs_first_private (g, &key);\n"
4074 "  while (data != NULL)\n"
4075 "    {\n"
4076 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4077 "        {\n"
4078 "          guestfs_set_private (g, key, NULL);\n"
4079 "          /* note that 'key' pointer is now invalid, and so is\n"
4080 "             the internal iterator */\n"
4081 "          goto again;\n"
4082 "        }\n"
4083 "      data = guestfs_next_private (g, &key);\n"
4084 "    }\n"
4085 "\n"
4086 msgstr ""
4087
4088 #. type: textblock
4089 #: ../src/guestfs.pod:2078
4090 msgid ""
4091 "Note that the above loop is guaranteed to terminate because the keys are "
4092 "being deleted, but other manipulations of keys within the loop might not "
4093 "terminate unless you also maintain an indication of which keys have been "
4094 "visited."
4095 msgstr ""
4096
4097 #. type: =end
4098 #: ../src/guestfs.pod:2083 ../src/guestfs.pod:2088
4099 msgid "html"
4100 msgstr "html"
4101
4102 #. type: textblock
4103 #: ../src/guestfs.pod:2085
4104 msgid ""
4105 "<!-- old anchor for the next section --> <a name="
4106 "\"state_machine_and_low_level_event_api\"/>"
4107 msgstr ""
4108 "<!-- old anchor for the next section --> <a name="
4109 "\"state_machine_and_low_level_event_api\"/>"
4110
4111 #. type: =head1
4112 #: ../src/guestfs.pod:2090
4113 msgid "ARCHITECTURE"
4114 msgstr "АРХІТЕКТУРА"
4115
4116 #. type: textblock
4117 #: ../src/guestfs.pod:2092
4118 msgid ""
4119 "Internally, libguestfs is implemented by running an appliance (a special "
4120 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
4121 "process of the main program."
4122 msgstr ""
4123
4124 #. type: verbatim
4125 #: ../src/guestfs.pod:2096
4126 #, no-wrap
4127 msgid ""
4128 "  ___________________\n"
4129 " /                   \\\n"
4130 " | main program      |\n"
4131 " |                   |\n"
4132 " |                   |           child process / appliance\n"
4133 " |                   |           __________________________\n"
4134 " |                   |          / qemu                     \\\n"
4135 " +-------------------+   RPC    |      +-----------------+ |\n"
4136 " | libguestfs     <--------------------> guestfsd        | |\n"
4137 " |                   |          |      +-----------------+ |\n"
4138 " \\___________________/          |      | Linux kernel    | |\n"
4139 "                                |      +--^--------------+ |\n"
4140 "                                \\_________|________________/\n"
4141 "                                          |\n"
4142 "                                   _______v______\n"
4143 "                                  /              \\\n"
4144 "                                  | Device or    |\n"
4145 "                                  | disk image   |\n"
4146 "                                  \\______________/\n"
4147 "\n"
4148 msgstr ""
4149
4150 #. type: textblock
4151 #: ../src/guestfs.pod:2116
4152 msgid ""
4153 "The library, linked to the main program, creates the child process and hence "
4154 "the appliance in the L</guestfs_launch> function."
4155 msgstr ""
4156
4157 #. type: textblock
4158 #: ../src/guestfs.pod:2119
4159 msgid ""
4160 "Inside the appliance is a Linux kernel and a complete stack of userspace "
4161 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
4162 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
4163 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
4164 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
4165 "attached to the qemu process which translates device access by the "
4166 "appliance's Linux kernel into accesses to the image."
4167 msgstr ""
4168
4169 #. type: textblock
4170 #: ../src/guestfs.pod:2128
4171 msgid ""
4172 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
4173 "Although the disk image you are attached to might also be used by some "
4174 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
4175 "care if both libguestfs's qemu process and your virtual machine are trying "
4176 "to update the disk image at the same time, since these usually results in "
4177 "massive disk corruption)."
4178 msgstr ""
4179
4180 #. type: =head1
4181 #: ../src/guestfs.pod:2135
4182 msgid "STATE MACHINE"
4183 msgstr "СКІНЧЕННИЙ АВТОМАТ"
4184
4185 #. type: textblock
4186 #: ../src/guestfs.pod:2137
4187 msgid "libguestfs uses a state machine to model the child process:"
4188 msgstr ""
4189
4190 #. type: verbatim
4191 #: ../src/guestfs.pod:2139
4192 #, no-wrap
4193 msgid ""
4194 "                         |\n"
4195 "                    guestfs_create\n"
4196 "                         |\n"
4197 "                         |\n"
4198 "                     ____V_____\n"
4199 "                    /          \\\n"
4200 "                    |  CONFIG  |\n"
4201 "                    \\__________/\n"
4202 "                     ^ ^   ^  \\\n"
4203 "                    /  |    \\  \\ guestfs_launch\n"
4204 "                   /   |    _\\__V______\n"
4205 "                  /    |   /           \\\n"
4206 "                 /     |   | LAUNCHING |\n"
4207 "                /      |   \\___________/\n"
4208 "               /       |       /\n"
4209 "              /        |  guestfs_launch\n"
4210 "             /         |     /\n"
4211 "    ______  /        __|____V\n"
4212 "   /      \\ ------> /        \\\n"
4213 "   | BUSY |         | READY  |\n"
4214 "   \\______/ <------ \\________/\n"
4215 "\n"
4216 msgstr ""
4217
4218 #. type: textblock
4219 #: ../src/guestfs.pod:2161
4220 msgid ""
4221 "The normal transitions are (1) CONFIG (when the handle is created, but there "
4222 "is no child process), (2) LAUNCHING (when the child process is booting up), "
4223 "(3) alternating between READY and BUSY as commands are issued to, and "
4224 "carried out by, the child process."
4225 msgstr ""
4226
4227 #. type: textblock
4228 #: ../src/guestfs.pod:2166
4229 msgid ""
4230 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
4231 "asynchronously at any time (eg. due to some internal error), and that causes "
4232 "the state to transition back to CONFIG."
4233 msgstr ""
4234
4235 #. type: textblock
4236 #: ../src/guestfs.pod:2170
4237 msgid ""
4238 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
4239 "issued when in the CONFIG state."
4240 msgstr ""
4241
4242 #. type: textblock
4243 #: ../src/guestfs.pod:2173
4244 msgid ""
4245 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
4246 "L</guestfs_launch> blocks until the child process is READY to accept "
4247 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
4248 "moves the state from CONFIG to LAUNCHING while it is running."
4249 msgstr ""
4250
4251 #. type: textblock
4252 #: ../src/guestfs.pod:2179
4253 msgid ""
4254 "API actions such as L</guestfs_mount> can only be issued when in the READY "
4255 "state.  These API calls block waiting for the command to be carried out (ie. "
4256 "the state to transition to BUSY and then back to READY).  There are no non-"
4257 "blocking versions, and no way to issue more than one command per handle at "
4258 "the same time."
4259 msgstr ""
4260
4261 #. type: textblock
4262 #: ../src/guestfs.pod:2185
4263 msgid ""
4264 "Finally, the child process sends asynchronous messages back to the main "
4265 "program, such as kernel log messages.  You can register a callback to "
4266 "receive these messages."
4267 msgstr ""
4268
4269 #. type: =head1
4270 #: ../src/guestfs.pod:2189
4271 msgid "INTERNALS"
4272 msgstr ""
4273
4274 #. type: =head2
4275 #: ../src/guestfs.pod:2191
4276 msgid "COMMUNICATION PROTOCOL"
4277 msgstr ""
4278
4279 #. type: textblock
4280 #: ../src/guestfs.pod:2193
4281 msgid ""
4282 "Don't rely on using this protocol directly.  This section documents how it "
4283 "currently works, but it may change at any time."
4284 msgstr ""
4285
4286 #. type: textblock
4287 #: ../src/guestfs.pod:2196
4288 msgid ""
4289 "The protocol used to talk between the library and the daemon running inside "
4290 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
4291 "1014, RFC 1832, RFC 4506)."
4292 msgstr ""
4293
4294 #. type: textblock
4295 #: ../src/guestfs.pod:2200
4296 msgid ""
4297 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
4298 "this file is automatically generated)."
4299 msgstr ""
4300
4301 #. type: textblock
4302 #: ../src/guestfs.pod:2203
4303 msgid ""
4304 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
4305 "and C<FileOut> parameters, which are handled with very simple request/reply "
4306 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
4307 "parameters, which use the same request and reply messages, but they may also "
4308 "be followed by files sent using a chunked encoding."
4309 msgstr ""
4310
4311 #. type: =head3
4312 #: ../src/guestfs.pod:2210
4313 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
4314 msgstr ""
4315
4316 #. type: textblock
4317 #: ../src/guestfs.pod:2212
4318 msgid "For ordinary functions, the request message is:"
4319 msgstr ""
4320
4321 #. type: verbatim
4322 #: ../src/guestfs.pod:2214
4323 #, no-wrap
4324 msgid ""
4325 " total length (header + arguments,\n"
4326 "      but not including the length word itself)\n"
4327 " struct guestfs_message_header (encoded as XDR)\n"
4328 " struct guestfs_<foo>_args (encoded as XDR)\n"
4329 "\n"
4330 msgstr ""
4331
4332 #. type: textblock
4333 #: ../src/guestfs.pod:2219
4334 msgid ""
4335 "The total length field allows the daemon to allocate a fixed size buffer "
4336 "into which it slurps the rest of the message.  As a result, the total length "
4337 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
4338 "effective size of any request is limited to somewhere under this size."
4339 msgstr ""
4340
4341 #. type: textblock
4342 #: ../src/guestfs.pod:2225
4343 msgid ""
4344 "Note also that many functions don't take any arguments, in which case the "
4345 "C<guestfs_I<foo>_args> is completely omitted."
4346 msgstr ""
4347
4348 #. type: textblock
4349 #: ../src/guestfs.pod:2228
4350 msgid ""
4351 "The header contains the procedure number (C<guestfs_proc>) which is how the "
4352 "receiver knows what type of args structure to expect, or none at all."
4353 msgstr ""
4354
4355 #. type: textblock
4356 #: ../src/guestfs.pod:2232
4357 msgid ""
4358 "For functions that take optional arguments, the optional arguments are "
4359 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
4360 "arguments.  A bitmask in the header indicates which optional arguments are "
4361 "meaningful.  The bitmask is also checked to see if it contains bits set "
4362 "which the daemon does not know about (eg. if more optional arguments were "
4363 "added in a later version of the library), and this causes the call to be "
4364 "rejected."
4365 msgstr ""
4366
4367 #. type: textblock
4368 #: ../src/guestfs.pod:2240
4369 msgid "The reply message for ordinary functions is:"
4370 msgstr ""
4371
4372 #. type: verbatim
4373 #: ../src/guestfs.pod:2242
4374 #, no-wrap
4375 msgid ""
4376 " total length (header + ret,\n"
4377 "      but not including the length word itself)\n"
4378 " struct guestfs_message_header (encoded as XDR)\n"
4379 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4380 "\n"
4381 msgstr ""
4382
4383 #. type: textblock
4384 #: ../src/guestfs.pod:2247
4385 msgid ""
4386 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
4387 "functions that return no formal return values."
4388 msgstr ""
4389
4390 #. type: textblock
4391 #: ../src/guestfs.pod:2250
4392 msgid ""
4393 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
4394 msgstr ""
4395
4396 #. type: textblock
4397 #: ../src/guestfs.pod:2253
4398 msgid ""
4399 "In the case of an error, a flag is set in the header, and the reply message "
4400 "is slightly changed:"
4401 msgstr ""
4402
4403 #. type: verbatim
4404 #: ../src/guestfs.pod:2256
4405 #, no-wrap
4406 msgid ""
4407 " total length (header + error,\n"
4408 "      but not including the length word itself)\n"
4409 " struct guestfs_message_header (encoded as XDR)\n"
4410 " struct guestfs_message_error (encoded as XDR)\n"
4411 "\n"
4412 msgstr ""
4413
4414 #. type: textblock
4415 #: ../src/guestfs.pod:2261
4416 msgid ""
4417 "The C<guestfs_message_error> structure contains the error message as a "
4418 "string."
4419 msgstr ""
4420
4421 #. type: =head3
4422 #: ../src/guestfs.pod:2264
4423 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
4424 msgstr ""
4425
4426 #. type: textblock
4427 #: ../src/guestfs.pod:2266
4428 msgid ""
4429 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
4430 "The normal request message is sent (see above).  However this is followed by "
4431 "a sequence of file chunks."
4432 msgstr ""
4433
4434 #. type: verbatim
4435 #: ../src/guestfs.pod:2270
4436 #, no-wrap
4437 msgid ""
4438 " total length (header + arguments,\n"
4439 "      but not including the length word itself,\n"
4440 "      and not including the chunks)\n"
4441 " struct guestfs_message_header (encoded as XDR)\n"
4442 " struct guestfs_<foo>_args (encoded as XDR)\n"
4443 " sequence of chunks for FileIn param #0\n"
4444 " sequence of chunks for FileIn param #1 etc.\n"
4445 "\n"
4446 msgstr ""
4447
4448 #. type: textblock
4449 #: ../src/guestfs.pod:2278
4450 msgid "The \"sequence of chunks\" is:"
4451 msgstr ""
4452
4453 #. type: verbatim
4454 #: ../src/guestfs.pod:2280
4455 #, no-wrap
4456 msgid ""
4457 " length of chunk (not including length word itself)\n"
4458 " struct guestfs_chunk (encoded as XDR)\n"
4459 " length of chunk\n"
4460 " struct guestfs_chunk (encoded as XDR)\n"
4461 "   ...\n"
4462 " length of chunk\n"
4463 " struct guestfs_chunk (with data.data_len == 0)\n"
4464 "\n"
4465 msgstr ""
4466
4467 #. type: textblock
4468 #: ../src/guestfs.pod:2288
4469 msgid ""
4470 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
4471 "is set in the final chunk to indicate either successful completion or early "
4472 "cancellation."
4473 msgstr ""
4474
4475 #. type: textblock
4476 #: ../src/guestfs.pod:2292
4477 msgid ""
4478 "At time of writing there are no functions that have more than one FileIn "
4479 "parameter.  However this is (theoretically) supported, by sending the "
4480 "sequence of chunks for each FileIn parameter one after another (from left to "
4481 "right)."
4482 msgstr ""
4483
4484 #. type: textblock
4485 #: ../src/guestfs.pod:2297
4486 msgid ""
4487 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
4488 "transfer.  The library does this by sending a chunk with a special flag set "
4489 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
4490 "RPC, does I<not> send any reply, and goes back to reading the next request."
4491 msgstr ""
4492
4493 #. type: textblock
4494 #: ../src/guestfs.pod:2303
4495 msgid ""
4496 "The daemon may also cancel.  It does this by writing a special word "
4497 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
4498 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
4499 "cancel chunk).  The special word is chosen so that even if cancellation "
4500 "happens right at the end of the transfer (after the library has finished "
4501 "writing and has started listening for the reply), the \"spurious\" cancel "
4502 "flag will not be confused with the reply message."
4503 msgstr ""
4504
4505 #. type: textblock
4506 #: ../src/guestfs.pod:2312
4507 msgid ""
4508 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
4509 "limit), and also files where the size is not known in advance (eg. from "
4510 "pipes or sockets).  However the chunks are rather small "
4511 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
4512 "to keep much in memory."
4513 msgstr ""
4514
4515 #. type: =head3
4516 #: ../src/guestfs.pod:2318
4517 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
4518 msgstr ""
4519
4520 #. type: textblock
4521 #: ../src/guestfs.pod:2320
4522 msgid ""
4523 "The protocol for FileOut parameters is exactly the same as for FileIn "
4524 "parameters, but with the roles of daemon and library reversed."
4525 msgstr ""
4526
4527 #. type: verbatim
4528 #: ../src/guestfs.pod:2323
4529 #, no-wrap
4530 msgid ""
4531 " total length (header + ret,\n"
4532 "      but not including the length word itself,\n"
4533 "      and not including the chunks)\n"
4534 " struct guestfs_message_header (encoded as XDR)\n"
4535 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4536 " sequence of chunks for FileOut param #0\n"
4537 " sequence of chunks for FileOut param #1 etc.\n"
4538 "\n"
4539 msgstr ""
4540
4541 #. type: =head3
4542 #: ../src/guestfs.pod:2331
4543 msgid "INITIAL MESSAGE"
4544 msgstr ""
4545
4546 #. type: textblock
4547 #: ../src/guestfs.pod:2333
4548 msgid ""
4549 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
4550 "which indicates that the guest and daemon is alive.  This is what L</"
4551 "guestfs_launch> waits for."
4552 msgstr ""
4553
4554 #. type: =head3
4555 #: ../src/guestfs.pod:2337
4556 msgid "PROGRESS NOTIFICATION MESSAGES"
4557 msgstr ""
4558
4559 #. type: textblock
4560 #: ../src/guestfs.pod:2339
4561 msgid ""
4562 "The daemon may send progress notification messages at any time.  These are "
4563 "distinguished by the normal length word being replaced by "
4564 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
4565 msgstr ""
4566
4567 #. type: textblock
4568 #: ../src/guestfs.pod:2343
4569 msgid ""
4570 "The library turns them into progress callbacks (see L</"
4571 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
4572 "if not."
4573 msgstr ""
4574
4575 #. type: textblock
4576 #: ../src/guestfs.pod:2347
4577 msgid ""
4578 "The daemon self-limits the frequency of progress messages it sends (see "
4579 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
4580 "messages."
4581 msgstr ""
4582
4583 #. type: =head1
4584 #: ../src/guestfs.pod:2351
4585 msgid "LIBGUESTFS VERSION NUMBERS"
4586 msgstr ""
4587
4588 #. type: textblock
4589 #: ../src/guestfs.pod:2353
4590 msgid ""
4591 "Since April 2010, libguestfs has started to make separate development and "
4592 "stable releases, along with corresponding branches in our git repository.  "
4593 "These separate releases can be identified by version number:"
4594 msgstr ""
4595
4596 #. type: verbatim
4597 #: ../src/guestfs.pod:2358
4598 #, no-wrap
4599 msgid ""
4600 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
4601 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
4602 "       |\n"
4603 "       v\n"
4604 " 1  .  3  .  5\n"
4605 " ^           ^\n"
4606 " |           |\n"
4607 " |           `-------- sub-version\n"
4608 " |\n"
4609 " `------ always '1' because we don't change the ABI\n"
4610 "\n"
4611 msgstr ""
4612
4613 #. type: textblock
4614 #: ../src/guestfs.pod:2369
4615 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
4616 msgstr ""
4617
4618 #. type: textblock
4619 #: ../src/guestfs.pod:2371
4620 msgid ""
4621 "As time passes we cherry pick fixes from the development branch and backport "
4622 "those into the stable branch, the effect being that the stable branch should "
4623 "get more stable and less buggy over time.  So the stable releases are ideal "
4624 "for people who don't need new features but would just like the software to "
4625 "work."
4626 msgstr ""
4627
4628 #. type: textblock
4629 #: ../src/guestfs.pod:2377
4630 msgid "Our criteria for backporting changes are:"
4631 msgstr ""
4632
4633 #. type: textblock
4634 #: ../src/guestfs.pod:2383
4635 msgid ""
4636 "Documentation changes which don't affect any code are backported unless the "
4637 "documentation refers to a future feature which is not in stable."
4638 msgstr ""
4639
4640 #. type: textblock
4641 #: ../src/guestfs.pod:2389
4642 msgid ""
4643 "Bug fixes which are not controversial, fix obvious problems, and have been "
4644 "well tested are backported."
4645 msgstr ""
4646
4647 #. type: textblock
4648 #: ../src/guestfs.pod:2394
4649 msgid ""
4650 "Simple rearrangements of code which shouldn't affect how it works get "
4651 "backported.  This is so that the code in the two branches doesn't get too "
4652 "far out of step, allowing us to backport future fixes more easily."
4653 msgstr ""
4654
4655 #. type: textblock
4656 #: ../src/guestfs.pod:2400
4657 msgid ""
4658 "We I<don't> backport new features, new APIs, new tools etc, except in one "
4659 "exceptional case: the new feature is required in order to implement an "
4660 "important bug fix."
4661 msgstr ""
4662
4663 #. type: textblock
4664 #: ../src/guestfs.pod:2406
4665 msgid ""
4666 "A new stable branch starts when we think the new features in development are "
4667 "substantial and compelling enough over the current stable branch to warrant "
4668 "it.  When that happens we create new stable and development versions 1.N.0 "
4669 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
4670 "stable at this point, but by backporting fixes from development, that branch "
4671 "will stabilize over time."
4672 msgstr ""
4673
4674 #. type: =head1
4675 #: ../src/guestfs.pod:2414
4676 msgid "EXTENDING LIBGUESTFS"
4677 msgstr ""
4678
4679 #. type: =head2
4680 #: ../src/guestfs.pod:2416
4681 msgid "ADDING A NEW API ACTION"
4682 msgstr ""
4683
4684 #. type: textblock
4685 #: ../src/guestfs.pod:2418
4686 msgid ""
4687 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
4688 "documentation) are generated, and this makes it easy to extend the "
4689 "libguestfs API."
4690 msgstr ""
4691
4692 #. type: textblock
4693 #: ../src/guestfs.pod:2422
4694 msgid "To add a new API action there are two changes:"
4695 msgstr ""
4696
4697 #. type: textblock
4698 #: ../src/guestfs.pod:2428
4699 msgid ""
4700 "You need to add a description of the call (name, parameters, return type, "
4701 "tests, documentation) to C<generator/generator_actions.ml>."
4702 msgstr ""
4703
4704 #. type: textblock
4705 #: ../src/guestfs.pod:2431
4706 msgid ""
4707 "There are two sorts of API action, depending on whether the call goes "
4708 "through to the daemon in the appliance, or is serviced entirely by the "
4709 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
4710 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
4711 "an example of the latter, since a trace flag is maintained in the handle and "
4712 "all tracing is done on the library side."
4713 msgstr ""
4714
4715 #. type: textblock
4716 #: ../src/guestfs.pod:2439
4717 msgid ""
4718 "Most new actions are of the first type, and get added to the "
4719 "C<daemon_functions> list.  Each function has a unique procedure number used "
4720 "in the RPC protocol which is assigned to that action when we publish "
4721 "libguestfs and cannot be reused.  Take the latest procedure number and "
4722 "increment it."
4723 msgstr ""
4724
4725 #. type: textblock
4726 #: ../src/guestfs.pod:2445
4727 msgid ""
4728 "For library-only actions of the second type, add to the "
4729 "C<non_daemon_functions> list.  Since these functions are serviced by the "
4730 "library and do not travel over the RPC mechanism to the daemon, these "
4731 "functions do not need a procedure number, and so the procedure number is set "
4732 "to C<-1>."
4733 msgstr ""
4734
4735 #. type: textblock
4736 #: ../src/guestfs.pod:2453
4737 msgid "Implement the action (in C):"
4738 msgstr ""
4739
4740 #. type: textblock
4741 #: ../src/guestfs.pod:2455
4742 msgid ""
4743 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
4744 "C<daemon/> directory."
4745 msgstr ""
4746
4747 #. type: textblock
4748 #: ../src/guestfs.pod:2458
4749 msgid ""
4750 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
4751 "(note: double underscore) in the C<src/> directory."
4752 msgstr ""
4753
4754 #. type: textblock
4755 #: ../src/guestfs.pod:2461
4756 msgid "In either case, use another function as an example of what to do."
4757 msgstr ""
4758
4759 #. type: textblock
4760 #: ../src/guestfs.pod:2465
4761 msgid "After making these changes, use C<make> to compile."
4762 msgstr ""
4763
4764 #. type: textblock
4765 #: ../src/guestfs.pod:2467
4766 msgid ""
4767 "Note that you don't need to implement the RPC, language bindings, manual "
4768 "pages or anything else.  It's all automatically generated from the OCaml "
4769 "description."
4770 msgstr ""
4771
4772 #. type: =head2
4773 #: ../src/guestfs.pod:2471
4774 msgid "ADDING TESTS FOR AN API ACTION"
4775 msgstr ""
4776
4777 #. type: textblock
4778 #: ../src/guestfs.pod:2473
4779 msgid ""
4780 "You can supply zero or as many tests as you want per API call.  The tests "
4781 "can either be added as part of the API description (C<generator/"
4782 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
4783 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
4784 "slower, so if possible use the first method."
4785 msgstr ""
4786
4787 #. type: textblock
4788 #: ../src/guestfs.pod:2479
4789 msgid ""
4790 "The following describes the test environment used when you add an API test "
4791 "in C<generator_actions.ml>."
4792 msgstr ""
4793
4794 #. type: textblock
4795 #: ../src/guestfs.pod:2482
4796 msgid "The test environment has 4 block devices:"
4797 msgstr ""
4798
4799 #. type: =item
4800 #: ../src/guestfs.pod:2486
4801 msgid "C</dev/sda> 500MB"
4802 msgstr ""
4803
4804 #. type: textblock
4805 #: ../src/guestfs.pod:2488
4806 msgid "General block device for testing."
4807 msgstr ""
4808
4809 #. type: =item
4810 #: ../src/guestfs.pod:2490
4811 msgid "C</dev/sdb> 50MB"
4812 msgstr ""
4813
4814 #. type: textblock
4815 #: ../src/guestfs.pod:2492
4816 msgid ""
4817 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
4818 "operations."
4819 msgstr ""
4820
4821 #. type: =item
4822 #: ../src/guestfs.pod:2495
4823 msgid "C</dev/sdc> 10MB"
4824 msgstr ""
4825
4826 #. type: textblock
4827 #: ../src/guestfs.pod:2497
4828 msgid "Used in a few tests where two block devices are needed."
4829 msgstr ""
4830
4831 #. type: =item
4832 #: ../src/guestfs.pod:2499
4833 msgid "C</dev/sdd>"
4834 msgstr "C</dev/sdd>"
4835
4836 #. type: textblock
4837 #: ../src/guestfs.pod:2501
4838 msgid "ISO with fixed content (see C<images/test.iso>)."
4839 msgstr ""
4840
4841 #. type: textblock
4842 #: ../src/guestfs.pod:2505
4843 msgid ""
4844 "To be able to run the tests in a reasonable amount of time, the libguestfs "
4845 "appliance and block devices are reused between tests.  So don't try testing "
4846 "L</guestfs_kill_subprocess> :-x"
4847 msgstr ""
4848
4849 #. type: textblock
4850 #: ../src/guestfs.pod:2509
4851 msgid ""
4852 "Each test starts with an initial scenario, selected using one of the "
4853 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
4854 "initialize the disks mentioned above in a particular way as documented in "
4855 "C<generator_types.ml>.  You should not assume anything about the previous "
4856 "contents of other disks that are not initialized."
4857 msgstr ""
4858
4859 #. type: textblock
4860 #: ../src/guestfs.pod:2515
4861 msgid ""
4862 "You can add a prerequisite clause to any individual test.  This is a run-"
4863 "time check, which, if it fails, causes the test to be skipped.  Useful if "
4864 "testing a command which might not work on all variations of libguestfs "
4865 "builds.  A test that has prerequisite of C<Always> means to run "
4866 "unconditionally."
4867 msgstr ""
4868
4869 #. type: textblock
4870 #: ../src/guestfs.pod:2521
4871 msgid ""
4872 "In addition, packagers can skip individual tests by setting environment "
4873 "variables before running C<make check>."
4874 msgstr ""
4875
4876 #. type: verbatim
4877 #: ../src/guestfs.pod:2524
4878 #, no-wrap
4879 msgid ""
4880 " SKIP_TEST_<CMD>_<NUM>=1\n"
4881 "\n"
4882 msgstr ""
4883
4884 #. type: textblock
4885 #: ../src/guestfs.pod:2526
4886 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
4887 msgstr ""
4888
4889 #. type: textblock
4890 #: ../src/guestfs.pod:2528
4891 msgid "or:"
4892 msgstr "або:"
4893
4894 #. type: verbatim
4895 #: ../src/guestfs.pod:2530
4896 #, no-wrap
4897 msgid ""
4898 " SKIP_TEST_<CMD>=1\n"
4899 "\n"
4900 msgstr ""
4901
4902 #. type: textblock
4903 #: ../src/guestfs.pod:2532
4904 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
4905 msgstr ""
4906
4907 #. type: textblock
4908 #: ../src/guestfs.pod:2534
4909 msgid "Packagers can run only certain tests by setting for example:"
4910 msgstr ""
4911
4912 #. type: verbatim
4913 #: ../src/guestfs.pod:2536
4914 #, no-wrap
4915 msgid ""
4916 " TEST_ONLY=\"vfs_type zerofree\"\n"
4917 "\n"
4918 msgstr ""
4919
4920 #. type: textblock
4921 #: ../src/guestfs.pod:2538
4922 msgid ""
4923 "See C<capitests/tests.c> for more details of how these environment variables "
4924 "work."
4925 msgstr ""
4926
4927 #. type: =head2
4928 #: ../src/guestfs.pod:2541
4929 msgid "DEBUGGING NEW API ACTIONS"
4930 msgstr ""
4931
4932 #. type: textblock
4933 #: ../src/guestfs.pod:2543
4934 msgid "Test new actions work before submitting them."
4935 msgstr ""
4936
4937 #. type: textblock
4938 #: ../src/guestfs.pod:2545
4939 msgid "You can use guestfish to try out new commands."
4940 msgstr ""
4941
4942 #. type: textblock
4943 #: ../src/guestfs.pod:2547
4944 msgid ""
4945 "Debugging the daemon is a problem because it runs inside a minimal "
4946 "environment.  However you can fprintf messages in the daemon to stderr, and "
4947 "they will show up if you use C<guestfish -v>."
4948 msgstr ""
4949
4950 #. type: =head2
4951 #: ../src/guestfs.pod:2551
4952 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
4953 msgstr ""
4954
4955 #. type: textblock
4956 #: ../src/guestfs.pod:2553
4957 msgid ""
4958 "Our C source code generally adheres to some basic code-formatting "
4959 "conventions.  The existing code base is not totally consistent on this "
4960 "front, but we do prefer that contributed code be formatted similarly.  In "
4961 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
4962 "indentation level, and other than that, follow the K&R style."
4963 msgstr ""
4964
4965 #. type: textblock
4966 #: ../src/guestfs.pod:2559
4967 msgid ""
4968 "If you use Emacs, add the following to one of one of your start-up files (e."
4969 "g., ~/.emacs), to help ensure that you get indentation right:"
4970 msgstr ""
4971
4972 #. type: verbatim
4973 #: ../src/guestfs.pod:2562
4974 #, no-wrap
4975 msgid ""
4976 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
4977 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
4978 " (add-hook 'find-file-hook\n"
4979 "     '(lambda () (if (and buffer-file-name\n"
4980 "                          (string-match \"/libguestfs\\\\>\"\n"
4981 "                              (buffer-file-name))\n"
4982 "                          (not (string-equal mode-name \"Change Log\"))\n"
4983 "                          (not (string-equal mode-name \"Makefile\")))\n"
4984 "                     (setq indent-tabs-mode nil))))\n"
4985 " \n"
4986 msgstr ""
4987
4988 #. type: verbatim
4989 #: ../src/guestfs.pod:2572
4990 #, no-wrap
4991 msgid ""
4992 " ;;; When editing C sources in libguestfs, use this style.\n"
4993 " (defun libguestfs-c-mode ()\n"
4994 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
4995 "   (interactive)\n"
4996 "   (c-set-style \"K&R\")\n"
4997 "   (setq c-indent-level 2)\n"
4998 "   (setq c-basic-offset 2))\n"
4999 " (add-hook 'c-mode-hook\n"
5000 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
5001 "                               (buffer-file-name))\n"
5002 "                           (libguestfs-c-mode))))\n"
5003 "\n"
5004 msgstr ""
5005
5006 #. type: textblock
5007 #: ../src/guestfs.pod:2584
5008 msgid "Enable warnings when compiling (and fix any problems this finds):"
5009 msgstr ""
5010
5011 #. type: verbatim
5012 #: ../src/guestfs.pod:2587
5013 #, no-wrap
5014 msgid ""
5015 " ./configure --enable-gcc-warnings\n"
5016 "\n"
5017 msgstr ""
5018
5019 #. type: textblock
5020 #: ../src/guestfs.pod:2589
5021 msgid "Useful targets are:"
5022 msgstr ""
5023
5024 #. type: verbatim
5025 #: ../src/guestfs.pod:2591
5026 #, no-wrap
5027 msgid ""
5028 " make syntax-check  # checks the syntax of the C code\n"
5029 " make check         # runs the test suite\n"
5030 "\n"
5031 msgstr ""
5032
5033 #. type: =head2
5034 #: ../src/guestfs.pod:2594
5035 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
5036 msgstr ""
5037
5038 #. type: textblock
5039 #: ../src/guestfs.pod:2596
5040 msgid ""
5041 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
5042 "which are used to do shell quoting."
5043 msgstr ""
5044
5045 #. type: =item
5046 #: ../src/guestfs.pod:2601
5047 msgid "%Q"
5048 msgstr "%Q"
5049
5050 #. type: textblock
5051 #: ../src/guestfs.pod:2603
5052 msgid ""
5053 "Simple shell quoted string.  Any spaces or other shell characters are "
5054 "escaped for you."
5055 msgstr ""
5056
5057 #. type: =item
5058 #: ../src/guestfs.pod:2606
5059 msgid "%R"
5060 msgstr "%R"
5061
5062 #. type: textblock
5063 #: ../src/guestfs.pod:2608
5064 msgid ""
5065 "Same as C<%Q> except the string is treated as a path which is prefixed by "
5066 "the sysroot."
5067 msgstr ""
5068
5069 #. type: textblock
5070 #: ../src/guestfs.pod:2613 ../fish/guestfish.pod:242 ../fish/guestfish.pod:615
5071 msgid "For example:"
5072 msgstr "Приклад:"
5073
5074 #. type: verbatim
5075 #: ../src/guestfs.pod:2615
5076 #, no-wrap
5077 msgid ""
5078 " asprintf (&cmd, \"cat %R\", path);\n"
5079 "\n"
5080 msgstr ""
5081
5082 #. type: textblock
5083 #: ../src/guestfs.pod:2617
5084 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
5085 msgstr ""
5086
5087 #. type: textblock
5088 #: ../src/guestfs.pod:2619
5089 msgid ""
5090 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
5091 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
5092 "they are not passed via the shell (instead, straight to exec).  You probably "
5093 "want to use the C<sysroot_path()> function however."
5094 msgstr ""
5095
5096 #. type: =head2
5097 #: ../src/guestfs.pod:2625
5098 msgid "SUBMITTING YOUR NEW API ACTIONS"
5099 msgstr ""
5100
5101 #. type: textblock
5102 #: ../src/guestfs.pod:2627
5103 msgid ""
5104 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
5105 "libguestfs> and CC to L<rjones@redhat.com>."
5106 msgstr ""
5107
5108 #. type: =head2
5109 #: ../src/guestfs.pod:2631
5110 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
5111 msgstr ""
5112
5113 #. type: textblock
5114 #: ../src/guestfs.pod:2633
5115 msgid "We support i18n (gettext anyhow) in the library."
5116 msgstr ""
5117
5118 #. type: textblock
5119 #: ../src/guestfs.pod:2635
5120 msgid ""
5121 "However many messages come from the daemon, and we don't translate those at "
5122 "the moment.  One reason is that the appliance generally has all locale files "
5123 "removed from it, because they take up a lot of space.  So we'd have to readd "
5124 "some of those, as well as copying our PO files into the appliance."
5125 msgstr ""
5126
5127 #. type: textblock
5128 #: ../src/guestfs.pod:2641
5129 msgid ""
5130 "Debugging messages are never translated, since they are intended for the "
5131 "programmers."
5132 msgstr ""
5133
5134 #. type: =head2
5135 #: ../src/guestfs.pod:2644
5136 msgid "SOURCE CODE SUBDIRECTORIES"
5137 msgstr ""
5138
5139 #. type: =item
5140 #: ../src/guestfs.pod:2648 ../src/guestfs-actions.pod:5951
5141 #: ../fish/guestfish-actions.pod:3958
5142 msgid "C<appliance>"
5143 msgstr "C<appliance>"
5144
5145 #. type: textblock
5146 #: ../src/guestfs.pod:2650
5147 msgid "The libguestfs appliance, build scripts and so on."
5148 msgstr ""
5149
5150 #. type: =item
5151 #: ../src/guestfs.pod:2652
5152 msgid "C<capitests>"
5153 msgstr "C<capitests>"
5154
5155 #. type: textblock
5156 #: ../src/guestfs.pod:2654
5157 msgid "Automated tests of the C API."
5158 msgstr ""
5159
5160 #. type: =item
5161 #: ../src/guestfs.pod:2656
5162 msgid "C<cat>"
5163 msgstr "C<cat>"
5164
5165 #. type: textblock
5166 #: ../src/guestfs.pod:2658
5167 msgid ""
5168 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
5169 "documentation."
5170 msgstr ""
5171
5172 #. type: =item
5173 #: ../src/guestfs.pod:2661
5174 msgid "C<contrib>"
5175 msgstr "C<contrib>"
5176
5177 #. type: textblock
5178 #: ../src/guestfs.pod:2663
5179 msgid "Outside contributions, experimental parts."
5180 msgstr ""
5181
5182 #. type: =item
5183 #: ../src/guestfs.pod:2665
5184 msgid "C<daemon>"
5185 msgstr "C<daemon>"
5186
5187 #. type: textblock
5188 #: ../src/guestfs.pod:2667
5189 msgid ""
5190 "The daemon that runs inside the libguestfs appliance and carries out actions."
5191 msgstr ""
5192
5193 #. type: =item
5194 #: ../src/guestfs.pod:2670
5195 msgid "C<df>"
5196 msgstr "C<df>"
5197
5198 #. type: textblock
5199 #: ../src/guestfs.pod:2672
5200 msgid "L<virt-df(1)> command and documentation."
5201 msgstr ""
5202
5203 #. type: =item
5204 #: ../src/guestfs.pod:2674
5205 msgid "C<edit>"
5206 msgstr ""
5207
5208 #. type: textblock
5209 #: ../src/guestfs.pod:2676
5210 msgid "L<virt-edit(1)> command and documentation."
5211 msgstr ""
5212
5213 #. type: =item
5214 #: ../src/guestfs.pod:2678
5215 msgid "C<examples>"
5216 msgstr "C<examples>"
5217
5218 #. type: textblock
5219 #: ../src/guestfs.pod:2680
5220 msgid "C API example code."
5221 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
5222
5223 #. type: =item
5224 #: ../src/guestfs.pod:2682
5225 msgid "C<fish>"
5226 msgstr "C<fish>"
5227
5228 #. type: textblock
5229 #: ../src/guestfs.pod:2684
5230 msgid ""
5231 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
5232 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
5233 "L<virt-tar-out(1)>."
5234 msgstr ""
5235
5236 #. type: =item
5237 #: ../src/guestfs.pod:2688
5238 msgid "C<fuse>"
5239 msgstr "C<fuse>"
5240
5241 #. type: textblock
5242 #: ../src/guestfs.pod:2690
5243 msgid ""
5244 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
5245 msgstr ""
5246
5247 #. type: =item
5248 #: ../src/guestfs.pod:2692
5249 msgid "C<generator>"
5250 msgstr "C<generator>"
5251
5252 #. type: textblock
5253 #: ../src/guestfs.pod:2694
5254 msgid ""
5255 "The crucially important generator, used to automatically generate large "
5256 "amounts of boilerplate C code for things like RPC and bindings."
5257 msgstr ""
5258
5259 #. type: =item
5260 #: ../src/guestfs.pod:2697
5261 msgid "C<images>"
5262 msgstr "C<images>"
5263
5264 #. type: textblock
5265 #: ../src/guestfs.pod:2699
5266 msgid "Files used by the test suite."
5267 msgstr ""
5268
5269 #. type: textblock
5270 #: ../src/guestfs.pod:2701
5271 msgid "Some \"phony\" guest images which we test against."
5272 msgstr ""
5273
5274 #. type: =item
5275 #: ../src/guestfs.pod:2703
5276 msgid "C<inspector>"
5277 msgstr "C<inspector>"
5278
5279 #. type: textblock
5280 #: ../src/guestfs.pod:2705
5281 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
5282 msgstr ""
5283
5284 #. type: =item
5285 #: ../src/guestfs.pod:2707
5286 msgid "C<logo>"
5287 msgstr "C<logo>"
5288
5289 #. type: textblock
5290 #: ../src/guestfs.pod:2709
5291 msgid "Logo used on the website.  The fish is called Arthur by the way."
5292 msgstr ""
5293
5294 #. type: =item
5295 #: ../src/guestfs.pod:2711
5296 msgid "C<m4>"
5297 msgstr "C<m4>"
5298
5299 #. type: textblock
5300 #: ../src/guestfs.pod:2713
5301 msgid "M4 macros used by autoconf."
5302 msgstr ""
5303
5304 #. type: =item
5305 #: ../src/guestfs.pod:2715
5306 msgid "C<po>"
5307 msgstr "C<po>"
5308
5309 #. type: textblock
5310 #: ../src/guestfs.pod:2717
5311 msgid "Translations of simple gettext strings."
5312 msgstr "Переклади простих рядків gettext."
5313
5314 #. type: =item
5315 #: ../src/guestfs.pod:2719
5316 msgid "C<po-docs>"
5317 msgstr "C<po-docs>"
5318
5319 #. type: textblock
5320 #: ../src/guestfs.pod:2721
5321 msgid ""
5322 "The build infrastructure and PO files for translations of manpages and POD "
5323 "files.  Eventually this will be combined with the C<po> directory, but that "
5324 "is rather complicated."
5325 msgstr ""
5326
5327 #. type: =item
5328 #: ../src/guestfs.pod:2725
5329 msgid "C<regressions>"
5330 msgstr "C<regressions>"
5331
5332 #. type: textblock
5333 #: ../src/guestfs.pod:2727
5334 msgid "Regression tests."
5335 msgstr "Тести на регресії."
5336
5337 #. type: =item
5338 #: ../src/guestfs.pod:2729
5339 msgid "C<rescue>"
5340 msgstr "C<rescue>"
5341
5342 #. type: textblock
5343 #: ../src/guestfs.pod:2731
5344 msgid "L<virt-rescue(1)> command and documentation."
5345 msgstr ""
5346
5347 #. type: =item
5348 #: ../src/guestfs.pod:2733
5349 msgid "C<src>"
5350 msgstr "C<src>"
5351
5352 #. type: textblock
5353 #: ../src/guestfs.pod:2735
5354 msgid "Source code to the C library."
5355 msgstr ""
5356
5357 #. type: =item
5358 #: ../src/guestfs.pod:2737
5359 msgid "C<tools>"
5360 msgstr "C<tools>"
5361
5362 #. type: textblock
5363 #: ../src/guestfs.pod:2739
5364 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
5365 msgstr ""
5366
5367 #. type: =item
5368 #: ../src/guestfs.pod:2741
5369 msgid "C<test-tool>"
5370 msgstr "C<test-tool>"
5371
5372 #. type: textblock
5373 #: ../src/guestfs.pod:2743
5374 msgid ""
5375 "Test tool for end users to test if their qemu/kernel combination will work "
5376 "with libguestfs."
5377 msgstr ""
5378
5379 #. type: =item
5380 #: ../src/guestfs.pod:2746
5381 msgid "C<csharp>"
5382 msgstr "C<csharp>"
5383
5384 #. type: =item
5385 #: ../src/guestfs.pod:2748
5386 msgid "C<haskell>"
5387 msgstr "C<haskell>"
5388
5389 #. type: =item
5390 #: ../src/guestfs.pod:2750
5391 msgid "C<java>"
5392 msgstr "C<java>"
5393
5394 #. type: =item
5395 #: ../src/guestfs.pod:2752
5396 msgid "C<ocaml>"
5397 msgstr "C<ocaml>"
5398
5399 #. type: =item
5400 #: ../src/guestfs.pod:2754
5401 msgid "C<php>"
5402 msgstr "C<php>"
5403
5404 #. type: =item
5405 #: ../src/guestfs.pod:2756
5406 msgid "C<perl>"
5407 msgstr "C<perl>"
5408
5409 #. type: =item
5410 #: ../src/guestfs.pod:2758
5411 msgid "C<python>"
5412 msgstr "C<python>"
5413
5414 #. type: =item
5415 #: ../src/guestfs.pod:2760
5416 msgid "C<ruby>"
5417 msgstr "C<ruby>"
5418
5419 #. type: textblock
5420 #: ../src/guestfs.pod:2762
5421 msgid "Language bindings."
5422 msgstr "Прив’язки до мов програмування."
5423
5424 #. type: =head1
5425 #: ../src/guestfs.pod:2766
5426 msgid "LIMITS"
5427 msgstr ""
5428
5429 #. type: =head2
5430 #: ../src/guestfs.pod:2768
5431 msgid "PROTOCOL LIMITS"
5432 msgstr ""
5433
5434 #. type: textblock
5435 #: ../src/guestfs.pod:2770
5436 msgid ""
5437 "Internally libguestfs uses a message-based protocol to pass API calls and "
5438 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
5439 "plenty more detail about this).  The maximum message size used by the "
5440 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
5441 "aware of this limit.  The API calls which may be affected are individually "
5442 "documented, with a link back to this section of the documentation."
5443 msgstr ""
5444
5445 #. type: textblock
5446 #: ../src/guestfs.pod:2778
5447 msgid ""
5448 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
5449 "a simple string.  Because this string is at some point internally encoded as "
5450 "a message, the maximum size that it can return is slightly under 4 MB.  If "
5451 "the requested file is larger than this then you will get an error."
5452 msgstr ""
5453
5454 #. type: textblock
5455 #: ../src/guestfs.pod:2784
5456 msgid ""
5457 "In order to transfer large files into and out of the guest filesystem, you "
5458 "need to use particular calls that support this.  The sections L</UPLOADING> "
5459 "and L</DOWNLOADING> document how to do this."
5460 msgstr ""
5461
5462 #. type: textblock
5463 #: ../src/guestfs.pod:2788
5464 msgid ""
5465 "You might also consider mounting the disk image using our FUSE filesystem "
5466 "support (L<guestmount(1)>)."
5467 msgstr ""
5468
5469 #. type: =head2
5470 #: ../src/guestfs.pod:2791
5471 msgid "MAXIMUM NUMBER OF DISKS"
5472 msgstr ""
5473
5474 #. type: textblock
5475 #: ../src/guestfs.pod:2793
5476 msgid "When using virtio disks (the default) the current limit is B<25> disks."
5477 msgstr ""
5478
5479 #. type: textblock
5480 #: ../src/guestfs.pod:2796
5481 msgid ""
5482 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
5483 "slots.  However febootstrap only understands disks with names C</dev/vda> "
5484 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
5485 "purposes."
5486 msgstr ""
5487
5488 #. type: textblock
5489 #: ../src/guestfs.pod:2801
5490 msgid ""
5491 "We are working to substantially raise this limit in future versions but it "
5492 "requires complex changes to qemu."
5493 msgstr ""
5494
5495 #. type: textblock
5496 #: ../src/guestfs.pod:2804
5497 msgid ""
5498 "In future versions of libguestfs it should also be possible to \"hot plug\" "
5499 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
5500 "requires changes to qemu."
5501 msgstr ""
5502
5503 #. type: =head2
5504 #: ../src/guestfs.pod:2808
5505 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
5506 msgstr ""
5507
5508 #. type: textblock
5509 #: ../src/guestfs.pod:2810
5510 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
5511 msgstr ""
5512
5513 #. type: textblock
5514 #: ../src/guestfs.pod:2812
5515 msgid ""
5516 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
5517 "vda>, and C</dev/vda1> through C</dev/vda15>)."
5518 msgstr ""
5519
5520 #. type: textblock
5521 #: ../src/guestfs.pod:2815
5522 msgid ""
5523 "If you attach a disk with more than 15 partitions, the extra partitions are "
5524 "ignored by libguestfs."
5525 msgstr ""
5526
5527 #. type: =head2
5528 #: ../src/guestfs.pod:2818
5529 msgid "MAXIMUM SIZE OF A DISK"
5530 msgstr ""
5531
5532 #. type: textblock
5533 #: ../src/guestfs.pod:2820
5534 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
5535 msgstr ""
5536
5537 #. type: textblock
5538 #: ../src/guestfs.pod:2822
5539 msgid ""
5540 "We have tested block devices up to 1 exabyte (2**60 or "
5541 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
5542 "filesystem."
5543 msgstr ""
5544
5545 #. type: textblock
5546 #: ../src/guestfs.pod:2826
5547 msgid ""
5548 "Although libguestfs probably does not impose any limit, the underlying host "
5549 "storage will.  If you store disk images on a host ext4 filesystem, then the "
5550 "maximum size will be limited by the maximum ext4 file size (currently 16 "
5551 "TB).  If you store disk images as host logical volumes then you are limited "
5552 "by the maximum size of an LV."
5553 msgstr ""
5554
5555 #. type: textblock
5556 #: ../src/guestfs.pod:2832
5557 msgid ""
5558 "For the hugest disk image files, we recommend using XFS on the host for "
5559 "storage."
5560 msgstr ""
5561
5562 #. type: =head2
5563 #: ../src/guestfs.pod:2835
5564 msgid "MAXIMUM SIZE OF A PARTITION"
5565 msgstr ""
5566
5567 #. type: textblock
5568 #: ../src/guestfs.pod:2837
5569 msgid ""
5570 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
5571 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
5572 "address a partition located beyond 2 TB on the disk."
5573 msgstr ""
5574
5575 #. type: textblock
5576 #: ../src/guestfs.pod:2841
5577 msgid ""
5578 "It is recommended that you use GPT partitions on disks which are larger than "
5579 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
5580 "which are theoretically larger than the largest disk we could support."
5581 msgstr ""
5582
5583 #. type: =head2
5584 #: ../src/guestfs.pod:2846
5585 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
5586 msgstr ""
5587
5588 #. type: textblock
5589 #: ../src/guestfs.pod:2848
5590 msgid ""
5591 "This depends on the filesystem type.  libguestfs itself does not impose any "
5592 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
5593 "what these limits are."
5594 msgstr ""
5595
5596 #. type: =head2
5597 #: ../src/guestfs.pod:2852
5598 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
5599 msgstr ""
5600
5601 #. type: textblock
5602 #: ../src/guestfs.pod:2854
5603 msgid ""
5604 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
5605 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
5606 "uploads and downloads."
5607 msgstr ""
5608
5609 #. type: =head2
5610 #: ../src/guestfs.pod:2858
5611 #, fuzzy
5612 #| msgid "INSPECTION"
5613 msgid "INSPECTION LIMITS"
5614 msgstr "ПЕРЕВІРКА"
5615
5616 #. type: textblock
5617 #: ../src/guestfs.pod:2860
5618 msgid ""
5619 "The inspection code has several arbitrary limits on things like the size of "
5620 "Windows Registry hive it will read, and the length of product name.  These "
5621 "are intended to stop a malicious guest from consuming arbitrary amounts of "
5622 "memory and disk space on the host, and should not be reached in practice.  "
5623 "See the source code for more information."
5624 msgstr ""
5625
5626 #. type: =head1
5627 #: ../src/guestfs.pod:2866 ../fish/guestfish.pod:1017
5628 #: ../test-tool/libguestfs-test-tool.pod:82
5629 msgid "ENVIRONMENT VARIABLES"
5630 msgstr "ЗМІННІ СЕРЕДОВИЩА"
5631
5632 #. type: =item
5633 #: ../src/guestfs.pod:2870 ../fish/guestfish.pod:1048
5634 msgid "LIBGUESTFS_APPEND"
5635 msgstr ""
5636
5637 #. type: textblock
5638 #: ../src/guestfs.pod:2872 ../fish/guestfish.pod:1050
5639 msgid "Pass additional options to the guest kernel."
5640 msgstr ""
5641
5642 #. type: =item
5643 #: ../src/guestfs.pod:2874 ../fish/guestfish.pod:1052
5644 msgid "LIBGUESTFS_DEBUG"
5645 msgstr ""
5646
5647 #. type: textblock
5648 #: ../src/guestfs.pod:2876
5649 msgid ""
5650 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
5651 "effect as calling C<guestfs_set_verbose (g, 1)>."
5652 msgstr ""
5653
5654 #. type: =item
5655 #: ../src/guestfs.pod:2879 ../fish/guestfish.pod:1057
5656 msgid "LIBGUESTFS_MEMSIZE"
5657 msgstr ""
5658
5659 #. type: textblock
5660 #: ../src/guestfs.pod:2881 ../fish/guestfish.pod:1059
5661 msgid ""
5662 "Set the memory allocated to the qemu process, in megabytes.  For example:"
5663 msgstr ""
5664
5665 #. type: verbatim
5666 #: ../src/guestfs.pod:2884 ../fish/guestfish.pod:1062
5667 #, no-wrap
5668 msgid ""
5669 " LIBGUESTFS_MEMSIZE=700\n"
5670 "\n"
5671 msgstr ""
5672
5673 #. type: =item
5674 #: ../src/guestfs.pod:2886 ../fish/guestfish.pod:1064
5675 msgid "LIBGUESTFS_PATH"
5676 msgstr ""
5677
5678 #. type: textblock
5679 #: ../src/guestfs.pod:2888
5680 msgid ""
5681 "Set the path that libguestfs uses to search for a supermin appliance.  See "
5682 "the discussion of paths in section L</PATH> above."
5683 msgstr ""
5684
5685 #. type: =item
5686 #: ../src/guestfs.pod:2891 ../fish/guestfish.pod:1069
5687 msgid "LIBGUESTFS_QEMU"
5688 msgstr ""
5689
5690 #. type: textblock
5691 #: ../src/guestfs.pod:2893 ../fish/guestfish.pod:1071
5692 msgid ""
5693 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
5694 "which was found at compile time by the configure script is used."
5695 msgstr ""
5696
5697 #. type: textblock
5698 #: ../src/guestfs.pod:2897
5699 msgid "See also L</QEMU WRAPPERS> above."
5700 msgstr ""
5701
5702 #. type: =item
5703 #: ../src/guestfs.pod:2899 ../fish/guestfish.pod:1075
5704 msgid "LIBGUESTFS_TRACE"
5705 msgstr ""
5706
5707 #. type: textblock
5708 #: ../src/guestfs.pod:2901
5709 msgid ""
5710 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
5711 "effect as calling C<guestfs_set_trace (g, 1)>."
5712 msgstr ""
5713
5714 #. type: =item
5715 #: ../src/guestfs.pod:2904 ../fish/guestfish.pod:1084
5716 msgid "TMPDIR"
5717 msgstr ""
5718
5719 #. type: textblock
5720 #: ../src/guestfs.pod:2906 ../fish/guestfish.pod:1086
5721 msgid ""
5722 "Location of temporary directory, defaults to C</tmp> except for the cached "
5723 "supermin appliance which defaults to C</var/tmp>."
5724 msgstr ""
5725
5726 #. type: textblock
5727 #: ../src/guestfs.pod:2909 ../fish/guestfish.pod:1089
5728 msgid ""
5729 "If libguestfs was compiled to use the supermin appliance then the real "
5730 "appliance is cached in this directory, shared between all handles belonging "
5731 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
5732 "use in case C</var/tmp> is not large enough."
5733 msgstr ""
5734
5735 #. type: =head1
5736 #: ../src/guestfs.pod:2917 ../fish/guestfish.pod:1156
5737 #: ../test-tool/libguestfs-test-tool.pod:87 ../fuse/guestmount.pod:279
5738 #: ../tools/virt-win-reg.pl:744 ../tools/virt-list-filesystems.pl:189
5739 #: ../tools/virt-tar.pl:286 ../tools/virt-make-fs.pl:539
5740 #: ../tools/virt-list-partitions.pl:257
5741 msgid "SEE ALSO"
5742 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
5743
5744 #. type: textblock
5745 #: ../src/guestfs.pod:2919
5746 msgid ""
5747 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
5748 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in"
5749 "(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems"
5750 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
5751 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
5752 "tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)"
5753 ">, L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
5754 msgstr ""
5755
5756 #. type: textblock
5757 #: ../src/guestfs.pod:2946
5758 msgid ""
5759 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
5760 "(8)>, L<disktype(1)>."
5761 msgstr ""
5762
5763 #. type: =head1
5764 #: ../src/guestfs.pod:2953 ../tools/virt-win-reg.pl:759
5765 #: ../tools/virt-make-fs.pl:553
5766 msgid "BUGS"
5767 msgstr "ВАДИ"
5768
5769 #. type: textblock
5770 #: ../src/guestfs.pod:2955
5771 msgid "To get a list of bugs against libguestfs use this link:"
5772 msgstr ""
5773 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
5774 "посиланням:"
5775
5776 #. type: textblock
5777 #: ../src/guestfs.pod:2957
5778 msgid ""
5779 "L<https://bugzilla.redhat.com/buglist.cgi?"
5780 "component=libguestfs&product=Virtualization+Tools>"
5781 msgstr ""
5782 "L<https://bugzilla.redhat.com/buglist.cgi?"
5783 "component=libguestfs&product=Virtualization+Tools>"
5784
5785 #. type: textblock
5786 #: ../src/guestfs.pod:2959
5787 msgid "To report a new bug against libguestfs use this link:"
5788 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
5789
5790 #. type: textblock
5791 #: ../src/guestfs.pod:2961
5792 msgid ""
5793 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
5794 "component=libguestfs&product=Virtualization+Tools>"
5795 msgstr ""
5796 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
5797 "component=libguestfs&product=Virtualization+Tools>"
5798
5799 #. type: textblock
5800 #: ../src/guestfs.pod:2963
5801 msgid "When reporting a bug, please check:"
5802 msgstr ""
5803
5804 #. type: textblock
5805 #: ../src/guestfs.pod:2969
5806 msgid "That the bug hasn't been reported already."
5807 msgstr ""
5808
5809 #. type: textblock
5810 #: ../src/guestfs.pod:2973
5811 msgid "That you are testing a recent version."
5812 msgstr ""
5813
5814 #. type: textblock
5815 #: ../src/guestfs.pod:2977
5816 msgid "Describe the bug accurately, and give a way to reproduce it."
5817 msgstr ""
5818
5819 #. type: textblock
5820 #: ../src/guestfs.pod:2981
5821 msgid ""
5822 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
5823 "bug report."
5824 msgstr ""
5825
5826 #. type: =head1
5827 #: ../src/guestfs.pod:2986 ../fish/guestfish.pod:1180
5828 #: ../test-tool/libguestfs-test-tool.pod:93 ../fuse/guestmount.pod:290
5829 msgid "AUTHORS"
5830 msgstr "АВТОРИ"
5831
5832 #. type: textblock
5833 #: ../src/guestfs.pod:2988 ../fish/guestfish.pod:1182
5834 #: ../test-tool/libguestfs-test-tool.pod:95 ../fuse/guestmount.pod:292
5835 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
5836 msgstr ""
5837
5838 #. type: =head1
5839 #: ../src/guestfs.pod:2990 ../fish/guestfish.pod:1184
5840 #: ../test-tool/libguestfs-test-tool.pod:97 ../fuse/guestmount.pod:294
5841 #: ../tools/virt-win-reg.pl:774 ../tools/virt-list-filesystems.pl:206
5842 #: ../tools/virt-tar.pl:305 ../tools/virt-make-fs.pl:568
5843 #: ../tools/virt-list-partitions.pl:273
5844 msgid "COPYRIGHT"
5845 msgstr "АВТОРСЬКІ ПРАВА"
5846
5847 #. type: textblock
5848 #: ../src/guestfs.pod:2992 ../fish/guestfish.pod:1186
5849 #: ../test-tool/libguestfs-test-tool.pod:99
5850 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
5851 msgstr ""
5852
5853 #. type: textblock
5854 #: ../src/guestfs.pod:2995
5855 msgid ""
5856 "This library is free software; you can redistribute it and/or modify it "
5857 "under the terms of the GNU Lesser General Public License as published by the "
5858 "Free Software Foundation; either version 2 of the License, or (at your "
5859 "option) any later version."
5860 msgstr ""
5861
5862 #. type: textblock
5863 #: ../src/guestfs.pod:3000
5864 msgid ""
5865 "This library is distributed in the hope that it will be useful, but WITHOUT "
5866 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
5867 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
5868 "for more details."
5869 msgstr ""
5870
5871 #. type: textblock
5872 #: ../src/guestfs.pod:3005
5873 msgid ""
5874 "You should have received a copy of the GNU Lesser General Public License "
5875 "along with this library; if not, write to the Free Software Foundation, "
5876 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
5877 msgstr ""
5878
5879 #. type: =head2
5880 #: ../src/guestfs-actions.pod:1
5881 msgid "guestfs_add_cdrom"
5882 msgstr ""
5883
5884 #. type: verbatim
5885 #: ../src/guestfs-actions.pod:3
5886 #, no-wrap
5887 msgid ""
5888 " int\n"
5889 " guestfs_add_cdrom (guestfs_h *g,\n"
5890 "                    const char *filename);\n"
5891 "\n"
5892 msgstr ""
5893
5894 #. type: textblock
5895 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
5896 msgid "This function adds a virtual CD-ROM disk image to the guest."
5897 msgstr ""
5898
5899 #. type: textblock
5900 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
5901 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5902 msgstr ""
5903
5904 #. type: textblock
5905 #: ../src/guestfs-actions.pod:17
5906 msgid ""
5907 "This call checks for the existence of C<filename>.  This stops you from "
5908 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5909 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
5910 "instead."
5911 msgstr ""
5912
5913 #. type: textblock
5914 #: ../src/guestfs-actions.pod:24
5915 msgid ""
5916 "If you just want to add an ISO file (often you use this as an efficient way "
5917 "to transfer large files into the guest), then you should probably use "
5918 "C<guestfs_add_drive_ro> instead."
5919 msgstr ""
5920
5921 #. type: textblock
5922 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:140
5923 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
5924 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
5925 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
5926 #: ../src/guestfs-actions.pod:422 ../src/guestfs-actions.pod:442
5927 #: ../src/guestfs-actions.pod:456 ../src/guestfs-actions.pod:501
5928 #: ../src/guestfs-actions.pod:529 ../src/guestfs-actions.pod:547
5929 #: ../src/guestfs-actions.pod:614 ../src/guestfs-actions.pod:647
5930 #: ../src/guestfs-actions.pod:661 ../src/guestfs-actions.pod:676
5931 #: ../src/guestfs-actions.pod:775 ../src/guestfs-actions.pod:793
5932 #: ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:821
5933 #: ../src/guestfs-actions.pod:982 ../src/guestfs-actions.pod:1002
5934 #: ../src/guestfs-actions.pod:1020 ../src/guestfs-actions.pod:1104
5935 #: ../src/guestfs-actions.pod:1122 ../src/guestfs-actions.pod:1141
5936 #: ../src/guestfs-actions.pod:1155 ../src/guestfs-actions.pod:1175
5937 #: ../src/guestfs-actions.pod:1245 ../src/guestfs-actions.pod:1276
5938 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1343
5939 #: ../src/guestfs-actions.pod:1449 ../src/guestfs-actions.pod:1483
5940 #: ../src/guestfs-actions.pod:1698 ../src/guestfs-actions.pod:1720
5941 #: ../src/guestfs-actions.pod:1807 ../src/guestfs-actions.pod:2269
5942 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:2474
5943 #: ../src/guestfs-actions.pod:2509 ../src/guestfs-actions.pod:3529
5944 #: ../src/guestfs-actions.pod:3544 ../src/guestfs-actions.pod:3569
5945 #: ../src/guestfs-actions.pod:3736 ../src/guestfs-actions.pod:3750
5946 #: ../src/guestfs-actions.pod:3763 ../src/guestfs-actions.pod:3777
5947 #: ../src/guestfs-actions.pod:3792 ../src/guestfs-actions.pod:3828
5948 #: ../src/guestfs-actions.pod:3900 ../src/guestfs-actions.pod:3920
5949 #: ../src/guestfs-actions.pod:3937 ../src/guestfs-actions.pod:3960
5950 #: ../src/guestfs-actions.pod:3983 ../src/guestfs-actions.pod:4015
5951 #: ../src/guestfs-actions.pod:4034 ../src/guestfs-actions.pod:4053
5952 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4100
5953 #: ../src/guestfs-actions.pod:4136 ../src/guestfs-actions.pod:4152
5954 #: ../src/guestfs-actions.pod:4165 ../src/guestfs-actions.pod:4180
5955 #: ../src/guestfs-actions.pod:4197 ../src/guestfs-actions.pod:4290
5956 #: ../src/guestfs-actions.pod:4310 ../src/guestfs-actions.pod:4323
5957 #: ../src/guestfs-actions.pod:4374 ../src/guestfs-actions.pod:4392
5958 #: ../src/guestfs-actions.pod:4410 ../src/guestfs-actions.pod:4426
5959 #: ../src/guestfs-actions.pod:4440 ../src/guestfs-actions.pod:4454
5960 #: ../src/guestfs-actions.pod:4471 ../src/guestfs-actions.pod:4486
5961 #: ../src/guestfs-actions.pod:4506 ../src/guestfs-actions.pod:4564
5962 #: ../src/guestfs-actions.pod:4637 ../src/guestfs-actions.pod:4668
5963 #: ../src/guestfs-actions.pod:4687 ../src/guestfs-actions.pod:4706
5964 #: ../src/guestfs-actions.pod:4718 ../src/guestfs-actions.pod:4735
5965 #: ../src/guestfs-actions.pod:4748 ../src/guestfs-actions.pod:4763
5966 #: ../src/guestfs-actions.pod:4778 ../src/guestfs-actions.pod:4813
5967 #: ../src/guestfs-actions.pod:4846 ../src/guestfs-actions.pod:4883
5968 #: ../src/guestfs-actions.pod:4903 ../src/guestfs-actions.pod:4917
5969 #: ../src/guestfs-actions.pod:4934 ../src/guestfs-actions.pod:4983
5970 #: ../src/guestfs-actions.pod:5020 ../src/guestfs-actions.pod:5034
5971 #: ../src/guestfs-actions.pod:5062 ../src/guestfs-actions.pod:5079
5972 #: ../src/guestfs-actions.pod:5097 ../src/guestfs-actions.pod:5231
5973 #: ../src/guestfs-actions.pod:5288 ../src/guestfs-actions.pod:5310
5974 #: ../src/guestfs-actions.pod:5328 ../src/guestfs-actions.pod:5360
5975 #: ../src/guestfs-actions.pod:5426 ../src/guestfs-actions.pod:5443
5976 #: ../src/guestfs-actions.pod:5456 ../src/guestfs-actions.pod:5470
5977 #: ../src/guestfs-actions.pod:5759 ../src/guestfs-actions.pod:5778
5978 #: ../src/guestfs-actions.pod:5797 ../src/guestfs-actions.pod:5809
5979 #: ../src/guestfs-actions.pod:5821 ../src/guestfs-actions.pod:5835
5980 #: ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:5861
5981 #: ../src/guestfs-actions.pod:5877 ../src/guestfs-actions.pod:5898
5982 #: ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:5936
5983 #: ../src/guestfs-actions.pod:5966 ../src/guestfs-actions.pod:5982
5984 #: ../src/guestfs-actions.pod:6005 ../src/guestfs-actions.pod:6023
5985 #: ../src/guestfs-actions.pod:6042 ../src/guestfs-actions.pod:6063
5986 #: ../src/guestfs-actions.pod:6082 ../src/guestfs-actions.pod:6099
5987 #: ../src/guestfs-actions.pod:6127 ../src/guestfs-actions.pod:6151
5988 #: ../src/guestfs-actions.pod:6170 ../src/guestfs-actions.pod:6194
5989 #: ../src/guestfs-actions.pod:6213 ../src/guestfs-actions.pod:6228
5990 #: ../src/guestfs-actions.pod:6247 ../src/guestfs-actions.pod:6284
5991 #: ../src/guestfs-actions.pod:6314 ../src/guestfs-actions.pod:6347
5992 #: ../src/guestfs-actions.pod:6469 ../src/guestfs-actions.pod:6590
5993 #: ../src/guestfs-actions.pod:6602 ../src/guestfs-actions.pod:6615
5994 #: ../src/guestfs-actions.pod:6628 ../src/guestfs-actions.pod:6650
5995 #: ../src/guestfs-actions.pod:6663 ../src/guestfs-actions.pod:6676
5996 #: ../src/guestfs-actions.pod:6689 ../src/guestfs-actions.pod:6704
5997 #: ../src/guestfs-actions.pod:6763 ../src/guestfs-actions.pod:6780
5998 #: ../src/guestfs-actions.pod:6796 ../src/guestfs-actions.pod:6812
5999 #: ../src/guestfs-actions.pod:6829 ../src/guestfs-actions.pod:6842
6000 #: ../src/guestfs-actions.pod:6862 ../src/guestfs-actions.pod:6898
6001 #: ../src/guestfs-actions.pod:6912 ../src/guestfs-actions.pod:6953
6002 #: ../src/guestfs-actions.pod:6966 ../src/guestfs-actions.pod:6984
6003 #: ../src/guestfs-actions.pod:7018 ../src/guestfs-actions.pod:7054
6004 #: ../src/guestfs-actions.pod:7173 ../src/guestfs-actions.pod:7191
6005 #: ../src/guestfs-actions.pod:7205 ../src/guestfs-actions.pod:7260
6006 #: ../src/guestfs-actions.pod:7273 ../src/guestfs-actions.pod:7318
6007 #: ../src/guestfs-actions.pod:7351 ../src/guestfs-actions.pod:7412
6008 #: ../src/guestfs-actions.pod:7438 ../src/guestfs-actions.pod:7505
6009 #: ../src/guestfs-actions.pod:7524 ../src/guestfs-actions.pod:7553
6010 msgid "This function returns 0 on success or -1 on error."
6011 msgstr ""
6012
6013 #. type: textblock
6014 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:254
6015 #: ../src/guestfs-actions.pod:275 ../fish/guestfish-actions.pod:28
6016 #: ../fish/guestfish-actions.pod:163 ../fish/guestfish-actions.pod:177
6017 msgid ""
6018 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
6019 "instead."
6020 msgstr ""
6021
6022 #. type: textblock
6023 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257
6024 #: ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1454
6025 #: ../src/guestfs-actions.pod:1947 ../src/guestfs-actions.pod:1968
6026 #: ../src/guestfs-actions.pod:4511 ../src/guestfs-actions.pod:4818
6027 #: ../src/guestfs-actions.pod:6292 ../src/guestfs-actions.pod:6322
6028 #: ../src/guestfs-actions.pod:6355 ../src/guestfs-actions.pod:6414
6029 #: ../src/guestfs-actions.pod:7356 ../src/guestfs-actions.pod:7446
6030 #: ../src/guestfs-actions.pod:7616 ../fish/guestfish-actions.pod:31
6031 #: ../fish/guestfish-actions.pod:166 ../fish/guestfish-actions.pod:180
6032 #: ../fish/guestfish-actions.pod:961 ../fish/guestfish-actions.pod:1321
6033 #: ../fish/guestfish-actions.pod:1335 ../fish/guestfish-actions.pod:3038
6034 #: ../fish/guestfish-actions.pod:3235 ../fish/guestfish-actions.pod:4220
6035 #: ../fish/guestfish-actions.pod:4243 ../fish/guestfish-actions.pod:4265
6036 #: ../fish/guestfish-actions.pod:4303 ../fish/guestfish-actions.pod:4944
6037 #: ../fish/guestfish-actions.pod:5042
6038 msgid ""
6039 "Deprecated functions will not be removed from the API, but the fact that "
6040 "they are deprecated indicates that there are problems with correct use of "
6041 "these functions."
6042 msgstr ""
6043
6044 #. type: textblock
6045 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
6046 #: ../src/guestfs-actions.pod:1106 ../src/guestfs-actions.pod:1919
6047 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2120
6048 #: ../src/guestfs-actions.pod:3531 ../src/guestfs-actions.pod:3551
6049 #: ../src/guestfs-actions.pod:4822 ../src/guestfs-actions.pod:5984
6050 #: ../src/guestfs-actions.pod:6101 ../src/guestfs-actions.pod:6215
6051 #: ../src/guestfs-actions.pod:6706 ../src/guestfs-actions.pod:6831
6052 #: ../src/guestfs-actions.pod:7360
6053 msgid "(Added in 0.3)"
6054 msgstr ""
6055
6056 #. type: =head2
6057 #: ../src/guestfs-actions.pod:41
6058 msgid "guestfs_add_domain"
6059 msgstr ""
6060
6061 #. type: verbatim
6062 #: ../src/guestfs-actions.pod:43
6063 #, no-wrap
6064 msgid ""
6065 " int\n"
6066 " guestfs_add_domain (guestfs_h *g,\n"
6067 "                     const char *dom,\n"
6068 "                     ...);\n"
6069 "\n"
6070 msgstr ""
6071
6072 #. type: textblock
6073 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
6074 #: ../src/guestfs-actions.pod:2750 ../src/guestfs-actions.pod:4525
6075 #: ../src/guestfs-actions.pod:4832
6076 msgid ""
6077 "You may supply a list of optional arguments to this call.  Use zero or more "
6078 "of the following pairs of parameters, and terminate the list with C<-1> on "
6079 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
6080 msgstr ""
6081
6082 #. type: verbatim
6083 #: ../src/guestfs-actions.pod:53
6084 #, no-wrap
6085 msgid ""
6086 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
6087 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
6088 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
6089 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
6090 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
6091 "\n"
6092 msgstr ""
6093
6094 #. type: textblock
6095 #: ../src/guestfs-actions.pod:59
6096 msgid ""
6097 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6098 "It works by connecting to libvirt, requesting the domain and domain XML from "
6099 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
6100 "one."
6101 msgstr ""
6102
6103 #. type: textblock
6104 #: ../src/guestfs-actions.pod:64 ../fish/guestfish-actions.pod:46
6105 msgid ""
6106 "The number of disks added is returned.  This operation is atomic: if an "
6107 "error is returned, then no disks are added."
6108 msgstr ""
6109
6110 #. type: textblock
6111 #: ../src/guestfs-actions.pod:67 ../fish/guestfish-actions.pod:49
6112 msgid ""
6113 "This function does some minimal checks to make sure the libvirt domain is "
6114 "not running (unless C<readonly> is true).  In a future version we will try "
6115 "to acquire the libvirt lock on each disk."
6116 msgstr ""
6117
6118 #. type: textblock
6119 #: ../src/guestfs-actions.pod:71 ../fish/guestfish-actions.pod:53
6120 msgid ""
6121 "Disks must be accessible locally.  This often means that adding disks from a "
6122 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6123 "unless those disks are accessible via the same device path locally too."
6124 msgstr ""
6125
6126 #. type: textblock
6127 #: ../src/guestfs-actions.pod:76 ../fish/guestfish-actions.pod:58
6128 msgid ""
6129 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6130 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
6131 "libvirt URI (or one set through an environment variable, see the libvirt "
6132 "documentation for full details)."
6133 msgstr ""
6134
6135 #. type: textblock
6136 #: ../src/guestfs-actions.pod:82 ../fish/guestfish-actions.pod:64
6137 msgid ""
6138 "The optional C<live> flag controls whether this call will try to connect to "
6139 "a running virtual machine C<guestfsd> process if it sees a suitable "
6140 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6141 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6142 "DAEMONS> for more information."
6143 msgstr ""
6144
6145 #. type: textblock
6146 #: ../src/guestfs-actions.pod:89 ../fish/guestfish-actions.pod:71
6147 msgid ""
6148 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6149 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6150 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6151 "as usual."
6152 msgstr ""
6153
6154 #. type: textblock
6155 #: ../src/guestfs-actions.pod:94
6156 msgid ""
6157 "The other optional parameters are passed directly through to "
6158 "C<guestfs_add_drive_opts>."
6159 msgstr ""
6160
6161 #. type: textblock
6162 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
6163 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:693
6164 #: ../src/guestfs-actions.pod:724 ../src/guestfs-actions.pod:742
6165 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:1321
6166 #: ../src/guestfs-actions.pod:1677 ../src/guestfs-actions.pod:1880
6167 #: ../src/guestfs-actions.pod:1989 ../src/guestfs-actions.pod:2029
6168 #: ../src/guestfs-actions.pod:2084 ../src/guestfs-actions.pod:2107
6169 #: ../src/guestfs-actions.pod:2400 ../src/guestfs-actions.pod:2866
6170 #: ../src/guestfs-actions.pod:2884 ../src/guestfs-actions.pod:5006
6171 #: ../src/guestfs-actions.pod:5134 ../src/guestfs-actions.pod:5540
6172 #: ../src/guestfs-actions.pod:5566 ../src/guestfs-actions.pod:6939
6173 #: ../src/guestfs-actions.pod:7371 ../src/guestfs-actions.pod:7384
6174 #: ../src/guestfs-actions.pod:7397
6175 msgid "On error this function returns -1."
6176 msgstr ""
6177
6178 #. type: textblock
6179 #: ../src/guestfs-actions.pod:99
6180 msgid "(Added in 1.7.4)"
6181 msgstr ""
6182
6183 #. type: =head2
6184 #: ../src/guestfs-actions.pod:101
6185 msgid "guestfs_add_domain_va"
6186 msgstr ""
6187
6188 #. type: verbatim
6189 #: ../src/guestfs-actions.pod:103
6190 #, no-wrap
6191 msgid ""
6192 " int\n"
6193 " guestfs_add_domain_va (guestfs_h *g,\n"
6194 "                        const char *dom,\n"
6195 "                        va_list args);\n"
6196 "\n"
6197 msgstr ""
6198
6199 #. type: textblock
6200 #: ../src/guestfs-actions.pod:108
6201 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
6202 msgstr ""
6203
6204 #. type: textblock
6205 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
6206 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
6207 #: ../src/guestfs-actions.pod:2832 ../src/guestfs-actions.pod:2844
6208 #: ../src/guestfs-actions.pod:4578 ../src/guestfs-actions.pod:4590
6209 #: ../src/guestfs-actions.pod:4858 ../src/guestfs-actions.pod:4870
6210 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
6211 msgstr ""
6212
6213 #. type: =head2
6214 #: ../src/guestfs-actions.pod:112
6215 msgid "guestfs_add_domain_argv"
6216 msgstr ""
6217
6218 #. type: verbatim
6219 #: ../src/guestfs-actions.pod:114
6220 #, no-wrap
6221 msgid ""
6222 " int\n"
6223 " guestfs_add_domain_argv (guestfs_h *g,\n"
6224 "                          const char *dom,\n"
6225 "                          const struct guestfs_add_domain_argv *optargs);\n"
6226 "\n"
6227 msgstr ""
6228
6229 #. type: textblock
6230 #: ../src/guestfs-actions.pod:119
6231 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
6232 msgstr ""
6233
6234 #. type: =head2
6235 #: ../src/guestfs-actions.pod:123
6236 msgid "guestfs_add_drive"
6237 msgstr ""
6238
6239 #. type: verbatim
6240 #: ../src/guestfs-actions.pod:125
6241 #, no-wrap
6242 msgid ""
6243 " int\n"
6244 " guestfs_add_drive (guestfs_h *g,\n"
6245 "                    const char *filename);\n"
6246 "\n"
6247 msgstr ""
6248
6249 #. type: textblock
6250 #: ../src/guestfs-actions.pod:129
6251 msgid ""
6252 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
6253 "optional parameters, so the disk is added writable, with the format being "
6254 "detected automatically."
6255 msgstr ""
6256
6257 #. type: textblock
6258 #: ../src/guestfs-actions.pod:133
6259 msgid ""
6260 "Automatic detection of the format opens you up to a potential security hole "
6261 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6262 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6263 "you should think about replacing calls to this function with calls to "
6264 "C<guestfs_add_drive_opts>, and specifying the format."
6265 msgstr ""
6266
6267 #. type: =head2
6268 #: ../src/guestfs-actions.pod:144
6269 msgid "guestfs_add_drive_opts"
6270 msgstr ""
6271
6272 #. type: verbatim
6273 #: ../src/guestfs-actions.pod:146
6274 #, no-wrap
6275 msgid ""
6276 " int\n"
6277 " guestfs_add_drive_opts (guestfs_h *g,\n"
6278 "                         const char *filename,\n"
6279 "                         ...);\n"
6280 "\n"
6281 msgstr ""
6282
6283 #. type: verbatim
6284 #: ../src/guestfs-actions.pod:156
6285 #, no-wrap
6286 msgid ""
6287 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
6288 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
6289 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
6290 "\n"
6291 msgstr ""
6292
6293 #. type: textblock
6294 #: ../src/guestfs-actions.pod:160 ../fish/guestfish-actions.pod:102
6295 msgid ""
6296 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6297 "The first time you call this function, the disk appears as C</dev/sda>, the "
6298 "second time as C</dev/sdb>, and so on."
6299 msgstr ""
6300
6301 #. type: textblock
6302 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:107
6303 msgid ""
6304 "You don't necessarily need to be root when using libguestfs.  However you "
6305 "obviously do need sufficient permissions to access the filename for whatever "
6306 "operations you want to perform (ie. read access if you just want to read the "
6307 "image or write access if you want to modify the image)."
6308 msgstr ""
6309
6310 #. type: textblock
6311 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:113
6312 msgid "This call checks that C<filename> exists."
6313 msgstr ""
6314
6315 #. type: textblock
6316 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4536
6317 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3049
6318 msgid "The optional arguments are:"
6319 msgstr ""
6320
6321 #. type: =item
6322 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:119
6323 msgid "C<readonly>"
6324 msgstr "C<readonly>"
6325
6326 #. type: textblock
6327 #: ../src/guestfs-actions.pod:179 ../fish/guestfish-actions.pod:121
6328 msgid ""
6329 "If true then the image is treated as read-only.  Writes are still allowed, "
6330 "but they are stored in a temporary snapshot overlay which is discarded at "
6331 "the end.  The disk that you add is not modified."
6332 msgstr ""
6333
6334 #. type: =item
6335 #: ../src/guestfs-actions.pod:183 ../fish/guestfish-actions.pod:125
6336 msgid "C<format>"
6337 msgstr "C<format>"
6338
6339 #. type: textblock
6340 #: ../src/guestfs-actions.pod:185
6341 msgid ""
6342 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
6343 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
6344 "Possible formats include C<raw> and C<qcow2>."
6345 msgstr ""
6346
6347 #. type: textblock
6348 #: ../src/guestfs-actions.pod:189 ../fish/guestfish-actions.pod:131
6349 msgid ""
6350 "Automatic detection of the format opens you up to a potential security hole "
6351 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6352 "RHBZ#642934.  Specifying the format closes this security hole."
6353 msgstr ""
6354
6355 #. type: =item
6356 #: ../src/guestfs-actions.pod:194 ../fish/guestfish-actions.pod:136
6357 msgid "C<iface>"
6358 msgstr "C<iface>"
6359
6360 #. type: textblock
6361 #: ../src/guestfs-actions.pod:196
6362 msgid ""
6363 "This rarely-used option lets you emulate the behaviour of the deprecated "
6364 "C<guestfs_add_drive_with_if> call (q.v.)"
6365 msgstr ""
6366
6367 #. type: textblock
6368 #: ../src/guestfs-actions.pod:203
6369 msgid "(Added in 1.5.23)"
6370 msgstr ""
6371
6372 #. type: =head2
6373 #: ../src/guestfs-actions.pod:205
6374 msgid "guestfs_add_drive_opts_va"
6375 msgstr ""
6376
6377 #. type: verbatim
6378 #: ../src/guestfs-actions.pod:207
6379 #, no-wrap
6380 msgid ""
6381 " int\n"
6382 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
6383 "                            const char *filename,\n"
6384 "                            va_list args);\n"
6385 "\n"
6386 msgstr ""
6387
6388 #. type: textblock
6389 #: ../src/guestfs-actions.pod:212
6390 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
6391 msgstr ""
6392
6393 #. type: =head2
6394 #: ../src/guestfs-actions.pod:216
6395 msgid "guestfs_add_drive_opts_argv"
6396 msgstr ""
6397
6398 #. type: verbatim
6399 #: ../src/guestfs-actions.pod:218
6400 #, no-wrap
6401 msgid ""
6402 " int\n"
6403 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
6404 "                              const char *filename,\n"
6405 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
6406 "\n"
6407 msgstr ""
6408
6409 #. type: textblock
6410 #: ../src/guestfs-actions.pod:223
6411 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
6412 msgstr ""
6413
6414 #. type: =head2
6415 #: ../src/guestfs-actions.pod:227
6416 msgid "guestfs_add_drive_ro"
6417 msgstr ""
6418
6419 #. type: verbatim
6420 #: ../src/guestfs-actions.pod:229
6421 #, no-wrap
6422 msgid ""
6423 " int\n"
6424 " guestfs_add_drive_ro (guestfs_h *g,\n"
6425 "                       const char *filename);\n"
6426 "\n"
6427 msgstr ""
6428
6429 #. type: textblock
6430 #: ../src/guestfs-actions.pod:233
6431 msgid ""
6432 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
6433 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
6434 "disk is added read-only, with the format being detected automatically."
6435 msgstr ""
6436
6437 #. type: textblock
6438 #: ../src/guestfs-actions.pod:240
6439 msgid "(Added in 1.0.38)"
6440 msgstr ""
6441
6442 #. type: =head2
6443 #: ../src/guestfs-actions.pod:242
6444 msgid "guestfs_add_drive_ro_with_if"
6445 msgstr ""
6446
6447 #. type: verbatim
6448 #: ../src/guestfs-actions.pod:244
6449 #, no-wrap
6450 msgid ""
6451 " int\n"
6452 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
6453 "                               const char *filename,\n"
6454 "                               const char *iface);\n"
6455 "\n"
6456 msgstr ""
6457
6458 #. type: textblock
6459 #: ../src/guestfs-actions.pod:249
6460 msgid ""
6461 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
6462 "QEMU interface emulation to use at run time."
6463 msgstr ""
6464
6465 #. type: textblock
6466 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
6467 #: ../src/guestfs-actions.pod:2359
6468 msgid "(Added in 1.0.84)"
6469 msgstr ""
6470
6471 #. type: =head2
6472 #: ../src/guestfs-actions.pod:263
6473 msgid "guestfs_add_drive_with_if"
6474 msgstr ""
6475
6476 #. type: verbatim
6477 #: ../src/guestfs-actions.pod:265
6478 #, no-wrap
6479 msgid ""
6480 " int\n"
6481 " guestfs_add_drive_with_if (guestfs_h *g,\n"
6482 "                            const char *filename,\n"
6483 "                            const char *iface);\n"
6484 "\n"
6485 msgstr ""
6486
6487 #. type: textblock
6488 #: ../src/guestfs-actions.pod:270
6489 msgid ""
6490 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
6491 "QEMU interface emulation to use at run time."
6492 msgstr ""
6493
6494 #. type: =head2
6495 #: ../src/guestfs-actions.pod:284
6496 msgid "guestfs_aug_clear"
6497 msgstr ""
6498
6499 #. type: verbatim
6500 #: ../src/guestfs-actions.pod:286
6501 #, no-wrap
6502 msgid ""
6503 " int\n"
6504 " guestfs_aug_clear (guestfs_h *g,\n"
6505 "                    const char *augpath);\n"
6506 "\n"
6507 msgstr ""
6508
6509 #. type: textblock
6510 #: ../src/guestfs-actions.pod:290 ../fish/guestfish-actions.pod:188
6511 msgid ""
6512 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6513 "L<augtool(1)> C<clear> command."
6514 msgstr ""
6515
6516 #. type: textblock
6517 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2109
6518 msgid "(Added in 1.3.4)"
6519 msgstr ""
6520
6521 #. type: =head2
6522 #: ../src/guestfs-actions.pod:297
6523 msgid "guestfs_aug_close"
6524 msgstr ""
6525
6526 #. type: verbatim
6527 #: ../src/guestfs-actions.pod:299
6528 #, no-wrap
6529 msgid ""
6530 " int\n"
6531 " guestfs_aug_close (guestfs_h *g);\n"
6532 "\n"
6533 msgstr ""
6534
6535 #. type: textblock
6536 #: ../src/guestfs-actions.pod:302
6537 msgid ""
6538 "Close the current Augeas handle and free up any resources used by it.  After "
6539 "calling this, you have to call C<guestfs_aug_init> again before you can use "
6540 "any other Augeas functions."
6541 msgstr ""
6542
6543 #. type: textblock
6544 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
6545 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
6546 #: ../src/guestfs-actions.pod:424 ../src/guestfs-actions.pod:444
6547 #: ../src/guestfs-actions.pod:458 ../src/guestfs-actions.pod:489
6548 #: ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:517
6549 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:549
6550 #: ../src/guestfs-actions.pod:5617
6551 msgid "(Added in 0.7)"
6552 msgstr ""
6553
6554 #. type: =head2
6555 #: ../src/guestfs-actions.pod:311
6556 msgid "guestfs_aug_defnode"
6557 msgstr ""
6558
6559 #. type: verbatim
6560 #: ../src/guestfs-actions.pod:313
6561 #, no-wrap
6562 msgid ""
6563 " struct guestfs_int_bool *\n"
6564 " guestfs_aug_defnode (guestfs_h *g,\n"
6565 "                      const char *name,\n"
6566 "                      const char *expr,\n"
6567 "                      const char *val);\n"
6568 "\n"
6569 msgstr ""
6570
6571 #. type: textblock
6572 #: ../src/guestfs-actions.pod:319 ../fish/guestfish-actions.pod:204
6573 msgid ""
6574 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6575 msgstr ""
6576
6577 #. type: textblock
6578 #: ../src/guestfs-actions.pod:322
6579 msgid ""
6580 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6581 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
6582 "containing that single node."
6583 msgstr ""
6584
6585 #. type: textblock
6586 #: ../src/guestfs-actions.pod:326 ../fish/guestfish-actions.pod:211
6587 msgid ""
6588 "On success this returns a pair containing the number of nodes in the "
6589 "nodeset, and a boolean flag if a node was created."
6590 msgstr ""
6591
6592 #. type: textblock
6593 #: ../src/guestfs-actions.pod:330
6594 msgid ""
6595 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
6596 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
6597 msgstr ""
6598
6599 #. type: =head2
6600 #: ../src/guestfs-actions.pod:336
6601 msgid "guestfs_aug_defvar"
6602 msgstr ""
6603
6604 #. type: verbatim
6605 #: ../src/guestfs-actions.pod:338
6606 #, no-wrap
6607 msgid ""
6608 " int\n"
6609 " guestfs_aug_defvar (guestfs_h *g,\n"
6610 "                     const char *name,\n"
6611 "                     const char *expr);\n"
6612 "\n"
6613 msgstr ""
6614
6615 #. type: textblock
6616 #: ../src/guestfs-actions.pod:343 ../fish/guestfish-actions.pod:219
6617 msgid ""
6618 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6619 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6620 msgstr ""
6621
6622 #. type: textblock
6623 #: ../src/guestfs-actions.pod:347 ../fish/guestfish-actions.pod:223
6624 msgid ""
6625 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6626 "evaluates to something which is not a nodeset."
6627 msgstr ""
6628
6629 #. type: =head2
6630 #: ../src/guestfs-actions.pod:354
6631 msgid "guestfs_aug_get"
6632 msgstr ""
6633
6634 #. type: verbatim
6635 #: ../src/guestfs-actions.pod:356
6636 #, no-wrap
6637 msgid ""
6638 " char *\n"
6639 " guestfs_aug_get (guestfs_h *g,\n"
6640 "                  const char *augpath);\n"
6641 "\n"
6642 msgstr ""
6643
6644 #. type: textblock
6645 #: ../src/guestfs-actions.pod:360 ../fish/guestfish-actions.pod:230
6646 msgid ""
6647 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6648 "node, the C<value> is returned."
6649 msgstr ""
6650
6651 #. type: textblock
6652 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:863
6653 #: ../src/guestfs-actions.pod:881 ../src/guestfs-actions.pod:941
6654 #: ../src/guestfs-actions.pod:957 ../src/guestfs-actions.pod:1060
6655 #: ../src/guestfs-actions.pod:1190 ../src/guestfs-actions.pod:1207
6656 #: ../src/guestfs-actions.pod:1226 ../src/guestfs-actions.pod:1360
6657 #: ../src/guestfs-actions.pod:1548 ../src/guestfs-actions.pod:1660
6658 #: ../src/guestfs-actions.pod:1823 ../src/guestfs-actions.pod:1840
6659 #: ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:1941
6660 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:2132
6661 #: ../src/guestfs-actions.pod:2324 ../src/guestfs-actions.pod:2528
6662 #: ../src/guestfs-actions.pod:2618 ../src/guestfs-actions.pod:2720
6663 #: ../src/guestfs-actions.pod:2737 ../src/guestfs-actions.pod:2949
6664 #: ../src/guestfs-actions.pod:2977 ../src/guestfs-actions.pod:2998
6665 #: ../src/guestfs-actions.pod:3032 ../src/guestfs-actions.pod:3089
6666 #: ../src/guestfs-actions.pod:3109 ../src/guestfs-actions.pod:3127
6667 #: ../src/guestfs-actions.pod:3722 ../src/guestfs-actions.pod:4072
6668 #: ../src/guestfs-actions.pod:4242 ../src/guestfs-actions.pod:4352
6669 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5345
6670 #: ../src/guestfs-actions.pod:5515 ../src/guestfs-actions.pod:5693
6671 #: ../src/guestfs-actions.pod:5742 ../src/guestfs-actions.pod:6375
6672 #: ../src/guestfs-actions.pod:6391 ../src/guestfs-actions.pod:6408
6673 #: ../src/guestfs-actions.pod:6439 ../src/guestfs-actions.pod:7113
6674 #: ../src/guestfs-actions.pod:7132 ../src/guestfs-actions.pod:7150
6675 #: ../src/guestfs-actions.pod:7330 ../src/guestfs-actions.pod:7610
6676 msgid ""
6677 "This function returns a string, or NULL on error.  I<The caller must free "
6678 "the returned string after use>."
6679 msgstr ""
6680
6681 #. type: =head2
6682 #: ../src/guestfs-actions.pod:368
6683 msgid "guestfs_aug_init"
6684 msgstr ""
6685
6686 #. type: verbatim
6687 #: ../src/guestfs-actions.pod:370
6688 #, no-wrap
6689 msgid ""
6690 " int\n"
6691 " guestfs_aug_init (guestfs_h *g,\n"
6692 "                   const char *root,\n"
6693 "                   int flags);\n"
6694 "\n"
6695 msgstr ""
6696
6697 #. type: textblock
6698 #: ../src/guestfs-actions.pod:375 ../fish/guestfish-actions.pod:237
6699 msgid ""
6700 "Create a new Augeas handle for editing configuration files.  If there was "
6701 "any previous Augeas handle associated with this guestfs session, then it is "
6702 "closed."
6703 msgstr ""
6704
6705 #. type: textblock
6706 #: ../src/guestfs-actions.pod:379
6707 msgid "You must call this before using any other C<guestfs_aug_*> commands."
6708 msgstr ""
6709
6710 #. type: textblock
6711 #: ../src/guestfs-actions.pod:382 ../fish/guestfish-actions.pod:244
6712 msgid ""
6713 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6714 msgstr ""
6715
6716 #. type: textblock
6717 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:247
6718 msgid ""
6719 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6720 "logical I<or> of the following integers:"
6721 msgstr ""
6722
6723 #. type: =item
6724 #: ../src/guestfs-actions.pod:391 ../fish/guestfish-actions.pod:253
6725 msgid "C<AUG_SAVE_BACKUP> = 1"
6726 msgstr "C<AUG_SAVE_BACKUP> = 1"
6727
6728 #. type: textblock
6729 #: ../src/guestfs-actions.pod:393 ../fish/guestfish-actions.pod:255
6730 msgid "Keep the original file with a C<.augsave> extension."
6731 msgstr ""
6732
6733 #. type: =item
6734 #: ../src/guestfs-actions.pod:395 ../fish/guestfish-actions.pod:257
6735 msgid "C<AUG_SAVE_NEWFILE> = 2"
6736 msgstr "C<AUG_SAVE_NEWFILE> = 2"
6737
6738 #. type: textblock
6739 #: ../src/guestfs-actions.pod:397 ../fish/guestfish-actions.pod:259
6740 msgid ""
6741 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6742 "original.  Overrides C<AUG_SAVE_BACKUP>."
6743 msgstr ""
6744
6745 #. type: =item
6746 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:262
6747 msgid "C<AUG_TYPE_CHECK> = 4"
6748 msgstr "C<AUG_TYPE_CHECK> = 4"
6749
6750 #. type: textblock
6751 #: ../src/guestfs-actions.pod:402 ../fish/guestfish-actions.pod:264
6752 msgid "Typecheck lenses (can be expensive)."
6753 msgstr ""
6754
6755 #. type: =item
6756 #: ../src/guestfs-actions.pod:404 ../fish/guestfish-actions.pod:266
6757 msgid "C<AUG_NO_STDINC> = 8"
6758 msgstr "C<AUG_NO_STDINC> = 8"
6759
6760 #. type: textblock
6761 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:268
6762 msgid "Do not use standard load path for modules."
6763 msgstr ""
6764
6765 #. type: =item
6766 #: ../src/guestfs-actions.pod:408 ../fish/guestfish-actions.pod:270
6767 msgid "C<AUG_SAVE_NOOP> = 16"
6768 msgstr "C<AUG_SAVE_NOOP> = 16"
6769
6770 #. type: textblock
6771 #: ../src/guestfs-actions.pod:410 ../fish/guestfish-actions.pod:272
6772 msgid "Make save a no-op, just record what would have been changed."
6773 msgstr ""
6774
6775 #. type: =item
6776 #: ../src/guestfs-actions.pod:412 ../fish/guestfish-actions.pod:274
6777 msgid "C<AUG_NO_LOAD> = 32"
6778 msgstr "C<AUG_NO_LOAD> = 32"
6779
6780 #. type: textblock
6781 #: ../src/guestfs-actions.pod:414
6782 msgid "Do not load the tree in C<guestfs_aug_init>."
6783 msgstr ""
6784
6785 #. type: textblock
6786 #: ../src/guestfs-actions.pod:418
6787 msgid "To close the handle, you can call C<guestfs_aug_close>."
6788 msgstr ""
6789
6790 #. type: textblock
6791 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:282
6792 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6793 msgstr ""
6794
6795 #. type: =head2
6796 #: ../src/guestfs-actions.pod:426
6797 msgid "guestfs_aug_insert"
6798 msgstr ""
6799
6800 #. type: verbatim
6801 #: ../src/guestfs-actions.pod:428
6802 #, no-wrap
6803 msgid ""
6804 " int\n"
6805 " guestfs_aug_insert (guestfs_h *g,\n"
6806 "                     const char *augpath,\n"
6807 "                     const char *label,\n"
6808 "                     int before);\n"
6809 "\n"
6810 msgstr ""
6811
6812 #. type: textblock
6813 #: ../src/guestfs-actions.pod:434 ../fish/guestfish-actions.pod:288
6814 msgid ""
6815 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6816 "or after C<path> (depending on the boolean flag C<before>)."
6817 msgstr ""
6818
6819 #. type: textblock
6820 #: ../src/guestfs-actions.pod:438 ../fish/guestfish-actions.pod:292
6821 msgid ""
6822 "C<path> must match exactly one existing node in the tree, and C<label> must "
6823 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6824 msgstr ""
6825
6826 #. type: =head2
6827 #: ../src/guestfs-actions.pod:446
6828 msgid "guestfs_aug_load"
6829 msgstr ""
6830
6831 #. type: verbatim
6832 #: ../src/guestfs-actions.pod:448
6833 #, no-wrap
6834 msgid ""
6835 " int\n"
6836 " guestfs_aug_load (guestfs_h *g);\n"
6837 "\n"
6838 msgstr ""
6839
6840 #. type: textblock
6841 #: ../src/guestfs-actions.pod:451 ../fish/guestfish-actions.pod:300
6842 msgid "Load files into the tree."
6843 msgstr "Завантажити файли до ієрархії."
6844
6845 #. type: textblock
6846 #: ../src/guestfs-actions.pod:453 ../fish/guestfish-actions.pod:302
6847 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6848 msgstr ""
6849
6850 #. type: =head2
6851 #: ../src/guestfs-actions.pod:460
6852 msgid "guestfs_aug_ls"
6853 msgstr ""
6854
6855 #. type: verbatim
6856 #: ../src/guestfs-actions.pod:462
6857 #, no-wrap
6858 msgid ""
6859 " char **\n"
6860 " guestfs_aug_ls (guestfs_h *g,\n"
6861 "                 const char *augpath);\n"
6862 "\n"
6863 msgstr ""
6864
6865 #. type: textblock
6866 #: ../src/guestfs-actions.pod:466
6867 msgid ""
6868 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
6869 "sorting the resulting nodes into alphabetical order."
6870 msgstr ""
6871
6872 #. type: textblock
6873 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:485
6874 #: ../src/guestfs-actions.pod:631 ../src/guestfs-actions.pod:1079
6875 #: ../src/guestfs-actions.pod:1375 ../src/guestfs-actions.pod:1394
6876 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1516
6877 #: ../src/guestfs-actions.pod:1762 ../src/guestfs-actions.pod:2204
6878 #: ../src/guestfs-actions.pod:2220 ../src/guestfs-actions.pod:2239
6879 #: ../src/guestfs-actions.pod:2282 ../src/guestfs-actions.pod:2306
6880 #: ../src/guestfs-actions.pod:2377 ../src/guestfs-actions.pod:2426
6881 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:3049
6882 #: ../src/guestfs-actions.pod:3317 ../src/guestfs-actions.pod:3627
6883 #: ../src/guestfs-actions.pod:3642 ../src/guestfs-actions.pod:3704
6884 #: ../src/guestfs-actions.pod:3809 ../src/guestfs-actions.pod:4214
6885 #: ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:5487
6886 #: ../src/guestfs-actions.pod:5613 ../src/guestfs-actions.pod:5727
6887 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6516
6888 #: ../src/guestfs-actions.pod:6571 ../src/guestfs-actions.pod:6717
6889 #: ../src/guestfs-actions.pod:6741 ../src/guestfs-actions.pod:7223
6890 #: ../src/guestfs-actions.pod:7243 ../src/guestfs-actions.pod:7290
6891 #: ../src/guestfs-actions.pod:7462 ../src/guestfs-actions.pod:7481
6892 #: ../src/guestfs-actions.pod:7567 ../src/guestfs-actions.pod:7586
6893 #: ../src/guestfs-actions.pod:7632 ../src/guestfs-actions.pod:7651
6894 msgid ""
6895 "This function returns a NULL-terminated array of strings (like L<environ(3)"
6896 ">), or NULL if there was an error.  I<The caller must free the strings and "
6897 "the array after use>."
6898 msgstr ""
6899
6900 #. type: textblock
6901 #: ../src/guestfs-actions.pod:473 ../src/guestfs-actions.pod:1004
6902 #: ../src/guestfs-actions.pod:1022 ../src/guestfs-actions.pod:1432
6903 #: ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:3426
6904 #: ../src/guestfs-actions.pod:4055 ../src/guestfs-actions.pod:4105
6905 #: ../src/guestfs-actions.pod:4292 ../src/guestfs-actions.pod:4325
6906 #: ../src/guestfs-actions.pod:4488 ../src/guestfs-actions.pod:4971
6907 #: ../src/guestfs-actions.pod:5428 ../src/guestfs-actions.pod:5823
6908 #: ../src/guestfs-actions.pod:5837 ../src/guestfs-actions.pod:5849
6909 #: ../src/guestfs-actions.pod:6296 ../src/guestfs-actions.pod:6955
6910 #: ../src/guestfs-actions.pod:6968 ../src/guestfs-actions.pod:7207
6911 #: ../src/guestfs-actions.pod:7450
6912 msgid "(Added in 0.8)"
6913 msgstr ""
6914
6915 #. type: =head2
6916 #: ../src/guestfs-actions.pod:475
6917 msgid "guestfs_aug_match"
6918 msgstr ""
6919
6920 #. type: verbatim
6921 #: ../src/guestfs-actions.pod:477
6922 #, no-wrap
6923 msgid ""
6924 " char **\n"
6925 " guestfs_aug_match (guestfs_h *g,\n"
6926 "                    const char *augpath);\n"
6927 "\n"
6928 msgstr ""
6929
6930 #. type: textblock
6931 #: ../src/guestfs-actions.pod:481 ../fish/guestfish-actions.pod:316
6932 msgid ""
6933 "Returns a list of paths which match the path expression C<path>.  The "
6934 "returned paths are sufficiently qualified so that they match exactly one "
6935 "node in the current tree."
6936 msgstr ""
6937
6938 #. type: =head2
6939 #: ../src/guestfs-actions.pod:491
6940 msgid "guestfs_aug_mv"
6941 msgstr ""
6942
6943 #. type: verbatim
6944 #: ../src/guestfs-actions.pod:493
6945 #, no-wrap
6946 msgid ""
6947 " int\n"
6948 " guestfs_aug_mv (guestfs_h *g,\n"
6949 "                 const char *src,\n"
6950 "                 const char *dest);\n"
6951 "\n"
6952 msgstr ""
6953
6954 #. type: textblock
6955 #: ../src/guestfs-actions.pod:498 ../fish/guestfish-actions.pod:324
6956 msgid ""
6957 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6958 "C<dest> is overwritten if it exists."
6959 msgstr ""
6960
6961 #. type: =head2
6962 #: ../src/guestfs-actions.pod:505
6963 msgid "guestfs_aug_rm"
6964 msgstr ""
6965
6966 #. type: verbatim
6967 #: ../src/guestfs-actions.pod:507
6968 #, no-wrap
6969 msgid ""
6970 " int\n"
6971 " guestfs_aug_rm (guestfs_h *g,\n"
6972 "                 const char *augpath);\n"
6973 "\n"
6974 msgstr ""
6975
6976 #. type: textblock
6977 #: ../src/guestfs-actions.pod:511 ../fish/guestfish-actions.pod:331
6978 msgid "Remove C<path> and all of its children."
6979 msgstr ""
6980
6981 #. type: textblock
6982 #: ../src/guestfs-actions.pod:513 ../fish/guestfish-actions.pod:333
6983 msgid "On success this returns the number of entries which were removed."
6984 msgstr ""
6985
6986 #. type: =head2
6987 #: ../src/guestfs-actions.pod:519
6988 msgid "guestfs_aug_save"
6989 msgstr ""
6990
6991 #. type: verbatim
6992 #: ../src/guestfs-actions.pod:521
6993 #, no-wrap
6994 msgid ""
6995 " int\n"
6996 " guestfs_aug_save (guestfs_h *g);\n"
6997 "\n"
6998 msgstr ""
6999
7000 #. type: textblock
7001 #: ../src/guestfs-actions.pod:524 ../fish/guestfish-actions.pod:339
7002 msgid "This writes all pending changes to disk."
7003 msgstr ""
7004
7005 #. type: textblock
7006 #: ../src/guestfs-actions.pod:526
7007 msgid ""
7008 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
7009 "are saved."
7010 msgstr ""
7011
7012 #. type: =head2
7013 #: ../src/guestfs-actions.pod:533
7014 msgid "guestfs_aug_set"
7015 msgstr ""
7016
7017 #. type: verbatim
7018 #: ../src/guestfs-actions.pod:535
7019 #, no-wrap
7020 msgid ""
7021 " int\n"
7022 " guestfs_aug_set (guestfs_h *g,\n"
7023 "                  const char *augpath,\n"
7024 "                  const char *val);\n"
7025 "\n"
7026 msgstr ""
7027
7028 #. type: textblock
7029 #: ../src/guestfs-actions.pod:540 ../fish/guestfish-actions.pod:348
7030 msgid "Set the value associated with C<path> to C<val>."
7031 msgstr ""
7032
7033 #. type: textblock
7034 #: ../src/guestfs-actions.pod:542
7035 msgid ""
7036 "In the Augeas API, it is possible to clear a node by setting the value to "
7037 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
7038 "this call.  Instead you must use the C<guestfs_aug_clear> call."
7039 msgstr ""
7040
7041 #. type: =head2
7042 #: ../src/guestfs-actions.pod:551
7043 msgid "guestfs_available"
7044 msgstr ""
7045
7046 #. type: verbatim
7047 #: ../src/guestfs-actions.pod:553
7048 #, no-wrap
7049 msgid ""
7050 " int\n"
7051 " guestfs_available (guestfs_h *g,\n"
7052 "                    char *const *groups);\n"
7053 "\n"
7054 msgstr ""
7055
7056 #. type: textblock
7057 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:359
7058 msgid ""
7059 "This command is used to check the availability of some groups of "
7060 "functionality in the appliance, which not all builds of the libguestfs "
7061 "appliance will be able to provide."
7062 msgstr ""
7063
7064 #. type: textblock
7065 #: ../src/guestfs-actions.pod:561
7066 msgid ""
7067 "The libguestfs groups, and the functions that those groups correspond to, "
7068 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
7069 "runtime by calling C<guestfs_available_all_groups>."
7070 msgstr ""
7071
7072 #. type: textblock
7073 #: ../src/guestfs-actions.pod:566 ../fish/guestfish-actions.pod:368
7074 msgid ""
7075 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
7076 "\"]> would check for the availability of the Linux inotify functions and "
7077 "Augeas (configuration file editing) functions."
7078 msgstr ""
7079
7080 #. type: textblock
7081 #: ../src/guestfs-actions.pod:571 ../fish/guestfish-actions.pod:373
7082 msgid "The command returns no error if I<all> requested groups are available."
7083 msgstr ""
7084
7085 #. type: textblock
7086 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:375
7087 msgid ""
7088 "It fails with an error if one or more of the requested groups is unavailable "
7089 "in the appliance."
7090 msgstr ""
7091
7092 #. type: textblock
7093 #: ../src/guestfs-actions.pod:576 ../fish/guestfish-actions.pod:378
7094 msgid ""
7095 "If an unknown group name is included in the list of groups then an error is "
7096 "always returned."
7097 msgstr ""
7098
7099 #. type: textblock
7100 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:381
7101 msgid "I<Notes:>"
7102 msgstr "I<Нотатки:>"
7103
7104 #. type: textblock
7105 #: ../src/guestfs-actions.pod:585
7106 msgid "You must call C<guestfs_launch> before calling this function."
7107 msgstr ""
7108
7109 #. type: textblock
7110 #: ../src/guestfs-actions.pod:587 ../fish/guestfish-actions.pod:389
7111 msgid ""
7112 "The reason is because we don't know what groups are supported by the "
7113 "appliance/daemon until it is running and can be queried."
7114 msgstr ""
7115
7116 #. type: textblock
7117 #: ../src/guestfs-actions.pod:593 ../fish/guestfish-actions.pod:395
7118 msgid ""
7119 "If a group of functions is available, this does not necessarily mean that "
7120 "they will work.  You still have to check for errors when calling individual "
7121 "API functions even if they are available."
7122 msgstr ""
7123
7124 #. type: textblock
7125 #: ../src/guestfs-actions.pod:600 ../fish/guestfish-actions.pod:402
7126 msgid ""
7127 "It is usually the job of distro packagers to build complete functionality "
7128 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
7129 "with all requirements satisfied, will support everything."
7130 msgstr ""
7131
7132 #. type: textblock
7133 #: ../src/guestfs-actions.pod:607
7134 msgid ""
7135 "This call was added in version C<1.0.80>.  In previous versions of "
7136 "libguestfs all you could do would be to speculatively execute a command to "
7137 "find out if the daemon implemented it.  See also C<guestfs_version>."
7138 msgstr ""
7139
7140 #. type: textblock
7141 #: ../src/guestfs-actions.pod:616 ../src/guestfs-actions.pod:1177
7142 msgid "(Added in 1.0.80)"
7143 msgstr ""
7144
7145 #. type: =head2
7146 #: ../src/guestfs-actions.pod:618
7147 msgid "guestfs_available_all_groups"
7148 msgstr ""
7149
7150 #. type: verbatim
7151 #: ../src/guestfs-actions.pod:620
7152 #, no-wrap
7153 msgid ""
7154 " char **\n"
7155 " guestfs_available_all_groups (guestfs_h *g);\n"
7156 "\n"
7157 msgstr ""
7158
7159 #. type: textblock
7160 #: ../src/guestfs-actions.pod:623
7161 msgid ""
7162 "This command returns a list of all optional groups that this daemon knows "
7163 "about.  Note this returns both supported and unsupported groups.  To find "
7164 "out which ones the daemon can actually support you have to call "
7165 "C<guestfs_available> on each member of the returned list."
7166 msgstr ""
7167
7168 #. type: textblock
7169 #: ../src/guestfs-actions.pod:629
7170 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
7171 msgstr ""
7172
7173 #. type: textblock
7174 #: ../src/guestfs-actions.pod:635
7175 msgid "(Added in 1.3.15)"
7176 msgstr ""
7177
7178 #. type: =head2
7179 #: ../src/guestfs-actions.pod:637
7180 msgid "guestfs_base64_in"
7181 msgstr ""
7182
7183 #. type: verbatim
7184 #: ../src/guestfs-actions.pod:639
7185 #, no-wrap
7186 msgid ""
7187 " int\n"
7188 " guestfs_base64_in (guestfs_h *g,\n"
7189 "                    const char *base64file,\n"
7190 "                    const char *filename);\n"
7191 "\n"
7192 msgstr ""
7193
7194 #. type: textblock
7195 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:432
7196 msgid ""
7197 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7198 msgstr ""
7199
7200 #. type: textblock
7201 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:663
7202 msgid "(Added in 1.3.5)"
7203 msgstr ""
7204
7205 #. type: =head2
7206 #: ../src/guestfs-actions.pod:651
7207 msgid "guestfs_base64_out"
7208 msgstr ""
7209
7210 #. type: verbatim
7211 #: ../src/guestfs-actions.pod:653
7212 #, no-wrap
7213 msgid ""
7214 " int\n"
7215 " guestfs_base64_out (guestfs_h *g,\n"
7216 "                     const char *filename,\n"
7217 "                     const char *base64file);\n"
7218 "\n"
7219 msgstr ""
7220
7221 #. type: textblock
7222 #: ../src/guestfs-actions.pod:658 ../fish/guestfish-actions.pod:441
7223 msgid ""
7224 "This command downloads the contents of C<filename>, writing it out to local "
7225 "file C<base64file> encoded as base64."
7226 msgstr ""
7227
7228 #. type: =head2
7229 #: ../src/guestfs-actions.pod:665
7230 msgid "guestfs_blockdev_flushbufs"
7231 msgstr ""
7232
7233 #. type: verbatim
7234 #: ../src/guestfs-actions.pod:667
7235 #, no-wrap
7236 msgid ""
7237 " int\n"
7238 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
7239 "                             const char *device);\n"
7240 "\n"
7241 msgstr ""
7242
7243 #. type: textblock
7244 #: ../src/guestfs-actions.pod:671 ../fish/guestfish-actions.pod:450
7245 msgid ""
7246 "This tells the kernel to flush internal buffers associated with C<device>."
7247 msgstr ""
7248
7249 #. type: textblock
7250 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:691
7251 #: ../src/guestfs-actions.pod:706 ../src/guestfs-actions.pod:722
7252 #: ../src/guestfs-actions.pod:740 ../src/guestfs-actions.pod:759
7253 #: ../src/guestfs-actions.pod:773 ../src/guestfs-actions.pod:791
7254 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:819
7255 #: ../fish/guestfish-actions.pod:453 ../fish/guestfish-actions.pod:464
7256 #: ../fish/guestfish-actions.pod:473 ../fish/guestfish-actions.pod:483
7257 #: ../fish/guestfish-actions.pod:495 ../fish/guestfish-actions.pod:508
7258 #: ../fish/guestfish-actions.pod:516 ../fish/guestfish-actions.pod:527
7259 #: ../fish/guestfish-actions.pod:535 ../fish/guestfish-actions.pod:543
7260 msgid "This uses the L<blockdev(8)> command."
7261 msgstr ""
7262
7263 #. type: textblock
7264 #: ../src/guestfs-actions.pod:678 ../src/guestfs-actions.pod:695
7265 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:726
7266 #: ../src/guestfs-actions.pod:744 ../src/guestfs-actions.pod:763
7267 #: ../src/guestfs-actions.pod:777 ../src/guestfs-actions.pod:795
7268 #: ../src/guestfs-actions.pod:809 ../src/guestfs-actions.pod:823
7269 msgid "(Added in 0.9.3)"
7270 msgstr ""
7271
7272 #. type: =head2
7273 #: ../src/guestfs-actions.pod:680
7274 msgid "guestfs_blockdev_getbsz"
7275 msgstr ""
7276
7277 #. type: verbatim
7278 #: ../src/guestfs-actions.pod:682
7279 #, no-wrap
7280 msgid ""
7281 " int\n"
7282 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
7283 "                          const char *device);\n"
7284 "\n"
7285 msgstr ""
7286
7287 #. type: textblock
7288 #: ../src/guestfs-actions.pod:686 ../fish/guestfish-actions.pod:459
7289 msgid "This returns the block size of a device."
7290 msgstr ""
7291
7292 #. type: textblock
7293 #: ../src/guestfs-actions.pod:688 ../src/guestfs-actions.pod:788
7294 #: ../fish/guestfish-actions.pod:461 ../fish/guestfish-actions.pod:524
7295 msgid ""
7296 "(Note this is different from both I<size in blocks> and I<filesystem block "
7297 "size>)."
7298 msgstr ""
7299
7300 #. type: =head2
7301 #: ../src/guestfs-actions.pod:697
7302 msgid "guestfs_blockdev_getro"
7303 msgstr ""
7304
7305 #. type: verbatim
7306 #: ../src/guestfs-actions.pod:699
7307 #, no-wrap
7308 msgid ""
7309 " int\n"
7310 " guestfs_blockdev_getro (guestfs_h *g,\n"
7311 "                         const char *device);\n"
7312 "\n"
7313 msgstr ""
7314
7315 #. type: textblock
7316 #: ../src/guestfs-actions.pod:703 ../fish/guestfish-actions.pod:470
7317 msgid ""
7318 "Returns a boolean indicating if the block device is read-only (true if read-"
7319 "only, false if not)."
7320 msgstr ""
7321
7322 #. type: textblock
7323 #: ../src/guestfs-actions.pod:708 ../src/guestfs-actions.pod:1415
7324 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1917
7325 #: ../src/guestfs-actions.pod:1928 ../src/guestfs-actions.pod:2000
7326 #: ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2070
7327 #: ../src/guestfs-actions.pod:2095 ../src/guestfs-actions.pod:2118
7328 #: ../src/guestfs-actions.pod:3144 ../src/guestfs-actions.pod:3158
7329 #: ../src/guestfs-actions.pod:3174 ../src/guestfs-actions.pod:3334
7330 #: ../src/guestfs-actions.pod:3348 ../src/guestfs-actions.pod:3363
7331 #: ../src/guestfs-actions.pod:3377 ../src/guestfs-actions.pod:3393
7332 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3424
7333 #: ../src/guestfs-actions.pod:3438 ../src/guestfs-actions.pod:3451
7334 #: ../src/guestfs-actions.pod:3465 ../src/guestfs-actions.pod:3480
7335 #: ../src/guestfs-actions.pod:3495 ../src/guestfs-actions.pod:3508
7336 #: ../src/guestfs-actions.pod:3520 ../src/guestfs-actions.pod:5116
7337 msgid "This function returns a C truth value on success or -1 on error."
7338 msgstr ""
7339
7340 #. type: =head2
7341 #: ../src/guestfs-actions.pod:712
7342 msgid "guestfs_blockdev_getsize64"
7343 msgstr ""
7344
7345 #. type: verbatim
7346 #: ../src/guestfs-actions.pod:714
7347 #, no-wrap
7348 msgid ""
7349 " int64_t\n"
7350 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
7351 "                             const char *device);\n"
7352 "\n"
7353 msgstr ""
7354
7355 #. type: textblock
7356 #: ../src/guestfs-actions.pod:718 ../fish/guestfish-actions.pod:479
7357 msgid "This returns the size of the device in bytes."
7358 msgstr ""
7359
7360 #. type: textblock
7361 #: ../src/guestfs-actions.pod:720
7362 msgid "See also C<guestfs_blockdev_getsz>."
7363 msgstr ""
7364
7365 #. type: =head2
7366 #: ../src/guestfs-actions.pod:728
7367 msgid "guestfs_blockdev_getss"
7368 msgstr ""
7369
7370 #. type: verbatim
7371 #: ../src/guestfs-actions.pod:730
7372 #, no-wrap
7373 msgid ""
7374 " int\n"
7375 " guestfs_blockdev_getss (guestfs_h *g,\n"
7376 "                         const char *device);\n"
7377 "\n"
7378 msgstr ""
7379
7380 #. type: textblock
7381 #: ../src/guestfs-actions.pod:734 ../fish/guestfish-actions.pod:489
7382 msgid ""
7383 "This returns the size of sectors on a block device.  Usually 512, but can be "
7384 "larger for modern devices."
7385 msgstr ""
7386
7387 #. type: textblock
7388 #: ../src/guestfs-actions.pod:737
7389 msgid ""
7390 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
7391 "that)."
7392 msgstr ""
7393
7394 #. type: =head2
7395 #: ../src/guestfs-actions.pod:746
7396 msgid "guestfs_blockdev_getsz"
7397 msgstr ""
7398
7399 #. type: verbatim
7400 #: ../src/guestfs-actions.pod:748
7401 #, no-wrap
7402 msgid ""
7403 " int64_t\n"
7404 " guestfs_blockdev_getsz (guestfs_h *g,\n"
7405 "                         const char *device);\n"
7406 "\n"
7407 msgstr ""
7408
7409 #. type: textblock
7410 #: ../src/guestfs-actions.pod:752 ../fish/guestfish-actions.pod:501
7411 msgid ""
7412 "This returns the size of the device in units of 512-byte sectors (even if "
7413 "the sectorsize isn't 512 bytes ... weird)."
7414 msgstr ""
7415
7416 #. type: textblock
7417 #: ../src/guestfs-actions.pod:755
7418 msgid ""
7419 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
7420 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
7421 msgstr ""
7422
7423 #. type: =head2
7424 #: ../src/guestfs-actions.pod:765
7425 msgid "guestfs_blockdev_rereadpt"
7426 msgstr ""
7427
7428 #. type: verbatim
7429 #: ../src/guestfs-actions.pod:767
7430 #, no-wrap
7431 msgid ""
7432 " int\n"
7433 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
7434 "                            const char *device);\n"
7435 "\n"
7436 msgstr ""
7437
7438 #. type: textblock
7439 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:514
7440 msgid "Reread the partition table on C<device>."
7441 msgstr ""
7442
7443 #. type: =head2
7444 #: ../src/guestfs-actions.pod:779
7445 msgid "guestfs_blockdev_setbsz"
7446 msgstr ""
7447
7448 #. type: verbatim
7449 #: ../src/guestfs-actions.pod:781
7450 #, no-wrap
7451 msgid ""
7452 " int\n"
7453 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
7454 "                          const char *device,\n"
7455 "                          int blocksize);\n"
7456 "\n"
7457 msgstr ""
7458
7459 #. type: textblock
7460 #: ../src/guestfs-actions.pod:786 ../fish/guestfish-actions.pod:522
7461 msgid "This sets the block size of a device."
7462 msgstr ""
7463
7464 #. type: =head2
7465 #: ../src/guestfs-actions.pod:797
7466 msgid "guestfs_blockdev_setro"
7467 msgstr ""
7468
7469 #. type: verbatim
7470 #: ../src/guestfs-actions.pod:799
7471 #, no-wrap
7472 msgid ""
7473 " int\n"
7474 " guestfs_blockdev_setro (guestfs_h *g,\n"
7475 "                         const char *device);\n"
7476 "\n"
7477 msgstr ""
7478
7479 #. type: textblock
7480 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:533
7481 msgid "Sets the block device named C<device> to read-only."
7482 msgstr ""
7483
7484 #. type: =head2
7485 #: ../src/guestfs-actions.pod:811
7486 msgid "guestfs_blockdev_setrw"
7487 msgstr ""
7488
7489 #. type: verbatim
7490 #: ../src/guestfs-actions.pod:813
7491 #, no-wrap
7492 msgid ""
7493 " int\n"
7494 " guestfs_blockdev_setrw (guestfs_h *g,\n"
7495 "                         const char *device);\n"
7496 "\n"
7497 msgstr ""
7498
7499 #. type: textblock
7500 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:541
7501 msgid "Sets the block device named C<device> to read-write."
7502 msgstr ""
7503
7504 #. type: =head2
7505 #: ../src/guestfs-actions.pod:825
7506 msgid "guestfs_case_sensitive_path"
7507 msgstr ""
7508
7509 #. type: verbatim
7510 #: ../src/guestfs-actions.pod:827
7511 #, no-wrap
7512 msgid ""
7513 " char *\n"
7514 " guestfs_case_sensitive_path (guestfs_h *g,\n"
7515 "                              const char *path);\n"
7516 "\n"
7517 msgstr ""
7518
7519 #. type: textblock
7520 #: ../src/guestfs-actions.pod:831 ../fish/guestfish-actions.pod:549
7521 msgid ""
7522 "This can be used to resolve case insensitive paths on a filesystem which is "
7523 "case sensitive.  The use case is to resolve paths which you have read from "
7524 "Windows configuration files or the Windows Registry, to the true path."
7525 msgstr ""
7526
7527 #. type: textblock
7528 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:554
7529 msgid ""
7530 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7531 "(and probably others), which is that although the underlying filesystem is "
7532 "case-insensitive, the driver exports the filesystem to Linux as case-"
7533 "sensitive."
7534 msgstr ""
7535
7536 #. type: textblock
7537 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:559
7538 msgid ""
7539 "One consequence of this is that special directories such as C<c:\\windows> "
7540 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7541 "precise details of how they were created.  In Windows itself this would not "
7542 "be a problem."
7543 msgstr ""
7544
7545 #. type: textblock
7546 #: ../src/guestfs-actions.pod:847 ../fish/guestfish-actions.pod:565
7547 msgid ""
7548 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7549 "#posixfilenames1>"
7550 msgstr ""
7551
7552 #. type: textblock
7553 #: ../src/guestfs-actions.pod:850 ../fish/guestfish-actions.pod:568
7554 msgid ""
7555 "This function resolves the true case of each element in the path and returns "
7556 "the case-sensitive path."
7557 msgstr ""
7558
7559 #. type: textblock
7560 #: ../src/guestfs-actions.pod:853
7561 msgid ""
7562 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
7563 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
7564 "how the directories were originally created under Windows)."
7565 msgstr ""
7566
7567 #. type: textblock
7568 #: ../src/guestfs-actions.pod:858 ../fish/guestfish-actions.pod:576
7569 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7570 msgstr ""
7571
7572 #. type: textblock
7573 #: ../src/guestfs-actions.pod:861
7574 msgid "See also C<guestfs_realpath>."
7575 msgstr ""
7576
7577 #. type: textblock
7578 #: ../src/guestfs-actions.pod:866 ../src/guestfs-actions.pod:7135
7579 msgid "(Added in 1.0.75)"
7580 msgstr ""
7581
7582 #. type: =head2
7583 #: ../src/guestfs-actions.pod:868
7584 msgid "guestfs_cat"
7585 msgstr ""
7586
7587 #. type: verbatim
7588 #: ../src/guestfs-actions.pod:870
7589 #, no-wrap
7590 msgid ""
7591 " char *\n"
7592 " guestfs_cat (guestfs_h *g,\n"
7593 "              const char *path);\n"
7594 "\n"
7595 msgstr ""
7596
7597 #. type: textblock
7598 #: ../src/guestfs-actions.pod:874 ../src/guestfs-actions.pod:5603
7599 #: ../fish/guestfish-actions.pod:585 ../fish/guestfish-actions.pod:3717
7600 msgid "Return the contents of the file named C<path>."
7601 msgstr ""
7602
7603 #. type: textblock
7604 #: ../src/guestfs-actions.pod:876
7605 msgid ""
7606 "Note that this function cannot correctly handle binary files (specifically, "
7607 "files containing C<\\0> character which is treated as end of string).  For "
7608 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
7609 "functions which have a more complex interface."
7610 msgstr ""
7611
7612 #. type: textblock
7613 #: ../src/guestfs-actions.pod:884 ../src/guestfs-actions.pod:1063
7614 #: ../src/guestfs-actions.pod:1083 ../src/guestfs-actions.pod:1379
7615 #: ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:1501
7616 #: ../src/guestfs-actions.pod:1520 ../src/guestfs-actions.pod:1766
7617 #: ../src/guestfs-actions.pod:2224 ../src/guestfs-actions.pod:2243
7618 #: ../src/guestfs-actions.pod:2286 ../src/guestfs-actions.pod:2310
7619 #: ../src/guestfs-actions.pod:2327 ../src/guestfs-actions.pod:2356
7620 #: ../src/guestfs-actions.pod:5385 ../src/guestfs-actions.pod:5411
7621 #: ../src/guestfs-actions.pod:5542 ../src/guestfs-actions.pod:5568
7622 #: ../src/guestfs-actions.pod:5592 ../src/guestfs-actions.pod:6520
7623 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6721
7624 #: ../src/guestfs-actions.pod:6745 ../src/guestfs-actions.pod:7414
7625 #: ../src/guestfs-actions.pod:7440 ../src/guestfs-actions.pod:7466
7626 #: ../src/guestfs-actions.pod:7485 ../src/guestfs-actions.pod:7571
7627 #: ../src/guestfs-actions.pod:7590 ../src/guestfs-actions.pod:7636
7628 #: ../src/guestfs-actions.pod:7655 ../fish/guestfish-actions.pod:592
7629 #: ../fish/guestfish-actions.pod:727 ../fish/guestfish-actions.pod:739
7630 #: ../fish/guestfish-actions.pod:915 ../fish/guestfish-actions.pod:925
7631 #: ../fish/guestfish-actions.pod:992 ../fish/guestfish-actions.pod:1002
7632 #: ../fish/guestfish-actions.pod:1194 ../fish/guestfish-actions.pod:1495
7633 #: ../fish/guestfish-actions.pod:1505 ../fish/guestfish-actions.pod:1533
7634 #: ../fish/guestfish-actions.pod:1548 ../fish/guestfish-actions.pod:1558
7635 #: ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:3587
7636 #: ../fish/guestfish-actions.pod:3602 ../fish/guestfish-actions.pod:3678
7637 #: ../fish/guestfish-actions.pod:3695 ../fish/guestfish-actions.pod:3710
7638 #: ../fish/guestfish-actions.pod:4364 ../fish/guestfish-actions.pod:4410
7639 #: ../fish/guestfish-actions.pod:4495 ../fish/guestfish-actions.pod:4510
7640 #: ../fish/guestfish-actions.pod:4920 ../fish/guestfish-actions.pod:4938
7641 #: ../fish/guestfish-actions.pod:4955 ../fish/guestfish-actions.pod:4965
7642 #: ../fish/guestfish-actions.pod:5014 ../fish/guestfish-actions.pod:5024
7643 #: ../fish/guestfish-actions.pod:5053 ../fish/guestfish-actions.pod:5063
7644 msgid ""
7645 "Because of the message protocol, there is a transfer limit of somewhere "
7646 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7647 msgstr ""
7648
7649 #. type: textblock
7650 #: ../src/guestfs-actions.pod:887 ../src/guestfs-actions.pod:3646
7651 #: ../src/guestfs-actions.pod:3708 ../src/guestfs-actions.pod:3725
7652 #: ../src/guestfs-actions.pod:3813 ../src/guestfs-actions.pod:4218
7653 #: ../src/guestfs-actions.pod:4232 ../src/guestfs-actions.pod:5491
7654 #: ../src/guestfs-actions.pod:5505 ../src/guestfs-actions.pod:7294
7655 #: ../src/guestfs-actions.pod:7308
7656 msgid "(Added in 0.4)"
7657 msgstr ""
7658
7659 #. type: =head2
7660 #: ../src/guestfs-actions.pod:889
7661 msgid "guestfs_checksum"
7662 msgstr ""
7663
7664 #. type: verbatim
7665 #: ../src/guestfs-actions.pod:891
7666 #, no-wrap
7667 msgid ""
7668 " char *\n"
7669 " guestfs_checksum (guestfs_h *g,\n"
7670 "                   const char *csumtype,\n"
7671 "                   const char *path);\n"
7672 "\n"
7673 msgstr ""
7674
7675 #. type: textblock
7676 #: ../src/guestfs-actions.pod:896 ../fish/guestfish-actions.pod:599
7677 msgid ""
7678 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7679 msgstr ""
7680
7681 #. type: textblock
7682 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:602
7683 msgid ""
7684 "The type of checksum to compute is given by the C<csumtype> parameter which "
7685 "must have one of the following values:"
7686 msgstr ""
7687
7688 #. type: =item
7689 #: ../src/guestfs-actions.pod:904 ../fish/guestfish-actions.pod:607
7690 msgid "C<crc>"
7691 msgstr "C<crc>"
7692
7693 #. type: textblock
7694 #: ../src/guestfs-actions.pod:906 ../fish/guestfish-actions.pod:609
7695 msgid ""
7696 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7697 "C<cksum> command."
7698 msgstr ""
7699
7700 #. type: =item
7701 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:612
7702 msgid "C<md5>"
7703 msgstr "C<md5>"
7704
7705 #. type: textblock
7706 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:614
7707 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7708 msgstr ""
7709
7710 #. type: =item
7711 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:616
7712 msgid "C<sha1>"
7713 msgstr "C<sha1>"
7714
7715 #. type: textblock
7716 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:618
7717 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7718 msgstr ""
7719
7720 #. type: =item
7721 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:620
7722 msgid "C<sha224>"
7723 msgstr "C<sha224>"
7724
7725 #. type: textblock
7726 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:622
7727 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7728 msgstr ""
7729
7730 #. type: =item
7731 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:624
7732 msgid "C<sha256>"
7733 msgstr "C<sha256>"
7734
7735 #. type: textblock
7736 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:626
7737 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7738 msgstr ""
7739
7740 #. type: =item
7741 #: ../src/guestfs-actions.pod:925 ../fish/guestfish-actions.pod:628
7742 msgid "C<sha384>"
7743 msgstr "C<sha384>"
7744
7745 #. type: textblock
7746 #: ../src/guestfs-actions.pod:927 ../fish/guestfish-actions.pod:630
7747 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7748 msgstr ""
7749
7750 #. type: =item
7751 #: ../src/guestfs-actions.pod:929 ../fish/guestfish-actions.pod:632
7752 msgid "C<sha512>"
7753 msgstr "C<sha512>"
7754
7755 #. type: textblock
7756 #: ../src/guestfs-actions.pod:931 ../fish/guestfish-actions.pod:634
7757 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7758 msgstr ""
7759
7760 #. type: textblock
7761 #: ../src/guestfs-actions.pod:935 ../fish/guestfish-actions.pod:638
7762 msgid "The checksum is returned as a printable string."
7763 msgstr ""
7764
7765 #. type: textblock
7766 #: ../src/guestfs-actions.pod:937
7767 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
7768 msgstr ""
7769
7770 #. type: textblock
7771 #: ../src/guestfs-actions.pod:939
7772 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
7773 msgstr ""
7774
7775 #. type: textblock
7776 #: ../src/guestfs-actions.pod:944 ../src/guestfs-actions.pod:1252
7777 #: ../src/guestfs-actions.pod:2086 ../src/guestfs-actions.pod:3350
7778 #: ../src/guestfs-actions.pod:3379 ../src/guestfs-actions.pod:3440
7779 #: ../src/guestfs-actions.pod:3467 ../src/guestfs-actions.pod:6991
7780 msgid "(Added in 1.0.2)"
7781 msgstr ""
7782
7783 #. type: =head2
7784 #: ../src/guestfs-actions.pod:946
7785 msgid "guestfs_checksum_device"
7786 msgstr ""
7787
7788 #. type: verbatim
7789 #: ../src/guestfs-actions.pod:948
7790 #, no-wrap
7791 msgid ""
7792 " char *\n"
7793 " guestfs_checksum_device (guestfs_h *g,\n"
7794 "                          const char *csumtype,\n"
7795 "                          const char *device);\n"
7796 "\n"
7797 msgstr ""
7798
7799 #. type: textblock
7800 #: ../src/guestfs-actions.pod:953
7801 msgid ""
7802 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7803 "device named C<device>.  For the types of checksums supported see the "
7804 "C<guestfs_checksum> command."
7805 msgstr ""
7806
7807 #. type: textblock
7808 #: ../src/guestfs-actions.pod:960 ../src/guestfs-actions.pod:5022
7809 #: ../src/guestfs-actions.pod:5081 ../src/guestfs-actions.pod:5118
7810 #: ../src/guestfs-actions.pod:5136 ../src/guestfs-actions.pod:5312
7811 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-actions.pod:6914
7812 #: ../src/guestfs-actions.pod:7320
7813 msgid "(Added in 1.3.2)"
7814 msgstr ""
7815
7816 #. type: =head2
7817 #: ../src/guestfs-actions.pod:962
7818 msgid "guestfs_checksums_out"
7819 msgstr ""
7820
7821 #. type: verbatim
7822 #: ../src/guestfs-actions.pod:964
7823 #, no-wrap
7824 msgid ""
7825 " int\n"
7826 " guestfs_checksums_out (guestfs_h *g,\n"
7827 "                        const char *csumtype,\n"
7828 "                        const char *directory,\n"
7829 "                        const char *sumsfile);\n"
7830 "\n"
7831 msgstr ""
7832
7833 #. type: textblock
7834 #: ../src/guestfs-actions.pod:970 ../fish/guestfish-actions.pod:656
7835 msgid ""
7836 "This command computes the checksums of all regular files in C<directory> and "
7837 "then emits a list of those checksums to the local output file C<sumsfile>."
7838 msgstr ""
7839
7840 #. type: textblock
7841 #: ../src/guestfs-actions.pod:974 ../fish/guestfish-actions.pod:660
7842 msgid ""
7843 "This can be used for verifying the integrity of a virtual machine.  However "
7844 "to be properly secure you should pay attention to the output of the checksum "
7845 "command (it uses the ones from GNU coreutils).  In particular when the "
7846 "filename is not printable, coreutils uses a special backslash syntax.  For "
7847 "more information, see the GNU coreutils info file."
7848 msgstr ""
7849
7850 #. type: textblock
7851 #: ../src/guestfs-actions.pod:984
7852 msgid "(Added in 1.3.7)"
7853 msgstr ""
7854
7855 #. type: =head2
7856 #: ../src/guestfs-actions.pod:986
7857 msgid "guestfs_chmod"
7858 msgstr ""
7859
7860 #. type: verbatim
7861 #: ../src/guestfs-actions.pod:988
7862 #, no-wrap
7863 msgid ""
7864 " int\n"
7865 " guestfs_chmod (guestfs_h *g,\n"
7866 "                int mode,\n"
7867 "                const char *path);\n"
7868 "\n"
7869 msgstr ""
7870
7871 #. type: textblock
7872 #: ../src/guestfs-actions.pod:993 ../fish/guestfish-actions.pod:674
7873 msgid ""
7874 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7875 "supported."
7876 msgstr ""
7877
7878 #. type: textblock
7879 #: ../src/guestfs-actions.pod:996 ../fish/guestfish-actions.pod:677
7880 msgid ""
7881 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7882 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7883 "C<700>."
7884 msgstr ""
7885
7886 #. type: textblock
7887 #: ../src/guestfs-actions.pod:1000 ../src/guestfs-actions.pod:4469
7888 #: ../src/guestfs-actions.pod:4666 ../src/guestfs-actions.pod:4685
7889 #: ../src/guestfs-actions.pod:4704 ../fish/guestfish-actions.pod:681
7890 #: ../fish/guestfish-actions.pod:3013 ../fish/guestfish-actions.pod:3142
7891 #: ../fish/guestfish-actions.pod:3152 ../fish/guestfish-actions.pod:3162
7892 msgid "The mode actually set is affected by the umask."
7893 msgstr ""
7894
7895 #. type: =head2
7896 #: ../src/guestfs-actions.pod:1006
7897 msgid "guestfs_chown"
7898 msgstr ""
7899
7900 #. type: verbatim
7901 #: ../src/guestfs-actions.pod:1008
7902 #, no-wrap
7903 msgid ""
7904 " int\n"
7905 " guestfs_chown (guestfs_h *g,\n"
7906 "                int owner,\n"
7907 "                int group,\n"
7908 "                const char *path);\n"
7909 "\n"
7910 msgstr ""
7911
7912 #. type: textblock
7913 #: ../src/guestfs-actions.pod:1014 ../fish/guestfish-actions.pod:687
7914 msgid "Change the file owner to C<owner> and group to C<group>."
7915 msgstr ""
7916
7917 #. type: textblock
7918 #: ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:3565
7919 #: ../fish/guestfish-actions.pod:689 ../fish/guestfish-actions.pod:2464
7920 msgid ""
7921 "Only numeric uid and gid are supported.  If you want to use names, you will "
7922 "need to locate and parse the password file yourself (Augeas support makes "
7923 "this relatively easy)."
7924 msgstr ""
7925
7926 #. type: =head2
7927 #: ../src/guestfs-actions.pod:1024
7928 msgid "guestfs_command"
7929 msgstr ""
7930
7931 #. type: verbatim
7932 #: ../src/guestfs-actions.pod:1026
7933 #, no-wrap
7934 msgid ""
7935 " char *\n"
7936 " guestfs_command (guestfs_h *g,\n"
7937 "                  char *const *arguments);\n"
7938 "\n"
7939 msgstr ""
7940
7941 #. type: textblock
7942 #: ../src/guestfs-actions.pod:1030 ../fish/guestfish-actions.pod:697
7943 msgid ""
7944 "This call runs a command from the guest filesystem.  The filesystem must be "
7945 "mounted, and must contain a compatible operating system (ie. something "
7946 "Linux, with the same or compatible processor architecture)."
7947 msgstr ""
7948
7949 #. type: textblock
7950 #: ../src/guestfs-actions.pod:1035
7951 msgid ""
7952 "The single parameter is an argv-style list of arguments.  The first element "
7953 "is the name of the program to run.  Subsequent elements are parameters.  The "
7954 "list must be non-empty (ie. must contain a program name).  Note that the "
7955 "command runs directly, and is I<not> invoked via the shell (see "
7956 "C<guestfs_sh>)."
7957 msgstr ""
7958
7959 #. type: textblock
7960 #: ../src/guestfs-actions.pod:1042 ../fish/guestfish-actions.pod:709
7961 msgid "The return value is anything printed to I<stdout> by the command."
7962 msgstr ""
7963
7964 #. type: textblock
7965 #: ../src/guestfs-actions.pod:1045 ../fish/guestfish-actions.pod:712
7966 msgid ""
7967 "If the command returns a non-zero exit status, then this function returns an "
7968 "error message.  The error message string is the content of I<stderr> from "
7969 "the command."
7970 msgstr ""
7971
7972 #. type: textblock
7973 #: ../src/guestfs-actions.pod:1049 ../fish/guestfish-actions.pod:716
7974 msgid ""
7975 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7976 "bin>.  If you require a program from another location, you should provide "
7977 "the full path in the first parameter."
7978 msgstr ""
7979
7980 #. type: textblock
7981 #: ../src/guestfs-actions.pod:1054 ../fish/guestfish-actions.pod:721
7982 msgid ""
7983 "Shared libraries and data files required by the program must be available on "
7984 "filesystems which are mounted in the correct places.  It is the caller's "
7985 "responsibility to ensure all filesystems that are needed are mounted at the "
7986 "right locations."
7987 msgstr ""
7988
7989 #. type: textblock
7990 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1086
7991 #: ../src/guestfs-actions.pod:1551
7992 msgid "(Added in 0.9.1)"
7993 msgstr ""
7994
7995 #. type: =head2
7996 #: ../src/guestfs-actions.pod:1068
7997 msgid "guestfs_command_lines"
7998 msgstr ""
7999
8000 #. type: verbatim
8001 #: ../src/guestfs-actions.pod:1070
8002 #, no-wrap
8003 msgid ""
8004 " char **\n"
8005 " guestfs_command_lines (guestfs_h *g,\n"
8006 "                        char *const *arguments);\n"
8007 "\n"
8008 msgstr ""
8009
8010 #. type: textblock
8011 #: ../src/guestfs-actions.pod:1074
8012 msgid ""
8013 "This is the same as C<guestfs_command>, but splits the result into a list of "
8014 "lines."
8015 msgstr ""
8016
8017 #. type: textblock
8018 #: ../src/guestfs-actions.pod:1077
8019 msgid "See also: C<guestfs_sh_lines>"
8020 msgstr ""
8021
8022 #. type: =head2
8023 #: ../src/guestfs-actions.pod:1088
8024 msgid "guestfs_config"
8025 msgstr ""
8026
8027 #. type: verbatim
8028 #: ../src/guestfs-actions.pod:1090
8029 #, no-wrap
8030 msgid ""
8031 " int\n"
8032 " guestfs_config (guestfs_h *g,\n"
8033 "                 const char *qemuparam,\n"
8034 "                 const char *qemuvalue);\n"
8035 "\n"
8036 msgstr ""
8037
8038 #. type: textblock
8039 #: ../src/guestfs-actions.pod:1095 ../fish/guestfish-actions.pod:746
8040 msgid ""
8041 "This can be used to add arbitrary qemu command line parameters of the form "
8042 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8043 "setting some parameters which would interfere with parameters that we use."
8044 msgstr ""
8045
8046 #. type: textblock
8047 #: ../src/guestfs-actions.pod:1100 ../fish/guestfish-actions.pod:751
8048 msgid "The first character of C<param> string must be a C<-> (dash)."
8049 msgstr ""
8050
8051 #. type: textblock
8052 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:753
8053 msgid "C<value> can be NULL."
8054 msgstr ""
8055
8056 #. type: =head2
8057 #: ../src/guestfs-actions.pod:1108
8058 msgid "guestfs_copy_size"
8059 msgstr ""
8060
8061 #. type: verbatim
8062 #: ../src/guestfs-actions.pod:1110
8063 #, no-wrap
8064 msgid ""
8065 " int\n"
8066 " guestfs_copy_size (guestfs_h *g,\n"
8067 "                    const char *src,\n"
8068 "                    const char *dest,\n"
8069 "                    int64_t size);\n"
8070 "\n"
8071 msgstr ""
8072
8073 #. type: textblock
8074 #: ../src/guestfs-actions.pod:1116 ../fish/guestfish-actions.pod:759
8075 msgid ""
8076 "This command copies exactly C<size> bytes from one source device or file "
8077 "C<src> to another destination device or file C<dest>."
8078 msgstr ""
8079
8080 #. type: textblock
8081 #: ../src/guestfs-actions.pod:1119 ../fish/guestfish-actions.pod:762
8082 msgid ""
8083 "Note this will fail if the source is too short or if the destination is not "
8084 "large enough."
8085 msgstr ""
8086
8087 #. type: textblock
8088 #: ../src/guestfs-actions.pod:1124 ../src/guestfs-actions.pod:1247
8089 #: ../src/guestfs-actions.pod:1278 ../src/guestfs-actions.pod:1323
8090 #: ../src/guestfs-actions.pod:1700 ../src/guestfs-actions.pod:1722
8091 #: ../src/guestfs-actions.pod:3546 ../src/guestfs-actions.pod:6986
8092 #: ../src/guestfs-actions.pod:7020 ../src/guestfs-actions.pod:7507
8093 #: ../src/guestfs-actions.pod:7526
8094 msgid ""
8095 "This long-running command can generate progress notification messages so "
8096 "that the caller can display a progress bar or indicator.  To receive these "
8097 "messages, the caller must register a progress event callback.  See L<guestfs"
8098 "(3)/GUESTFS_EVENT_PROGRESS>."
8099 msgstr ""
8100
8101 #. type: textblock
8102 #: ../src/guestfs-actions.pod:1129 ../src/guestfs-actions.pod:4245
8103 #: ../src/guestfs-actions.pod:5518 ../src/guestfs-actions.pod:7227
8104 #: ../src/guestfs-actions.pod:7247 ../src/guestfs-actions.pod:7333
8105 msgid "(Added in 1.0.87)"
8106 msgstr ""
8107
8108 #. type: =head2
8109 #: ../src/guestfs-actions.pod:1131
8110 msgid "guestfs_cp"
8111 msgstr ""
8112
8113 #. type: verbatim
8114 #: ../src/guestfs-actions.pod:1133
8115 #, no-wrap
8116 msgid ""
8117 " int\n"
8118 " guestfs_cp (guestfs_h *g,\n"
8119 "             const char *src,\n"
8120 "             const char *dest);\n"
8121 "\n"
8122 msgstr ""
8123
8124 #. type: textblock
8125 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:769
8126 msgid ""
8127 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8128 "destination filename or destination directory."
8129 msgstr ""
8130
8131 #. type: textblock
8132 #: ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1157
8133 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1303
8134 #: ../src/guestfs-actions.pod:1417 ../src/guestfs-actions.pod:4985
8135 #: ../src/guestfs-actions.pod:5362
8136 msgid "(Added in 1.0.18)"
8137 msgstr ""
8138
8139 #. type: =head2
8140 #: ../src/guestfs-actions.pod:1145
8141 msgid "guestfs_cp_a"
8142 msgstr ""
8143
8144 #. type: verbatim
8145 #: ../src/guestfs-actions.pod:1147
8146 #, no-wrap
8147 msgid ""
8148 " int\n"
8149 " guestfs_cp_a (guestfs_h *g,\n"
8150 "               const char *src,\n"
8151 "               const char *dest);\n"
8152 "\n"
8153 msgstr ""
8154
8155 #. type: textblock
8156 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:776
8157 msgid ""
8158 "This copies a file or directory from C<src> to C<dest> recursively using the "
8159 "C<cp -a> command."
8160 msgstr ""
8161
8162 #. type: =head2
8163 #: ../src/guestfs-actions.pod:1159
8164 msgid "guestfs_dd"
8165 msgstr ""
8166
8167 #. type: verbatim
8168 #: ../src/guestfs-actions.pod:1161
8169 #, no-wrap
8170 msgid ""
8171 " int\n"
8172 " guestfs_dd (guestfs_h *g,\n"
8173 "             const char *src,\n"
8174 "             const char *dest);\n"
8175 "\n"
8176 msgstr ""
8177
8178 #. type: textblock
8179 #: ../src/guestfs-actions.pod:1166 ../fish/guestfish-actions.pod:783
8180 msgid ""
8181 "This command copies from one source device or file C<src> to another "
8182 "destination device or file C<dest>.  Normally you would use this to copy to "
8183 "or from a device or partition, for example to duplicate a filesystem."
8184 msgstr ""
8185
8186 #. type: textblock
8187 #: ../src/guestfs-actions.pod:1171
8188 msgid ""
8189 "If the destination is a device, it must be as large or larger than the "
8190 "source file or device, otherwise the copy will fail.  This command cannot do "
8191 "partial copies (see C<guestfs_copy_size>)."
8192 msgstr ""
8193
8194 #. type: =head2
8195 #: ../src/guestfs-actions.pod:1179
8196 msgid "guestfs_df"
8197 msgstr ""
8198
8199 #. type: verbatim
8200 #: ../src/guestfs-actions.pod:1181
8201 #, no-wrap
8202 msgid ""
8203 " char *\n"
8204 " guestfs_df (guestfs_h *g);\n"
8205 "\n"
8206 msgstr ""
8207
8208 #. type: textblock
8209 #: ../src/guestfs-actions.pod:1184 ../fish/guestfish-actions.pod:796
8210 msgid "This command runs the C<df> command to report disk space used."
8211 msgstr ""
8212
8213 #. type: textblock
8214 #: ../src/guestfs-actions.pod:1186 ../src/guestfs-actions.pod:1203
8215 msgid ""
8216 "This command is mostly useful for interactive sessions.  It is I<not> "
8217 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
8218 "from programs."
8219 msgstr ""
8220
8221 #. type: textblock
8222 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:1210
8223 #: ../src/guestfs-actions.pod:1328 ../src/guestfs-actions.pod:2289
8224 #: ../src/guestfs-actions.pod:2313 ../src/guestfs-actions.pod:2381
8225 #: ../src/guestfs-actions.pod:4355 ../src/guestfs-actions.pod:4885
8226 #: ../src/guestfs-actions.pod:6724 ../src/guestfs-actions.pod:6748
8227 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7386
8228 #: ../src/guestfs-actions.pod:7399
8229 msgid "(Added in 1.0.54)"
8230 msgstr ""
8231
8232 #. type: =head2
8233 #: ../src/guestfs-actions.pod:1195
8234 msgid "guestfs_df_h"
8235 msgstr ""
8236
8237 #. type: verbatim
8238 #: ../src/guestfs-actions.pod:1197
8239 #, no-wrap
8240 msgid ""
8241 " char *\n"
8242 " guestfs_df_h (guestfs_h *g);\n"
8243 "\n"
8244 msgstr ""
8245
8246 #. type: textblock
8247 #: ../src/guestfs-actions.pod:1200 ../fish/guestfish-actions.pod:806
8248 msgid ""
8249 "This command runs the C<df -h> command to report disk space used in human-"
8250 "readable format."
8251 msgstr ""
8252
8253 #. type: =head2
8254 #: ../src/guestfs-actions.pod:1212
8255 msgid "guestfs_dmesg"
8256 msgstr ""
8257
8258 #. type: verbatim
8259 #: ../src/guestfs-actions.pod:1214
8260 #, no-wrap
8261 msgid ""
8262 " char *\n"
8263 " guestfs_dmesg (guestfs_h *g);\n"
8264 "\n"
8265 msgstr ""
8266
8267 #. type: textblock
8268 #: ../src/guestfs-actions.pod:1217 ../fish/guestfish-actions.pod:817
8269 msgid ""
8270 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8271 "This is sometimes useful for extended debugging of problems."
8272 msgstr ""
8273
8274 #. type: textblock
8275 #: ../src/guestfs-actions.pod:1221
8276 msgid ""
8277 "Another way to get the same information is to enable verbose messages with "
8278 "C<guestfs_set_verbose> or by setting the environment variable "
8279 "C<LIBGUESTFS_DEBUG=1> before running the program."
8280 msgstr ""
8281
8282 #. type: =head2
8283 #: ../src/guestfs-actions.pod:1231
8284 msgid "guestfs_download"
8285 msgstr ""
8286
8287 #. type: verbatim
8288 #: ../src/guestfs-actions.pod:1233
8289 #, no-wrap
8290 msgid ""
8291 " int\n"
8292 " guestfs_download (guestfs_h *g,\n"
8293 "                   const char *remotefilename,\n"
8294 "                   const char *filename);\n"
8295 "\n"
8296 msgstr ""
8297
8298 #. type: textblock
8299 #: ../src/guestfs-actions.pod:1238 ../src/guestfs-actions.pod:1263
8300 #: ../fish/guestfish-actions.pod:830 ../fish/guestfish-actions.pod:843
8301 msgid ""
8302 "Download file C<remotefilename> and save it as C<filename> on the local "
8303 "machine."
8304 msgstr ""
8305
8306 #. type: textblock
8307 #: ../src/guestfs-actions.pod:1241 ../src/guestfs-actions.pod:6980
8308 #: ../fish/guestfish-actions.pod:833 ../fish/guestfish-actions.pod:4668
8309 msgid "C<filename> can also be a named pipe."
8310 msgstr ""
8311
8312 #. type: textblock
8313 #: ../src/guestfs-actions.pod:1243
8314 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
8315 msgstr ""
8316
8317 #. type: =head2
8318 #: ../src/guestfs-actions.pod:1254
8319 msgid "guestfs_download_offset"
8320 msgstr ""
8321
8322 #. type: verbatim
8323 #: ../src/guestfs-actions.pod:1256
8324 #, no-wrap
8325 msgid ""
8326 " int\n"
8327 " guestfs_download_offset (guestfs_h *g,\n"
8328 "                          const char *remotefilename,\n"
8329 "                          const char *filename,\n"
8330 "                          int64_t offset,\n"
8331 "                          int64_t size);\n"
8332 "\n"
8333 msgstr ""
8334
8335 #. type: textblock
8336 #: ../src/guestfs-actions.pod:1266 ../fish/guestfish-actions.pod:846
8337 msgid ""
8338 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8339 "region must be within the file or device)."
8340 msgstr ""
8341
8342 #. type: textblock
8343 #: ../src/guestfs-actions.pod:1269
8344 msgid ""
8345 "Note that there is no limit on the amount of data that can be downloaded "
8346 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
8347 "full amount unless an error occurs."
8348 msgstr ""
8349
8350 #. type: textblock
8351 #: ../src/guestfs-actions.pod:1274
8352 msgid "See also C<guestfs_download>, C<guestfs_pread>."
8353 msgstr ""
8354
8355 #. type: textblock
8356 #: ../src/guestfs-actions.pod:1283 ../src/guestfs-actions.pod:7025
8357 msgid "(Added in 1.5.17)"
8358 msgstr ""
8359
8360 #. type: =head2
8361 #: ../src/guestfs-actions.pod:1285
8362 msgid "guestfs_drop_caches"
8363 msgstr ""
8364
8365 #. type: verbatim
8366 #: ../src/guestfs-actions.pod:1287
8367 #, no-wrap
8368 msgid ""
8369 " int\n"
8370 " guestfs_drop_caches (guestfs_h *g,\n"
8371 "                      int whattodrop);\n"
8372 "\n"
8373 msgstr ""
8374
8375 #. type: textblock
8376 #: ../src/guestfs-actions.pod:1291 ../fish/guestfish-actions.pod:862
8377 msgid ""
8378 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8379 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8380 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8381 msgstr ""
8382
8383 #. type: textblock
8384 #: ../src/guestfs-actions.pod:1296 ../fish/guestfish-actions.pod:867
8385 msgid "Setting C<whattodrop> to 3 should drop everything."
8386 msgstr ""
8387
8388 #. type: textblock
8389 #: ../src/guestfs-actions.pod:1298 ../fish/guestfish-actions.pod:869
8390 msgid ""
8391 "This automatically calls L<sync(2)> before the operation, so that the "
8392 "maximum guest memory is freed."
8393 msgstr ""
8394
8395 #. type: =head2
8396 #: ../src/guestfs-actions.pod:1305
8397 msgid "guestfs_du"
8398 msgstr ""
8399
8400 #. type: verbatim
8401 #: ../src/guestfs-actions.pod:1307
8402 #, no-wrap
8403 msgid ""
8404 " int64_t\n"
8405 " guestfs_du (guestfs_h *g,\n"
8406 "             const char *path);\n"
8407 "\n"
8408 msgstr ""
8409
8410 #. type: textblock
8411 #: ../src/guestfs-actions.pod:1311 ../fish/guestfish-actions.pod:876
8412 msgid ""
8413 "This command runs the C<du -s> command to estimate file space usage for "
8414 "C<path>."
8415 msgstr ""
8416
8417 #. type: textblock
8418 #: ../src/guestfs-actions.pod:1314 ../fish/guestfish-actions.pod:879
8419 msgid ""
8420 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8421 "estimate includes the contents of the directory and all subdirectories "
8422 "(recursively)."
8423 msgstr ""
8424
8425 #. type: textblock
8426 #: ../src/guestfs-actions.pod:1318 ../fish/guestfish-actions.pod:883
8427 msgid ""
8428 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8429 msgstr ""
8430
8431 #. type: =head2
8432 #: ../src/guestfs-actions.pod:1330
8433 msgid "guestfs_e2fsck_f"
8434 msgstr ""
8435
8436 #. type: verbatim
8437 #: ../src/guestfs-actions.pod:1332
8438 #, no-wrap
8439 msgid ""
8440 " int\n"
8441 " guestfs_e2fsck_f (guestfs_h *g,\n"
8442 "                   const char *device);\n"
8443 "\n"
8444 msgstr ""
8445
8446 #. type: textblock
8447 #: ../src/guestfs-actions.pod:1336 ../fish/guestfish-actions.pod:890
8448 msgid ""
8449 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8450 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8451 "clean (I<-f>)."
8452 msgstr ""
8453
8454 #. type: textblock
8455 #: ../src/guestfs-actions.pod:1340
8456 msgid ""
8457 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
8458 "Normally you should use C<guestfs_fsck>."
8459 msgstr ""
8460
8461 #. type: textblock
8462 #: ../src/guestfs-actions.pod:1345
8463 msgid "(Added in 1.0.29)"
8464 msgstr ""
8465
8466 #. type: =head2
8467 #: ../src/guestfs-actions.pod:1347
8468 msgid "guestfs_echo_daemon"
8469 msgstr ""
8470
8471 #. type: verbatim
8472 #: ../src/guestfs-actions.pod:1349
8473 #, no-wrap
8474 msgid ""
8475 " char *\n"
8476 " guestfs_echo_daemon (guestfs_h *g,\n"
8477 "                      char *const *words);\n"
8478 "\n"
8479 msgstr ""
8480
8481 #. type: textblock
8482 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:901
8483 msgid ""
8484 "This command concatenates the list of C<words> passed with single spaces "
8485 "between them and returns the resulting string."
8486 msgstr ""
8487
8488 #. type: textblock
8489 #: ../src/guestfs-actions.pod:1356 ../fish/guestfish-actions.pod:904
8490 msgid "You can use this command to test the connection through to the daemon."
8491 msgstr ""
8492
8493 #. type: textblock
8494 #: ../src/guestfs-actions.pod:1358
8495 msgid "See also C<guestfs_ping_daemon>."
8496 msgstr ""
8497
8498 #. type: textblock
8499 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:2097
8500 #: ../src/guestfs-actions.pod:6196
8501 msgid "(Added in 1.0.69)"
8502 msgstr ""
8503
8504 #. type: =head2
8505 #: ../src/guestfs-actions.pod:1365
8506 msgid "guestfs_egrep"
8507 msgstr ""
8508
8509 #. type: verbatim
8510 #: ../src/guestfs-actions.pod:1367
8511 #, no-wrap
8512 msgid ""
8513 " char **\n"
8514 " guestfs_egrep (guestfs_h *g,\n"
8515 "                const char *regex,\n"
8516 "                const char *path);\n"
8517 "\n"
8518 msgstr ""
8519
8520 #. type: textblock
8521 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:912
8522 msgid ""
8523 "This calls the external C<egrep> program and returns the matching lines."
8524 msgstr ""
8525
8526 #. type: textblock
8527 #: ../src/guestfs-actions.pod:1382 ../src/guestfs-actions.pod:1401
8528 #: ../src/guestfs-actions.pod:1458 ../src/guestfs-actions.pod:1504
8529 #: ../src/guestfs-actions.pod:1523 ../src/guestfs-actions.pod:2227
8530 #: ../src/guestfs-actions.pod:2246 ../src/guestfs-actions.pod:2402
8531 #: ../src/guestfs-actions.pod:2415 ../src/guestfs-actions.pod:2430
8532 #: ../src/guestfs-actions.pod:2476 ../src/guestfs-actions.pod:2498
8533 #: ../src/guestfs-actions.pod:2511 ../src/guestfs-actions.pod:3738
8534 #: ../src/guestfs-actions.pod:3752 ../src/guestfs-actions.pod:3765
8535 #: ../src/guestfs-actions.pod:3779 ../src/guestfs-actions.pod:4765
8536 #: ../src/guestfs-actions.pod:5696 ../src/guestfs-actions.pod:5745
8537 #: ../src/guestfs-actions.pod:6592 ../src/guestfs-actions.pod:6604
8538 #: ../src/guestfs-actions.pod:6617 ../src/guestfs-actions.pod:6630
8539 #: ../src/guestfs-actions.pod:6652 ../src/guestfs-actions.pod:6665
8540 #: ../src/guestfs-actions.pod:6678 ../src/guestfs-actions.pod:6691
8541 #: ../src/guestfs-actions.pod:7469 ../src/guestfs-actions.pod:7488
8542 #: ../src/guestfs-actions.pod:7574 ../src/guestfs-actions.pod:7593
8543 #: ../src/guestfs-actions.pod:7639 ../src/guestfs-actions.pod:7658
8544 msgid "(Added in 1.0.66)"
8545 msgstr ""
8546
8547 #. type: =head2
8548 #: ../src/guestfs-actions.pod:1384
8549 msgid "guestfs_egrepi"
8550 msgstr ""
8551
8552 #. type: verbatim
8553 #: ../src/guestfs-actions.pod:1386
8554 #, no-wrap
8555 msgid ""
8556 " char **\n"
8557 " guestfs_egrepi (guestfs_h *g,\n"
8558 "                 const char *regex,\n"
8559 "                 const char *path);\n"
8560 "\n"
8561 msgstr ""
8562
8563 #. type: textblock
8564 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:922
8565 msgid ""
8566 "This calls the external C<egrep -i> program and returns the matching lines."
8567 msgstr ""
8568
8569 #. type: =head2
8570 #: ../src/guestfs-actions.pod:1403
8571 msgid "guestfs_equal"
8572 msgstr ""
8573
8574 #. type: verbatim
8575 #: ../src/guestfs-actions.pod:1405
8576 #, no-wrap
8577 msgid ""
8578 " int\n"
8579 " guestfs_equal (guestfs_h *g,\n"
8580 "                const char *file1,\n"
8581 "                const char *file2);\n"
8582 "\n"
8583 msgstr ""
8584
8585 #. type: textblock
8586 #: ../src/guestfs-actions.pod:1410 ../fish/guestfish-actions.pod:932
8587 msgid ""
8588 "This compares the two files C<file1> and C<file2> and returns true if their "
8589 "content is exactly equal, or false otherwise."
8590 msgstr ""
8591
8592 #. type: textblock
8593 #: ../src/guestfs-actions.pod:1413 ../fish/guestfish-actions.pod:935
8594 msgid "The external L<cmp(1)> program is used for the comparison."
8595 msgstr ""
8596
8597 #. type: =head2
8598 #: ../src/guestfs-actions.pod:1419
8599 msgid "guestfs_exists"
8600 msgstr ""
8601
8602 #. type: verbatim
8603 #: ../src/guestfs-actions.pod:1421
8604 #, no-wrap
8605 msgid ""
8606 " int\n"
8607 " guestfs_exists (guestfs_h *g,\n"
8608 "                 const char *path);\n"
8609 "\n"
8610 msgstr ""
8611
8612 #. type: textblock
8613 #: ../src/guestfs-actions.pod:1425 ../fish/guestfish-actions.pod:941
8614 msgid ""
8615 "This returns C<true> if and only if there is a file, directory (or anything) "
8616 "with the given C<path> name."
8617 msgstr ""
8618
8619 #. type: textblock
8620 #: ../src/guestfs-actions.pod:1428
8621 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
8622 msgstr ""
8623
8624 #. type: =head2
8625 #: ../src/guestfs-actions.pod:1434
8626 msgid "guestfs_fallocate"
8627 msgstr ""
8628
8629 #. type: verbatim
8630 #: ../src/guestfs-actions.pod:1436
8631 #, no-wrap
8632 msgid ""
8633 " int\n"
8634 " guestfs_fallocate (guestfs_h *g,\n"
8635 "                    const char *path,\n"
8636 "                    int len);\n"
8637 "\n"
8638 msgstr ""
8639
8640 #. type: textblock
8641 #: ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1467
8642 #: ../fish/guestfish-actions.pod:950 ../fish/guestfish-actions.pod:969
8643 msgid ""
8644 "This command preallocates a file (containing zero bytes) named C<path> of "
8645 "size C<len> bytes.  If the file exists already, it is overwritten."
8646 msgstr ""
8647
8648 #. type: textblock
8649 #: ../src/guestfs-actions.pod:1445 ../fish/guestfish-actions.pod:954
8650 msgid ""
8651 "Do not confuse this with the guestfish-specific C<alloc> command which "
8652 "allocates a file in the host and attaches it as a device."
8653 msgstr ""
8654
8655 #. type: textblock
8656 #: ../src/guestfs-actions.pod:1451 ../fish/guestfish-actions.pod:958
8657 msgid ""
8658 "This function is deprecated.  In new code, use the C<fallocate64> call "
8659 "instead."
8660 msgstr ""
8661
8662 #. type: =head2
8663 #: ../src/guestfs-actions.pod:1460
8664 msgid "guestfs_fallocate64"
8665 msgstr ""
8666
8667 #. type: verbatim
8668 #: ../src/guestfs-actions.pod:1462
8669 #, no-wrap
8670 msgid ""
8671 " int\n"
8672 " guestfs_fallocate64 (guestfs_h *g,\n"
8673 "                      const char *path,\n"
8674 "                      int64_t len);\n"
8675 "\n"
8676 msgstr ""
8677
8678 #. type: textblock
8679 #: ../src/guestfs-actions.pod:1471
8680 msgid ""
8681 "Note that this call allocates disk blocks for the file.  To create a sparse "
8682 "file use C<guestfs_truncate_size> instead."
8683 msgstr ""
8684
8685 #. type: textblock
8686 #: ../src/guestfs-actions.pod:1474
8687 msgid ""
8688 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
8689 "oversight it only allowed 30 bit lengths to be specified, effectively "
8690 "limiting the maximum size of files created through that call to 1GB."
8691 msgstr ""
8692
8693 #. type: textblock
8694 #: ../src/guestfs-actions.pod:1479 ../fish/guestfish-actions.pod:981
8695 msgid ""
8696 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8697 "commands which create a file in the host and attach it as a device."
8698 msgstr ""
8699
8700 #. type: textblock
8701 #: ../src/guestfs-actions.pod:1485
8702 msgid "(Added in 1.3.17)"
8703 msgstr ""
8704
8705 #. type: =head2
8706 #: ../src/guestfs-actions.pod:1487
8707 msgid "guestfs_fgrep"
8708 msgstr ""
8709
8710 #. type: verbatim
8711 #: ../src/guestfs-actions.pod:1489
8712 #, no-wrap
8713 msgid ""
8714 " char **\n"
8715 " guestfs_fgrep (guestfs_h *g,\n"
8716 "                const char *pattern,\n"
8717 "                const char *path);\n"
8718 "\n"
8719 msgstr ""
8720
8721 #. type: textblock
8722 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:989
8723 msgid ""
8724 "This calls the external C<fgrep> program and returns the matching lines."
8725 msgstr ""
8726
8727 #. type: =head2
8728 #: ../src/guestfs-actions.pod:1506
8729 msgid "guestfs_fgrepi"
8730 msgstr ""
8731
8732 #. type: verbatim
8733 #: ../src/guestfs-actions.pod:1508
8734 #, no-wrap
8735 msgid ""
8736 " char **\n"
8737 " guestfs_fgrepi (guestfs_h *g,\n"
8738 "                 const char *pattern,\n"
8739 "                 const char *path);\n"
8740 "\n"
8741 msgstr ""
8742
8743 #. type: textblock
8744 #: ../src/guestfs-actions.pod:1513 ../fish/guestfish-actions.pod:999
8745 msgid ""
8746 "This calls the external C<fgrep -i> program and returns the matching lines."
8747 msgstr ""
8748
8749 #. type: =head2
8750 #: ../src/guestfs-actions.pod:1525
8751 msgid "guestfs_file"
8752 msgstr ""
8753
8754 #. type: verbatim
8755 #: ../src/guestfs-actions.pod:1527
8756 #, no-wrap
8757 msgid ""
8758 " char *\n"
8759 " guestfs_file (guestfs_h *g,\n"
8760 "               const char *path);\n"
8761 "\n"
8762 msgstr ""
8763
8764 #. type: textblock
8765 #: ../src/guestfs-actions.pod:1531 ../fish/guestfish-actions.pod:1009
8766 msgid ""
8767 "This call uses the standard L<file(1)> command to determine the type or "
8768 "contents of the file."
8769 msgstr ""
8770
8771 #. type: textblock
8772 #: ../src/guestfs-actions.pod:1534 ../fish/guestfish-actions.pod:1012
8773 msgid ""
8774 "This call will also transparently look inside various types of compressed "
8775 "file."
8776 msgstr ""
8777
8778 #. type: textblock
8779 #: ../src/guestfs-actions.pod:1537 ../fish/guestfish-actions.pod:1015
8780 msgid ""
8781 "The exact command which runs is C<file -zb path>.  Note in particular that "
8782 "the filename is not prepended to the output (the I<-b> option)."
8783 msgstr ""
8784
8785 #. type: textblock
8786 #: ../src/guestfs-actions.pod:1541 ../fish/guestfish-actions.pod:1019
8787 msgid ""
8788 "The output depends on the output of the underlying L<file(1)> command and it "
8789 "can change in future in ways beyond our control.  In other words, the output "
8790 "is not guaranteed by the ABI."
8791 msgstr ""
8792
8793 #. type: textblock
8794 #: ../src/guestfs-actions.pod:1545
8795 msgid ""
8796 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
8797 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
8798 msgstr ""
8799
8800 #. type: =head2
8801 #: ../src/guestfs-actions.pod:1553
8802 msgid "guestfs_file_architecture"
8803 msgstr ""
8804
8805 #. type: verbatim
8806 #: ../src/guestfs-actions.pod:1555
8807 #, no-wrap
8808 msgid ""
8809 " char *\n"
8810 " guestfs_file_architecture (guestfs_h *g,\n"
8811 "                            const char *filename);\n"
8812 "\n"
8813 msgstr ""
8814
8815 #. type: textblock
8816 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1030
8817 msgid ""
8818 "This detects the architecture of the binary C<filename>, and returns it if "
8819 "known."
8820 msgstr ""
8821
8822 #. type: textblock
8823 #: ../src/guestfs-actions.pod:1562 ../fish/guestfish-actions.pod:1033
8824 msgid "Currently defined architectures are:"
8825 msgstr ""
8826
8827 #. type: =item
8828 #: ../src/guestfs-actions.pod:1566 ../fish/guestfish-actions.pod:1037
8829 msgid "\"i386\""
8830 msgstr "\"i386\""
8831
8832 #. type: textblock
8833 #: ../src/guestfs-actions.pod:1568 ../fish/guestfish-actions.pod:1039
8834 msgid ""
8835 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8836 "irrespective of the precise processor requirements of the binary."
8837 msgstr ""
8838
8839 #. type: =item
8840 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1042
8841 msgid "\"x86_64\""
8842 msgstr "\"x86_64\""
8843
8844 #. type: textblock
8845 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1044
8846 msgid "64 bit x86-64."
8847 msgstr ""
8848
8849 #. type: =item
8850 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1046
8851 msgid "\"sparc\""
8852 msgstr ""
8853
8854 #. type: textblock
8855 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1048
8856 msgid "32 bit SPARC."
8857 msgstr ""
8858
8859 #. type: =item
8860 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1050
8861 msgid "\"sparc64\""
8862 msgstr ""
8863
8864 #. type: textblock
8865 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1052
8866 msgid "64 bit SPARC V9 and above."
8867 msgstr ""
8868
8869 #. type: =item
8870 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1054
8871 msgid "\"ia64\""
8872 msgstr "\"ia64\""
8873
8874 #. type: textblock
8875 #: ../src/guestfs-actions.pod:1585 ../fish/guestfish-actions.pod:1056
8876 msgid "Intel Itanium."
8877 msgstr "Intel Itanium."
8878
8879 #. type: =item
8880 #: ../src/guestfs-actions.pod:1587 ../fish/guestfish-actions.pod:1058
8881 msgid "\"ppc\""
8882 msgstr ""
8883
8884 #. type: textblock
8885 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1060
8886 msgid "32 bit Power PC."
8887 msgstr ""
8888
8889 #. type: =item
8890 #: ../src/guestfs-actions.pod:1591 ../fish/guestfish-actions.pod:1062
8891 msgid "\"ppc64\""
8892 msgstr ""
8893
8894 #. type: textblock
8895 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1064
8896 msgid "64 bit Power PC."
8897 msgstr ""
8898
8899 #. type: textblock
8900 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1068
8901 msgid "Libguestfs may return other architecture strings in future."
8902 msgstr ""
8903
8904 #. type: textblock
8905 #: ../src/guestfs-actions.pod:1599 ../fish/guestfish-actions.pod:1070
8906 msgid "The function works on at least the following types of files:"
8907 msgstr ""
8908
8909 #. type: textblock
8910 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1076
8911 msgid "many types of Un*x and Linux binary"
8912 msgstr ""
8913
8914 #. type: textblock
8915 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1080
8916 msgid "many types of Un*x and Linux shared library"
8917 msgstr ""
8918
8919 #. type: textblock
8920 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1084
8921 msgid "Windows Win32 and Win64 binaries"
8922 msgstr ""
8923
8924 #. type: textblock
8925 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1088
8926 msgid "Windows Win32 and Win64 DLLs"
8927 msgstr ""
8928
8929 #. type: textblock
8930 #: ../src/guestfs-actions.pod:1619 ../fish/guestfish-actions.pod:1090
8931 msgid "Win32 binaries and DLLs return C<i386>."
8932 msgstr ""
8933
8934 #. type: textblock
8935 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1092
8936 msgid "Win64 binaries and DLLs return C<x86_64>."
8937 msgstr ""
8938
8939 #. type: textblock
8940 #: ../src/guestfs-actions.pod:1625 ../fish/guestfish-actions.pod:1096
8941 msgid "Linux kernel modules"
8942 msgstr ""
8943
8944 #. type: textblock
8945 #: ../src/guestfs-actions.pod:1629 ../fish/guestfish-actions.pod:1100
8946 msgid "Linux new-style initrd images"
8947 msgstr ""
8948
8949 #. type: textblock
8950 #: ../src/guestfs-actions.pod:1633 ../fish/guestfish-actions.pod:1104
8951 msgid "some non-x86 Linux vmlinuz kernels"
8952 msgstr ""
8953
8954 #. type: textblock
8955 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1108
8956 msgid "What it can't do currently:"
8957 msgstr ""
8958
8959 #. type: textblock
8960 #: ../src/guestfs-actions.pod:1643 ../fish/guestfish-actions.pod:1114
8961 msgid "static libraries (libfoo.a)"
8962 msgstr ""
8963
8964 #. type: textblock
8965 #: ../src/guestfs-actions.pod:1647 ../fish/guestfish-actions.pod:1118
8966 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8967 msgstr ""
8968
8969 #. type: textblock
8970 #: ../src/guestfs-actions.pod:1651 ../fish/guestfish-actions.pod:1122
8971 msgid "x86 Linux vmlinuz kernels"
8972 msgstr ""
8973
8974 #. type: textblock
8975 #: ../src/guestfs-actions.pod:1653 ../fish/guestfish-actions.pod:1124
8976 msgid ""
8977 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8978 "compressed code, and are horribly hard to unpack.  If you want to find the "
8979 "architecture of a kernel, use the architecture of the associated initrd or "
8980 "kernel module(s) instead."
8981 msgstr ""
8982
8983 #. type: textblock
8984 #: ../src/guestfs-actions.pod:1663 ../src/guestfs-actions.pod:1826
8985 #: ../src/guestfs-actions.pod:1843 ../src/guestfs-actions.pod:2531
8986 #: ../src/guestfs-actions.pod:2621 ../src/guestfs-actions.pod:2685
8987 #: ../src/guestfs-actions.pod:2868 ../src/guestfs-actions.pod:2886
8988 #: ../src/guestfs-actions.pod:2926 ../src/guestfs-actions.pod:3001
8989 #: ../src/guestfs-actions.pod:3092 ../src/guestfs-actions.pod:3321
8990 #: ../src/guestfs-actions.pod:3453
8991 msgid "(Added in 1.5.3)"
8992 msgstr ""
8993
8994 #. type: =head2
8995 #: ../src/guestfs-actions.pod:1665
8996 msgid "guestfs_filesize"
8997 msgstr ""
8998
8999 #. type: verbatim
9000 #: ../src/guestfs-actions.pod:1667
9001 #, no-wrap
9002 msgid ""
9003 " int64_t\n"
9004 " guestfs_filesize (guestfs_h *g,\n"
9005 "                   const char *file);\n"
9006 "\n"
9007 msgstr ""
9008
9009 #. type: textblock
9010 #: ../src/guestfs-actions.pod:1671 ../fish/guestfish-actions.pod:1135
9011 msgid "This command returns the size of C<file> in bytes."
9012 msgstr ""
9013
9014 #. type: textblock
9015 #: ../src/guestfs-actions.pod:1673
9016 msgid ""
9017 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
9018 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
9019 "devices, use C<guestfs_blockdev_getsize64>."
9020 msgstr ""
9021
9022 #. type: textblock
9023 #: ../src/guestfs-actions.pod:1679
9024 msgid "(Added in 1.0.82)"
9025 msgstr ""
9026
9027 #. type: =head2
9028 #: ../src/guestfs-actions.pod:1681
9029 msgid "guestfs_fill"
9030 msgstr ""
9031
9032 #. type: verbatim
9033 #: ../src/guestfs-actions.pod:1683
9034 #, no-wrap
9035 msgid ""
9036 " int\n"
9037 " guestfs_fill (guestfs_h *g,\n"
9038 "               int c,\n"
9039 "               int len,\n"
9040 "               const char *path);\n"
9041 "\n"
9042 msgstr ""
9043
9044 #. type: textblock
9045 #: ../src/guestfs-actions.pod:1689 ../fish/guestfish-actions.pod:1145
9046 msgid ""
9047 "This command creates a new file called C<path>.  The initial content of the "
9048 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9049 "[0..255]>."
9050 msgstr ""
9051
9052 #. type: textblock
9053 #: ../src/guestfs-actions.pod:1693
9054 msgid ""
9055 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9056 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
9057 "bytes use C<guestfs_fill_pattern>."
9058 msgstr ""
9059
9060 #. type: textblock
9061 #: ../src/guestfs-actions.pod:1705
9062 msgid "(Added in 1.0.79)"
9063 msgstr ""
9064
9065 #. type: =head2
9066 #: ../src/guestfs-actions.pod:1707
9067 msgid "guestfs_fill_pattern"
9068 msgstr ""
9069
9070 #. type: verbatim
9071 #: ../src/guestfs-actions.pod:1709
9072 #, no-wrap
9073 msgid ""
9074 " int\n"
9075 " guestfs_fill_pattern (guestfs_h *g,\n"
9076 "                       const char *pattern,\n"
9077 "                       int len,\n"
9078 "                       const char *path);\n"
9079 "\n"
9080 msgstr ""
9081
9082 #. type: textblock
9083 #: ../src/guestfs-actions.pod:1715
9084 msgid ""
9085 "This function is like C<guestfs_fill> except that it creates a new file of "
9086 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
9087 "pattern is truncated if necessary to ensure the length of the file is "
9088 "exactly C<len> bytes."
9089 msgstr ""
9090
9091 #. type: textblock
9092 #: ../src/guestfs-actions.pod:1727
9093 msgid "(Added in 1.3.12)"
9094 msgstr ""
9095
9096 #. type: =head2
9097 #: ../src/guestfs-actions.pod:1729
9098 msgid "guestfs_find"
9099 msgstr ""
9100
9101 #. type: verbatim
9102 #: ../src/guestfs-actions.pod:1731
9103 #, no-wrap
9104 msgid ""
9105 " char **\n"
9106 " guestfs_find (guestfs_h *g,\n"
9107 "               const char *directory);\n"
9108 "\n"
9109 msgstr ""
9110
9111 #. type: textblock
9112 #: ../src/guestfs-actions.pod:1735 ../fish/guestfish-actions.pod:1167
9113 msgid ""
9114 "This command lists out all files and directories, recursively, starting at "
9115 "C<directory>.  It is essentially equivalent to running the shell command "
9116 "C<find directory -print> but some post-processing happens on the output, "
9117 "described below."
9118 msgstr ""
9119
9120 #. type: textblock
9121 #: ../src/guestfs-actions.pod:1740 ../fish/guestfish-actions.pod:1172
9122 msgid ""
9123 "This returns a list of strings I<without any prefix>.  Thus if the directory "
9124 "structure was:"
9125 msgstr ""
9126
9127 #. type: verbatim
9128 #: ../src/guestfs-actions.pod:1743 ../fish/guestfish-actions.pod:1175
9129 #, no-wrap
9130 msgid ""
9131 " /tmp/a\n"
9132 " /tmp/b\n"
9133 " /tmp/c/d\n"
9134 "\n"
9135 msgstr ""
9136
9137 #. type: textblock
9138 #: ../src/guestfs-actions.pod:1747
9139 msgid ""
9140 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
9141 msgstr ""
9142
9143 #. type: verbatim
9144 #: ../src/guestfs-actions.pod:1750 ../fish/guestfish-actions.pod:1182
9145 #, no-wrap
9146 msgid ""
9147 " a\n"
9148 " b\n"
9149 " c\n"
9150 " c/d\n"
9151 "\n"
9152 msgstr ""
9153
9154 #. type: textblock
9155 #: ../src/guestfs-actions.pod:1755 ../fish/guestfish-actions.pod:1187
9156 msgid "If C<directory> is not a directory, then this command returns an error."
9157 msgstr ""
9158
9159 #. type: textblock
9160 #: ../src/guestfs-actions.pod:1758 ../fish/guestfish-actions.pod:1190
9161 msgid "The returned list is sorted."
9162 msgstr ""
9163
9164 #. type: textblock
9165 #: ../src/guestfs-actions.pod:1760
9166 msgid "See also C<guestfs_find0>."
9167 msgstr ""
9168
9169 #. type: textblock
9170 #: ../src/guestfs-actions.pod:1769 ../src/guestfs-actions.pod:4182
9171 #: ../src/guestfs-actions.pod:5780
9172 msgid "(Added in 1.0.27)"
9173 msgstr ""
9174
9175 #. type: =head2
9176 #: ../src/guestfs-actions.pod:1771
9177 msgid "guestfs_find0"
9178 msgstr ""
9179
9180 #. type: verbatim
9181 #: ../src/guestfs-actions.pod:1773
9182 #, no-wrap
9183 msgid ""
9184 " int\n"
9185 " guestfs_find0 (guestfs_h *g,\n"
9186 "                const char *directory,\n"
9187 "                const char *files);\n"
9188 "\n"
9189 msgstr ""
9190
9191 #. type: textblock
9192 #: ../src/guestfs-actions.pod:1778 ../fish/guestfish-actions.pod:1201
9193 msgid ""
9194 "This command lists out all files and directories, recursively, starting at "
9195 "C<directory>, placing the resulting list in the external file called "
9196 "C<files>."
9197 msgstr ""
9198
9199 #. type: textblock
9200 #: ../src/guestfs-actions.pod:1782
9201 msgid ""
9202 "This command works the same way as C<guestfs_find> with the following "
9203 "exceptions:"
9204 msgstr ""
9205
9206 #. type: textblock
9207 #: ../src/guestfs-actions.pod:1789 ../fish/guestfish-actions.pod:1212
9208 msgid "The resulting list is written to an external file."
9209 msgstr ""
9210
9211 #. type: textblock
9212 #: ../src/guestfs-actions.pod:1793 ../fish/guestfish-actions.pod:1216
9213 msgid ""
9214 "Items (filenames) in the result are separated by C<\\0> characters.  See "
9215 "L<find(1)> option I<-print0>."
9216 msgstr ""
9217
9218 #. type: textblock
9219 #: ../src/guestfs-actions.pod:1798 ../fish/guestfish-actions.pod:1221
9220 msgid "This command is not limited in the number of names that it can return."
9221 msgstr ""
9222
9223 #. type: textblock
9224 #: ../src/guestfs-actions.pod:1803 ../fish/guestfish-actions.pod:1226
9225 msgid "The result list is not sorted."
9226 msgstr ""
9227
9228 #. type: textblock
9229 #: ../src/guestfs-actions.pod:1809
9230 msgid "(Added in 1.0.74)"
9231 msgstr ""
9232
9233 #. type: =head2
9234 #: ../src/guestfs-actions.pod:1811
9235 msgid "guestfs_findfs_label"
9236 msgstr ""
9237
9238 #. type: verbatim
9239 #: ../src/guestfs-actions.pod:1813
9240 #, no-wrap
9241 msgid ""
9242 " char *\n"
9243 " guestfs_findfs_label (guestfs_h *g,\n"
9244 "                       const char *label);\n"
9245 "\n"
9246 msgstr ""
9247
9248 #. type: textblock
9249 #: ../src/guestfs-actions.pod:1817 ../fish/guestfish-actions.pod:1236
9250 msgid ""
9251 "This command searches the filesystems and returns the one which has the "
9252 "given label.  An error is returned if no such filesystem can be found."
9253 msgstr ""
9254
9255 #. type: textblock
9256 #: ../src/guestfs-actions.pod:1821
9257 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
9258 msgstr ""
9259
9260 #. type: =head2
9261 #: ../src/guestfs-actions.pod:1828
9262 msgid "guestfs_findfs_uuid"
9263 msgstr ""
9264
9265 #. type: verbatim
9266 #: ../src/guestfs-actions.pod:1830
9267 #, no-wrap
9268 msgid ""
9269 " char *\n"
9270 " guestfs_findfs_uuid (guestfs_h *g,\n"
9271 "                      const char *uuid);\n"
9272 "\n"
9273 msgstr ""
9274
9275 #. type: textblock
9276 #: ../src/guestfs-actions.pod:1834 ../fish/guestfish-actions.pod:1246
9277 msgid ""
9278 "This command searches the filesystems and returns the one which has the "
9279 "given UUID.  An error is returned if no such filesystem can be found."
9280 msgstr ""
9281
9282 #. type: textblock
9283 #: ../src/guestfs-actions.pod:1838
9284 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
9285 msgstr ""
9286
9287 #. type: =head2
9288 #: ../src/guestfs-actions.pod:1845
9289 msgid "guestfs_fsck"
9290 msgstr ""
9291
9292 #. type: verbatim
9293 #: ../src/guestfs-actions.pod:1847
9294 #, no-wrap
9295 msgid ""
9296 " int\n"
9297 " guestfs_fsck (guestfs_h *g,\n"
9298 "               const char *fstype,\n"
9299 "               const char *device);\n"
9300 "\n"
9301 msgstr ""
9302
9303 #. type: textblock
9304 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1256
9305 msgid ""
9306 "This runs the filesystem checker (fsck) on C<device> which should have "
9307 "filesystem type C<fstype>."
9308 msgstr ""
9309
9310 #. type: textblock
9311 #: ../src/guestfs-actions.pod:1855 ../fish/guestfish-actions.pod:1259
9312 msgid ""
9313 "The returned integer is the status.  See L<fsck(8)> for the list of status "
9314 "codes from C<fsck>."
9315 msgstr ""
9316
9317 #. type: textblock
9318 #: ../src/guestfs-actions.pod:1864 ../fish/guestfish-actions.pod:1268
9319 msgid "Multiple status codes can be summed together."
9320 msgstr ""
9321
9322 #. type: textblock
9323 #: ../src/guestfs-actions.pod:1868 ../fish/guestfish-actions.pod:1272
9324 msgid ""
9325 "A non-zero return code can mean \"success\", for example if errors have been "
9326 "corrected on the filesystem."
9327 msgstr ""
9328
9329 #. type: textblock
9330 #: ../src/guestfs-actions.pod:1873 ../fish/guestfish-actions.pod:1277
9331 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9332 msgstr ""
9333
9334 #. type: textblock
9335 #: ../src/guestfs-actions.pod:1878 ../fish/guestfish-actions.pod:1282
9336 msgid ""
9337 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9338 msgstr ""
9339
9340 #. type: textblock
9341 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:7512
9342 msgid "(Added in 1.0.16)"
9343 msgstr ""
9344
9345 #. type: =head2
9346 #: ../src/guestfs-actions.pod:1884
9347 msgid "guestfs_get_append"
9348 msgstr ""
9349
9350 #. type: verbatim
9351 #: ../src/guestfs-actions.pod:1886
9352 #, no-wrap
9353 msgid ""
9354 " const char *\n"
9355 " guestfs_get_append (guestfs_h *g);\n"
9356 "\n"
9357 msgstr ""
9358
9359 #. type: textblock
9360 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1288
9361 msgid ""
9362 "Return the additional kernel options which are added to the guest kernel "
9363 "command line."
9364 msgstr ""
9365
9366 #. type: textblock
9367 #: ../src/guestfs-actions.pod:1892 ../fish/guestfish-actions.pod:1291
9368 msgid "If C<NULL> then no options are added."
9369 msgstr ""
9370
9371 #. type: textblock
9372 #: ../src/guestfs-actions.pod:1894
9373 msgid ""
9374 "This function returns a string which may be NULL.  There is no way to return "
9375 "an error from this function.  The string is owned by the guest handle and "
9376 "must I<not> be freed."
9377 msgstr ""
9378
9379 #. type: textblock
9380 #: ../src/guestfs-actions.pod:1898 ../src/guestfs-actions.pod:5458
9381 #: ../src/guestfs-actions.pod:5938 ../src/guestfs-actions.pod:6359
9382 #: ../src/guestfs-actions.pod:6378 ../src/guestfs-actions.pod:6394
9383 #: ../src/guestfs-actions.pod:6418 ../src/guestfs-actions.pod:7175
9384 #: ../src/guestfs-actions.pod:7193 ../src/guestfs-actions.pod:7555
9385 msgid "(Added in 1.0.26)"
9386 msgstr ""
9387
9388 #. type: =head2
9389 #: ../src/guestfs-actions.pod:1900
9390 msgid "guestfs_get_attach_method"
9391 msgstr ""
9392
9393 #. type: verbatim
9394 #: ../src/guestfs-actions.pod:1902
9395 #, no-wrap
9396 msgid ""
9397 " char *\n"
9398 " guestfs_get_attach_method (guestfs_h *g);\n"
9399 "\n"
9400 msgstr ""
9401
9402 #. type: textblock
9403 #: ../src/guestfs-actions.pod:1905
9404 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
9405 msgstr ""
9406
9407 #. type: =head2
9408 #: ../src/guestfs-actions.pod:1910
9409 msgid "guestfs_get_autosync"
9410 msgstr ""
9411
9412 #. type: verbatim
9413 #: ../src/guestfs-actions.pod:1912
9414 #, no-wrap
9415 msgid ""
9416 " int\n"
9417 " guestfs_get_autosync (guestfs_h *g);\n"
9418 "\n"
9419 msgstr ""
9420
9421 #. type: textblock
9422 #: ../src/guestfs-actions.pod:1915 ../fish/guestfish-actions.pod:1303
9423 msgid "Get the autosync flag."
9424 msgstr ""
9425
9426 #. type: =head2
9427 #: ../src/guestfs-actions.pod:1921
9428 msgid "guestfs_get_direct"
9429 msgstr ""
9430
9431 #. type: verbatim
9432 #: ../src/guestfs-actions.pod:1923
9433 #, no-wrap
9434 msgid ""
9435 " int\n"
9436 " guestfs_get_direct (guestfs_h *g);\n"
9437 "\n"
9438 msgstr ""
9439
9440 #. type: textblock
9441 #: ../src/guestfs-actions.pod:1926 ../fish/guestfish-actions.pod:1309
9442 msgid "Return the direct appliance mode flag."
9443 msgstr ""
9444
9445 #. type: textblock
9446 #: ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:6007
9447 msgid "(Added in 1.0.72)"
9448 msgstr ""
9449
9450 #. type: =head2
9451 #: ../src/guestfs-actions.pod:1932
9452 msgid "guestfs_get_e2label"
9453 msgstr ""
9454
9455 #. type: verbatim
9456 #: ../src/guestfs-actions.pod:1934
9457 #, no-wrap
9458 msgid ""
9459 " char *\n"
9460 " guestfs_get_e2label (guestfs_h *g,\n"
9461 "                      const char *device);\n"
9462 "\n"
9463 msgstr ""
9464
9465 #. type: textblock
9466 #: ../src/guestfs-actions.pod:1938 ../fish/guestfish-actions.pod:1315
9467 msgid ""
9468 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9469 msgstr ""
9470
9471 #. type: textblock
9472 #: ../src/guestfs-actions.pod:1944 ../fish/guestfish-actions.pod:1318
9473 msgid ""
9474 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
9475 msgstr ""
9476
9477 #. type: textblock
9478 #: ../src/guestfs-actions.pod:1951 ../src/guestfs-actions.pod:1972
9479 #: ../src/guestfs-actions.pod:6025 ../src/guestfs-actions.pod:6044
9480 msgid "(Added in 1.0.15)"
9481 msgstr ""
9482
9483 #. type: =head2
9484 #: ../src/guestfs-actions.pod:1953
9485 msgid "guestfs_get_e2uuid"
9486 msgstr ""
9487
9488 #. type: verbatim
9489 #: ../src/guestfs-actions.pod:1955
9490 #, no-wrap
9491 msgid ""
9492 " char *\n"
9493 " guestfs_get_e2uuid (guestfs_h *g,\n"
9494 "                     const char *device);\n"
9495 "\n"
9496 msgstr ""
9497
9498 #. type: textblock
9499 #: ../src/guestfs-actions.pod:1959 ../fish/guestfish-actions.pod:1329
9500 msgid ""
9501 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9502 msgstr ""
9503
9504 #. type: textblock
9505 #: ../src/guestfs-actions.pod:1965 ../fish/guestfish-actions.pod:1332
9506 msgid ""
9507 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
9508 msgstr ""
9509
9510 #. type: =head2
9511 #: ../src/guestfs-actions.pod:1974
9512 msgid "guestfs_get_memsize"
9513 msgstr ""
9514
9515 #. type: verbatim
9516 #: ../src/guestfs-actions.pod:1976
9517 #, no-wrap
9518 msgid ""
9519 " int\n"
9520 " guestfs_get_memsize (guestfs_h *g);\n"
9521 "\n"
9522 msgstr ""
9523
9524 #. type: textblock
9525 #: ../src/guestfs-actions.pod:1979 ../fish/guestfish-actions.pod:1343
9526 msgid ""
9527 "This gets the memory size in megabytes allocated to the qemu subprocess."
9528 msgstr ""
9529
9530 #. type: textblock
9531 #: ../src/guestfs-actions.pod:1982
9532 msgid ""
9533 "If C<guestfs_set_memsize> was not called on this handle, and if "
9534 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9535 "value for memsize."
9536 msgstr ""
9537
9538 #. type: textblock
9539 #: ../src/guestfs-actions.pod:1986 ../src/guestfs-actions.pod:2067
9540 #: ../src/guestfs-actions.pod:6060 ../src/guestfs-actions.pod:6167
9541 #: ../fish/guestfish-actions.pod:1350 ../fish/guestfish-actions.pod:1401
9542 #: ../fish/guestfish-actions.pod:4043 ../fish/guestfish-actions.pod:4130
9543 msgid ""
9544 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9545 msgstr ""
9546
9547 #. type: textblock
9548 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:4473
9549 #: ../src/guestfs-actions.pod:4670 ../src/guestfs-actions.pod:4689
9550 #: ../src/guestfs-actions.pod:4708 ../src/guestfs-actions.pod:4720
9551 #: ../src/guestfs-actions.pod:4737 ../src/guestfs-actions.pod:4750
9552 #: ../src/guestfs-actions.pod:5683 ../src/guestfs-actions.pod:6065
9553 #: ../src/guestfs-actions.pod:6326 ../src/guestfs-actions.pod:6941
9554 msgid "(Added in 1.0.55)"
9555 msgstr ""
9556
9557 #. type: =head2
9558 #: ../src/guestfs-actions.pod:1993
9559 msgid "guestfs_get_network"
9560 msgstr ""
9561
9562 #. type: verbatim
9563 #: ../src/guestfs-actions.pod:1995
9564 #, no-wrap
9565 msgid ""
9566 " int\n"
9567 " guestfs_get_network (guestfs_h *g);\n"
9568 "\n"
9569 msgstr ""
9570
9571 #. type: textblock
9572 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1357
9573 msgid "This returns the enable network flag."
9574 msgstr ""
9575
9576 #. type: textblock
9577 #: ../src/guestfs-actions.pod:2002 ../src/guestfs-actions.pod:6084
9578 msgid "(Added in 1.5.4)"
9579 msgstr ""
9580
9581 #. type: =head2
9582 #: ../src/guestfs-actions.pod:2004
9583 msgid "guestfs_get_path"
9584 msgstr ""
9585
9586 #. type: verbatim
9587 #: ../src/guestfs-actions.pod:2006
9588 #, no-wrap
9589 msgid ""
9590 " const char *\n"
9591 " guestfs_get_path (guestfs_h *g);\n"
9592 "\n"
9593 msgstr ""
9594
9595 #. type: textblock
9596 #: ../src/guestfs-actions.pod:2009 ../fish/guestfish-actions.pod:1363
9597 msgid "Return the current search path."
9598 msgstr ""
9599
9600 #. type: textblock
9601 #: ../src/guestfs-actions.pod:2011 ../fish/guestfish-actions.pod:1365
9602 msgid ""
9603 "This is always non-NULL.  If it wasn't set already, then this will return "
9604 "the default path."
9605 msgstr ""
9606
9607 #. type: textblock
9608 #: ../src/guestfs-actions.pod:2014 ../src/guestfs-actions.pod:2043
9609 msgid ""
9610 "This function returns a string, or NULL on error.  The string is owned by "
9611 "the guest handle and must I<not> be freed."
9612 msgstr ""
9613
9614 #. type: =head2
9615 #: ../src/guestfs-actions.pod:2019
9616 msgid "guestfs_get_pid"
9617 msgstr ""
9618
9619 #. type: verbatim
9620 #: ../src/guestfs-actions.pod:2021
9621 #, no-wrap
9622 msgid ""
9623 " int\n"
9624 " guestfs_get_pid (guestfs_h *g);\n"
9625 "\n"
9626 msgstr ""
9627
9628 #. type: textblock
9629 #: ../src/guestfs-actions.pod:2024 ../fish/guestfish-actions.pod:1374
9630 msgid ""
9631 "Return the process ID of the qemu subprocess.  If there is no qemu "
9632 "subprocess, then this will return an error."
9633 msgstr ""
9634
9635 #. type: textblock
9636 #: ../src/guestfs-actions.pod:2027 ../fish/guestfish-actions.pod:1377
9637 msgid "This is an internal call used for debugging and testing."
9638 msgstr ""
9639
9640 #. type: textblock
9641 #: ../src/guestfs-actions.pod:2031
9642 msgid "(Added in 1.0.56)"
9643 msgstr ""
9644
9645 #. type: =head2
9646 #: ../src/guestfs-actions.pod:2033
9647 msgid "guestfs_get_qemu"
9648 msgstr ""
9649
9650 #. type: verbatim
9651 #: ../src/guestfs-actions.pod:2035
9652 #, no-wrap
9653 msgid ""
9654 " const char *\n"
9655 " guestfs_get_qemu (guestfs_h *g);\n"
9656 "\n"
9657 msgstr ""
9658
9659 #. type: textblock
9660 #: ../src/guestfs-actions.pod:2038 ../fish/guestfish-actions.pod:1383
9661 msgid "Return the current qemu binary."
9662 msgstr ""
9663
9664 #. type: textblock
9665 #: ../src/guestfs-actions.pod:2040 ../fish/guestfish-actions.pod:1385
9666 msgid ""
9667 "This is always non-NULL.  If it wasn't set already, then this will return "
9668 "the default qemu binary name."
9669 msgstr ""
9670
9671 #. type: textblock
9672 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:6129
9673 msgid "(Added in 1.0.6)"
9674 msgstr ""
9675
9676 #. type: =head2
9677 #: ../src/guestfs-actions.pod:2048
9678 msgid "guestfs_get_recovery_proc"
9679 msgstr ""
9680
9681 #. type: verbatim
9682 #: ../src/guestfs-actions.pod:2050
9683 #, no-wrap
9684 msgid ""
9685 " int\n"
9686 " guestfs_get_recovery_proc (guestfs_h *g);\n"
9687 "\n"
9688 msgstr ""
9689
9690 #. type: textblock
9691 #: ../src/guestfs-actions.pod:2053 ../fish/guestfish-actions.pod:1392
9692 msgid "Return the recovery process enabled flag."
9693 msgstr ""
9694
9695 #. type: textblock
9696 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:3571
9697 #: ../src/guestfs-actions.pod:3880 ../src/guestfs-actions.pod:4280
9698 #: ../src/guestfs-actions.pod:4312 ../src/guestfs-actions.pod:5388
9699 #: ../src/guestfs-actions.pod:5731 ../src/guestfs-actions.pod:6153
9700 #: ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:6864
9701 #: ../src/guestfs-actions.pod:7056
9702 msgid "(Added in 1.0.77)"
9703 msgstr ""
9704
9705 #. type: =head2
9706 #: ../src/guestfs-actions.pod:2059
9707 msgid "guestfs_get_selinux"
9708 msgstr ""
9709
9710 #. type: verbatim
9711 #: ../src/guestfs-actions.pod:2061
9712 #, no-wrap
9713 msgid ""
9714 " int\n"
9715 " guestfs_get_selinux (guestfs_h *g);\n"
9716 "\n"
9717 msgstr ""
9718
9719 #. type: textblock
9720 #: ../src/guestfs-actions.pod:2064
9721 msgid ""
9722 "This returns the current setting of the selinux flag which is passed to the "
9723 "appliance at boot time.  See C<guestfs_set_selinux>."
9724 msgstr ""
9725
9726 #. type: textblock
9727 #: ../src/guestfs-actions.pod:2072 ../src/guestfs-actions.pod:2135
9728 #: ../src/guestfs-actions.pod:6172 ../src/guestfs-actions.pod:6230
9729 msgid "(Added in 1.0.67)"
9730 msgstr ""
9731
9732 #. type: =head2
9733 #: ../src/guestfs-actions.pod:2074
9734 msgid "guestfs_get_state"
9735 msgstr ""
9736
9737 #. type: verbatim
9738 #: ../src/guestfs-actions.pod:2076
9739 #, no-wrap
9740 msgid ""
9741 " int\n"
9742 " guestfs_get_state (guestfs_h *g);\n"
9743 "\n"
9744 msgstr ""
9745
9746 #. type: textblock
9747 #: ../src/guestfs-actions.pod:2079 ../fish/guestfish-actions.pod:1408
9748 msgid ""
9749 "This returns the current state as an opaque integer.  This is only useful "
9750 "for printing debug and internal error messages."
9751 msgstr ""
9752
9753 #. type: textblock
9754 #: ../src/guestfs-actions.pod:2082 ../src/guestfs-actions.pod:3346
9755 #: ../src/guestfs-actions.pod:3375 ../src/guestfs-actions.pod:3436
9756 #: ../src/guestfs-actions.pod:3463 ../fish/guestfish-actions.pod:1411
9757 #: ../fish/guestfish-actions.pod:2331 ../fish/guestfish-actions.pod:2349
9758 #: ../fish/guestfish-actions.pod:2387 ../fish/guestfish-actions.pod:2403
9759 msgid "For more information on states, see L<guestfs(3)>."
9760 msgstr ""
9761
9762 #. type: =head2
9763 #: ../src/guestfs-actions.pod:2088
9764 msgid "guestfs_get_trace"
9765 msgstr ""
9766
9767 #. type: verbatim
9768 #: ../src/guestfs-actions.pod:2090
9769 #, no-wrap
9770 msgid ""
9771 " int\n"
9772 " guestfs_get_trace (guestfs_h *g);\n"
9773 "\n"
9774 msgstr ""
9775
9776 #. type: textblock
9777 #: ../src/guestfs-actions.pod:2093 ../fish/guestfish-actions.pod:1417
9778 msgid "Return the command trace flag."
9779 msgstr ""
9780
9781 #. type: =head2
9782 #: ../src/guestfs-actions.pod:2099
9783 msgid "guestfs_get_umask"
9784 msgstr ""
9785
9786 #. type: verbatim
9787 #: ../src/guestfs-actions.pod:2101
9788 #, no-wrap
9789 msgid ""
9790 " int\n"
9791 " guestfs_get_umask (guestfs_h *g);\n"
9792 "\n"
9793 msgstr ""
9794
9795 #. type: textblock
9796 #: ../src/guestfs-actions.pod:2104
9797 msgid ""
9798 "Return the current umask.  By default the umask is C<022> unless it has been "
9799 "set by calling C<guestfs_umask>."
9800 msgstr ""
9801
9802 #. type: =head2
9803 #: ../src/guestfs-actions.pod:2111
9804 msgid "guestfs_get_verbose"
9805 msgstr ""
9806
9807 #. type: verbatim
9808 #: ../src/guestfs-actions.pod:2113
9809 #, no-wrap
9810 msgid ""
9811 " int\n"
9812 " guestfs_get_verbose (guestfs_h *g);\n"
9813 "\n"
9814 msgstr ""
9815
9816 #. type: textblock
9817 #: ../src/guestfs-actions.pod:2116 ../fish/guestfish-actions.pod:1430
9818 msgid "This returns the verbose messages flag."
9819 msgstr ""
9820
9821 #. type: =head2
9822 #: ../src/guestfs-actions.pod:2122
9823 msgid "guestfs_getcon"
9824 msgstr ""
9825
9826 #. type: verbatim
9827 #: ../src/guestfs-actions.pod:2124
9828 #, no-wrap
9829 msgid ""
9830 " char *\n"
9831 " guestfs_getcon (guestfs_h *g);\n"
9832 "\n"
9833 msgstr ""
9834
9835 #. type: textblock
9836 #: ../src/guestfs-actions.pod:2127 ../fish/guestfish-actions.pod:1436
9837 msgid "This gets the SELinux security context of the daemon."
9838 msgstr ""
9839
9840 #. type: textblock
9841 #: ../src/guestfs-actions.pod:2129
9842 msgid ""
9843 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
9844 msgstr ""
9845
9846 #. type: =head2
9847 #: ../src/guestfs-actions.pod:2137
9848 msgid "guestfs_getxattr"
9849 msgstr ""
9850
9851 #. type: verbatim
9852 #: ../src/guestfs-actions.pod:2139
9853 #, no-wrap
9854 msgid ""
9855 " char *\n"
9856 " guestfs_getxattr (guestfs_h *g,\n"
9857 "                   const char *path,\n"
9858 "                   const char *name,\n"
9859 "                   size_t *size_r);\n"
9860 "\n"
9861 msgstr ""
9862
9863 #. type: textblock
9864 #: ../src/guestfs-actions.pod:2145
9865 msgid ""
9866 "Get a single extended attribute from file C<path> named C<name>.  This call "
9867 "follows symlinks.  If you want to lookup an extended attribute for the "
9868 "symlink itself, use C<guestfs_lgetxattr>."
9869 msgstr ""
9870
9871 #. type: textblock
9872 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:3585
9873 msgid ""
9874 "Normally it is better to get all extended attributes from a file in one go "
9875 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
9876 "implementations are buggy and do not provide a way to list out attributes.  "
9877 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
9878 "extended attributes you want in advance and call this function."
9879 msgstr ""
9880
9881 #. type: textblock
9882 #: ../src/guestfs-actions.pod:2156 ../src/guestfs-actions.pod:3592
9883 #: ../fish/guestfish-actions.pod:1456 ../fish/guestfish-actions.pod:2483
9884 msgid ""
9885 "Extended attribute values are blobs of binary data.  If there is no extended "
9886 "attribute named C<name>, this returns an error."
9887 msgstr ""
9888
9889 #. type: textblock
9890 #: ../src/guestfs-actions.pod:2159
9891 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
9892 msgstr ""
9893
9894 #. type: textblock
9895 #: ../src/guestfs-actions.pod:2161 ../src/guestfs-actions.pod:2352
9896 #: ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:3597
9897 #: ../src/guestfs-actions.pod:5381 ../src/guestfs-actions.pod:5407
9898 #: ../src/guestfs-actions.pod:5588
9899 msgid ""
9900 "This function returns a buffer, or NULL on error.  The size of the returned "
9901 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
9902 "after use>."
9903 msgstr ""
9904
9905 #. type: textblock
9906 #: ../src/guestfs-actions.pod:2165 ../src/guestfs-actions.pod:3601
9907 msgid "(Added in 1.7.24)"
9908 msgstr ""
9909
9910 #. type: =head2
9911 #: ../src/guestfs-actions.pod:2167
9912 msgid "guestfs_getxattrs"
9913 msgstr ""
9914
9915 #. type: verbatim
9916 #: ../src/guestfs-actions.pod:2169
9917 #, no-wrap
9918 msgid ""
9919 " struct guestfs_xattr_list *\n"
9920 " guestfs_getxattrs (guestfs_h *g,\n"
9921 "                    const char *path);\n"
9922 "\n"
9923 msgstr ""
9924
9925 #. type: textblock
9926 #: ../src/guestfs-actions.pod:2173 ../fish/guestfish-actions.pod:1465
9927 msgid ""
9928 "This call lists the extended attributes of the file or directory C<path>."
9929 msgstr ""
9930
9931 #. type: textblock
9932 #: ../src/guestfs-actions.pod:2176 ../fish/guestfish-actions.pod:1468
9933 msgid ""
9934 "At the system call level, this is a combination of the L<listxattr(2)> and "
9935 "L<getxattr(2)> calls."
9936 msgstr ""
9937
9938 #. type: textblock
9939 #: ../src/guestfs-actions.pod:2179
9940 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
9941 msgstr ""
9942
9943 #. type: textblock
9944 #: ../src/guestfs-actions.pod:2181 ../src/guestfs-actions.pod:3613
9945 #: ../src/guestfs-actions.pod:4276
9946 msgid ""
9947 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
9948 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
9949 msgstr ""
9950
9951 #. type: textblock
9952 #: ../src/guestfs-actions.pod:2185 ../src/guestfs-actions.pod:3617
9953 #: ../src/guestfs-actions.pod:3794 ../src/guestfs-actions.pod:3830
9954 #: ../src/guestfs-actions.pod:5761 ../src/guestfs-actions.pod:6249
9955 #: ../src/guestfs-actions.pod:7620
9956 msgid "(Added in 1.0.59)"
9957 msgstr ""
9958
9959 #. type: =head2
9960 #: ../src/guestfs-actions.pod:2187
9961 msgid "guestfs_glob_expand"
9962 msgstr ""
9963
9964 #. type: verbatim
9965 #: ../src/guestfs-actions.pod:2189
9966 #, no-wrap
9967 msgid ""
9968 " char **\n"
9969 " guestfs_glob_expand (guestfs_h *g,\n"
9970 "                      const char *pattern);\n"
9971 "\n"
9972 msgstr ""
9973
9974 #. type: textblock
9975 #: ../src/guestfs-actions.pod:2193 ../fish/guestfish-actions.pod:1477
9976 msgid ""
9977 "This command searches for all the pathnames matching C<pattern> according to "
9978 "the wildcard expansion rules used by the shell."
9979 msgstr ""
9980
9981 #. type: textblock
9982 #: ../src/guestfs-actions.pod:2197 ../fish/guestfish-actions.pod:1481
9983 msgid ""
9984 "If no paths match, then this returns an empty list (note: not an error)."
9985 msgstr ""
9986
9987 #. type: textblock
9988 #: ../src/guestfs-actions.pod:2200 ../fish/guestfish-actions.pod:1484
9989 msgid ""
9990 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9991 "GLOB_BRACE>.  See that manual page for more details."
9992 msgstr ""
9993
9994 #. type: textblock
9995 #: ../src/guestfs-actions.pod:2208 ../src/guestfs-actions.pod:6442
9996 #: ../src/guestfs-actions.pod:6459
9997 msgid "(Added in 1.0.50)"
9998 msgstr ""
9999
10000 #. type: =head2
10001 #: ../src/guestfs-actions.pod:2210
10002 msgid "guestfs_grep"
10003 msgstr ""
10004
10005 #. type: verbatim
10006 #: ../src/guestfs-actions.pod:2212
10007 #, no-wrap
10008 msgid ""
10009 " char **\n"
10010 " guestfs_grep (guestfs_h *g,\n"
10011 "               const char *regex,\n"
10012 "               const char *path);\n"
10013 "\n"
10014 msgstr ""
10015
10016 #. type: textblock
10017 #: ../src/guestfs-actions.pod:2217 ../fish/guestfish-actions.pod:1492
10018 msgid "This calls the external C<grep> program and returns the matching lines."
10019 msgstr ""
10020
10021 #. type: =head2
10022 #: ../src/guestfs-actions.pod:2229
10023 msgid "guestfs_grepi"
10024 msgstr ""
10025
10026 #. type: verbatim
10027 #: ../src/guestfs-actions.pod:2231
10028 #, no-wrap
10029 msgid ""
10030 " char **\n"
10031 " guestfs_grepi (guestfs_h *g,\n"
10032 "                const char *regex,\n"
10033 "                const char *path);\n"
10034 "\n"
10035 msgstr ""
10036
10037 #. type: textblock
10038 #: ../src/guestfs-actions.pod:2236 ../fish/guestfish-actions.pod:1502
10039 msgid ""
10040 "This calls the external C<grep -i> program and returns the matching lines."
10041 msgstr ""
10042
10043 #. type: =head2
10044 #: ../src/guestfs-actions.pod:2248
10045 msgid "guestfs_grub_install"
10046 msgstr ""
10047
10048 #. type: verbatim
10049 #: ../src/guestfs-actions.pod:2250
10050 #, no-wrap
10051 msgid ""
10052 " int\n"
10053 " guestfs_grub_install (guestfs_h *g,\n"
10054 "                       const char *root,\n"
10055 "                       const char *device);\n"
10056 "\n"
10057 msgstr ""
10058
10059 #. type: textblock
10060 #: ../src/guestfs-actions.pod:2255 ../fish/guestfish-actions.pod:1512
10061 msgid ""
10062 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
10063 "the root directory being C<root>."
10064 msgstr ""
10065
10066 #. type: textblock
10067 #: ../src/guestfs-actions.pod:2258 ../fish/guestfish-actions.pod:1515
10068 msgid ""
10069 "Note: If grub-install reports the error \"No suitable drive was found in the "
10070 "generated device map.\" it may be that you need to create a C</boot/grub/"
10071 "device.map> file first that contains the mapping between grub device names "
10072 "and Linux device names.  It is usually sufficient to create a file "
10073 "containing:"
10074 msgstr ""
10075
10076 #. type: verbatim
10077 #: ../src/guestfs-actions.pod:2265 ../fish/guestfish-actions.pod:1522
10078 #, no-wrap
10079 msgid ""
10080 " (hd0) /dev/vda\n"
10081 "\n"
10082 msgstr ""
10083
10084 #. type: textblock
10085 #: ../src/guestfs-actions.pod:2267 ../fish/guestfish-actions.pod:1524
10086 msgid "replacing C</dev/vda> with the name of the installation device."
10087 msgstr ""
10088
10089 #. type: textblock
10090 #: ../src/guestfs-actions.pod:2271
10091 msgid "(Added in 1.0.17)"
10092 msgstr ""
10093
10094 #. type: =head2
10095 #: ../src/guestfs-actions.pod:2273
10096 msgid "guestfs_head"
10097 msgstr ""
10098
10099 #. type: verbatim
10100 #: ../src/guestfs-actions.pod:2275
10101 #, no-wrap
10102 msgid ""
10103 " char **\n"
10104 " guestfs_head (guestfs_h *g,\n"
10105 "               const char *path);\n"
10106 "\n"
10107 msgstr ""
10108
10109 #. type: textblock
10110 #: ../src/guestfs-actions.pod:2279 ../fish/guestfish-actions.pod:1530
10111 msgid ""
10112 "This command returns up to the first 10 lines of a file as a list of strings."
10113 msgstr ""
10114
10115 #. type: =head2
10116 #: ../src/guestfs-actions.pod:2291
10117 msgid "guestfs_head_n"
10118 msgstr ""
10119
10120 #. type: verbatim
10121 #: ../src/guestfs-actions.pod:2293
10122 #, no-wrap
10123 msgid ""
10124 " char **\n"
10125 " guestfs_head_n (guestfs_h *g,\n"
10126 "                 int nrlines,\n"
10127 "                 const char *path);\n"
10128 "\n"
10129 msgstr ""
10130
10131 #. type: textblock
10132 #: ../src/guestfs-actions.pod:2298 ../fish/guestfish-actions.pod:1540
10133 msgid ""
10134 "If the parameter C<nrlines> is a positive number, this returns the first "
10135 "C<nrlines> lines of the file C<path>."
10136 msgstr ""
10137
10138 #. type: textblock
10139 #: ../src/guestfs-actions.pod:2301 ../fish/guestfish-actions.pod:1543
10140 msgid ""
10141 "If the parameter C<nrlines> is a negative number, this returns lines from "
10142 "the file C<path>, excluding the last C<nrlines> lines."
10143 msgstr ""
10144
10145 #. type: textblock
10146 #: ../src/guestfs-actions.pod:2304 ../src/guestfs-actions.pod:6739
10147 #: ../fish/guestfish-actions.pod:1546 ../fish/guestfish-actions.pod:4508
10148 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
10149 msgstr ""
10150
10151 #. type: =head2
10152 #: ../src/guestfs-actions.pod:2315
10153 msgid "guestfs_hexdump"
10154 msgstr ""
10155
10156 #. type: verbatim
10157 #: ../src/guestfs-actions.pod:2317
10158 #, no-wrap
10159 msgid ""
10160 " char *\n"
10161 " guestfs_hexdump (guestfs_h *g,\n"
10162 "                  const char *path);\n"
10163 "\n"
10164 msgstr ""
10165
10166 #. type: textblock
10167 #: ../src/guestfs-actions.pod:2321 ../fish/guestfish-actions.pod:1555
10168 msgid ""
10169 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
10170 "readable, canonical hex dump of the file."
10171 msgstr ""
10172
10173 #. type: textblock
10174 #: ../src/guestfs-actions.pod:2330 ../src/guestfs-actions.pod:6523
10175 #: ../src/guestfs-actions.pod:6578
10176 msgid "(Added in 1.0.22)"
10177 msgstr ""
10178
10179 #. type: =head2
10180 #: ../src/guestfs-actions.pod:2332
10181 msgid "guestfs_initrd_cat"
10182 msgstr ""
10183
10184 #. type: verbatim
10185 #: ../src/guestfs-actions.pod:2334
10186 #, no-wrap
10187 msgid ""
10188 " char *\n"
10189 " guestfs_initrd_cat (guestfs_h *g,\n"
10190 "                     const char *initrdpath,\n"
10191 "                     const char *filename,\n"
10192 "                     size_t *size_r);\n"
10193 "\n"
10194 msgstr ""
10195
10196 #. type: textblock
10197 #: ../src/guestfs-actions.pod:2340 ../fish/guestfish-actions.pod:1565
10198 msgid ""
10199 "This command unpacks the file C<filename> from the initrd file called "
10200 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
10201 "character."
10202 msgstr ""
10203
10204 #. type: textblock
10205 #: ../src/guestfs-actions.pod:2344 ../fish/guestfish-actions.pod:1569
10206 msgid ""
10207 "For example, in guestfish you could use the following command to examine the "
10208 "boot script (usually called C</init>)  contained in a Linux initrd or "
10209 "initramfs image:"
10210 msgstr ""
10211
10212 #. type: verbatim
10213 #: ../src/guestfs-actions.pod:2348 ../fish/guestfish-actions.pod:1573
10214 #, no-wrap
10215 msgid ""
10216 " initrd-cat /boot/initrd-<version>.img init\n"
10217 "\n"
10218 msgstr ""
10219
10220 #. type: textblock
10221 #: ../src/guestfs-actions.pod:2350
10222 msgid "See also C<guestfs_initrd_list>."
10223 msgstr ""
10224
10225 #. type: =head2
10226 #: ../src/guestfs-actions.pod:2361
10227 msgid "guestfs_initrd_list"
10228 msgstr ""
10229
10230 #. type: verbatim
10231 #: ../src/guestfs-actions.pod:2363
10232 #, no-wrap
10233 msgid ""
10234 " char **\n"
10235 " guestfs_initrd_list (guestfs_h *g,\n"
10236 "                      const char *path);\n"
10237 "\n"
10238 msgstr ""
10239
10240 #. type: textblock
10241 #: ../src/guestfs-actions.pod:2367 ../fish/guestfish-actions.pod:1584
10242 msgid "This command lists out files contained in an initrd."
10243 msgstr ""
10244
10245 #. type: textblock
10246 #: ../src/guestfs-actions.pod:2369 ../fish/guestfish-actions.pod:1586
10247 msgid ""
10248 "The files are listed without any initial C</> character.  The files are "
10249 "listed in the order they appear (not necessarily alphabetical).  Directory "
10250 "names are listed as separate items."
10251 msgstr ""
10252
10253 #. type: textblock
10254 #: ../src/guestfs-actions.pod:2373 ../fish/guestfish-actions.pod:1590
10255 msgid ""
10256 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
10257 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
10258 "files)."
10259 msgstr ""
10260
10261 #. type: =head2
10262 #: ../src/guestfs-actions.pod:2383
10263 msgid "guestfs_inotify_add_watch"
10264 msgstr ""
10265
10266 #. type: verbatim
10267 #: ../src/guestfs-actions.pod:2385
10268 #, no-wrap
10269 msgid ""
10270 " int64_t\n"
10271 " guestfs_inotify_add_watch (guestfs_h *g,\n"
10272 "                            const char *path,\n"
10273 "                            int mask);\n"
10274 "\n"
10275 msgstr ""
10276
10277 #. type: textblock
10278 #: ../src/guestfs-actions.pod:2390 ../fish/guestfish-actions.pod:1598
10279 msgid "Watch C<path> for the events listed in C<mask>."
10280 msgstr ""
10281
10282 #. type: textblock
10283 #: ../src/guestfs-actions.pod:2392 ../fish/guestfish-actions.pod:1600
10284 msgid ""
10285 "Note that if C<path> is a directory then events within that directory are "
10286 "watched, but this does I<not> happen recursively (in subdirectories)."
10287 msgstr ""
10288
10289 #. type: textblock
10290 #: ../src/guestfs-actions.pod:2396 ../fish/guestfish-actions.pod:1604
10291 msgid ""
10292 "Note for non-C or non-Linux callers: the inotify events are defined by the "
10293 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
10294 msgstr ""
10295
10296 #. type: =head2
10297 #: ../src/guestfs-actions.pod:2404
10298 msgid "guestfs_inotify_close"
10299 msgstr ""
10300
10301 #. type: verbatim
10302 #: ../src/guestfs-actions.pod:2406
10303 #, no-wrap
10304 msgid ""
10305 " int\n"
10306 " guestfs_inotify_close (guestfs_h *g);\n"
10307 "\n"
10308 msgstr ""
10309
10310 #. type: textblock
10311 #: ../src/guestfs-actions.pod:2409 ../fish/guestfish-actions.pod:1612
10312 msgid ""
10313 "This closes the inotify handle which was previously opened by inotify_init.  "
10314 "It removes all watches, throws away any pending events, and deallocates all "
10315 "resources."
10316 msgstr ""
10317
10318 #. type: =head2
10319 #: ../src/guestfs-actions.pod:2417
10320 msgid "guestfs_inotify_files"
10321 msgstr ""
10322
10323 #. type: verbatim
10324 #: ../src/guestfs-actions.pod:2419
10325 #, no-wrap
10326 msgid ""
10327 " char **\n"
10328 " guestfs_inotify_files (guestfs_h *g);\n"
10329 "\n"
10330 msgstr ""
10331
10332 #. type: textblock
10333 #: ../src/guestfs-actions.pod:2422
10334 msgid ""
10335 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
10336 "returns a list of pathnames of objects that were touched.  The returned "
10337 "pathnames are sorted and deduplicated."
10338 msgstr ""
10339
10340 #. type: =head2
10341 #: ../src/guestfs-actions.pod:2432
10342 msgid "guestfs_inotify_init"
10343 msgstr ""
10344
10345 #. type: verbatim
10346 #: ../src/guestfs-actions.pod:2434
10347 #, no-wrap
10348 msgid ""
10349 " int\n"
10350 " guestfs_inotify_init (guestfs_h *g,\n"
10351 "                       int maxevents);\n"
10352 "\n"
10353 msgstr ""
10354
10355 #. type: textblock
10356 #: ../src/guestfs-actions.pod:2438 ../fish/guestfish-actions.pod:1628
10357 msgid ""
10358 "This command creates a new inotify handle.  The inotify subsystem can be "
10359 "used to notify events which happen to objects in the guest filesystem."
10360 msgstr ""
10361
10362 #. type: textblock
10363 #: ../src/guestfs-actions.pod:2442
10364 msgid ""
10365 "C<maxevents> is the maximum number of events which will be queued up between "
10366 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
10367 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
10368 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
10369 "throws away events, but records the fact that it threw them away by setting "
10370 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
10371 "C<guestfs_inotify_read>)."
10372 msgstr ""
10373
10374 #. type: textblock
10375 #: ../src/guestfs-actions.pod:2452
10376 msgid ""
10377 "Before any events are generated, you have to add some watches to the "
10378 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
10379 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
10380 msgstr ""
10381
10382 #. type: textblock
10383 #: ../src/guestfs-actions.pod:2458
10384 msgid ""
10385 "Queued up events should be read periodically by calling "
10386 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
10387 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
10388 "often enough then you risk the internal queue overflowing."
10389 msgstr ""
10390
10391 #. type: textblock
10392 #: ../src/guestfs-actions.pod:2465
10393 msgid ""
10394 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
10395 "This also removes any watches automatically."
10396 msgstr ""
10397
10398 #. type: textblock
10399 #: ../src/guestfs-actions.pod:2469 ../fish/guestfish-actions.pod:1659
10400 msgid ""
10401 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
10402 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
10403 "that there is one global inotify handle per libguestfs instance."
10404 msgstr ""
10405
10406 #. type: =head2
10407 #: ../src/guestfs-actions.pod:2478
10408 msgid "guestfs_inotify_read"
10409 msgstr ""
10410
10411 #. type: verbatim
10412 #: ../src/guestfs-actions.pod:2480
10413 #, no-wrap
10414 msgid ""
10415 " struct guestfs_inotify_event_list *\n"
10416 " guestfs_inotify_read (guestfs_h *g);\n"
10417 "\n"
10418 msgstr ""
10419
10420 #. type: textblock
10421 #: ../src/guestfs-actions.pod:2483 ../fish/guestfish-actions.pod:1668
10422 msgid ""
10423 "Return the complete queue of events that have happened since the previous "
10424 "read call."
10425 msgstr ""
10426
10427 #. type: textblock
10428 #: ../src/guestfs-actions.pod:2486 ../fish/guestfish-actions.pod:1671
10429 msgid "If no events have happened, this returns an empty list."
10430 msgstr ""
10431
10432 #. type: textblock
10433 #: ../src/guestfs-actions.pod:2488 ../fish/guestfish-actions.pod:1673
10434 msgid ""
10435 "I<Note>: In order to make sure that all events have been read, you must call "
10436 "this function repeatedly until it returns an empty list.  The reason is that "
10437 "the call will read events up to the maximum appliance-to-host message size "
10438 "and leave remaining events in the queue."
10439 msgstr ""
10440
10441 #. type: textblock
10442 #: ../src/guestfs-actions.pod:2494
10443 msgid ""
10444 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
10445 "there was an error.  I<The caller must call "
10446 "C<guestfs_free_inotify_event_list> after use>."
10447 msgstr ""
10448
10449 #. type: =head2
10450 #: ../src/guestfs-actions.pod:2500
10451 msgid "guestfs_inotify_rm_watch"
10452 msgstr ""
10453
10454 #. type: verbatim
10455 #: ../src/guestfs-actions.pod:2502
10456 #, no-wrap
10457 msgid ""
10458 " int\n"
10459 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
10460 "                           int wd);\n"
10461 "\n"
10462 msgstr ""
10463
10464 #. type: textblock
10465 #: ../src/guestfs-actions.pod:2506
10466 msgid ""
10467 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
10468 msgstr ""
10469
10470 #. type: =head2
10471 #: ../src/guestfs-actions.pod:2513
10472 msgid "guestfs_inspect_get_arch"
10473 msgstr ""
10474
10475 #. type: verbatim
10476 #: ../src/guestfs-actions.pod:2515
10477 #, no-wrap
10478 msgid ""
10479 " char *\n"
10480 " guestfs_inspect_get_arch (guestfs_h *g,\n"
10481 "                           const char *root);\n"
10482 "\n"
10483 msgstr ""
10484
10485 #. type: textblock
10486 #: ../src/guestfs-actions.pod:2519
10487 msgid ""
10488 "This returns the architecture of the inspected operating system.  The "
10489 "possible return values are listed under C<guestfs_file_architecture>."
10490 msgstr ""
10491
10492 #. type: textblock
10493 #: ../src/guestfs-actions.pod:2523 ../fish/guestfish-actions.pod:1694
10494 msgid ""
10495 "If the architecture could not be determined, then the string C<unknown> is "
10496 "returned."
10497 msgstr ""
10498
10499 #. type: textblock
10500 #: ../src/guestfs-actions.pod:2526 ../src/guestfs-actions.pod:2616
10501 #: ../src/guestfs-actions.pod:2718 ../src/guestfs-actions.pod:2735
10502 #: ../src/guestfs-actions.pod:2864 ../src/guestfs-actions.pod:2947
10503 #: ../src/guestfs-actions.pod:2975 ../src/guestfs-actions.pod:2996
10504 #: ../src/guestfs-actions.pod:3047 ../src/guestfs-actions.pod:3087
10505 #: ../src/guestfs-actions.pod:3107 ../src/guestfs-actions.pod:3125
10506 #: ../src/guestfs-actions.pod:3142 ../src/guestfs-actions.pod:3156
10507 #: ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3272
10508 #: ../src/guestfs-actions.pod:3313 ../fish/guestfish-actions.pod:1697
10509 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1859
10510 #: ../fish/guestfish-actions.pod:1871 ../fish/guestfish-actions.pod:1955
10511 #: ../fish/guestfish-actions.pod:2016 ../fish/guestfish-actions.pod:2037
10512 #: ../fish/guestfish-actions.pod:2051 ../fish/guestfish-actions.pod:2091
10513 #: ../fish/guestfish-actions.pod:2123 ../fish/guestfish-actions.pod:2136
10514 #: ../fish/guestfish-actions.pod:2149 ../fish/guestfish-actions.pod:2159
10515 #: ../fish/guestfish-actions.pod:2169 ../fish/guestfish-actions.pod:2181
10516 #: ../fish/guestfish-actions.pod:2277 ../fish/guestfish-actions.pod:2311
10517 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10518 msgstr ""
10519
10520 #. type: =head2
10521 #: ../src/guestfs-actions.pod:2533
10522 msgid "guestfs_inspect_get_distro"
10523 msgstr ""
10524
10525 #. type: verbatim
10526 #: ../src/guestfs-actions.pod:2535
10527 #, no-wrap
10528 msgid ""
10529 " char *\n"
10530 " guestfs_inspect_get_distro (guestfs_h *g,\n"
10531 "                             const char *root);\n"
10532 "\n"
10533 msgstr ""
10534
10535 #. type: textblock
10536 #: ../src/guestfs-actions.pod:2539 ../fish/guestfish-actions.pod:1703
10537 msgid ""
10538 "This returns the distro (distribution) of the inspected operating system."
10539 msgstr ""
10540
10541 #. type: textblock
10542 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1706
10543 msgid "Currently defined distros are:"
10544 msgstr ""
10545
10546 #. type: =item
10547 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:1710
10548 msgid "\"archlinux\""
10549 msgstr "\"archlinux\""
10550
10551 #. type: textblock
10552 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1712
10553 msgid "Arch Linux."
10554 msgstr "Arch Linux."
10555
10556 #. type: =item
10557 #: ../src/guestfs-actions.pod:2550 ../fish/guestfish-actions.pod:1714
10558 #, fuzzy
10559 #| msgid "\"gentoo\""
10560 msgid "\"centos\""
10561 msgstr "\"gentoo\""
10562
10563 #. type: textblock
10564 #: ../src/guestfs-actions.pod:2552 ../fish/guestfish-actions.pod:1716
10565 msgid "CentOS."
10566 msgstr ""
10567
10568 #. type: =item
10569 #: ../src/guestfs-actions.pod:2554 ../fish/guestfish-actions.pod:1718
10570 msgid "\"debian\""
10571 msgstr "\"debian\""
10572
10573 #. type: textblock
10574 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:1720
10575 msgid "Debian."
10576 msgstr "Debian."
10577
10578 #. type: =item
10579 #: ../src/guestfs-actions.pod:2558 ../fish/guestfish-actions.pod:1722
10580 msgid "\"fedora\""
10581 msgstr "\"fedora\""
10582
10583 #. type: textblock
10584 #: ../src/guestfs-actions.pod:2560 ../fish/guestfish-actions.pod:1724
10585 msgid "Fedora."
10586 msgstr "Fedora."
10587
10588 #. type: =item
10589 #: ../src/guestfs-actions.pod:2562 ../fish/guestfish-actions.pod:1726
10590 msgid "\"gentoo\""
10591 msgstr "\"gentoo\""
10592
10593 #. type: textblock
10594 #: ../src/guestfs-actions.pod:2564 ../fish/guestfish-actions.pod:1728
10595 msgid "Gentoo."
10596 msgstr "Gentoo."
10597
10598 #. type: =item
10599 #: ../src/guestfs-actions.pod:2566 ../fish/guestfish-actions.pod:1730
10600 msgid "\"linuxmint\""
10601 msgstr "\"linuxmint\""
10602
10603 #. type: textblock
10604 #: ../src/guestfs-actions.pod:2568 ../fish/guestfish-actions.pod:1732
10605 msgid "Linux Mint."
10606 msgstr "Linux Mint."
10607
10608 #. type: =item
10609 #: ../src/guestfs-actions.pod:2570 ../fish/guestfish-actions.pod:1734
10610 msgid "\"mandriva\""
10611 msgstr "\"mandriva\""
10612
10613 #. type: textblock
10614 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:1736
10615 msgid "Mandriva."
10616 msgstr "Mandriva."
10617
10618 #. type: =item
10619 #: ../src/guestfs-actions.pod:2574 ../fish/guestfish-actions.pod:1738
10620 msgid "\"meego\""
10621 msgstr "\"meego\""
10622
10623 #. type: textblock
10624 #: ../src/guestfs-actions.pod:2576 ../fish/guestfish-actions.pod:1740
10625 msgid "MeeGo."
10626 msgstr "MeeGo."
10627
10628 #. type: =item
10629 #: ../src/guestfs-actions.pod:2578 ../fish/guestfish-actions.pod:1742
10630 msgid "\"pardus\""
10631 msgstr "\"pardus\""
10632
10633 #. type: textblock
10634 #: ../src/guestfs-actions.pod:2580 ../fish/guestfish-actions.pod:1744
10635 msgid "Pardus."
10636 msgstr "Pardus."
10637
10638 #. type: =item
10639 #: ../src/guestfs-actions.pod:2582 ../fish/guestfish-actions.pod:1746
10640 msgid "\"redhat-based\""
10641 msgstr "\"redhat-based\""
10642
10643 #. type: textblock
10644 #: ../src/guestfs-actions.pod:2584 ../fish/guestfish-actions.pod:1748
10645 msgid "Some Red Hat-derived distro."
10646 msgstr "Дистрибутив, що походить від Red Hat."
10647
10648 #. type: =item
10649 #: ../src/guestfs-actions.pod:2586 ../fish/guestfish-actions.pod:1750
10650 msgid "\"rhel\""
10651 msgstr "\"rhel\""
10652
10653 #. type: textblock
10654 #: ../src/guestfs-actions.pod:2588 ../fish/guestfish-actions.pod:1752
10655 #, fuzzy
10656 #| msgid "Red Hat Enterprise Linux and some derivatives."
10657 msgid "Red Hat Enterprise Linux."
10658 msgstr "Red Hat Enterprise Linux та деякі з похідних дистрибутивів."
10659
10660 #. type: =item
10661 #: ../src/guestfs-actions.pod:2590 ../fish/guestfish-actions.pod:1754
10662 msgid "\"scientificlinux\""
10663 msgstr ""
10664
10665 #. type: textblock
10666 #: ../src/guestfs-actions.pod:2592 ../fish/guestfish-actions.pod:1756
10667 msgid "Scientific Linux."
10668 msgstr ""
10669
10670 #. type: =item
10671 #: ../src/guestfs-actions.pod:2594 ../fish/guestfish-actions.pod:1758
10672 msgid "\"slackware\""
10673 msgstr ""
10674
10675 #. type: textblock
10676 #: ../src/guestfs-actions.pod:2596 ../fish/guestfish-actions.pod:1760
10677 msgid "Slackware."
10678 msgstr ""
10679
10680 #. type: =item
10681 #: ../src/guestfs-actions.pod:2598 ../fish/guestfish-actions.pod:1762
10682 msgid "\"ubuntu\""
10683 msgstr "\"ubuntu\""
10684
10685 #. type: textblock
10686 #: ../src/guestfs-actions.pod:2600 ../fish/guestfish-actions.pod:1764
10687 msgid "Ubuntu."
10688 msgstr "Ubuntu."
10689
10690 #. type: =item
10691 #: ../src/guestfs-actions.pod:2602 ../src/guestfs-actions.pod:2709
10692 #: ../src/guestfs-actions.pod:3078 ../fish/guestfish-actions.pod:1766
10693 #: ../fish/guestfish-actions.pod:1850 ../fish/guestfish-actions.pod:2114
10694 msgid "\"unknown\""
10695 msgstr "\"unknown\""
10696
10697 #. type: textblock
10698 #: ../src/guestfs-actions.pod:2604 ../fish/guestfish-actions.pod:1768
10699 msgid "The distro could not be determined."
10700 msgstr "Дистрибутив, тип якого не вдалося визначити."
10701
10702 #. type: =item
10703 #: ../src/guestfs-actions.pod:2606 ../src/guestfs-actions.pod:3070
10704 #: ../fish/guestfish-actions.pod:1770 ../fish/guestfish-actions.pod:2106
10705 msgid "\"windows\""
10706 msgstr "\"windows\""
10707
10708 #. type: textblock
10709 #: ../src/guestfs-actions.pod:2608 ../fish/guestfish-actions.pod:1772
10710 msgid ""
10711 "Windows does not have distributions.  This string is returned if the OS type "
10712 "is Windows."
10713 msgstr ""
10714
10715 #. type: textblock
10716 #: ../src/guestfs-actions.pod:2613 ../src/guestfs-actions.pod:2715
10717 #: ../src/guestfs-actions.pod:3084 ../fish/guestfish-actions.pod:1777
10718 #: ../fish/guestfish-actions.pod:1856 ../fish/guestfish-actions.pod:2120
10719 msgid ""
10720 "Future versions of libguestfs may return other strings here.  The caller "
10721 "should be prepared to handle any string."
10722 msgstr ""
10723
10724 #. type: =head2
10725 #: ../src/guestfs-actions.pod:2623
10726 msgid "guestfs_inspect_get_drive_mappings"
10727 msgstr ""
10728
10729 #. type: verbatim
10730 #: ../src/guestfs-actions.pod:2625
10731 #, no-wrap
10732 msgid ""
10733 " char **\n"
10734 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
10735 "                                     const char *root);\n"
10736 "\n"
10737 msgstr ""
10738
10739 #. type: textblock
10740 #: ../src/guestfs-actions.pod:2629 ../fish/guestfish-actions.pod:1786
10741 msgid ""
10742 "This call is useful for Windows which uses a primitive system of assigning "
10743 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10744 "Windows Registry to find out how disks/partitions are mapped to drive "
10745 "letters, and returns a hash table as in the example below:"
10746 msgstr ""
10747
10748 #. type: verbatim
10749 #: ../src/guestfs-actions.pod:2635 ../fish/guestfish-actions.pod:1792
10750 #, no-wrap
10751 msgid ""
10752 " C      =>     /dev/vda2\n"
10753 " E      =>     /dev/vdb1\n"
10754 " F      =>     /dev/vdc1\n"
10755 "\n"
10756 msgstr ""
10757
10758 #. type: textblock
10759 #: ../src/guestfs-actions.pod:2639 ../fish/guestfish-actions.pod:1796
10760 msgid ""
10761 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10762 "and just contains the drive letter, without the customary colon separator "
10763 "character."
10764 msgstr ""
10765
10766 #. type: textblock
10767 #: ../src/guestfs-actions.pod:2643 ../fish/guestfish-actions.pod:1800
10768 msgid ""
10769 "In future we may support other operating systems that also used drive "
10770 "letters, but the keys for those might not be case insensitive and might be "
10771 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10772 "C<h1> etc."
10773 msgstr ""
10774
10775 #. type: textblock
10776 #: ../src/guestfs-actions.pod:2648 ../fish/guestfish-actions.pod:1805
10777 msgid ""
10778 "For Windows guests, currently only hard drive mappings are returned.  "
10779 "Removable disks (eg. DVD-ROMs) are ignored."
10780 msgstr ""
10781
10782 #. type: textblock
10783 #: ../src/guestfs-actions.pod:2651 ../fish/guestfish-actions.pod:1808
10784 msgid ""
10785 "For guests that do not use drive mappings, or if the drive mappings could "
10786 "not be determined, this returns an empty hash table."
10787 msgstr ""
10788
10789 #. type: textblock
10790 #: ../src/guestfs-actions.pod:2654
10791 msgid ""
10792 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10793 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
10794 msgstr ""
10795
10796 #. type: textblock
10797 #: ../src/guestfs-actions.pod:2658 ../src/guestfs-actions.pod:2920
10798 #: ../src/guestfs-actions.pod:3682 ../src/guestfs-actions.pod:4947
10799 #: ../src/guestfs-actions.pod:6880
10800 msgid ""
10801 "This function returns a NULL-terminated array of strings, or NULL if there "
10802 "was an error.  The array of strings will always have length C<2n+1>, where "
10803 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
10804 "caller must free the strings and the array after use>."
10805 msgstr ""
10806
10807 #. type: =head2
10808 #: ../src/guestfs-actions.pod:2664
10809 msgid "guestfs_inspect_get_filesystems"
10810 msgstr ""
10811
10812 #. type: verbatim
10813 #: ../src/guestfs-actions.pod:2666
10814 #, no-wrap
10815 msgid ""
10816 " char **\n"
10817 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
10818 "                                  const char *root);\n"
10819 "\n"
10820 msgstr ""
10821
10822 #. type: textblock
10823 #: ../src/guestfs-actions.pod:2670 ../fish/guestfish-actions.pod:1819
10824 msgid ""
10825 "This returns a list of all the filesystems that we think are associated with "
10826 "this operating system.  This includes the root filesystem, other ordinary "
10827 "filesystems, and non-mounted devices like swap partitions."
10828 msgstr ""
10829
10830 #. type: textblock
10831 #: ../src/guestfs-actions.pod:2675 ../fish/guestfish-actions.pod:1824
10832 msgid ""
10833 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10834 "to be shared between operating systems."
10835 msgstr ""
10836
10837 #. type: textblock
10838 #: ../src/guestfs-actions.pod:2678
10839 msgid ""
10840 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10841 "C<guestfs_inspect_get_mountpoints>."
10842 msgstr ""
10843
10844 #. type: =head2
10845 #: ../src/guestfs-actions.pod:2687
10846 msgid "guestfs_inspect_get_format"
10847 msgstr ""
10848
10849 #. type: verbatim
10850 #: ../src/guestfs-actions.pod:2689
10851 #, no-wrap
10852 msgid ""
10853 " char *\n"
10854 " guestfs_inspect_get_format (guestfs_h *g,\n"
10855 "                             const char *root);\n"
10856 "\n"
10857 msgstr ""
10858
10859 #. type: textblock
10860 #: ../src/guestfs-actions.pod:2693 ../fish/guestfish-actions.pod:1834
10861 msgid ""
10862 "This returns the format of the inspected operating system.  You can use it "
10863 "to detect install images, live CDs and similar."
10864 msgstr ""
10865
10866 #. type: textblock
10867 #: ../src/guestfs-actions.pod:2696 ../fish/guestfish-actions.pod:1837
10868 msgid "Currently defined formats are:"
10869 msgstr ""
10870
10871 #. type: =item
10872 #: ../src/guestfs-actions.pod:2700 ../fish/guestfish-actions.pod:1841
10873 msgid "\"installed\""
10874 msgstr "\"installed\""
10875
10876 #. type: textblock
10877 #: ../src/guestfs-actions.pod:2702 ../fish/guestfish-actions.pod:1843
10878 msgid "This is an installed operating system."
10879 msgstr "Це встановлена операційна система."
10880
10881 #. type: =item
10882 #: ../src/guestfs-actions.pod:2704 ../fish/guestfish-actions.pod:1845
10883 msgid "\"installer\""
10884 msgstr ""
10885
10886 #. type: textblock
10887 #: ../src/guestfs-actions.pod:2706 ../fish/guestfish-actions.pod:1847
10888 msgid ""
10889 "The disk image being inspected is not an installed operating system, but a "
10890 "I<bootable> install disk, live CD, or similar."
10891 msgstr ""
10892
10893 #. type: textblock
10894 #: ../src/guestfs-actions.pod:2711 ../fish/guestfish-actions.pod:1852
10895 msgid "The format of this disk image is not known."
10896 msgstr ""
10897
10898 #. type: =head2
10899 #: ../src/guestfs-actions.pod:2723
10900 msgid "guestfs_inspect_get_hostname"
10901 msgstr ""
10902
10903 #. type: verbatim
10904 #: ../src/guestfs-actions.pod:2725
10905 #, no-wrap
10906 msgid ""
10907 " char *\n"
10908 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
10909 "                               const char *root);\n"
10910 "\n"
10911 msgstr ""
10912
10913 #. type: textblock
10914 #: ../src/guestfs-actions.pod:2729 ../fish/guestfish-actions.pod:1865
10915 msgid ""
10916 "This function returns the hostname of the operating system as found by "
10917 "inspection of the guest's configuration files."
10918 msgstr ""
10919
10920 #. type: textblock
10921 #: ../src/guestfs-actions.pod:2732 ../fish/guestfish-actions.pod:1868
10922 msgid ""
10923 "If the hostname could not be determined, then the string C<unknown> is "
10924 "returned."
10925 msgstr ""
10926
10927 #. type: textblock
10928 #: ../src/guestfs-actions.pod:2740
10929 msgid "(Added in 1.7.9)"
10930 msgstr ""
10931
10932 #. type: =head2
10933 #: ../src/guestfs-actions.pod:2742
10934 msgid "guestfs_inspect_get_icon"
10935 msgstr ""
10936
10937 #. type: verbatim
10938 #: ../src/guestfs-actions.pod:2744
10939 #, no-wrap
10940 msgid ""
10941 " char *\n"
10942 " guestfs_inspect_get_icon (guestfs_h *g,\n"
10943 "                           const char *root,\n"
10944 "                           size_t *size_r,\n"
10945 "                           ...);\n"
10946 "\n"
10947 msgstr ""
10948
10949 #. type: verbatim
10950 #: ../src/guestfs-actions.pod:2755
10951 #, no-wrap
10952 msgid ""
10953 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
10954 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
10955 "\n"
10956 msgstr ""
10957
10958 #. type: textblock
10959 #: ../src/guestfs-actions.pod:2758 ../fish/guestfish-actions.pod:1877
10960 msgid ""
10961 "This function returns an icon corresponding to the inspected operating "
10962 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10963 "to PNG if necessary)."
10964 msgstr ""
10965
10966 #. type: textblock
10967 #: ../src/guestfs-actions.pod:2762 ../fish/guestfish-actions.pod:1881
10968 msgid ""
10969 "If it was not possible to get an icon this function returns a zero-length "
10970 "(non-NULL) buffer.  I<Callers must check for this case>."
10971 msgstr ""
10972
10973 #. type: textblock
10974 #: ../src/guestfs-actions.pod:2765 ../fish/guestfish-actions.pod:1884
10975 msgid ""
10976 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10977 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10978 "this file will be returned.  You can disable favicons by passing the "
10979 "optional C<favicon> boolean as false (default is true)."
10980 msgstr ""
10981
10982 #. type: textblock
10983 #: ../src/guestfs-actions.pod:2771 ../fish/guestfish-actions.pod:1890
10984 msgid ""
10985 "If finding the favicon fails, then we look in other places in the guest for "
10986 "a suitable icon."
10987 msgstr ""
10988
10989 #. type: textblock
10990 #: ../src/guestfs-actions.pod:2774 ../fish/guestfish-actions.pod:1893
10991 msgid ""
10992 "If the optional C<highquality> boolean is true then only high quality icons "
10993 "are returned, which means only icons of high resolution with an alpha "
10994 "channel.  The default (false) is to return any icon we can, even if it is of "
10995 "substandard quality."
10996 msgstr ""
10997
10998 #. type: textblock
10999 #: ../src/guestfs-actions.pod:2785 ../fish/guestfish-actions.pod:1904
11000 msgid ""
11001 "Unlike most other inspection API calls, the guest's disks must be mounted up "
11002 "before you call this, since it needs to read information from the guest "
11003 "filesystem during the call."
11004 msgstr ""
11005
11006 #. type: textblock
11007 #: ../src/guestfs-actions.pod:2791 ../fish/guestfish-actions.pod:1910
11008 msgid ""
11009 "B<Security:> The icon data comes from the untrusted guest, and should be "
11010 "treated with caution.  PNG files have been known to contain exploits.  "
11011 "Ensure that libpng (or other relevant libraries) are fully up to date before "
11012 "trying to process or display the icon."
11013 msgstr ""
11014
11015 #. type: textblock
11016 #: ../src/guestfs-actions.pod:2799 ../fish/guestfish-actions.pod:1918
11017 msgid ""
11018 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
11019 "tries to return the largest, highest quality icon available.  The "
11020 "application must scale the icon to the required size."
11021 msgstr ""
11022
11023 #. type: textblock
11024 #: ../src/guestfs-actions.pod:2806 ../fish/guestfish-actions.pod:1925
11025 msgid ""
11026 "Extracting icons from Windows guests requires the external C<wrestool> "
11027 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
11028 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
11029 "installed separately."
11030 msgstr ""
11031
11032 #. type: textblock
11033 #: ../src/guestfs-actions.pod:2813 ../fish/guestfish-actions.pod:1932
11034 msgid ""
11035 "Operating system icons are usually trademarks.  Seek legal advice before "
11036 "using trademarks in applications."
11037 msgstr ""
11038
11039 #. type: =head2
11040 #: ../src/guestfs-actions.pod:2822
11041 msgid "guestfs_inspect_get_icon_va"
11042 msgstr ""
11043
11044 #. type: verbatim
11045 #: ../src/guestfs-actions.pod:2824
11046 #, no-wrap
11047 msgid ""
11048 " char *\n"
11049 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
11050 "                              const char *root,\n"
11051 "                              size_t *size_r,\n"
11052 "                              va_list args);\n"
11053 "\n"
11054 msgstr ""
11055
11056 #. type: textblock
11057 #: ../src/guestfs-actions.pod:2830
11058 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
11059 msgstr ""
11060
11061 #. type: =head2
11062 #: ../src/guestfs-actions.pod:2834
11063 msgid "guestfs_inspect_get_icon_argv"
11064 msgstr ""
11065
11066 #. type: verbatim
11067 #: ../src/guestfs-actions.pod:2836
11068 #, no-wrap
11069 msgid ""
11070 " char *\n"
11071 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
11072 "                                const char *root,\n"
11073 "                                size_t *size_r,\n"
11074 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
11075 "\n"
11076 msgstr ""
11077
11078 #. type: textblock
11079 #: ../src/guestfs-actions.pod:2842
11080 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
11081 msgstr ""
11082
11083 #. type: =head2
11084 #: ../src/guestfs-actions.pod:2846
11085 msgid "guestfs_inspect_get_major_version"
11086 msgstr ""
11087
11088 #. type: verbatim
11089 #: ../src/guestfs-actions.pod:2848
11090 #, no-wrap
11091 msgid ""
11092 " int\n"
11093 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
11094 "                                    const char *root);\n"
11095 "\n"
11096 msgstr ""
11097
11098 #. type: textblock
11099 #: ../src/guestfs-actions.pod:2852 ../fish/guestfish-actions.pod:1943
11100 msgid ""
11101 "This returns the major version number of the inspected operating system."
11102 msgstr ""
11103
11104 #. type: textblock
11105 #: ../src/guestfs-actions.pod:2855 ../fish/guestfish-actions.pod:1946
11106 msgid ""
11107 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
11108 "popular public names used by the operating system.  Notably the operating "
11109 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
11110 "1).  You can find out the real versions corresponding to releases of Windows "
11111 "by consulting Wikipedia or MSDN."
11112 msgstr ""
11113
11114 #. type: textblock
11115 #: ../src/guestfs-actions.pod:2862 ../src/guestfs-actions.pod:2879
11116 #: ../fish/guestfish-actions.pod:1953 ../fish/guestfish-actions.pod:1964
11117 msgid "If the version could not be determined, then C<0> is returned."
11118 msgstr ""
11119
11120 #. type: =head2
11121 #: ../src/guestfs-actions.pod:2870
11122 msgid "guestfs_inspect_get_minor_version"
11123 msgstr ""
11124
11125 #. type: verbatim
11126 #: ../src/guestfs-actions.pod:2872
11127 #, no-wrap
11128 msgid ""
11129 " int\n"
11130 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
11131 "                                    const char *root);\n"
11132 "\n"
11133 msgstr ""
11134
11135 #. type: textblock
11136 #: ../src/guestfs-actions.pod:2876 ../fish/guestfish-actions.pod:1961
11137 msgid ""
11138 "This returns the minor version number of the inspected operating system."
11139 msgstr ""
11140
11141 #. type: textblock
11142 #: ../src/guestfs-actions.pod:2881
11143 msgid ""
11144 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11145 "C<guestfs_inspect_get_major_version>."
11146 msgstr ""
11147
11148 #. type: =head2
11149 #: ../src/guestfs-actions.pod:2888
11150 msgid "guestfs_inspect_get_mountpoints"
11151 msgstr ""
11152
11153 #. type: verbatim
11154 #: ../src/guestfs-actions.pod:2890
11155 #, no-wrap
11156 msgid ""
11157 " char **\n"
11158 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
11159 "                                  const char *root);\n"
11160 "\n"
11161 msgstr ""
11162
11163 #. type: textblock
11164 #: ../src/guestfs-actions.pod:2894 ../fish/guestfish-actions.pod:1973
11165 msgid ""
11166 "This returns a hash of where we think the filesystems associated with this "
11167 "operating system should be mounted.  Callers should note that this is at "
11168 "best an educated guess made by reading configuration files such as C</etc/"
11169 "fstab>.  I<In particular note> that this may return filesystems which are "
11170 "non-existent or not mountable and callers should be prepared to handle or "
11171 "ignore failures if they try to mount them."
11172 msgstr ""
11173
11174 #. type: textblock
11175 #: ../src/guestfs-actions.pod:2903 ../fish/guestfish-actions.pod:1982
11176 msgid ""
11177 "Each element in the returned hashtable has a key which is the path of the "
11178 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
11179 "mounted there (eg. C</dev/sda1>)."
11180 msgstr ""
11181
11182 #. type: textblock
11183 #: ../src/guestfs-actions.pod:2908 ../fish/guestfish-actions.pod:1987
11184 msgid ""
11185 "Non-mounted devices such as swap devices are I<not> returned in this list."
11186 msgstr ""
11187
11188 #. type: textblock
11189 #: ../src/guestfs-actions.pod:2911
11190 msgid ""
11191 "For operating systems like Windows which still use drive letters, this call "
11192 "will only return an entry for the first drive \"mounted on\" C</>.  For "
11193 "information about the mapping of drive letters to partitions, see "
11194 "C<guestfs_inspect_get_drive_mappings>."
11195 msgstr ""
11196
11197 #. type: textblock
11198 #: ../src/guestfs-actions.pod:2917
11199 msgid ""
11200 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11201 "C<guestfs_inspect_get_filesystems>."
11202 msgstr ""
11203
11204 #. type: =head2
11205 #: ../src/guestfs-actions.pod:2928
11206 msgid "guestfs_inspect_get_package_format"
11207 msgstr ""
11208
11209 #. type: verbatim
11210 #: ../src/guestfs-actions.pod:2930
11211 #, no-wrap
11212 msgid ""
11213 " char *\n"
11214 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
11215 "                                     const char *root);\n"
11216 "\n"
11217 msgstr ""
11218
11219 #. type: textblock
11220 #: ../src/guestfs-actions.pod:2934
11221 msgid ""
11222 "This function and C<guestfs_inspect_get_package_management> return the "
11223 "package format and package management tool used by the inspected operating "
11224 "system.  For example for Fedora these functions would return C<rpm> (package "
11225 "format) and C<yum> (package management)."
11226 msgstr ""
11227
11228 #. type: textblock
11229 #: ../src/guestfs-actions.pod:2940 ../fish/guestfish-actions.pod:2009
11230 msgid ""
11231 "This returns the string C<unknown> if we could not determine the package "
11232 "format I<or> if the operating system does not have a real packaging system "
11233 "(eg. Windows)."
11234 msgstr ""
11235
11236 #. type: textblock
11237 #: ../src/guestfs-actions.pod:2944 ../fish/guestfish-actions.pod:2013
11238 msgid ""
11239 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
11240 "Future versions of libguestfs may return other strings."
11241 msgstr ""
11242
11243 #. type: textblock
11244 #: ../src/guestfs-actions.pod:2952 ../src/guestfs-actions.pod:2980
11245 msgid "(Added in 1.7.5)"
11246 msgstr ""
11247
11248 #. type: =head2
11249 #: ../src/guestfs-actions.pod:2954
11250 msgid "guestfs_inspect_get_package_management"
11251 msgstr ""
11252
11253 #. type: verbatim
11254 #: ../src/guestfs-actions.pod:2956
11255 #, no-wrap
11256 msgid ""
11257 " char *\n"
11258 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
11259 "                                         const char *root);\n"
11260 "\n"
11261 msgstr ""
11262
11263 #. type: textblock
11264 #: ../src/guestfs-actions.pod:2960
11265 msgid ""
11266 "C<guestfs_inspect_get_package_format> and this function return the package "
11267 "format and package management tool used by the inspected operating system.  "
11268 "For example for Fedora these functions would return C<rpm> (package format) "
11269 "and C<yum> (package management)."
11270 msgstr ""
11271
11272 #. type: textblock
11273 #: ../src/guestfs-actions.pod:2966 ../fish/guestfish-actions.pod:2028
11274 msgid ""
11275 "This returns the string C<unknown> if we could not determine the package "
11276 "management tool I<or> if the operating system does not have a real packaging "
11277 "system (eg. Windows)."
11278 msgstr ""
11279
11280 #. type: textblock
11281 #: ../src/guestfs-actions.pod:2970 ../fish/guestfish-actions.pod:2032
11282 msgid ""
11283 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
11284 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
11285 "libguestfs may return other strings."
11286 msgstr ""
11287
11288 #. type: =head2
11289 #: ../src/guestfs-actions.pod:2982
11290 msgid "guestfs_inspect_get_product_name"
11291 msgstr ""
11292
11293 #. type: verbatim
11294 #: ../src/guestfs-actions.pod:2984
11295 #, no-wrap
11296 msgid ""
11297 " char *\n"
11298 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
11299 "                                   const char *root);\n"
11300 "\n"
11301 msgstr ""
11302
11303 #. type: textblock
11304 #: ../src/guestfs-actions.pod:2988 ../fish/guestfish-actions.pod:2043
11305 msgid ""
11306 "This returns the product name of the inspected operating system.  The "
11307 "product name is generally some freeform string which can be displayed to the "
11308 "user, but should not be parsed by programs."
11309 msgstr ""
11310
11311 #. type: textblock
11312 #: ../src/guestfs-actions.pod:2993 ../fish/guestfish-actions.pod:2048
11313 msgid ""
11314 "If the product name could not be determined, then the string C<unknown> is "
11315 "returned."
11316 msgstr ""
11317
11318 #. type: =head2
11319 #: ../src/guestfs-actions.pod:3003
11320 msgid "guestfs_inspect_get_product_variant"
11321 msgstr ""
11322
11323 #. type: verbatim
11324 #: ../src/guestfs-actions.pod:3005
11325 #, no-wrap
11326 msgid ""
11327 " char *\n"
11328 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
11329 "                                      const char *root);\n"
11330 "\n"
11331 msgstr ""
11332
11333 #. type: textblock
11334 #: ../src/guestfs-actions.pod:3009 ../fish/guestfish-actions.pod:2057
11335 #, fuzzy
11336 #| msgid "This is an installed operating system."
11337 msgid "This returns the product variant of the inspected operating system."
11338 msgstr "Це встановлена операційна система."
11339
11340 #. type: textblock
11341 #: ../src/guestfs-actions.pod:3012 ../fish/guestfish-actions.pod:2060
11342 msgid ""
11343 "For Windows guests, this returns the contents of the Registry key C<HKLM"
11344 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
11345 "is usually a string such as C<Client> or C<Server> (other values are "
11346 "possible).  This can be used to distinguish consumer and enterprise versions "
11347 "of Windows that have the same version number (for example, Windows 7 and "
11348 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
11349 "the latter is C<Server>)."
11350 msgstr ""
11351
11352 #. type: textblock
11353 #: ../src/guestfs-actions.pod:3021 ../fish/guestfish-actions.pod:2069
11354 msgid ""
11355 "For enterprise Linux guests, in future we intend this to return the product "
11356 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
11357 "implemented at present."
11358 msgstr ""
11359
11360 #. type: textblock
11361 #: ../src/guestfs-actions.pod:3025 ../fish/guestfish-actions.pod:2073
11362 msgid ""
11363 "If the product variant could not be determined, then the string C<unknown> "
11364 "is returned."
11365 msgstr ""
11366
11367 #. type: textblock
11368 #: ../src/guestfs-actions.pod:3028
11369 msgid ""
11370 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11371 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
11372 msgstr ""
11373
11374 #. type: =head2
11375 #: ../src/guestfs-actions.pod:3035
11376 msgid "guestfs_inspect_get_roots"
11377 msgstr ""
11378
11379 #. type: verbatim
11380 #: ../src/guestfs-actions.pod:3037
11381 #, no-wrap
11382 msgid ""
11383 " char **\n"
11384 " guestfs_inspect_get_roots (guestfs_h *g);\n"
11385 "\n"
11386 msgstr ""
11387
11388 #. type: textblock
11389 #: ../src/guestfs-actions.pod:3040
11390 msgid ""
11391 "This function is a convenient way to get the list of root devices, as "
11392 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
11393 "the whole inspection process."
11394 msgstr ""
11395
11396 #. type: textblock
11397 #: ../src/guestfs-actions.pod:3044
11398 msgid ""
11399 "This returns an empty list if either no root devices were found or the "
11400 "caller has not called C<guestfs_inspect_os>."
11401 msgstr ""
11402
11403 #. type: textblock
11404 #: ../src/guestfs-actions.pod:3053
11405 msgid "(Added in 1.7.3)"
11406 msgstr ""
11407
11408 #. type: =head2
11409 #: ../src/guestfs-actions.pod:3055
11410 msgid "guestfs_inspect_get_type"
11411 msgstr ""
11412
11413 #. type: verbatim
11414 #: ../src/guestfs-actions.pod:3057
11415 #, no-wrap
11416 msgid ""
11417 " char *\n"
11418 " guestfs_inspect_get_type (guestfs_h *g,\n"
11419 "                           const char *root);\n"
11420 "\n"
11421 msgstr ""
11422
11423 #. type: textblock
11424 #: ../src/guestfs-actions.pod:3061 ../fish/guestfish-actions.pod:2097
11425 msgid ""
11426 "This returns the type of the inspected operating system.  Currently defined "
11427 "types are:"
11428 msgstr ""
11429
11430 #. type: =item
11431 #: ../src/guestfs-actions.pod:3066 ../fish/guestfish-actions.pod:2102
11432 msgid "\"linux\""
11433 msgstr "\"linux\""
11434
11435 #. type: textblock
11436 #: ../src/guestfs-actions.pod:3068 ../fish/guestfish-actions.pod:2104
11437 msgid "Any Linux-based operating system."
11438 msgstr ""
11439
11440 #. type: textblock
11441 #: ../src/guestfs-actions.pod:3072 ../fish/guestfish-actions.pod:2108
11442 msgid "Any Microsoft Windows operating system."
11443 msgstr ""
11444
11445 #. type: =item
11446 #: ../src/guestfs-actions.pod:3074 ../fish/guestfish-actions.pod:2110
11447 msgid "\"freebsd\""
11448 msgstr "\"freebsd\""
11449
11450 #. type: textblock
11451 #: ../src/guestfs-actions.pod:3076 ../fish/guestfish-actions.pod:2112
11452 msgid "FreeBSD."
11453 msgstr "FreeBSD."
11454
11455 #. type: textblock
11456 #: ../src/guestfs-actions.pod:3080 ../fish/guestfish-actions.pod:2116
11457 msgid "The operating system type could not be determined."
11458 msgstr ""
11459
11460 #. type: =head2
11461 #: ../src/guestfs-actions.pod:3094
11462 msgid "guestfs_inspect_get_windows_current_control_set"
11463 msgstr ""
11464
11465 #. type: verbatim
11466 #: ../src/guestfs-actions.pod:3096
11467 #, no-wrap
11468 msgid ""
11469 " char *\n"
11470 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
11471 "                                                  const char *root);\n"
11472 "\n"
11473 msgstr ""
11474
11475 #. type: textblock
11476 #: ../src/guestfs-actions.pod:3100 ../fish/guestfish-actions.pod:2129
11477 msgid ""
11478 "This returns the Windows CurrentControlSet of the inspected guest.  The "
11479 "CurrentControlSet is a registry key name such as C<ControlSet001>."
11480 msgstr ""
11481
11482 #. type: textblock
11483 #: ../src/guestfs-actions.pod:3103 ../fish/guestfish-actions.pod:2132
11484 msgid ""
11485 "This call assumes that the guest is Windows and that the Registry could be "
11486 "examined by inspection.  If this is not the case then an error is returned."
11487 msgstr ""
11488
11489 #. type: =head2
11490 #: ../src/guestfs-actions.pod:3112
11491 msgid "guestfs_inspect_get_windows_systemroot"
11492 msgstr ""
11493
11494 #. type: verbatim
11495 #: ../src/guestfs-actions.pod:3114
11496 #, no-wrap
11497 msgid ""
11498 " char *\n"
11499 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
11500 "                                         const char *root);\n"
11501 "\n"
11502 msgstr ""
11503
11504 #. type: textblock
11505 #: ../src/guestfs-actions.pod:3118 ../fish/guestfish-actions.pod:2142
11506 msgid ""
11507 "This returns the Windows systemroot of the inspected guest.  The systemroot "
11508 "is a directory path such as C</WINDOWS>."
11509 msgstr ""
11510
11511 #. type: textblock
11512 #: ../src/guestfs-actions.pod:3121 ../fish/guestfish-actions.pod:2145
11513 msgid ""
11514 "This call assumes that the guest is Windows and that the systemroot could be "
11515 "determined by inspection.  If this is not the case then an error is returned."
11516 msgstr ""
11517
11518 #. type: textblock
11519 #: ../src/guestfs-actions.pod:3130
11520 msgid "(Added in 1.5.25)"
11521 msgstr ""
11522
11523 #. type: =head2
11524 #: ../src/guestfs-actions.pod:3132
11525 msgid "guestfs_inspect_is_live"
11526 msgstr ""
11527
11528 #. type: verbatim
11529 #: ../src/guestfs-actions.pod:3134
11530 #, no-wrap
11531 msgid ""
11532 " int\n"
11533 " guestfs_inspect_is_live (guestfs_h *g,\n"
11534 "                          const char *root);\n"
11535 "\n"
11536 msgstr ""
11537
11538 #. type: textblock
11539 #: ../src/guestfs-actions.pod:3138
11540 msgid ""
11541 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
11542 "disk), then this returns true if a live image was detected on the disk."
11543 msgstr ""
11544
11545 #. type: =head2
11546 #: ../src/guestfs-actions.pod:3146
11547 msgid "guestfs_inspect_is_multipart"
11548 msgstr ""
11549
11550 #. type: verbatim
11551 #: ../src/guestfs-actions.pod:3148
11552 #, no-wrap
11553 msgid ""
11554 " int\n"
11555 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
11556 "                               const char *root);\n"
11557 "\n"
11558 msgstr ""
11559
11560 #. type: textblock
11561 #: ../src/guestfs-actions.pod:3152
11562 msgid ""
11563 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
11564 "disk), then this returns true if the disk is part of a set."
11565 msgstr ""
11566
11567 #. type: =head2
11568 #: ../src/guestfs-actions.pod:3160
11569 msgid "guestfs_inspect_is_netinst"
11570 msgstr ""
11571
11572 #. type: verbatim
11573 #: ../src/guestfs-actions.pod:3162
11574 #, no-wrap
11575 msgid ""
11576 " int\n"
11577 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
11578 "                             const char *root);\n"
11579 "\n"
11580 msgstr ""
11581
11582 #. type: textblock
11583 #: ../src/guestfs-actions.pod:3166
11584 msgid ""
11585 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
11586 "disk), then this returns true if the disk is a network installer, ie. not a "
11587 "self-contained install CD but one which is likely to require network access "
11588 "to complete the install."
11589 msgstr ""
11590
11591 #. type: =head2
11592 #: ../src/guestfs-actions.pod:3176
11593 msgid "guestfs_inspect_list_applications"
11594 msgstr ""
11595
11596 #. type: verbatim
11597 #: ../src/guestfs-actions.pod:3178
11598 #, no-wrap
11599 msgid ""
11600 " struct guestfs_application_list *\n"
11601 " guestfs_inspect_list_applications (guestfs_h *g,\n"
11602 "                                    const char *root);\n"
11603 "\n"
11604 msgstr ""
11605
11606 #. type: textblock
11607 #: ../src/guestfs-actions.pod:3182 ../fish/guestfish-actions.pod:2187
11608 msgid "Return the list of applications installed in the operating system."
11609 msgstr ""
11610
11611 #. type: textblock
11612 #: ../src/guestfs-actions.pod:3184
11613 msgid ""
11614 "I<Note:> This call works differently from other parts of the inspection "
11615 "API.  You have to call C<guestfs_inspect_os>, then "
11616 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
11617 "this.  Listing applications is a significantly more difficult operation "
11618 "which requires access to the full filesystem.  Also note that unlike the "
11619 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
11620 "the libguestfs handle, this call actually reads parts of the mounted "
11621 "filesystems during the call."
11622 msgstr ""
11623
11624 #. type: textblock
11625 #: ../src/guestfs-actions.pod:3194 ../fish/guestfish-actions.pod:2199
11626 msgid ""
11627 "This returns an empty list if the inspection code was not able to determine "
11628 "the list of applications."
11629 msgstr ""
11630
11631 #. type: textblock
11632 #: ../src/guestfs-actions.pod:3197 ../fish/guestfish-actions.pod:2202
11633 msgid "The application structure contains the following fields:"
11634 msgstr ""
11635
11636 #. type: =item
11637 #: ../src/guestfs-actions.pod:3201 ../fish/guestfish-actions.pod:2206
11638 msgid "C<app_name>"
11639 msgstr "C<app_name>"
11640
11641 #. type: textblock
11642 #: ../src/guestfs-actions.pod:3203 ../fish/guestfish-actions.pod:2208
11643 msgid ""
11644 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
11645 "guests, this is the package name."
11646 msgstr ""
11647
11648 #. type: =item
11649 #: ../src/guestfs-actions.pod:3206 ../fish/guestfish-actions.pod:2211
11650 msgid "C<app_display_name>"
11651 msgstr "C<app_display_name>"
11652
11653 #. type: textblock
11654 #: ../src/guestfs-actions.pod:3208 ../fish/guestfish-actions.pod:2213
11655 msgid ""
11656 "The display name of the application, sometimes localized to the install "
11657 "language of the guest operating system."
11658 msgstr ""
11659
11660 #. type: textblock
11661 #: ../src/guestfs-actions.pod:3211 ../fish/guestfish-actions.pod:2216
11662 msgid ""
11663 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11664 "to display something can use C<app_name> instead."
11665 msgstr ""
11666
11667 #. type: =item
11668 #: ../src/guestfs-actions.pod:3214 ../fish/guestfish-actions.pod:2219
11669 msgid "C<app_epoch>"
11670 msgstr "C<app_epoch>"
11671
11672 #. type: textblock
11673 #: ../src/guestfs-actions.pod:3216 ../fish/guestfish-actions.pod:2221
11674 msgid ""
11675 "For package managers which use epochs, this contains the epoch of the "
11676 "package (an integer).  If unavailable, this is returned as C<0>."
11677 msgstr ""
11678
11679 #. type: =item
11680 #: ../src/guestfs-actions.pod:3219 ../fish/guestfish-actions.pod:2224
11681 msgid "C<app_version>"
11682 msgstr "C<app_version>"
11683
11684 #. type: textblock
11685 #: ../src/guestfs-actions.pod:3221 ../fish/guestfish-actions.pod:2226
11686 msgid ""
11687 "The version string of the application or package.  If unavailable this is "
11688 "returned as an empty string C<\"\">."
11689 msgstr ""
11690
11691 #. type: =item
11692 #: ../src/guestfs-actions.pod:3224 ../fish/guestfish-actions.pod:2229
11693 msgid "C<app_release>"
11694 msgstr "C<app_release>"
11695
11696 #. type: textblock
11697 #: ../src/guestfs-actions.pod:3226 ../fish/guestfish-actions.pod:2231
11698 msgid ""
11699 "The release string of the application or package, for package managers that "
11700 "use this.  If unavailable this is returned as an empty string C<\"\">."
11701 msgstr ""
11702
11703 #. type: =item
11704 #: ../src/guestfs-actions.pod:3230 ../fish/guestfish-actions.pod:2235
11705 msgid "C<app_install_path>"
11706 msgstr "C<app_install_path>"
11707
11708 #. type: textblock
11709 #: ../src/guestfs-actions.pod:3232 ../fish/guestfish-actions.pod:2237
11710 msgid ""
11711 "The installation path of the application (on operating systems such as "
11712 "Windows which use installation paths).  This path is in the format used by "
11713 "the guest operating system, it is not a libguestfs path."
11714 msgstr ""
11715
11716 #. type: textblock
11717 #: ../src/guestfs-actions.pod:3237 ../fish/guestfish-actions.pod:2242
11718 msgid "If unavailable this is returned as an empty string C<\"\">."
11719 msgstr ""
11720
11721 #. type: =item
11722 #: ../src/guestfs-actions.pod:3239 ../fish/guestfish-actions.pod:2244
11723 msgid "C<app_trans_path>"
11724 msgstr "C<app_trans_path>"
11725
11726 #. type: textblock
11727 #: ../src/guestfs-actions.pod:3241 ../fish/guestfish-actions.pod:2246
11728 msgid ""
11729 "The install path translated into a libguestfs path.  If unavailable this is "
11730 "returned as an empty string C<\"\">."
11731 msgstr ""
11732
11733 #. type: =item
11734 #: ../src/guestfs-actions.pod:3244 ../fish/guestfish-actions.pod:2249
11735 msgid "C<app_publisher>"
11736 msgstr "C<app_publisher>"
11737
11738 #. type: textblock
11739 #: ../src/guestfs-actions.pod:3246 ../fish/guestfish-actions.pod:2251
11740 msgid ""
11741 "The name of the publisher of the application, for package managers that use "
11742 "this.  If unavailable this is returned as an empty string C<\"\">."
11743 msgstr ""
11744
11745 #. type: =item
11746 #: ../src/guestfs-actions.pod:3250 ../fish/guestfish-actions.pod:2255
11747 msgid "C<app_url>"
11748 msgstr "C<app_url>"
11749
11750 #. type: textblock
11751 #: ../src/guestfs-actions.pod:3252 ../fish/guestfish-actions.pod:2257
11752 msgid ""
11753 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11754 "returned as an empty string C<\"\">."
11755 msgstr ""
11756
11757 #. type: =item
11758 #: ../src/guestfs-actions.pod:3255 ../fish/guestfish-actions.pod:2260
11759 msgid "C<app_source_package>"
11760 msgstr ""
11761
11762 #. type: textblock
11763 #: ../src/guestfs-actions.pod:3257 ../fish/guestfish-actions.pod:2262
11764 msgid ""
11765 "For packaging systems which support this, the name of the source package.  "
11766 "If unavailable this is returned as an empty string C<\"\">."
11767 msgstr ""
11768
11769 #. type: =item
11770 #: ../src/guestfs-actions.pod:3260 ../fish/guestfish-actions.pod:2265
11771 msgid "C<app_summary>"
11772 msgstr ""
11773
11774 #. type: textblock
11775 #: ../src/guestfs-actions.pod:3262 ../fish/guestfish-actions.pod:2267
11776 msgid ""
11777 "A short (usually one line) description of the application or package.  If "
11778 "unavailable this is returned as an empty string C<\"\">."
11779 msgstr ""
11780
11781 #. type: =item
11782 #: ../src/guestfs-actions.pod:3265 ../fish/guestfish-actions.pod:2270
11783 msgid "C<app_description>"
11784 msgstr ""
11785
11786 #. type: textblock
11787 #: ../src/guestfs-actions.pod:3267 ../fish/guestfish-actions.pod:2272
11788 msgid ""
11789 "A longer description of the application or package.  If unavailable this is "
11790 "returned as an empty string C<\"\">."
11791 msgstr ""
11792
11793 #. type: textblock
11794 #: ../src/guestfs-actions.pod:3274
11795 msgid ""
11796 "This function returns a C<struct guestfs_application_list *>, or NULL if "
11797 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
11798 "after use>."
11799 msgstr ""
11800
11801 #. type: textblock
11802 #: ../src/guestfs-actions.pod:3278
11803 msgid "(Added in 1.7.8)"
11804 msgstr ""
11805
11806 #. type: =head2
11807 #: ../src/guestfs-actions.pod:3280
11808 msgid "guestfs_inspect_os"
11809 msgstr ""
11810
11811 #. type: verbatim
11812 #: ../src/guestfs-actions.pod:3282
11813 #, no-wrap
11814 msgid ""
11815 " char **\n"
11816 " guestfs_inspect_os (guestfs_h *g);\n"
11817 "\n"
11818 msgstr ""
11819
11820 #. type: textblock
11821 #: ../src/guestfs-actions.pod:3285 ../fish/guestfish-actions.pod:2283
11822 msgid ""
11823 "This function uses other libguestfs functions and certain heuristics to "
11824 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11825 "for operating systems."
11826 msgstr ""
11827
11828 #. type: textblock
11829 #: ../src/guestfs-actions.pod:3289 ../fish/guestfish-actions.pod:2287
11830 msgid "The list returned is empty if no operating systems were found."
11831 msgstr ""
11832
11833 #. type: textblock
11834 #: ../src/guestfs-actions.pod:3291 ../fish/guestfish-actions.pod:2289
11835 msgid ""
11836 "If one operating system was found, then this returns a list with a single "
11837 "element, which is the name of the root filesystem of this operating system.  "
11838 "It is also possible for this function to return a list containing more than "
11839 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11840 "element being the root filesystem of one of the operating systems."
11841 msgstr ""
11842
11843 #. type: textblock
11844 #: ../src/guestfs-actions.pod:3298
11845 msgid ""
11846 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
11847 "functions in order to query further information about each operating system, "
11848 "such as the name and version."
11849 msgstr ""
11850
11851 #. type: textblock
11852 #: ../src/guestfs-actions.pod:3303
11853 msgid ""
11854 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
11855 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
11856 "the contents.  This should be called with no disks currently mounted.  The "
11857 "function may also use Augeas, so any existing Augeas handle will be closed."
11858 msgstr ""
11859
11860 #. type: textblock
11861 #: ../src/guestfs-actions.pod:3309 ../fish/guestfish-actions.pod:2307
11862 msgid ""
11863 "This function cannot decrypt encrypted disks.  The caller must do that first "
11864 "(supplying the necessary keys) if the disk is encrypted."
11865 msgstr ""
11866
11867 #. type: textblock
11868 #: ../src/guestfs-actions.pod:3315 ../src/guestfs-actions.pod:3640
11869 #: ../src/guestfs-actions.pod:3702
11870 msgid "See also C<guestfs_list_filesystems>."
11871 msgstr ""
11872
11873 #. type: =head2
11874 #: ../src/guestfs-actions.pod:3323
11875 msgid "guestfs_is_blockdev"
11876 msgstr ""
11877
11878 #. type: verbatim
11879 #: ../src/guestfs-actions.pod:3325
11880 #, no-wrap
11881 msgid ""
11882 " int\n"
11883 " guestfs_is_blockdev (guestfs_h *g,\n"
11884 "                      const char *path);\n"
11885 "\n"
11886 msgstr ""
11887
11888 #. type: textblock
11889 #: ../src/guestfs-actions.pod:3329 ../fish/guestfish-actions.pod:2319
11890 msgid ""
11891 "This returns C<true> if and only if there is a block device with the given "
11892 "C<path> name."
11893 msgstr ""
11894
11895 #. type: textblock
11896 #: ../src/guestfs-actions.pod:3332 ../src/guestfs-actions.pod:3361
11897 #: ../src/guestfs-actions.pod:3391 ../src/guestfs-actions.pod:3406
11898 #: ../src/guestfs-actions.pod:3422 ../src/guestfs-actions.pod:3478
11899 #: ../src/guestfs-actions.pod:3493
11900 msgid "See also C<guestfs_stat>."
11901 msgstr ""
11902
11903 #. type: textblock
11904 #: ../src/guestfs-actions.pod:3336 ../src/guestfs-actions.pod:3365
11905 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3482
11906 #: ../src/guestfs-actions.pod:3497
11907 msgid "(Added in 1.5.10)"
11908 msgstr ""
11909
11910 #. type: =head2
11911 #: ../src/guestfs-actions.pod:3338
11912 msgid "guestfs_is_busy"
11913 msgstr ""
11914
11915 #. type: verbatim
11916 #: ../src/guestfs-actions.pod:3340
11917 #, no-wrap
11918 msgid ""
11919 " int\n"
11920 " guestfs_is_busy (guestfs_h *g);\n"
11921 "\n"
11922 msgstr ""
11923
11924 #. type: textblock
11925 #: ../src/guestfs-actions.pod:3343 ../fish/guestfish-actions.pod:2328
11926 msgid ""
11927 "This returns true iff this handle is busy processing a command (in the "
11928 "C<BUSY> state)."
11929 msgstr ""
11930
11931 #. type: =head2
11932 #: ../src/guestfs-actions.pod:3352
11933 msgid "guestfs_is_chardev"
11934 msgstr ""
11935
11936 #. type: verbatim
11937 #: ../src/guestfs-actions.pod:3354
11938 #, no-wrap
11939 msgid ""
11940 " int\n"
11941 " guestfs_is_chardev (guestfs_h *g,\n"
11942 "                     const char *path);\n"
11943 "\n"
11944 msgstr ""
11945
11946 #. type: textblock
11947 #: ../src/guestfs-actions.pod:3358 ../fish/guestfish-actions.pod:2337
11948 msgid ""
11949 "This returns C<true> if and only if there is a character device with the "
11950 "given C<path> name."
11951 msgstr ""
11952
11953 #. type: =head2
11954 #: ../src/guestfs-actions.pod:3367
11955 msgid "guestfs_is_config"
11956 msgstr ""
11957
11958 #. type: verbatim
11959 #: ../src/guestfs-actions.pod:3369
11960 #, no-wrap
11961 msgid ""
11962 " int\n"
11963 " guestfs_is_config (guestfs_h *g);\n"
11964 "\n"
11965 msgstr ""
11966
11967 #. type: textblock
11968 #: ../src/guestfs-actions.pod:3372 ../fish/guestfish-actions.pod:2346
11969 msgid ""
11970 "This returns true iff this handle is being configured (in the C<CONFIG> "
11971 "state)."
11972 msgstr ""
11973
11974 #. type: =head2
11975 #: ../src/guestfs-actions.pod:3381
11976 msgid "guestfs_is_dir"
11977 msgstr ""
11978
11979 #. type: verbatim
11980 #: ../src/guestfs-actions.pod:3383
11981 #, no-wrap
11982 msgid ""
11983 " int\n"
11984 " guestfs_is_dir (guestfs_h *g,\n"
11985 "                 const char *path);\n"
11986 "\n"
11987 msgstr ""
11988
11989 #. type: textblock
11990 #: ../src/guestfs-actions.pod:3387 ../fish/guestfish-actions.pod:2355
11991 msgid ""
11992 "This returns C<true> if and only if there is a directory with the given "
11993 "C<path> name.  Note that it returns false for other objects like files."
11994 msgstr ""
11995
11996 #. type: =head2
11997 #: ../src/guestfs-actions.pod:3397
11998 msgid "guestfs_is_fifo"
11999 msgstr ""
12000
12001 #. type: verbatim
12002 #: ../src/guestfs-actions.pod:3399
12003 #, no-wrap
12004 msgid ""
12005 " int\n"
12006 " guestfs_is_fifo (guestfs_h *g,\n"
12007 "                  const char *path);\n"
12008 "\n"
12009 msgstr ""
12010
12011 #. type: textblock
12012 #: ../src/guestfs-actions.pod:3403 ../fish/guestfish-actions.pod:2365
12013 msgid ""
12014 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
12015 "given C<path> name."
12016 msgstr ""
12017
12018 #. type: =head2
12019 #: ../src/guestfs-actions.pod:3412
12020 msgid "guestfs_is_file"
12021 msgstr ""
12022
12023 #. type: verbatim
12024 #: ../src/guestfs-actions.pod:3414
12025 #, no-wrap
12026 msgid ""
12027 " int\n"
12028 " guestfs_is_file (guestfs_h *g,\n"
12029 "                  const char *path);\n"
12030 "\n"
12031 msgstr ""
12032
12033 #. type: textblock
12034 #: ../src/guestfs-actions.pod:3418 ../fish/guestfish-actions.pod:2374
12035 msgid ""
12036 "This returns C<true> if and only if there is a regular file with the given "
12037 "C<path> name.  Note that it returns false for other objects like directories."
12038 msgstr ""
12039
12040 #. type: =head2
12041 #: ../src/guestfs-actions.pod:3428
12042 msgid "guestfs_is_launching"
12043 msgstr ""
12044
12045 #. type: verbatim
12046 #: ../src/guestfs-actions.pod:3430
12047 #, no-wrap
12048 msgid ""
12049 " int\n"
12050 " guestfs_is_launching (guestfs_h *g);\n"
12051 "\n"
12052 msgstr ""
12053
12054 #. type: textblock
12055 #: ../src/guestfs-actions.pod:3433 ../fish/guestfish-actions.pod:2384
12056 msgid ""
12057 "This returns true iff this handle is launching the subprocess (in the "
12058 "C<LAUNCHING> state)."
12059 msgstr ""
12060
12061 #. type: =head2
12062 #: ../src/guestfs-actions.pod:3442
12063 msgid "guestfs_is_lv"
12064 msgstr ""
12065
12066 #. type: verbatim
12067 #: ../src/guestfs-actions.pod:3444
12068 #, no-wrap
12069 msgid ""
12070 " int\n"
12071 " guestfs_is_lv (guestfs_h *g,\n"
12072 "                const char *device);\n"
12073 "\n"
12074 msgstr ""
12075
12076 #. type: textblock
12077 #: ../src/guestfs-actions.pod:3448 ../fish/guestfish-actions.pod:2393
12078 msgid ""
12079 "This command tests whether C<device> is a logical volume, and returns true "
12080 "iff this is the case."
12081 msgstr ""
12082
12083 #. type: =head2
12084 #: ../src/guestfs-actions.pod:3455
12085 msgid "guestfs_is_ready"
12086 msgstr ""
12087
12088 #. type: verbatim
12089 #: ../src/guestfs-actions.pod:3457
12090 #, no-wrap
12091 msgid ""
12092 " int\n"
12093 " guestfs_is_ready (guestfs_h *g);\n"
12094 "\n"
12095 msgstr ""
12096
12097 #. type: textblock
12098 #: ../src/guestfs-actions.pod:3460 ../fish/guestfish-actions.pod:2400
12099 msgid ""
12100 "This returns true iff this handle is ready to accept commands (in the "
12101 "C<READY> state)."
12102 msgstr ""
12103
12104 #. type: =head2
12105 #: ../src/guestfs-actions.pod:3469
12106 msgid "guestfs_is_socket"
12107 msgstr ""
12108
12109 #. type: verbatim
12110 #: ../src/guestfs-actions.pod:3471
12111 #, no-wrap
12112 msgid ""
12113 " int\n"
12114 " guestfs_is_socket (guestfs_h *g,\n"
12115 "                    const char *path);\n"
12116 "\n"
12117 msgstr ""
12118
12119 #. type: textblock
12120 #: ../src/guestfs-actions.pod:3475 ../fish/guestfish-actions.pod:2409
12121 msgid ""
12122 "This returns C<true> if and only if there is a Unix domain socket with the "
12123 "given C<path> name."
12124 msgstr ""
12125
12126 #. type: =head2
12127 #: ../src/guestfs-actions.pod:3484
12128 msgid "guestfs_is_symlink"
12129 msgstr ""
12130
12131 #. type: verbatim
12132 #: ../src/guestfs-actions.pod:3486
12133 #, no-wrap
12134 msgid ""
12135 " int\n"
12136 " guestfs_is_symlink (guestfs_h *g,\n"
12137 "                     const char *path);\n"
12138 "\n"
12139 msgstr ""
12140
12141 #. type: textblock
12142 #: ../src/guestfs-actions.pod:3490 ../fish/guestfish-actions.pod:2418
12143 msgid ""
12144 "This returns C<true> if and only if there is a symbolic link with the given "
12145 "C<path> name."
12146 msgstr ""
12147
12148 #. type: =head2
12149 #: ../src/guestfs-actions.pod:3499
12150 msgid "guestfs_is_zero"
12151 msgstr ""
12152
12153 #. type: verbatim
12154 #: ../src/guestfs-actions.pod:3501
12155 #, no-wrap
12156 msgid ""
12157 " int\n"
12158 " guestfs_is_zero (guestfs_h *g,\n"
12159 "                  const char *path);\n"
12160 "\n"
12161 msgstr ""
12162
12163 #. type: textblock
12164 #: ../src/guestfs-actions.pod:3505 ../fish/guestfish-actions.pod:2427
12165 msgid ""
12166 "This returns true iff the file exists and the file is empty or it contains "
12167 "all zero bytes."
12168 msgstr ""
12169
12170 #. type: =head2
12171 #: ../src/guestfs-actions.pod:3510
12172 msgid "guestfs_is_zero_device"
12173 msgstr ""
12174
12175 #. type: verbatim
12176 #: ../src/guestfs-actions.pod:3512
12177 #, no-wrap
12178 msgid ""
12179 " int\n"
12180 " guestfs_is_zero_device (guestfs_h *g,\n"
12181 "                         const char *device);\n"
12182 "\n"
12183 msgstr ""
12184
12185 #. type: textblock
12186 #: ../src/guestfs-actions.pod:3516 ../fish/guestfish-actions.pod:2434
12187 msgid "This returns true iff the device exists and contains all zero bytes."
12188 msgstr ""
12189
12190 #. type: textblock
12191 #: ../src/guestfs-actions.pod:3518 ../fish/guestfish-actions.pod:2436
12192 msgid "Note that for large devices this can take a long time to run."
12193 msgstr ""
12194
12195 #. type: =head2
12196 #: ../src/guestfs-actions.pod:3522
12197 msgid "guestfs_kill_subprocess"
12198 msgstr ""
12199
12200 #. type: verbatim
12201 #: ../src/guestfs-actions.pod:3524
12202 #, no-wrap
12203 msgid ""
12204 " int\n"
12205 " guestfs_kill_subprocess (guestfs_h *g);\n"
12206 "\n"
12207 msgstr ""
12208
12209 #. type: textblock
12210 #: ../src/guestfs-actions.pod:3527 ../fish/guestfish-actions.pod:2442
12211 msgid "This kills the qemu subprocess.  You should never need to call this."
12212 msgstr ""
12213
12214 #. type: =head2
12215 #: ../src/guestfs-actions.pod:3533
12216 msgid "guestfs_launch"
12217 msgstr ""
12218
12219 #. type: verbatim
12220 #: ../src/guestfs-actions.pod:3535
12221 #, no-wrap
12222 msgid ""
12223 " int\n"
12224 " guestfs_launch (guestfs_h *g);\n"
12225 "\n"
12226 msgstr ""
12227
12228 #. type: textblock
12229 #: ../src/guestfs-actions.pod:3538 ../fish/guestfish-actions.pod:2450
12230 msgid ""
12231 "Internally libguestfs is implemented by running a virtual machine using "
12232 "L<qemu(1)>."
12233 msgstr ""
12234
12235 #. type: textblock
12236 #: ../src/guestfs-actions.pod:3541 ../fish/guestfish-actions.pod:2453
12237 msgid ""
12238 "You should call this after configuring the handle (eg. adding drives) but "
12239 "before performing any actions."
12240 msgstr ""
12241
12242 #. type: =head2
12243 #: ../src/guestfs-actions.pod:3553
12244 msgid "guestfs_lchown"
12245 msgstr ""
12246
12247 #. type: verbatim
12248 #: ../src/guestfs-actions.pod:3555
12249 #, no-wrap
12250 msgid ""
12251 " int\n"
12252 " guestfs_lchown (guestfs_h *g,\n"
12253 "                 int owner,\n"
12254 "                 int group,\n"
12255 "                 const char *path);\n"
12256 "\n"
12257 msgstr ""
12258
12259 #. type: textblock
12260 #: ../src/guestfs-actions.pod:3561
12261 msgid ""
12262 "Change the file owner to C<owner> and group to C<group>.  This is like "
12263 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
12264 "changed, not the target."
12265 msgstr ""
12266
12267 #. type: =head2
12268 #: ../src/guestfs-actions.pod:3573
12269 msgid "guestfs_lgetxattr"
12270 msgstr ""
12271
12272 #. type: verbatim
12273 #: ../src/guestfs-actions.pod:3575
12274 #, no-wrap
12275 msgid ""
12276 " char *\n"
12277 " guestfs_lgetxattr (guestfs_h *g,\n"
12278 "                    const char *path,\n"
12279 "                    const char *name,\n"
12280 "                    size_t *size_r);\n"
12281 "\n"
12282 msgstr ""
12283
12284 #. type: textblock
12285 #: ../src/guestfs-actions.pod:3581 ../fish/guestfish-actions.pod:2472
12286 msgid ""
12287 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
12288 "is a symlink, then this call returns an extended attribute from the symlink."
12289 msgstr ""
12290
12291 #. type: textblock
12292 #: ../src/guestfs-actions.pod:3595
12293 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
12294 msgstr ""
12295
12296 #. type: =head2
12297 #: ../src/guestfs-actions.pod:3603
12298 msgid "guestfs_lgetxattrs"
12299 msgstr ""
12300
12301 #. type: verbatim
12302 #: ../src/guestfs-actions.pod:3605
12303 #, no-wrap
12304 msgid ""
12305 " struct guestfs_xattr_list *\n"
12306 " guestfs_lgetxattrs (guestfs_h *g,\n"
12307 "                     const char *path);\n"
12308 "\n"
12309 msgstr ""
12310
12311 #. type: textblock
12312 #: ../src/guestfs-actions.pod:3609
12313 msgid ""
12314 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
12315 "then it returns the extended attributes of the link itself."
12316 msgstr ""
12317
12318 #. type: =head2
12319 #: ../src/guestfs-actions.pod:3619
12320 msgid "guestfs_list_9p"
12321 msgstr ""
12322
12323 #. type: verbatim
12324 #: ../src/guestfs-actions.pod:3621
12325 #, no-wrap
12326 msgid ""
12327 " char **\n"
12328 " guestfs_list_9p (guestfs_h *g);\n"
12329 "\n"
12330 msgstr ""
12331
12332 #. type: textblock
12333 #: ../src/guestfs-actions.pod:3624 ../fish/guestfish-actions.pod:2500
12334 msgid ""
12335 "List all 9p filesystems attached to the guest.  A list of mount tags is "
12336 "returned."
12337 msgstr ""
12338
12339 #. type: =head2
12340 #: ../src/guestfs-actions.pod:3631
12341 msgid "guestfs_list_devices"
12342 msgstr ""
12343
12344 #. type: verbatim
12345 #: ../src/guestfs-actions.pod:3633
12346 #, no-wrap
12347 msgid ""
12348 " char **\n"
12349 " guestfs_list_devices (guestfs_h *g);\n"
12350 "\n"
12351 msgstr ""
12352
12353 #. type: textblock
12354 #: ../src/guestfs-actions.pod:3636 ../fish/guestfish-actions.pod:2507
12355 msgid "List all the block devices."
12356 msgstr ""
12357
12358 #. type: textblock
12359 #: ../src/guestfs-actions.pod:3638 ../fish/guestfish-actions.pod:2509
12360 msgid "The full block device names are returned, eg. C</dev/sda>."
12361 msgstr ""
12362
12363 #. type: =head2
12364 #: ../src/guestfs-actions.pod:3648
12365 msgid "guestfs_list_filesystems"
12366 msgstr ""
12367
12368 #. type: verbatim
12369 #: ../src/guestfs-actions.pod:3650
12370 #, no-wrap
12371 msgid ""
12372 " char **\n"
12373 " guestfs_list_filesystems (guestfs_h *g);\n"
12374 "\n"
12375 msgstr ""
12376
12377 #. type: textblock
12378 #: ../src/guestfs-actions.pod:3653 ../fish/guestfish-actions.pod:2517
12379 msgid ""
12380 "This inspection command looks for filesystems on partitions, block devices "
12381 "and logical volumes, returning a list of devices containing filesystems and "
12382 "their type."
12383 msgstr ""
12384
12385 #. type: textblock
12386 #: ../src/guestfs-actions.pod:3657 ../fish/guestfish-actions.pod:2521
12387 msgid ""
12388 "The return value is a hash, where the keys are the devices containing "
12389 "filesystems, and the values are the filesystem types.  For example:"
12390 msgstr ""
12391
12392 #. type: verbatim
12393 #: ../src/guestfs-actions.pod:3661 ../fish/guestfish-actions.pod:2525
12394 #, no-wrap
12395 msgid ""
12396 " \"/dev/sda1\" => \"ntfs\"\n"
12397 " \"/dev/sda2\" => \"ext2\"\n"
12398 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
12399 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
12400 "\n"
12401 msgstr ""
12402
12403 #. type: textblock
12404 #: ../src/guestfs-actions.pod:3666 ../fish/guestfish-actions.pod:2530
12405 msgid ""
12406 "The value can have the special value \"unknown\", meaning the content of the "
12407 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
12408 msgstr ""
12409
12410 #. type: textblock
12411 #: ../src/guestfs-actions.pod:3670
12412 msgid ""
12413 "This command runs other libguestfs commands, which might include "
12414 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
12415 "soon after launch and only when nothing is mounted."
12416 msgstr ""
12417
12418 #. type: textblock
12419 #: ../src/guestfs-actions.pod:3674
12420 msgid ""
12421 "Not all of the filesystems returned will be mountable.  In particular, swap "
12422 "partitions are returned in the list.  Also this command does not check that "
12423 "each filesystem found is valid and mountable, and some filesystems might be "
12424 "mountable but require special options.  Filesystems may not all belong to a "
12425 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
12426 msgstr ""
12427
12428 #. type: textblock
12429 #: ../src/guestfs-actions.pod:3688 ../src/guestfs-actions.pod:5348
12430 msgid "(Added in 1.5.15)"
12431 msgstr ""
12432
12433 #. type: =head2
12434 #: ../src/guestfs-actions.pod:3690
12435 msgid "guestfs_list_partitions"
12436 msgstr ""
12437
12438 #. type: verbatim
12439 #: ../src/guestfs-actions.pod:3692
12440 #, no-wrap
12441 msgid ""
12442 " char **\n"
12443 " guestfs_list_partitions (guestfs_h *g);\n"
12444 "\n"
12445 msgstr ""
12446
12447 #. type: textblock
12448 #: ../src/guestfs-actions.pod:3695 ../fish/guestfish-actions.pod:2550
12449 msgid "List all the partitions detected on all block devices."
12450 msgstr ""
12451
12452 #. type: textblock
12453 #: ../src/guestfs-actions.pod:3697 ../fish/guestfish-actions.pod:2552
12454 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12455 msgstr ""
12456
12457 #. type: textblock
12458 #: ../src/guestfs-actions.pod:3699
12459 msgid ""
12460 "This does not return logical volumes.  For that you will need to call "
12461 "C<guestfs_lvs>."
12462 msgstr ""
12463
12464 #. type: =head2
12465 #: ../src/guestfs-actions.pod:3710
12466 msgid "guestfs_ll"
12467 msgstr ""
12468
12469 #. type: verbatim
12470 #: ../src/guestfs-actions.pod:3712
12471 #, no-wrap
12472 msgid ""
12473 " char *\n"
12474 " guestfs_ll (guestfs_h *g,\n"
12475 "             const char *directory);\n"
12476 "\n"
12477 msgstr ""
12478
12479 #. type: textblock
12480 #: ../src/guestfs-actions.pod:3716 ../fish/guestfish-actions.pod:2563
12481 msgid ""
12482 "List the files in C<directory> (relative to the root directory, there is no "
12483 "cwd) in the format of 'ls -la'."
12484 msgstr ""
12485
12486 #. type: textblock
12487 #: ../src/guestfs-actions.pod:3719 ../fish/guestfish-actions.pod:2566
12488 msgid ""
12489 "This command is mostly useful for interactive sessions.  It is I<not> "
12490 "intended that you try to parse the output string."
12491 msgstr ""
12492
12493 #. type: =head2
12494 #: ../src/guestfs-actions.pod:3727
12495 msgid "guestfs_ln"
12496 msgstr ""
12497
12498 #. type: verbatim
12499 #: ../src/guestfs-actions.pod:3729
12500 #, no-wrap
12501 msgid ""
12502 " int\n"
12503 " guestfs_ln (guestfs_h *g,\n"
12504 "             const char *target,\n"
12505 "             const char *linkname);\n"
12506 "\n"
12507 msgstr ""
12508
12509 #. type: textblock
12510 #: ../src/guestfs-actions.pod:3734 ../fish/guestfish-actions.pod:2573
12511 msgid "This command creates a hard link using the C<ln> command."
12512 msgstr ""
12513
12514 #. type: =head2
12515 #: ../src/guestfs-actions.pod:3740
12516 msgid "guestfs_ln_f"
12517 msgstr ""
12518
12519 #. type: verbatim
12520 #: ../src/guestfs-actions.pod:3742
12521 #, no-wrap
12522 msgid ""
12523 " int\n"
12524 " guestfs_ln_f (guestfs_h *g,\n"
12525 "               const char *target,\n"
12526 "               const char *linkname);\n"
12527 "\n"
12528 msgstr ""
12529
12530 #. type: textblock
12531 #: ../src/guestfs-actions.pod:3747 ../fish/guestfish-actions.pod:2579
12532 msgid ""
12533 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
12534 "option removes the link (C<linkname>) if it exists already."
12535 msgstr ""
12536
12537 #. type: =head2
12538 #: ../src/guestfs-actions.pod:3754
12539 msgid "guestfs_ln_s"
12540 msgstr ""
12541
12542 #. type: verbatim
12543 #: ../src/guestfs-actions.pod:3756
12544 #, no-wrap
12545 msgid ""
12546 " int\n"
12547 " guestfs_ln_s (guestfs_h *g,\n"
12548 "               const char *target,\n"
12549 "               const char *linkname);\n"
12550 "\n"
12551 msgstr ""
12552
12553 #. type: textblock
12554 #: ../src/guestfs-actions.pod:3761 ../fish/guestfish-actions.pod:2586
12555 msgid "This command creates a symbolic link using the C<ln -s> command."
12556 msgstr ""
12557
12558 #. type: =head2
12559 #: ../src/guestfs-actions.pod:3767
12560 msgid "guestfs_ln_sf"
12561 msgstr ""
12562
12563 #. type: verbatim
12564 #: ../src/guestfs-actions.pod:3769
12565 #, no-wrap
12566 msgid ""
12567 " int\n"
12568 " guestfs_ln_sf (guestfs_h *g,\n"
12569 "                const char *target,\n"
12570 "                const char *linkname);\n"
12571 "\n"
12572 msgstr ""
12573
12574 #. type: textblock
12575 #: ../src/guestfs-actions.pod:3774 ../fish/guestfish-actions.pod:2592
12576 msgid ""
12577 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12578 "option removes the link (C<linkname>) if it exists already."
12579 msgstr ""
12580
12581 #. type: =head2
12582 #: ../src/guestfs-actions.pod:3781
12583 msgid "guestfs_lremovexattr"
12584 msgstr ""
12585
12586 #. type: verbatim
12587 #: ../src/guestfs-actions.pod:3783
12588 #, no-wrap
12589 msgid ""
12590 " int\n"
12591 " guestfs_lremovexattr (guestfs_h *g,\n"
12592 "                       const char *xattr,\n"
12593 "                       const char *path);\n"
12594 "\n"
12595 msgstr ""
12596
12597 #. type: textblock
12598 #: ../src/guestfs-actions.pod:3788
12599 msgid ""
12600 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
12601 "link, then it removes an extended attribute of the link itself."
12602 msgstr ""
12603
12604 #. type: =head2
12605 #: ../src/guestfs-actions.pod:3796
12606 msgid "guestfs_ls"
12607 msgstr ""
12608
12609 #. type: verbatim
12610 #: ../src/guestfs-actions.pod:3798
12611 #, no-wrap
12612 msgid ""
12613 " char **\n"
12614 " guestfs_ls (guestfs_h *g,\n"
12615 "             const char *directory);\n"
12616 "\n"
12617 msgstr ""
12618
12619 #. type: textblock
12620 #: ../src/guestfs-actions.pod:3802 ../fish/guestfish-actions.pod:2607
12621 msgid ""
12622 "List the files in C<directory> (relative to the root directory, there is no "
12623 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
12624 msgstr ""
12625
12626 #. type: textblock
12627 #: ../src/guestfs-actions.pod:3806
12628 msgid ""
12629 "This command is mostly useful for interactive sessions.  Programs should "
12630 "probably use C<guestfs_readdir> instead."
12631 msgstr ""
12632
12633 #. type: =head2
12634 #: ../src/guestfs-actions.pod:3815
12635 msgid "guestfs_lsetxattr"
12636 msgstr ""
12637
12638 #. type: verbatim
12639 #: ../src/guestfs-actions.pod:3817
12640 #, no-wrap
12641 msgid ""
12642 " int\n"
12643 " guestfs_lsetxattr (guestfs_h *g,\n"
12644 "                    const char *xattr,\n"
12645 "                    const char *val,\n"
12646 "                    int vallen,\n"
12647 "                    const char *path);\n"
12648 "\n"
12649 msgstr ""
12650
12651 #. type: textblock
12652 #: ../src/guestfs-actions.pod:3824
12653 msgid ""
12654 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
12655 "then it sets an extended attribute of the link itself."
12656 msgstr ""
12657
12658 #. type: =head2
12659 #: ../src/guestfs-actions.pod:3832
12660 msgid "guestfs_lstat"
12661 msgstr ""
12662
12663 #. type: verbatim
12664 #: ../src/guestfs-actions.pod:3834
12665 #, no-wrap
12666 msgid ""
12667 " struct guestfs_stat *\n"
12668 " guestfs_lstat (guestfs_h *g,\n"
12669 "                const char *path);\n"
12670 "\n"
12671 msgstr ""
12672
12673 #. type: textblock
12674 #: ../src/guestfs-actions.pod:3838 ../src/guestfs-actions.pod:6479
12675 #: ../fish/guestfish-actions.pod:2626 ../fish/guestfish-actions.pod:4343
12676 msgid "Returns file information for the given C<path>."
12677 msgstr ""
12678
12679 #. type: textblock
12680 #: ../src/guestfs-actions.pod:3840
12681 msgid ""
12682 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
12683 "link, then the link is stat-ed, not the file it refers to."
12684 msgstr ""
12685
12686 #. type: textblock
12687 #: ../src/guestfs-actions.pod:3844 ../fish/guestfish-actions.pod:2632
12688 msgid "This is the same as the C<lstat(2)> system call."
12689 msgstr ""
12690
12691 #. type: textblock
12692 #: ../src/guestfs-actions.pod:3846 ../src/guestfs-actions.pod:6483
12693 msgid ""
12694 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
12695 "error.  I<The caller must call C<guestfs_free_stat> after use>."
12696 msgstr ""
12697
12698 #. type: textblock
12699 #: ../src/guestfs-actions.pod:3850 ../src/guestfs-actions.pod:6487
12700 #: ../src/guestfs-actions.pod:6505 ../src/guestfs-actions.pod:6886
12701 msgid "(Added in 0.9.2)"
12702 msgstr ""
12703
12704 #. type: =head2
12705 #: ../src/guestfs-actions.pod:3852
12706 msgid "guestfs_lstatlist"
12707 msgstr ""
12708
12709 #. type: verbatim
12710 #: ../src/guestfs-actions.pod:3854
12711 #, no-wrap
12712 msgid ""
12713 " struct guestfs_stat_list *\n"
12714 " guestfs_lstatlist (guestfs_h *g,\n"
12715 "                    const char *path,\n"
12716 "                    char *const *names);\n"
12717 "\n"
12718 msgstr ""
12719
12720 #. type: textblock
12721 #: ../src/guestfs-actions.pod:3859
12722 msgid ""
12723 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
12724 "files, where all files are in the directory C<path>.  C<names> is the list "
12725 "of files from this directory."
12726 msgstr ""
12727
12728 #. type: textblock
12729 #: ../src/guestfs-actions.pod:3863 ../fish/guestfish-actions.pod:2642
12730 msgid ""
12731 "On return you get a list of stat structs, with a one-to-one correspondence "
12732 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12733 "then the C<ino> field of that structure is set to C<-1>."
12734 msgstr ""
12735
12736 #. type: textblock
12737 #: ../src/guestfs-actions.pod:3868
12738 msgid ""
12739 "This call is intended for programs that want to efficiently list a directory "
12740 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
12741 "for a similarly efficient call for getting extended attributes.  Very long "
12742 "directory listings might cause the protocol message size to be exceeded, "
12743 "causing this call to fail.  The caller must split up such requests into "
12744 "smaller groups of names."
12745 msgstr ""
12746
12747 #. type: textblock
12748 #: ../src/guestfs-actions.pod:3876
12749 msgid ""
12750 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
12751 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
12752 msgstr ""
12753
12754 #. type: =head2
12755 #: ../src/guestfs-actions.pod:3882
12756 msgid "guestfs_luks_add_key"
12757 msgstr ""
12758
12759 #. type: verbatim
12760 #: ../src/guestfs-actions.pod:3884
12761 #, no-wrap
12762 msgid ""
12763 " int\n"
12764 " guestfs_luks_add_key (guestfs_h *g,\n"
12765 "                       const char *device,\n"
12766 "                       const char *key,\n"
12767 "                       const char *newkey,\n"
12768 "                       int keyslot);\n"
12769 "\n"
12770 msgstr ""
12771
12772 #. type: textblock
12773 #: ../src/guestfs-actions.pod:3891 ../fish/guestfish-actions.pod:2659
12774 msgid ""
12775 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12776 "existing key, and is used to access the device.  C<newkey> is the new key to "
12777 "add.  C<keyslot> is the key slot that will be replaced."
12778 msgstr ""
12779
12780 #. type: textblock
12781 #: ../src/guestfs-actions.pod:3896
12782 msgid ""
12783 "Note that if C<keyslot> already contains a key, then this command will "
12784 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
12785 msgstr ""
12786
12787 #. type: textblock
12788 #: ../src/guestfs-actions.pod:3902 ../src/guestfs-actions.pod:3942
12789 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:3985
12790 #: ../src/guestfs-actions.pod:4017 ../src/guestfs-actions.pod:4036
12791 msgid ""
12792 "This function takes a key or passphrase parameter which could contain "
12793 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
12794 "information."
12795 msgstr ""
12796
12797 #. type: textblock
12798 #: ../src/guestfs-actions.pod:3906 ../src/guestfs-actions.pod:3946
12799 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:3989
12800 msgid "(Added in 1.5.2)"
12801 msgstr ""
12802
12803 #. type: =head2
12804 #: ../src/guestfs-actions.pod:3908
12805 msgid "guestfs_luks_close"
12806 msgstr ""
12807
12808 #. type: verbatim
12809 #: ../src/guestfs-actions.pod:3910
12810 #, no-wrap
12811 msgid ""
12812 " int\n"
12813 " guestfs_luks_close (guestfs_h *g,\n"
12814 "                     const char *device);\n"
12815 "\n"
12816 msgstr ""
12817
12818 #. type: textblock
12819 #: ../src/guestfs-actions.pod:3914
12820 msgid ""
12821 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
12822 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
12823 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
12824 "underlying block device."
12825 msgstr ""
12826
12827 #. type: textblock
12828 #: ../src/guestfs-actions.pod:3922 ../src/guestfs-actions.pod:4021
12829 #: ../src/guestfs-actions.pod:4040 ../src/guestfs-actions.pod:4090
12830 #: ../src/guestfs-actions.pod:4138
12831 msgid "(Added in 1.5.1)"
12832 msgstr ""
12833
12834 #. type: =head2
12835 #: ../src/guestfs-actions.pod:3924
12836 msgid "guestfs_luks_format"
12837 msgstr ""
12838
12839 #. type: verbatim
12840 #: ../src/guestfs-actions.pod:3926
12841 #, no-wrap
12842 msgid ""
12843 " int\n"
12844 " guestfs_luks_format (guestfs_h *g,\n"
12845 "                      const char *device,\n"
12846 "                      const char *key,\n"
12847 "                      int keyslot);\n"
12848 "\n"
12849 msgstr ""
12850
12851 #. type: textblock
12852 #: ../src/guestfs-actions.pod:3932 ../fish/guestfish-actions.pod:2685
12853 msgid ""
12854 "This command erases existing data on C<device> and formats the device as a "
12855 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12856 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12857 msgstr ""
12858
12859 #. type: textblock
12860 #: ../src/guestfs-actions.pod:3939 ../src/guestfs-actions.pod:3962
12861 #: ../src/guestfs-actions.pod:4102 ../src/guestfs-actions.pod:5099
12862 #: ../src/guestfs-actions.pod:5879 ../src/guestfs-actions.pod:6286
12863 #: ../src/guestfs-actions.pod:6316 ../src/guestfs-actions.pod:6349
12864 #: ../src/guestfs-actions.pod:7531 ../fish/guestfish-actions.pod:2693
12865 #: ../fish/guestfish-actions.pod:2706 ../fish/guestfish-actions.pod:2790
12866 #: ../fish/guestfish-actions.pod:3384 ../fish/guestfish-actions.pod:3904
12867 #: ../fish/guestfish-actions.pod:4214 ../fish/guestfish-actions.pod:4237
12868 #: ../fish/guestfish-actions.pod:4259 ../fish/guestfish-actions.pod:4989
12869 msgid ""
12870 "B<This command is dangerous.  Without careful use you can easily destroy all "
12871 "your data>."
12872 msgstr ""
12873
12874 #. type: =head2
12875 #: ../src/guestfs-actions.pod:3948
12876 msgid "guestfs_luks_format_cipher"
12877 msgstr ""
12878
12879 #. type: verbatim
12880 #: ../src/guestfs-actions.pod:3950
12881 #, no-wrap
12882 msgid ""
12883 " int\n"
12884 " guestfs_luks_format_cipher (guestfs_h *g,\n"
12885 "                             const char *device,\n"
12886 "                             const char *key,\n"
12887 "                             int keyslot,\n"
12888 "                             const char *cipher);\n"
12889 "\n"
12890 msgstr ""
12891
12892 #. type: textblock
12893 #: ../src/guestfs-actions.pod:3957
12894 msgid ""
12895 "This command is the same as C<guestfs_luks_format> but it also allows you to "
12896 "set the C<cipher> used."
12897 msgstr ""
12898
12899 #. type: =head2
12900 #: ../src/guestfs-actions.pod:3971
12901 msgid "guestfs_luks_kill_slot"
12902 msgstr ""
12903
12904 #. type: verbatim
12905 #: ../src/guestfs-actions.pod:3973
12906 #, no-wrap
12907 msgid ""
12908 " int\n"
12909 " guestfs_luks_kill_slot (guestfs_h *g,\n"
12910 "                         const char *device,\n"
12911 "                         const char *key,\n"
12912 "                         int keyslot);\n"
12913 "\n"
12914 msgstr ""
12915
12916 #. type: textblock
12917 #: ../src/guestfs-actions.pod:3979 ../fish/guestfish-actions.pod:2713
12918 msgid ""
12919 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12920 "device C<device>.  C<key> must be one of the I<other> keys."
12921 msgstr ""
12922
12923 #. type: =head2
12924 #: ../src/guestfs-actions.pod:3991
12925 msgid "guestfs_luks_open"
12926 msgstr ""
12927
12928 #. type: verbatim
12929 #: ../src/guestfs-actions.pod:3993
12930 #, no-wrap
12931 msgid ""
12932 " int\n"
12933 " guestfs_luks_open (guestfs_h *g,\n"
12934 "                    const char *device,\n"
12935 "                    const char *key,\n"
12936 "                    const char *mapname);\n"
12937 "\n"
12938 msgstr ""
12939
12940 #. type: textblock
12941 #: ../src/guestfs-actions.pod:3999 ../fish/guestfish-actions.pod:2724
12942 msgid ""
12943 "This command opens a block device which has been encrypted according to the "
12944 "Linux Unified Key Setup (LUKS) standard."
12945 msgstr ""
12946
12947 #. type: textblock
12948 #: ../src/guestfs-actions.pod:4002 ../fish/guestfish-actions.pod:2727
12949 msgid "C<device> is the encrypted block device or partition."
12950 msgstr ""
12951
12952 #. type: textblock
12953 #: ../src/guestfs-actions.pod:4004 ../fish/guestfish-actions.pod:2729
12954 msgid ""
12955 "The caller must supply one of the keys associated with the LUKS block "
12956 "device, in the C<key> parameter."
12957 msgstr ""
12958
12959 #. type: textblock
12960 #: ../src/guestfs-actions.pod:4007 ../fish/guestfish-actions.pod:2732
12961 msgid ""
12962 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12963 "writes to this block device are decrypted from and encrypted to the "
12964 "underlying C<device> respectively."
12965 msgstr ""
12966
12967 #. type: textblock
12968 #: ../src/guestfs-actions.pod:4011
12969 msgid ""
12970 "If this block device contains LVM volume groups, then calling "
12971 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
12972 "visible."
12973 msgstr ""
12974
12975 #. type: =head2
12976 #: ../src/guestfs-actions.pod:4023
12977 msgid "guestfs_luks_open_ro"
12978 msgstr ""
12979
12980 #. type: verbatim
12981 #: ../src/guestfs-actions.pod:4025
12982 #, no-wrap
12983 msgid ""
12984 " int\n"
12985 " guestfs_luks_open_ro (guestfs_h *g,\n"
12986 "                       const char *device,\n"
12987 "                       const char *key,\n"
12988 "                       const char *mapname);\n"
12989 "\n"
12990 msgstr ""
12991
12992 #. type: textblock
12993 #: ../src/guestfs-actions.pod:4031
12994 msgid ""
12995 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
12996 "created."
12997 msgstr ""
12998
12999 #. type: =head2
13000 #: ../src/guestfs-actions.pod:4042
13001 msgid "guestfs_lvcreate"
13002 msgstr ""
13003
13004 #. type: verbatim
13005 #: ../src/guestfs-actions.pod:4044
13006 #, no-wrap
13007 msgid ""
13008 " int\n"
13009 " guestfs_lvcreate (guestfs_h *g,\n"
13010 "                   const char *logvol,\n"
13011 "                   const char *volgroup,\n"
13012 "                   int mbytes);\n"
13013 "\n"
13014 msgstr ""
13015
13016 #. type: textblock
13017 #: ../src/guestfs-actions.pod:4050 ../fish/guestfish-actions.pod:2757
13018 msgid ""
13019 "This creates an LVM logical volume called C<logvol> on the volume group "
13020 "C<volgroup>, with C<size> megabytes."
13021 msgstr ""
13022
13023 #. type: =head2
13024 #: ../src/guestfs-actions.pod:4057
13025 msgid "guestfs_lvm_canonical_lv_name"
13026 msgstr ""
13027
13028 #. type: verbatim
13029 #: ../src/guestfs-actions.pod:4059
13030 #, no-wrap
13031 msgid ""
13032 " char *\n"
13033 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
13034 "                                const char *lvname);\n"
13035 "\n"
13036 msgstr ""
13037
13038 #. type: textblock
13039 #: ../src/guestfs-actions.pod:4063 ../fish/guestfish-actions.pod:2764
13040 msgid ""
13041 "This converts alternative naming schemes for LVs that you might find to the "
13042 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
13043 "LV>."
13044 msgstr ""
13045
13046 #. type: textblock
13047 #: ../src/guestfs-actions.pod:4067 ../fish/guestfish-actions.pod:2768
13048 msgid ""
13049 "This command returns an error if the C<lvname> parameter does not refer to a "
13050 "logical volume."
13051 msgstr ""
13052
13053 #. type: textblock
13054 #: ../src/guestfs-actions.pod:4070
13055 msgid "See also C<guestfs_is_lv>."
13056 msgstr ""
13057
13058 #. type: textblock
13059 #: ../src/guestfs-actions.pod:4075
13060 msgid "(Added in 1.5.24)"
13061 msgstr ""
13062
13063 #. type: =head2
13064 #: ../src/guestfs-actions.pod:4077
13065 msgid "guestfs_lvm_clear_filter"
13066 msgstr ""
13067
13068 #. type: verbatim
13069 #: ../src/guestfs-actions.pod:4079
13070 #, no-wrap
13071 msgid ""
13072 " int\n"
13073 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
13074 "\n"
13075 msgstr ""
13076
13077 #. type: textblock
13078 #: ../src/guestfs-actions.pod:4082
13079 msgid ""
13080 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
13081 "see every block device."
13082 msgstr ""
13083
13084 #. type: textblock
13085 #: ../src/guestfs-actions.pod:4085 ../src/guestfs-actions.pod:4127
13086 #: ../fish/guestfish-actions.pod:2780 ../fish/guestfish-actions.pod:2811
13087 msgid ""
13088 "This command also clears the LVM cache and performs a volume group scan."
13089 msgstr ""
13090
13091 #. type: =head2
13092 #: ../src/guestfs-actions.pod:4092
13093 msgid "guestfs_lvm_remove_all"
13094 msgstr ""
13095
13096 #. type: verbatim
13097 #: ../src/guestfs-actions.pod:4094
13098 #, no-wrap
13099 msgid ""
13100 " int\n"
13101 " guestfs_lvm_remove_all (guestfs_h *g);\n"
13102 "\n"
13103 msgstr ""
13104
13105 #. type: textblock
13106 #: ../src/guestfs-actions.pod:4097 ../fish/guestfish-actions.pod:2787
13107 msgid ""
13108 "This command removes all LVM logical volumes, volume groups and physical "
13109 "volumes."
13110 msgstr ""
13111
13112 #. type: =head2
13113 #: ../src/guestfs-actions.pod:4107
13114 msgid "guestfs_lvm_set_filter"
13115 msgstr ""
13116
13117 #. type: verbatim
13118 #: ../src/guestfs-actions.pod:4109
13119 #, no-wrap
13120 msgid ""
13121 " int\n"
13122 " guestfs_lvm_set_filter (guestfs_h *g,\n"
13123 "                         char *const *devices);\n"
13124 "\n"
13125 msgstr ""
13126
13127 #. type: textblock
13128 #: ../src/guestfs-actions.pod:4113 ../fish/guestfish-actions.pod:2797
13129 msgid ""
13130 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
13131 "block devices in the list C<devices>, and will ignore all other attached "
13132 "block devices."
13133 msgstr ""
13134
13135 #. type: textblock
13136 #: ../src/guestfs-actions.pod:4117 ../fish/guestfish-actions.pod:2801
13137 msgid ""
13138 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
13139 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
13140 "there are two types of duplication possible: either cloned PVs/VGs which "
13141 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
13142 "same name.  In normal operation you cannot create this situation, but you "
13143 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
13144 "inside the LVM metadata."
13145 msgstr ""
13146
13147 #. type: textblock
13148 #: ../src/guestfs-actions.pod:4130 ../fish/guestfish-actions.pod:2814
13149 msgid "You can filter whole block devices or individual partitions."
13150 msgstr ""
13151
13152 #. type: textblock
13153 #: ../src/guestfs-actions.pod:4132 ../fish/guestfish-actions.pod:2816
13154 msgid ""
13155 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
13156 "filesystem), even if you are not filtering out that VG."
13157 msgstr ""
13158
13159 #. type: =head2
13160 #: ../src/guestfs-actions.pod:4140
13161 msgid "guestfs_lvremove"
13162 msgstr ""
13163
13164 #. type: verbatim
13165 #: ../src/guestfs-actions.pod:4142
13166 #, no-wrap
13167 msgid ""
13168 " int\n"
13169 " guestfs_lvremove (guestfs_h *g,\n"
13170 "                   const char *device);\n"
13171 "\n"
13172 msgstr ""
13173
13174 #. type: textblock
13175 #: ../src/guestfs-actions.pod:4146 ../fish/guestfish-actions.pod:2824
13176 msgid ""
13177 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
13178 "LV, such as C</dev/VG/LV>."
13179 msgstr ""
13180
13181 #. type: textblock
13182 #: ../src/guestfs-actions.pod:4149 ../fish/guestfish-actions.pod:2827
13183 msgid ""
13184 "You can also remove all LVs in a volume group by specifying the VG name, C</"
13185 "dev/VG>."
13186 msgstr ""
13187
13188 #. type: textblock
13189 #: ../src/guestfs-actions.pod:4154 ../src/guestfs-actions.pod:5445
13190 #: ../src/guestfs-actions.pod:7262
13191 msgid "(Added in 1.0.13)"
13192 msgstr ""
13193
13194 #. type: =head2
13195 #: ../src/guestfs-actions.pod:4156
13196 msgid "guestfs_lvrename"
13197 msgstr ""
13198
13199 #. type: verbatim
13200 #: ../src/guestfs-actions.pod:4158
13201 #, no-wrap
13202 msgid ""
13203 " int\n"
13204 " guestfs_lvrename (guestfs_h *g,\n"
13205 "                   const char *logvol,\n"
13206 "                   const char *newlogvol);\n"
13207 "\n"
13208 msgstr ""
13209
13210 #. type: textblock
13211 #: ../src/guestfs-actions.pod:4163 ../fish/guestfish-actions.pod:2834
13212 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
13213 msgstr ""
13214
13215 #. type: textblock
13216 #: ../src/guestfs-actions.pod:4167 ../src/guestfs-actions.pod:7275
13217 msgid "(Added in 1.0.83)"
13218 msgstr ""
13219
13220 #. type: =head2
13221 #: ../src/guestfs-actions.pod:4169
13222 msgid "guestfs_lvresize"
13223 msgstr ""
13224
13225 #. type: verbatim
13226 #: ../src/guestfs-actions.pod:4171
13227 #, no-wrap
13228 msgid ""
13229 " int\n"
13230 " guestfs_lvresize (guestfs_h *g,\n"
13231 "                   const char *device,\n"
13232 "                   int mbytes);\n"
13233 "\n"
13234 msgstr ""
13235
13236 #. type: textblock
13237 #: ../src/guestfs-actions.pod:4176 ../fish/guestfish-actions.pod:2840
13238 msgid ""
13239 "This resizes (expands or shrinks) an existing LVM logical volume to "
13240 "C<mbytes>.  When reducing, data in the reduced part is lost."
13241 msgstr ""
13242
13243 #. type: =head2
13244 #: ../src/guestfs-actions.pod:4184
13245 msgid "guestfs_lvresize_free"
13246 msgstr ""
13247
13248 #. type: verbatim
13249 #: ../src/guestfs-actions.pod:4186
13250 #, no-wrap
13251 msgid ""
13252 " int\n"
13253 " guestfs_lvresize_free (guestfs_h *g,\n"
13254 "                        const char *lv,\n"
13255 "                        int percent);\n"
13256 "\n"
13257 msgstr ""
13258
13259 #. type: textblock
13260 #: ../src/guestfs-actions.pod:4191 ../fish/guestfish-actions.pod:2848
13261 msgid ""
13262 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
13263 "remaining free space in the volume group.  Commonly you would call this with "
13264 "pc = 100 which expands the logical volume as much as possible, using all "
13265 "remaining free space in the volume group."
13266 msgstr ""
13267
13268 #. type: textblock
13269 #: ../src/guestfs-actions.pod:4199
13270 msgid "(Added in 1.3.3)"
13271 msgstr ""
13272
13273 #. type: =head2
13274 #: ../src/guestfs-actions.pod:4201
13275 msgid "guestfs_lvs"
13276 msgstr ""
13277
13278 #. type: verbatim
13279 #: ../src/guestfs-actions.pod:4203
13280 #, no-wrap
13281 msgid ""
13282 " char **\n"
13283 " guestfs_lvs (guestfs_h *g);\n"
13284 "\n"
13285 msgstr ""
13286
13287 #. type: textblock
13288 #: ../src/guestfs-actions.pod:4206 ../fish/guestfish-actions.pod:2858
13289 msgid ""
13290 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13291 "(8)> command."
13292 msgstr ""
13293
13294 #. type: textblock
13295 #: ../src/guestfs-actions.pod:4209 ../fish/guestfish-actions.pod:2861
13296 msgid ""
13297 "This returns a list of the logical volume device names (eg. C</dev/"
13298 "VolGroup00/LogVol00>)."
13299 msgstr ""
13300
13301 #. type: textblock
13302 #: ../src/guestfs-actions.pod:4212
13303 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
13304 msgstr ""
13305
13306 #. type: =head2
13307 #: ../src/guestfs-actions.pod:4220
13308 msgid "guestfs_lvs_full"
13309 msgstr ""
13310
13311 #. type: verbatim
13312 #: ../src/guestfs-actions.pod:4222
13313 #, no-wrap
13314 msgid ""
13315 " struct guestfs_lvm_lv_list *\n"
13316 " guestfs_lvs_full (guestfs_h *g);\n"
13317 "\n"
13318 msgstr ""
13319
13320 #. type: textblock
13321 #: ../src/guestfs-actions.pod:4225 ../fish/guestfish-actions.pod:2870
13322 msgid ""
13323 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13324 "(8)> command.  The \"full\" version includes all fields."
13325 msgstr ""
13326
13327 #. type: textblock
13328 #: ../src/guestfs-actions.pod:4228
13329 msgid ""
13330 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
13331 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
13332 msgstr ""
13333
13334 #. type: =head2
13335 #: ../src/guestfs-actions.pod:4234
13336 msgid "guestfs_lvuuid"
13337 msgstr ""
13338
13339 #. type: verbatim
13340 #: ../src/guestfs-actions.pod:4236
13341 #, no-wrap
13342 msgid ""
13343 " char *\n"
13344 " guestfs_lvuuid (guestfs_h *g,\n"
13345 "                 const char *device);\n"
13346 "\n"
13347 msgstr ""
13348
13349 #. type: textblock
13350 #: ../src/guestfs-actions.pod:4240 ../fish/guestfish-actions.pod:2877
13351 msgid "This command returns the UUID of the LVM LV C<device>."
13352 msgstr ""
13353
13354 #. type: =head2
13355 #: ../src/guestfs-actions.pod:4247
13356 msgid "guestfs_lxattrlist"
13357 msgstr ""
13358
13359 #. type: verbatim
13360 #: ../src/guestfs-actions.pod:4249
13361 #, no-wrap
13362 msgid ""
13363 " struct guestfs_xattr_list *\n"
13364 " guestfs_lxattrlist (guestfs_h *g,\n"
13365 "                     const char *path,\n"
13366 "                     char *const *names);\n"
13367 "\n"
13368 msgstr ""
13369
13370 #. type: textblock
13371 #: ../src/guestfs-actions.pod:4254 ../fish/guestfish-actions.pod:2883
13372 msgid ""
13373 "This call allows you to get the extended attributes of multiple files, where "
13374 "all files are in the directory C<path>.  C<names> is the list of files from "
13375 "this directory."
13376 msgstr ""
13377
13378 #. type: textblock
13379 #: ../src/guestfs-actions.pod:4258 ../fish/guestfish-actions.pod:2887
13380 msgid ""
13381 "On return you get a flat list of xattr structs which must be interpreted "
13382 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
13383 "C<attrval> in this struct is zero-length to indicate there was an error "
13384 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
13385 "number (the number of following attributes for this file, which could be C<"
13386 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
13387 "for the first named file.  This repeats for the second and subsequent files."
13388 msgstr ""
13389
13390 #. type: textblock
13391 #: ../src/guestfs-actions.pod:4268
13392 msgid ""
13393 "This call is intended for programs that want to efficiently list a directory "
13394 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
13395 "a similarly efficient call for getting standard stats.  Very long directory "
13396 "listings might cause the protocol message size to be exceeded, causing this "
13397 "call to fail.  The caller must split up such requests into smaller groups of "
13398 "names."
13399 msgstr ""
13400
13401 #. type: =head2
13402 #: ../src/guestfs-actions.pod:4282
13403 msgid "guestfs_mkdir"
13404 msgstr ""
13405
13406 #. type: verbatim
13407 #: ../src/guestfs-actions.pod:4284
13408 #, no-wrap
13409 msgid ""
13410 " int\n"
13411 " guestfs_mkdir (guestfs_h *g,\n"
13412 "                const char *path);\n"
13413 "\n"
13414 msgstr ""
13415
13416 #. type: textblock
13417 #: ../src/guestfs-actions.pod:4288 ../fish/guestfish-actions.pod:2909
13418 msgid "Create a directory named C<path>."
13419 msgstr ""
13420
13421 #. type: =head2
13422 #: ../src/guestfs-actions.pod:4294
13423 msgid "guestfs_mkdir_mode"
13424 msgstr ""
13425
13426 #. type: verbatim
13427 #: ../src/guestfs-actions.pod:4296
13428 #, no-wrap
13429 msgid ""
13430 " int\n"
13431 " guestfs_mkdir_mode (guestfs_h *g,\n"
13432 "                     const char *path,\n"
13433 "                     int mode);\n"
13434 "\n"
13435 msgstr ""
13436
13437 #. type: textblock
13438 #: ../src/guestfs-actions.pod:4301 ../fish/guestfish-actions.pod:2915
13439 msgid ""
13440 "This command creates a directory, setting the initial permissions of the "
13441 "directory to C<mode>."
13442 msgstr ""
13443
13444 #. type: textblock
13445 #: ../src/guestfs-actions.pod:4304 ../fish/guestfish-actions.pod:2918
13446 msgid ""
13447 "For common Linux filesystems, the actual mode which is set will be C<mode & "
13448 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
13449 "other ways."
13450 msgstr ""
13451
13452 #. type: textblock
13453 #: ../src/guestfs-actions.pod:4308
13454 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
13455 msgstr ""
13456
13457 #. type: =head2
13458 #: ../src/guestfs-actions.pod:4314
13459 msgid "guestfs_mkdir_p"
13460 msgstr ""
13461
13462 #. type: verbatim
13463 #: ../src/guestfs-actions.pod:4316
13464 #, no-wrap
13465 msgid ""
13466 " int\n"
13467 " guestfs_mkdir_p (guestfs_h *g,\n"
13468 "                  const char *path);\n"
13469 "\n"
13470 msgstr ""
13471
13472 #. type: textblock
13473 #: ../src/guestfs-actions.pod:4320 ../fish/guestfish-actions.pod:2928
13474 msgid ""
13475 "Create a directory named C<path>, creating any parent directories as "
13476 "necessary.  This is like the C<mkdir -p> shell command."
13477 msgstr ""
13478
13479 #. type: =head2
13480 #: ../src/guestfs-actions.pod:4327
13481 msgid "guestfs_mkdtemp"
13482 msgstr ""
13483
13484 #. type: verbatim
13485 #: ../src/guestfs-actions.pod:4329
13486 #, no-wrap
13487 msgid ""
13488 " char *\n"
13489 " guestfs_mkdtemp (guestfs_h *g,\n"
13490 "                  const char *template);\n"
13491 "\n"
13492 msgstr ""
13493
13494 #. type: textblock
13495 #: ../src/guestfs-actions.pod:4333 ../fish/guestfish-actions.pod:2935
13496 msgid ""
13497 "This command creates a temporary directory.  The C<template> parameter "
13498 "should be a full pathname for the temporary directory name with the final "
13499 "six characters being \"XXXXXX\"."
13500 msgstr ""
13501
13502 #. type: textblock
13503 #: ../src/guestfs-actions.pod:4338 ../fish/guestfish-actions.pod:2940
13504 msgid ""
13505 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
13506 "being suitable for Windows filesystems."
13507 msgstr ""
13508
13509 #. type: textblock
13510 #: ../src/guestfs-actions.pod:4341 ../fish/guestfish-actions.pod:2943
13511 msgid "The name of the temporary directory that was created is returned."
13512 msgstr ""
13513
13514 #. type: textblock
13515 #: ../src/guestfs-actions.pod:4344 ../fish/guestfish-actions.pod:2946
13516 msgid "The temporary directory is created with mode 0700 and is owned by root."
13517 msgstr ""
13518
13519 #. type: textblock
13520 #: ../src/guestfs-actions.pod:4347 ../fish/guestfish-actions.pod:2949
13521 msgid ""
13522 "The caller is responsible for deleting the temporary directory and its "
13523 "contents after use."
13524 msgstr ""
13525
13526 #. type: textblock
13527 #: ../src/guestfs-actions.pod:4350 ../fish/guestfish-actions.pod:2952
13528 msgid "See also: L<mkdtemp(3)>"
13529 msgstr ""
13530
13531 #. type: =head2
13532 #: ../src/guestfs-actions.pod:4357
13533 msgid "guestfs_mke2fs_J"
13534 msgstr ""
13535
13536 #. type: verbatim
13537 #: ../src/guestfs-actions.pod:4359
13538 #, no-wrap
13539 msgid ""
13540 " int\n"
13541 " guestfs_mke2fs_J (guestfs_h *g,\n"
13542 "                   const char *fstype,\n"
13543 "                   int blocksize,\n"
13544 "                   const char *device,\n"
13545 "                   const char *journal);\n"
13546 "\n"
13547 msgstr ""
13548
13549 #. type: textblock
13550 #: ../src/guestfs-actions.pod:4366 ../fish/guestfish-actions.pod:2958
13551 msgid ""
13552 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13553 "C<journal>.  It is equivalent to the command:"
13554 msgstr ""
13555
13556 #. type: verbatim
13557 #: ../src/guestfs-actions.pod:4370 ../fish/guestfish-actions.pod:2962
13558 #, no-wrap
13559 msgid ""
13560 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
13561 "\n"
13562 msgstr ""
13563
13564 #. type: textblock
13565 #: ../src/guestfs-actions.pod:4372
13566 msgid "See also C<guestfs_mke2journal>."
13567 msgstr ""
13568
13569 #. type: textblock
13570 #: ../src/guestfs-actions.pod:4376 ../src/guestfs-actions.pod:4394
13571 #: ../src/guestfs-actions.pod:4412 ../src/guestfs-actions.pod:4428
13572 #: ../src/guestfs-actions.pod:4442 ../src/guestfs-actions.pod:4456
13573 #: ../src/guestfs-actions.pod:4515 ../src/guestfs-actions.pod:4780
13574 msgid "(Added in 1.0.68)"
13575 msgstr ""
13576
13577 #. type: =head2
13578 #: ../src/guestfs-actions.pod:4378
13579 msgid "guestfs_mke2fs_JL"
13580 msgstr ""
13581
13582 #. type: verbatim
13583 #: ../src/guestfs-actions.pod:4380
13584 #, no-wrap
13585 msgid ""
13586 " int\n"
13587 " guestfs_mke2fs_JL (guestfs_h *g,\n"
13588 "                    const char *fstype,\n"
13589 "                    int blocksize,\n"
13590 "                    const char *device,\n"
13591 "                    const char *label);\n"
13592 "\n"
13593 msgstr ""
13594
13595 #. type: textblock
13596 #: ../src/guestfs-actions.pod:4387 ../fish/guestfish-actions.pod:2970
13597 msgid ""
13598 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13599 "the journal labeled C<label>."
13600 msgstr ""
13601
13602 #. type: textblock
13603 #: ../src/guestfs-actions.pod:4390
13604 msgid "See also C<guestfs_mke2journal_L>."
13605 msgstr ""
13606
13607 #. type: =head2
13608 #: ../src/guestfs-actions.pod:4396
13609 msgid "guestfs_mke2fs_JU"
13610 msgstr ""
13611
13612 #. type: verbatim
13613 #: ../src/guestfs-actions.pod:4398
13614 #, no-wrap
13615 msgid ""
13616 " int\n"
13617 " guestfs_mke2fs_JU (guestfs_h *g,\n"
13618 "                    const char *fstype,\n"
13619 "                    int blocksize,\n"
13620 "                    const char *device,\n"
13621 "                    const char *uuid);\n"
13622 "\n"
13623 msgstr ""
13624
13625 #. type: textblock
13626 #: ../src/guestfs-actions.pod:4405 ../fish/guestfish-actions.pod:2979
13627 msgid ""
13628 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13629 "the journal with UUID C<uuid>."
13630 msgstr ""
13631
13632 #. type: textblock
13633 #: ../src/guestfs-actions.pod:4408
13634 msgid "See also C<guestfs_mke2journal_U>."
13635 msgstr ""
13636
13637 #. type: =head2
13638 #: ../src/guestfs-actions.pod:4414
13639 msgid "guestfs_mke2journal"
13640 msgstr ""
13641
13642 #. type: verbatim
13643 #: ../src/guestfs-actions.pod:4416
13644 #, no-wrap
13645 msgid ""
13646 " int\n"
13647 " guestfs_mke2journal (guestfs_h *g,\n"
13648 "                      int blocksize,\n"
13649 "                      const char *device);\n"
13650 "\n"
13651 msgstr ""
13652
13653 #. type: textblock
13654 #: ../src/guestfs-actions.pod:4421 ../fish/guestfish-actions.pod:2988
13655 msgid ""
13656 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
13657 "command:"
13658 msgstr ""
13659
13660 #. type: verbatim
13661 #: ../src/guestfs-actions.pod:4424 ../fish/guestfish-actions.pod:2991
13662 #, no-wrap
13663 msgid ""
13664 " mke2fs -O journal_dev -b blocksize device\n"
13665 "\n"
13666 msgstr ""
13667
13668 #. type: =head2
13669 #: ../src/guestfs-actions.pod:4430
13670 msgid "guestfs_mke2journal_L"
13671 msgstr ""
13672
13673 #. type: verbatim
13674 #: ../src/guestfs-actions.pod:4432
13675 #, no-wrap
13676 msgid ""
13677 " int\n"
13678 " guestfs_mke2journal_L (guestfs_h *g,\n"
13679 "                        int blocksize,\n"
13680 "                        const char *label,\n"
13681 "                        const char *device);\n"
13682 "\n"
13683 msgstr ""
13684
13685 #. type: textblock
13686 #: ../src/guestfs-actions.pod:4438 ../fish/guestfish-actions.pod:2997
13687 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13688 msgstr ""
13689
13690 #. type: =head2
13691 #: ../src/guestfs-actions.pod:4444
13692 msgid "guestfs_mke2journal_U"
13693 msgstr ""
13694
13695 #. type: verbatim
13696 #: ../src/guestfs-actions.pod:4446
13697 #, no-wrap
13698 msgid ""
13699 " int\n"
13700 " guestfs_mke2journal_U (guestfs_h *g,\n"
13701 "                        int blocksize,\n"
13702 "                        const char *uuid,\n"
13703 "                        const char *device);\n"
13704 "\n"
13705 msgstr ""
13706
13707 #. type: textblock
13708 #: ../src/guestfs-actions.pod:4452 ../fish/guestfish-actions.pod:3003
13709 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13710 msgstr ""
13711
13712 #. type: =head2
13713 #: ../src/guestfs-actions.pod:4458
13714 msgid "guestfs_mkfifo"
13715 msgstr ""
13716
13717 #. type: verbatim
13718 #: ../src/guestfs-actions.pod:4460
13719 #, no-wrap
13720 msgid ""
13721 " int\n"
13722 " guestfs_mkfifo (guestfs_h *g,\n"
13723 "                 int mode,\n"
13724 "                 const char *path);\n"
13725 "\n"
13726 msgstr ""
13727
13728 #. type: textblock
13729 #: ../src/guestfs-actions.pod:4465
13730 msgid ""
13731 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
13732 "is just a convenient wrapper around C<guestfs_mknod>."
13733 msgstr ""
13734
13735 #. type: =head2
13736 #: ../src/guestfs-actions.pod:4475
13737 msgid "guestfs_mkfs"
13738 msgstr ""
13739
13740 #. type: verbatim
13741 #: ../src/guestfs-actions.pod:4477
13742 #, no-wrap
13743 msgid ""
13744 " int\n"
13745 " guestfs_mkfs (guestfs_h *g,\n"
13746 "               const char *fstype,\n"
13747 "               const char *device);\n"
13748 "\n"
13749 msgstr ""
13750
13751 #. type: textblock
13752 #: ../src/guestfs-actions.pod:4482 ../fish/guestfish-actions.pod:3019
13753 msgid ""
13754 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13755 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
13756 msgstr ""
13757
13758 #. type: =head2
13759 #: ../src/guestfs-actions.pod:4490
13760 msgid "guestfs_mkfs_b"
13761 msgstr ""
13762
13763 #. type: verbatim
13764 #: ../src/guestfs-actions.pod:4492
13765 #, no-wrap
13766 msgid ""
13767 " int\n"
13768 " guestfs_mkfs_b (guestfs_h *g,\n"
13769 "                 const char *fstype,\n"
13770 "                 int blocksize,\n"
13771 "                 const char *device);\n"
13772 "\n"
13773 msgstr ""
13774
13775 #. type: textblock
13776 #: ../src/guestfs-actions.pod:4498
13777 msgid ""
13778 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
13779 "block size of the resulting filesystem.  Supported block sizes depend on the "
13780 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13781 msgstr ""
13782
13783 #. type: textblock
13784 #: ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:4546
13785 #: ../fish/guestfish-actions.pod:3032 ../fish/guestfish-actions.pod:3059
13786 msgid ""
13787 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13788 "cluster size."
13789 msgstr ""
13790
13791 #. type: textblock
13792 #: ../src/guestfs-actions.pod:4508 ../fish/guestfish-actions.pod:3035
13793 msgid ""
13794 "This function is deprecated.  In new code, use the C<mkfs_opts> call instead."
13795 msgstr ""
13796
13797 #. type: =head2
13798 #: ../src/guestfs-actions.pod:4517
13799 msgid "guestfs_mkfs_opts"
13800 msgstr ""
13801
13802 #. type: verbatim
13803 #: ../src/guestfs-actions.pod:4519
13804 #, no-wrap
13805 msgid ""
13806 " int\n"
13807 " guestfs_mkfs_opts (guestfs_h *g,\n"
13808 "                    const char *fstype,\n"
13809 "                    const char *device,\n"
13810 "                    ...);\n"
13811 "\n"
13812 msgstr ""
13813
13814 #. type: verbatim
13815 #: ../src/guestfs-actions.pod:4530
13816 #, no-wrap
13817 msgid ""
13818 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
13819 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
13820 "\n"
13821 msgstr ""
13822
13823 #. type: textblock
13824 #: ../src/guestfs-actions.pod:4533 ../fish/guestfish-actions.pod:3046
13825 msgid ""
13826 "This function creates a filesystem on C<device>.  The filesystem type is "
13827 "C<fstype>, for example C<ext3>."
13828 msgstr ""
13829
13830 #. type: =item
13831 #: ../src/guestfs-actions.pod:4540 ../fish/guestfish-actions.pod:3053
13832 msgid "C<blocksize>"
13833 msgstr ""
13834
13835 #. type: textblock
13836 #: ../src/guestfs-actions.pod:4542 ../fish/guestfish-actions.pod:3055
13837 msgid ""
13838 "The filesystem block size.  Supported block sizes depend on the filesystem "
13839 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13840 "filesystems."
13841 msgstr ""
13842
13843 #. type: textblock
13844 #: ../src/guestfs-actions.pod:4549 ../fish/guestfish-actions.pod:3062
13845 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13846 msgstr ""
13847
13848 #. type: =item
13849 #: ../src/guestfs-actions.pod:4551 ../fish/guestfish-actions.pod:3064
13850 msgid "C<features>"
13851 msgstr ""
13852
13853 #. type: textblock
13854 #: ../src/guestfs-actions.pod:4553 ../fish/guestfish-actions.pod:3066
13855 msgid "This passes the I<-O> parameter to the external mkfs program."
13856 msgstr ""
13857
13858 #. type: textblock
13859 #: ../src/guestfs-actions.pod:4555 ../fish/guestfish-actions.pod:3068
13860 msgid ""
13861 "For certain filesystem types, this allows extra filesystem features to be "
13862 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13863 msgstr ""
13864
13865 #. type: textblock
13866 #: ../src/guestfs-actions.pod:4559 ../fish/guestfish-actions.pod:3072
13867 msgid ""
13868 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13869 "type."
13870 msgstr ""
13871
13872 #. type: textblock
13873 #: ../src/guestfs-actions.pod:4566
13874 msgid "(Added in 1.7.19)"
13875 msgstr ""
13876
13877 #. type: =head2
13878 #: ../src/guestfs-actions.pod:4568
13879 msgid "guestfs_mkfs_opts_va"
13880 msgstr ""
13881
13882 #. type: verbatim
13883 #: ../src/guestfs-actions.pod:4570
13884 #, no-wrap
13885 msgid ""
13886 " int\n"
13887 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
13888 "                       const char *fstype,\n"
13889 "                       const char *device,\n"
13890 "                       va_list args);\n"
13891 "\n"
13892 msgstr ""
13893
13894 #. type: textblock
13895 #: ../src/guestfs-actions.pod:4576
13896 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
13897 msgstr ""
13898
13899 #. type: =head2
13900 #: ../src/guestfs-actions.pod:4580
13901 msgid "guestfs_mkfs_opts_argv"
13902 msgstr ""
13903
13904 #. type: verbatim
13905 #: ../src/guestfs-actions.pod:4582
13906 #, no-wrap
13907 msgid ""
13908 " int\n"
13909 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
13910 "                         const char *fstype,\n"
13911 "                         const char *device,\n"
13912 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
13913 "\n"
13914 msgstr ""
13915
13916 #. type: textblock
13917 #: ../src/guestfs-actions.pod:4588
13918 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
13919 msgstr ""
13920
13921 #. type: =head2
13922 #: ../src/guestfs-actions.pod:4592
13923 msgid "guestfs_mkmountpoint"
13924 msgstr ""
13925
13926 #. type: verbatim
13927 #: ../src/guestfs-actions.pod:4594
13928 #, no-wrap
13929 msgid ""
13930 " int\n"
13931 " guestfs_mkmountpoint (guestfs_h *g,\n"
13932 "                       const char *exemptpath);\n"
13933 "\n"
13934 msgstr ""
13935
13936 #. type: textblock
13937 #: ../src/guestfs-actions.pod:4598
13938 msgid ""
13939 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
13940 "that can be used to create extra mountpoints before mounting the first "
13941 "filesystem."
13942 msgstr ""
13943
13944 #. type: textblock
13945 #: ../src/guestfs-actions.pod:4602 ../fish/guestfish-actions.pod:3087
13946 msgid ""
13947 "These calls are I<only> necessary in some very limited circumstances, mainly "
13948 "the case where you want to mount a mix of unrelated and/or read-only "
13949 "filesystems together."
13950 msgstr ""
13951
13952 #. type: textblock
13953 #: ../src/guestfs-actions.pod:4606 ../fish/guestfish-actions.pod:3091
13954 msgid ""
13955 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13956 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13957 "inside that.  You can unpack this as follows in guestfish:"
13958 msgstr ""
13959
13960 #. type: verbatim
13961 #: ../src/guestfs-actions.pod:4611 ../fish/guestfish-actions.pod:3096
13962 #, no-wrap
13963 msgid ""
13964 " add-ro Fedora-11-i686-Live.iso\n"
13965 " run\n"
13966 " mkmountpoint /cd\n"
13967 " mkmountpoint /sqsh\n"
13968 " mkmountpoint /ext3fs\n"
13969 " mount /dev/sda /cd\n"
13970 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13971 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13972 "\n"
13973 msgstr ""
13974
13975 #. type: textblock
13976 #: ../src/guestfs-actions.pod:4620 ../fish/guestfish-actions.pod:3105
13977 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13978 msgstr ""
13979
13980 #. type: textblock
13981 #: ../src/guestfs-actions.pod:4622
13982 msgid ""
13983 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
13984 "may get unexpected errors if you try to mix these calls.  It is safest to "
13985 "manually unmount filesystems and remove mountpoints after use."
13986 msgstr ""
13987
13988 #. type: textblock
13989 #: ../src/guestfs-actions.pod:4626
13990 msgid ""
13991 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
13992 "first, so for this to work for manual mountpoints, you must ensure that the "
13993 "innermost mountpoints have the longest pathnames, as in the example code "
13994 "above."
13995 msgstr ""
13996
13997 #. type: textblock
13998 #: ../src/guestfs-actions.pod:4631 ../fish/guestfish-actions.pod:3116
13999 msgid ""
14000 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
14001 msgstr ""
14002
14003 #. type: textblock
14004 #: ../src/guestfs-actions.pod:4633
14005 msgid ""
14006 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
14007 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
14008 "can also trigger these issues."
14009 msgstr ""
14010
14011 #. type: textblock
14012 #: ../src/guestfs-actions.pod:4639 ../src/guestfs-actions.pod:4953
14013 #: ../src/guestfs-actions.pod:5863
14014 msgid "(Added in 1.0.62)"
14015 msgstr ""
14016
14017 #. type: =head2
14018 #: ../src/guestfs-actions.pod:4641
14019 msgid "guestfs_mknod"
14020 msgstr ""
14021
14022 #. type: verbatim
14023 #: ../src/guestfs-actions.pod:4643
14024 #, no-wrap
14025 msgid ""
14026 " int\n"
14027 " guestfs_mknod (guestfs_h *g,\n"
14028 "                int mode,\n"
14029 "                int devmajor,\n"
14030 "                int devminor,\n"
14031 "                const char *path);\n"
14032 "\n"
14033 msgstr ""
14034
14035 #. type: textblock
14036 #: ../src/guestfs-actions.pod:4650 ../fish/guestfish-actions.pod:3126
14037 msgid ""
14038 "This call creates block or character special devices, or named pipes (FIFOs)."
14039 msgstr ""
14040
14041 #. type: textblock
14042 #: ../src/guestfs-actions.pod:4653 ../fish/guestfish-actions.pod:3129
14043 msgid ""
14044 "The C<mode> parameter should be the mode, using the standard constants.  "
14045 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
14046 "used when creating block and character special devices."
14047 msgstr ""
14048
14049 #. type: textblock
14050 #: ../src/guestfs-actions.pod:4658
14051 msgid ""
14052 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
14053 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
14054 "regular file).  These constants are available in the standard Linux header "
14055 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
14056 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
14057 "the appropriate constant for you."
14058 msgstr ""
14059
14060 #. type: =head2
14061 #: ../src/guestfs-actions.pod:4672
14062 msgid "guestfs_mknod_b"
14063 msgstr ""
14064
14065 #. type: verbatim
14066 #: ../src/guestfs-actions.pod:4674
14067 #, no-wrap
14068 msgid ""
14069 " int\n"
14070 " guestfs_mknod_b (guestfs_h *g,\n"
14071 "                  int mode,\n"
14072 "                  int devmajor,\n"
14073 "                  int devminor,\n"
14074 "                  const char *path);\n"
14075 "\n"
14076 msgstr ""
14077
14078 #. type: textblock
14079 #: ../src/guestfs-actions.pod:4681
14080 msgid ""
14081 "This call creates a block device node called C<path> with mode C<mode> and "
14082 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14083 "wrapper around C<guestfs_mknod>."
14084 msgstr ""
14085
14086 #. type: =head2
14087 #: ../src/guestfs-actions.pod:4691
14088 msgid "guestfs_mknod_c"
14089 msgstr ""
14090
14091 #. type: verbatim
14092 #: ../src/guestfs-actions.pod:4693
14093 #, no-wrap
14094 msgid ""
14095 " int\n"
14096 " guestfs_mknod_c (guestfs_h *g,\n"
14097 "                  int mode,\n"
14098 "                  int devmajor,\n"
14099 "                  int devminor,\n"
14100 "                  const char *path);\n"
14101 "\n"
14102 msgstr ""
14103
14104 #. type: textblock
14105 #: ../src/guestfs-actions.pod:4700
14106 msgid ""
14107 "This call creates a char device node called C<path> with mode C<mode> and "
14108 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14109 "wrapper around C<guestfs_mknod>."
14110 msgstr ""
14111
14112 #. type: =head2
14113 #: ../src/guestfs-actions.pod:4710
14114 msgid "guestfs_mkswap"
14115 msgstr ""
14116
14117 #. type: verbatim
14118 #: ../src/guestfs-actions.pod:4712
14119 #, no-wrap
14120 msgid ""
14121 " int\n"
14122 " guestfs_mkswap (guestfs_h *g,\n"
14123 "                 const char *device);\n"
14124 "\n"
14125 msgstr ""
14126
14127 #. type: textblock
14128 #: ../src/guestfs-actions.pod:4716 ../fish/guestfish-actions.pod:3168
14129 msgid "Create a swap partition on C<device>."
14130 msgstr ""
14131
14132 #. type: =head2
14133 #: ../src/guestfs-actions.pod:4722
14134 msgid "guestfs_mkswap_L"
14135 msgstr ""
14136
14137 #. type: verbatim
14138 #: ../src/guestfs-actions.pod:4724
14139 #, no-wrap
14140 msgid ""
14141 " int\n"
14142 " guestfs_mkswap_L (guestfs_h *g,\n"
14143 "                   const char *label,\n"
14144 "                   const char *device);\n"
14145 "\n"
14146 msgstr ""
14147
14148 #. type: textblock
14149 #: ../src/guestfs-actions.pod:4729 ../fish/guestfish-actions.pod:3174
14150 msgid "Create a swap partition on C<device> with label C<label>."
14151 msgstr ""
14152
14153 #. type: textblock
14154 #: ../src/guestfs-actions.pod:4731 ../fish/guestfish-actions.pod:3176
14155 msgid ""
14156 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
14157 "sda>), just to a partition.  This appears to be a limitation of the kernel "
14158 "or swap tools."
14159 msgstr ""
14160
14161 #. type: =head2
14162 #: ../src/guestfs-actions.pod:4739
14163 msgid "guestfs_mkswap_U"
14164 msgstr ""
14165
14166 #. type: verbatim
14167 #: ../src/guestfs-actions.pod:4741
14168 #, no-wrap
14169 msgid ""
14170 " int\n"
14171 " guestfs_mkswap_U (guestfs_h *g,\n"
14172 "                   const char *uuid,\n"
14173 "                   const char *device);\n"
14174 "\n"
14175 msgstr ""
14176
14177 #. type: textblock
14178 #: ../src/guestfs-actions.pod:4746 ../fish/guestfish-actions.pod:3184
14179 msgid "Create a swap partition on C<device> with UUID C<uuid>."
14180 msgstr ""
14181
14182 #. type: =head2
14183 #: ../src/guestfs-actions.pod:4752
14184 msgid "guestfs_mkswap_file"
14185 msgstr ""
14186
14187 #. type: verbatim
14188 #: ../src/guestfs-actions.pod:4754
14189 #, no-wrap
14190 msgid ""
14191 " int\n"
14192 " guestfs_mkswap_file (guestfs_h *g,\n"
14193 "                      const char *path);\n"
14194 "\n"
14195 msgstr ""
14196
14197 #. type: textblock
14198 #: ../src/guestfs-actions.pod:4758 ../fish/guestfish-actions.pod:3190
14199 msgid "Create a swap file."
14200 msgstr ""
14201
14202 #. type: textblock
14203 #: ../src/guestfs-actions.pod:4760
14204 msgid ""
14205 "This command just writes a swap file signature to an existing file.  To "
14206 "create the file itself, use something like C<guestfs_fallocate>."
14207 msgstr ""
14208
14209 #. type: =head2
14210 #: ../src/guestfs-actions.pod:4767
14211 msgid "guestfs_modprobe"
14212 msgstr ""
14213
14214 #. type: verbatim
14215 #: ../src/guestfs-actions.pod:4769
14216 #, no-wrap
14217 msgid ""
14218 " int\n"
14219 " guestfs_modprobe (guestfs_h *g,\n"
14220 "                   const char *modulename);\n"
14221 "\n"
14222 msgstr ""
14223
14224 #. type: textblock
14225 #: ../src/guestfs-actions.pod:4773 ../fish/guestfish-actions.pod:3199
14226 msgid "This loads a kernel module in the appliance."
14227 msgstr ""
14228
14229 #. type: textblock
14230 #: ../src/guestfs-actions.pod:4775 ../fish/guestfish-actions.pod:3201
14231 msgid ""
14232 "The kernel module must have been whitelisted when libguestfs was built (see "
14233 "C<appliance/kmod.whitelist.in> in the source)."
14234 msgstr ""
14235
14236 #. type: =head2
14237 #: ../src/guestfs-actions.pod:4782
14238 msgid "guestfs_mount"
14239 msgstr ""
14240
14241 #. type: verbatim
14242 #: ../src/guestfs-actions.pod:4784
14243 #, no-wrap
14244 msgid ""
14245 " int\n"
14246 " guestfs_mount (guestfs_h *g,\n"
14247 "                const char *device,\n"
14248 "                const char *mountpoint);\n"
14249 "\n"
14250 msgstr ""
14251
14252 #. type: textblock
14253 #: ../src/guestfs-actions.pod:4789 ../fish/guestfish-actions.pod:3208
14254 msgid ""
14255 "Mount a guest disk at a position in the filesystem.  Block devices are named "
14256 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
14257 "those block devices contain partitions, they will have the usual names (eg. "
14258 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
14259 msgstr ""
14260
14261 #. type: textblock
14262 #: ../src/guestfs-actions.pod:4795 ../fish/guestfish-actions.pod:3214
14263 msgid ""
14264 "The rules are the same as for L<mount(2)>: A filesystem must first be "
14265 "mounted on C</> before others can be mounted.  Other filesystems can only be "
14266 "mounted on directories which already exist."
14267 msgstr ""
14268
14269 #. type: textblock
14270 #: ../src/guestfs-actions.pod:4800 ../fish/guestfish-actions.pod:3219
14271 msgid ""
14272 "The mounted filesystem is writable, if we have sufficient permissions on the "
14273 "underlying device."
14274 msgstr ""
14275
14276 #. type: textblock
14277 #: ../src/guestfs-actions.pod:4803
14278 msgid ""
14279 "B<Important note:> When you use this call, the filesystem options C<sync> "
14280 "and C<noatime> are set implicitly.  This was originally done because we "
14281 "thought it would improve reliability, but it turns out that I<-o sync> has a "
14282 "very large negative performance impact and negligible effect on "
14283 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
14284 "in any code that needs performance, and instead use C<guestfs_mount_options> "
14285 "(use an empty string for the first parameter if you don't want any options)."
14286 msgstr ""
14287
14288 #. type: textblock
14289 #: ../src/guestfs-actions.pod:4815 ../fish/guestfish-actions.pod:3232
14290 msgid ""
14291 "This function is deprecated.  In new code, use the C<mount_options> call "
14292 "instead."
14293 msgstr ""
14294
14295 #. type: =head2
14296 #: ../src/guestfs-actions.pod:4824
14297 msgid "guestfs_mount_9p"
14298 msgstr ""
14299
14300 #. type: verbatim
14301 #: ../src/guestfs-actions.pod:4826
14302 #, no-wrap
14303 msgid ""
14304 " int\n"
14305 " guestfs_mount_9p (guestfs_h *g,\n"
14306 "                   const char *mounttag,\n"
14307 "                   const char *mountpoint,\n"
14308 "                   ...);\n"
14309 "\n"
14310 msgstr ""
14311
14312 #. type: verbatim
14313 #: ../src/guestfs-actions.pod:4837
14314 #, no-wrap
14315 msgid ""
14316 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
14317 "\n"
14318 msgstr ""
14319
14320 #. type: textblock
14321 #: ../src/guestfs-actions.pod:4839 ../fish/guestfish-actions.pod:3243
14322 msgid ""
14323 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
14324 "C<mountpoint>."
14325 msgstr ""
14326
14327 #. type: textblock
14328 #: ../src/guestfs-actions.pod:4842 ../fish/guestfish-actions.pod:3246
14329 msgid ""
14330 "If required, C<trans=virtio> will be automatically added to the options.  "
14331 "Any other options required can be passed in the optional C<options> "
14332 "parameter."
14333 msgstr ""
14334
14335 #. type: =head2
14336 #: ../src/guestfs-actions.pod:4848
14337 msgid "guestfs_mount_9p_va"
14338 msgstr ""
14339
14340 #. type: verbatim
14341 #: ../src/guestfs-actions.pod:4850
14342 #, no-wrap
14343 msgid ""
14344 " int\n"
14345 " guestfs_mount_9p_va (guestfs_h *g,\n"
14346 "                      const char *mounttag,\n"
14347 "                      const char *mountpoint,\n"
14348 "                      va_list args);\n"
14349 "\n"
14350 msgstr ""
14351
14352 #. type: textblock
14353 #: ../src/guestfs-actions.pod:4856
14354 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
14355 msgstr ""
14356
14357 #. type: =head2
14358 #: ../src/guestfs-actions.pod:4860
14359 msgid "guestfs_mount_9p_argv"
14360 msgstr ""
14361
14362 #. type: verbatim
14363 #: ../src/guestfs-actions.pod:4862
14364 #, no-wrap
14365 msgid ""
14366 " int\n"
14367 " guestfs_mount_9p_argv (guestfs_h *g,\n"
14368 "                        const char *mounttag,\n"
14369 "                        const char *mountpoint,\n"
14370 "                        const struct guestfs_mount_9p_argv *optargs);\n"
14371 "\n"
14372 msgstr ""
14373
14374 #. type: textblock
14375 #: ../src/guestfs-actions.pod:4868
14376 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
14377 msgstr ""
14378
14379 #. type: =head2
14380 #: ../src/guestfs-actions.pod:4872
14381 msgid "guestfs_mount_loop"
14382 msgstr ""
14383
14384 #. type: verbatim
14385 #: ../src/guestfs-actions.pod:4874
14386 #, no-wrap
14387 msgid ""
14388 " int\n"
14389 " guestfs_mount_loop (guestfs_h *g,\n"
14390 "                     const char *file,\n"
14391 "                     const char *mountpoint);\n"
14392 "\n"
14393 msgstr ""
14394
14395 #. type: textblock
14396 #: ../src/guestfs-actions.pod:4879 ../fish/guestfish-actions.pod:3256
14397 msgid ""
14398 "This command lets you mount C<file> (a filesystem image in a file) on a "
14399 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
14400 "mountpoint>."
14401 msgstr ""
14402
14403 #. type: =head2
14404 #: ../src/guestfs-actions.pod:4887
14405 msgid "guestfs_mount_options"
14406 msgstr ""
14407
14408 #. type: verbatim
14409 #: ../src/guestfs-actions.pod:4889
14410 #, no-wrap
14411 msgid ""
14412 " int\n"
14413 " guestfs_mount_options (guestfs_h *g,\n"
14414 "                        const char *options,\n"
14415 "                        const char *device,\n"
14416 "                        const char *mountpoint);\n"
14417 "\n"
14418 msgstr ""
14419
14420 #. type: textblock
14421 #: ../src/guestfs-actions.pod:4895
14422 msgid ""
14423 "This is the same as the C<guestfs_mount> command, but it allows you to set "
14424 "the mount options as for the L<mount(8)> I<-o> flag."
14425 msgstr ""
14426
14427 #. type: textblock
14428 #: ../src/guestfs-actions.pod:4899 ../fish/guestfish-actions.pod:3268
14429 msgid ""
14430 "If the C<options> parameter is an empty string, then no options are passed "
14431 "(all options default to whatever the filesystem uses)."
14432 msgstr ""
14433
14434 #. type: textblock
14435 #: ../src/guestfs-actions.pod:4905 ../src/guestfs-actions.pod:4919
14436 #: ../src/guestfs-actions.pod:4936
14437 msgid "(Added in 1.0.10)"
14438 msgstr ""
14439
14440 #. type: =head2
14441 #: ../src/guestfs-actions.pod:4907
14442 msgid "guestfs_mount_ro"
14443 msgstr ""
14444
14445 #. type: verbatim
14446 #: ../src/guestfs-actions.pod:4909
14447 #, no-wrap
14448 msgid ""
14449 " int\n"
14450 " guestfs_mount_ro (guestfs_h *g,\n"
14451 "                   const char *device,\n"
14452 "                   const char *mountpoint);\n"
14453 "\n"
14454 msgstr ""
14455
14456 #. type: textblock
14457 #: ../src/guestfs-actions.pod:4914
14458 msgid ""
14459 "This is the same as the C<guestfs_mount> command, but it mounts the "
14460 "filesystem with the read-only (I<-o ro>) flag."
14461 msgstr ""
14462
14463 #. type: =head2
14464 #: ../src/guestfs-actions.pod:4921
14465 msgid "guestfs_mount_vfs"
14466 msgstr ""
14467
14468 #. type: verbatim
14469 #: ../src/guestfs-actions.pod:4923
14470 #, no-wrap
14471 msgid ""
14472 " int\n"
14473 " guestfs_mount_vfs (guestfs_h *g,\n"
14474 "                    const char *options,\n"
14475 "                    const char *vfstype,\n"
14476 "                    const char *device,\n"
14477 "                    const char *mountpoint);\n"
14478 "\n"
14479 msgstr ""
14480
14481 #. type: textblock
14482 #: ../src/guestfs-actions.pod:4930
14483 msgid ""
14484 "This is the same as the C<guestfs_mount> command, but it allows you to set "
14485 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
14486 "t> flags."
14487 msgstr ""
14488
14489 #. type: =head2
14490 #: ../src/guestfs-actions.pod:4938
14491 msgid "guestfs_mountpoints"
14492 msgstr ""
14493
14494 #. type: verbatim
14495 #: ../src/guestfs-actions.pod:4940
14496 #, no-wrap
14497 msgid ""
14498 " char **\n"
14499 " guestfs_mountpoints (guestfs_h *g);\n"
14500 "\n"
14501 msgstr ""
14502
14503 #. type: textblock
14504 #: ../src/guestfs-actions.pod:4943
14505 msgid ""
14506 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
14507 "devices.  This one returns a hash table (map) of device name to directory "
14508 "where the device is mounted."
14509 msgstr ""
14510
14511 #. type: =head2
14512 #: ../src/guestfs-actions.pod:4955
14513 msgid "guestfs_mounts"
14514 msgstr ""
14515
14516 #. type: verbatim
14517 #: ../src/guestfs-actions.pod:4957
14518 #, no-wrap
14519 msgid ""
14520 " char **\n"
14521 " guestfs_mounts (guestfs_h *g);\n"
14522 "\n"
14523 msgstr ""
14524
14525 #. type: textblock
14526 #: ../src/guestfs-actions.pod:4960 ../fish/guestfish-actions.pod:3299
14527 msgid ""
14528 "This returns the list of currently mounted filesystems.  It returns the list "
14529 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
14530 msgstr ""
14531
14532 #. type: textblock
14533 #: ../src/guestfs-actions.pod:4963 ../fish/guestfish-actions.pod:3302
14534 msgid "Some internal mounts are not shown."
14535 msgstr ""
14536
14537 #. type: textblock
14538 #: ../src/guestfs-actions.pod:4965
14539 msgid "See also: C<guestfs_mountpoints>"
14540 msgstr ""
14541
14542 #. type: =head2
14543 #: ../src/guestfs-actions.pod:4973
14544 msgid "guestfs_mv"
14545 msgstr ""
14546
14547 #. type: verbatim
14548 #: ../src/guestfs-actions.pod:4975
14549 #, no-wrap
14550 msgid ""
14551 " int\n"
14552 " guestfs_mv (guestfs_h *g,\n"
14553 "             const char *src,\n"
14554 "             const char *dest);\n"
14555 "\n"
14556 msgstr ""
14557
14558 #. type: textblock
14559 #: ../src/guestfs-actions.pod:4980 ../fish/guestfish-actions.pod:3310
14560 msgid ""
14561 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14562 "destination filename or destination directory."
14563 msgstr ""
14564
14565 #. type: =head2
14566 #: ../src/guestfs-actions.pod:4987
14567 msgid "guestfs_ntfs_3g_probe"
14568 msgstr ""
14569
14570 #. type: verbatim
14571 #: ../src/guestfs-actions.pod:4989
14572 #, no-wrap
14573 msgid ""
14574 " int\n"
14575 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
14576 "                        int rw,\n"
14577 "                        const char *device);\n"
14578 "\n"
14579 msgstr ""
14580
14581 #. type: textblock
14582 #: ../src/guestfs-actions.pod:4994 ../fish/guestfish-actions.pod:3317
14583 msgid ""
14584 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14585 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
14586 "write, and some cannot be mounted at all)."
14587 msgstr ""
14588
14589 #. type: textblock
14590 #: ../src/guestfs-actions.pod:4998 ../fish/guestfish-actions.pod:3321
14591 msgid ""
14592 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
14593 "can be mounted read-write.  Set it to false if you want to test if the "
14594 "volume can be mounted read-only."
14595 msgstr ""
14596
14597 #. type: textblock
14598 #: ../src/guestfs-actions.pod:5002 ../fish/guestfish-actions.pod:3325
14599 msgid ""
14600 "The return value is an integer which C<0> if the operation would succeed, or "
14601 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
14602 msgstr ""
14603
14604 #. type: textblock
14605 #: ../src/guestfs-actions.pod:5008
14606 msgid "(Added in 1.0.43)"
14607 msgstr ""
14608
14609 #. type: =head2
14610 #: ../src/guestfs-actions.pod:5010
14611 msgid "guestfs_ntfsresize"
14612 msgstr ""
14613
14614 #. type: verbatim
14615 #: ../src/guestfs-actions.pod:5012
14616 #, no-wrap
14617 msgid ""
14618 " int\n"
14619 " guestfs_ntfsresize (guestfs_h *g,\n"
14620 "                     const char *device);\n"
14621 "\n"
14622 msgstr ""
14623
14624 #. type: textblock
14625 #: ../src/guestfs-actions.pod:5016 ../fish/guestfish-actions.pod:3333
14626 msgid ""
14627 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
14628 "size of the underlying device.  See also L<ntfsresize(8)>."
14629 msgstr ""
14630
14631 #. type: =head2
14632 #: ../src/guestfs-actions.pod:5024
14633 msgid "guestfs_ntfsresize_size"
14634 msgstr ""
14635
14636 #. type: verbatim
14637 #: ../src/guestfs-actions.pod:5026
14638 #, no-wrap
14639 msgid ""
14640 " int\n"
14641 " guestfs_ntfsresize_size (guestfs_h *g,\n"
14642 "                          const char *device,\n"
14643 "                          int64_t size);\n"
14644 "\n"
14645 msgstr ""
14646
14647 #. type: textblock
14648 #: ../src/guestfs-actions.pod:5031
14649 msgid ""
14650 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
14651 "to specify the new size (in bytes) explicitly."
14652 msgstr ""
14653
14654 #. type: textblock
14655 #: ../src/guestfs-actions.pod:5036 ../src/guestfs-actions.pod:5472
14656 #: ../src/guestfs-actions.pod:5545 ../src/guestfs-actions.pod:5811
14657 #: ../src/guestfs-actions.pod:7417
14658 msgid "(Added in 1.3.14)"
14659 msgstr ""
14660
14661 #. type: =head2
14662 #: ../src/guestfs-actions.pod:5038
14663 msgid "guestfs_part_add"
14664 msgstr ""
14665
14666 #. type: verbatim
14667 #: ../src/guestfs-actions.pod:5040
14668 #, no-wrap
14669 msgid ""
14670 " int\n"
14671 " guestfs_part_add (guestfs_h *g,\n"
14672 "                   const char *device,\n"
14673 "                   const char *prlogex,\n"
14674 "                   int64_t startsect,\n"
14675 "                   int64_t endsect);\n"
14676 "\n"
14677 msgstr ""
14678
14679 #. type: textblock
14680 #: ../src/guestfs-actions.pod:5047
14681 msgid ""
14682 "This command adds a partition to C<device>.  If there is no partition table "
14683 "on the device, call C<guestfs_part_init> first."
14684 msgstr ""
14685
14686 #. type: textblock
14687 #: ../src/guestfs-actions.pod:5050 ../fish/guestfish-actions.pod:3351
14688 msgid ""
14689 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
14690 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
14691 "C<logical>) and C<e> (or C<extended>) partition types."
14692 msgstr ""
14693
14694 #. type: textblock
14695 #: ../src/guestfs-actions.pod:5055 ../fish/guestfish-actions.pod:3356
14696 msgid ""
14697 "C<startsect> and C<endsect> are the start and end of the partition in "
14698 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
14699 "from the end of the disk (C<-1> is the last sector)."
14700 msgstr ""
14701
14702 #. type: textblock
14703 #: ../src/guestfs-actions.pod:5059
14704 msgid ""
14705 "Creating a partition which covers the whole disk is not so easy.  Use "
14706 "C<guestfs_part_disk> to do that."
14707 msgstr ""
14708
14709 #. type: textblock
14710 #: ../src/guestfs-actions.pod:5064 ../src/guestfs-actions.pod:5102
14711 #: ../src/guestfs-actions.pod:5155 ../src/guestfs-actions.pod:5233
14712 #: ../src/guestfs-actions.pod:5271 ../src/guestfs-actions.pod:5290
14713 #: ../src/guestfs-actions.pod:5330
14714 msgid "(Added in 1.0.78)"
14715 msgstr ""
14716
14717 #. type: =head2
14718 #: ../src/guestfs-actions.pod:5066
14719 msgid "guestfs_part_del"
14720 msgstr ""
14721
14722 #. type: verbatim
14723 #: ../src/guestfs-actions.pod:5068
14724 #, no-wrap
14725 msgid ""
14726 " int\n"
14727 " guestfs_part_del (guestfs_h *g,\n"
14728 "                   const char *device,\n"
14729 "                   int partnum);\n"
14730 "\n"
14731 msgstr ""
14732
14733 #. type: textblock
14734 #: ../src/guestfs-actions.pod:5073 ../fish/guestfish-actions.pod:3367
14735 msgid "This command deletes the partition numbered C<partnum> on C<device>."
14736 msgstr ""
14737
14738 #. type: textblock
14739 #: ../src/guestfs-actions.pod:5075 ../fish/guestfish-actions.pod:3369
14740 msgid ""
14741 "Note that in the case of MBR partitioning, deleting an extended partition "
14742 "also deletes any logical partitions it contains."
14743 msgstr ""
14744
14745 #. type: =head2
14746 #: ../src/guestfs-actions.pod:5083
14747 msgid "guestfs_part_disk"
14748 msgstr ""
14749
14750 #. type: verbatim
14751 #: ../src/guestfs-actions.pod:5085
14752 #, no-wrap
14753 msgid ""
14754 " int\n"
14755 " guestfs_part_disk (guestfs_h *g,\n"
14756 "                    const char *device,\n"
14757 "                    const char *parttype);\n"
14758 "\n"
14759 msgstr ""
14760
14761 #. type: textblock
14762 #: ../src/guestfs-actions.pod:5090
14763 msgid ""
14764 "This command is simply a combination of C<guestfs_part_init> followed by "
14765 "C<guestfs_part_add> to create a single primary partition covering the whole "
14766 "disk."
14767 msgstr ""
14768
14769 #. type: textblock
14770 #: ../src/guestfs-actions.pod:5094
14771 msgid ""
14772 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
14773 "possible values are described in C<guestfs_part_init>."
14774 msgstr ""
14775
14776 #. type: =head2
14777 #: ../src/guestfs-actions.pod:5104
14778 msgid "guestfs_part_get_bootable"
14779 msgstr ""
14780
14781 #. type: verbatim
14782 #: ../src/guestfs-actions.pod:5106
14783 #, no-wrap
14784 msgid ""
14785 " int\n"
14786 " guestfs_part_get_bootable (guestfs_h *g,\n"
14787 "                            const char *device,\n"
14788 "                            int partnum);\n"
14789 "\n"
14790 msgstr ""
14791
14792 #. type: textblock
14793 #: ../src/guestfs-actions.pod:5111 ../fish/guestfish-actions.pod:3391
14794 msgid ""
14795 "This command returns true if the partition C<partnum> on C<device> has the "
14796 "bootable flag set."
14797 msgstr ""
14798
14799 #. type: textblock
14800 #: ../src/guestfs-actions.pod:5114
14801 msgid "See also C<guestfs_part_set_bootable>."
14802 msgstr ""
14803
14804 #. type: =head2
14805 #: ../src/guestfs-actions.pod:5120
14806 msgid "guestfs_part_get_mbr_id"
14807 msgstr ""
14808
14809 #. type: verbatim
14810 #: ../src/guestfs-actions.pod:5122
14811 #, no-wrap
14812 msgid ""
14813 " int\n"
14814 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
14815 "                          const char *device,\n"
14816 "                          int partnum);\n"
14817 "\n"
14818 msgstr ""
14819
14820 #. type: textblock
14821 #: ../src/guestfs-actions.pod:5127 ../fish/guestfish-actions.pod:3400
14822 msgid ""
14823 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14824 "partition C<partnum>."
14825 msgstr ""
14826
14827 #. type: textblock
14828 #: ../src/guestfs-actions.pod:5130 ../src/guestfs-actions.pod:5306
14829 msgid ""
14830 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
14831 "undefined results for other partition table types (see "
14832 "C<guestfs_part_get_parttype>)."
14833 msgstr ""
14834
14835 #. type: =head2
14836 #: ../src/guestfs-actions.pod:5138
14837 msgid "guestfs_part_get_parttype"
14838 msgstr ""
14839
14840 #. type: verbatim
14841 #: ../src/guestfs-actions.pod:5140
14842 #, no-wrap
14843 msgid ""
14844 " char *\n"
14845 " guestfs_part_get_parttype (guestfs_h *g,\n"
14846 "                            const char *device);\n"
14847 "\n"
14848 msgstr ""
14849
14850 #. type: textblock
14851 #: ../src/guestfs-actions.pod:5144 ../fish/guestfish-actions.pod:3411
14852 msgid ""
14853 "This command examines the partition table on C<device> and returns the "
14854 "partition table type (format) being used."
14855 msgstr ""
14856
14857 #. type: textblock
14858 #: ../src/guestfs-actions.pod:5147
14859 msgid ""
14860 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14861 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
14862 "possible, although unusual.  See C<guestfs_part_init> for a full list."
14863 msgstr ""
14864
14865 #. type: =head2
14866 #: ../src/guestfs-actions.pod:5157
14867 msgid "guestfs_part_init"
14868 msgstr ""
14869
14870 #. type: verbatim
14871 #: ../src/guestfs-actions.pod:5159
14872 #, no-wrap
14873 msgid ""
14874 " int\n"
14875 " guestfs_part_init (guestfs_h *g,\n"
14876 "                    const char *device,\n"
14877 "                    const char *parttype);\n"
14878 "\n"
14879 msgstr ""
14880
14881 #. type: textblock
14882 #: ../src/guestfs-actions.pod:5164 ../fish/guestfish-actions.pod:3423
14883 msgid ""
14884 "This creates an empty partition table on C<device> of one of the partition "
14885 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
14886 "(for large disks)."
14887 msgstr ""
14888
14889 #. type: textblock
14890 #: ../src/guestfs-actions.pod:5168
14891 msgid ""
14892 "Initially there are no partitions.  Following this, you should call "
14893 "C<guestfs_part_add> for each partition required."
14894 msgstr ""
14895
14896 #. type: textblock
14897 #: ../src/guestfs-actions.pod:5171 ../fish/guestfish-actions.pod:3430
14898 msgid "Possible values for C<parttype> are:"
14899 msgstr ""
14900
14901 #. type: =item
14902 #: ../src/guestfs-actions.pod:5175 ../fish/guestfish-actions.pod:3434
14903 msgid "B<efi> | B<gpt>"
14904 msgstr ""
14905
14906 #. type: textblock
14907 #: ../src/guestfs-actions.pod:5177 ../fish/guestfish-actions.pod:3436
14908 msgid "Intel EFI / GPT partition table."
14909 msgstr ""
14910
14911 #. type: textblock
14912 #: ../src/guestfs-actions.pod:5179 ../fish/guestfish-actions.pod:3438
14913 msgid ""
14914 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14915 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
14916 "the C<mbr> format."
14917 msgstr ""
14918
14919 #. type: =item
14920 #: ../src/guestfs-actions.pod:5183 ../fish/guestfish-actions.pod:3442
14921 msgid "B<mbr> | B<msdos>"
14922 msgstr ""
14923
14924 #. type: textblock
14925 #: ../src/guestfs-actions.pod:5185 ../fish/guestfish-actions.pod:3444
14926 msgid ""
14927 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14928 "Windows.  This partition type will B<only> work for device sizes up to 2 "
14929 "TB.  For large disks we recommend using C<gpt>."
14930 msgstr ""
14931
14932 #. type: textblock
14933 #: ../src/guestfs-actions.pod:5192 ../fish/guestfish-actions.pod:3451
14934 msgid ""
14935 "Other partition table types that may work but are not supported include:"
14936 msgstr ""
14937
14938 #. type: =item
14939 #: ../src/guestfs-actions.pod:5197 ../fish/guestfish-actions.pod:3456
14940 msgid "B<aix>"
14941 msgstr ""
14942
14943 #. type: textblock
14944 #: ../src/guestfs-actions.pod:5199 ../fish/guestfish-actions.pod:3458
14945 msgid "AIX disk labels."
14946 msgstr ""
14947
14948 #. type: =item
14949 #: ../src/guestfs-actions.pod:5201 ../fish/guestfish-actions.pod:3460
14950 msgid "B<amiga> | B<rdb>"
14951 msgstr ""
14952
14953 #. type: textblock
14954 #: ../src/guestfs-actions.pod:5203 ../fish/guestfish-actions.pod:3462
14955 msgid "Amiga \"Rigid Disk Block\" format."
14956 msgstr ""
14957
14958 #. type: =item
14959 #: ../src/guestfs-actions.pod:5205 ../fish/guestfish-actions.pod:3464
14960 msgid "B<bsd>"
14961 msgstr ""
14962
14963 #. type: textblock
14964 #: ../src/guestfs-actions.pod:5207 ../fish/guestfish-actions.pod:3466
14965 msgid "BSD disk labels."
14966 msgstr ""
14967
14968 #. type: =item
14969 #: ../src/guestfs-actions.pod:5209 ../fish/guestfish-actions.pod:3468
14970 msgid "B<dasd>"
14971 msgstr ""
14972
14973 #. type: textblock
14974 #: ../src/guestfs-actions.pod:5211 ../fish/guestfish-actions.pod:3470
14975 msgid "DASD, used on IBM mainframes."
14976 msgstr ""
14977
14978 #. type: =item
14979 #: ../src/guestfs-actions.pod:5213 ../fish/guestfish-actions.pod:3472
14980 msgid "B<dvh>"
14981 msgstr ""
14982
14983 #. type: textblock
14984 #: ../src/guestfs-actions.pod:5215 ../fish/guestfish-actions.pod:3474
14985 msgid "MIPS/SGI volumes."
14986 msgstr ""
14987
14988 #. type: =item
14989 #: ../src/guestfs-actions.pod:5217 ../fish/guestfish-actions.pod:3476
14990 msgid "B<mac>"
14991 msgstr ""
14992
14993 #. type: textblock
14994 #: ../src/guestfs-actions.pod:5219 ../fish/guestfish-actions.pod:3478
14995 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14996 msgstr ""
14997
14998 #. type: =item
14999 #: ../src/guestfs-actions.pod:5221 ../fish/guestfish-actions.pod:3480
15000 msgid "B<pc98>"
15001 msgstr ""
15002
15003 #. type: textblock
15004 #: ../src/guestfs-actions.pod:5223 ../fish/guestfish-actions.pod:3482
15005 msgid "NEC PC-98 format, common in Japan apparently."
15006 msgstr ""
15007
15008 #. type: =item
15009 #: ../src/guestfs-actions.pod:5225 ../fish/guestfish-actions.pod:3484
15010 msgid "B<sun>"
15011 msgstr ""
15012
15013 #. type: textblock
15014 #: ../src/guestfs-actions.pod:5227 ../fish/guestfish-actions.pod:3486
15015 msgid "Sun disk labels."
15016 msgstr ""
15017
15018 #. type: =head2
15019 #: ../src/guestfs-actions.pod:5235
15020 msgid "guestfs_part_list"
15021 msgstr ""
15022
15023 #. type: verbatim
15024 #: ../src/guestfs-actions.pod:5237
15025 #, no-wrap
15026 msgid ""
15027 " struct guestfs_partition_list *\n"
15028 " guestfs_part_list (guestfs_h *g,\n"
15029 "                    const char *device);\n"
15030 "\n"
15031 msgstr ""
15032
15033 #. type: textblock
15034 #: ../src/guestfs-actions.pod:5241 ../fish/guestfish-actions.pod:3494
15035 msgid ""
15036 "This command parses the partition table on C<device> and returns the list of "
15037 "partitions found."
15038 msgstr ""
15039
15040 #. type: textblock
15041 #: ../src/guestfs-actions.pod:5244 ../fish/guestfish-actions.pod:3497
15042 msgid "The fields in the returned structure are:"
15043 msgstr ""
15044
15045 #. type: =item
15046 #: ../src/guestfs-actions.pod:5248 ../fish/guestfish-actions.pod:3501
15047 msgid "B<part_num>"
15048 msgstr ""
15049
15050 #. type: textblock
15051 #: ../src/guestfs-actions.pod:5250 ../fish/guestfish-actions.pod:3503
15052 msgid "Partition number, counting from 1."
15053 msgstr ""
15054
15055 #. type: =item
15056 #: ../src/guestfs-actions.pod:5252 ../fish/guestfish-actions.pod:3505
15057 msgid "B<part_start>"
15058 msgstr ""
15059
15060 #. type: textblock
15061 #: ../src/guestfs-actions.pod:5254
15062 msgid ""
15063 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
15064 "the device's sector size, see C<guestfs_blockdev_getss>."
15065 msgstr ""
15066
15067 #. type: =item
15068 #: ../src/guestfs-actions.pod:5257 ../fish/guestfish-actions.pod:3510
15069 msgid "B<part_end>"
15070 msgstr ""
15071
15072 #. type: textblock
15073 #: ../src/guestfs-actions.pod:5259 ../fish/guestfish-actions.pod:3512
15074 msgid "End of the partition in bytes."
15075 msgstr ""
15076
15077 #. type: =item
15078 #: ../src/guestfs-actions.pod:5261 ../fish/guestfish-actions.pod:3514
15079 msgid "B<part_size>"
15080 msgstr ""
15081
15082 #. type: textblock
15083 #: ../src/guestfs-actions.pod:5263 ../fish/guestfish-actions.pod:3516
15084 msgid "Size of the partition in bytes."
15085 msgstr ""
15086
15087 #. type: textblock
15088 #: ../src/guestfs-actions.pod:5267
15089 msgid ""
15090 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
15091 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
15092 "use>."
15093 msgstr ""
15094
15095 #. type: =head2
15096 #: ../src/guestfs-actions.pod:5273
15097 msgid "guestfs_part_set_bootable"
15098 msgstr ""
15099
15100 #. type: verbatim
15101 #: ../src/guestfs-actions.pod:5275
15102 #, no-wrap
15103 msgid ""
15104 " int\n"
15105 " guestfs_part_set_bootable (guestfs_h *g,\n"
15106 "                            const char *device,\n"
15107 "                            int partnum,\n"
15108 "                            int bootable);\n"
15109 "\n"
15110 msgstr ""
15111
15112 #. type: textblock
15113 #: ../src/guestfs-actions.pod:5281 ../fish/guestfish-actions.pod:3524
15114 msgid ""
15115 "This sets the bootable flag on partition numbered C<partnum> on device "
15116 "C<device>.  Note that partitions are numbered from 1."
15117 msgstr ""
15118
15119 #. type: textblock
15120 #: ../src/guestfs-actions.pod:5284 ../fish/guestfish-actions.pod:3527
15121 msgid ""
15122 "The bootable flag is used by some operating systems (notably Windows) to "
15123 "determine which partition to boot from.  It is by no means universally "
15124 "recognized."
15125 msgstr ""
15126
15127 #. type: =head2
15128 #: ../src/guestfs-actions.pod:5292
15129 msgid "guestfs_part_set_mbr_id"
15130 msgstr ""
15131
15132 #. type: verbatim
15133 #: ../src/guestfs-actions.pod:5294
15134 #, no-wrap
15135 msgid ""
15136 " int\n"
15137 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
15138 "                          const char *device,\n"
15139 "                          int partnum,\n"
15140 "                          int idbyte);\n"
15141 "\n"
15142 msgstr ""
15143
15144 #. type: textblock
15145 #: ../src/guestfs-actions.pod:5300 ../fish/guestfish-actions.pod:3535
15146 msgid ""
15147 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
15148 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
15149 "documentation are in fact hexadecimal numbers, but usually documented "
15150 "without any leading \"0x\" which might be confusing."
15151 msgstr ""
15152
15153 #. type: =head2
15154 #: ../src/guestfs-actions.pod:5314
15155 msgid "guestfs_part_set_name"
15156 msgstr ""
15157
15158 #. type: verbatim
15159 #: ../src/guestfs-actions.pod:5316
15160 #, no-wrap
15161 msgid ""
15162 " int\n"
15163 " guestfs_part_set_name (guestfs_h *g,\n"
15164 "                        const char *device,\n"
15165 "                        int partnum,\n"
15166 "                        const char *name);\n"
15167 "\n"
15168 msgstr ""
15169
15170 #. type: textblock
15171 #: ../src/guestfs-actions.pod:5322 ../fish/guestfish-actions.pod:3549
15172 msgid ""
15173 "This sets the partition name on partition numbered C<partnum> on device "
15174 "C<device>.  Note that partitions are numbered from 1."
15175 msgstr ""
15176
15177 #. type: textblock
15178 #: ../src/guestfs-actions.pod:5325 ../fish/guestfish-actions.pod:3552
15179 msgid ""
15180 "The partition name can only be set on certain types of partition table.  "
15181 "This works on C<gpt> but not on C<mbr> partitions."
15182 msgstr ""
15183
15184 #. type: =head2
15185 #: ../src/guestfs-actions.pod:5332
15186 msgid "guestfs_part_to_dev"
15187 msgstr ""
15188
15189 #. type: verbatim
15190 #: ../src/guestfs-actions.pod:5334
15191 #, no-wrap
15192 msgid ""
15193 " char *\n"
15194 " guestfs_part_to_dev (guestfs_h *g,\n"
15195 "                      const char *partition);\n"
15196 "\n"
15197 msgstr ""
15198
15199 #. type: textblock
15200 #: ../src/guestfs-actions.pod:5338 ../fish/guestfish-actions.pod:3559
15201 msgid ""
15202 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
15203 "partition number, returning the device name (eg. \"/dev/sdb\")."
15204 msgstr ""
15205
15206 #. type: textblock
15207 #: ../src/guestfs-actions.pod:5342
15208 msgid ""
15209 "The named partition must exist, for example as a string returned from "
15210 "C<guestfs_list_partitions>."
15211 msgstr ""
15212
15213 #. type: =head2
15214 #: ../src/guestfs-actions.pod:5350
15215 msgid "guestfs_ping_daemon"
15216 msgstr ""
15217
15218 #. type: verbatim
15219 #: ../src/guestfs-actions.pod:5352
15220 #, no-wrap
15221 msgid ""
15222 " int\n"
15223 " guestfs_ping_daemon (guestfs_h *g);\n"
15224 "\n"
15225 msgstr ""
15226
15227 #. type: textblock
15228 #: ../src/guestfs-actions.pod:5355 ../fish/guestfish-actions.pod:3570
15229 msgid ""
15230 "This is a test probe into the guestfs daemon running inside the qemu "
15231 "subprocess.  Calling this function checks that the daemon responds to the "
15232 "ping message, without affecting the daemon or attached block device(s) in "
15233 "any other way."
15234 msgstr ""
15235
15236 #. type: =head2
15237 #: ../src/guestfs-actions.pod:5364
15238 msgid "guestfs_pread"
15239 msgstr ""
15240
15241 #. type: verbatim
15242 #: ../src/guestfs-actions.pod:5366
15243 #, no-wrap
15244 msgid ""
15245 " char *\n"
15246 " guestfs_pread (guestfs_h *g,\n"
15247 "                const char *path,\n"
15248 "                int count,\n"
15249 "                int64_t offset,\n"
15250 "                size_t *size_r);\n"
15251 "\n"
15252 msgstr ""
15253
15254 #. type: textblock
15255 #: ../src/guestfs-actions.pod:5373 ../fish/guestfish-actions.pod:3579
15256 msgid ""
15257 "This command lets you read part of a file.  It reads C<count> bytes of the "
15258 "file, starting at C<offset>, from file C<path>."
15259 msgstr ""
15260
15261 #. type: textblock
15262 #: ../src/guestfs-actions.pod:5376 ../src/guestfs-actions.pod:5402
15263 #: ../fish/guestfish-actions.pod:3582 ../fish/guestfish-actions.pod:3597
15264 msgid ""
15265 "This may read fewer bytes than requested.  For further details see the "
15266 "L<pread(2)> system call."
15267 msgstr ""
15268
15269 #. type: textblock
15270 #: ../src/guestfs-actions.pod:5379
15271 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
15272 msgstr ""
15273
15274 #. type: =head2
15275 #: ../src/guestfs-actions.pod:5390
15276 msgid "guestfs_pread_device"
15277 msgstr ""
15278
15279 #. type: verbatim
15280 #: ../src/guestfs-actions.pod:5392
15281 #, no-wrap
15282 msgid ""
15283 " char *\n"
15284 " guestfs_pread_device (guestfs_h *g,\n"
15285 "                       const char *device,\n"
15286 "                       int count,\n"
15287 "                       int64_t offset,\n"
15288 "                       size_t *size_r);\n"
15289 "\n"
15290 msgstr ""
15291
15292 #. type: textblock
15293 #: ../src/guestfs-actions.pod:5399 ../fish/guestfish-actions.pod:3594
15294 msgid ""
15295 "This command lets you read part of a file.  It reads C<count> bytes of "
15296 "C<device>, starting at C<offset>."
15297 msgstr ""
15298
15299 #. type: textblock
15300 #: ../src/guestfs-actions.pod:5405
15301 msgid "See also C<guestfs_pread>."
15302 msgstr ""
15303
15304 #. type: textblock
15305 #: ../src/guestfs-actions.pod:5414
15306 msgid "(Added in 1.5.21)"
15307 msgstr ""
15308
15309 #. type: =head2
15310 #: ../src/guestfs-actions.pod:5416
15311 msgid "guestfs_pvcreate"
15312 msgstr ""
15313
15314 #. type: verbatim
15315 #: ../src/guestfs-actions.pod:5418
15316 #, no-wrap
15317 msgid ""
15318 " int\n"
15319 " guestfs_pvcreate (guestfs_h *g,\n"
15320 "                   const char *device);\n"
15321 "\n"
15322 msgstr ""
15323
15324 #. type: textblock
15325 #: ../src/guestfs-actions.pod:5422 ../fish/guestfish-actions.pod:3609
15326 msgid ""
15327 "This creates an LVM physical volume on the named C<device>, where C<device> "
15328 "should usually be a partition name such as C</dev/sda1>."
15329 msgstr ""
15330
15331 #. type: =head2
15332 #: ../src/guestfs-actions.pod:5430
15333 msgid "guestfs_pvremove"
15334 msgstr ""
15335
15336 #. type: verbatim
15337 #: ../src/guestfs-actions.pod:5432
15338 #, no-wrap
15339 msgid ""
15340 " int\n"
15341 " guestfs_pvremove (guestfs_h *g,\n"
15342 "                   const char *device);\n"
15343 "\n"
15344 msgstr ""
15345
15346 #. type: textblock
15347 #: ../src/guestfs-actions.pod:5436 ../fish/guestfish-actions.pod:3617
15348 msgid ""
15349 "This wipes a physical volume C<device> so that LVM will no longer recognise "
15350 "it."
15351 msgstr ""
15352
15353 #. type: textblock
15354 #: ../src/guestfs-actions.pod:5439 ../fish/guestfish-actions.pod:3620
15355 msgid ""
15356 "The implementation uses the C<pvremove> command which refuses to wipe "
15357 "physical volumes that contain any volume groups, so you have to remove those "
15358 "first."
15359 msgstr ""
15360
15361 #. type: =head2
15362 #: ../src/guestfs-actions.pod:5447
15363 msgid "guestfs_pvresize"
15364 msgstr ""
15365
15366 #. type: verbatim
15367 #: ../src/guestfs-actions.pod:5449
15368 #, no-wrap
15369 msgid ""
15370 " int\n"
15371 " guestfs_pvresize (guestfs_h *g,\n"
15372 "                   const char *device);\n"
15373 "\n"
15374 msgstr ""
15375
15376 #. type: textblock
15377 #: ../src/guestfs-actions.pod:5453 ../fish/guestfish-actions.pod:3628
15378 msgid ""
15379 "This resizes (expands or shrinks) an existing LVM physical volume to match "
15380 "the new size of the underlying device."
15381 msgstr ""
15382
15383 #. type: =head2
15384 #: ../src/guestfs-actions.pod:5460
15385 msgid "guestfs_pvresize_size"
15386 msgstr ""
15387
15388 #. type: verbatim
15389 #: ../src/guestfs-actions.pod:5462
15390 #, no-wrap
15391 msgid ""
15392 " int\n"
15393 " guestfs_pvresize_size (guestfs_h *g,\n"
15394 "                        const char *device,\n"
15395 "                        int64_t size);\n"
15396 "\n"
15397 msgstr ""
15398
15399 #. type: textblock
15400 #: ../src/guestfs-actions.pod:5467
15401 msgid ""
15402 "This command is the same as C<guestfs_pvresize> except that it allows you to "
15403 "specify the new size (in bytes) explicitly."
15404 msgstr ""
15405
15406 #. type: =head2
15407 #: ../src/guestfs-actions.pod:5474
15408 msgid "guestfs_pvs"
15409 msgstr ""
15410
15411 #. type: verbatim
15412 #: ../src/guestfs-actions.pod:5476
15413 #, no-wrap
15414 msgid ""
15415 " char **\n"
15416 " guestfs_pvs (guestfs_h *g);\n"
15417 "\n"
15418 msgstr ""
15419
15420 #. type: textblock
15421 #: ../src/guestfs-actions.pod:5479 ../fish/guestfish-actions.pod:3642
15422 msgid ""
15423 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15424 "(8)> command."
15425 msgstr ""
15426
15427 #. type: textblock
15428 #: ../src/guestfs-actions.pod:5482 ../fish/guestfish-actions.pod:3645
15429 msgid ""
15430 "This returns a list of just the device names that contain PVs (eg. C</dev/"
15431 "sda2>)."
15432 msgstr ""
15433
15434 #. type: textblock
15435 #: ../src/guestfs-actions.pod:5485
15436 msgid "See also C<guestfs_pvs_full>."
15437 msgstr ""
15438
15439 #. type: =head2
15440 #: ../src/guestfs-actions.pod:5493
15441 msgid "guestfs_pvs_full"
15442 msgstr ""
15443
15444 #. type: verbatim
15445 #: ../src/guestfs-actions.pod:5495
15446 #, no-wrap
15447 msgid ""
15448 " struct guestfs_lvm_pv_list *\n"
15449 " guestfs_pvs_full (guestfs_h *g);\n"
15450 "\n"
15451 msgstr ""
15452
15453 #. type: textblock
15454 #: ../src/guestfs-actions.pod:5498 ../fish/guestfish-actions.pod:3654
15455 msgid ""
15456 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15457 "(8)> command.  The \"full\" version includes all fields."
15458 msgstr ""
15459
15460 #. type: textblock
15461 #: ../src/guestfs-actions.pod:5501
15462 msgid ""
15463 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
15464 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
15465 msgstr ""
15466
15467 #. type: =head2
15468 #: ../src/guestfs-actions.pod:5507
15469 msgid "guestfs_pvuuid"
15470 msgstr ""
15471
15472 #. type: verbatim
15473 #: ../src/guestfs-actions.pod:5509
15474 #, no-wrap
15475 msgid ""
15476 " char *\n"
15477 " guestfs_pvuuid (guestfs_h *g,\n"
15478 "                 const char *device);\n"
15479 "\n"
15480 msgstr ""
15481
15482 #. type: textblock
15483 #: ../src/guestfs-actions.pod:5513 ../fish/guestfish-actions.pod:3661
15484 msgid "This command returns the UUID of the LVM PV C<device>."
15485 msgstr ""
15486
15487 #. type: =head2
15488 #: ../src/guestfs-actions.pod:5520
15489 msgid "guestfs_pwrite"
15490 msgstr ""
15491
15492 #. type: verbatim
15493 #: ../src/guestfs-actions.pod:5522
15494 #, no-wrap
15495 msgid ""
15496 " int\n"
15497 " guestfs_pwrite (guestfs_h *g,\n"
15498 "                 const char *path,\n"
15499 "                 const char *content,\n"
15500 "                 size_t content_size,\n"
15501 "                 int64_t offset);\n"
15502 "\n"
15503 msgstr ""
15504
15505 #. type: textblock
15506 #: ../src/guestfs-actions.pod:5529 ../fish/guestfish-actions.pod:3667
15507 msgid ""
15508 "This command writes to part of a file.  It writes the data buffer C<content> "
15509 "to the file C<path> starting at offset C<offset>."
15510 msgstr ""
15511
15512 #. type: textblock
15513 #: ../src/guestfs-actions.pod:5532 ../fish/guestfish-actions.pod:3670
15514 msgid ""
15515 "This command implements the L<pwrite(2)> system call, and like that system "
15516 "call it may not write the full data requested.  The return value is the "
15517 "number of bytes that were actually written to the file.  This could even be "
15518 "0, although short writes are unlikely for regular files in ordinary "
15519 "circumstances."
15520 msgstr ""
15521
15522 #. type: textblock
15523 #: ../src/guestfs-actions.pod:5538
15524 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
15525 msgstr ""
15526
15527 #. type: =head2
15528 #: ../src/guestfs-actions.pod:5547
15529 msgid "guestfs_pwrite_device"
15530 msgstr ""
15531
15532 #. type: verbatim
15533 #: ../src/guestfs-actions.pod:5549
15534 #, no-wrap
15535 msgid ""
15536 " int\n"
15537 " guestfs_pwrite_device (guestfs_h *g,\n"
15538 "                        const char *device,\n"
15539 "                        const char *content,\n"
15540 "                        size_t content_size,\n"
15541 "                        int64_t offset);\n"
15542 "\n"
15543 msgstr ""
15544
15545 #. type: textblock
15546 #: ../src/guestfs-actions.pod:5556 ../fish/guestfish-actions.pod:3685
15547 msgid ""
15548 "This command writes to part of a device.  It writes the data buffer "
15549 "C<content> to C<device> starting at offset C<offset>."
15550 msgstr ""
15551
15552 #. type: textblock
15553 #: ../src/guestfs-actions.pod:5559 ../fish/guestfish-actions.pod:3688
15554 msgid ""
15555 "This command implements the L<pwrite(2)> system call, and like that system "
15556 "call it may not write the full data requested (although short writes to disk "
15557 "devices and partitions are probably impossible with standard Linux kernels)."
15558 msgstr ""
15559
15560 #. type: textblock
15561 #: ../src/guestfs-actions.pod:5564
15562 msgid "See also C<guestfs_pwrite>."
15563 msgstr ""
15564
15565 #. type: textblock
15566 #: ../src/guestfs-actions.pod:5571
15567 msgid "(Added in 1.5.20)"
15568 msgstr ""
15569
15570 #. type: =head2
15571 #: ../src/guestfs-actions.pod:5573
15572 msgid "guestfs_read_file"
15573 msgstr ""
15574
15575 #. type: verbatim
15576 #: ../src/guestfs-actions.pod:5575
15577 #, no-wrap
15578 msgid ""
15579 " char *\n"
15580 " guestfs_read_file (guestfs_h *g,\n"
15581 "                    const char *path,\n"
15582 "                    size_t *size_r);\n"
15583 "\n"
15584 msgstr ""
15585
15586 #. type: textblock
15587 #: ../src/guestfs-actions.pod:5580 ../fish/guestfish-actions.pod:3702
15588 msgid "This calls returns the contents of the file C<path> as a buffer."
15589 msgstr ""
15590
15591 #. type: textblock
15592 #: ../src/guestfs-actions.pod:5583
15593 msgid ""
15594 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
15595 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
15596 "function is limited in the total size of file that can be handled."
15597 msgstr ""
15598
15599 #. type: textblock
15600 #: ../src/guestfs-actions.pod:5595
15601 msgid "(Added in 1.0.63)"
15602 msgstr ""
15603
15604 #. type: =head2
15605 #: ../src/guestfs-actions.pod:5597
15606 msgid "guestfs_read_lines"
15607 msgstr ""
15608
15609 #. type: verbatim
15610 #: ../src/guestfs-actions.pod:5599
15611 #, no-wrap
15612 msgid ""
15613 " char **\n"
15614 " guestfs_read_lines (guestfs_h *g,\n"
15615 "                     const char *path);\n"
15616 "\n"
15617 msgstr ""
15618
15619 #. type: textblock
15620 #: ../src/guestfs-actions.pod:5605 ../fish/guestfish-actions.pod:3719
15621 msgid ""
15622 "The file contents are returned as a list of lines.  Trailing C<LF> and "
15623 "C<CRLF> character sequences are I<not> returned."
15624 msgstr ""
15625
15626 #. type: textblock
15627 #: ../src/guestfs-actions.pod:5608
15628 msgid ""
15629 "Note that this function cannot correctly handle binary files (specifically, "
15630 "files containing C<\\0> character which is treated as end of line).  For "
15631 "those you need to use the C<guestfs_read_file> function which has a more "
15632 "complex interface."
15633 msgstr ""
15634
15635 #. type: =head2
15636 #: ../src/guestfs-actions.pod:5619
15637 msgid "guestfs_readdir"
15638 msgstr ""
15639
15640 #. type: verbatim
15641 #: ../src/guestfs-actions.pod:5621
15642 #, no-wrap
15643 msgid ""
15644 " struct guestfs_dirent_list *\n"
15645 " guestfs_readdir (guestfs_h *g,\n"
15646 "                  const char *dir);\n"
15647 "\n"
15648 msgstr ""
15649
15650 #. type: textblock
15651 #: ../src/guestfs-actions.pod:5625 ../fish/guestfish-actions.pod:3731
15652 msgid "This returns the list of directory entries in directory C<dir>."
15653 msgstr ""
15654
15655 #. type: textblock
15656 #: ../src/guestfs-actions.pod:5627 ../fish/guestfish-actions.pod:3733
15657 msgid ""
15658 "All entries in the directory are returned, including C<.> and C<..>.  The "
15659 "entries are I<not> sorted, but returned in the same order as the underlying "
15660 "filesystem."
15661 msgstr ""
15662
15663 #. type: textblock
15664 #: ../src/guestfs-actions.pod:5631 ../fish/guestfish-actions.pod:3737
15665 msgid ""
15666 "Also this call returns basic file type information about each file.  The "
15667 "C<ftyp> field will contain one of the following characters:"
15668 msgstr ""
15669
15670 #. type: =item
15671 #: ../src/guestfs-actions.pod:5636 ../fish/guestfish-actions.pod:3742
15672 msgid "'b'"
15673 msgstr ""
15674
15675 #. type: textblock
15676 #: ../src/guestfs-actions.pod:5638 ../fish/guestfish-actions.pod:3744
15677 msgid "Block special"
15678 msgstr ""
15679
15680 #. type: =item
15681 #: ../src/guestfs-actions.pod:5640 ../fish/guestfish-actions.pod:3746
15682 msgid "'c'"
15683 msgstr ""
15684
15685 #. type: textblock
15686 #: ../src/guestfs-actions.pod:5642 ../fish/guestfish-actions.pod:3748
15687 msgid "Char special"
15688 msgstr ""
15689
15690 #. type: =item
15691 #: ../src/guestfs-actions.pod:5644 ../fish/guestfish-actions.pod:3750
15692 msgid "'d'"
15693 msgstr ""
15694
15695 #. type: textblock
15696 #: ../src/guestfs-actions.pod:5646 ../fish/guestfish-actions.pod:3752
15697 msgid "Directory"
15698 msgstr ""
15699
15700 #. type: =item
15701 #: ../src/guestfs-actions.pod:5648 ../fish/guestfish-actions.pod:3754
15702 msgid "'f'"
15703 msgstr ""
15704
15705 #. type: textblock
15706 #: ../src/guestfs-actions.pod:5650 ../fish/guestfish-actions.pod:3756
15707 msgid "FIFO (named pipe)"
15708 msgstr ""
15709
15710 #. type: =item
15711 #: ../src/guestfs-actions.pod:5652 ../fish/guestfish-actions.pod:3758
15712 msgid "'l'"
15713 msgstr ""
15714
15715 #. type: textblock
15716 #: ../src/guestfs-actions.pod:5654 ../fish/guestfish-actions.pod:3760
15717 msgid "Symbolic link"
15718 msgstr ""
15719
15720 #. type: =item
15721 #: ../src/guestfs-actions.pod:5656 ../fish/guestfish-actions.pod:3762
15722 msgid "'r'"
15723 msgstr ""
15724
15725 #. type: textblock
15726 #: ../src/guestfs-actions.pod:5658 ../fish/guestfish-actions.pod:3764
15727 msgid "Regular file"
15728 msgstr ""
15729
15730 #. type: =item
15731 #: ../src/guestfs-actions.pod:5660 ../fish/guestfish-actions.pod:3766
15732 msgid "'s'"
15733 msgstr ""
15734
15735 #. type: textblock
15736 #: ../src/guestfs-actions.pod:5662 ../fish/guestfish-actions.pod:3768
15737 msgid "Socket"
15738 msgstr ""
15739
15740 #. type: =item
15741 #: ../src/guestfs-actions.pod:5664 ../fish/guestfish-actions.pod:3770
15742 msgid "'u'"
15743 msgstr ""
15744
15745 #. type: textblock
15746 #: ../src/guestfs-actions.pod:5666 ../fish/guestfish-actions.pod:3772
15747 msgid "Unknown file type"
15748 msgstr ""
15749
15750 #. type: =item
15751 #: ../src/guestfs-actions.pod:5668 ../fish/guestfish-actions.pod:3774
15752 msgid "'?'"
15753 msgstr ""
15754
15755 #. type: textblock
15756 #: ../src/guestfs-actions.pod:5670 ../fish/guestfish-actions.pod:3776
15757 msgid ""
15758 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
15759 msgstr ""
15760
15761 #. type: textblock
15762 #: ../src/guestfs-actions.pod:5675
15763 msgid ""
15764 "This function is primarily intended for use by programs.  To get a simple "
15765 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
15766 "consumption, use C<guestfs_ll>."
15767 msgstr ""
15768
15769 #. type: textblock
15770 #: ../src/guestfs-actions.pod:5679
15771 msgid ""
15772 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
15773 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
15774 msgstr ""
15775
15776 #. type: =head2
15777 #: ../src/guestfs-actions.pod:5685
15778 msgid "guestfs_readlink"
15779 msgstr ""
15780
15781 #. type: verbatim
15782 #: ../src/guestfs-actions.pod:5687
15783 #, no-wrap
15784 msgid ""
15785 " char *\n"
15786 " guestfs_readlink (guestfs_h *g,\n"
15787 "                   const char *path);\n"
15788 "\n"
15789 msgstr ""
15790
15791 #. type: textblock
15792 #: ../src/guestfs-actions.pod:5691 ../fish/guestfish-actions.pod:3789
15793 msgid "This command reads the target of a symbolic link."
15794 msgstr ""
15795
15796 #. type: =head2
15797 #: ../src/guestfs-actions.pod:5698
15798 msgid "guestfs_readlinklist"
15799 msgstr ""
15800
15801 #. type: verbatim
15802 #: ../src/guestfs-actions.pod:5700
15803 #, no-wrap
15804 msgid ""
15805 " char **\n"
15806 " guestfs_readlinklist (guestfs_h *g,\n"
15807 "                       const char *path,\n"
15808 "                       char *const *names);\n"
15809 "\n"
15810 msgstr ""
15811
15812 #. type: textblock
15813 #: ../src/guestfs-actions.pod:5705 ../fish/guestfish-actions.pod:3795
15814 msgid ""
15815 "This call allows you to do a C<readlink> operation on multiple files, where "
15816 "all files are in the directory C<path>.  C<names> is the list of files from "
15817 "this directory."
15818 msgstr ""
15819
15820 #. type: textblock
15821 #: ../src/guestfs-actions.pod:5709 ../fish/guestfish-actions.pod:3799
15822 msgid ""
15823 "On return you get a list of strings, with a one-to-one correspondence to the "
15824 "C<names> list.  Each string is the value of the symbolic link."
15825 msgstr ""
15826
15827 #. type: textblock
15828 #: ../src/guestfs-actions.pod:5713 ../fish/guestfish-actions.pod:3803
15829 msgid ""
15830 "If the C<readlink(2)> operation fails on any name, then the corresponding "
15831 "result string is the empty string C<\"\">.  However the whole operation is "
15832 "completed even if there were C<readlink(2)> errors, and so you can call this "
15833 "function with names where you don't know if they are symbolic links already "
15834 "(albeit slightly less efficient)."
15835 msgstr ""
15836
15837 #. type: textblock
15838 #: ../src/guestfs-actions.pod:5720 ../fish/guestfish-actions.pod:3810
15839 msgid ""
15840 "This call is intended for programs that want to efficiently list a directory "
15841 "contents without making many round-trips.  Very long directory listings "
15842 "might cause the protocol message size to be exceeded, causing this call to "
15843 "fail.  The caller must split up such requests into smaller groups of names."
15844 msgstr ""
15845
15846 #. type: =head2
15847 #: ../src/guestfs-actions.pod:5733
15848 msgid "guestfs_realpath"
15849 msgstr ""
15850
15851 #. type: verbatim
15852 #: ../src/guestfs-actions.pod:5735
15853 #, no-wrap
15854 msgid ""
15855 " char *\n"
15856 " guestfs_realpath (guestfs_h *g,\n"
15857 "                   const char *path);\n"
15858 "\n"
15859 msgstr ""
15860
15861 #. type: textblock
15862 #: ../src/guestfs-actions.pod:5739 ../fish/guestfish-actions.pod:3821
15863 msgid ""
15864 "Return the canonicalized absolute pathname of C<path>.  The returned path "
15865 "has no C<.>, C<..> or symbolic link path elements."
15866 msgstr ""
15867
15868 #. type: =head2
15869 #: ../src/guestfs-actions.pod:5747
15870 msgid "guestfs_removexattr"
15871 msgstr ""
15872
15873 #. type: verbatim
15874 #: ../src/guestfs-actions.pod:5749
15875 #, no-wrap
15876 msgid ""
15877 " int\n"
15878 " guestfs_removexattr (guestfs_h *g,\n"
15879 "                      const char *xattr,\n"
15880 "                      const char *path);\n"
15881 "\n"
15882 msgstr ""
15883
15884 #. type: textblock
15885 #: ../src/guestfs-actions.pod:5754 ../fish/guestfish-actions.pod:3828
15886 msgid ""
15887 "This call removes the extended attribute named C<xattr> of the file C<path>."
15888 msgstr ""
15889
15890 #. type: textblock
15891 #: ../src/guestfs-actions.pod:5757
15892 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
15893 msgstr ""
15894
15895 #. type: =head2
15896 #: ../src/guestfs-actions.pod:5763
15897 msgid "guestfs_resize2fs"
15898 msgstr ""
15899
15900 #. type: verbatim
15901 #: ../src/guestfs-actions.pod:5765
15902 #, no-wrap
15903 msgid ""
15904 " int\n"
15905 " guestfs_resize2fs (guestfs_h *g,\n"
15906 "                    const char *device);\n"
15907 "\n"
15908 msgstr ""
15909
15910 #. type: textblock
15911 #: ../src/guestfs-actions.pod:5769 ../fish/guestfish-actions.pod:3837
15912 msgid ""
15913 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15914 "underlying device."
15915 msgstr ""
15916
15917 #. type: textblock
15918 #: ../src/guestfs-actions.pod:5772
15919 msgid ""
15920 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
15921 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
15922 "sometimes gives an error about this and sometimes not.  In any case, it is "
15923 "always safe to call C<guestfs_e2fsck_f> before calling this function."
15924 msgstr ""
15925
15926 #. type: =head2
15927 #: ../src/guestfs-actions.pod:5782
15928 msgid "guestfs_resize2fs_M"
15929 msgstr ""
15930
15931 #. type: verbatim
15932 #: ../src/guestfs-actions.pod:5784
15933 #, no-wrap
15934 msgid ""
15935 " int\n"
15936 " guestfs_resize2fs_M (guestfs_h *g,\n"
15937 "                      const char *device);\n"
15938 "\n"
15939 msgstr ""
15940
15941 #. type: textblock
15942 #: ../src/guestfs-actions.pod:5788
15943 msgid ""
15944 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
15945 "resized to its minimum size.  This works like the I<-M> option to the "
15946 "C<resize2fs> command."
15947 msgstr ""
15948
15949 #. type: textblock
15950 #: ../src/guestfs-actions.pod:5792
15951 msgid ""
15952 "To get the resulting size of the filesystem you should call "
15953 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
15954 "These two numbers, multiplied together, give the resulting size of the "
15955 "minimal filesystem in bytes."
15956 msgstr ""
15957
15958 #. type: =head2
15959 #: ../src/guestfs-actions.pod:5799
15960 msgid "guestfs_resize2fs_size"
15961 msgstr ""
15962
15963 #. type: verbatim
15964 #: ../src/guestfs-actions.pod:5801
15965 #, no-wrap
15966 msgid ""
15967 " int\n"
15968 " guestfs_resize2fs_size (guestfs_h *g,\n"
15969 "                         const char *device,\n"
15970 "                         int64_t size);\n"
15971 "\n"
15972 msgstr ""
15973
15974 #. type: textblock
15975 #: ../src/guestfs-actions.pod:5806
15976 msgid ""
15977 "This command is the same as C<guestfs_resize2fs> except that it allows you "
15978 "to specify the new size (in bytes) explicitly."
15979 msgstr ""
15980
15981 #. type: =head2
15982 #: ../src/guestfs-actions.pod:5813
15983 msgid "guestfs_rm"
15984 msgstr ""
15985
15986 #. type: verbatim
15987 #: ../src/guestfs-actions.pod:5815
15988 #, no-wrap
15989 msgid ""
15990 " int\n"
15991 " guestfs_rm (guestfs_h *g,\n"
15992 "             const char *path);\n"
15993 "\n"
15994 msgstr ""
15995
15996 #. type: textblock
15997 #: ../src/guestfs-actions.pod:5819 ../fish/guestfish-actions.pod:3870
15998 msgid "Remove the single file C<path>."
15999 msgstr ""
16000
16001 #. type: =head2
16002 #: ../src/guestfs-actions.pod:5825
16003 msgid "guestfs_rm_rf"
16004 msgstr ""
16005
16006 #. type: verbatim
16007 #: ../src/guestfs-actions.pod:5827
16008 #, no-wrap
16009 msgid ""
16010 " int\n"
16011 " guestfs_rm_rf (guestfs_h *g,\n"
16012 "                const char *path);\n"
16013 "\n"
16014 msgstr ""
16015
16016 #. type: textblock
16017 #: ../src/guestfs-actions.pod:5831 ../fish/guestfish-actions.pod:3876
16018 msgid ""
16019 "Remove the file or directory C<path>, recursively removing the contents if "
16020 "its a directory.  This is like the C<rm -rf> shell command."
16021 msgstr ""
16022
16023 #. type: =head2
16024 #: ../src/guestfs-actions.pod:5839
16025 msgid "guestfs_rmdir"
16026 msgstr ""
16027
16028 #. type: verbatim
16029 #: ../src/guestfs-actions.pod:5841
16030 #, no-wrap
16031 msgid ""
16032 " int\n"
16033 " guestfs_rmdir (guestfs_h *g,\n"
16034 "                const char *path);\n"
16035 "\n"
16036 msgstr ""
16037
16038 #. type: textblock
16039 #: ../src/guestfs-actions.pod:5845 ../fish/guestfish-actions.pod:3884
16040 msgid "Remove the single directory C<path>."
16041 msgstr ""
16042
16043 #. type: =head2
16044 #: ../src/guestfs-actions.pod:5851
16045 msgid "guestfs_rmmountpoint"
16046 msgstr ""
16047
16048 #. type: verbatim
16049 #: ../src/guestfs-actions.pod:5853
16050 #, no-wrap
16051 msgid ""
16052 " int\n"
16053 " guestfs_rmmountpoint (guestfs_h *g,\n"
16054 "                       const char *exemptpath);\n"
16055 "\n"
16056 msgstr ""
16057
16058 #. type: textblock
16059 #: ../src/guestfs-actions.pod:5857
16060 msgid ""
16061 "This calls removes a mountpoint that was previously created with "
16062 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
16063 msgstr ""
16064
16065 #. type: =head2
16066 #: ../src/guestfs-actions.pod:5865
16067 msgid "guestfs_scrub_device"
16068 msgstr ""
16069
16070 #. type: verbatim
16071 #: ../src/guestfs-actions.pod:5867
16072 #, no-wrap
16073 msgid ""
16074 " int\n"
16075 " guestfs_scrub_device (guestfs_h *g,\n"
16076 "                       const char *device);\n"
16077 "\n"
16078 msgstr ""
16079
16080 #. type: textblock
16081 #: ../src/guestfs-actions.pod:5871 ../fish/guestfish-actions.pod:3898
16082 msgid ""
16083 "This command writes patterns over C<device> to make data retrieval more "
16084 "difficult."
16085 msgstr ""
16086
16087 #. type: textblock
16088 #: ../src/guestfs-actions.pod:5874 ../src/guestfs-actions.pod:5895
16089 #: ../src/guestfs-actions.pod:5914 ../fish/guestfish-actions.pod:3901
16090 #: ../fish/guestfish-actions.pod:3916 ../fish/guestfish-actions.pod:3929
16091 msgid ""
16092 "It is an interface to the L<scrub(1)> program.  See that manual page for "
16093 "more details."
16094 msgstr ""
16095
16096 #. type: textblock
16097 #: ../src/guestfs-actions.pod:5882 ../src/guestfs-actions.pod:5900
16098 #: ../src/guestfs-actions.pod:5919
16099 msgid "(Added in 1.0.52)"
16100 msgstr ""
16101
16102 #. type: =head2
16103 #: ../src/guestfs-actions.pod:5884
16104 msgid "guestfs_scrub_file"
16105 msgstr ""
16106
16107 #. type: verbatim
16108 #: ../src/guestfs-actions.pod:5886
16109 #, no-wrap
16110 msgid ""
16111 " int\n"
16112 " guestfs_scrub_file (guestfs_h *g,\n"
16113 "                     const char *file);\n"
16114 "\n"
16115 msgstr ""
16116
16117 #. type: textblock
16118 #: ../src/guestfs-actions.pod:5890 ../fish/guestfish-actions.pod:3911
16119 msgid ""
16120 "This command writes patterns over a file to make data retrieval more "
16121 "difficult."
16122 msgstr ""
16123
16124 #. type: textblock
16125 #: ../src/guestfs-actions.pod:5893 ../fish/guestfish-actions.pod:3914
16126 msgid "The file is I<removed> after scrubbing."
16127 msgstr ""
16128
16129 #. type: =head2
16130 #: ../src/guestfs-actions.pod:5902
16131 msgid "guestfs_scrub_freespace"
16132 msgstr ""
16133
16134 #. type: verbatim
16135 #: ../src/guestfs-actions.pod:5904
16136 #, no-wrap
16137 msgid ""
16138 " int\n"
16139 " guestfs_scrub_freespace (guestfs_h *g,\n"
16140 "                          const char *dir);\n"
16141 "\n"
16142 msgstr ""
16143
16144 #. type: textblock
16145 #: ../src/guestfs-actions.pod:5908
16146 msgid ""
16147 "This command creates the directory C<dir> and then fills it with files until "
16148 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
16149 "and deletes them.  The intention is to scrub any free space on the partition "
16150 "containing C<dir>."
16151 msgstr ""
16152
16153 #. type: =head2
16154 #: ../src/guestfs-actions.pod:5921
16155 msgid "guestfs_set_append"
16156 msgstr ""
16157
16158 #. type: verbatim
16159 #: ../src/guestfs-actions.pod:5923
16160 #, no-wrap
16161 msgid ""
16162 " int\n"
16163 " guestfs_set_append (guestfs_h *g,\n"
16164 "                     const char *append);\n"
16165 "\n"
16166 msgstr ""
16167
16168 #. type: textblock
16169 #: ../src/guestfs-actions.pod:5927 ../fish/guestfish-actions.pod:3938
16170 msgid ""
16171 "This function is used to add additional options to the guest kernel command "
16172 "line."
16173 msgstr ""
16174
16175 #. type: textblock
16176 #: ../src/guestfs-actions.pod:5930 ../fish/guestfish-actions.pod:3941
16177 msgid ""
16178 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
16179 "environment variable."
16180 msgstr ""
16181
16182 #. type: textblock
16183 #: ../src/guestfs-actions.pod:5933 ../fish/guestfish-actions.pod:3944
16184 msgid ""
16185 "Setting C<append> to C<NULL> means I<no> additional options are passed "
16186 "(libguestfs always adds a few of its own)."
16187 msgstr ""
16188
16189 #. type: =head2
16190 #: ../src/guestfs-actions.pod:5940
16191 msgid "guestfs_set_attach_method"
16192 msgstr ""
16193
16194 #. type: verbatim
16195 #: ../src/guestfs-actions.pod:5942
16196 #, no-wrap
16197 msgid ""
16198 " int\n"
16199 " guestfs_set_attach_method (guestfs_h *g,\n"
16200 "                            const char *attachmethod);\n"
16201 "\n"
16202 msgstr ""
16203
16204 #. type: textblock
16205 #: ../src/guestfs-actions.pod:5946 ../fish/guestfish-actions.pod:3953
16206 msgid ""
16207 "Set the method that libguestfs uses to connect to the back end guestfsd "
16208 "daemon.  Possible methods are:"
16209 msgstr ""
16210
16211 #. type: textblock
16212 #: ../src/guestfs-actions.pod:5953 ../fish/guestfish-actions.pod:3960
16213 msgid ""
16214 "Launch an appliance and connect to it.  This is the ordinary method and the "
16215 "default."
16216 msgstr ""
16217
16218 #. type: =item
16219 #: ../src/guestfs-actions.pod:5956 ../fish/guestfish-actions.pod:3963
16220 msgid "C<unix:I<path>>"
16221 msgstr ""
16222
16223 #. type: textblock
16224 #: ../src/guestfs-actions.pod:5958 ../fish/guestfish-actions.pod:3965
16225 msgid "Connect to the Unix domain socket I<path>."
16226 msgstr ""
16227
16228 #. type: textblock
16229 #: ../src/guestfs-actions.pod:5960 ../fish/guestfish-actions.pod:3967
16230 msgid ""
16231 "This method lets you connect to an existing daemon or (using virtio-serial) "
16232 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
16233 "RUNNING DAEMONS>."
16234 msgstr ""
16235
16236 #. type: =head2
16237 #: ../src/guestfs-actions.pod:5968
16238 msgid "guestfs_set_autosync"
16239 msgstr ""
16240
16241 #. type: verbatim
16242 #: ../src/guestfs-actions.pod:5970
16243 #, no-wrap
16244 msgid ""
16245 " int\n"
16246 " guestfs_set_autosync (guestfs_h *g,\n"
16247 "                       int autosync);\n"
16248 "\n"
16249 msgstr ""
16250
16251 #. type: textblock
16252 #: ../src/guestfs-actions.pod:5974 ../fish/guestfish-actions.pod:3979
16253 msgid ""
16254 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
16255 "effort attempt to make filesystems consistent and synchronized when the "
16256 "handle is closed (also if the program exits without closing handles)."
16257 msgstr ""
16258
16259 #. type: textblock
16260 #: ../src/guestfs-actions.pod:5979 ../fish/guestfish-actions.pod:3984
16261 msgid ""
16262 "This is enabled by default (since libguestfs 1.5.24, previously it was "
16263 "disabled by default)."
16264 msgstr ""
16265
16266 #. type: =head2
16267 #: ../src/guestfs-actions.pod:5986
16268 msgid "guestfs_set_direct"
16269 msgstr ""
16270
16271 #. type: verbatim
16272 #: ../src/guestfs-actions.pod:5988
16273 #, no-wrap
16274 msgid ""
16275 " int\n"
16276 " guestfs_set_direct (guestfs_h *g,\n"
16277 "                     int direct);\n"
16278 "\n"
16279 msgstr ""
16280
16281 #. type: textblock
16282 #: ../src/guestfs-actions.pod:5992 ../fish/guestfish-actions.pod:3993
16283 msgid ""
16284 "If the direct appliance mode flag is enabled, then stdin and stdout are "
16285 "passed directly through to the appliance once it is launched."
16286 msgstr ""
16287
16288 #. type: textblock
16289 #: ../src/guestfs-actions.pod:5996
16290 msgid ""
16291 "One consequence of this is that log messages aren't caught by the library "
16292 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
16293 "stdout."
16294 msgstr ""
16295
16296 #. type: textblock
16297 #: ../src/guestfs-actions.pod:6000 ../fish/guestfish-actions.pod:4001
16298 msgid "You probably don't want to use this unless you know what you are doing."
16299 msgstr ""
16300
16301 #. type: textblock
16302 #: ../src/guestfs-actions.pod:6003 ../fish/guestfish-actions.pod:4004
16303 msgid "The default is disabled."
16304 msgstr ""
16305
16306 #. type: =head2
16307 #: ../src/guestfs-actions.pod:6009
16308 msgid "guestfs_set_e2label"
16309 msgstr ""
16310
16311 #. type: verbatim
16312 #: ../src/guestfs-actions.pod:6011
16313 #, no-wrap
16314 msgid ""
16315 " int\n"
16316 " guestfs_set_e2label (guestfs_h *g,\n"
16317 "                      const char *device,\n"
16318 "                      const char *label);\n"
16319 "\n"
16320 msgstr ""
16321
16322 #. type: textblock
16323 #: ../src/guestfs-actions.pod:6016 ../fish/guestfish-actions.pod:4010
16324 msgid ""
16325 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
16326 "C<label>.  Filesystem labels are limited to 16 characters."
16327 msgstr ""
16328
16329 #. type: textblock
16330 #: ../src/guestfs-actions.pod:6020
16331 msgid ""
16332 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
16333 "the existing label on a filesystem."
16334 msgstr ""
16335
16336 #. type: =head2
16337 #: ../src/guestfs-actions.pod:6027
16338 msgid "guestfs_set_e2uuid"
16339 msgstr ""
16340
16341 #. type: verbatim
16342 #: ../src/guestfs-actions.pod:6029
16343 #, no-wrap
16344 msgid ""
16345 " int\n"
16346 " guestfs_set_e2uuid (guestfs_h *g,\n"
16347 "                     const char *device,\n"
16348 "                     const char *uuid);\n"
16349 "\n"
16350 msgstr ""
16351
16352 #. type: textblock
16353 #: ../src/guestfs-actions.pod:6034 ../fish/guestfish-actions.pod:4021
16354 msgid ""
16355 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
16356 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
16357 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
16358 msgstr ""
16359
16360 #. type: textblock
16361 #: ../src/guestfs-actions.pod:6039
16362 msgid ""
16363 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
16364 "the existing UUID of a filesystem."
16365 msgstr ""
16366
16367 #. type: =head2
16368 #: ../src/guestfs-actions.pod:6046
16369 msgid "guestfs_set_memsize"
16370 msgstr ""
16371
16372 #. type: verbatim
16373 #: ../src/guestfs-actions.pod:6048
16374 #, no-wrap
16375 msgid ""
16376 " int\n"
16377 " guestfs_set_memsize (guestfs_h *g,\n"
16378 "                      int memsize);\n"
16379 "\n"
16380 msgstr ""
16381
16382 #. type: textblock
16383 #: ../src/guestfs-actions.pod:6052
16384 msgid ""
16385 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
16386 "This only has any effect if called before C<guestfs_launch>."
16387 msgstr ""
16388
16389 #. type: textblock
16390 #: ../src/guestfs-actions.pod:6056 ../fish/guestfish-actions.pod:4039
16391 msgid ""
16392 "You can also change this by setting the environment variable "
16393 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
16394 msgstr ""
16395
16396 #. type: =head2
16397 #: ../src/guestfs-actions.pod:6067
16398 msgid "guestfs_set_network"
16399 msgstr ""
16400
16401 #. type: verbatim
16402 #: ../src/guestfs-actions.pod:6069
16403 #, no-wrap
16404 msgid ""
16405 " int\n"
16406 " guestfs_set_network (guestfs_h *g,\n"
16407 "                      int network);\n"
16408 "\n"
16409 msgstr ""
16410
16411 #. type: textblock
16412 #: ../src/guestfs-actions.pod:6073 ../fish/guestfish-actions.pod:4052
16413 msgid ""
16414 "If C<network> is true, then the network is enabled in the libguestfs "
16415 "appliance.  The default is false."
16416 msgstr ""
16417
16418 #. type: textblock
16419 #: ../src/guestfs-actions.pod:6076 ../fish/guestfish-actions.pod:4055
16420 msgid ""
16421 "This affects whether commands are able to access the network (see L<guestfs"
16422 "(3)/RUNNING COMMANDS>)."
16423 msgstr ""
16424
16425 #. type: textblock
16426 #: ../src/guestfs-actions.pod:6079
16427 msgid ""
16428 "You must call this before calling C<guestfs_launch>, otherwise it has no "
16429 "effect."
16430 msgstr ""
16431
16432 #. type: =head2
16433 #: ../src/guestfs-actions.pod:6086
16434 msgid "guestfs_set_path"
16435 msgstr ""
16436
16437 #. type: verbatim
16438 #: ../src/guestfs-actions.pod:6088
16439 #, no-wrap
16440 msgid ""
16441 " int\n"
16442 " guestfs_set_path (guestfs_h *g,\n"
16443 "                   const char *searchpath);\n"
16444 "\n"
16445 msgstr ""
16446
16447 #. type: textblock
16448 #: ../src/guestfs-actions.pod:6092 ../fish/guestfish-actions.pod:4067
16449 msgid "Set the path that libguestfs searches for kernel and initrd.img."
16450 msgstr ""
16451
16452 #. type: textblock
16453 #: ../src/guestfs-actions.pod:6094 ../fish/guestfish-actions.pod:4069
16454 msgid ""
16455 "The default is C<$libdir/guestfs> unless overridden by setting "
16456 "C<LIBGUESTFS_PATH> environment variable."
16457 msgstr ""
16458
16459 #. type: textblock
16460 #: ../src/guestfs-actions.pod:6097 ../fish/guestfish-actions.pod:4072
16461 msgid "Setting C<path> to C<NULL> restores the default path."
16462 msgstr ""
16463
16464 #. type: =head2
16465 #: ../src/guestfs-actions.pod:6103
16466 msgid "guestfs_set_qemu"
16467 msgstr ""
16468
16469 #. type: verbatim
16470 #: ../src/guestfs-actions.pod:6105
16471 #, no-wrap
16472 msgid ""
16473 " int\n"
16474 " guestfs_set_qemu (guestfs_h *g,\n"
16475 "                   const char *qemu);\n"
16476 "\n"
16477 msgstr ""
16478
16479 #. type: textblock
16480 #: ../src/guestfs-actions.pod:6109 ../fish/guestfish-actions.pod:4080
16481 msgid "Set the qemu binary that we will use."
16482 msgstr ""
16483
16484 #. type: textblock
16485 #: ../src/guestfs-actions.pod:6111 ../fish/guestfish-actions.pod:4082
16486 msgid ""
16487 "The default is chosen when the library was compiled by the configure script."
16488 msgstr ""
16489
16490 #. type: textblock
16491 #: ../src/guestfs-actions.pod:6114 ../fish/guestfish-actions.pod:4085
16492 msgid ""
16493 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
16494 "variable."
16495 msgstr ""
16496
16497 #. type: textblock
16498 #: ../src/guestfs-actions.pod:6117 ../fish/guestfish-actions.pod:4088
16499 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
16500 msgstr ""
16501
16502 #. type: textblock
16503 #: ../src/guestfs-actions.pod:6119 ../fish/guestfish-actions.pod:4090
16504 msgid ""
16505 "Note that you should call this function as early as possible after creating "
16506 "the handle.  This is because some pre-launch operations depend on testing "
16507 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
16508 "don't retest features, and so you might see inconsistent results.  Using the "
16509 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
16510 "the qemu binary at the same time as the handle is created."
16511 msgstr ""
16512
16513 #. type: =head2
16514 #: ../src/guestfs-actions.pod:6131
16515 msgid "guestfs_set_recovery_proc"
16516 msgstr ""
16517
16518 #. type: verbatim
16519 #: ../src/guestfs-actions.pod:6133
16520 #, no-wrap
16521 msgid ""
16522 " int\n"
16523 " guestfs_set_recovery_proc (guestfs_h *g,\n"
16524 "                            int recoveryproc);\n"
16525 "\n"
16526 msgstr ""
16527
16528 #. type: textblock
16529 #: ../src/guestfs-actions.pod:6137
16530 msgid ""
16531 "If this is called with the parameter C<false> then C<guestfs_launch> does "
16532 "not create a recovery process.  The purpose of the recovery process is to "
16533 "stop runaway qemu processes in the case where the main program aborts "
16534 "abruptly."
16535 msgstr ""
16536
16537 #. type: textblock
16538 #: ../src/guestfs-actions.pod:6142
16539 msgid ""
16540 "This only has any effect if called before C<guestfs_launch>, and the default "
16541 "is true."
16542 msgstr ""
16543
16544 #. type: textblock
16545 #: ../src/guestfs-actions.pod:6145 ../fish/guestfish-actions.pod:4112
16546 msgid ""
16547 "About the only time when you would want to disable this is if the main "
16548 "process will fork itself into the background (\"daemonize\" itself).  In "
16549 "this case the recovery process thinks that the main program has disappeared "
16550 "and so kills qemu, which is not very helpful."
16551 msgstr ""
16552
16553 #. type: =head2
16554 #: ../src/guestfs-actions.pod:6155
16555 msgid "guestfs_set_selinux"
16556 msgstr ""
16557
16558 #. type: verbatim
16559 #: ../src/guestfs-actions.pod:6157
16560 #, no-wrap
16561 msgid ""
16562 " int\n"
16563 " guestfs_set_selinux (guestfs_h *g,\n"
16564 "                      int selinux);\n"
16565 "\n"
16566 msgstr ""
16567
16568 #. type: textblock
16569 #: ../src/guestfs-actions.pod:6161 ../fish/guestfish-actions.pod:4124
16570 msgid ""
16571 "This sets the selinux flag that is passed to the appliance at boot time.  "
16572 "The default is C<selinux=0> (disabled)."
16573 msgstr ""
16574
16575 #. type: textblock
16576 #: ../src/guestfs-actions.pod:6164 ../fish/guestfish-actions.pod:4127
16577 msgid ""
16578 "Note that if SELinux is enabled, it is always in Permissive mode "
16579 "(C<enforcing=0>)."
16580 msgstr ""
16581
16582 #. type: =head2
16583 #: ../src/guestfs-actions.pod:6174
16584 msgid "guestfs_set_trace"
16585 msgstr ""
16586
16587 #. type: verbatim
16588 #: ../src/guestfs-actions.pod:6176
16589 #, no-wrap
16590 msgid ""
16591 " int\n"
16592 " guestfs_set_trace (guestfs_h *g,\n"
16593 "                    int trace);\n"
16594 "\n"
16595 msgstr ""
16596
16597 #. type: textblock
16598 #: ../src/guestfs-actions.pod:6180 ../fish/guestfish-actions.pod:4139
16599 msgid ""
16600 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
16601 "return values are traced."
16602 msgstr ""
16603
16604 #. type: textblock
16605 #: ../src/guestfs-actions.pod:6183 ../fish/guestfish-actions.pod:4142
16606 msgid ""
16607 "If you want to trace C API calls into libguestfs (and other libraries) then "
16608 "possibly a better way is to use the external ltrace(1) command."
16609 msgstr ""
16610
16611 #. type: textblock
16612 #: ../src/guestfs-actions.pod:6187 ../fish/guestfish-actions.pod:4146
16613 msgid ""
16614 "Command traces are disabled unless the environment variable "
16615 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
16616 msgstr ""
16617
16618 #. type: textblock
16619 #: ../src/guestfs-actions.pod:6190
16620 msgid ""
16621 "Trace messages are normally sent to C<stderr>, unless you register a "
16622 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
16623 msgstr ""
16624
16625 #. type: =head2
16626 #: ../src/guestfs-actions.pod:6198
16627 msgid "guestfs_set_verbose"
16628 msgstr ""
16629
16630 #. type: verbatim
16631 #: ../src/guestfs-actions.pod:6200
16632 #, no-wrap
16633 msgid ""
16634 " int\n"
16635 " guestfs_set_verbose (guestfs_h *g,\n"
16636 "                      int verbose);\n"
16637 "\n"
16638 msgstr ""
16639
16640 #. type: textblock
16641 #: ../src/guestfs-actions.pod:6204 ../fish/guestfish-actions.pod:4159
16642 msgid "If C<verbose> is true, this turns on verbose messages."
16643 msgstr ""
16644
16645 #. type: textblock
16646 #: ../src/guestfs-actions.pod:6206 ../fish/guestfish-actions.pod:4161
16647 msgid ""
16648 "Verbose messages are disabled unless the environment variable "
16649 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
16650 msgstr ""
16651
16652 #. type: textblock
16653 #: ../src/guestfs-actions.pod:6209
16654 msgid ""
16655 "Verbose messages are normally sent to C<stderr>, unless you register a "
16656 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
16657 msgstr ""
16658
16659 #. type: =head2
16660 #: ../src/guestfs-actions.pod:6217
16661 msgid "guestfs_setcon"
16662 msgstr ""
16663
16664 #. type: verbatim
16665 #: ../src/guestfs-actions.pod:6219
16666 #, no-wrap
16667 msgid ""
16668 " int\n"
16669 " guestfs_setcon (guestfs_h *g,\n"
16670 "                 const char *context);\n"
16671 "\n"
16672 msgstr ""
16673
16674 #. type: textblock
16675 #: ../src/guestfs-actions.pod:6223 ../fish/guestfish-actions.pod:4172
16676 msgid ""
16677 "This sets the SELinux security context of the daemon to the string "
16678 "C<context>."
16679 msgstr ""
16680
16681 #. type: textblock
16682 #: ../src/guestfs-actions.pod:6226 ../fish/guestfish-actions.pod:4175
16683 msgid "See the documentation about SELINUX in L<guestfs(3)>."
16684 msgstr ""
16685
16686 #. type: =head2
16687 #: ../src/guestfs-actions.pod:6232
16688 msgid "guestfs_setxattr"
16689 msgstr ""
16690
16691 #. type: verbatim
16692 #: ../src/guestfs-actions.pod:6234
16693 #, no-wrap
16694 msgid ""
16695 " int\n"
16696 " guestfs_setxattr (guestfs_h *g,\n"
16697 "                   const char *xattr,\n"
16698 "                   const char *val,\n"
16699 "                   int vallen,\n"
16700 "                   const char *path);\n"
16701 "\n"
16702 msgstr ""
16703
16704 #. type: textblock
16705 #: ../src/guestfs-actions.pod:6241 ../fish/guestfish-actions.pod:4181
16706 msgid ""
16707 "This call sets the extended attribute named C<xattr> of the file C<path> to "
16708 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
16709 msgstr ""
16710
16711 #. type: textblock
16712 #: ../src/guestfs-actions.pod:6245
16713 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
16714 msgstr ""
16715
16716 #. type: =head2
16717 #: ../src/guestfs-actions.pod:6251
16718 msgid "guestfs_sfdisk"
16719 msgstr ""
16720
16721 #. type: verbatim
16722 #: ../src/guestfs-actions.pod:6253
16723 #, no-wrap
16724 msgid ""
16725 " int\n"
16726 " guestfs_sfdisk (guestfs_h *g,\n"
16727 "                 const char *device,\n"
16728 "                 int cyls,\n"
16729 "                 int heads,\n"
16730 "                 int sectors,\n"
16731 "                 char *const *lines);\n"
16732 "\n"
16733 msgstr ""
16734
16735 #. type: textblock
16736 #: ../src/guestfs-actions.pod:6261 ../fish/guestfish-actions.pod:4191
16737 msgid ""
16738 "This is a direct interface to the L<sfdisk(8)> program for creating "
16739 "partitions on block devices."
16740 msgstr ""
16741
16742 #. type: textblock
16743 #: ../src/guestfs-actions.pod:6264 ../fish/guestfish-actions.pod:4194
16744 msgid "C<device> should be a block device, for example C</dev/sda>."
16745 msgstr ""
16746
16747 #. type: textblock
16748 #: ../src/guestfs-actions.pod:6266 ../fish/guestfish-actions.pod:4196
16749 msgid ""
16750 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
16751 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
16752 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
16753 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
16754 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
16755 "the kernel) cannot work out the right geometry and you will need to tell it."
16756 msgstr ""
16757
16758 #. type: textblock
16759 #: ../src/guestfs-actions.pod:6274 ../fish/guestfish-actions.pod:4204
16760 msgid ""
16761 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
16762 "refer to the L<sfdisk(8)> manpage."
16763 msgstr ""
16764
16765 #. type: textblock
16766 #: ../src/guestfs-actions.pod:6277 ../fish/guestfish-actions.pod:4207
16767 msgid ""
16768 "To create a single partition occupying the whole disk, you would pass "
16769 "C<lines> as a single element list, when the single element being the string "
16770 "C<,> (comma)."
16771 msgstr ""
16772
16773 #. type: textblock
16774 #: ../src/guestfs-actions.pod:6281
16775 msgid ""
16776 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
16777 msgstr ""
16778
16779 #. type: textblock
16780 #: ../src/guestfs-actions.pod:6289 ../src/guestfs-actions.pod:6319
16781 #: ../src/guestfs-actions.pod:6352 ../fish/guestfish-actions.pod:4217
16782 #: ../fish/guestfish-actions.pod:4240 ../fish/guestfish-actions.pod:4262
16783 msgid ""
16784 "This function is deprecated.  In new code, use the C<part_add> call instead."
16785 msgstr ""
16786
16787 #. type: =head2
16788 #: ../src/guestfs-actions.pod:6298
16789 msgid "guestfs_sfdiskM"
16790 msgstr ""
16791
16792 #. type: verbatim
16793 #: ../src/guestfs-actions.pod:6300
16794 #, no-wrap
16795 msgid ""
16796 " int\n"
16797 " guestfs_sfdiskM (guestfs_h *g,\n"
16798 "                  const char *device,\n"
16799 "                  char *const *lines);\n"
16800 "\n"
16801 msgstr ""
16802
16803 #. type: textblock
16804 #: ../src/guestfs-actions.pod:6305
16805 msgid ""
16806 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
16807 "partition sizes are specified in megabytes only (rounded to the nearest "
16808 "cylinder) and you don't need to specify the cyls, heads and sectors "
16809 "parameters which were rarely if ever used anyway."
16810 msgstr ""
16811
16812 #. type: textblock
16813 #: ../src/guestfs-actions.pod:6311
16814 msgid ""
16815 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
16816 "C<guestfs_part_disk>"
16817 msgstr ""
16818
16819 #. type: =head2
16820 #: ../src/guestfs-actions.pod:6328
16821 msgid "guestfs_sfdisk_N"
16822 msgstr ""
16823
16824 #. type: verbatim
16825 #: ../src/guestfs-actions.pod:6330
16826 #, no-wrap
16827 msgid ""
16828 " int\n"
16829 " guestfs_sfdisk_N (guestfs_h *g,\n"
16830 "                   const char *device,\n"
16831 "                   int partnum,\n"
16832 "                   int cyls,\n"
16833 "                   int heads,\n"
16834 "                   int sectors,\n"
16835 "                   const char *line);\n"
16836 "\n"
16837 msgstr ""
16838
16839 #. type: textblock
16840 #: ../src/guestfs-actions.pod:6339 ../fish/guestfish-actions.pod:4251
16841 msgid ""
16842 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16843 "(note: C<n> counts from 1)."
16844 msgstr ""
16845
16846 #. type: textblock
16847 #: ../src/guestfs-actions.pod:6342
16848 msgid ""
16849 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
16850 "for the cyls/heads/sectors parameters."
16851 msgstr ""
16852
16853 #. type: textblock
16854 #: ../src/guestfs-actions.pod:6345
16855 msgid "See also: C<guestfs_part_add>"
16856 msgstr ""
16857
16858 #. type: =head2
16859 #: ../src/guestfs-actions.pod:6361
16860 msgid "guestfs_sfdisk_disk_geometry"
16861 msgstr ""
16862
16863 #. type: verbatim
16864 #: ../src/guestfs-actions.pod:6363
16865 #, no-wrap
16866 msgid ""
16867 " char *\n"
16868 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
16869 "                               const char *device);\n"
16870 "\n"
16871 msgstr ""
16872
16873 #. type: textblock
16874 #: ../src/guestfs-actions.pod:6367
16875 msgid ""
16876 "This displays the disk geometry of C<device> read from the partition table.  "
16877 "Especially in the case where the underlying block device has been resized, "
16878 "this can be different from the kernel's idea of the geometry (see "
16879 "C<guestfs_sfdisk_kernel_geometry>)."
16880 msgstr ""
16881
16882 #. type: textblock
16883 #: ../src/guestfs-actions.pod:6372 ../src/guestfs-actions.pod:6388
16884 #: ../fish/guestfish-actions.pod:4278 ../fish/guestfish-actions.pod:4287
16885 msgid "The result is in human-readable format, and not designed to be parsed."
16886 msgstr ""
16887
16888 #. type: =head2
16889 #: ../src/guestfs-actions.pod:6380
16890 msgid "guestfs_sfdisk_kernel_geometry"
16891 msgstr ""
16892
16893 #. type: verbatim
16894 #: ../src/guestfs-actions.pod:6382
16895 #, no-wrap
16896 msgid ""
16897 " char *\n"
16898 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
16899 "                                 const char *device);\n"
16900 "\n"
16901 msgstr ""
16902
16903 #. type: textblock
16904 #: ../src/guestfs-actions.pod:6386 ../fish/guestfish-actions.pod:4285
16905 msgid "This displays the kernel's idea of the geometry of C<device>."
16906 msgstr ""
16907
16908 #. type: =head2
16909 #: ../src/guestfs-actions.pod:6396
16910 msgid "guestfs_sfdisk_l"
16911 msgstr ""
16912
16913 #. type: verbatim
16914 #: ../src/guestfs-actions.pod:6398
16915 #, no-wrap
16916 msgid ""
16917 " char *\n"
16918 " guestfs_sfdisk_l (guestfs_h *g,\n"
16919 "                   const char *device);\n"
16920 "\n"
16921 msgstr ""
16922
16923 #. type: textblock
16924 #: ../src/guestfs-actions.pod:6402 ../fish/guestfish-actions.pod:4294
16925 msgid ""
16926 "This displays the partition table on C<device>, in the human-readable output "
16927 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
16928 msgstr ""
16929
16930 #. type: textblock
16931 #: ../src/guestfs-actions.pod:6406
16932 msgid "See also: C<guestfs_part_list>"
16933 msgstr ""
16934
16935 #. type: textblock
16936 #: ../src/guestfs-actions.pod:6411 ../fish/guestfish-actions.pod:4300
16937 msgid ""
16938 "This function is deprecated.  In new code, use the C<part_list> call instead."
16939 msgstr ""
16940
16941 #. type: =head2
16942 #: ../src/guestfs-actions.pod:6420
16943 msgid "guestfs_sh"
16944 msgstr ""
16945
16946 #. type: verbatim
16947 #: ../src/guestfs-actions.pod:6422
16948 #, no-wrap
16949 msgid ""
16950 " char *\n"
16951 " guestfs_sh (guestfs_h *g,\n"
16952 "             const char *command);\n"
16953 "\n"
16954 msgstr ""
16955
16956 #. type: textblock
16957 #: ../src/guestfs-actions.pod:6426 ../fish/guestfish-actions.pod:4311
16958 msgid ""
16959 "This call runs a command from the guest filesystem via the guest's C</bin/"
16960 "sh>."
16961 msgstr ""
16962
16963 #. type: textblock
16964 #: ../src/guestfs-actions.pod:6429
16965 msgid "This is like C<guestfs_command>, but passes the command to:"
16966 msgstr ""
16967
16968 #. type: verbatim
16969 #: ../src/guestfs-actions.pod:6431 ../fish/guestfish-actions.pod:4316
16970 #, no-wrap
16971 msgid ""
16972 " /bin/sh -c \"command\"\n"
16973 "\n"
16974 msgstr ""
16975
16976 #. type: textblock
16977 #: ../src/guestfs-actions.pod:6433 ../fish/guestfish-actions.pod:4318
16978 msgid ""
16979 "Depending on the guest's shell, this usually results in wildcards being "
16980 "expanded, shell expressions being interpolated and so on."
16981 msgstr ""
16982
16983 #. type: textblock
16984 #: ../src/guestfs-actions.pod:6437
16985 msgid "All the provisos about C<guestfs_command> apply to this call."
16986 msgstr ""
16987
16988 #. type: =head2
16989 #: ../src/guestfs-actions.pod:6444
16990 msgid "guestfs_sh_lines"
16991 msgstr ""
16992
16993 #. type: verbatim
16994 #: ../src/guestfs-actions.pod:6446
16995 #, no-wrap
16996 msgid ""
16997 " char **\n"
16998 " guestfs_sh_lines (guestfs_h *g,\n"
16999 "                   const char *command);\n"
17000 "\n"
17001 msgstr ""
17002
17003 #. type: textblock
17004 #: ../src/guestfs-actions.pod:6450
17005 msgid ""
17006 "This is the same as C<guestfs_sh>, but splits the result into a list of "
17007 "lines."
17008 msgstr ""
17009
17010 #. type: textblock
17011 #: ../src/guestfs-actions.pod:6453
17012 msgid "See also: C<guestfs_command_lines>"
17013 msgstr ""
17014
17015 #. type: =head2
17016 #: ../src/guestfs-actions.pod:6461
17017 msgid "guestfs_sleep"
17018 msgstr ""
17019
17020 #. type: verbatim
17021 #: ../src/guestfs-actions.pod:6463
17022 #, no-wrap
17023 msgid ""
17024 " int\n"
17025 " guestfs_sleep (guestfs_h *g,\n"
17026 "                int secs);\n"
17027 "\n"
17028 msgstr ""
17029
17030 #. type: textblock
17031 #: ../src/guestfs-actions.pod:6467 ../fish/guestfish-actions.pod:4337
17032 msgid "Sleep for C<secs> seconds."
17033 msgstr ""
17034
17035 #. type: textblock
17036 #: ../src/guestfs-actions.pod:6471
17037 msgid "(Added in 1.0.41)"
17038 msgstr ""
17039
17040 #. type: =head2
17041 #: ../src/guestfs-actions.pod:6473 ../src/guestfs-structs.pod:109
17042 msgid "guestfs_stat"
17043 msgstr ""
17044
17045 #. type: verbatim
17046 #: ../src/guestfs-actions.pod:6475
17047 #, no-wrap
17048 msgid ""
17049 " struct guestfs_stat *\n"
17050 " guestfs_stat (guestfs_h *g,\n"
17051 "               const char *path);\n"
17052 "\n"
17053 msgstr ""
17054
17055 #. type: textblock
17056 #: ../src/guestfs-actions.pod:6481 ../fish/guestfish-actions.pod:4345
17057 msgid "This is the same as the C<stat(2)> system call."
17058 msgstr ""
17059
17060 #. type: =head2
17061 #: ../src/guestfs-actions.pod:6489 ../src/guestfs-structs.pod:135
17062 msgid "guestfs_statvfs"
17063 msgstr ""
17064
17065 #. type: verbatim
17066 #: ../src/guestfs-actions.pod:6491
17067 #, no-wrap
17068 msgid ""
17069 " struct guestfs_statvfs *\n"
17070 " guestfs_statvfs (guestfs_h *g,\n"
17071 "                  const char *path);\n"
17072 "\n"
17073 msgstr ""
17074
17075 #. type: textblock
17076 #: ../src/guestfs-actions.pod:6495 ../fish/guestfish-actions.pod:4351
17077 msgid ""
17078 "Returns file system statistics for any mounted file system.  C<path> should "
17079 "be a file or directory in the mounted file system (typically it is the mount "
17080 "point itself, but it doesn't need to be)."
17081 msgstr ""
17082
17083 #. type: textblock
17084 #: ../src/guestfs-actions.pod:6499 ../fish/guestfish-actions.pod:4355
17085 msgid "This is the same as the C<statvfs(2)> system call."
17086 msgstr ""
17087
17088 #. type: textblock
17089 #: ../src/guestfs-actions.pod:6501
17090 msgid ""
17091 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
17092 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
17093 msgstr ""
17094
17095 #. type: =head2
17096 #: ../src/guestfs-actions.pod:6507
17097 msgid "guestfs_strings"
17098 msgstr ""
17099
17100 #. type: verbatim
17101 #: ../src/guestfs-actions.pod:6509
17102 #, no-wrap
17103 msgid ""
17104 " char **\n"
17105 " guestfs_strings (guestfs_h *g,\n"
17106 "                  const char *path);\n"
17107 "\n"
17108 msgstr ""
17109
17110 #. type: textblock
17111 #: ../src/guestfs-actions.pod:6513 ../fish/guestfish-actions.pod:4361
17112 msgid ""
17113 "This runs the L<strings(1)> command on a file and returns the list of "
17114 "printable strings found."
17115 msgstr ""
17116
17117 #. type: =head2
17118 #: ../src/guestfs-actions.pod:6525
17119 msgid "guestfs_strings_e"
17120 msgstr ""
17121
17122 #. type: verbatim
17123 #: ../src/guestfs-actions.pod:6527
17124 #, no-wrap
17125 msgid ""
17126 " char **\n"
17127 " guestfs_strings_e (guestfs_h *g,\n"
17128 "                    const char *encoding,\n"
17129 "                    const char *path);\n"
17130 "\n"
17131 msgstr ""
17132
17133 #. type: textblock
17134 #: ../src/guestfs-actions.pod:6532
17135 msgid ""
17136 "This is like the C<guestfs_strings> command, but allows you to specify the "
17137 "encoding of strings that are looked for in the source file C<path>."
17138 msgstr ""
17139
17140 #. type: textblock
17141 #: ../src/guestfs-actions.pod:6536 ../fish/guestfish-actions.pod:4375
17142 msgid "Allowed encodings are:"
17143 msgstr ""
17144
17145 #. type: =item
17146 #: ../src/guestfs-actions.pod:6540 ../fish/guestfish-actions.pod:4379
17147 msgid "s"
17148 msgstr ""
17149
17150 #. type: textblock
17151 #: ../src/guestfs-actions.pod:6542
17152 msgid ""
17153 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
17154 "ISO-8859-X (this is what C<guestfs_strings> uses)."
17155 msgstr ""
17156
17157 #. type: =item
17158 #: ../src/guestfs-actions.pod:6545 ../fish/guestfish-actions.pod:4384
17159 msgid "S"
17160 msgstr ""
17161
17162 #. type: textblock
17163 #: ../src/guestfs-actions.pod:6547 ../fish/guestfish-actions.pod:4386
17164 msgid "Single 8-bit-byte characters."
17165 msgstr ""
17166
17167 #. type: =item
17168 #: ../src/guestfs-actions.pod:6549 ../fish/guestfish-actions.pod:4388
17169 msgid "b"
17170 msgstr ""
17171
17172 #. type: textblock
17173 #: ../src/guestfs-actions.pod:6551 ../fish/guestfish-actions.pod:4390
17174 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
17175 msgstr ""
17176
17177 #. type: =item
17178 #: ../src/guestfs-actions.pod:6554 ../fish/guestfish-actions.pod:4393
17179 msgid "l (lower case letter L)"
17180 msgstr ""
17181
17182 #. type: textblock
17183 #: ../src/guestfs-actions.pod:6556 ../fish/guestfish-actions.pod:4395
17184 msgid ""
17185 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
17186 "examining binaries in Windows guests."
17187 msgstr ""
17188
17189 #. type: =item
17190 #: ../src/guestfs-actions.pod:6559 ../fish/guestfish-actions.pod:4398
17191 msgid "B"
17192 msgstr ""
17193
17194 #. type: textblock
17195 #: ../src/guestfs-actions.pod:6561 ../fish/guestfish-actions.pod:4400
17196 msgid "32-bit big endian such as UCS-4BE."
17197 msgstr ""
17198
17199 #. type: =item
17200 #: ../src/guestfs-actions.pod:6563 ../fish/guestfish-actions.pod:4402
17201 msgid "L"
17202 msgstr ""
17203
17204 #. type: textblock
17205 #: ../src/guestfs-actions.pod:6565 ../fish/guestfish-actions.pod:4404
17206 msgid "32-bit little endian such as UCS-4LE."
17207 msgstr ""
17208
17209 #. type: textblock
17210 #: ../src/guestfs-actions.pod:6569 ../fish/guestfish-actions.pod:4408
17211 msgid "The returned strings are transcoded to UTF-8."
17212 msgstr ""
17213
17214 #. type: =head2
17215 #: ../src/guestfs-actions.pod:6580
17216 msgid "guestfs_swapoff_device"
17217 msgstr ""
17218
17219 #. type: verbatim
17220 #: ../src/guestfs-actions.pod:6582
17221 #, no-wrap
17222 msgid ""
17223 " int\n"
17224 " guestfs_swapoff_device (guestfs_h *g,\n"
17225 "                         const char *device);\n"
17226 "\n"
17227 msgstr ""
17228
17229 #. type: textblock
17230 #: ../src/guestfs-actions.pod:6586
17231 msgid ""
17232 "This command disables the libguestfs appliance swap device or partition "
17233 "named C<device>.  See C<guestfs_swapon_device>."
17234 msgstr ""
17235
17236 #. type: =head2
17237 #: ../src/guestfs-actions.pod:6594
17238 msgid "guestfs_swapoff_file"
17239 msgstr ""
17240
17241 #. type: verbatim
17242 #: ../src/guestfs-actions.pod:6596
17243 #, no-wrap
17244 msgid ""
17245 " int\n"
17246 " guestfs_swapoff_file (guestfs_h *g,\n"
17247 "                       const char *file);\n"
17248 "\n"
17249 msgstr ""
17250
17251 #. type: textblock
17252 #: ../src/guestfs-actions.pod:6600 ../fish/guestfish-actions.pod:4425
17253 msgid "This command disables the libguestfs appliance swap on file."
17254 msgstr ""
17255
17256 #. type: =head2
17257 #: ../src/guestfs-actions.pod:6606
17258 msgid "guestfs_swapoff_label"
17259 msgstr ""
17260
17261 #. type: verbatim
17262 #: ../src/guestfs-actions.pod:6608
17263 #, no-wrap
17264 msgid ""
17265 " int\n"
17266 " guestfs_swapoff_label (guestfs_h *g,\n"
17267 "                        const char *label);\n"
17268 "\n"
17269 msgstr ""
17270
17271 #. type: textblock
17272 #: ../src/guestfs-actions.pod:6612 ../fish/guestfish-actions.pod:4431
17273 msgid ""
17274 "This command disables the libguestfs appliance swap on labeled swap "
17275 "partition."
17276 msgstr ""
17277
17278 #. type: =head2
17279 #: ../src/guestfs-actions.pod:6619
17280 msgid "guestfs_swapoff_uuid"
17281 msgstr ""
17282
17283 #. type: verbatim
17284 #: ../src/guestfs-actions.pod:6621
17285 #, no-wrap
17286 msgid ""
17287 " int\n"
17288 " guestfs_swapoff_uuid (guestfs_h *g,\n"
17289 "                       const char *uuid);\n"
17290 "\n"
17291 msgstr ""
17292
17293 #. type: textblock
17294 #: ../src/guestfs-actions.pod:6625 ../fish/guestfish-actions.pod:4438
17295 msgid ""
17296 "This command disables the libguestfs appliance swap partition with the given "
17297 "UUID."
17298 msgstr ""
17299
17300 #. type: =head2
17301 #: ../src/guestfs-actions.pod:6632
17302 msgid "guestfs_swapon_device"
17303 msgstr ""
17304
17305 #. type: verbatim
17306 #: ../src/guestfs-actions.pod:6634
17307 #, no-wrap
17308 msgid ""
17309 " int\n"
17310 " guestfs_swapon_device (guestfs_h *g,\n"
17311 "                        const char *device);\n"
17312 "\n"
17313 msgstr ""
17314
17315 #. type: textblock
17316 #: ../src/guestfs-actions.pod:6638
17317 msgid ""
17318 "This command enables the libguestfs appliance to use the swap device or "
17319 "partition named C<device>.  The increased memory is made available for all "
17320 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
17321 msgstr ""
17322
17323 #. type: textblock
17324 #: ../src/guestfs-actions.pod:6643 ../fish/guestfish-actions.pod:4450
17325 msgid ""
17326 "Note that you should not swap to existing guest swap partitions unless you "
17327 "know what you are doing.  They may contain hibernation information, or other "
17328 "information that the guest doesn't want you to trash.  You also risk leaking "
17329 "information about the host to the guest this way.  Instead, attach a new "
17330 "host device to the guest and swap on that."
17331 msgstr ""
17332
17333 #. type: =head2
17334 #: ../src/guestfs-actions.pod:6654
17335 msgid "guestfs_swapon_file"
17336 msgstr ""
17337
17338 #. type: verbatim
17339 #: ../src/guestfs-actions.pod:6656
17340 #, no-wrap
17341 msgid ""
17342 " int\n"
17343 " guestfs_swapon_file (guestfs_h *g,\n"
17344 "                      const char *file);\n"
17345 "\n"
17346 msgstr ""
17347
17348 #. type: textblock
17349 #: ../src/guestfs-actions.pod:6660
17350 msgid ""
17351 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
17352 "notes."
17353 msgstr ""
17354
17355 #. type: =head2
17356 #: ../src/guestfs-actions.pod:6667
17357 msgid "guestfs_swapon_label"
17358 msgstr ""
17359
17360 #. type: verbatim
17361 #: ../src/guestfs-actions.pod:6669
17362 #, no-wrap
17363 msgid ""
17364 " int\n"
17365 " guestfs_swapon_label (guestfs_h *g,\n"
17366 "                       const char *label);\n"
17367 "\n"
17368 msgstr ""
17369
17370 #. type: textblock
17371 #: ../src/guestfs-actions.pod:6673
17372 msgid ""
17373 "This command enables swap to a labeled swap partition.  See "
17374 "C<guestfs_swapon_device> for other notes."
17375 msgstr ""
17376
17377 #. type: =head2
17378 #: ../src/guestfs-actions.pod:6680
17379 msgid "guestfs_swapon_uuid"
17380 msgstr ""
17381
17382 #. type: verbatim
17383 #: ../src/guestfs-actions.pod:6682
17384 #, no-wrap
17385 msgid ""
17386 " int\n"
17387 " guestfs_swapon_uuid (guestfs_h *g,\n"
17388 "                      const char *uuid);\n"
17389 "\n"
17390 msgstr ""
17391
17392 #. type: textblock
17393 #: ../src/guestfs-actions.pod:6686
17394 msgid ""
17395 "This command enables swap to a swap partition with the given UUID.  See "
17396 "C<guestfs_swapon_device> for other notes."
17397 msgstr ""
17398
17399 #. type: =head2
17400 #: ../src/guestfs-actions.pod:6693
17401 msgid "guestfs_sync"
17402 msgstr ""
17403
17404 #. type: verbatim
17405 #: ../src/guestfs-actions.pod:6695
17406 #, no-wrap
17407 msgid ""
17408 " int\n"
17409 " guestfs_sync (guestfs_h *g);\n"
17410 "\n"
17411 msgstr ""
17412
17413 #. type: textblock
17414 #: ../src/guestfs-actions.pod:6698 ../fish/guestfish-actions.pod:4482
17415 msgid ""
17416 "This syncs the disk, so that any writes are flushed through to the "
17417 "underlying disk image."
17418 msgstr ""
17419
17420 #. type: textblock
17421 #: ../src/guestfs-actions.pod:6701 ../fish/guestfish-actions.pod:4485
17422 msgid ""
17423 "You should always call this if you have modified a disk image, before "
17424 "closing the handle."
17425 msgstr ""
17426
17427 #. type: =head2
17428 #: ../src/guestfs-actions.pod:6708
17429 msgid "guestfs_tail"
17430 msgstr ""
17431
17432 #. type: verbatim
17433 #: ../src/guestfs-actions.pod:6710
17434 #, no-wrap
17435 msgid ""
17436 " char **\n"
17437 " guestfs_tail (guestfs_h *g,\n"
17438 "               const char *path);\n"
17439 "\n"
17440 msgstr ""
17441
17442 #. type: textblock
17443 #: ../src/guestfs-actions.pod:6714 ../fish/guestfish-actions.pod:4492
17444 msgid ""
17445 "This command returns up to the last 10 lines of a file as a list of strings."
17446 msgstr ""
17447
17448 #. type: =head2
17449 #: ../src/guestfs-actions.pod:6726
17450 msgid "guestfs_tail_n"
17451 msgstr ""
17452
17453 #. type: verbatim
17454 #: ../src/guestfs-actions.pod:6728
17455 #, no-wrap
17456 msgid ""
17457 " char **\n"
17458 " guestfs_tail_n (guestfs_h *g,\n"
17459 "                 int nrlines,\n"
17460 "                 const char *path);\n"
17461 "\n"
17462 msgstr ""
17463
17464 #. type: textblock
17465 #: ../src/guestfs-actions.pod:6733 ../fish/guestfish-actions.pod:4502
17466 msgid ""
17467 "If the parameter C<nrlines> is a positive number, this returns the last "
17468 "C<nrlines> lines of the file C<path>."
17469 msgstr ""
17470
17471 #. type: textblock
17472 #: ../src/guestfs-actions.pod:6736 ../fish/guestfish-actions.pod:4505
17473 msgid ""
17474 "If the parameter C<nrlines> is a negative number, this returns lines from "
17475 "the file C<path>, starting with the C<-nrlines>th line."
17476 msgstr ""
17477
17478 #. type: =head2
17479 #: ../src/guestfs-actions.pod:6750
17480 msgid "guestfs_tar_in"
17481 msgstr ""
17482
17483 #. type: verbatim
17484 #: ../src/guestfs-actions.pod:6752
17485 #, no-wrap
17486 msgid ""
17487 " int\n"
17488 " guestfs_tar_in (guestfs_h *g,\n"
17489 "                 const char *tarfile,\n"
17490 "                 const char *directory);\n"
17491 "\n"
17492 msgstr ""
17493
17494 #. type: textblock
17495 #: ../src/guestfs-actions.pod:6757 ../fish/guestfish-actions.pod:4517
17496 msgid ""
17497 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
17498 "tar file) into C<directory>."
17499 msgstr ""
17500
17501 #. type: textblock
17502 #: ../src/guestfs-actions.pod:6760
17503 msgid ""
17504 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
17505 msgstr ""
17506
17507 #. type: textblock
17508 #: ../src/guestfs-actions.pod:6765 ../src/guestfs-actions.pod:6782
17509 #: ../src/guestfs-actions.pod:6798 ../src/guestfs-actions.pod:6814
17510 msgid "(Added in 1.0.3)"
17511 msgstr ""
17512
17513 #. type: =head2
17514 #: ../src/guestfs-actions.pod:6767
17515 msgid "guestfs_tar_out"
17516 msgstr ""
17517
17518 #. type: verbatim
17519 #: ../src/guestfs-actions.pod:6769
17520 #, no-wrap
17521 msgid ""
17522 " int\n"
17523 " guestfs_tar_out (guestfs_h *g,\n"
17524 "                  const char *directory,\n"
17525 "                  const char *tarfile);\n"
17526 "\n"
17527 msgstr ""
17528
17529 #. type: textblock
17530 #: ../src/guestfs-actions.pod:6774 ../fish/guestfish-actions.pod:4529
17531 msgid ""
17532 "This command packs the contents of C<directory> and downloads it to local "
17533 "file C<tarfile>."
17534 msgstr ""
17535
17536 #. type: textblock
17537 #: ../src/guestfs-actions.pod:6777
17538 msgid ""
17539 "To download a compressed tarball, use C<guestfs_tgz_out> or "
17540 "C<guestfs_txz_out>."
17541 msgstr ""
17542
17543 #. type: =head2
17544 #: ../src/guestfs-actions.pod:6784
17545 msgid "guestfs_tgz_in"
17546 msgstr ""
17547
17548 #. type: verbatim
17549 #: ../src/guestfs-actions.pod:6786
17550 #, no-wrap
17551 msgid ""
17552 " int\n"
17553 " guestfs_tgz_in (guestfs_h *g,\n"
17554 "                 const char *tarball,\n"
17555 "                 const char *directory);\n"
17556 "\n"
17557 msgstr ""
17558
17559 #. type: textblock
17560 #: ../src/guestfs-actions.pod:6791 ../fish/guestfish-actions.pod:4541
17561 msgid ""
17562 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
17563 "tar file) into C<directory>."
17564 msgstr ""
17565
17566 #. type: textblock
17567 #: ../src/guestfs-actions.pod:6794
17568 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
17569 msgstr ""
17570
17571 #. type: =head2
17572 #: ../src/guestfs-actions.pod:6800
17573 msgid "guestfs_tgz_out"
17574 msgstr ""
17575
17576 #. type: verbatim
17577 #: ../src/guestfs-actions.pod:6802
17578 #, no-wrap
17579 msgid ""
17580 " int\n"
17581 " guestfs_tgz_out (guestfs_h *g,\n"
17582 "                  const char *directory,\n"
17583 "                  const char *tarball);\n"
17584 "\n"
17585 msgstr ""
17586
17587 #. type: textblock
17588 #: ../src/guestfs-actions.pod:6807 ../fish/guestfish-actions.pod:4552
17589 msgid ""
17590 "This command packs the contents of C<directory> and downloads it to local "
17591 "file C<tarball>."
17592 msgstr ""
17593
17594 #. type: textblock
17595 #: ../src/guestfs-actions.pod:6810
17596 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
17597 msgstr ""
17598
17599 #. type: =head2
17600 #: ../src/guestfs-actions.pod:6816
17601 msgid "guestfs_touch"
17602 msgstr ""
17603
17604 #. type: verbatim
17605 #: ../src/guestfs-actions.pod:6818
17606 #, no-wrap
17607 msgid ""
17608 " int\n"
17609 " guestfs_touch (guestfs_h *g,\n"
17610 "                const char *path);\n"
17611 "\n"
17612 msgstr ""
17613
17614 #. type: textblock
17615 #: ../src/guestfs-actions.pod:6822 ../fish/guestfish-actions.pod:4563
17616 msgid ""
17617 "Touch acts like the L<touch(1)> command.  It can be used to update the "
17618 "timestamps on a file, or, if the file does not exist, to create a new zero-"
17619 "length file."
17620 msgstr ""
17621
17622 #. type: textblock
17623 #: ../src/guestfs-actions.pod:6826 ../fish/guestfish-actions.pod:4567
17624 msgid ""
17625 "This command only works on regular files, and will fail on other file types "
17626 "such as directories, symbolic links, block special etc."
17627 msgstr ""
17628
17629 #. type: =head2
17630 #: ../src/guestfs-actions.pod:6833
17631 msgid "guestfs_truncate"
17632 msgstr ""
17633
17634 #. type: verbatim
17635 #: ../src/guestfs-actions.pod:6835
17636 #, no-wrap
17637 msgid ""
17638 " int\n"
17639 " guestfs_truncate (guestfs_h *g,\n"
17640 "                   const char *path);\n"
17641 "\n"
17642 msgstr ""
17643
17644 #. type: textblock
17645 #: ../src/guestfs-actions.pod:6839 ../fish/guestfish-actions.pod:4574
17646 msgid ""
17647 "This command truncates C<path> to a zero-length file.  The file must exist "
17648 "already."
17649 msgstr ""
17650
17651 #. type: =head2
17652 #: ../src/guestfs-actions.pod:6846
17653 msgid "guestfs_truncate_size"
17654 msgstr ""
17655
17656 #. type: verbatim
17657 #: ../src/guestfs-actions.pod:6848
17658 #, no-wrap
17659 msgid ""
17660 " int\n"
17661 " guestfs_truncate_size (guestfs_h *g,\n"
17662 "                        const char *path,\n"
17663 "                        int64_t size);\n"
17664 "\n"
17665 msgstr ""
17666
17667 #. type: textblock
17668 #: ../src/guestfs-actions.pod:6853 ../fish/guestfish-actions.pod:4581
17669 msgid ""
17670 "This command truncates C<path> to size C<size> bytes.  The file must exist "
17671 "already."
17672 msgstr ""
17673
17674 #. type: textblock
17675 #: ../src/guestfs-actions.pod:6856
17676 msgid ""
17677 "If the current file size is less than C<size> then the file is extended to "
17678 "the required size with zero bytes.  This creates a sparse file (ie. disk "
17679 "blocks are not allocated for the file until you write to it).  To create a "
17680 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
17681 msgstr ""
17682
17683 #. type: =head2
17684 #: ../src/guestfs-actions.pod:6866
17685 msgid "guestfs_tune2fs_l"
17686 msgstr ""
17687
17688 #. type: verbatim
17689 #: ../src/guestfs-actions.pod:6868
17690 #, no-wrap
17691 msgid ""
17692 " char **\n"
17693 " guestfs_tune2fs_l (guestfs_h *g,\n"
17694 "                    const char *device);\n"
17695 "\n"
17696 msgstr ""
17697
17698 #. type: textblock
17699 #: ../src/guestfs-actions.pod:6872 ../fish/guestfish-actions.pod:4594
17700 msgid ""
17701 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
17702 "C<device>."
17703 msgstr ""
17704
17705 #. type: textblock
17706 #: ../src/guestfs-actions.pod:6875 ../fish/guestfish-actions.pod:4597
17707 msgid ""
17708 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
17709 "for more details.  The list of fields returned isn't clearly defined, and "
17710 "depends on both the version of C<tune2fs> that libguestfs was built against, "
17711 "and the filesystem itself."
17712 msgstr ""
17713
17714 #. type: =head2
17715 #: ../src/guestfs-actions.pod:6888
17716 msgid "guestfs_txz_in"
17717 msgstr ""
17718
17719 #. type: verbatim
17720 #: ../src/guestfs-actions.pod:6890
17721 #, no-wrap
17722 msgid ""
17723 " int\n"
17724 " guestfs_txz_in (guestfs_h *g,\n"
17725 "                 const char *tarball,\n"
17726 "                 const char *directory);\n"
17727 "\n"
17728 msgstr ""
17729
17730 #. type: textblock
17731 #: ../src/guestfs-actions.pod:6895 ../fish/guestfish-actions.pod:4606
17732 msgid ""
17733 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
17734 "tar file) into C<directory>."
17735 msgstr ""
17736
17737 #. type: =head2
17738 #: ../src/guestfs-actions.pod:6902
17739 msgid "guestfs_txz_out"
17740 msgstr ""
17741
17742 #. type: verbatim
17743 #: ../src/guestfs-actions.pod:6904
17744 #, no-wrap
17745 msgid ""
17746 " int\n"
17747 " guestfs_txz_out (guestfs_h *g,\n"
17748 "                  const char *directory,\n"
17749 "                  const char *tarball);\n"
17750 "\n"
17751 msgstr ""
17752
17753 #. type: textblock
17754 #: ../src/guestfs-actions.pod:6909 ../fish/guestfish-actions.pod:4615
17755 msgid ""
17756 "This command packs the contents of C<directory> and downloads it to local "
17757 "file C<tarball> (as an xz compressed tar archive)."
17758 msgstr ""
17759
17760 #. type: =head2
17761 #: ../src/guestfs-actions.pod:6916
17762 msgid "guestfs_umask"
17763 msgstr ""
17764
17765 #. type: verbatim
17766 #: ../src/guestfs-actions.pod:6918
17767 #, no-wrap
17768 msgid ""
17769 " int\n"
17770 " guestfs_umask (guestfs_h *g,\n"
17771 "                int mask);\n"
17772 "\n"
17773 msgstr ""
17774
17775 #. type: textblock
17776 #: ../src/guestfs-actions.pod:6922 ../fish/guestfish-actions.pod:4624
17777 msgid ""
17778 "This function sets the mask used for creating new files and device nodes to "
17779 "C<mask & 0777>."
17780 msgstr ""
17781
17782 #. type: textblock
17783 #: ../src/guestfs-actions.pod:6925 ../fish/guestfish-actions.pod:4627
17784 msgid ""
17785 "Typical umask values would be C<022> which creates new files with "
17786 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
17787 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
17788 msgstr ""
17789
17790 #. type: textblock
17791 #: ../src/guestfs-actions.pod:6930 ../fish/guestfish-actions.pod:4632
17792 msgid ""
17793 "The default umask is C<022>.  This is important because it means that "
17794 "directories and device nodes will be created with C<0644> or C<0755> mode "
17795 "even if you specify C<0777>."
17796 msgstr ""
17797
17798 #. type: textblock
17799 #: ../src/guestfs-actions.pod:6934
17800 msgid ""
17801 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
17802 "C<guestfs_mkdir>."
17803 msgstr ""
17804
17805 #. type: textblock
17806 #: ../src/guestfs-actions.pod:6937 ../fish/guestfish-actions.pod:4639
17807 msgid "This call returns the previous umask."
17808 msgstr ""
17809
17810 #. type: =head2
17811 #: ../src/guestfs-actions.pod:6943
17812 msgid "guestfs_umount"
17813 msgstr ""
17814
17815 #. type: verbatim
17816 #: ../src/guestfs-actions.pod:6945
17817 #, no-wrap
17818 msgid ""
17819 " int\n"
17820 " guestfs_umount (guestfs_h *g,\n"
17821 "                 const char *pathordevice);\n"
17822 "\n"
17823 msgstr ""
17824
17825 #. type: textblock
17826 #: ../src/guestfs-actions.pod:6949 ../fish/guestfish-actions.pod:4647
17827 msgid ""
17828 "This unmounts the given filesystem.  The filesystem may be specified either "
17829 "by its mountpoint (path) or the device which contains the filesystem."
17830 msgstr ""
17831
17832 #. type: =head2
17833 #: ../src/guestfs-actions.pod:6957
17834 msgid "guestfs_umount_all"
17835 msgstr ""
17836
17837 #. type: verbatim
17838 #: ../src/guestfs-actions.pod:6959
17839 #, no-wrap
17840 msgid ""
17841 " int\n"
17842 " guestfs_umount_all (guestfs_h *g);\n"
17843 "\n"
17844 msgstr ""
17845
17846 #. type: textblock
17847 #: ../src/guestfs-actions.pod:6962 ../fish/guestfish-actions.pod:4657
17848 msgid "This unmounts all mounted filesystems."
17849 msgstr ""
17850
17851 #. type: textblock
17852 #: ../src/guestfs-actions.pod:6964 ../fish/guestfish-actions.pod:4659
17853 msgid "Some internal mounts are not unmounted by this call."
17854 msgstr ""
17855
17856 #. type: =head2
17857 #: ../src/guestfs-actions.pod:6970
17858 msgid "guestfs_upload"
17859 msgstr ""
17860
17861 #. type: verbatim
17862 #: ../src/guestfs-actions.pod:6972
17863 #, no-wrap
17864 msgid ""
17865 " int\n"
17866 " guestfs_upload (guestfs_h *g,\n"
17867 "                 const char *filename,\n"
17868 "                 const char *remotefilename);\n"
17869 "\n"
17870 msgstr ""
17871
17872 #. type: textblock
17873 #: ../src/guestfs-actions.pod:6977 ../src/guestfs-actions.pod:7001
17874 #: ../fish/guestfish-actions.pod:4665 ../fish/guestfish-actions.pod:4678
17875 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17876 msgstr ""
17877
17878 #. type: textblock
17879 #: ../src/guestfs-actions.pod:6982
17880 msgid "See also C<guestfs_download>."
17881 msgstr ""
17882
17883 #. type: =head2
17884 #: ../src/guestfs-actions.pod:6993
17885 msgid "guestfs_upload_offset"
17886 msgstr ""
17887
17888 #. type: verbatim
17889 #: ../src/guestfs-actions.pod:6995
17890 #, no-wrap
17891 msgid ""
17892 " int\n"
17893 " guestfs_upload_offset (guestfs_h *g,\n"
17894 "                        const char *filename,\n"
17895 "                        const char *remotefilename,\n"
17896 "                        int64_t offset);\n"
17897 "\n"
17898 msgstr ""
17899
17900 #. type: textblock
17901 #: ../src/guestfs-actions.pod:7004 ../fish/guestfish-actions.pod:4681
17902 msgid ""
17903 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
17904 "The intention is to overwrite parts of existing files or devices, although "
17905 "if a non-existant file is specified then it is created with a \"hole\" "
17906 "before C<offset>.  The size of the data written is implicit in the size of "
17907 "the source C<filename>."
17908 msgstr ""
17909
17910 #. type: textblock
17911 #: ../src/guestfs-actions.pod:7011
17912 msgid ""
17913 "Note that there is no limit on the amount of data that can be uploaded with "
17914 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
17915 "full amount unless an error occurs."
17916 msgstr ""
17917
17918 #. type: textblock
17919 #: ../src/guestfs-actions.pod:7016
17920 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
17921 msgstr ""
17922
17923 #. type: =head2
17924 #: ../src/guestfs-actions.pod:7027
17925 msgid "guestfs_utimens"
17926 msgstr ""
17927
17928 #. type: verbatim
17929 #: ../src/guestfs-actions.pod:7029
17930 #, no-wrap
17931 msgid ""
17932 " int\n"
17933 " guestfs_utimens (guestfs_h *g,\n"
17934 "                  const char *path,\n"
17935 "                  int64_t atsecs,\n"
17936 "                  int64_t atnsecs,\n"
17937 "                  int64_t mtsecs,\n"
17938 "                  int64_t mtnsecs);\n"
17939 "\n"
17940 msgstr ""
17941
17942 #. type: textblock
17943 #: ../src/guestfs-actions.pod:7037 ../fish/guestfish-actions.pod:4701
17944 msgid "This command sets the timestamps of a file with nanosecond precision."
17945 msgstr ""
17946
17947 #. type: textblock
17948 #: ../src/guestfs-actions.pod:7040 ../fish/guestfish-actions.pod:4704
17949 msgid ""
17950 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17951 "from the epoch."
17952 msgstr ""
17953
17954 #. type: textblock
17955 #: ../src/guestfs-actions.pod:7043 ../fish/guestfish-actions.pod:4707
17956 msgid ""
17957 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17958 "nanoseconds from the epoch."
17959 msgstr ""
17960
17961 #. type: textblock
17962 #: ../src/guestfs-actions.pod:7046 ../fish/guestfish-actions.pod:4710
17963 msgid ""
17964 "If the C<*nsecs> field contains the special value C<-1> then the "
17965 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
17966 "ignored in this case)."
17967 msgstr ""
17968
17969 #. type: textblock
17970 #: ../src/guestfs-actions.pod:7050 ../fish/guestfish-actions.pod:4714
17971 msgid ""
17972 "If the C<*nsecs> field contains the special value C<-2> then the "
17973 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
17974 "in this case)."
17975 msgstr ""
17976
17977 #. type: =head2
17978 #: ../src/guestfs-actions.pod:7058 ../src/guestfs-structs.pod:175
17979 msgid "guestfs_version"
17980 msgstr ""
17981
17982 #. type: verbatim
17983 #: ../src/guestfs-actions.pod:7060
17984 #, no-wrap
17985 msgid ""
17986 " struct guestfs_version *\n"
17987 " guestfs_version (guestfs_h *g);\n"
17988 "\n"
17989 msgstr ""
17990
17991 #. type: textblock
17992 #: ../src/guestfs-actions.pod:7063 ../fish/guestfish-actions.pod:4722
17993 msgid ""
17994 "Return the libguestfs version number that the program is linked against."
17995 msgstr ""
17996
17997 #. type: textblock
17998 #: ../src/guestfs-actions.pod:7066 ../fish/guestfish-actions.pod:4725
17999 msgid ""
18000 "Note that because of dynamic linking this is not necessarily the version of "
18001 "libguestfs that you compiled against.  You can compile the program, and then "
18002 "at runtime dynamically link against a completely different C<libguestfs.so> "
18003 "library."
18004 msgstr ""
18005
18006 #. type: textblock
18007 #: ../src/guestfs-actions.pod:7071 ../fish/guestfish-actions.pod:4730
18008 msgid ""
18009 "This call was added in version C<1.0.58>.  In previous versions of "
18010 "libguestfs there was no way to get the version number.  From C code you can "
18011 "use dynamic linker functions to find out if this symbol exists (if it "
18012 "doesn't, then it's an earlier version)."
18013 msgstr ""
18014
18015 #. type: textblock
18016 #: ../src/guestfs-actions.pod:7077 ../fish/guestfish-actions.pod:4736
18017 msgid ""
18018 "The call returns a structure with four elements.  The first three (C<major>, "
18019 "C<minor> and C<release>) are numbers and correspond to the usual version "
18020 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
18021 "but may be used for distro-specific information."
18022 msgstr ""
18023
18024 #. type: textblock
18025 #: ../src/guestfs-actions.pod:7083 ../fish/guestfish-actions.pod:4742
18026 msgid ""
18027 "To construct the original version string: C<$major.$minor.$release$extra>"
18028 msgstr ""
18029
18030 #. type: textblock
18031 #: ../src/guestfs-actions.pod:7086 ../fish/guestfish-actions.pod:4745
18032 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
18033 msgstr ""
18034
18035 #. type: textblock
18036 #: ../src/guestfs-actions.pod:7088
18037 msgid ""
18038 "I<Note:> Don't use this call to test for availability of features.  In "
18039 "enterprise distributions we backport features from later versions into "
18040 "earlier versions, making this an unreliable way to test for features.  Use "
18041 "C<guestfs_available> instead."
18042 msgstr ""
18043
18044 #. type: textblock
18045 #: ../src/guestfs-actions.pod:7094
18046 msgid ""
18047 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
18048 "error.  I<The caller must call C<guestfs_free_version> after use>."
18049 msgstr ""
18050
18051 #. type: textblock
18052 #: ../src/guestfs-actions.pod:7098
18053 msgid "(Added in 1.0.58)"
18054 msgstr ""
18055
18056 #. type: =head2
18057 #: ../src/guestfs-actions.pod:7100
18058 msgid "guestfs_vfs_label"
18059 msgstr ""
18060
18061 #. type: verbatim
18062 #: ../src/guestfs-actions.pod:7102
18063 #, no-wrap
18064 msgid ""
18065 " char *\n"
18066 " guestfs_vfs_label (guestfs_h *g,\n"
18067 "                    const char *device);\n"
18068 "\n"
18069 msgstr ""
18070
18071 #. type: textblock
18072 #: ../src/guestfs-actions.pod:7106 ../fish/guestfish-actions.pod:4757
18073 msgid "This returns the filesystem label of the filesystem on C<device>."
18074 msgstr ""
18075
18076 #. type: textblock
18077 #: ../src/guestfs-actions.pod:7109 ../fish/guestfish-actions.pod:4760
18078 msgid "If the filesystem is unlabeled, this returns the empty string."
18079 msgstr ""
18080
18081 #. type: textblock
18082 #: ../src/guestfs-actions.pod:7111
18083 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
18084 msgstr ""
18085
18086 #. type: textblock
18087 #: ../src/guestfs-actions.pod:7116 ../src/guestfs-actions.pod:7153
18088 msgid "(Added in 1.3.18)"
18089 msgstr ""
18090
18091 #. type: =head2
18092 #: ../src/guestfs-actions.pod:7118
18093 msgid "guestfs_vfs_type"
18094 msgstr ""
18095
18096 #. type: verbatim
18097 #: ../src/guestfs-actions.pod:7120
18098 #, no-wrap
18099 msgid ""
18100 " char *\n"
18101 " guestfs_vfs_type (guestfs_h *g,\n"
18102 "                   const char *device);\n"
18103 "\n"
18104 msgstr ""
18105
18106 #. type: textblock
18107 #: ../src/guestfs-actions.pod:7124 ../fish/guestfish-actions.pod:4768
18108 msgid ""
18109 "This command gets the filesystem type corresponding to the filesystem on "
18110 "C<device>."
18111 msgstr ""
18112
18113 #. type: textblock
18114 #: ../src/guestfs-actions.pod:7127 ../fish/guestfish-actions.pod:4771
18115 msgid ""
18116 "For most filesystems, the result is the name of the Linux VFS module which "
18117 "would be used to mount this filesystem if you mounted it without specifying "
18118 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
18119 msgstr ""
18120
18121 #. type: =head2
18122 #: ../src/guestfs-actions.pod:7137
18123 msgid "guestfs_vfs_uuid"
18124 msgstr ""
18125
18126 #. type: verbatim
18127 #: ../src/guestfs-actions.pod:7139
18128 #, no-wrap
18129 msgid ""
18130 " char *\n"
18131 " guestfs_vfs_uuid (guestfs_h *g,\n"
18132 "                   const char *device);\n"
18133 "\n"
18134 msgstr ""
18135
18136 #. type: textblock
18137 #: ../src/guestfs-actions.pod:7143 ../fish/guestfish-actions.pod:4780
18138 msgid "This returns the filesystem UUID of the filesystem on C<device>."
18139 msgstr ""
18140
18141 #. type: textblock
18142 #: ../src/guestfs-actions.pod:7146 ../fish/guestfish-actions.pod:4783
18143 msgid "If the filesystem does not have a UUID, this returns the empty string."
18144 msgstr ""
18145
18146 #. type: textblock
18147 #: ../src/guestfs-actions.pod:7148
18148 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
18149 msgstr ""
18150
18151 #. type: =head2
18152 #: ../src/guestfs-actions.pod:7155
18153 msgid "guestfs_vg_activate"
18154 msgstr ""
18155
18156 #. type: verbatim
18157 #: ../src/guestfs-actions.pod:7157
18158 #, no-wrap
18159 msgid ""
18160 " int\n"
18161 " guestfs_vg_activate (guestfs_h *g,\n"
18162 "                      int activate,\n"
18163 "                      char *const *volgroups);\n"
18164 "\n"
18165 msgstr ""
18166
18167 #. type: textblock
18168 #: ../src/guestfs-actions.pod:7162 ../fish/guestfish-actions.pod:4791
18169 msgid ""
18170 "This command activates or (if C<activate> is false) deactivates all logical "
18171 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
18172 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
18173 "deactivated, then those devices disappear."
18174 msgstr ""
18175
18176 #. type: textblock
18177 #: ../src/guestfs-actions.pod:7168 ../fish/guestfish-actions.pod:4797
18178 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
18179 msgstr ""
18180
18181 #. type: textblock
18182 #: ../src/guestfs-actions.pod:7170 ../fish/guestfish-actions.pod:4799
18183 msgid ""
18184 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
18185 "activated or deactivated."
18186 msgstr ""
18187
18188 #. type: =head2
18189 #: ../src/guestfs-actions.pod:7177
18190 msgid "guestfs_vg_activate_all"
18191 msgstr ""
18192
18193 #. type: verbatim
18194 #: ../src/guestfs-actions.pod:7179
18195 #, no-wrap
18196 msgid ""
18197 " int\n"
18198 " guestfs_vg_activate_all (guestfs_h *g,\n"
18199 "                          int activate);\n"
18200 "\n"
18201 msgstr ""
18202
18203 #. type: textblock
18204 #: ../src/guestfs-actions.pod:7183 ../fish/guestfish-actions.pod:4806
18205 msgid ""
18206 "This command activates or (if C<activate> is false) deactivates all logical "
18207 "volumes in all volume groups.  If activated, then they are made known to the "
18208 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
18209 "those devices disappear."
18210 msgstr ""
18211
18212 #. type: textblock
18213 #: ../src/guestfs-actions.pod:7189 ../fish/guestfish-actions.pod:4812
18214 msgid "This command is the same as running C<vgchange -a y|n>"
18215 msgstr ""
18216
18217 #. type: =head2
18218 #: ../src/guestfs-actions.pod:7195
18219 msgid "guestfs_vgcreate"
18220 msgstr ""
18221
18222 #. type: verbatim
18223 #: ../src/guestfs-actions.pod:7197
18224 #, no-wrap
18225 msgid ""
18226 " int\n"
18227 " guestfs_vgcreate (guestfs_h *g,\n"
18228 "                   const char *volgroup,\n"
18229 "                   char *const *physvols);\n"
18230 "\n"
18231 msgstr ""
18232
18233 #. type: textblock
18234 #: ../src/guestfs-actions.pod:7202 ../fish/guestfish-actions.pod:4818
18235 msgid ""
18236 "This creates an LVM volume group called C<volgroup> from the non-empty list "
18237 "of physical volumes C<physvols>."
18238 msgstr ""
18239
18240 #. type: =head2
18241 #: ../src/guestfs-actions.pod:7209
18242 msgid "guestfs_vglvuuids"
18243 msgstr ""
18244
18245 #. type: verbatim
18246 #: ../src/guestfs-actions.pod:7211
18247 #, no-wrap
18248 msgid ""
18249 " char **\n"
18250 " guestfs_vglvuuids (guestfs_h *g,\n"
18251 "                    const char *vgname);\n"
18252 "\n"
18253 msgstr ""
18254
18255 #. type: textblock
18256 #: ../src/guestfs-actions.pod:7215 ../fish/guestfish-actions.pod:4825
18257 msgid ""
18258 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
18259 "volumes created in this volume group."
18260 msgstr ""
18261
18262 #. type: textblock
18263 #: ../src/guestfs-actions.pod:7218
18264 msgid ""
18265 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
18266 "associate logical volumes and volume groups."
18267 msgstr ""
18268
18269 #. type: textblock
18270 #: ../src/guestfs-actions.pod:7221
18271 msgid "See also C<guestfs_vgpvuuids>."
18272 msgstr ""
18273
18274 #. type: =head2
18275 #: ../src/guestfs-actions.pod:7229
18276 msgid "guestfs_vgpvuuids"
18277 msgstr ""
18278
18279 #. type: verbatim
18280 #: ../src/guestfs-actions.pod:7231
18281 #, no-wrap
18282 msgid ""
18283 " char **\n"
18284 " guestfs_vgpvuuids (guestfs_h *g,\n"
18285 "                    const char *vgname);\n"
18286 "\n"
18287 msgstr ""
18288
18289 #. type: textblock
18290 #: ../src/guestfs-actions.pod:7235 ../fish/guestfish-actions.pod:4837
18291 msgid ""
18292 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
18293 "volumes that this volume group resides on."
18294 msgstr ""
18295
18296 #. type: textblock
18297 #: ../src/guestfs-actions.pod:7238
18298 msgid ""
18299 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
18300 "associate physical volumes and volume groups."
18301 msgstr ""
18302
18303 #. type: textblock
18304 #: ../src/guestfs-actions.pod:7241
18305 msgid "See also C<guestfs_vglvuuids>."
18306 msgstr ""
18307
18308 #. type: =head2
18309 #: ../src/guestfs-actions.pod:7249
18310 msgid "guestfs_vgremove"
18311 msgstr ""
18312
18313 #. type: verbatim
18314 #: ../src/guestfs-actions.pod:7251
18315 #, no-wrap
18316 msgid ""
18317 " int\n"
18318 " guestfs_vgremove (guestfs_h *g,\n"
18319 "                   const char *vgname);\n"
18320 "\n"
18321 msgstr ""
18322
18323 #. type: textblock
18324 #: ../src/guestfs-actions.pod:7255 ../fish/guestfish-actions.pod:4849
18325 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
18326 msgstr ""
18327
18328 #. type: textblock
18329 #: ../src/guestfs-actions.pod:7257 ../fish/guestfish-actions.pod:4851
18330 msgid ""
18331 "This also forcibly removes all logical volumes in the volume group (if any)."
18332 msgstr ""
18333
18334 #. type: =head2
18335 #: ../src/guestfs-actions.pod:7264
18336 msgid "guestfs_vgrename"
18337 msgstr ""
18338
18339 #. type: verbatim
18340 #: ../src/guestfs-actions.pod:7266
18341 #, no-wrap
18342 msgid ""
18343 " int\n"
18344 " guestfs_vgrename (guestfs_h *g,\n"
18345 "                   const char *volgroup,\n"
18346 "                   const char *newvolgroup);\n"
18347 "\n"
18348 msgstr ""
18349
18350 #. type: textblock
18351 #: ../src/guestfs-actions.pod:7271 ../fish/guestfish-actions.pod:4858
18352 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
18353 msgstr ""
18354
18355 #. type: =head2
18356 #: ../src/guestfs-actions.pod:7277
18357 msgid "guestfs_vgs"
18358 msgstr ""
18359
18360 #. type: verbatim
18361 #: ../src/guestfs-actions.pod:7279
18362 #, no-wrap
18363 msgid ""
18364 " char **\n"
18365 " guestfs_vgs (guestfs_h *g);\n"
18366 "\n"
18367 msgstr ""
18368
18369 #. type: textblock
18370 #: ../src/guestfs-actions.pod:7282 ../fish/guestfish-actions.pod:4864
18371 msgid ""
18372 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18373 "> command."
18374 msgstr ""
18375
18376 #. type: textblock
18377 #: ../src/guestfs-actions.pod:7285 ../fish/guestfish-actions.pod:4867
18378 msgid ""
18379 "This returns a list of just the volume group names that were detected (eg. "
18380 "C<VolGroup00>)."
18381 msgstr ""
18382
18383 #. type: textblock
18384 #: ../src/guestfs-actions.pod:7288
18385 msgid "See also C<guestfs_vgs_full>."
18386 msgstr ""
18387
18388 #. type: =head2
18389 #: ../src/guestfs-actions.pod:7296
18390 msgid "guestfs_vgs_full"
18391 msgstr ""
18392
18393 #. type: verbatim
18394 #: ../src/guestfs-actions.pod:7298
18395 #, no-wrap
18396 msgid ""
18397 " struct guestfs_lvm_vg_list *\n"
18398 " guestfs_vgs_full (guestfs_h *g);\n"
18399 "\n"
18400 msgstr ""
18401
18402 #. type: textblock
18403 #: ../src/guestfs-actions.pod:7301 ../fish/guestfish-actions.pod:4876
18404 msgid ""
18405 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18406 "> command.  The \"full\" version includes all fields."
18407 msgstr ""
18408
18409 #. type: textblock
18410 #: ../src/guestfs-actions.pod:7304
18411 msgid ""
18412 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
18413 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
18414 msgstr ""
18415
18416 #. type: =head2
18417 #: ../src/guestfs-actions.pod:7310
18418 msgid "guestfs_vgscan"
18419 msgstr ""
18420
18421 #. type: verbatim
18422 #: ../src/guestfs-actions.pod:7312
18423 #, no-wrap
18424 msgid ""
18425 " int\n"
18426 " guestfs_vgscan (guestfs_h *g);\n"
18427 "\n"
18428 msgstr ""
18429
18430 #. type: textblock
18431 #: ../src/guestfs-actions.pod:7315 ../fish/guestfish-actions.pod:4883
18432 msgid ""
18433 "This rescans all block devices and rebuilds the list of LVM physical "
18434 "volumes, volume groups and logical volumes."
18435 msgstr ""
18436
18437 #. type: =head2
18438 #: ../src/guestfs-actions.pod:7322
18439 msgid "guestfs_vguuid"
18440 msgstr ""
18441
18442 #. type: verbatim
18443 #: ../src/guestfs-actions.pod:7324
18444 #, no-wrap
18445 msgid ""
18446 " char *\n"
18447 " guestfs_vguuid (guestfs_h *g,\n"
18448 "                 const char *vgname);\n"
18449 "\n"
18450 msgstr ""
18451
18452 #. type: textblock
18453 #: ../src/guestfs-actions.pod:7328 ../fish/guestfish-actions.pod:4890
18454 msgid "This command returns the UUID of the LVM VG named C<vgname>."
18455 msgstr ""
18456
18457 #. type: =head2
18458 #: ../src/guestfs-actions.pod:7335
18459 msgid "guestfs_wait_ready"
18460 msgstr ""
18461
18462 #. type: verbatim
18463 #: ../src/guestfs-actions.pod:7337
18464 #, no-wrap
18465 msgid ""
18466 " int\n"
18467 " guestfs_wait_ready (guestfs_h *g);\n"
18468 "\n"
18469 msgstr ""
18470
18471 #. type: textblock
18472 #: ../src/guestfs-actions.pod:7340
18473 msgid "This function is a no op."
18474 msgstr ""
18475
18476 #. type: textblock
18477 #: ../src/guestfs-actions.pod:7342
18478 msgid ""
18479 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
18480 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
18481 "is no longer necessary because C<guestfs_launch> now does the waiting."
18482 msgstr ""
18483
18484 #. type: textblock
18485 #: ../src/guestfs-actions.pod:7347
18486 msgid ""
18487 "If you see any calls to this function in code then you can just remove them, "
18488 "unless you want to retain compatibility with older versions of the API."
18489 msgstr ""
18490
18491 #. type: textblock
18492 #: ../src/guestfs-actions.pod:7353
18493 msgid ""
18494 "This function is deprecated.  In new code, use the C<launch> call instead."
18495 msgstr ""
18496
18497 #. type: =head2
18498 #: ../src/guestfs-actions.pod:7362
18499 msgid "guestfs_wc_c"
18500 msgstr ""
18501
18502 #. type: verbatim
18503 #: ../src/guestfs-actions.pod:7364
18504 #, no-wrap
18505 msgid ""
18506 " int\n"
18507 " guestfs_wc_c (guestfs_h *g,\n"
18508 "               const char *path);\n"
18509 "\n"
18510 msgstr ""
18511
18512 #. type: textblock
18513 #: ../src/guestfs-actions.pod:7368 ../fish/guestfish-actions.pod:4896
18514 msgid ""
18515 "This command counts the characters in a file, using the C<wc -c> external "
18516 "command."
18517 msgstr ""
18518
18519 #. type: =head2
18520 #: ../src/guestfs-actions.pod:7375
18521 msgid "guestfs_wc_l"
18522 msgstr ""
18523
18524 #. type: verbatim
18525 #: ../src/guestfs-actions.pod:7377
18526 #, no-wrap
18527 msgid ""
18528 " int\n"
18529 " guestfs_wc_l (guestfs_h *g,\n"
18530 "               const char *path);\n"
18531 "\n"
18532 msgstr ""
18533
18534 #. type: textblock
18535 #: ../src/guestfs-actions.pod:7381 ../fish/guestfish-actions.pod:4903
18536 msgid ""
18537 "This command counts the lines in a file, using the C<wc -l> external command."
18538 msgstr ""
18539
18540 #. type: =head2
18541 #: ../src/guestfs-actions.pod:7388
18542 msgid "guestfs_wc_w"
18543 msgstr ""
18544
18545 #. type: verbatim
18546 #: ../src/guestfs-actions.pod:7390
18547 #, no-wrap
18548 msgid ""
18549 " int\n"
18550 " guestfs_wc_w (guestfs_h *g,\n"
18551 "               const char *path);\n"
18552 "\n"
18553 msgstr ""
18554
18555 #. type: textblock
18556 #: ../src/guestfs-actions.pod:7394 ../fish/guestfish-actions.pod:4910
18557 msgid ""
18558 "This command counts the words in a file, using the C<wc -w> external command."
18559 msgstr ""
18560
18561 #. type: =head2
18562 #: ../src/guestfs-actions.pod:7401
18563 msgid "guestfs_write"
18564 msgstr ""
18565
18566 #. type: verbatim
18567 #: ../src/guestfs-actions.pod:7403
18568 #, no-wrap
18569 msgid ""
18570 " int\n"
18571 " guestfs_write (guestfs_h *g,\n"
18572 "                const char *path,\n"
18573 "                const char *content,\n"
18574 "                size_t content_size);\n"
18575 "\n"
18576 msgstr ""
18577
18578 #. type: textblock
18579 #: ../src/guestfs-actions.pod:7409 ../fish/guestfish-actions.pod:4917
18580 msgid ""
18581 "This call creates a file called C<path>.  The content of the file is the "
18582 "string C<content> (which can contain any 8 bit data)."
18583 msgstr ""
18584
18585 #. type: =head2
18586 #: ../src/guestfs-actions.pod:7419
18587 msgid "guestfs_write_file"
18588 msgstr ""
18589
18590 #. type: verbatim
18591 #: ../src/guestfs-actions.pod:7421
18592 #, no-wrap
18593 msgid ""
18594 " int\n"
18595 " guestfs_write_file (guestfs_h *g,\n"
18596 "                     const char *path,\n"
18597 "                     const char *content,\n"
18598 "                     int size);\n"
18599 "\n"
18600 msgstr ""
18601
18602 #. type: textblock
18603 #: ../src/guestfs-actions.pod:7427 ../fish/guestfish-actions.pod:4927
18604 msgid ""
18605 "This call creates a file called C<path>.  The contents of the file is the "
18606 "string C<content> (which can contain any 8 bit data), with length C<size>."
18607 msgstr ""
18608
18609 #. type: textblock
18610 #: ../src/guestfs-actions.pod:7431 ../fish/guestfish-actions.pod:4931
18611 msgid ""
18612 "As a special case, if C<size> is C<0> then the length is calculated using "
18613 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
18614 msgstr ""
18615
18616 #. type: textblock
18617 #: ../src/guestfs-actions.pod:7435 ../fish/guestfish-actions.pod:4935
18618 msgid ""
18619 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
18620 "I<not> work, even if the length is specified."
18621 msgstr ""
18622
18623 #. type: textblock
18624 #: ../src/guestfs-actions.pod:7443 ../fish/guestfish-actions.pod:4941
18625 msgid ""
18626 "This function is deprecated.  In new code, use the C<write> call instead."
18627 msgstr ""
18628
18629 #. type: =head2
18630 #: ../src/guestfs-actions.pod:7452
18631 msgid "guestfs_zegrep"
18632 msgstr ""
18633
18634 #. type: verbatim
18635 #: ../src/guestfs-actions.pod:7454
18636 #, no-wrap
18637 msgid ""
18638 " char **\n"
18639 " guestfs_zegrep (guestfs_h *g,\n"
18640 "                 const char *regex,\n"
18641 "                 const char *path);\n"
18642 "\n"
18643 msgstr ""
18644
18645 #. type: textblock
18646 #: ../src/guestfs-actions.pod:7459 ../fish/guestfish-actions.pod:4952
18647 msgid ""
18648 "This calls the external C<zegrep> program and returns the matching lines."
18649 msgstr ""
18650
18651 #. type: =head2
18652 #: ../src/guestfs-actions.pod:7471
18653 msgid "guestfs_zegrepi"
18654 msgstr ""
18655
18656 #. type: verbatim
18657 #: ../src/guestfs-actions.pod:7473
18658 #, no-wrap
18659 msgid ""
18660 " char **\n"
18661 " guestfs_zegrepi (guestfs_h *g,\n"
18662 "                  const char *regex,\n"
18663 "                  const char *path);\n"
18664 "\n"
18665 msgstr ""
18666
18667 #. type: textblock
18668 #: ../src/guestfs-actions.pod:7478 ../fish/guestfish-actions.pod:4962
18669 msgid ""
18670 "This calls the external C<zegrep -i> program and returns the matching lines."
18671 msgstr ""
18672
18673 #. type: =head2
18674 #: ../src/guestfs-actions.pod:7490
18675 msgid "guestfs_zero"
18676 msgstr ""
18677
18678 #. type: verbatim
18679 #: ../src/guestfs-actions.pod:7492
18680 #, no-wrap
18681 msgid ""
18682 " int\n"
18683 " guestfs_zero (guestfs_h *g,\n"
18684 "               const char *device);\n"
18685 "\n"
18686 msgstr ""
18687
18688 #. type: textblock
18689 #: ../src/guestfs-actions.pod:7496 ../fish/guestfish-actions.pod:4972
18690 msgid "This command writes zeroes over the first few blocks of C<device>."
18691 msgstr ""
18692
18693 #. type: textblock
18694 #: ../src/guestfs-actions.pod:7498 ../fish/guestfish-actions.pod:4974
18695 msgid ""
18696 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
18697 "securely wipe the device).  It should be sufficient to remove any partition "
18698 "tables, filesystem superblocks and so on."
18699 msgstr ""
18700
18701 #. type: textblock
18702 #: ../src/guestfs-actions.pod:7502
18703 msgid ""
18704 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
18705 "C<guestfs_is_zero_device>"
18706 msgstr ""
18707
18708 #. type: =head2
18709 #: ../src/guestfs-actions.pod:7514
18710 msgid "guestfs_zero_device"
18711 msgstr ""
18712
18713 #. type: verbatim
18714 #: ../src/guestfs-actions.pod:7516
18715 #, no-wrap
18716 msgid ""
18717 " int\n"
18718 " guestfs_zero_device (guestfs_h *g,\n"
18719 "                      const char *device);\n"
18720 "\n"
18721 msgstr ""
18722
18723 #. type: textblock
18724 #: ../src/guestfs-actions.pod:7520
18725 msgid ""
18726 "This command writes zeroes over the entire C<device>.  Compare with "
18727 "C<guestfs_zero> which just zeroes the first few blocks of a device."
18728 msgstr ""
18729
18730 #. type: textblock
18731 #: ../src/guestfs-actions.pod:7534
18732 msgid "(Added in 1.3.1)"
18733 msgstr ""
18734
18735 #. type: =head2
18736 #: ../src/guestfs-actions.pod:7536
18737 msgid "guestfs_zerofree"
18738 msgstr ""
18739
18740 #. type: verbatim
18741 #: ../src/guestfs-actions.pod:7538
18742 #, no-wrap
18743 msgid ""
18744 " int\n"
18745 " guestfs_zerofree (guestfs_h *g,\n"
18746 "                   const char *device);\n"
18747 "\n"
18748 msgstr ""
18749
18750 #. type: textblock
18751 #: ../src/guestfs-actions.pod:7542 ../fish/guestfish-actions.pod:4996
18752 msgid ""
18753 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
18754 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
18755 "possible to compress the filesystem more effectively."
18756 msgstr ""
18757
18758 #. type: textblock
18759 #: ../src/guestfs-actions.pod:7547 ../fish/guestfish-actions.pod:5001
18760 msgid "You should B<not> run this program if the filesystem is mounted."
18761 msgstr ""
18762
18763 #. type: textblock
18764 #: ../src/guestfs-actions.pod:7550 ../fish/guestfish-actions.pod:5004
18765 msgid ""
18766 "It is possible that using this program can damage the filesystem or data on "
18767 "the filesystem."
18768 msgstr ""
18769
18770 #. type: =head2
18771 #: ../src/guestfs-actions.pod:7557
18772 msgid "guestfs_zfgrep"
18773 msgstr ""
18774
18775 #. type: verbatim
18776 #: ../src/guestfs-actions.pod:7559
18777 #, no-wrap
18778 msgid ""
18779 " char **\n"
18780 " guestfs_zfgrep (guestfs_h *g,\n"
18781 "                 const char *pattern,\n"
18782 "                 const char *path);\n"
18783 "\n"
18784 msgstr ""
18785
18786 #. type: textblock
18787 #: ../src/guestfs-actions.pod:7564 ../fish/guestfish-actions.pod:5011
18788 msgid ""
18789 "This calls the external C<zfgrep> program and returns the matching lines."
18790 msgstr ""
18791
18792 #. type: =head2
18793 #: ../src/guestfs-actions.pod:7576
18794 msgid "guestfs_zfgrepi"
18795 msgstr ""
18796
18797 #. type: verbatim
18798 #: ../src/guestfs-actions.pod:7578
18799 #, no-wrap
18800 msgid ""
18801 " char **\n"
18802 " guestfs_zfgrepi (guestfs_h *g,\n"
18803 "                  const char *pattern,\n"
18804 "                  const char *path);\n"
18805 "\n"
18806 msgstr ""
18807
18808 #. type: textblock
18809 #: ../src/guestfs-actions.pod:7583 ../fish/guestfish-actions.pod:5021
18810 msgid ""
18811 "This calls the external C<zfgrep -i> program and returns the matching lines."
18812 msgstr ""
18813
18814 #. type: =head2
18815 #: ../src/guestfs-actions.pod:7595
18816 msgid "guestfs_zfile"
18817 msgstr ""
18818
18819 #. type: verbatim
18820 #: ../src/guestfs-actions.pod:7597
18821 #, no-wrap
18822 msgid ""
18823 " char *\n"
18824 " guestfs_zfile (guestfs_h *g,\n"
18825 "                const char *meth,\n"
18826 "                const char *path);\n"
18827 "\n"
18828 msgstr ""
18829
18830 #. type: textblock
18831 #: ../src/guestfs-actions.pod:7602 ../fish/guestfish-actions.pod:5031
18832 msgid ""
18833 "This command runs C<file> after first decompressing C<path> using C<method>."
18834 msgstr ""
18835
18836 #. type: textblock
18837 #: ../src/guestfs-actions.pod:7605 ../fish/guestfish-actions.pod:5034
18838 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
18839 msgstr ""
18840
18841 #. type: textblock
18842 #: ../src/guestfs-actions.pod:7607
18843 msgid ""
18844 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
18845 "files."
18846 msgstr ""
18847
18848 #. type: textblock
18849 #: ../src/guestfs-actions.pod:7613 ../fish/guestfish-actions.pod:5039
18850 msgid ""
18851 "This function is deprecated.  In new code, use the C<file> call instead."
18852 msgstr ""
18853
18854 #. type: =head2
18855 #: ../src/guestfs-actions.pod:7622
18856 msgid "guestfs_zgrep"
18857 msgstr ""
18858
18859 #. type: verbatim
18860 #: ../src/guestfs-actions.pod:7624
18861 #, no-wrap
18862 msgid ""
18863 " char **\n"
18864 " guestfs_zgrep (guestfs_h *g,\n"
18865 "                const char *regex,\n"
18866 "                const char *path);\n"
18867 "\n"
18868 msgstr ""
18869
18870 #. type: textblock
18871 #: ../src/guestfs-actions.pod:7629 ../fish/guestfish-actions.pod:5050
18872 msgid ""
18873 "This calls the external C<zgrep> program and returns the matching lines."
18874 msgstr ""
18875
18876 #. type: =head2
18877 #: ../src/guestfs-actions.pod:7641
18878 msgid "guestfs_zgrepi"
18879 msgstr ""
18880
18881 #. type: verbatim
18882 #: ../src/guestfs-actions.pod:7643
18883 #, no-wrap
18884 msgid ""
18885 " char **\n"
18886 " guestfs_zgrepi (guestfs_h *g,\n"
18887 "                 const char *regex,\n"
18888 "                 const char *path);\n"
18889 "\n"
18890 msgstr ""
18891
18892 #. type: textblock
18893 #: ../src/guestfs-actions.pod:7648 ../fish/guestfish-actions.pod:5060
18894 msgid ""
18895 "This calls the external C<zgrep -i> program and returns the matching lines."
18896 msgstr ""
18897
18898 #. type: =item
18899 #: ../src/guestfs-availability.pod:3
18900 msgid "B<augeas>"
18901 msgstr ""
18902
18903 #. type: textblock
18904 #: ../src/guestfs-availability.pod:5
18905 msgid ""
18906 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
18907 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
18908 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
18909 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
18910 "L</guestfs_aug_save> L</guestfs_aug_set>"
18911 msgstr ""
18912
18913 #. type: =item
18914 #: ../src/guestfs-availability.pod:21
18915 msgid "B<inotify>"
18916 msgstr ""
18917
18918 #. type: textblock
18919 #: ../src/guestfs-availability.pod:23
18920 msgid ""
18921 "The following functions: L</guestfs_inotify_add_watch> L</"
18922 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
18923 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
18924 msgstr ""
18925
18926 #. type: =item
18927 #: ../src/guestfs-availability.pod:31
18928 msgid "B<linuxfsuuid>"
18929 msgstr ""
18930
18931 #. type: textblock
18932 #: ../src/guestfs-availability.pod:33
18933 msgid ""
18934 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
18935 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
18936 msgstr ""
18937
18938 #. type: =item
18939 #: ../src/guestfs-availability.pod:40
18940 msgid "B<linuxmodules>"
18941 msgstr ""
18942
18943 #. type: textblock
18944 #: ../src/guestfs-availability.pod:42
18945 msgid "The following functions: L</guestfs_modprobe>"
18946 msgstr ""
18947
18948 #. type: =item
18949 #: ../src/guestfs-availability.pod:45
18950 msgid "B<linuxxattrs>"
18951 msgstr ""
18952
18953 #. type: textblock
18954 #: ../src/guestfs-availability.pod:47
18955 msgid ""
18956 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
18957 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
18958 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
18959 "guestfs_setxattr>"
18960 msgstr ""
18961
18962 #. type: =item
18963 #: ../src/guestfs-availability.pod:58
18964 msgid "B<luks>"
18965 msgstr ""
18966
18967 #. type: textblock
18968 #: ../src/guestfs-availability.pod:60
18969 msgid ""
18970 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
18971 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
18972 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
18973 msgstr ""
18974
18975 #. type: =item
18976 #: ../src/guestfs-availability.pod:69
18977 msgid "B<lvm2>"
18978 msgstr ""
18979
18980 #. type: textblock
18981 #: ../src/guestfs-availability.pod:71
18982 msgid ""
18983 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
18984 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
18985 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
18986 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
18987 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
18988 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
18989 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
18990 msgstr ""
18991
18992 #. type: =item
18993 #: ../src/guestfs-availability.pod:94
18994 msgid "B<mknod>"
18995 msgstr ""
18996
18997 #. type: textblock
18998 #: ../src/guestfs-availability.pod:96
18999 msgid ""
19000 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
19001 "guestfs_mknod_b> L</guestfs_mknod_c>"
19002 msgstr ""
19003
19004 #. type: =item
19005 #: ../src/guestfs-availability.pod:102
19006 msgid "B<ntfs3g>"
19007 msgstr ""
19008
19009 #. type: textblock
19010 #: ../src/guestfs-availability.pod:104
19011 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
19012 msgstr ""
19013
19014 #. type: =item
19015 #: ../src/guestfs-availability.pod:107
19016 msgid "B<ntfsprogs>"
19017 msgstr ""
19018
19019 #. type: textblock
19020 #: ../src/guestfs-availability.pod:109
19021 msgid ""
19022 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
19023 msgstr ""
19024
19025 #. type: =item
19026 #: ../src/guestfs-availability.pod:113
19027 msgid "B<realpath>"
19028 msgstr ""
19029
19030 #. type: textblock
19031 #: ../src/guestfs-availability.pod:115
19032 msgid "The following functions: L</guestfs_realpath>"
19033 msgstr ""
19034
19035 #. type: =item
19036 #: ../src/guestfs-availability.pod:118
19037 msgid "B<scrub>"
19038 msgstr ""
19039
19040 #. type: textblock
19041 #: ../src/guestfs-availability.pod:120
19042 msgid ""
19043 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
19044 "guestfs_scrub_freespace>"
19045 msgstr ""
19046
19047 #. type: =item
19048 #: ../src/guestfs-availability.pod:125
19049 msgid "B<selinux>"
19050 msgstr ""
19051
19052 #. type: textblock
19053 #: ../src/guestfs-availability.pod:127
19054 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
19055 msgstr ""
19056
19057 #. type: =item
19058 #: ../src/guestfs-availability.pod:131
19059 msgid "B<xz>"
19060 msgstr ""
19061
19062 #. type: textblock
19063 #: ../src/guestfs-availability.pod:133
19064 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
19065 msgstr ""
19066
19067 #. type: =item
19068 #: ../src/guestfs-availability.pod:137
19069 msgid "B<zerofree>"
19070 msgstr ""
19071
19072 #. type: textblock
19073 #: ../src/guestfs-availability.pod:139
19074 msgid "The following functions: L</guestfs_zerofree>"
19075 msgstr ""
19076
19077 #. type: =head2
19078 #: ../src/guestfs-structs.pod:1
19079 msgid "guestfs_int_bool"
19080 msgstr ""
19081
19082 #. type: verbatim
19083 #: ../src/guestfs-structs.pod:3
19084 #, no-wrap
19085 msgid ""
19086 " struct guestfs_int_bool {\n"
19087 "   int32_t i;\n"
19088 "   int32_t b;\n"
19089 " };\n"
19090 " \n"
19091 msgstr ""
19092
19093 #. type: verbatim
19094 #: ../src/guestfs-structs.pod:8
19095 #, no-wrap
19096 msgid ""
19097 " struct guestfs_int_bool_list {\n"
19098 "   uint32_t len; /* Number of elements in list. */\n"
19099 "   struct guestfs_int_bool *val; /* Elements. */\n"
19100 " };\n"
19101 " \n"
19102 msgstr ""
19103
19104 #. type: verbatim
19105 #: ../src/guestfs-structs.pod:13
19106 #, no-wrap
19107 msgid ""
19108 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
19109 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
19110 "\n"
19111 msgstr ""
19112
19113 #. type: =head2
19114 #: ../src/guestfs-structs.pod:16
19115 msgid "guestfs_lvm_pv"
19116 msgstr ""
19117
19118 #. type: verbatim
19119 #: ../src/guestfs-structs.pod:18
19120 #, no-wrap
19121 msgid ""
19122 " struct guestfs_lvm_pv {\n"
19123 "   char *pv_name;\n"
19124 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
19125 "   char pv_uuid[32];\n"
19126 "   char *pv_fmt;\n"
19127 "   uint64_t pv_size;\n"
19128 "   uint64_t dev_size;\n"
19129 "   uint64_t pv_free;\n"
19130 "   uint64_t pv_used;\n"
19131 "   char *pv_attr;\n"
19132 "   int64_t pv_pe_count;\n"
19133 "   int64_t pv_pe_alloc_count;\n"
19134 "   char *pv_tags;\n"
19135 "   uint64_t pe_start;\n"
19136 "   int64_t pv_mda_count;\n"
19137 "   uint64_t pv_mda_free;\n"
19138 " };\n"
19139 " \n"
19140 msgstr ""
19141
19142 #. type: verbatim
19143 #: ../src/guestfs-structs.pod:36
19144 #, no-wrap
19145 msgid ""
19146 " struct guestfs_lvm_pv_list {\n"
19147 "   uint32_t len; /* Number of elements in list. */\n"
19148 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
19149 " };\n"
19150 " \n"
19151 msgstr ""
19152
19153 #. type: verbatim
19154 #: ../src/guestfs-structs.pod:41
19155 #, no-wrap
19156 msgid ""
19157 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
19158 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
19159 "\n"
19160 msgstr ""
19161
19162 #. type: =head2
19163 #: ../src/guestfs-structs.pod:44
19164 msgid "guestfs_lvm_vg"
19165 msgstr ""
19166
19167 #. type: verbatim
19168 #: ../src/guestfs-structs.pod:46
19169 #, no-wrap
19170 msgid ""
19171 " struct guestfs_lvm_vg {\n"
19172 "   char *vg_name;\n"
19173 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
19174 "   char vg_uuid[32];\n"
19175 "   char *vg_fmt;\n"
19176 "   char *vg_attr;\n"
19177 "   uint64_t vg_size;\n"
19178 "   uint64_t vg_free;\n"
19179 "   char *vg_sysid;\n"
19180 "   uint64_t vg_extent_size;\n"
19181 "   int64_t vg_extent_count;\n"
19182 "   int64_t vg_free_count;\n"
19183 "   int64_t max_lv;\n"
19184 "   int64_t max_pv;\n"
19185 "   int64_t pv_count;\n"
19186 "   int64_t lv_count;\n"
19187 "   int64_t snap_count;\n"
19188 "   int64_t vg_seqno;\n"
19189 "   char *vg_tags;\n"
19190 "   int64_t vg_mda_count;\n"
19191 "   uint64_t vg_mda_free;\n"
19192 " };\n"
19193 " \n"
19194 msgstr ""
19195
19196 #. type: verbatim
19197 #: ../src/guestfs-structs.pod:69
19198 #, no-wrap
19199 msgid ""
19200 " struct guestfs_lvm_vg_list {\n"
19201 "   uint32_t len; /* Number of elements in list. */\n"
19202 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
19203 " };\n"
19204 " \n"
19205 msgstr ""
19206
19207 #. type: verbatim
19208 #: ../src/guestfs-structs.pod:74
19209 #, no-wrap
19210 msgid ""
19211 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
19212 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
19213 "\n"
19214 msgstr ""
19215
19216 #. type: =head2
19217 #: ../src/guestfs-structs.pod:77
19218 msgid "guestfs_lvm_lv"
19219 msgstr ""
19220
19221 #. type: verbatim
19222 #: ../src/guestfs-structs.pod:79
19223 #, no-wrap
19224 msgid ""
19225 " struct guestfs_lvm_lv {\n"
19226 "   char *lv_name;\n"
19227 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
19228 "   char lv_uuid[32];\n"
19229 "   char *lv_attr;\n"
19230 "   int64_t lv_major;\n"
19231 "   int64_t lv_minor;\n"
19232 "   int64_t lv_kernel_major;\n"
19233 "   int64_t lv_kernel_minor;\n"
19234 "   uint64_t lv_size;\n"
19235 "   int64_t seg_count;\n"
19236 "   char *origin;\n"
19237 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
19238 "   float snap_percent;\n"
19239 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
19240 "   float copy_percent;\n"
19241 "   char *move_pv;\n"
19242 "   char *lv_tags;\n"
19243 "   char *mirror_log;\n"
19244 "   char *modules;\n"
19245 " };\n"
19246 " \n"
19247 msgstr ""
19248
19249 #. type: verbatim
19250 #: ../src/guestfs-structs.pod:101
19251 #, no-wrap
19252 msgid ""
19253 " struct guestfs_lvm_lv_list {\n"
19254 "   uint32_t len; /* Number of elements in list. */\n"
19255 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
19256 " };\n"
19257 " \n"
19258 msgstr ""
19259
19260 #. type: verbatim
19261 #: ../src/guestfs-structs.pod:106
19262 #, no-wrap
19263 msgid ""
19264 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
19265 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
19266 "\n"
19267 msgstr ""
19268
19269 #. type: verbatim
19270 #: ../src/guestfs-structs.pod:111
19271 #, no-wrap
19272 msgid ""
19273 " struct guestfs_stat {\n"
19274 "   int64_t dev;\n"
19275 "   int64_t ino;\n"
19276 "   int64_t mode;\n"
19277 "   int64_t nlink;\n"
19278 "   int64_t uid;\n"
19279 "   int64_t gid;\n"
19280 "   int64_t rdev;\n"
19281 "   int64_t size;\n"
19282 "   int64_t blksize;\n"
19283 "   int64_t blocks;\n"
19284 "   int64_t atime;\n"
19285 "   int64_t mtime;\n"
19286 "   int64_t ctime;\n"
19287 " };\n"
19288 " \n"
19289 msgstr ""
19290
19291 #. type: verbatim
19292 #: ../src/guestfs-structs.pod:127
19293 #, no-wrap
19294 msgid ""
19295 " struct guestfs_stat_list {\n"
19296 "   uint32_t len; /* Number of elements in list. */\n"
19297 "   struct guestfs_stat *val; /* Elements. */\n"
19298 " };\n"
19299 " \n"
19300 msgstr ""
19301
19302 #. type: verbatim
19303 #: ../src/guestfs-structs.pod:132
19304 #, no-wrap
19305 msgid ""
19306 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
19307 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
19308 "\n"
19309 msgstr ""
19310
19311 #. type: verbatim
19312 #: ../src/guestfs-structs.pod:137
19313 #, no-wrap
19314 msgid ""
19315 " struct guestfs_statvfs {\n"
19316 "   int64_t bsize;\n"
19317 "   int64_t frsize;\n"
19318 "   int64_t blocks;\n"
19319 "   int64_t bfree;\n"
19320 "   int64_t bavail;\n"
19321 "   int64_t files;\n"
19322 "   int64_t ffree;\n"
19323 "   int64_t favail;\n"
19324 "   int64_t fsid;\n"
19325 "   int64_t flag;\n"
19326 "   int64_t namemax;\n"
19327 " };\n"
19328 " \n"
19329 msgstr ""
19330
19331 #. type: verbatim
19332 #: ../src/guestfs-structs.pod:151
19333 #, no-wrap
19334 msgid ""
19335 " struct guestfs_statvfs_list {\n"
19336 "   uint32_t len; /* Number of elements in list. */\n"
19337 "   struct guestfs_statvfs *val; /* Elements. */\n"
19338 " };\n"
19339 " \n"
19340 msgstr ""
19341
19342 #. type: verbatim
19343 #: ../src/guestfs-structs.pod:156
19344 #, no-wrap
19345 msgid ""
19346 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
19347 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
19348 "\n"
19349 msgstr ""
19350
19351 #. type: =head2
19352 #: ../src/guestfs-structs.pod:159
19353 msgid "guestfs_dirent"
19354 msgstr ""
19355
19356 #. type: verbatim
19357 #: ../src/guestfs-structs.pod:161
19358 #, no-wrap
19359 msgid ""
19360 " struct guestfs_dirent {\n"
19361 "   int64_t ino;\n"
19362 "   char ftyp;\n"
19363 "   char *name;\n"
19364 " };\n"
19365 " \n"
19366 msgstr ""
19367
19368 #. type: verbatim
19369 #: ../src/guestfs-structs.pod:167
19370 #, no-wrap
19371 msgid ""
19372 " struct guestfs_dirent_list {\n"
19373 "   uint32_t len; /* Number of elements in list. */\n"
19374 "   struct guestfs_dirent *val; /* Elements. */\n"
19375 " };\n"
19376 " \n"
19377 msgstr ""
19378
19379 #. type: verbatim
19380 #: ../src/guestfs-structs.pod:172
19381 #, no-wrap
19382 msgid ""
19383 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
19384 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
19385 "\n"
19386 msgstr ""
19387
19388 #. type: verbatim
19389 #: ../src/guestfs-structs.pod:177
19390 #, no-wrap
19391 msgid ""
19392 " struct guestfs_version {\n"
19393 "   int64_t major;\n"
19394 "   int64_t minor;\n"
19395 "   int64_t release;\n"
19396 "   char *extra;\n"
19397 " };\n"
19398 " \n"
19399 msgstr ""
19400
19401 #. type: verbatim
19402 #: ../src/guestfs-structs.pod:184
19403 #, no-wrap
19404 msgid ""
19405 " struct guestfs_version_list {\n"
19406 "   uint32_t len; /* Number of elements in list. */\n"
19407 "   struct guestfs_version *val; /* Elements. */\n"
19408 " };\n"
19409 " \n"
19410 msgstr ""
19411
19412 #. type: verbatim
19413 #: ../src/guestfs-structs.pod:189
19414 #, no-wrap
19415 msgid ""
19416 " void guestfs_free_version (struct guestfs_free_version *);\n"
19417 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
19418 "\n"
19419 msgstr ""
19420
19421 #. type: =head2
19422 #: ../src/guestfs-structs.pod:192
19423 msgid "guestfs_xattr"
19424 msgstr ""
19425
19426 #. type: verbatim
19427 #: ../src/guestfs-structs.pod:194
19428 #, no-wrap
19429 msgid ""
19430 " struct guestfs_xattr {\n"
19431 "   char *attrname;\n"
19432 "   /* The next two fields describe a byte array. */\n"
19433 "   uint32_t attrval_len;\n"
19434 "   char *attrval;\n"
19435 " };\n"
19436 " \n"
19437 msgstr ""
19438
19439 #. type: verbatim
19440 #: ../src/guestfs-structs.pod:201
19441 #, no-wrap
19442 msgid ""
19443 " struct guestfs_xattr_list {\n"
19444 "   uint32_t len; /* Number of elements in list. */\n"
19445 "   struct guestfs_xattr *val; /* Elements. */\n"
19446 " };\n"
19447 " \n"
19448 msgstr ""
19449
19450 #. type: verbatim
19451 #: ../src/guestfs-structs.pod:206
19452 #, no-wrap
19453 msgid ""
19454 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
19455 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
19456 "\n"
19457 msgstr ""
19458
19459 #. type: =head2
19460 #: ../src/guestfs-structs.pod:209
19461 msgid "guestfs_inotify_event"
19462 msgstr ""
19463
19464 #. type: verbatim
19465 #: ../src/guestfs-structs.pod:211
19466 #, no-wrap
19467 msgid ""
19468 " struct guestfs_inotify_event {\n"
19469 "   int64_t in_wd;\n"
19470 "   uint32_t in_mask;\n"
19471 "   uint32_t in_cookie;\n"
19472 "   char *in_name;\n"
19473 " };\n"
19474 " \n"
19475 msgstr ""
19476
19477 #. type: verbatim
19478 #: ../src/guestfs-structs.pod:218
19479 #, no-wrap
19480 msgid ""
19481 " struct guestfs_inotify_event_list {\n"
19482 "   uint32_t len; /* Number of elements in list. */\n"
19483 "   struct guestfs_inotify_event *val; /* Elements. */\n"
19484 " };\n"
19485 " \n"
19486 msgstr ""
19487
19488 #. type: verbatim
19489 #: ../src/guestfs-structs.pod:223
19490 #, no-wrap
19491 msgid ""
19492 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
19493 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
19494 "\n"
19495 msgstr ""
19496
19497 #. type: =head2
19498 #: ../src/guestfs-structs.pod:226
19499 msgid "guestfs_partition"
19500 msgstr ""
19501
19502 #. type: verbatim
19503 #: ../src/guestfs-structs.pod:228
19504 #, no-wrap
19505 msgid ""
19506 " struct guestfs_partition {\n"
19507 "   int32_t part_num;\n"
19508 "   uint64_t part_start;\n"
19509 "   uint64_t part_end;\n"
19510 "   uint64_t part_size;\n"
19511 " };\n"
19512 " \n"
19513 msgstr ""
19514
19515 #. type: verbatim
19516 #: ../src/guestfs-structs.pod:235
19517 #, no-wrap
19518 msgid ""
19519 " struct guestfs_partition_list {\n"
19520 "   uint32_t len; /* Number of elements in list. */\n"
19521 "   struct guestfs_partition *val; /* Elements. */\n"
19522 " };\n"
19523 " \n"
19524 msgstr ""
19525
19526 #. type: verbatim
19527 #: ../src/guestfs-structs.pod:240
19528 #, no-wrap
19529 msgid ""
19530 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
19531 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
19532 "\n"
19533 msgstr ""
19534
19535 #. type: =head2
19536 #: ../src/guestfs-structs.pod:243
19537 msgid "guestfs_application"
19538 msgstr ""
19539
19540 #. type: verbatim
19541 #: ../src/guestfs-structs.pod:245
19542 #, no-wrap
19543 msgid ""
19544 " struct guestfs_application {\n"
19545 "   char *app_name;\n"
19546 "   char *app_display_name;\n"
19547 "   int32_t app_epoch;\n"
19548 "   char *app_version;\n"
19549 "   char *app_release;\n"
19550 "   char *app_install_path;\n"
19551 "   char *app_trans_path;\n"
19552 "   char *app_publisher;\n"
19553 "   char *app_url;\n"
19554 "   char *app_source_package;\n"
19555 "   char *app_summary;\n"
19556 "   char *app_description;\n"
19557 " };\n"
19558 " \n"
19559 msgstr ""
19560
19561 #. type: verbatim
19562 #: ../src/guestfs-structs.pod:260
19563 #, no-wrap
19564 msgid ""
19565 " struct guestfs_application_list {\n"
19566 "   uint32_t len; /* Number of elements in list. */\n"
19567 "   struct guestfs_application *val; /* Elements. */\n"
19568 " };\n"
19569 " \n"
19570 msgstr ""
19571
19572 #. type: verbatim
19573 #: ../src/guestfs-structs.pod:265
19574 #, no-wrap
19575 msgid ""
19576 " void guestfs_free_application (struct guestfs_free_application *);\n"
19577 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
19578 "\n"
19579 msgstr ""
19580
19581 #. type: textblock
19582 #: ../fish/guestfish.pod:5
19583 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
19584 msgstr ""
19585
19586 #. type: verbatim
19587 #: ../fish/guestfish.pod:9
19588 #, no-wrap
19589 msgid ""
19590 " guestfish [--options] [commands]\n"
19591 "\n"
19592 msgstr ""
19593
19594 #. type: verbatim
19595 #: ../fish/guestfish.pod:11
19596 #, no-wrap
19597 msgid ""
19598 " guestfish\n"
19599 "\n"
19600 msgstr ""
19601
19602 #. type: verbatim
19603 #: ../fish/guestfish.pod:13
19604 #, no-wrap
19605 msgid ""
19606 " guestfish [--ro|--rw] -a disk.img\n"
19607 "\n"
19608 msgstr ""
19609
19610 #. type: verbatim
19611 #: ../fish/guestfish.pod:15
19612 #, no-wrap
19613 msgid ""
19614 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
19615 "\n"
19616 msgstr ""
19617
19618 #. type: verbatim
19619 #: ../fish/guestfish.pod:17
19620 #, no-wrap
19621 msgid ""
19622 " guestfish -d libvirt-domain\n"
19623 "\n"
19624 msgstr ""
19625
19626 #. type: verbatim
19627 #: ../fish/guestfish.pod:19
19628 #, no-wrap
19629 msgid ""
19630 " guestfish [--ro|--rw] -a disk.img -i\n"
19631 "\n"
19632 msgstr ""
19633
19634 #. type: verbatim
19635 #: ../fish/guestfish.pod:21
19636 #, no-wrap
19637 msgid ""
19638 " guestfish -d libvirt-domain -i\n"
19639 "\n"
19640 msgstr ""
19641
19642 #. type: =head1
19643 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15
19644 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:64
19645 msgid "WARNING"
19646 msgstr ""
19647
19648 #. type: textblock
19649 #: ../fish/guestfish.pod:25
19650 msgid ""
19651 "Using guestfish in read/write mode on live virtual machines can be "
19652 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
19653 "option to use guestfish safely if the disk image or virtual machine might be "
19654 "live."
19655 msgstr ""
19656
19657 #. type: textblock
19658 #: ../fish/guestfish.pod:32
19659 msgid ""
19660 "Guestfish is a shell and command-line tool for examining and modifying "
19661 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
19662 "functionality of the guestfs API, see L<guestfs(3)>."
19663 msgstr ""
19664
19665 #. type: textblock
19666 #: ../fish/guestfish.pod:36
19667 msgid ""
19668 "Guestfish gives you structured access to the libguestfs API, from shell "
19669 "scripts or the command line or interactively.  If you want to rescue a "
19670 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
19671 "command."
19672 msgstr ""
19673
19674 #. type: =head1
19675 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:949
19676 #: ../fuse/guestmount.pod:39 ../tools/virt-tar.pl:50
19677 msgid "EXAMPLES"
19678 msgstr ""
19679
19680 #. type: =head2
19681 #: ../fish/guestfish.pod:43
19682 msgid "As an interactive shell"
19683 msgstr ""
19684
19685 #. type: verbatim
19686 #: ../fish/guestfish.pod:45
19687 #, no-wrap
19688 msgid ""
19689 " $ guestfish\n"
19690 " \n"
19691 msgstr ""
19692
19693 #. type: verbatim
19694 #: ../fish/guestfish.pod:47
19695 #, no-wrap
19696 msgid ""
19697 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
19698 " editing virtual machine filesystems.\n"
19699 " \n"
19700 msgstr ""
19701
19702 #. type: verbatim
19703 #: ../fish/guestfish.pod:50
19704 #, no-wrap
19705 msgid ""
19706 " Type: 'help' for a list of commands\n"
19707 "       'man' to read the manual\n"
19708 "       'quit' to quit the shell\n"
19709 " \n"
19710 msgstr ""
19711
19712 #. type: verbatim
19713 #: ../fish/guestfish.pod:54
19714 #, no-wrap
19715 msgid ""
19716 " ><fs> add-ro disk.img\n"
19717 " ><fs> run\n"
19718 " ><fs> list-filesystems\n"
19719 " /dev/sda1: ext4\n"
19720 " /dev/vg_guest/lv_root: ext4\n"
19721 " /dev/vg_guest/lv_swap: swap\n"
19722 " ><fs> mount /dev/vg_guest/lv_root /\n"
19723 " ><fs> cat /etc/fstab\n"
19724 " # /etc/fstab\n"
19725 " # Created by anaconda\n"
19726 " [...]\n"
19727 " ><fs> exit\n"
19728 "\n"
19729 msgstr ""
19730
19731 #. type: =head2
19732 #: ../fish/guestfish.pod:67
19733 msgid "From shell scripts"
19734 msgstr ""
19735
19736 #. type: textblock
19737 #: ../fish/guestfish.pod:69
19738 msgid "Create a new C</etc/motd> file in a guest or disk image:"
19739 msgstr ""
19740
19741 #. type: verbatim
19742 #: ../fish/guestfish.pod:71
19743 #, no-wrap
19744 msgid ""
19745 " guestfish <<_EOF_\n"
19746 " add disk.img\n"
19747 " run\n"
19748 " mount /dev/vg_guest/lv_root /\n"
19749 " write /etc/motd \"Welcome, new users\"\n"
19750 " _EOF_\n"
19751 "\n"
19752 msgstr ""
19753
19754 #. type: textblock
19755 #: ../fish/guestfish.pod:78
19756 msgid "List the LVM logical volumes in a disk image:"
19757 msgstr ""
19758
19759 #. type: verbatim
19760 #: ../fish/guestfish.pod:80
19761 #, no-wrap
19762 msgid ""
19763 " guestfish -a disk.img --ro <<_EOF_\n"
19764 " run\n"
19765 " lvs\n"
19766 " _EOF_\n"
19767 "\n"
19768 msgstr ""
19769
19770 #. type: textblock
19771 #: ../fish/guestfish.pod:85
19772 msgid "List all the filesystems in a disk image:"
19773 msgstr ""
19774
19775 #. type: verbatim
19776 #: ../fish/guestfish.pod:87
19777 #, no-wrap
19778 msgid ""
19779 " guestfish -a disk.img --ro <<_EOF_\n"
19780 " run\n"
19781 " list-filesystems\n"
19782 " _EOF_\n"
19783 "\n"
19784 msgstr ""
19785
19786 #. type: =head2
19787 #: ../fish/guestfish.pod:92
19788 msgid "On one command line"
19789 msgstr ""
19790
19791 #. type: textblock
19792 #: ../fish/guestfish.pod:94
19793 msgid "Update C</etc/resolv.conf> in a guest:"
19794 msgstr ""
19795
19796 #. type: verbatim
19797 #: ../fish/guestfish.pod:96
19798 #, no-wrap
19799 msgid ""
19800 " guestfish \\\n"
19801 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
19802 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
19803 "\n"
19804 msgstr ""
19805
19806 #. type: textblock
19807 #: ../fish/guestfish.pod:100
19808 msgid "Edit C</boot/grub/grub.conf> interactively:"
19809 msgstr ""
19810
19811 #. type: verbatim
19812 #: ../fish/guestfish.pod:102
19813 #, no-wrap
19814 msgid ""
19815 " guestfish --rw --add disk.img \\\n"
19816 "   --mount /dev/vg_guest/lv_root \\\n"
19817 "   --mount /dev/sda1:/boot \\\n"
19818 "   edit /boot/grub/grub.conf\n"
19819 "\n"
19820 msgstr ""
19821
19822 #. type: =head2
19823 #: ../fish/guestfish.pod:107
19824 msgid "Mount disks automatically"
19825 msgstr ""
19826
19827 #. type: textblock
19828 #: ../fish/guestfish.pod:109
19829 msgid ""
19830 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
19831 msgstr ""
19832
19833 #. type: verbatim
19834 #: ../fish/guestfish.pod:112
19835 #, no-wrap
19836 msgid ""
19837 " guestfish --ro -a disk.img -i cat /etc/group\n"
19838 "\n"
19839 msgstr ""
19840
19841 #. type: verbatim
19842 #: ../fish/guestfish.pod:114
19843 #, no-wrap
19844 msgid ""
19845 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
19846 "\n"
19847 msgstr ""
19848
19849 #. type: textblock
19850 #: ../fish/guestfish.pod:116
19851 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
19852 msgstr ""
19853
19854 #. type: verbatim
19855 #: ../fish/guestfish.pod:118
19856 #, no-wrap
19857 msgid ""
19858 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
19859 "\n"
19860 msgstr ""
19861
19862 #. type: =head2
19863 #: ../fish/guestfish.pod:120
19864 msgid "As a script interpreter"
19865 msgstr ""
19866
19867 #. type: textblock
19868 #: ../fish/guestfish.pod:122
19869 msgid "Create a 100MB disk containing an ext2-formatted partition:"
19870 msgstr ""
19871
19872 #. type: verbatim
19873 #: ../fish/guestfish.pod:124
19874 #, no-wrap
19875 msgid ""
19876 " #!/usr/bin/guestfish -f\n"
19877 " sparse test1.img 100M\n"
19878 " run\n"
19879 " part-disk /dev/sda mbr\n"
19880 " mkfs ext2 /dev/sda1\n"
19881 "\n"
19882 msgstr ""
19883
19884 #. type: =head2
19885 #: ../fish/guestfish.pod:130
19886 msgid "Start with a prepared disk"
19887 msgstr ""
19888
19889 #. type: textblock
19890 #: ../fish/guestfish.pod:132
19891 msgid ""
19892 "An alternate way to create a 100MB disk called C<test1.img> containing a "
19893 "single ext2-formatted partition:"
19894 msgstr ""
19895
19896 #. type: verbatim
19897 #: ../fish/guestfish.pod:135
19898 #, no-wrap
19899 msgid ""
19900 " guestfish -N fs\n"
19901 "\n"
19902 msgstr ""
19903
19904 #. type: textblock
19905 #: ../fish/guestfish.pod:137
19906 msgid "To list what is available do:"
19907 msgstr ""
19908
19909 #. type: verbatim
19910 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:940
19911 #, no-wrap
19912 msgid ""
19913 " guestfish -N help | less\n"
19914 "\n"
19915 msgstr ""
19916
19917 #. type: =head2
19918 #: ../fish/guestfish.pod:141
19919 msgid "Remote control"
19920 msgstr ""
19921
19922 #. type: verbatim
19923 #: ../fish/guestfish.pod:143
19924 #, no-wrap
19925 msgid ""
19926 " eval \"`guestfish --listen`\"\n"
19927 " guestfish --remote add-ro disk.img\n"
19928 " guestfish --remote run\n"
19929 " guestfish --remote lvs\n"
19930 "\n"
19931 msgstr ""
19932
19933 #. type: =head1
19934 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
19935 #: ../fuse/guestmount.pod:83 ../tools/virt-win-reg.pl:96
19936 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:103
19937 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
19938 msgid "OPTIONS"
19939 msgstr ""
19940
19941 #. type: =item
19942 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:143
19943 #: ../tools/virt-win-reg.pl:104 ../tools/virt-list-filesystems.pl:61
19944 #: ../tools/virt-tar.pl:111 ../tools/virt-make-fs.pl:161
19945 #: ../tools/virt-list-partitions.pl:62
19946 msgid "B<--help>"
19947 msgstr ""
19948
19949 #. type: textblock
19950 #: ../fish/guestfish.pod:154
19951 msgid "Displays general help on options."
19952 msgstr ""
19953
19954 #. type: =item
19955 #: ../fish/guestfish.pod:156
19956 msgid "B<-h>"
19957 msgstr ""
19958
19959 #. type: =item
19960 #: ../fish/guestfish.pod:158
19961 msgid "B<--cmd-help>"
19962 msgstr ""
19963
19964 #. type: textblock
19965 #: ../fish/guestfish.pod:160
19966 msgid "Lists all available guestfish commands."
19967 msgstr ""
19968
19969 #. type: =item
19970 #: ../fish/guestfish.pod:162
19971 msgid "B<-h cmd>"
19972 msgstr ""
19973
19974 #. type: =item
19975 #: ../fish/guestfish.pod:164
19976 msgid "B<--cmd-help cmd>"
19977 msgstr ""
19978
19979 #. type: textblock
19980 #: ../fish/guestfish.pod:166
19981 msgid "Displays detailed help on a single command C<cmd>."
19982 msgstr ""
19983
19984 #. type: =item
19985 #: ../fish/guestfish.pod:168
19986 msgid "B<-a image>"
19987 msgstr ""
19988
19989 #. type: =item
19990 #: ../fish/guestfish.pod:170
19991 msgid "B<--add image>"
19992 msgstr ""
19993
19994 #. type: textblock
19995 #: ../fish/guestfish.pod:172
19996 msgid "Add a block device or virtual machine image to the shell."
19997 msgstr ""
19998
19999 #. type: textblock
20000 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:91
20001 msgid ""
20002 "The format of the disk image is auto-detected.  To override this and force a "
20003 "particular format use the I<--format=..> option."
20004 msgstr ""
20005
20006 #. type: textblock
20007 #: ../fish/guestfish.pod:177
20008 msgid ""
20009 "Using this flag is mostly equivalent to using the C<add> command, with "
20010 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
20011 "the I<--format=...> flag was given."
20012 msgstr ""
20013
20014 #. type: =item
20015 #: ../fish/guestfish.pod:181
20016 msgid "B<-c URI>"
20017 msgstr ""
20018
20019 #. type: =item
20020 #: ../fish/guestfish.pod:183
20021 msgid "B<--connect URI>"
20022 msgstr ""
20023
20024 #. type: textblock
20025 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:96
20026 msgid ""
20027 "When used in conjunction with the I<-d> option, this specifies the libvirt "
20028 "URI to use.  The default is to use the default libvirt connection."
20029 msgstr ""
20030
20031 #. type: =item
20032 #: ../fish/guestfish.pod:189
20033 msgid "B<--csh>"
20034 msgstr ""
20035
20036 #. type: textblock
20037 #: ../fish/guestfish.pod:191
20038 msgid ""
20039 "If using the I<--listen> option and a csh-like shell, use this option.  See "
20040 "section L</REMOTE CONTROL AND CSH> below."
20041 msgstr ""
20042
20043 #. type: =item
20044 #: ../fish/guestfish.pod:194
20045 msgid "B<-d libvirt-domain>"
20046 msgstr ""
20047
20048 #. type: =item
20049 #: ../fish/guestfish.pod:196
20050 msgid "B<--domain libvirt-domain>"
20051 msgstr ""
20052
20053 #. type: textblock
20054 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:102
20055 msgid ""
20056 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
20057 "used, then any libvirt domain can be used.  However in write mode, only "
20058 "libvirt domains which are shut down can be named here."
20059 msgstr ""
20060
20061 #. type: textblock
20062 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:106
20063 msgid "Domain UUIDs can be used instead of names."
20064 msgstr ""
20065
20066 #. type: textblock
20067 #: ../fish/guestfish.pod:204
20068 msgid ""
20069 "Using this flag is mostly equivalent to using the C<add-domain> command, "
20070 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
20071 "if the I<--format:...> flag was given."
20072 msgstr ""
20073
20074 #. type: =item
20075 #: ../fish/guestfish.pod:208
20076 msgid "B<-D>"
20077 msgstr ""
20078
20079 #. type: =item
20080 #: ../fish/guestfish.pod:210
20081 msgid "B<--no-dest-paths>"
20082 msgstr ""
20083
20084 #. type: textblock
20085 #: ../fish/guestfish.pod:212
20086 msgid ""
20087 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
20088 "to hit the tab key to complete paths on the guest filesystem, but this "
20089 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
20090 "allow this feature to be disabled."
20091 msgstr ""
20092
20093 #. type: =item
20094 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:120
20095 msgid "B<--echo-keys>"
20096 msgstr ""
20097
20098 #. type: textblock
20099 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:122
20100 msgid ""
20101 "When prompting for keys and passphrases, guestfish normally turns echoing "
20102 "off so you cannot see what you are typing.  If you are not worried about "
20103 "Tempest attacks and there is no one else in the room you can specify this "
20104 "flag to see what you are typing."
20105 msgstr ""
20106
20107 #. type: =item
20108 #: ../fish/guestfish.pod:224
20109 msgid "B<-f file>"
20110 msgstr ""
20111
20112 #. type: =item
20113 #: ../fish/guestfish.pod:226
20114 msgid "B<--file file>"
20115 msgstr ""
20116
20117 #. type: textblock
20118 #: ../fish/guestfish.pod:228
20119 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
20120 msgstr ""
20121
20122 #. type: verbatim
20123 #: ../fish/guestfish.pod:231
20124 #, no-wrap
20125 msgid ""
20126 " #!/usr/bin/guestfish -f\n"
20127 "\n"
20128 msgstr ""
20129
20130 #. type: =item
20131 #: ../fish/guestfish.pod:233
20132 msgid "B<--format=raw|qcow2|..>"
20133 msgstr ""
20134
20135 #. type: =item
20136 #: ../fish/guestfish.pod:235
20137 msgid "B<--format>"
20138 msgstr ""
20139
20140 #. type: textblock
20141 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:129
20142 msgid ""
20143 "The default for the I<-a> option is to auto-detect the format of the disk "
20144 "image.  Using this forces the disk format for I<-a> options which follow on "
20145 "the command line.  Using I<--format> with no argument switches back to auto-"
20146 "detection for subsequent I<-a> options."
20147 msgstr ""
20148
20149 #. type: verbatim
20150 #: ../fish/guestfish.pod:244
20151 #, no-wrap
20152 msgid ""
20153 " guestfish --format=raw -a disk.img\n"
20154 "\n"
20155 msgstr ""
20156
20157 #. type: textblock
20158 #: ../fish/guestfish.pod:246
20159 msgid "forces raw format (no auto-detection) for C<disk.img>."
20160 msgstr ""
20161
20162 #. type: verbatim
20163 #: ../fish/guestfish.pod:248
20164 #, no-wrap
20165 msgid ""
20166 " guestfish --format=raw -a disk.img --format -a another.img\n"
20167 "\n"
20168 msgstr ""
20169
20170 #. type: textblock
20171 #: ../fish/guestfish.pod:250
20172 msgid ""
20173 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
20174 "detection for C<another.img>."
20175 msgstr ""
20176
20177 #. type: textblock
20178 #: ../fish/guestfish.pod:253
20179 msgid ""
20180 "If you have untrusted raw-format guest disk images, you should use this "
20181 "option to specify the disk format.  This avoids a possible security problem "
20182 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
20183 msgstr ""
20184
20185 #. type: =item
20186 #: ../fish/guestfish.pod:258
20187 msgid "B<-i>"
20188 msgstr ""
20189
20190 #. type: =item
20191 #: ../fish/guestfish.pod:260
20192 msgid "B<--inspector>"
20193 msgstr ""
20194
20195 #. type: textblock
20196 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:149
20197 msgid ""
20198 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
20199 "system and mount filesystems as they would be mounted on the real virtual "
20200 "machine."
20201 msgstr ""
20202
20203 #. type: textblock
20204 #: ../fish/guestfish.pod:266
20205 msgid "Typical usage is either:"
20206 msgstr ""
20207
20208 #. type: verbatim
20209 #: ../fish/guestfish.pod:268
20210 #, no-wrap
20211 msgid ""
20212 " guestfish -d myguest -i\n"
20213 "\n"
20214 msgstr ""
20215
20216 #. type: textblock
20217 #: ../fish/guestfish.pod:270
20218 msgid "(for an inactive libvirt domain called I<myguest>), or:"
20219 msgstr ""
20220
20221 #. type: verbatim
20222 #: ../fish/guestfish.pod:272
20223 #, no-wrap
20224 msgid ""
20225 " guestfish --ro -d myguest -i\n"
20226 "\n"
20227 msgstr ""
20228
20229 #. type: textblock
20230 #: ../fish/guestfish.pod:274
20231 msgid "(for active domains, readonly), or specify the block device directly:"
20232 msgstr ""
20233
20234 #. type: verbatim
20235 #: ../fish/guestfish.pod:276
20236 #, no-wrap
20237 msgid ""
20238 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
20239 "\n"
20240 msgstr ""
20241
20242 #. type: textblock
20243 #: ../fish/guestfish.pod:278
20244 msgid ""
20245 "Note that the command line syntax changed slightly over older versions of "
20246 "guestfish.  You can still use the old syntax:"
20247 msgstr ""
20248
20249 #. type: verbatim
20250 #: ../fish/guestfish.pod:281
20251 #, no-wrap
20252 msgid ""
20253 " guestfish [--ro] -i disk.img\n"
20254 "\n"
20255 msgstr ""
20256
20257 #. type: verbatim
20258 #: ../fish/guestfish.pod:283
20259 #, no-wrap
20260 msgid ""
20261 " guestfish [--ro] -i libvirt-domain\n"
20262 "\n"
20263 msgstr ""
20264
20265 #. type: textblock
20266 #: ../fish/guestfish.pod:285
20267 msgid ""
20268 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
20269 "then using other commands to mount the filesystems that were found."
20270 msgstr ""
20271
20272 #. type: =item
20273 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:153
20274 msgid "B<--keys-from-stdin>"
20275 msgstr ""
20276
20277 #. type: textblock
20278 #: ../fish/guestfish.pod:291 ../fuse/guestmount.pod:155
20279 msgid ""
20280 "Read key or passphrase parameters from stdin.  The default is to try to read "
20281 "passphrases from the user by opening C</dev/tty>."
20282 msgstr ""
20283
20284 #. type: =item
20285 #: ../fish/guestfish.pod:294
20286 msgid "B<--listen>"
20287 msgstr ""
20288
20289 #. type: textblock
20290 #: ../fish/guestfish.pod:296
20291 msgid ""
20292 "Fork into the background and listen for remote commands.  See section L</"
20293 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
20294 msgstr ""
20295
20296 #. type: =item
20297 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:158
20298 msgid "B<--live>"
20299 msgstr ""
20300
20301 #. type: textblock
20302 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:160
20303 msgid ""
20304 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
20305 "ATTACHING TO RUNNING DAEMONS>)."
20306 msgstr ""
20307
20308 #. type: =item
20309 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:163
20310 msgid "B<-m dev[:mountpoint[:options]]>"
20311 msgstr ""
20312
20313 #. type: =item
20314 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:165
20315 msgid "B<--mount dev[:mountpoint[:options]]>"
20316 msgstr ""
20317
20318 #. type: textblock
20319 #: ../fish/guestfish.pod:308
20320 msgid "Mount the named partition or logical volume on the given mountpoint."
20321 msgstr ""
20322
20323 #. type: textblock
20324 #: ../fish/guestfish.pod:310
20325 msgid "If the mountpoint is omitted, it defaults to C</>."
20326 msgstr ""
20327
20328 #. type: textblock
20329 #: ../fish/guestfish.pod:312
20330 msgid "You have to mount something on C</> before most commands will work."
20331 msgstr ""
20332
20333 #. type: textblock
20334 #: ../fish/guestfish.pod:314
20335 msgid ""
20336 "If any I<-m> or I<--mount> options are given, the guest is automatically "
20337 "launched."
20338 msgstr ""
20339
20340 #. type: textblock
20341 #: ../fish/guestfish.pod:317
20342 msgid ""
20343 "If you don't know what filesystems a disk image contains, you can either run "
20344 "guestfish without this option, then list the partitions, filesystems and LVs "
20345 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
20346 "commands), or you can use the L<virt-filesystems(1)> program."
20347 msgstr ""
20348
20349 #. type: textblock
20350 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:173
20351 msgid ""
20352 "The third (and rarely used) part of the mount parameter is the list of mount "
20353 "options used to mount the underlying filesystem.  If this is not given, then "
20354 "the mount options are either the empty string or C<ro> (the latter if the "
20355 "I<--ro> flag is used).  By specifying the mount options, you override this "
20356 "default choice.  Probably the only time you would use this is to enable ACLs "
20357 "and/or extended attributes if the filesystem can support them:"
20358 msgstr ""
20359
20360 #. type: verbatim
20361 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:181
20362 #, no-wrap
20363 msgid ""
20364 " -m /dev/sda1:/:acl,user_xattr\n"
20365 "\n"
20366 msgstr ""
20367
20368 #. type: textblock
20369 #: ../fish/guestfish.pod:333
20370 msgid "Using this flag is equivalent to using the C<mount-options> command."
20371 msgstr ""
20372
20373 #. type: =item
20374 #: ../fish/guestfish.pod:335
20375 msgid "B<-n>"
20376 msgstr ""
20377
20378 #. type: =item
20379 #: ../fish/guestfish.pod:337
20380 msgid "B<--no-sync>"
20381 msgstr ""
20382
20383 #. type: textblock
20384 #: ../fish/guestfish.pod:339
20385 msgid ""
20386 "Disable autosync.  This is enabled by default.  See the discussion of "
20387 "autosync in the L<guestfs(3)> manpage."
20388 msgstr ""
20389
20390 #. type: =item
20391 #: ../fish/guestfish.pod:342
20392 msgid "B<-N type>"
20393 msgstr ""
20394
20395 #. type: =item
20396 #: ../fish/guestfish.pod:344
20397 msgid "B<--new type>"
20398 msgstr ""
20399
20400 #. type: =item
20401 #: ../fish/guestfish.pod:346
20402 msgid "B<-N help>"
20403 msgstr ""
20404
20405 #. type: textblock
20406 #: ../fish/guestfish.pod:348
20407 msgid ""
20408 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
20409 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
20410 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
20411 "IMAGES> below."
20412 msgstr ""
20413
20414 #. type: =item
20415 #: ../fish/guestfish.pod:353
20416 msgid "B<--progress-bars>"
20417 msgstr ""
20418
20419 #. type: textblock
20420 #: ../fish/guestfish.pod:355
20421 msgid "Enable progress bars, even when guestfish is used non-interactively."
20422 msgstr ""
20423
20424 #. type: textblock
20425 #: ../fish/guestfish.pod:357
20426 msgid ""
20427 "Progress bars are enabled by default when guestfish is used as an "
20428 "interactive shell."
20429 msgstr ""
20430
20431 #. type: =item
20432 #: ../fish/guestfish.pod:360
20433 msgid "B<--no-progress-bars>"
20434 msgstr ""
20435
20436 #. type: textblock
20437 #: ../fish/guestfish.pod:362
20438 msgid "Disable progress bars."
20439 msgstr ""
20440
20441 #. type: =item
20442 #: ../fish/guestfish.pod:364
20443 msgid "B<--remote[=pid]>"
20444 msgstr ""
20445
20446 #. type: textblock
20447 #: ../fish/guestfish.pod:366
20448 msgid ""
20449 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
20450 "CONTROL GUESTFISH OVER A SOCKET> below."
20451 msgstr ""
20452
20453 #. type: =item
20454 #: ../fish/guestfish.pod:369
20455 msgid "B<-r>"
20456 msgstr ""
20457
20458 #. type: =item
20459 #: ../fish/guestfish.pod:371
20460 msgid "B<--ro>"
20461 msgstr ""
20462
20463 #. type: textblock
20464 #: ../fish/guestfish.pod:373
20465 msgid ""
20466 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20467 "mounts are done read-only."
20468 msgstr ""
20469
20470 #. type: textblock
20471 #: ../fish/guestfish.pod:376
20472 msgid ""
20473 "The option must always be used if the disk image or virtual machine might be "
20474 "running, and is generally recommended in cases where you don't need write "
20475 "access to the disk."
20476 msgstr ""
20477
20478 #. type: textblock
20479 #: ../fish/guestfish.pod:380
20480 msgid ""
20481 "Note that prepared disk images created with I<-N> are not affected by this "
20482 "option.  Also commands like C<add> are not affected - you have to specify "
20483 "the C<readonly:true> option explicitly if you need it."
20484 msgstr ""
20485
20486 #. type: textblock
20487 #: ../fish/guestfish.pod:384
20488 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
20489 msgstr ""
20490
20491 #. type: =item
20492 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:237
20493 msgid "B<--selinux>"
20494 msgstr ""
20495
20496 #. type: textblock
20497 #: ../fish/guestfish.pod:388
20498 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
20499 msgstr ""
20500
20501 #. type: =item
20502 #: ../fish/guestfish.pod:390
20503 msgid "B<-v>"
20504 msgstr ""
20505
20506 #. type: =item
20507 #: ../fish/guestfish.pod:392
20508 msgid "B<--verbose>"
20509 msgstr ""
20510
20511 #. type: textblock
20512 #: ../fish/guestfish.pod:394
20513 msgid ""
20514 "Enable very verbose messages.  This is particularly useful if you find a bug."
20515 msgstr ""
20516
20517 #. type: =item
20518 #: ../fish/guestfish.pod:397
20519 msgid "B<-V>"
20520 msgstr ""
20521
20522 #. type: =item
20523 #: ../fish/guestfish.pod:399 ../tools/virt-win-reg.pl:112
20524 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:119
20525 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
20526 msgid "B<--version>"
20527 msgstr ""
20528
20529 #. type: textblock
20530 #: ../fish/guestfish.pod:401
20531 msgid "Display the guestfish / libguestfs version number and exit."
20532 msgstr ""
20533
20534 #. type: =item
20535 #: ../fish/guestfish.pod:403
20536 msgid "B<-w>"
20537 msgstr ""
20538
20539 #. type: =item
20540 #: ../fish/guestfish.pod:405
20541 msgid "B<--rw>"
20542 msgstr ""
20543
20544 #. type: textblock
20545 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:251
20546 msgid ""
20547 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20548 "mounts are done read-write."
20549 msgstr ""
20550
20551 #. type: textblock
20552 #: ../fish/guestfish.pod:410
20553 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
20554 msgstr ""
20555
20556 #. type: =item
20557 #: ../fish/guestfish.pod:412
20558 msgid "B<-x>"
20559 msgstr ""
20560
20561 #. type: textblock
20562 #: ../fish/guestfish.pod:414
20563 msgid "Echo each command before executing it."
20564 msgstr ""
20565
20566 #. type: =head1
20567 #: ../fish/guestfish.pod:418
20568 msgid "COMMANDS ON COMMAND LINE"
20569 msgstr ""
20570
20571 #. type: textblock
20572 #: ../fish/guestfish.pod:420
20573 msgid ""
20574 "Any additional (non-option) arguments are treated as commands to execute."
20575 msgstr ""
20576
20577 #. type: textblock
20578 #: ../fish/guestfish.pod:423
20579 msgid ""
20580 "Commands to execute should be separated by a colon (C<:>), where the colon "
20581 "is a separate parameter.  Thus:"
20582 msgstr ""
20583
20584 #. type: verbatim
20585 #: ../fish/guestfish.pod:426
20586 #, no-wrap
20587 msgid ""
20588 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
20589 "\n"
20590 msgstr ""
20591
20592 #. type: textblock
20593 #: ../fish/guestfish.pod:428
20594 msgid ""
20595 "If there are no additional arguments, then we enter a shell, either an "
20596 "interactive shell with a prompt (if the input is a terminal) or a non-"
20597 "interactive shell."
20598 msgstr ""
20599
20600 #. type: textblock
20601 #: ../fish/guestfish.pod:432
20602 msgid ""
20603 "In either command line mode or non-interactive shell, the first command that "
20604 "gives an error causes the whole shell to exit.  In interactive mode (with a "
20605 "prompt) if a command fails, you can continue to enter commands."
20606 msgstr ""
20607
20608 #. type: =head1
20609 #: ../fish/guestfish.pod:437
20610 msgid "USING launch (OR run)"
20611 msgstr ""
20612
20613 #. type: textblock
20614 #: ../fish/guestfish.pod:439
20615 msgid ""
20616 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
20617 "then launch it, then mount any disks you need, and finally issue actions/"
20618 "commands.  So the general order of the day is:"
20619 msgstr ""
20620
20621 #. type: textblock
20622 #: ../fish/guestfish.pod:447
20623 msgid "add or -a/--add"
20624 msgstr ""
20625
20626 #. type: textblock
20627 #: ../fish/guestfish.pod:451
20628 msgid "launch (aka run)"
20629 msgstr ""
20630
20631 #. type: textblock
20632 #: ../fish/guestfish.pod:455
20633 msgid "mount or -m/--mount"
20634 msgstr ""
20635
20636 #. type: textblock
20637 #: ../fish/guestfish.pod:459
20638 msgid "any other commands"
20639 msgstr ""
20640
20641 #. type: textblock
20642 #: ../fish/guestfish.pod:463
20643 msgid ""
20644 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
20645 "guest before mounting or performing any other commands."
20646 msgstr ""
20647
20648 #. type: textblock
20649 #: ../fish/guestfish.pod:466
20650 msgid ""
20651 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
20652 "I<--new> options were given then C<run> is done automatically, simply "
20653 "because guestfish can't perform the action you asked for without doing this."
20654 msgstr ""
20655
20656 #. type: =head1
20657 #: ../fish/guestfish.pod:471
20658 msgid "OPENING DISKS FOR READ AND WRITE"
20659 msgstr ""
20660
20661 #. type: textblock
20662 #: ../fish/guestfish.pod:473
20663 msgid ""
20664 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
20665 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
20666 "I<-i> and I<-m> open disk images read-only or for writing."
20667 msgstr ""
20668
20669 #. type: textblock
20670 #: ../fish/guestfish.pod:478
20671 msgid ""
20672 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
20673 "opening disk images supplied on the command line for write.  To open a disk "
20674 "image read-only you have to do I<-a image --ro>."
20675 msgstr ""
20676
20677 #. type: textblock
20678 #: ../fish/guestfish.pod:482
20679 msgid ""
20680 "This matters: If you accidentally open a live VM disk image writable then "
20681 "you will cause irreversible disk corruption."
20682 msgstr ""
20683
20684 #. type: textblock
20685 #: ../fish/guestfish.pod:485
20686 msgid ""
20687 "By libguestfs 1.12 we intend to change the default the other way.  Disk "
20688 "images will be opened read-only.  You will have to either specify "
20689 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
20690 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
20691 "access for disk images specified by those other command line options."
20692 msgstr ""
20693
20694 #. type: textblock
20695 #: ../fish/guestfish.pod:492
20696 msgid ""
20697 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
20698 "which does nothing (it is already the default).  However it is highly "
20699 "recommended that you use this option to indicate that you need write access, "
20700 "and prepare your scripts for the day when this option will be required for "
20701 "write access."
20702 msgstr ""
20703
20704 #. type: textblock
20705 #: ../fish/guestfish.pod:498
20706 msgid ""
20707 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
20708 "other libguestfs program apart from guestfish and guestmount."
20709 msgstr ""
20710
20711 #. type: =head1
20712 #: ../fish/guestfish.pod:501
20713 msgid "QUOTING"
20714 msgstr ""
20715
20716 #. type: textblock
20717 #: ../fish/guestfish.pod:503
20718 msgid ""
20719 "You can quote ordinary parameters using either single or double quotes.  For "
20720 "example:"
20721 msgstr ""
20722
20723 #. type: verbatim
20724 #: ../fish/guestfish.pod:506
20725 #, no-wrap
20726 msgid ""
20727 " add \"file with a space.img\"\n"
20728 "\n"
20729 msgstr ""
20730
20731 #. type: verbatim
20732 #: ../fish/guestfish.pod:508
20733 #, no-wrap
20734 msgid ""
20735 " rm '/file name'\n"
20736 "\n"
20737 msgstr ""
20738
20739 #. type: verbatim
20740 #: ../fish/guestfish.pod:510
20741 #, no-wrap
20742 msgid ""
20743 " rm '/\"'\n"
20744 "\n"
20745 msgstr ""
20746
20747 #. type: textblock
20748 #: ../fish/guestfish.pod:512
20749 msgid ""
20750 "A few commands require a list of strings to be passed.  For these, use a "
20751 "whitespace-separated list, enclosed in quotes.  Strings containing "
20752 "whitespace to be passed through must be enclosed in single quotes.  A "
20753 "literal single quote must be escaped with a backslash."
20754 msgstr ""
20755
20756 #. type: verbatim
20757 #: ../fish/guestfish.pod:517
20758 #, no-wrap
20759 msgid ""
20760 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
20761 " command \"/bin/echo 'foo      bar'\"\n"
20762 " command \"/bin/echo \\'foo\\'\"\n"
20763 "\n"
20764 msgstr ""
20765
20766 #. type: =head1
20767 #: ../fish/guestfish.pod:521
20768 msgid "OPTIONAL ARGUMENTS"
20769 msgstr ""
20770
20771 #. type: textblock
20772 #: ../fish/guestfish.pod:523
20773 msgid ""
20774 "Some commands take optional arguments.  These arguments appear in this "
20775 "documentation as C<[argname:..]>.  You can use them as in these examples:"
20776 msgstr ""
20777
20778 #. type: verbatim
20779 #: ../fish/guestfish.pod:527
20780 #, no-wrap
20781 msgid ""
20782 " add-drive-opts filename\n"
20783 "\n"
20784 msgstr ""
20785
20786 #. type: verbatim
20787 #: ../fish/guestfish.pod:529
20788 #, no-wrap
20789 msgid ""
20790 " add-drive-opts filename readonly:true\n"
20791 "\n"
20792 msgstr ""
20793
20794 #. type: verbatim
20795 #: ../fish/guestfish.pod:531
20796 #, no-wrap
20797 msgid ""
20798 " add-drive-opts filename format:qcow2 readonly:false\n"
20799 "\n"
20800 msgstr ""
20801
20802 #. type: textblock
20803 #: ../fish/guestfish.pod:533
20804 msgid ""
20805 "Each optional argument can appear at most once.  All optional arguments must "
20806 "appear after the required ones."
20807 msgstr ""
20808
20809 #. type: =head1
20810 #: ../fish/guestfish.pod:536
20811 msgid "NUMBERS"
20812 msgstr ""
20813
20814 #. type: textblock
20815 #: ../fish/guestfish.pod:538
20816 msgid ""
20817 "This section applies to all commands which can take integers as parameters."
20818 msgstr ""
20819
20820 #. type: =head2
20821 #: ../fish/guestfish.pod:541
20822 msgid "SIZE SUFFIX"
20823 msgstr ""
20824
20825 #. type: textblock
20826 #: ../fish/guestfish.pod:543
20827 msgid ""
20828 "When the command takes a parameter measured in bytes, you can use one of the "
20829 "following suffixes to specify kilobytes, megabytes and larger sizes:"
20830 msgstr ""
20831
20832 #. type: =item
20833 #: ../fish/guestfish.pod:549
20834 msgid "B<k> or B<K> or B<KiB>"
20835 msgstr ""
20836
20837 #. type: textblock
20838 #: ../fish/guestfish.pod:551
20839 msgid "The size in kilobytes (multiplied by 1024)."
20840 msgstr ""
20841
20842 #. type: =item
20843 #: ../fish/guestfish.pod:553
20844 msgid "B<KB>"
20845 msgstr ""
20846
20847 #. type: textblock
20848 #: ../fish/guestfish.pod:555
20849 msgid "The size in SI 1000 byte units."
20850 msgstr ""
20851
20852 #. type: =item
20853 #: ../fish/guestfish.pod:557
20854 msgid "B<M> or B<MiB>"
20855 msgstr ""
20856
20857 #. type: textblock
20858 #: ../fish/guestfish.pod:559
20859 msgid "The size in megabytes (multiplied by 1048576)."
20860 msgstr ""
20861
20862 #. type: =item
20863 #: ../fish/guestfish.pod:561
20864 msgid "B<MB>"
20865 msgstr ""
20866
20867 #. type: textblock
20868 #: ../fish/guestfish.pod:563
20869 msgid "The size in SI 1000000 byte units."
20870 msgstr ""
20871
20872 #. type: =item
20873 #: ../fish/guestfish.pod:565
20874 msgid "B<G> or B<GiB>"
20875 msgstr ""
20876
20877 #. type: textblock
20878 #: ../fish/guestfish.pod:567
20879 msgid "The size in gigabytes (multiplied by 2**30)."
20880 msgstr ""
20881
20882 #. type: =item
20883 #: ../fish/guestfish.pod:569
20884 msgid "B<GB>"
20885 msgstr ""
20886
20887 #. type: textblock
20888 #: ../fish/guestfish.pod:571
20889 msgid "The size in SI 10**9 byte units."
20890 msgstr ""
20891
20892 #. type: =item
20893 #: ../fish/guestfish.pod:573
20894 msgid "B<T> or B<TiB>"
20895 msgstr ""
20896
20897 #. type: textblock
20898 #: ../fish/guestfish.pod:575
20899 msgid "The size in terabytes (multiplied by 2**40)."
20900 msgstr ""
20901
20902 #. type: =item
20903 #: ../fish/guestfish.pod:577
20904 msgid "B<TB>"
20905 msgstr ""
20906
20907 #. type: textblock
20908 #: ../fish/guestfish.pod:579
20909 msgid "The size in SI 10**12 byte units."
20910 msgstr ""
20911
20912 #. type: =item
20913 #: ../fish/guestfish.pod:581
20914 msgid "B<P> or B<PiB>"
20915 msgstr ""
20916
20917 #. type: textblock
20918 #: ../fish/guestfish.pod:583
20919 msgid "The size in petabytes (multiplied by 2**50)."
20920 msgstr ""
20921
20922 #. type: =item
20923 #: ../fish/guestfish.pod:585
20924 msgid "B<PB>"
20925 msgstr ""
20926
20927 #. type: textblock
20928 #: ../fish/guestfish.pod:587
20929 msgid "The size in SI 10**15 byte units."
20930 msgstr ""
20931
20932 #. type: =item
20933 #: ../fish/guestfish.pod:589
20934 msgid "B<E> or B<EiB>"
20935 msgstr ""
20936
20937 #. type: textblock
20938 #: ../fish/guestfish.pod:591
20939 msgid "The size in exabytes (multiplied by 2**60)."
20940 msgstr ""
20941
20942 #. type: =item
20943 #: ../fish/guestfish.pod:593
20944 msgid "B<EB>"
20945 msgstr ""
20946
20947 #. type: textblock
20948 #: ../fish/guestfish.pod:595
20949 msgid "The size in SI 10**18 byte units."
20950 msgstr ""
20951
20952 #. type: =item
20953 #: ../fish/guestfish.pod:597
20954 msgid "B<Z> or B<ZiB>"
20955 msgstr ""
20956
20957 #. type: textblock
20958 #: ../fish/guestfish.pod:599
20959 msgid "The size in zettabytes (multiplied by 2**70)."
20960 msgstr ""
20961
20962 #. type: =item
20963 #: ../fish/guestfish.pod:601
20964 msgid "B<ZB>"
20965 msgstr ""
20966
20967 #. type: textblock
20968 #: ../fish/guestfish.pod:603
20969 msgid "The size in SI 10**21 byte units."
20970 msgstr ""
20971
20972 #. type: =item
20973 #: ../fish/guestfish.pod:605
20974 msgid "B<Y> or B<YiB>"
20975 msgstr ""
20976
20977 #. type: textblock
20978 #: ../fish/guestfish.pod:607
20979 msgid "The size in yottabytes (multiplied by 2**80)."
20980 msgstr ""
20981
20982 #. type: =item
20983 #: ../fish/guestfish.pod:609
20984 msgid "B<YB>"
20985 msgstr ""
20986
20987 #. type: textblock
20988 #: ../fish/guestfish.pod:611
20989 msgid "The size in SI 10**24 byte units."
20990 msgstr ""
20991
20992 #. type: verbatim
20993 #: ../fish/guestfish.pod:617
20994 #, no-wrap
20995 msgid ""
20996 " truncate-size /file 1G\n"
20997 "\n"
20998 msgstr ""
20999
21000 #. type: textblock
21001 #: ../fish/guestfish.pod:619
21002 msgid "would truncate the file to 1 gigabyte."
21003 msgstr ""
21004
21005 #. type: textblock
21006 #: ../fish/guestfish.pod:621
21007 msgid ""
21008 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
21009 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
21010 "suffix will probably not do what you expect."
21011 msgstr ""
21012
21013 #. type: =head2
21014 #: ../fish/guestfish.pod:625
21015 msgid "OCTAL AND HEXADECIMAL NUMBERS"
21016 msgstr ""
21017
21018 #. type: textblock
21019 #: ../fish/guestfish.pod:627
21020 msgid ""
21021 "For specifying the radix (base) use the C convention: C<0> to prefix an "
21022 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
21023 msgstr ""
21024
21025 #. type: verbatim
21026 #: ../fish/guestfish.pod:630
21027 #, no-wrap
21028 msgid ""
21029 " 1234      decimal number 1234\n"
21030 " 02322     octal number, equivalent to decimal 1234\n"
21031 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
21032 "\n"
21033 msgstr ""
21034
21035 #. type: textblock
21036 #: ../fish/guestfish.pod:634
21037 msgid ""
21038 "When using the C<chmod> command, you almost always want to specify an octal "
21039 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
21040 "L<chmod(1)> program):"
21041 msgstr ""
21042
21043 #. type: verbatim
21044 #: ../fish/guestfish.pod:638
21045 #, no-wrap
21046 msgid ""
21047 " chmod 0777 /public  # OK\n"
21048 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
21049 "\n"
21050 msgstr ""
21051
21052 #. type: textblock
21053 #: ../fish/guestfish.pod:641
21054 msgid ""
21055 "Commands that return numbers usually print them in decimal, but some "
21056 "commands print numbers in other radices (eg. C<umask> prints the mode in "
21057 "octal, preceeded by C<0>)."
21058 msgstr ""
21059
21060 #. type: =head1
21061 #: ../fish/guestfish.pod:645
21062 msgid "WILDCARDS AND GLOBBING"
21063 msgstr ""
21064
21065 #. type: textblock
21066 #: ../fish/guestfish.pod:647
21067 msgid ""
21068 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
21069 "(globbing) by default.  So for example the following will not do what you "
21070 "expect:"
21071 msgstr ""
21072
21073 #. type: verbatim
21074 #: ../fish/guestfish.pod:651
21075 #, no-wrap
21076 msgid ""
21077 " rm-rf /home/*\n"
21078 "\n"
21079 msgstr ""
21080
21081 #. type: textblock
21082 #: ../fish/guestfish.pod:653
21083 msgid ""
21084 "Assuming you don't have a directory called literally C</home/*> then the "
21085 "above command will return an error."
21086 msgstr ""
21087
21088 #. type: textblock
21089 #: ../fish/guestfish.pod:656
21090 msgid "To perform wildcard expansion, use the C<glob> command."
21091 msgstr ""
21092
21093 #. type: verbatim
21094 #: ../fish/guestfish.pod:658
21095 #, no-wrap
21096 msgid ""
21097 " glob rm-rf /home/*\n"
21098 "\n"
21099 msgstr ""
21100
21101 #. type: textblock
21102 #: ../fish/guestfish.pod:660
21103 msgid ""
21104 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
21105 "many times), equivalent to:"
21106 msgstr ""
21107
21108 #. type: verbatim
21109 #: ../fish/guestfish.pod:663
21110 #, no-wrap
21111 msgid ""
21112 " rm-rf /home/jim\n"
21113 " rm-rf /home/joe\n"
21114 " rm-rf /home/mary\n"
21115 "\n"
21116 msgstr ""
21117
21118 #. type: textblock
21119 #: ../fish/guestfish.pod:667
21120 msgid "C<glob> only works on simple guest paths and not on device names."
21121 msgstr ""
21122
21123 #. type: textblock
21124 #: ../fish/guestfish.pod:669
21125 msgid ""
21126 "If you have several parameters, each containing a wildcard, then glob will "
21127 "perform a Cartesian product."
21128 msgstr ""
21129
21130 #. type: =head1
21131 #: ../fish/guestfish.pod:672
21132 msgid "COMMENTS"
21133 msgstr ""
21134
21135 #. type: textblock
21136 #: ../fish/guestfish.pod:674
21137 msgid ""
21138 "Any line which starts with a I<#> character is treated as a comment and "
21139 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
21140 "a command.  For example:"
21141 msgstr ""
21142
21143 #. type: verbatim
21144 #: ../fish/guestfish.pod:678
21145 #, no-wrap
21146 msgid ""
21147 " # this is a comment\n"
21148 "         # this is a comment\n"
21149 " foo # NOT a comment\n"
21150 "\n"
21151 msgstr ""
21152
21153 #. type: textblock
21154 #: ../fish/guestfish.pod:682
21155 msgid "Blank lines are also ignored."
21156 msgstr ""
21157
21158 #. type: =head1
21159 #: ../fish/guestfish.pod:684
21160 msgid "RUNNING COMMANDS LOCALLY"
21161 msgstr ""
21162
21163 #. type: textblock
21164 #: ../fish/guestfish.pod:686
21165 msgid ""
21166 "Any line which starts with a I<!> character is treated as a command sent to "
21167 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
21168 msgstr ""
21169
21170 #. type: verbatim
21171 #: ../fish/guestfish.pod:690
21172 #, no-wrap
21173 msgid ""
21174 " !mkdir local\n"
21175 " tgz-out /remote local/remote-data.tar.gz\n"
21176 "\n"
21177 msgstr ""
21178
21179 #. type: textblock
21180 #: ../fish/guestfish.pod:693
21181 msgid ""
21182 "will create a directory C<local> on the host, and then export the contents "
21183 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
21184 "(See C<tgz-out>)."
21185 msgstr ""
21186
21187 #. type: textblock
21188 #: ../fish/guestfish.pod:697
21189 msgid ""
21190 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
21191 "effect, due to the way that subprocesses work in Unix."
21192 msgstr ""
21193
21194 #. type: =head2
21195 #: ../fish/guestfish.pod:700
21196 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
21197 msgstr ""
21198
21199 #. type: textblock
21200 #: ../fish/guestfish.pod:702
21201 msgid ""
21202 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
21203 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
21204 "and executed as guestfish commands."
21205 msgstr ""
21206
21207 #. type: textblock
21208 #: ../fish/guestfish.pod:706
21209 msgid ""
21210 "Thus you can use shell script to construct arbitrary guestfish commands "
21211 "which are then parsed by guestfish."
21212 msgstr ""
21213
21214 #. type: textblock
21215 #: ../fish/guestfish.pod:709
21216 msgid ""
21217 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
21218 "through C</foo.100>) using guestfish commands alone.  However this is simple "
21219 "if we use a shell script to create the guestfish commands for us:"
21220 msgstr ""
21221
21222 #. type: verbatim
21223 #: ../fish/guestfish.pod:714
21224 #, no-wrap
21225 msgid ""
21226 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
21227 "\n"
21228 msgstr ""
21229
21230 #. type: textblock
21231 #: ../fish/guestfish.pod:716
21232 msgid "or with names like C</foo.001>:"
21233 msgstr ""
21234
21235 #. type: verbatim
21236 #: ../fish/guestfish.pod:718
21237 #, no-wrap
21238 msgid ""
21239 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
21240 "\n"
21241 msgstr ""
21242
21243 #. type: textblock
21244 #: ../fish/guestfish.pod:720
21245 msgid ""
21246 "When using guestfish interactively it can be helpful to just run the shell "
21247 "script first (ie. remove the initial C<E<lt>> character so it is just an "
21248 "ordinary I<!> local command), see what guestfish commands it would run, and "
21249 "when you are happy with those prepend the C<E<lt>> character to run the "
21250 "guestfish commands for real."
21251 msgstr ""
21252
21253 #. type: =head1
21254 #: ../fish/guestfish.pod:726
21255 msgid "PIPES"
21256 msgstr ""
21257
21258 #. type: textblock
21259 #: ../fish/guestfish.pod:728
21260 msgid ""
21261 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
21262 "command (a guestfish command) to the second command (any host command).  For "
21263 "example:"
21264 msgstr ""
21265
21266 #. type: verbatim
21267 #: ../fish/guestfish.pod:732
21268 #, no-wrap
21269 msgid ""
21270 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
21271 "\n"
21272 msgstr ""
21273
21274 #. type: textblock
21275 #: ../fish/guestfish.pod:734
21276 msgid ""
21277 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
21278 "program).  The above command would list all accounts in the guest filesystem "
21279 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
21280 msgstr ""
21281
21282 #. type: verbatim
21283 #: ../fish/guestfish.pod:739
21284 #, no-wrap
21285 msgid ""
21286 " hexdump /bin/ls | head\n"
21287 " list-devices | tail -1\n"
21288 " tgz-out / - | tar ztf -\n"
21289 "\n"
21290 msgstr ""
21291
21292 #. type: textblock
21293 #: ../fish/guestfish.pod:743
21294 msgid ""
21295 "The space before the pipe symbol is required, any space after the pipe "
21296 "symbol is optional.  Everything after the pipe symbol is just passed "
21297 "straight to the host shell, so it can contain redirections, globs and "
21298 "anything else that makes sense on the host side."
21299 msgstr ""
21300
21301 #. type: textblock
21302 #: ../fish/guestfish.pod:748
21303 msgid ""
21304 "To use a literal argument which begins with a pipe symbol, you have to quote "
21305 "it, eg:"
21306 msgstr ""
21307
21308 #. type: verbatim
21309 #: ../fish/guestfish.pod:751
21310 #, no-wrap
21311 msgid ""
21312 " echo \"|\"\n"
21313 "\n"
21314 msgstr ""
21315
21316 #. type: =head1
21317 #: ../fish/guestfish.pod:753
21318 msgid "HOME DIRECTORIES"
21319 msgstr ""
21320
21321 #. type: textblock
21322 #: ../fish/guestfish.pod:755
21323 msgid ""
21324 "If a parameter starts with the character C<~> then the tilde may be expanded "
21325 "as a home directory path (either C<~> for the current user's home directory, "
21326 "or C<~user> for another user)."
21327 msgstr ""
21328
21329 #. type: textblock
21330 #: ../fish/guestfish.pod:759
21331 msgid ""
21332 "Note that home directory expansion happens for users known I<on the host>, "
21333 "not in the guest filesystem."
21334 msgstr ""
21335
21336 #. type: textblock
21337 #: ../fish/guestfish.pod:762
21338 msgid ""
21339 "To use a literal argument which begins with a tilde, you have to quote it, "
21340 "eg:"
21341 msgstr ""
21342
21343 #. type: verbatim
21344 #: ../fish/guestfish.pod:765
21345 #, no-wrap
21346 msgid ""
21347 " echo \"~\"\n"
21348 "\n"
21349 msgstr ""
21350
21351 #. type: textblock
21352 #: ../fish/guestfish.pod:769
21353 msgid ""
21354 "Libguestfs has some support for Linux guests encrypted according to the "
21355 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
21356 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
21357 "LUKS is supported."
21358 msgstr ""
21359
21360 #. type: textblock
21361 #: ../fish/guestfish.pod:774
21362 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
21363 msgstr ""
21364
21365 #. type: verbatim
21366 #: ../fish/guestfish.pod:776
21367 #, no-wrap
21368 msgid ""
21369 " ><fs> vfs-type /dev/sda2\n"
21370 " crypto_LUKS\n"
21371 "\n"
21372 msgstr ""
21373
21374 #. type: textblock
21375 #: ../fish/guestfish.pod:779
21376 msgid ""
21377 "Then open those devices using L</luks-open>.  This creates a device-mapper "
21378 "device called C</dev/mapper/luksdev>."
21379 msgstr ""
21380
21381 #. type: verbatim
21382 #: ../fish/guestfish.pod:782
21383 #, no-wrap
21384 msgid ""
21385 " ><fs> luks-open /dev/sda2 luksdev\n"
21386 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
21387 "\n"
21388 msgstr ""
21389
21390 #. type: textblock
21391 #: ../fish/guestfish.pod:785
21392 msgid ""
21393 "Finally you have to tell LVM to scan for volume groups on the newly created "
21394 "mapper device:"
21395 msgstr ""
21396
21397 #. type: verbatim
21398 #: ../fish/guestfish.pod:788
21399 #, no-wrap
21400 msgid ""
21401 " vgscan\n"
21402 " vg-activate-all true\n"
21403 "\n"
21404 msgstr ""
21405
21406 #. type: textblock
21407 #: ../fish/guestfish.pod:791
21408 msgid "The logical volume(s) can now be mounted in the usual way."
21409 msgstr ""
21410
21411 #. type: textblock
21412 #: ../fish/guestfish.pod:793
21413 msgid ""
21414 "Before closing a LUKS device you must unmount any logical volumes on it and "
21415 "deactivate the volume groups by calling C<vg-activate false VG> on each "
21416 "one.  Then you can close the mapper device:"
21417 msgstr ""
21418
21419 #. type: verbatim
21420 #: ../fish/guestfish.pod:797
21421 #, no-wrap
21422 msgid ""
21423 " vg-activate false /dev/VG\n"
21424 " luks-close /dev/mapper/luksdev\n"
21425 "\n"
21426 msgstr ""
21427
21428 #. type: =head1
21429 #: ../fish/guestfish.pod:800
21430 msgid "WINDOWS PATHS"
21431 msgstr ""
21432
21433 #. type: textblock
21434 #: ../fish/guestfish.pod:802
21435 msgid ""
21436 "If a path is prefixed with C<win:> then you can use Windows-style drive "
21437 "letters and paths (with some limitations).  The following commands are "
21438 "equivalent:"
21439 msgstr ""
21440
21441 #. type: verbatim
21442 #: ../fish/guestfish.pod:806
21443 #, no-wrap
21444 msgid ""
21445 " file /WINDOWS/system32/config/system.LOG\n"
21446 "\n"
21447 msgstr ""
21448
21449 #. type: verbatim
21450 #: ../fish/guestfish.pod:808
21451 #, no-wrap
21452 msgid ""
21453 " file win:\\windows\\system32\\config\\system.log\n"
21454 "\n"
21455 msgstr ""
21456
21457 #. type: verbatim
21458 #: ../fish/guestfish.pod:810
21459 #, no-wrap
21460 msgid ""
21461 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
21462 "\n"
21463 msgstr ""
21464
21465 #. type: textblock
21466 #: ../fish/guestfish.pod:812
21467 msgid ""
21468 "The parameter is rewritten \"behind the scenes\" by looking up the position "
21469 "where the drive is mounted, prepending that to the path, changing all "
21470 "backslash characters to forward slash, then resolving the result using L</"
21471 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
21472 "the parameter might be rewritten like this:"
21473 msgstr ""
21474
21475 #. type: verbatim
21476 #: ../fish/guestfish.pod:818
21477 #, no-wrap
21478 msgid ""
21479 " win:e:\\foo\\bar => /e/FOO/bar\n"
21480 "\n"
21481 msgstr ""
21482
21483 #. type: textblock
21484 #: ../fish/guestfish.pod:820
21485 msgid "This only works in argument positions that expect a path."
21486 msgstr ""
21487
21488 #. type: =head1
21489 #: ../fish/guestfish.pod:822
21490 msgid "UPLOADING AND DOWNLOADING FILES"
21491 msgstr ""
21492
21493 #. type: textblock
21494 #: ../fish/guestfish.pod:824
21495 msgid ""
21496 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
21497 "others which upload from or download to a local file, you can use the "
21498 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
21499 msgstr ""
21500
21501 #. type: verbatim
21502 #: ../fish/guestfish.pod:828
21503 #, no-wrap
21504 msgid ""
21505 " upload - /foo\n"
21506 "\n"
21507 msgstr ""
21508
21509 #. type: textblock
21510 #: ../fish/guestfish.pod:830
21511 msgid ""
21512 "reads stdin and creates from that a file C</foo> in the disk image, and:"
21513 msgstr ""
21514
21515 #. type: verbatim
21516 #: ../fish/guestfish.pod:833
21517 #, no-wrap
21518 msgid ""
21519 " tar-out /etc - | tar tf -\n"
21520 "\n"
21521 msgstr ""
21522
21523 #. type: textblock
21524 #: ../fish/guestfish.pod:835
21525 msgid ""
21526 "writes the tarball to stdout and then pipes that into the external \"tar\" "
21527 "command (see L</PIPES>)."
21528 msgstr ""
21529
21530 #. type: textblock
21531 #: ../fish/guestfish.pod:838
21532 msgid ""
21533 "When using C<-> to read from stdin, the input is read up to the end of "
21534 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
21535 "some arbitrary end marker:"
21536 msgstr ""
21537
21538 #. type: verbatim
21539 #: ../fish/guestfish.pod:842
21540 #, no-wrap
21541 msgid ""
21542 " upload -<<END /foo\n"
21543 " input line 1\n"
21544 " input line 2\n"
21545 " input line 3\n"
21546 " END\n"
21547 "\n"
21548 msgstr ""
21549
21550 #. type: textblock
21551 #: ../fish/guestfish.pod:848
21552 msgid ""
21553 "Any string of characters can be used instead of C<END>.  The end marker must "
21554 "appear on a line of its own, without any preceeding or following characters "
21555 "(not even spaces)."
21556 msgstr ""
21557
21558 #. type: textblock
21559 #: ../fish/guestfish.pod:852
21560 msgid ""
21561 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
21562 "upload local files (so-called \"FileIn\" parameters in the generator)."
21563 msgstr ""
21564
21565 #. type: =head1
21566 #: ../fish/guestfish.pod:855
21567 msgid "EXIT ON ERROR BEHAVIOUR"
21568 msgstr ""
21569
21570 #. type: textblock
21571 #: ../fish/guestfish.pod:857
21572 msgid ""
21573 "By default, guestfish will ignore any errors when in interactive mode (ie. "
21574 "taking commands from a human over a tty), and will exit on the first error "
21575 "in non-interactive mode (scripts, commands given on the command line)."
21576 msgstr ""
21577
21578 #. type: textblock
21579 #: ../fish/guestfish.pod:862
21580 msgid ""
21581 "If you prefix a command with a I<-> character, then that command will not "
21582 "cause guestfish to exit, even if that (one) command returns an error."
21583 msgstr ""
21584
21585 #. type: =head1
21586 #: ../fish/guestfish.pod:866
21587 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
21588 msgstr ""
21589
21590 #. type: textblock
21591 #: ../fish/guestfish.pod:868
21592 msgid ""
21593 "Guestfish can be remote-controlled over a socket.  This is useful "
21594 "particularly in shell scripts where you want to make several different "
21595 "changes to a filesystem, but you don't want the overhead of starting up a "
21596 "guestfish process each time."
21597 msgstr ""
21598
21599 #. type: textblock
21600 #: ../fish/guestfish.pod:873
21601 msgid "Start a guestfish server process using:"
21602 msgstr ""
21603
21604 #. type: verbatim
21605 #: ../fish/guestfish.pod:875
21606 #, no-wrap
21607 msgid ""
21608 " eval \"`guestfish --listen`\"\n"
21609 "\n"
21610 msgstr ""
21611
21612 #. type: textblock
21613 #: ../fish/guestfish.pod:877
21614 msgid "and then send it commands by doing:"
21615 msgstr ""
21616
21617 #. type: verbatim
21618 #: ../fish/guestfish.pod:879
21619 #, no-wrap
21620 msgid ""
21621 " guestfish --remote cmd [...]\n"
21622 "\n"
21623 msgstr ""
21624
21625 #. type: textblock
21626 #: ../fish/guestfish.pod:881
21627 msgid "To cause the server to exit, send it the exit command:"
21628 msgstr ""
21629
21630 #. type: verbatim
21631 #: ../fish/guestfish.pod:883
21632 #, no-wrap
21633 msgid ""
21634 " guestfish --remote exit\n"
21635 "\n"
21636 msgstr ""
21637
21638 #. type: textblock
21639 #: ../fish/guestfish.pod:885
21640 msgid ""
21641 "Note that the server will normally exit if there is an error in a command.  "
21642 "You can change this in the usual way.  See section L</EXIT ON ERROR "
21643 "BEHAVIOUR>."
21644 msgstr ""
21645
21646 #. type: =head2
21647 #: ../fish/guestfish.pod:889
21648 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
21649 msgstr ""
21650
21651 #. type: textblock
21652 #: ../fish/guestfish.pod:891
21653 msgid ""
21654 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
21655 "is how the I<--remote> option knows where to send the commands.  You can "
21656 "have several guestfish listener processes running using:"
21657 msgstr ""
21658
21659 #. type: verbatim
21660 #: ../fish/guestfish.pod:895
21661 #, no-wrap
21662 msgid ""
21663 " eval \"`guestfish --listen`\"\n"
21664 " pid1=$GUESTFISH_PID\n"
21665 " eval \"`guestfish --listen`\"\n"
21666 " pid2=$GUESTFISH_PID\n"
21667 " ...\n"
21668 " guestfish --remote=$pid1 cmd\n"
21669 " guestfish --remote=$pid2 cmd\n"
21670 "\n"
21671 msgstr ""
21672
21673 #. type: =head2
21674 #: ../fish/guestfish.pod:903
21675 msgid "REMOTE CONTROL AND CSH"
21676 msgstr ""
21677
21678 #. type: textblock
21679 #: ../fish/guestfish.pod:905
21680 msgid ""
21681 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
21682 "option:"
21683 msgstr ""
21684
21685 #. type: verbatim
21686 #: ../fish/guestfish.pod:908
21687 #, no-wrap
21688 msgid ""
21689 " eval \"`guestfish --listen --csh`\"\n"
21690 "\n"
21691 msgstr ""
21692
21693 #. type: =head2
21694 #: ../fish/guestfish.pod:910
21695 msgid "REMOTE CONTROL DETAILS"
21696 msgstr ""
21697
21698 #. type: textblock
21699 #: ../fish/guestfish.pod:912
21700 msgid ""
21701 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
21702 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
21703 "and C<$PID> is the process ID of the server."
21704 msgstr ""
21705
21706 #. type: textblock
21707 #: ../fish/guestfish.pod:916
21708 msgid "Guestfish client and server versions must match exactly."
21709 msgstr ""
21710
21711 #. type: =head1
21712 #: ../fish/guestfish.pod:918
21713 msgid "PREPARED DISK IMAGES"
21714 msgstr ""
21715
21716 #. type: textblock
21717 #: ../fish/guestfish.pod:920
21718 msgid ""
21719 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
21720 "preformatted disk images that guestfish can make for you to save typing.  "
21721 "This is particularly useful for testing purposes.  This option is used "
21722 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
21723 "can be mixed with I<-a>)."
21724 msgstr ""
21725
21726 #. type: textblock
21727 #: ../fish/guestfish.pod:926
21728 msgid ""
21729 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
21730 "the second and so on.  Existing files in the current directory are "
21731 "I<overwritten>."
21732 msgstr ""
21733
21734 #. type: textblock
21735 #: ../fish/guestfish.pod:930
21736 msgid ""
21737 "The type briefly describes how the disk should be sized, partitioned, how "
21738 "filesystem(s) should be created, and how content should be added.  "
21739 "Optionally the type can be followed by extra parameters, separated by C<:> "
21740 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
21741 "allocated disk, containing a single partition, with the partition formatted "
21742 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
21743 "disk instead."
21744 msgstr ""
21745
21746 #. type: textblock
21747 #: ../fish/guestfish.pod:938
21748 msgid "To list the available types and any extra parameters they take, run:"
21749 msgstr ""
21750
21751 #. type: textblock
21752 #: ../fish/guestfish.pod:942
21753 msgid ""
21754 "Note that the prepared filesystem is not mounted.  You would usually have to "
21755 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
21756 msgstr ""
21757
21758 #. type: textblock
21759 #: ../fish/guestfish.pod:946
21760 msgid ""
21761 "If any I<-N> or I<--new> options are given, the guest is automatically "
21762 "launched."
21763 msgstr ""
21764
21765 #. type: textblock
21766 #: ../fish/guestfish.pod:951
21767 msgid "Create a 100MB disk with an ext4-formatted partition:"
21768 msgstr ""
21769
21770 #. type: verbatim
21771 #: ../fish/guestfish.pod:953
21772 #, no-wrap
21773 msgid ""
21774 " guestfish -N fs:ext4\n"
21775 "\n"
21776 msgstr ""
21777
21778 #. type: textblock
21779 #: ../fish/guestfish.pod:955
21780 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
21781 msgstr ""
21782
21783 #. type: verbatim
21784 #: ../fish/guestfish.pod:957
21785 #, no-wrap
21786 msgid ""
21787 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
21788 "\n"
21789 msgstr ""
21790
21791 #. type: textblock
21792 #: ../fish/guestfish.pod:959
21793 msgid "Create a blank 200MB disk:"
21794 msgstr ""
21795
21796 #. type: verbatim
21797 #: ../fish/guestfish.pod:961
21798 #, no-wrap
21799 msgid ""
21800 " guestfish -N disk:200M\n"
21801 "\n"
21802 msgstr ""
21803
21804 #. type: =head1
21805 #: ../fish/guestfish.pod:963
21806 msgid "PROGRESS BARS"
21807 msgstr ""
21808
21809 #. type: textblock
21810 #: ../fish/guestfish.pod:965
21811 msgid ""
21812 "Some (not all) long-running commands send progress notification messages as "
21813 "they are running.  Guestfish turns these messages into progress bars."
21814 msgstr ""
21815
21816 #. type: textblock
21817 #: ../fish/guestfish.pod:969
21818 msgid ""
21819 "When a command that supports progress bars takes longer than two seconds to "
21820 "run, and if progress bars are enabled, then you will see one appearing below "
21821 "the command:"
21822 msgstr ""
21823
21824 #. type: verbatim
21825 #: ../fish/guestfish.pod:973
21826 #, no-wrap
21827 msgid ""
21828 " ><fs> copy-size /large-file /another-file 2048M\n"
21829 " / 10% [#####-----------------------------------------] 00:30\n"
21830 "\n"
21831 msgstr ""
21832
21833 #. type: textblock
21834 #: ../fish/guestfish.pod:976
21835 msgid ""
21836 "The spinner on the left hand side moves round once for every progress "
21837 "notification received from the backend.  This is a (reasonably) golden "
21838 "assurance that the command is \"doing something\" even if the progress bar "
21839 "is not moving, because the command is able to send the progress "
21840 "notifications.  When the bar reaches 100% and the command finishes, the "
21841 "spinner disappears."
21842 msgstr ""
21843
21844 #. type: textblock
21845 #: ../fish/guestfish.pod:983
21846 msgid ""
21847 "Progress bars are enabled by default when guestfish is used interactively.  "
21848 "You can enable them even for non-interactive modes using I<--progress-bars>, "
21849 "and you can disable them completely using I<--no-progress-bars>."
21850 msgstr ""
21851
21852 #. type: =head1
21853 #: ../fish/guestfish.pod:988
21854 msgid "GUESTFISH COMMANDS"
21855 msgstr ""
21856
21857 #. type: textblock
21858 #: ../fish/guestfish.pod:990
21859 msgid ""
21860 "The commands in this section are guestfish convenience commands, in other "
21861 "words, they are not part of the L<guestfs(3)> API."
21862 msgstr ""
21863
21864 #. type: =head2
21865 #: ../fish/guestfish.pod:993
21866 msgid "help"
21867 msgstr ""
21868
21869 #. type: verbatim
21870 #: ../fish/guestfish.pod:995
21871 #, no-wrap
21872 msgid ""
21873 " help\n"
21874 " help cmd\n"
21875 "\n"
21876 msgstr ""
21877
21878 #. type: textblock
21879 #: ../fish/guestfish.pod:998
21880 msgid "Without any parameter, this provides general help."
21881 msgstr ""
21882
21883 #. type: textblock
21884 #: ../fish/guestfish.pod:1000
21885 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21886 msgstr ""
21887
21888 #. type: =head2
21889 #: ../fish/guestfish.pod:1002
21890 msgid "quit | exit"
21891 msgstr ""
21892
21893 #. type: textblock
21894 #: ../fish/guestfish.pod:1004
21895 msgid "This exits guestfish.  You can also use C<^D> key."
21896 msgstr ""
21897
21898 #. type: textblock
21899 #: ../fish/guestfish.pod:1006
21900 msgid "@FISH_COMMANDS@"
21901 msgstr ""
21902
21903 #. type: =head1
21904 #: ../fish/guestfish.pod:1008
21905 msgid "COMMANDS"
21906 msgstr ""
21907
21908 #. type: =head1
21909 #: ../fish/guestfish.pod:1012 ../test-tool/libguestfs-test-tool.pod:77
21910 msgid "EXIT CODE"
21911 msgstr ""
21912
21913 #. type: textblock
21914 #: ../fish/guestfish.pod:1014
21915 msgid ""
21916 "guestfish returns 0 if the commands completed without error, or 1 if there "
21917 "was an error."
21918 msgstr ""
21919
21920 #. type: =item
21921 #: ../fish/guestfish.pod:1021
21922 msgid "EDITOR"
21923 msgstr ""
21924
21925 #. type: textblock
21926 #: ../fish/guestfish.pod:1023
21927 msgid ""
21928 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
21929 "C<vi>."
21930 msgstr ""
21931
21932 #. type: =item
21933 #: ../fish/guestfish.pod:1026
21934 msgid "GUESTFISH_DISPLAY_IMAGE"
21935 msgstr ""
21936
21937 #. type: textblock
21938 #: ../fish/guestfish.pod:1028
21939 msgid ""
21940 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
21941 "If not set, it uses L<display(1)>."
21942 msgstr ""
21943
21944 #. type: =item
21945 #: ../fish/guestfish.pod:1031
21946 msgid "GUESTFISH_PID"
21947 msgstr ""
21948
21949 #. type: textblock
21950 #: ../fish/guestfish.pod:1033
21951 msgid ""
21952 "Used with the I<--remote> option to specify the remote guestfish process to "
21953 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21954 msgstr ""
21955
21956 #. type: =item
21957 #: ../fish/guestfish.pod:1037
21958 msgid "HEXEDITOR"
21959 msgstr ""
21960
21961 #. type: textblock
21962 #: ../fish/guestfish.pod:1039
21963 msgid ""
21964 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
21965 "not specified, the external L<hexedit(1)> program is used."
21966 msgstr ""
21967
21968 #. type: =item
21969 #: ../fish/guestfish.pod:1043
21970 msgid "HOME"
21971 msgstr ""
21972
21973 #. type: textblock
21974 #: ../fish/guestfish.pod:1045
21975 msgid ""
21976 "If compiled with GNU readline support, various files in the home directory "
21977 "can be used.  See L</FILES>."
21978 msgstr ""
21979
21980 #. type: textblock
21981 #: ../fish/guestfish.pod:1054
21982 msgid ""
21983 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
21984 "effect as using the B<-v> option."
21985 msgstr ""
21986
21987 #. type: textblock
21988 #: ../fish/guestfish.pod:1066
21989 msgid ""
21990 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
21991 "the discussion of paths in L<guestfs(3)>."
21992 msgstr ""
21993
21994 #. type: textblock
21995 #: ../fish/guestfish.pod:1077
21996 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21997 msgstr ""
21998
21999 #. type: =item
22000 #: ../fish/guestfish.pod:1079
22001 msgid "PAGER"
22002 msgstr ""
22003
22004 #. type: textblock
22005 #: ../fish/guestfish.pod:1081
22006 msgid ""
22007 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
22008 "C<more>."
22009 msgstr ""
22010
22011 #. type: =head1
22012 #: ../fish/guestfish.pod:1097 ../fuse/guestmount.pod:264
22013 msgid "FILES"
22014 msgstr ""
22015
22016 #. type: =item
22017 #: ../fish/guestfish.pod:1101 ../fuse/guestmount.pod:268
22018 msgid "$HOME/.libguestfs-tools.rc"
22019 msgstr ""
22020
22021 #. type: =item
22022 #: ../fish/guestfish.pod:1103 ../fuse/guestmount.pod:270
22023 msgid "/etc/libguestfs-tools.conf"
22024 msgstr ""
22025
22026 #. type: textblock
22027 #: ../fish/guestfish.pod:1105 ../fuse/guestmount.pod:272
22028 msgid ""
22029 "This configuration file controls the default read-only or read-write mode "
22030 "(I<--ro> or I<--rw>)."
22031 msgstr ""
22032
22033 #. type: textblock
22034 #: ../fish/guestfish.pod:1108
22035 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
22036 msgstr ""
22037
22038 #. type: =item
22039 #: ../fish/guestfish.pod:1110
22040 msgid "$HOME/.guestfish"
22041 msgstr ""
22042
22043 #. type: textblock
22044 #: ../fish/guestfish.pod:1112
22045 msgid ""
22046 "If compiled with GNU readline support, then the command history is saved in "
22047 "this file."
22048 msgstr ""
22049
22050 #. type: =item
22051 #: ../fish/guestfish.pod:1115
22052 msgid "$HOME/.inputrc"
22053 msgstr ""
22054
22055 #. type: =item
22056 #: ../fish/guestfish.pod:1117
22057 msgid "/etc/inputrc"
22058 msgstr ""
22059
22060 #. type: textblock
22061 #: ../fish/guestfish.pod:1119
22062 msgid ""
22063 "If compiled with GNU readline support, then these files can be used to "
22064 "configure readline.  For further information, please see L<readline(3)/"
22065 "INITIALIZATION FILE>."
22066 msgstr ""
22067
22068 #. type: textblock
22069 #: ../fish/guestfish.pod:1123
22070 msgid "To write rules which only apply to guestfish, use:"
22071 msgstr ""
22072
22073 #. type: verbatim
22074 #: ../fish/guestfish.pod:1125
22075 #, no-wrap
22076 msgid ""
22077 " $if guestfish\n"
22078 " ...\n"
22079 " $endif\n"
22080 "\n"
22081 msgstr ""
22082
22083 #. type: textblock
22084 #: ../fish/guestfish.pod:1129
22085 msgid ""
22086 "Variables that you can set in inputrc that change the behaviour of guestfish "
22087 "in useful ways include:"
22088 msgstr ""
22089
22090 #. type: =item
22091 #: ../fish/guestfish.pod:1134
22092 msgid "completion-ignore-case (default: on)"
22093 msgstr ""
22094
22095 #. type: textblock
22096 #: ../fish/guestfish.pod:1136
22097 msgid ""
22098 "By default, guestfish will ignore case when tab-completing paths on the "
22099 "disk.  Use:"
22100 msgstr ""
22101
22102 #. type: verbatim
22103 #: ../fish/guestfish.pod:1139
22104 #, no-wrap
22105 msgid ""
22106 " set completion-ignore-case off\n"
22107 "\n"
22108 msgstr ""
22109
22110 #. type: textblock
22111 #: ../fish/guestfish.pod:1141
22112 msgid "to make guestfish case sensitive."
22113 msgstr ""
22114
22115 #. type: =item
22116 #: ../fish/guestfish.pod:1145
22117 msgid "test1.img"
22118 msgstr ""
22119
22120 #. type: =item
22121 #: ../fish/guestfish.pod:1147
22122 msgid "test2.img (etc)"
22123 msgstr ""
22124
22125 #. type: textblock
22126 #: ../fish/guestfish.pod:1149
22127 msgid ""
22128 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
22129 "will be created in the file C<test1.img> in the current directory.  The "
22130 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
22131 "the same name will be overwritten."
22132 msgstr ""
22133
22134 #. type: textblock
22135 #: ../fish/guestfish.pod:1158
22136 msgid ""
22137 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
22138 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
22139 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
22140 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
22141 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
22142 ">, L<display(1)>, L<hexedit(1)>."
22143 msgstr ""
22144
22145 #. type: textblock
22146 #: ../fish/guestfish.pod:1189 ../test-tool/libguestfs-test-tool.pod:102
22147 #: ../fuse/guestmount.pod:299 ../tools/virt-win-reg.pl:778
22148 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:309
22149 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:277
22150 msgid ""
22151 "This program is free software; you can redistribute it and/or modify it "
22152 "under the terms of the GNU General Public License as published by the Free "
22153 "Software Foundation; either version 2 of the License, or (at your option) "
22154 "any later version."
22155 msgstr ""
22156
22157 #. type: textblock
22158 #: ../fish/guestfish.pod:1194 ../test-tool/libguestfs-test-tool.pod:107
22159 #: ../fuse/guestmount.pod:304 ../tools/virt-win-reg.pl:783
22160 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:314
22161 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:282
22162 msgid ""
22163 "This program is distributed in the hope that it will be useful, but WITHOUT "
22164 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
22165 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
22166 "more details."
22167 msgstr ""
22168
22169 #. type: textblock
22170 #: ../fish/guestfish.pod:1199 ../test-tool/libguestfs-test-tool.pod:112
22171 #: ../fuse/guestmount.pod:309 ../tools/virt-win-reg.pl:788
22172 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:319
22173 #: ../tools/virt-make-fs.pl:582 ../tools/virt-list-partitions.pl:287
22174 msgid ""
22175 "You should have received a copy of the GNU General Public License along with "
22176 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
22177 "Ave, Cambridge, MA 02139, USA."
22178 msgstr ""
22179
22180 #. type: =head2
22181 #: ../fish/guestfish-actions.pod:1
22182 msgid "add-cdrom"
22183 msgstr ""
22184
22185 #. type: verbatim
22186 #: ../fish/guestfish-actions.pod:3
22187 #, no-wrap
22188 msgid ""
22189 " add-cdrom filename\n"
22190 "\n"
22191 msgstr ""
22192
22193 #. type: textblock
22194 #: ../fish/guestfish-actions.pod:15
22195 msgid ""
22196 "This call checks for the existence of C<filename>.  This stops you from "
22197 "specifying other types of drive which are supported by qemu such as C<nbd:> "
22198 "and C<http:> URLs.  To specify those, use the general L</config> call "
22199 "instead."
22200 msgstr ""
22201
22202 #. type: textblock
22203 #: ../fish/guestfish-actions.pod:22
22204 msgid ""
22205 "If you just want to add an ISO file (often you use this as an efficient way "
22206 "to transfer large files into the guest), then you should probably use L</add-"
22207 "drive-ro> instead."
22208 msgstr ""
22209
22210 #. type: =head2
22211 #: ../fish/guestfish-actions.pod:35
22212 msgid "add-domain"
22213 msgstr ""
22214
22215 #. type: =head2
22216 #: ../fish/guestfish-actions.pod:37
22217 msgid "domain"
22218 msgstr ""
22219
22220 #. type: verbatim
22221 #: ../fish/guestfish-actions.pod:39
22222 #, no-wrap
22223 msgid ""
22224 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
22225 "\n"
22226 msgstr ""
22227
22228 #. type: textblock
22229 #: ../fish/guestfish-actions.pod:41
22230 msgid ""
22231 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
22232 "It works by connecting to libvirt, requesting the domain and domain XML from "
22233 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
22234 msgstr ""
22235
22236 #. type: textblock
22237 #: ../fish/guestfish-actions.pod:76
22238 msgid ""
22239 "The other optional parameters are passed directly through to L</add-drive-"
22240 "opts>."
22241 msgstr ""
22242
22243 #. type: textblock
22244 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
22245 #: ../fish/guestfish-actions.pod:1937 ../fish/guestfish-actions.pod:3077
22246 #: ../fish/guestfish-actions.pod:3250
22247 msgid ""
22248 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
22249 msgstr ""
22250
22251 #. type: =head2
22252 #: ../fish/guestfish-actions.pod:81
22253 msgid "add-drive"
22254 msgstr ""
22255
22256 #. type: verbatim
22257 #: ../fish/guestfish-actions.pod:83
22258 #, no-wrap
22259 msgid ""
22260 " add-drive filename\n"
22261 "\n"
22262 msgstr ""
22263
22264 #. type: textblock
22265 #: ../fish/guestfish-actions.pod:85
22266 msgid ""
22267 "This function is the equivalent of calling L</add-drive-opts> with no "
22268 "optional parameters, so the disk is added writable, with the format being "
22269 "detected automatically."
22270 msgstr ""
22271
22272 #. type: textblock
22273 #: ../fish/guestfish-actions.pod:89
22274 msgid ""
22275 "Automatic detection of the format opens you up to a potential security hole "
22276 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
22277 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
22278 "you should think about replacing calls to this function with calls to L</add-"
22279 "drive-opts>, and specifying the format."
22280 msgstr ""
22281
22282 #. type: =head2
22283 #: ../fish/guestfish-actions.pod:96
22284 msgid "add-drive-opts"
22285 msgstr ""
22286
22287 #. type: =head2
22288 #: ../fish/guestfish-actions.pod:98
22289 msgid "add"
22290 msgstr ""
22291
22292 #. type: verbatim
22293 #: ../fish/guestfish-actions.pod:100
22294 #, no-wrap
22295 msgid ""
22296 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
22297 "\n"
22298 msgstr ""
22299
22300 #. type: textblock
22301 #: ../fish/guestfish-actions.pod:127
22302 msgid ""
22303 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
22304 "add-drive-ro>) then the format is automatically detected.  Possible formats "
22305 "include C<raw> and C<qcow2>."
22306 msgstr ""
22307
22308 #. type: textblock
22309 #: ../fish/guestfish-actions.pod:138
22310 msgid ""
22311 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
22312 "add-drive-with-if> call (q.v.)"
22313 msgstr ""
22314
22315 #. type: =head2
22316 #: ../fish/guestfish-actions.pod:145
22317 msgid "add-drive-ro"
22318 msgstr ""
22319
22320 #. type: =head2
22321 #: ../fish/guestfish-actions.pod:147
22322 msgid "add-ro"
22323 msgstr ""
22324
22325 #. type: verbatim
22326 #: ../fish/guestfish-actions.pod:149
22327 #, no-wrap
22328 msgid ""
22329 " add-drive-ro filename\n"
22330 "\n"
22331 msgstr ""
22332
22333 #. type: textblock
22334 #: ../fish/guestfish-actions.pod:151
22335 msgid ""
22336 "This function is the equivalent of calling L</add-drive-opts> with the "
22337 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
22338 "is added read-only, with the format being detected automatically."
22339 msgstr ""
22340
22341 #. type: =head2
22342 #: ../fish/guestfish-actions.pod:156
22343 msgid "add-drive-ro-with-if"
22344 msgstr ""
22345
22346 #. type: verbatim
22347 #: ../fish/guestfish-actions.pod:158
22348 #, no-wrap
22349 msgid ""
22350 " add-drive-ro-with-if filename iface\n"
22351 "\n"
22352 msgstr ""
22353
22354 #. type: textblock
22355 #: ../fish/guestfish-actions.pod:160
22356 msgid ""
22357 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
22358 "interface emulation to use at run time."
22359 msgstr ""
22360
22361 #. type: =head2
22362 #: ../fish/guestfish-actions.pod:170
22363 msgid "add-drive-with-if"
22364 msgstr ""
22365
22366 #. type: verbatim
22367 #: ../fish/guestfish-actions.pod:172
22368 #, no-wrap
22369 msgid ""
22370 " add-drive-with-if filename iface\n"
22371 "\n"
22372 msgstr ""
22373
22374 #. type: textblock
22375 #: ../fish/guestfish-actions.pod:174
22376 msgid ""
22377 "This is the same as L</add-drive> but it allows you to specify the QEMU "
22378 "interface emulation to use at run time."
22379 msgstr ""
22380
22381 #. type: =head2
22382 #: ../fish/guestfish-actions.pod:184
22383 msgid "aug-clear"
22384 msgstr ""
22385
22386 #. type: verbatim
22387 #: ../fish/guestfish-actions.pod:186
22388 #, no-wrap
22389 msgid ""
22390 " aug-clear augpath\n"
22391 "\n"
22392 msgstr ""
22393
22394 #. type: =head2
22395 #: ../fish/guestfish-actions.pod:191
22396 msgid "aug-close"
22397 msgstr ""
22398
22399 #. type: verbatim
22400 #: ../fish/guestfish-actions.pod:193
22401 #, no-wrap
22402 msgid ""
22403 " aug-close\n"
22404 "\n"
22405 msgstr ""
22406
22407 #. type: textblock
22408 #: ../fish/guestfish-actions.pod:195
22409 msgid ""
22410 "Close the current Augeas handle and free up any resources used by it.  After "
22411 "calling this, you have to call L</aug-init> again before you can use any "
22412 "other Augeas functions."
22413 msgstr ""
22414
22415 #. type: =head2
22416 #: ../fish/guestfish-actions.pod:200
22417 msgid "aug-defnode"
22418 msgstr ""
22419
22420 #. type: verbatim
22421 #: ../fish/guestfish-actions.pod:202
22422 #, no-wrap
22423 msgid ""
22424 " aug-defnode name expr val\n"
22425 "\n"
22426 msgstr ""
22427
22428 #. type: textblock
22429 #: ../fish/guestfish-actions.pod:207
22430 msgid ""
22431 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
22432 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
22433 "containing that single node."
22434 msgstr ""
22435
22436 #. type: =head2
22437 #: ../fish/guestfish-actions.pod:215
22438 msgid "aug-defvar"
22439 msgstr ""
22440
22441 #. type: verbatim
22442 #: ../fish/guestfish-actions.pod:217
22443 #, no-wrap
22444 msgid ""
22445 " aug-defvar name expr\n"
22446 "\n"
22447 msgstr ""
22448
22449 #. type: =head2
22450 #: ../fish/guestfish-actions.pod:226
22451 msgid "aug-get"
22452 msgstr ""
22453
22454 #. type: verbatim
22455 #: ../fish/guestfish-actions.pod:228
22456 #, no-wrap
22457 msgid ""
22458 " aug-get augpath\n"
22459 "\n"
22460 msgstr ""
22461
22462 #. type: =head2
22463 #: ../fish/guestfish-actions.pod:233
22464 msgid "aug-init"
22465 msgstr ""
22466
22467 #. type: verbatim
22468 #: ../fish/guestfish-actions.pod:235
22469 #, no-wrap
22470 msgid ""
22471 " aug-init root flags\n"
22472 "\n"
22473 msgstr ""
22474
22475 #. type: textblock
22476 #: ../fish/guestfish-actions.pod:241
22477 msgid "You must call this before using any other L</aug-*> commands."
22478 msgstr ""
22479
22480 #. type: textblock
22481 #: ../fish/guestfish-actions.pod:276
22482 msgid "Do not load the tree in L</aug-init>."
22483 msgstr ""
22484
22485 #. type: textblock
22486 #: ../fish/guestfish-actions.pod:280
22487 msgid "To close the handle, you can call L</aug-close>."
22488 msgstr ""
22489
22490 #. type: =head2
22491 #: ../fish/guestfish-actions.pod:284
22492 msgid "aug-insert"
22493 msgstr ""
22494
22495 #. type: verbatim
22496 #: ../fish/guestfish-actions.pod:286
22497 #, no-wrap
22498 msgid ""
22499 " aug-insert augpath label true|false\n"
22500 "\n"
22501 msgstr ""
22502
22503 #. type: =head2
22504 #: ../fish/guestfish-actions.pod:296
22505 msgid "aug-load"
22506 msgstr ""
22507
22508 #. type: verbatim
22509 #: ../fish/guestfish-actions.pod:298
22510 #, no-wrap
22511 msgid ""
22512 " aug-load\n"
22513 "\n"
22514 msgstr ""
22515
22516 #. type: =head2
22517 #: ../fish/guestfish-actions.pod:305
22518 msgid "aug-ls"
22519 msgstr ""
22520
22521 #. type: verbatim
22522 #: ../fish/guestfish-actions.pod:307
22523 #, no-wrap
22524 msgid ""
22525 " aug-ls augpath\n"
22526 "\n"
22527 msgstr ""
22528
22529 #. type: textblock
22530 #: ../fish/guestfish-actions.pod:309
22531 msgid ""
22532 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
22533 "resulting nodes into alphabetical order."
22534 msgstr ""
22535
22536 #. type: =head2
22537 #: ../fish/guestfish-actions.pod:312
22538 msgid "aug-match"
22539 msgstr ""
22540
22541 #. type: verbatim
22542 #: ../fish/guestfish-actions.pod:314
22543 #, no-wrap
22544 msgid ""
22545 " aug-match augpath\n"
22546 "\n"
22547 msgstr ""
22548
22549 #. type: =head2
22550 #: ../fish/guestfish-actions.pod:320
22551 msgid "aug-mv"
22552 msgstr ""
22553
22554 #. type: verbatim
22555 #: ../fish/guestfish-actions.pod:322
22556 #, no-wrap
22557 msgid ""
22558 " aug-mv src dest\n"
22559 "\n"
22560 msgstr ""
22561
22562 #. type: =head2
22563 #: ../fish/guestfish-actions.pod:327
22564 msgid "aug-rm"
22565 msgstr ""
22566
22567 #. type: verbatim
22568 #: ../fish/guestfish-actions.pod:329
22569 #, no-wrap
22570 msgid ""
22571 " aug-rm augpath\n"
22572 "\n"
22573 msgstr ""
22574
22575 #. type: =head2
22576 #: ../fish/guestfish-actions.pod:335
22577 msgid "aug-save"
22578 msgstr ""
22579
22580 #. type: verbatim
22581 #: ../fish/guestfish-actions.pod:337
22582 #, no-wrap
22583 msgid ""
22584 " aug-save\n"
22585 "\n"
22586 msgstr ""
22587
22588 #. type: textblock
22589 #: ../fish/guestfish-actions.pod:341
22590 msgid ""
22591 "The flags which were passed to L</aug-init> affect exactly how files are "
22592 "saved."
22593 msgstr ""
22594
22595 #. type: =head2
22596 #: ../fish/guestfish-actions.pod:344
22597 msgid "aug-set"
22598 msgstr ""
22599
22600 #. type: verbatim
22601 #: ../fish/guestfish-actions.pod:346
22602 #, no-wrap
22603 msgid ""
22604 " aug-set augpath val\n"
22605 "\n"
22606 msgstr ""
22607
22608 #. type: textblock
22609 #: ../fish/guestfish-actions.pod:350
22610 msgid ""
22611 "In the Augeas API, it is possible to clear a node by setting the value to "
22612 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
22613 "this call.  Instead you must use the L</aug-clear> call."
22614 msgstr ""
22615
22616 #. type: =head2
22617 #: ../fish/guestfish-actions.pod:355
22618 msgid "available"
22619 msgstr ""
22620
22621 #. type: verbatim
22622 #: ../fish/guestfish-actions.pod:357
22623 #, no-wrap
22624 msgid ""
22625 " available 'groups ...'\n"
22626 "\n"
22627 msgstr ""
22628
22629 #. type: textblock
22630 #: ../fish/guestfish-actions.pod:363
22631 msgid ""
22632 "The libguestfs groups, and the functions that those groups correspond to, "
22633 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
22634 "runtime by calling L</available-all-groups>."
22635 msgstr ""
22636
22637 #. type: textblock
22638 #: ../fish/guestfish-actions.pod:387
22639 msgid "You must call L</launch> before calling this function."
22640 msgstr ""
22641
22642 #. type: textblock
22643 #: ../fish/guestfish-actions.pod:409
22644 msgid ""
22645 "This call was added in version C<1.0.80>.  In previous versions of "
22646 "libguestfs all you could do would be to speculatively execute a command to "
22647 "find out if the daemon implemented it.  See also L</version>."
22648 msgstr ""
22649
22650 #. type: =head2
22651 #: ../fish/guestfish-actions.pod:416
22652 msgid "available-all-groups"
22653 msgstr ""
22654
22655 #. type: verbatim
22656 #: ../fish/guestfish-actions.pod:418
22657 #, no-wrap
22658 msgid ""
22659 " available-all-groups\n"
22660 "\n"
22661 msgstr ""
22662
22663 #. type: textblock
22664 #: ../fish/guestfish-actions.pod:420
22665 msgid ""
22666 "This command returns a list of all optional groups that this daemon knows "
22667 "about.  Note this returns both supported and unsupported groups.  To find "
22668 "out which ones the daemon can actually support you have to call L</"
22669 "available> on each member of the returned list."
22670 msgstr ""
22671
22672 #. type: textblock
22673 #: ../fish/guestfish-actions.pod:426
22674 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
22675 msgstr ""
22676
22677 #. type: =head2
22678 #: ../fish/guestfish-actions.pod:428
22679 msgid "base64-in"
22680 msgstr ""
22681
22682 #. type: verbatim
22683 #: ../fish/guestfish-actions.pod:430
22684 #, no-wrap
22685 msgid ""
22686 " base64-in (base64file|-) filename\n"
22687 "\n"
22688 msgstr ""
22689
22690 #. type: textblock
22691 #: ../fish/guestfish-actions.pod:435 ../fish/guestfish-actions.pod:444
22692 #: ../fish/guestfish-actions.pod:668 ../fish/guestfish-actions.pod:837
22693 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:1230
22694 #: ../fish/guestfish-actions.pod:4523 ../fish/guestfish-actions.pod:4535
22695 #: ../fish/guestfish-actions.pod:4546 ../fish/guestfish-actions.pod:4557
22696 #: ../fish/guestfish-actions.pod:4609 ../fish/guestfish-actions.pod:4618
22697 #: ../fish/guestfish-actions.pod:4672 ../fish/guestfish-actions.pod:4695
22698 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
22699 msgstr ""
22700
22701 #. type: =head2
22702 #: ../fish/guestfish-actions.pod:437
22703 msgid "base64-out"
22704 msgstr ""
22705
22706 #. type: verbatim
22707 #: ../fish/guestfish-actions.pod:439
22708 #, no-wrap
22709 msgid ""
22710 " base64-out filename (base64file|-)\n"
22711 "\n"
22712 msgstr ""
22713
22714 #. type: =head2
22715 #: ../fish/guestfish-actions.pod:446
22716 msgid "blockdev-flushbufs"
22717 msgstr ""
22718
22719 #. type: verbatim
22720 #: ../fish/guestfish-actions.pod:448
22721 #, no-wrap
22722 msgid ""
22723 " blockdev-flushbufs device\n"
22724 "\n"
22725 msgstr ""
22726
22727 #. type: =head2
22728 #: ../fish/guestfish-actions.pod:455
22729 msgid "blockdev-getbsz"
22730 msgstr ""
22731
22732 #. type: verbatim
22733 #: ../fish/guestfish-actions.pod:457
22734 #, no-wrap
22735 msgid ""
22736 " blockdev-getbsz device\n"
22737 "\n"
22738 msgstr ""
22739
22740 #. type: =head2
22741 #: ../fish/guestfish-actions.pod:466
22742 msgid "blockdev-getro"
22743 msgstr ""
22744
22745 #. type: verbatim
22746 #: ../fish/guestfish-actions.pod:468
22747 #, no-wrap
22748 msgid ""
22749 " blockdev-getro device\n"
22750 "\n"
22751 msgstr ""
22752
22753 #. type: =head2
22754 #: ../fish/guestfish-actions.pod:475
22755 msgid "blockdev-getsize64"
22756 msgstr ""
22757
22758 #. type: verbatim
22759 #: ../fish/guestfish-actions.pod:477
22760 #, no-wrap
22761 msgid ""
22762 " blockdev-getsize64 device\n"
22763 "\n"
22764 msgstr ""
22765
22766 #. type: textblock
22767 #: ../fish/guestfish-actions.pod:481
22768 msgid "See also L</blockdev-getsz>."
22769 msgstr ""
22770
22771 #. type: =head2
22772 #: ../fish/guestfish-actions.pod:485
22773 msgid "blockdev-getss"
22774 msgstr ""
22775
22776 #. type: verbatim
22777 #: ../fish/guestfish-actions.pod:487
22778 #, no-wrap
22779 msgid ""
22780 " blockdev-getss device\n"
22781 "\n"
22782 msgstr ""
22783
22784 #. type: textblock
22785 #: ../fish/guestfish-actions.pod:492
22786 msgid ""
22787 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
22788 msgstr ""
22789
22790 #. type: =head2
22791 #: ../fish/guestfish-actions.pod:497
22792 msgid "blockdev-getsz"
22793 msgstr ""
22794
22795 #. type: verbatim
22796 #: ../fish/guestfish-actions.pod:499
22797 #, no-wrap
22798 msgid ""
22799 " blockdev-getsz device\n"
22800 "\n"
22801 msgstr ""
22802
22803 #. type: textblock
22804 #: ../fish/guestfish-actions.pod:504
22805 msgid ""
22806 "See also L</blockdev-getss> for the real sector size of the device, and L</"
22807 "blockdev-getsize64> for the more useful I<size in bytes>."
22808 msgstr ""
22809
22810 #. type: =head2
22811 #: ../fish/guestfish-actions.pod:510
22812 msgid "blockdev-rereadpt"
22813 msgstr ""
22814
22815 #. type: verbatim
22816 #: ../fish/guestfish-actions.pod:512
22817 #, no-wrap
22818 msgid ""
22819 " blockdev-rereadpt device\n"
22820 "\n"
22821 msgstr ""
22822
22823 #. type: =head2
22824 #: ../fish/guestfish-actions.pod:518
22825 msgid "blockdev-setbsz"
22826 msgstr ""
22827
22828 #. type: verbatim
22829 #: ../fish/guestfish-actions.pod:520
22830 #, no-wrap
22831 msgid ""
22832 " blockdev-setbsz device blocksize\n"
22833 "\n"
22834 msgstr ""
22835
22836 #. type: =head2
22837 #: ../fish/guestfish-actions.pod:529
22838 msgid "blockdev-setro"
22839 msgstr ""
22840
22841 #. type: verbatim
22842 #: ../fish/guestfish-actions.pod:531
22843 #, no-wrap
22844 msgid ""
22845 " blockdev-setro device\n"
22846 "\n"
22847 msgstr ""
22848
22849 #. type: =head2
22850 #: ../fish/guestfish-actions.pod:537
22851 msgid "blockdev-setrw"
22852 msgstr ""
22853
22854 #. type: verbatim
22855 #: ../fish/guestfish-actions.pod:539
22856 #, no-wrap
22857 msgid ""
22858 " blockdev-setrw device\n"
22859 "\n"
22860 msgstr ""
22861
22862 #. type: =head2
22863 #: ../fish/guestfish-actions.pod:545
22864 msgid "case-sensitive-path"
22865 msgstr ""
22866
22867 #. type: verbatim
22868 #: ../fish/guestfish-actions.pod:547
22869 #, no-wrap
22870 msgid ""
22871 " case-sensitive-path path\n"
22872 "\n"
22873 msgstr ""
22874
22875 #. type: textblock
22876 #: ../fish/guestfish-actions.pod:571
22877 msgid ""
22878 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
22879 "WINDOWS/system32\"> (the exact return value would depend on details of how "
22880 "the directories were originally created under Windows)."
22881 msgstr ""
22882
22883 #. type: textblock
22884 #: ../fish/guestfish-actions.pod:579
22885 msgid "See also L</realpath>."
22886 msgstr ""
22887
22888 #. type: =head2
22889 #: ../fish/guestfish-actions.pod:581
22890 msgid "cat"
22891 msgstr ""
22892
22893 #. type: verbatim
22894 #: ../fish/guestfish-actions.pod:583
22895 #, no-wrap
22896 msgid ""
22897 " cat path\n"
22898 "\n"
22899 msgstr ""
22900
22901 #. type: textblock
22902 #: ../fish/guestfish-actions.pod:587
22903 msgid ""
22904 "Note that this function cannot correctly handle binary files (specifically, "
22905 "files containing C<\\0> character which is treated as end of string).  For "
22906 "those you need to use the L</read-file> or L</download> functions which have "
22907 "a more complex interface."
22908 msgstr ""
22909
22910 #. type: =head2
22911 #: ../fish/guestfish-actions.pod:595
22912 msgid "checksum"
22913 msgstr ""
22914
22915 #. type: verbatim
22916 #: ../fish/guestfish-actions.pod:597
22917 #, no-wrap
22918 msgid ""
22919 " checksum csumtype path\n"
22920 "\n"
22921 msgstr ""
22922
22923 #. type: textblock
22924 #: ../fish/guestfish-actions.pod:640
22925 msgid "To get the checksum for a device, use L</checksum-device>."
22926 msgstr ""
22927
22928 #. type: textblock
22929 #: ../fish/guestfish-actions.pod:642
22930 msgid "To get the checksums for many files, use L</checksums-out>."
22931 msgstr ""
22932
22933 #. type: =head2
22934 #: ../fish/guestfish-actions.pod:644
22935 msgid "checksum-device"
22936 msgstr ""
22937
22938 #. type: verbatim
22939 #: ../fish/guestfish-actions.pod:646
22940 #, no-wrap
22941 msgid ""
22942 " checksum-device csumtype device\n"
22943 "\n"
22944 msgstr ""
22945
22946 #. type: textblock
22947 #: ../fish/guestfish-actions.pod:648
22948 msgid ""
22949 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
22950 "device named C<device>.  For the types of checksums supported see the L</"
22951 "checksum> command."
22952 msgstr ""
22953
22954 #. type: =head2
22955 #: ../fish/guestfish-actions.pod:652
22956 msgid "checksums-out"
22957 msgstr ""
22958
22959 #. type: verbatim
22960 #: ../fish/guestfish-actions.pod:654
22961 #, no-wrap
22962 msgid ""
22963 " checksums-out csumtype directory (sumsfile|-)\n"
22964 "\n"
22965 msgstr ""
22966
22967 #. type: =head2
22968 #: ../fish/guestfish-actions.pod:670
22969 msgid "chmod"
22970 msgstr ""
22971
22972 #. type: verbatim
22973 #: ../fish/guestfish-actions.pod:672
22974 #, no-wrap
22975 msgid ""
22976 " chmod mode path\n"
22977 "\n"
22978 msgstr ""
22979
22980 #. type: =head2
22981 #: ../fish/guestfish-actions.pod:683
22982 msgid "chown"
22983 msgstr ""
22984
22985 #. type: verbatim
22986 #: ../fish/guestfish-actions.pod:685
22987 #, no-wrap
22988 msgid ""
22989 " chown owner group path\n"
22990 "\n"
22991 msgstr ""
22992
22993 #. type: =head2
22994 #: ../fish/guestfish-actions.pod:693
22995 msgid "command"
22996 msgstr ""
22997
22998 #. type: verbatim
22999 #: ../fish/guestfish-actions.pod:695
23000 #, no-wrap
23001 msgid ""
23002 " command 'arguments ...'\n"
23003 "\n"
23004 msgstr ""
23005
23006 #. type: textblock
23007 #: ../fish/guestfish-actions.pod:702
23008 msgid ""
23009 "The single parameter is an argv-style list of arguments.  The first element "
23010 "is the name of the program to run.  Subsequent elements are parameters.  The "
23011 "list must be non-empty (ie. must contain a program name).  Note that the "
23012 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
23013 msgstr ""
23014
23015 #. type: =head2
23016 #: ../fish/guestfish-actions.pod:730
23017 msgid "command-lines"
23018 msgstr ""
23019
23020 #. type: verbatim
23021 #: ../fish/guestfish-actions.pod:732
23022 #, no-wrap
23023 msgid ""
23024 " command-lines 'arguments ...'\n"
23025 "\n"
23026 msgstr ""
23027
23028 #. type: textblock
23029 #: ../fish/guestfish-actions.pod:734
23030 msgid ""
23031 "This is the same as L</command>, but splits the result into a list of lines."
23032 msgstr ""
23033
23034 #. type: textblock
23035 #: ../fish/guestfish-actions.pod:737
23036 msgid "See also: L</sh-lines>"
23037 msgstr ""
23038
23039 #. type: =head2
23040 #: ../fish/guestfish-actions.pod:742
23041 msgid "config"
23042 msgstr ""
23043
23044 #. type: verbatim
23045 #: ../fish/guestfish-actions.pod:744
23046 #, no-wrap
23047 msgid ""
23048 " config qemuparam qemuvalue\n"
23049 "\n"
23050 msgstr ""
23051
23052 #. type: =head2
23053 #: ../fish/guestfish-actions.pod:755
23054 msgid "copy-size"
23055 msgstr ""
23056
23057 #. type: verbatim
23058 #: ../fish/guestfish-actions.pod:757
23059 #, no-wrap
23060 msgid ""
23061 " copy-size src dest size\n"
23062 "\n"
23063 msgstr ""
23064
23065 #. type: =head2
23066 #: ../fish/guestfish-actions.pod:765
23067 msgid "cp"
23068 msgstr ""
23069
23070 #. type: verbatim
23071 #: ../fish/guestfish-actions.pod:767
23072 #, no-wrap
23073 msgid ""
23074 " cp src dest\n"
23075 "\n"
23076 msgstr ""
23077
23078 #. type: =head2
23079 #: ../fish/guestfish-actions.pod:772
23080 msgid "cp-a"
23081 msgstr ""
23082
23083 #. type: verbatim
23084 #: ../fish/guestfish-actions.pod:774
23085 #, no-wrap
23086 msgid ""
23087 " cp-a src dest\n"
23088 "\n"
23089 msgstr ""
23090
23091 #. type: =head2
23092 #: ../fish/guestfish-actions.pod:779
23093 msgid "dd"
23094 msgstr ""
23095
23096 #. type: verbatim
23097 #: ../fish/guestfish-actions.pod:781
23098 #, no-wrap
23099 msgid ""
23100 " dd src dest\n"
23101 "\n"
23102 msgstr ""
23103
23104 #. type: textblock
23105 #: ../fish/guestfish-actions.pod:788
23106 msgid ""
23107 "If the destination is a device, it must be as large or larger than the "
23108 "source file or device, otherwise the copy will fail.  This command cannot do "
23109 "partial copies (see L</copy-size>)."
23110 msgstr ""
23111
23112 #. type: =head2
23113 #: ../fish/guestfish-actions.pod:792
23114 msgid "df"
23115 msgstr ""
23116
23117 #. type: verbatim
23118 #: ../fish/guestfish-actions.pod:794
23119 #, no-wrap
23120 msgid ""
23121 " df\n"
23122 "\n"
23123 msgstr ""
23124
23125 #. type: textblock
23126 #: ../fish/guestfish-actions.pod:798 ../fish/guestfish-actions.pod:809
23127 msgid ""
23128 "This command is mostly useful for interactive sessions.  It is I<not> "
23129 "intended that you try to parse the output string.  Use L</statvfs> from "
23130 "programs."
23131 msgstr ""
23132
23133 #. type: =head2
23134 #: ../fish/guestfish-actions.pod:802
23135 msgid "df-h"
23136 msgstr ""
23137
23138 #. type: verbatim
23139 #: ../fish/guestfish-actions.pod:804
23140 #, no-wrap
23141 msgid ""
23142 " df-h\n"
23143 "\n"
23144 msgstr ""
23145
23146 #. type: =head2
23147 #: ../fish/guestfish-actions.pod:813
23148 msgid "dmesg"
23149 msgstr ""
23150
23151 #. type: verbatim
23152 #: ../fish/guestfish-actions.pod:815
23153 #, no-wrap
23154 msgid ""
23155 " dmesg\n"
23156 "\n"
23157 msgstr ""
23158
23159 #. type: textblock
23160 #: ../fish/guestfish-actions.pod:821
23161 msgid ""
23162 "Another way to get the same information is to enable verbose messages with "
23163 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
23164 "before running the program."
23165 msgstr ""
23166
23167 #. type: =head2
23168 #: ../fish/guestfish-actions.pod:826
23169 msgid "download"
23170 msgstr ""
23171
23172 #. type: verbatim
23173 #: ../fish/guestfish-actions.pod:828
23174 #, no-wrap
23175 msgid ""
23176 " download remotefilename (filename|-)\n"
23177 "\n"
23178 msgstr ""
23179
23180 #. type: textblock
23181 #: ../fish/guestfish-actions.pod:835
23182 msgid "See also L</upload>, L</cat>."
23183 msgstr ""
23184
23185 #. type: =head2
23186 #: ../fish/guestfish-actions.pod:839
23187 msgid "download-offset"
23188 msgstr ""
23189
23190 #. type: verbatim
23191 #: ../fish/guestfish-actions.pod:841
23192 #, no-wrap
23193 msgid ""
23194 " download-offset remotefilename (filename|-) offset size\n"
23195 "\n"
23196 msgstr ""
23197
23198 #. type: textblock
23199 #: ../fish/guestfish-actions.pod:849
23200 msgid ""
23201 "Note that there is no limit on the amount of data that can be downloaded "
23202 "with this call, unlike with L</pread>, and this call always reads the full "
23203 "amount unless an error occurs."
23204 msgstr ""
23205
23206 #. type: textblock
23207 #: ../fish/guestfish-actions.pod:854
23208 msgid "See also L</download>, L</pread>."
23209 msgstr ""
23210
23211 #. type: =head2
23212 #: ../fish/guestfish-actions.pod:858
23213 msgid "drop-caches"
23214 msgstr ""
23215
23216 #. type: verbatim
23217 #: ../fish/guestfish-actions.pod:860
23218 #, no-wrap
23219 msgid ""
23220 " drop-caches whattodrop\n"
23221 "\n"
23222 msgstr ""
23223
23224 #. type: =head2
23225 #: ../fish/guestfish-actions.pod:872
23226 msgid "du"
23227 msgstr ""
23228
23229 #. type: verbatim
23230 #: ../fish/guestfish-actions.pod:874
23231 #, no-wrap
23232 msgid ""
23233 " du path\n"
23234 "\n"
23235 msgstr ""
23236
23237 #. type: =head2
23238 #: ../fish/guestfish-actions.pod:886
23239 msgid "e2fsck-f"
23240 msgstr ""
23241
23242 #. type: verbatim
23243 #: ../fish/guestfish-actions.pod:888
23244 #, no-wrap
23245 msgid ""
23246 " e2fsck-f device\n"
23247 "\n"
23248 msgstr ""
23249
23250 #. type: textblock
23251 #: ../fish/guestfish-actions.pod:894
23252 msgid ""
23253 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
23254 "should use L</fsck>."
23255 msgstr ""
23256
23257 #. type: =head2
23258 #: ../fish/guestfish-actions.pod:897
23259 msgid "echo-daemon"
23260 msgstr ""
23261
23262 #. type: verbatim
23263 #: ../fish/guestfish-actions.pod:899
23264 #, no-wrap
23265 msgid ""
23266 " echo-daemon 'words ...'\n"
23267 "\n"
23268 msgstr ""
23269
23270 #. type: textblock
23271 #: ../fish/guestfish-actions.pod:906
23272 msgid "See also L</ping-daemon>."
23273 msgstr ""
23274
23275 #. type: =head2
23276 #: ../fish/guestfish-actions.pod:908
23277 msgid "egrep"
23278 msgstr ""
23279
23280 #. type: verbatim
23281 #: ../fish/guestfish-actions.pod:910
23282 #, no-wrap
23283 msgid ""
23284 " egrep regex path\n"
23285 "\n"
23286 msgstr ""
23287
23288 #. type: =head2
23289 #: ../fish/guestfish-actions.pod:918
23290 msgid "egrepi"
23291 msgstr ""
23292
23293 #. type: verbatim
23294 #: ../fish/guestfish-actions.pod:920
23295 #, no-wrap
23296 msgid ""
23297 " egrepi regex path\n"
23298 "\n"
23299 msgstr ""
23300
23301 #. type: =head2
23302 #: ../fish/guestfish-actions.pod:928
23303 msgid "equal"
23304 msgstr ""
23305
23306 #. type: verbatim
23307 #: ../fish/guestfish-actions.pod:930
23308 #, no-wrap
23309 msgid ""
23310 " equal file1 file2\n"
23311 "\n"
23312 msgstr ""
23313
23314 #. type: =head2
23315 #: ../fish/guestfish-actions.pod:937
23316 msgid "exists"
23317 msgstr ""
23318
23319 #. type: verbatim
23320 #: ../fish/guestfish-actions.pod:939
23321 #, no-wrap
23322 msgid ""
23323 " exists path\n"
23324 "\n"
23325 msgstr ""
23326
23327 #. type: textblock
23328 #: ../fish/guestfish-actions.pod:944
23329 msgid "See also L</is-file>, L</is-dir>, L</stat>."
23330 msgstr ""
23331
23332 #. type: =head2
23333 #: ../fish/guestfish-actions.pod:946
23334 msgid "fallocate"
23335 msgstr ""
23336
23337 #. type: verbatim
23338 #: ../fish/guestfish-actions.pod:948
23339 #, no-wrap
23340 msgid ""
23341 " fallocate path len\n"
23342 "\n"
23343 msgstr ""
23344
23345 #. type: =head2
23346 #: ../fish/guestfish-actions.pod:965
23347 msgid "fallocate64"
23348 msgstr ""
23349
23350 #. type: verbatim
23351 #: ../fish/guestfish-actions.pod:967
23352 #, no-wrap
23353 msgid ""
23354 " fallocate64 path len\n"
23355 "\n"
23356 msgstr ""
23357
23358 #. type: textblock
23359 #: ../fish/guestfish-actions.pod:973
23360 msgid ""
23361 "Note that this call allocates disk blocks for the file.  To create a sparse "
23362 "file use L</truncate-size> instead."
23363 msgstr ""
23364
23365 #. type: textblock
23366 #: ../fish/guestfish-actions.pod:976
23367 msgid ""
23368 "The deprecated call L</fallocate> does the same, but owing to an oversight "
23369 "it only allowed 30 bit lengths to be specified, effectively limiting the "
23370 "maximum size of files created through that call to 1GB."
23371 msgstr ""
23372
23373 #. type: =head2
23374 #: ../fish/guestfish-actions.pod:985
23375 msgid "fgrep"
23376 msgstr ""
23377
23378 #. type: verbatim
23379 #: ../fish/guestfish-actions.pod:987
23380 #, no-wrap
23381 msgid ""
23382 " fgrep pattern path\n"
23383 "\n"
23384 msgstr ""
23385
23386 #. type: =head2
23387 #: ../fish/guestfish-actions.pod:995
23388 msgid "fgrepi"
23389 msgstr ""
23390
23391 #. type: verbatim
23392 #: ../fish/guestfish-actions.pod:997
23393 #, no-wrap
23394 msgid ""
23395 " fgrepi pattern path\n"
23396 "\n"
23397 msgstr ""
23398
23399 #. type: =head2
23400 #: ../fish/guestfish-actions.pod:1005
23401 msgid "file"
23402 msgstr ""
23403
23404 #. type: verbatim
23405 #: ../fish/guestfish-actions.pod:1007
23406 #, no-wrap
23407 msgid ""
23408 " file path\n"
23409 "\n"
23410 msgstr ""
23411
23412 #. type: textblock
23413 #: ../fish/guestfish-actions.pod:1023
23414 msgid ""
23415 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
23416 "(etc), L</is-zero>."
23417 msgstr ""
23418
23419 #. type: =head2
23420 #: ../fish/guestfish-actions.pod:1026
23421 msgid "file-architecture"
23422 msgstr ""
23423
23424 #. type: verbatim
23425 #: ../fish/guestfish-actions.pod:1028
23426 #, no-wrap
23427 msgid ""
23428 " file-architecture filename\n"
23429 "\n"
23430 msgstr ""
23431
23432 #. type: =head2
23433 #: ../fish/guestfish-actions.pod:1131
23434 msgid "filesize"
23435 msgstr ""
23436
23437 #. type: verbatim
23438 #: ../fish/guestfish-actions.pod:1133
23439 #, no-wrap
23440 msgid ""
23441 " filesize file\n"
23442 "\n"
23443 msgstr ""
23444
23445 #. type: textblock
23446 #: ../fish/guestfish-actions.pod:1137
23447 msgid ""
23448 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
23449 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
23450 msgstr ""
23451
23452 #. type: =head2
23453 #: ../fish/guestfish-actions.pod:1141
23454 msgid "fill"
23455 msgstr ""
23456
23457 #. type: verbatim
23458 #: ../fish/guestfish-actions.pod:1143
23459 #, no-wrap
23460 msgid ""
23461 " fill c len path\n"
23462 "\n"
23463 msgstr ""
23464
23465 #. type: textblock
23466 #: ../fish/guestfish-actions.pod:1149
23467 msgid ""
23468 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
23469 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
23470 "L</fill-pattern>."
23471 msgstr ""
23472
23473 #. type: =head2
23474 #: ../fish/guestfish-actions.pod:1154
23475 msgid "fill-pattern"
23476 msgstr ""
23477
23478 #. type: verbatim
23479 #: ../fish/guestfish-actions.pod:1156
23480 #, no-wrap
23481 msgid ""
23482 " fill-pattern pattern len path\n"
23483 "\n"
23484 msgstr ""
23485
23486 #. type: textblock
23487 #: ../fish/guestfish-actions.pod:1158
23488 msgid ""
23489 "This function is like L</fill> except that it creates a new file of length "
23490 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
23491 "is truncated if necessary to ensure the length of the file is exactly C<len> "
23492 "bytes."
23493 msgstr ""
23494
23495 #. type: =head2
23496 #: ../fish/guestfish-actions.pod:1163
23497 msgid "find"
23498 msgstr ""
23499
23500 #. type: verbatim
23501 #: ../fish/guestfish-actions.pod:1165
23502 #, no-wrap
23503 msgid ""
23504 " find directory\n"
23505 "\n"
23506 msgstr ""
23507
23508 #. type: textblock
23509 #: ../fish/guestfish-actions.pod:1179
23510 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
23511 msgstr ""
23512
23513 #. type: textblock
23514 #: ../fish/guestfish-actions.pod:1192
23515 msgid "See also L</find0>."
23516 msgstr ""
23517
23518 #. type: =head2
23519 #: ../fish/guestfish-actions.pod:1197
23520 msgid "find0"
23521 msgstr ""
23522
23523 #. type: verbatim
23524 #: ../fish/guestfish-actions.pod:1199
23525 #, no-wrap
23526 msgid ""
23527 " find0 directory (files|-)\n"
23528 "\n"
23529 msgstr ""
23530
23531 #. type: textblock
23532 #: ../fish/guestfish-actions.pod:1205
23533 msgid ""
23534 "This command works the same way as L</find> with the following exceptions:"
23535 msgstr ""
23536
23537 #. type: =head2
23538 #: ../fish/guestfish-actions.pod:1232
23539 msgid "findfs-label"
23540 msgstr ""
23541
23542 #. type: verbatim
23543 #: ../fish/guestfish-actions.pod:1234
23544 #, no-wrap
23545 msgid ""
23546 " findfs-label label\n"
23547 "\n"
23548 msgstr ""
23549
23550 #. type: textblock
23551 #: ../fish/guestfish-actions.pod:1240
23552 msgid "To find the label of a filesystem, use L</vfs-label>."
23553 msgstr ""
23554
23555 #. type: =head2
23556 #: ../fish/guestfish-actions.pod:1242
23557 msgid "findfs-uuid"
23558 msgstr ""
23559
23560 #. type: verbatim
23561 #: ../fish/guestfish-actions.pod:1244
23562 #, no-wrap
23563 msgid ""
23564 " findfs-uuid uuid\n"
23565 "\n"
23566 msgstr ""
23567
23568 #. type: textblock
23569 #: ../fish/guestfish-actions.pod:1250
23570 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
23571 msgstr ""
23572
23573 #. type: =head2
23574 #: ../fish/guestfish-actions.pod:1252
23575 msgid "fsck"
23576 msgstr ""
23577
23578 #. type: verbatim
23579 #: ../fish/guestfish-actions.pod:1254
23580 #, no-wrap
23581 msgid ""
23582 " fsck fstype device\n"
23583 "\n"
23584 msgstr ""
23585
23586 #. type: =head2
23587 #: ../fish/guestfish-actions.pod:1284
23588 msgid "get-append"
23589 msgstr ""
23590
23591 #. type: verbatim
23592 #: ../fish/guestfish-actions.pod:1286
23593 #, no-wrap
23594 msgid ""
23595 " get-append\n"
23596 "\n"
23597 msgstr ""
23598
23599 #. type: =head2
23600 #: ../fish/guestfish-actions.pod:1293
23601 msgid "get-attach-method"
23602 msgstr ""
23603
23604 #. type: verbatim
23605 #: ../fish/guestfish-actions.pod:1295
23606 #, no-wrap
23607 msgid ""
23608 " get-attach-method\n"
23609 "\n"
23610 msgstr ""
23611
23612 #. type: textblock
23613 #: ../fish/guestfish-actions.pod:1297
23614 msgid "Return the current attach method.  See L</set-attach-method>."
23615 msgstr ""
23616
23617 #. type: =head2
23618 #: ../fish/guestfish-actions.pod:1299
23619 msgid "get-autosync"
23620 msgstr ""
23621
23622 #. type: verbatim
23623 #: ../fish/guestfish-actions.pod:1301
23624 #, no-wrap
23625 msgid ""
23626 " get-autosync\n"
23627 "\n"
23628 msgstr ""
23629
23630 #. type: =head2
23631 #: ../fish/guestfish-actions.pod:1305
23632 msgid "get-direct"
23633 msgstr ""
23634
23635 #. type: verbatim
23636 #: ../fish/guestfish-actions.pod:1307
23637 #, no-wrap
23638 msgid ""
23639 " get-direct\n"
23640 "\n"
23641 msgstr ""
23642
23643 #. type: =head2
23644 #: ../fish/guestfish-actions.pod:1311
23645 msgid "get-e2label"
23646 msgstr ""
23647
23648 #. type: verbatim
23649 #: ../fish/guestfish-actions.pod:1313
23650 #, no-wrap
23651 msgid ""
23652 " get-e2label device\n"
23653 "\n"
23654 msgstr ""
23655
23656 #. type: =head2
23657 #: ../fish/guestfish-actions.pod:1325
23658 msgid "get-e2uuid"
23659 msgstr ""
23660
23661 #. type: verbatim
23662 #: ../fish/guestfish-actions.pod:1327
23663 #, no-wrap
23664 msgid ""
23665 " get-e2uuid device\n"
23666 "\n"
23667 msgstr ""
23668
23669 #. type: =head2
23670 #: ../fish/guestfish-actions.pod:1339
23671 msgid "get-memsize"
23672 msgstr ""
23673
23674 #. type: verbatim
23675 #: ../fish/guestfish-actions.pod:1341
23676 #, no-wrap
23677 msgid ""
23678 " get-memsize\n"
23679 "\n"
23680 msgstr ""
23681
23682 #. type: textblock
23683 #: ../fish/guestfish-actions.pod:1346
23684 msgid ""
23685 "If L</set-memsize> was not called on this handle, and if "
23686 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
23687 "value for memsize."
23688 msgstr ""
23689
23690 #. type: =head2
23691 #: ../fish/guestfish-actions.pod:1353
23692 msgid "get-network"
23693 msgstr ""
23694
23695 #. type: verbatim
23696 #: ../fish/guestfish-actions.pod:1355
23697 #, no-wrap
23698 msgid ""
23699 " get-network\n"
23700 "\n"
23701 msgstr ""
23702
23703 #. type: =head2
23704 #: ../fish/guestfish-actions.pod:1359
23705 msgid "get-path"
23706 msgstr ""
23707
23708 #. type: verbatim
23709 #: ../fish/guestfish-actions.pod:1361
23710 #, no-wrap
23711 msgid ""
23712 " get-path\n"
23713 "\n"
23714 msgstr ""
23715
23716 #. type: =head2
23717 #: ../fish/guestfish-actions.pod:1368
23718 msgid "get-pid"
23719 msgstr ""
23720
23721 #. type: =head2
23722 #: ../fish/guestfish-actions.pod:1370
23723 msgid "pid"
23724 msgstr ""
23725
23726 #. type: verbatim
23727 #: ../fish/guestfish-actions.pod:1372
23728 #, no-wrap
23729 msgid ""
23730 " get-pid\n"
23731 "\n"
23732 msgstr ""
23733
23734 #. type: =head2
23735 #: ../fish/guestfish-actions.pod:1379
23736 msgid "get-qemu"
23737 msgstr ""
23738
23739 #. type: verbatim
23740 #: ../fish/guestfish-actions.pod:1381
23741 #, no-wrap
23742 msgid ""
23743 " get-qemu\n"
23744 "\n"
23745 msgstr ""
23746
23747 #. type: =head2
23748 #: ../fish/guestfish-actions.pod:1388
23749 msgid "get-recovery-proc"
23750 msgstr ""
23751
23752 #. type: verbatim
23753 #: ../fish/guestfish-actions.pod:1390
23754 #, no-wrap
23755 msgid ""
23756 " get-recovery-proc\n"
23757 "\n"
23758 msgstr ""
23759
23760 #. type: =head2
23761 #: ../fish/guestfish-actions.pod:1394
23762 msgid "get-selinux"
23763 msgstr ""
23764
23765 #. type: verbatim
23766 #: ../fish/guestfish-actions.pod:1396
23767 #, no-wrap
23768 msgid ""
23769 " get-selinux\n"
23770 "\n"
23771 msgstr ""
23772
23773 #. type: textblock
23774 #: ../fish/guestfish-actions.pod:1398
23775 msgid ""
23776 "This returns the current setting of the selinux flag which is passed to the "
23777 "appliance at boot time.  See L</set-selinux>."
23778 msgstr ""
23779
23780 #. type: =head2
23781 #: ../fish/guestfish-actions.pod:1404
23782 msgid "get-state"
23783 msgstr ""
23784
23785 #. type: verbatim
23786 #: ../fish/guestfish-actions.pod:1406
23787 #, no-wrap
23788 msgid ""
23789 " get-state\n"
23790 "\n"
23791 msgstr ""
23792
23793 #. type: =head2
23794 #: ../fish/guestfish-actions.pod:1413
23795 msgid "get-trace"
23796 msgstr ""
23797
23798 #. type: verbatim
23799 #: ../fish/guestfish-actions.pod:1415
23800 #, no-wrap
23801 msgid ""
23802 " get-trace\n"
23803 "\n"
23804 msgstr ""
23805
23806 #. type: =head2
23807 #: ../fish/guestfish-actions.pod:1419
23808 msgid "get-umask"
23809 msgstr ""
23810
23811 #. type: verbatim
23812 #: ../fish/guestfish-actions.pod:1421
23813 #, no-wrap
23814 msgid ""
23815 " get-umask\n"
23816 "\n"
23817 msgstr ""
23818
23819 #. type: textblock
23820 #: ../fish/guestfish-actions.pod:1423
23821 msgid ""
23822 "Return the current umask.  By default the umask is C<022> unless it has been "
23823 "set by calling L</umask>."
23824 msgstr ""
23825
23826 #. type: =head2
23827 #: ../fish/guestfish-actions.pod:1426
23828 msgid "get-verbose"
23829 msgstr ""
23830
23831 #. type: verbatim
23832 #: ../fish/guestfish-actions.pod:1428
23833 #, no-wrap
23834 msgid ""
23835 " get-verbose\n"
23836 "\n"
23837 msgstr ""
23838
23839 #. type: =head2
23840 #: ../fish/guestfish-actions.pod:1432
23841 msgid "getcon"
23842 msgstr ""
23843
23844 #. type: verbatim
23845 #: ../fish/guestfish-actions.pod:1434
23846 #, no-wrap
23847 msgid ""
23848 " getcon\n"
23849 "\n"
23850 msgstr ""
23851
23852 #. type: textblock
23853 #: ../fish/guestfish-actions.pod:1438
23854 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
23855 msgstr ""
23856
23857 #. type: =head2
23858 #: ../fish/guestfish-actions.pod:1441
23859 msgid "getxattr"
23860 msgstr ""
23861
23862 #. type: verbatim
23863 #: ../fish/guestfish-actions.pod:1443
23864 #, no-wrap
23865 msgid ""
23866 " getxattr path name\n"
23867 "\n"
23868 msgstr ""
23869
23870 #. type: textblock
23871 #: ../fish/guestfish-actions.pod:1445
23872 msgid ""
23873 "Get a single extended attribute from file C<path> named C<name>.  This call "
23874 "follows symlinks.  If you want to lookup an extended attribute for the "
23875 "symlink itself, use L</lgetxattr>."
23876 msgstr ""
23877
23878 #. type: textblock
23879 #: ../fish/guestfish-actions.pod:1449 ../fish/guestfish-actions.pod:2476
23880 msgid ""
23881 "Normally it is better to get all extended attributes from a file in one go "
23882 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
23883 "buggy and do not provide a way to list out attributes.  For these "
23884 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
23885 "attributes you want in advance and call this function."
23886 msgstr ""
23887
23888 #. type: textblock
23889 #: ../fish/guestfish-actions.pod:1459
23890 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
23891 msgstr ""
23892
23893 #. type: =head2
23894 #: ../fish/guestfish-actions.pod:1461
23895 msgid "getxattrs"
23896 msgstr ""
23897
23898 #. type: verbatim
23899 #: ../fish/guestfish-actions.pod:1463
23900 #, no-wrap
23901 msgid ""
23902 " getxattrs path\n"
23903 "\n"
23904 msgstr ""
23905
23906 #. type: textblock
23907 #: ../fish/guestfish-actions.pod:1471
23908 msgid "See also: L</lgetxattrs>, L<attr(5)>."
23909 msgstr ""
23910
23911 #. type: =head2
23912 #: ../fish/guestfish-actions.pod:1473
23913 msgid "glob-expand"
23914 msgstr ""
23915
23916 #. type: verbatim
23917 #: ../fish/guestfish-actions.pod:1475
23918 #, no-wrap
23919 msgid ""
23920 " glob-expand pattern\n"
23921 "\n"
23922 msgstr ""
23923
23924 #. type: =head2
23925 #: ../fish/guestfish-actions.pod:1488
23926 msgid "grep"
23927 msgstr ""
23928
23929 #. type: verbatim
23930 #: ../fish/guestfish-actions.pod:1490
23931 #, no-wrap
23932 msgid ""
23933 " grep regex path\n"
23934 "\n"
23935 msgstr ""
23936
23937 #. type: =head2
23938 #: ../fish/guestfish-actions.pod:1498
23939 msgid "grepi"
23940 msgstr ""
23941
23942 #. type: verbatim
23943 #: ../fish/guestfish-actions.pod:1500
23944 #, no-wrap
23945 msgid ""
23946 " grepi regex path\n"
23947 "\n"
23948 msgstr ""
23949
23950 #. type: =head2
23951 #: ../fish/guestfish-actions.pod:1508
23952 msgid "grub-install"
23953 msgstr ""
23954
23955 #. type: verbatim
23956 #: ../fish/guestfish-actions.pod:1510
23957 #, no-wrap
23958 msgid ""
23959 " grub-install root device\n"
23960 "\n"
23961 msgstr ""
23962
23963 #. type: =head2
23964 #: ../fish/guestfish-actions.pod:1526
23965 msgid "head"
23966 msgstr ""
23967
23968 #. type: verbatim
23969 #: ../fish/guestfish-actions.pod:1528
23970 #, no-wrap
23971 msgid ""
23972 " head path\n"
23973 "\n"
23974 msgstr ""
23975
23976 #. type: =head2
23977 #: ../fish/guestfish-actions.pod:1536
23978 msgid "head-n"
23979 msgstr ""
23980
23981 #. type: verbatim
23982 #: ../fish/guestfish-actions.pod:1538
23983 #, no-wrap
23984 msgid ""
23985 " head-n nrlines path\n"
23986 "\n"
23987 msgstr ""
23988
23989 #. type: =head2
23990 #: ../fish/guestfish-actions.pod:1551
23991 msgid "hexdump"
23992 msgstr ""
23993
23994 #. type: verbatim
23995 #: ../fish/guestfish-actions.pod:1553
23996 #, no-wrap
23997 msgid ""
23998 " hexdump path\n"
23999 "\n"
24000 msgstr ""
24001
24002 #. type: =head2
24003 #: ../fish/guestfish-actions.pod:1561
24004 msgid "initrd-cat"
24005 msgstr ""
24006
24007 #. type: verbatim
24008 #: ../fish/guestfish-actions.pod:1563
24009 #, no-wrap
24010 msgid ""
24011 " initrd-cat initrdpath filename\n"
24012 "\n"
24013 msgstr ""
24014
24015 #. type: textblock
24016 #: ../fish/guestfish-actions.pod:1575
24017 msgid "See also L</initrd-list>."
24018 msgstr ""
24019
24020 #. type: =head2
24021 #: ../fish/guestfish-actions.pod:1580
24022 msgid "initrd-list"
24023 msgstr ""
24024
24025 #. type: verbatim
24026 #: ../fish/guestfish-actions.pod:1582
24027 #, no-wrap
24028 msgid ""
24029 " initrd-list path\n"
24030 "\n"
24031 msgstr ""
24032
24033 #. type: =head2
24034 #: ../fish/guestfish-actions.pod:1594
24035 msgid "inotify-add-watch"
24036 msgstr ""
24037
24038 #. type: verbatim
24039 #: ../fish/guestfish-actions.pod:1596
24040 #, no-wrap
24041 msgid ""
24042 " inotify-add-watch path mask\n"
24043 "\n"
24044 msgstr ""
24045
24046 #. type: =head2
24047 #: ../fish/guestfish-actions.pod:1608
24048 msgid "inotify-close"
24049 msgstr ""
24050
24051 #. type: verbatim
24052 #: ../fish/guestfish-actions.pod:1610
24053 #, no-wrap
24054 msgid ""
24055 " inotify-close\n"
24056 "\n"
24057 msgstr ""
24058
24059 #. type: =head2
24060 #: ../fish/guestfish-actions.pod:1616
24061 msgid "inotify-files"
24062 msgstr ""
24063
24064 #. type: verbatim
24065 #: ../fish/guestfish-actions.pod:1618
24066 #, no-wrap
24067 msgid ""
24068 " inotify-files\n"
24069 "\n"
24070 msgstr ""
24071
24072 #. type: textblock
24073 #: ../fish/guestfish-actions.pod:1620
24074 msgid ""
24075 "This function is a helpful wrapper around L</inotify-read> which just "
24076 "returns a list of pathnames of objects that were touched.  The returned "
24077 "pathnames are sorted and deduplicated."
24078 msgstr ""
24079
24080 #. type: =head2
24081 #: ../fish/guestfish-actions.pod:1624
24082 msgid "inotify-init"
24083 msgstr ""
24084
24085 #. type: verbatim
24086 #: ../fish/guestfish-actions.pod:1626
24087 #, no-wrap
24088 msgid ""
24089 " inotify-init maxevents\n"
24090 "\n"
24091 msgstr ""
24092
24093 #. type: textblock
24094 #: ../fish/guestfish-actions.pod:1632
24095 msgid ""
24096 "C<maxevents> is the maximum number of events which will be queued up between "
24097 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
24098 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
24099 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
24100 "but records the fact that it threw them away by setting a flag "
24101 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
24102 msgstr ""
24103
24104 #. type: textblock
24105 #: ../fish/guestfish-actions.pod:1642
24106 msgid ""
24107 "Before any events are generated, you have to add some watches to the "
24108 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
24109 "L</inotify-watch-all>."
24110 msgstr ""
24111
24112 #. type: textblock
24113 #: ../fish/guestfish-actions.pod:1648
24114 msgid ""
24115 "Queued up events should be read periodically by calling L</inotify-read> (or "
24116 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
24117 "If you don't read the events out often enough then you risk the internal "
24118 "queue overflowing."
24119 msgstr ""
24120
24121 #. type: textblock
24122 #: ../fish/guestfish-actions.pod:1655
24123 msgid ""
24124 "The handle should be closed after use by calling L</inotify-close>.  This "
24125 "also removes any watches automatically."
24126 msgstr ""
24127
24128 #. type: =head2
24129 #: ../fish/guestfish-actions.pod:1664
24130 msgid "inotify-read"
24131 msgstr ""
24132
24133 #. type: verbatim
24134 #: ../fish/guestfish-actions.pod:1666
24135 #, no-wrap
24136 msgid ""
24137 " inotify-read\n"
24138 "\n"
24139 msgstr ""
24140
24141 #. type: =head2
24142 #: ../fish/guestfish-actions.pod:1679
24143 msgid "inotify-rm-watch"
24144 msgstr ""
24145
24146 #. type: verbatim
24147 #: ../fish/guestfish-actions.pod:1681
24148 #, no-wrap
24149 msgid ""
24150 " inotify-rm-watch wd\n"
24151 "\n"
24152 msgstr ""
24153
24154 #. type: textblock
24155 #: ../fish/guestfish-actions.pod:1683
24156 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
24157 msgstr ""
24158
24159 #. type: =head2
24160 #: ../fish/guestfish-actions.pod:1686
24161 msgid "inspect-get-arch"
24162 msgstr ""
24163
24164 #. type: verbatim
24165 #: ../fish/guestfish-actions.pod:1688
24166 #, no-wrap
24167 msgid ""
24168 " inspect-get-arch root\n"
24169 "\n"
24170 msgstr ""
24171
24172 #. type: textblock
24173 #: ../fish/guestfish-actions.pod:1690
24174 msgid ""
24175 "This returns the architecture of the inspected operating system.  The "
24176 "possible return values are listed under L</file-architecture>."
24177 msgstr ""
24178
24179 #. type: =head2
24180 #: ../fish/guestfish-actions.pod:1699
24181 msgid "inspect-get-distro"
24182 msgstr ""
24183
24184 #. type: verbatim
24185 #: ../fish/guestfish-actions.pod:1701
24186 #, no-wrap
24187 msgid ""
24188 " inspect-get-distro root\n"
24189 "\n"
24190 msgstr ""
24191
24192 #. type: =head2
24193 #: ../fish/guestfish-actions.pod:1782
24194 msgid "inspect-get-drive-mappings"
24195 msgstr ""
24196
24197 #. type: verbatim
24198 #: ../fish/guestfish-actions.pod:1784
24199 #, no-wrap
24200 msgid ""
24201 " inspect-get-drive-mappings root\n"
24202 "\n"
24203 msgstr ""
24204
24205 #. type: textblock
24206 #: ../fish/guestfish-actions.pod:1811
24207 msgid ""
24208 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
24209 "get-mountpoints>, L</inspect-get-filesystems>."
24210 msgstr ""
24211
24212 #. type: =head2
24213 #: ../fish/guestfish-actions.pod:1815
24214 msgid "inspect-get-filesystems"
24215 msgstr ""
24216
24217 #. type: verbatim
24218 #: ../fish/guestfish-actions.pod:1817
24219 #, no-wrap
24220 msgid ""
24221 " inspect-get-filesystems root\n"
24222 "\n"
24223 msgstr ""
24224
24225 #. type: textblock
24226 #: ../fish/guestfish-actions.pod:1827
24227 msgid ""
24228 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
24229 "get-mountpoints>."
24230 msgstr ""
24231
24232 #. type: =head2
24233 #: ../fish/guestfish-actions.pod:1830
24234 msgid "inspect-get-format"
24235 msgstr ""
24236
24237 #. type: verbatim
24238 #: ../fish/guestfish-actions.pod:1832
24239 #, no-wrap
24240 msgid ""
24241 " inspect-get-format root\n"
24242 "\n"
24243 msgstr ""
24244
24245 #. type: =head2
24246 #: ../fish/guestfish-actions.pod:1861
24247 msgid "inspect-get-hostname"
24248 msgstr ""
24249
24250 #. type: verbatim
24251 #: ../fish/guestfish-actions.pod:1863
24252 #, no-wrap
24253 msgid ""
24254 " inspect-get-hostname root\n"
24255 "\n"
24256 msgstr ""
24257
24258 #. type: =head2
24259 #: ../fish/guestfish-actions.pod:1873
24260 msgid "inspect-get-icon"
24261 msgstr ""
24262
24263 #. type: verbatim
24264 #: ../fish/guestfish-actions.pod:1875
24265 #, no-wrap
24266 msgid ""
24267 " inspect-get-icon root [favicon:..] [highquality:..]\n"
24268 "\n"
24269 msgstr ""
24270
24271 #. type: =head2
24272 #: ../fish/guestfish-actions.pod:1939
24273 msgid "inspect-get-major-version"
24274 msgstr ""
24275
24276 #. type: verbatim
24277 #: ../fish/guestfish-actions.pod:1941
24278 #, no-wrap
24279 msgid ""
24280 " inspect-get-major-version root\n"
24281 "\n"
24282 msgstr ""
24283
24284 #. type: =head2
24285 #: ../fish/guestfish-actions.pod:1957
24286 msgid "inspect-get-minor-version"
24287 msgstr ""
24288
24289 #. type: verbatim
24290 #: ../fish/guestfish-actions.pod:1959
24291 #, no-wrap
24292 msgid ""
24293 " inspect-get-minor-version root\n"
24294 "\n"
24295 msgstr ""
24296
24297 #. type: textblock
24298 #: ../fish/guestfish-actions.pod:1966
24299 msgid ""
24300 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
24301 "get-major-version>."
24302 msgstr ""
24303
24304 #. type: =head2
24305 #: ../fish/guestfish-actions.pod:1969
24306 msgid "inspect-get-mountpoints"
24307 msgstr ""
24308
24309 #. type: verbatim
24310 #: ../fish/guestfish-actions.pod:1971
24311 #, no-wrap
24312 msgid ""
24313 " inspect-get-mountpoints root\n"
24314 "\n"
24315 msgstr ""
24316
24317 #. type: textblock
24318 #: ../fish/guestfish-actions.pod:1990
24319 msgid ""
24320 "For operating systems like Windows which still use drive letters, this call "
24321 "will only return an entry for the first drive \"mounted on\" C</>.  For "
24322 "information about the mapping of drive letters to partitions, see L</inspect-"
24323 "get-drive-mappings>."
24324 msgstr ""
24325
24326 #. type: textblock
24327 #: ../fish/guestfish-actions.pod:1996
24328 msgid ""
24329 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
24330 "get-filesystems>."
24331 msgstr ""
24332
24333 #. type: =head2
24334 #: ../fish/guestfish-actions.pod:1999
24335 msgid "inspect-get-package-format"
24336 msgstr ""
24337
24338 #. type: verbatim
24339 #: ../fish/guestfish-actions.pod:2001
24340 #, no-wrap
24341 msgid ""
24342 " inspect-get-package-format root\n"
24343 "\n"
24344 msgstr ""
24345
24346 #. type: textblock
24347 #: ../fish/guestfish-actions.pod:2003
24348 msgid ""
24349 "This function and L</inspect-get-package-management> return the package "
24350 "format and package management tool used by the inspected operating system.  "
24351 "For example for Fedora these functions would return C<rpm> (package format) "
24352 "and C<yum> (package management)."
24353 msgstr ""
24354
24355 #. type: =head2
24356 #: ../fish/guestfish-actions.pod:2018
24357 msgid "inspect-get-package-management"
24358 msgstr ""
24359
24360 #. type: verbatim
24361 #: ../fish/guestfish-actions.pod:2020
24362 #, no-wrap
24363 msgid ""
24364 " inspect-get-package-management root\n"
24365 "\n"
24366 msgstr ""
24367
24368 #. type: textblock
24369 #: ../fish/guestfish-actions.pod:2022
24370 msgid ""
24371 "L</inspect-get-package-format> and this function return the package format "
24372 "and package management tool used by the inspected operating system.  For "
24373 "example for Fedora these functions would return C<rpm> (package format) and "
24374 "C<yum> (package management)."
24375 msgstr ""
24376
24377 #. type: =head2
24378 #: ../fish/guestfish-actions.pod:2039
24379 msgid "inspect-get-product-name"
24380 msgstr ""
24381
24382 #. type: verbatim
24383 #: ../fish/guestfish-actions.pod:2041
24384 #, no-wrap
24385 msgid ""
24386 " inspect-get-product-name root\n"
24387 "\n"
24388 msgstr ""
24389
24390 #. type: =head2
24391 #: ../fish/guestfish-actions.pod:2053
24392 msgid "inspect-get-product-variant"
24393 msgstr ""
24394
24395 #. type: verbatim
24396 #: ../fish/guestfish-actions.pod:2055
24397 #, no-wrap
24398 msgid ""
24399 " inspect-get-product-variant root\n"
24400 "\n"
24401 msgstr ""
24402
24403 #. type: textblock
24404 #: ../fish/guestfish-actions.pod:2076
24405 msgid ""
24406 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
24407 "get-product-name>, L</inspect-get-major-version>."
24408 msgstr ""
24409
24410 #. type: =head2
24411 #: ../fish/guestfish-actions.pod:2080
24412 msgid "inspect-get-roots"
24413 msgstr ""
24414
24415 #. type: verbatim
24416 #: ../fish/guestfish-actions.pod:2082
24417 #, no-wrap
24418 msgid ""
24419 " inspect-get-roots\n"
24420 "\n"
24421 msgstr ""
24422
24423 #. type: textblock
24424 #: ../fish/guestfish-actions.pod:2084
24425 msgid ""
24426 "This function is a convenient way to get the list of root devices, as "
24427 "returned from a previous call to L</inspect-os>, but without redoing the "
24428 "whole inspection process."
24429 msgstr ""
24430
24431 #. type: textblock
24432 #: ../fish/guestfish-actions.pod:2088
24433 msgid ""
24434 "This returns an empty list if either no root devices were found or the "
24435 "caller has not called L</inspect-os>."
24436 msgstr ""
24437
24438 #. type: =head2
24439 #: ../fish/guestfish-actions.pod:2093
24440 msgid "inspect-get-type"
24441 msgstr ""
24442
24443 #. type: verbatim
24444 #: ../fish/guestfish-actions.pod:2095
24445 #, no-wrap
24446 msgid ""
24447 " inspect-get-type root\n"
24448 "\n"
24449 msgstr ""
24450
24451 #. type: =head2
24452 #: ../fish/guestfish-actions.pod:2125
24453 msgid "inspect-get-windows-current-control-set"
24454 msgstr ""
24455
24456 #. type: verbatim
24457 #: ../fish/guestfish-actions.pod:2127
24458 #, no-wrap
24459 msgid ""
24460 " inspect-get-windows-current-control-set root\n"
24461 "\n"
24462 msgstr ""
24463
24464 #. type: =head2
24465 #: ../fish/guestfish-actions.pod:2138
24466 msgid "inspect-get-windows-systemroot"
24467 msgstr ""
24468
24469 #. type: verbatim
24470 #: ../fish/guestfish-actions.pod:2140
24471 #, no-wrap
24472 msgid ""
24473 " inspect-get-windows-systemroot root\n"
24474 "\n"
24475 msgstr ""
24476
24477 #. type: =head2
24478 #: ../fish/guestfish-actions.pod:2151
24479 msgid "inspect-is-live"
24480 msgstr ""
24481
24482 #. type: verbatim
24483 #: ../fish/guestfish-actions.pod:2153
24484 #, no-wrap
24485 msgid ""
24486 " inspect-is-live root\n"
24487 "\n"
24488 msgstr ""
24489
24490 #. type: textblock
24491 #: ../fish/guestfish-actions.pod:2155
24492 msgid ""
24493 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
24494 "then this returns true if a live image was detected on the disk."
24495 msgstr ""
24496
24497 #. type: =head2
24498 #: ../fish/guestfish-actions.pod:2161
24499 msgid "inspect-is-multipart"
24500 msgstr ""
24501
24502 #. type: verbatim
24503 #: ../fish/guestfish-actions.pod:2163
24504 #, no-wrap
24505 msgid ""
24506 " inspect-is-multipart root\n"
24507 "\n"
24508 msgstr ""
24509
24510 #. type: textblock
24511 #: ../fish/guestfish-actions.pod:2165
24512 msgid ""
24513 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
24514 "then this returns true if the disk is part of a set."
24515 msgstr ""
24516
24517 #. type: =head2
24518 #: ../fish/guestfish-actions.pod:2171
24519 msgid "inspect-is-netinst"
24520 msgstr ""
24521
24522 #. type: verbatim
24523 #: ../fish/guestfish-actions.pod:2173
24524 #, no-wrap
24525 msgid ""
24526 " inspect-is-netinst root\n"
24527 "\n"
24528 msgstr ""
24529
24530 #. type: textblock
24531 #: ../fish/guestfish-actions.pod:2175
24532 msgid ""
24533 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
24534 "then this returns true if the disk is a network installer, ie. not a self-"
24535 "contained install CD but one which is likely to require network access to "
24536 "complete the install."
24537 msgstr ""
24538
24539 #. type: =head2
24540 #: ../fish/guestfish-actions.pod:2183
24541 msgid "inspect-list-applications"
24542 msgstr ""
24543
24544 #. type: verbatim
24545 #: ../fish/guestfish-actions.pod:2185
24546 #, no-wrap
24547 msgid ""
24548 " inspect-list-applications root\n"
24549 "\n"
24550 msgstr ""
24551
24552 #. type: textblock
24553 #: ../fish/guestfish-actions.pod:2189
24554 msgid ""
24555 "I<Note:> This call works differently from other parts of the inspection "
24556 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
24557 "then mount up the disks, before calling this.  Listing applications is a "
24558 "significantly more difficult operation which requires access to the full "
24559 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
24560 "are just returning data cached in the libguestfs handle, this call actually "
24561 "reads parts of the mounted filesystems during the call."
24562 msgstr ""
24563
24564 #. type: =head2
24565 #: ../fish/guestfish-actions.pod:2279
24566 msgid "inspect-os"
24567 msgstr ""
24568
24569 #. type: verbatim
24570 #: ../fish/guestfish-actions.pod:2281
24571 #, no-wrap
24572 msgid ""
24573 " inspect-os\n"
24574 "\n"
24575 msgstr ""
24576
24577 #. type: textblock
24578 #: ../fish/guestfish-actions.pod:2296
24579 msgid ""
24580 "You can pass the root string(s) returned to other L</inspect-get-*> "
24581 "functions in order to query further information about each operating system, "
24582 "such as the name and version."
24583 msgstr ""
24584
24585 #. type: textblock
24586 #: ../fish/guestfish-actions.pod:2301
24587 msgid ""
24588 "This function uses other libguestfs features such as L</mount-ro> and L</"
24589 "umount-all> in order to mount and unmount filesystems and look at the "
24590 "contents.  This should be called with no disks currently mounted.  The "
24591 "function may also use Augeas, so any existing Augeas handle will be closed."
24592 msgstr ""
24593
24594 #. type: textblock
24595 #: ../fish/guestfish-actions.pod:2313 ../fish/guestfish-actions.pod:2511
24596 #: ../fish/guestfish-actions.pod:2557
24597 msgid "See also L</list-filesystems>."
24598 msgstr ""
24599
24600 #. type: =head2
24601 #: ../fish/guestfish-actions.pod:2315
24602 msgid "is-blockdev"
24603 msgstr ""
24604
24605 #. type: verbatim
24606 #: ../fish/guestfish-actions.pod:2317
24607 #, no-wrap
24608 msgid ""
24609 " is-blockdev path\n"
24610 "\n"
24611 msgstr ""
24612
24613 #. type: textblock
24614 #: ../fish/guestfish-actions.pod:2322 ../fish/guestfish-actions.pod:2340
24615 #: ../fish/guestfish-actions.pod:2359 ../fish/guestfish-actions.pod:2368
24616 #: ../fish/guestfish-actions.pod:2378 ../fish/guestfish-actions.pod:2412
24617 #: ../fish/guestfish-actions.pod:2421
24618 msgid "See also L</stat>."
24619 msgstr ""
24620
24621 #. type: =head2
24622 #: ../fish/guestfish-actions.pod:2324
24623 msgid "is-busy"
24624 msgstr ""
24625
24626 #. type: verbatim
24627 #: ../fish/guestfish-actions.pod:2326
24628 #, no-wrap
24629 msgid ""
24630 " is-busy\n"
24631 "\n"
24632 msgstr ""
24633
24634 #. type: =head2
24635 #: ../fish/guestfish-actions.pod:2333
24636 msgid "is-chardev"
24637 msgstr ""
24638
24639 #. type: verbatim
24640 #: ../fish/guestfish-actions.pod:2335
24641 #, no-wrap
24642 msgid ""
24643 " is-chardev path\n"
24644 "\n"
24645 msgstr ""
24646
24647 #. type: =head2
24648 #: ../fish/guestfish-actions.pod:2342
24649 msgid "is-config"
24650 msgstr ""
24651
24652 #. type: verbatim
24653 #: ../fish/guestfish-actions.pod:2344
24654 #, no-wrap
24655 msgid ""
24656 " is-config\n"
24657 "\n"
24658 msgstr ""
24659
24660 #. type: =head2
24661 #: ../fish/guestfish-actions.pod:2351
24662 msgid "is-dir"
24663 msgstr ""
24664
24665 #. type: verbatim
24666 #: ../fish/guestfish-actions.pod:2353
24667 #, no-wrap
24668 msgid ""
24669 " is-dir path\n"
24670 "\n"
24671 msgstr ""
24672
24673 #. type: =head2
24674 #: ../fish/guestfish-actions.pod:2361
24675 msgid "is-fifo"
24676 msgstr ""
24677
24678 #. type: verbatim
24679 #: ../fish/guestfish-actions.pod:2363
24680 #, no-wrap
24681 msgid ""
24682 " is-fifo path\n"
24683 "\n"
24684 msgstr ""
24685
24686 #. type: =head2
24687 #: ../fish/guestfish-actions.pod:2370
24688 msgid "is-file"
24689 msgstr ""
24690
24691 #. type: verbatim
24692 #: ../fish/guestfish-actions.pod:2372
24693 #, no-wrap
24694 msgid ""
24695 " is-file path\n"
24696 "\n"
24697 msgstr ""
24698
24699 #. type: =head2
24700 #: ../fish/guestfish-actions.pod:2380
24701 msgid "is-launching"
24702 msgstr ""
24703
24704 #. type: verbatim
24705 #: ../fish/guestfish-actions.pod:2382
24706 #, no-wrap
24707 msgid ""
24708 " is-launching\n"
24709 "\n"
24710 msgstr ""
24711
24712 #. type: =head2
24713 #: ../fish/guestfish-actions.pod:2389
24714 msgid "is-lv"
24715 msgstr ""
24716
24717 #. type: verbatim
24718 #: ../fish/guestfish-actions.pod:2391
24719 #, no-wrap
24720 msgid ""
24721 " is-lv device\n"
24722 "\n"
24723 msgstr ""
24724
24725 #. type: =head2
24726 #: ../fish/guestfish-actions.pod:2396
24727 msgid "is-ready"
24728 msgstr ""
24729
24730 #. type: verbatim
24731 #: ../fish/guestfish-actions.pod:2398
24732 #, no-wrap
24733 msgid ""
24734 " is-ready\n"
24735 "\n"
24736 msgstr ""
24737
24738 #. type: =head2
24739 #: ../fish/guestfish-actions.pod:2405
24740 msgid "is-socket"
24741 msgstr ""
24742
24743 #. type: verbatim
24744 #: ../fish/guestfish-actions.pod:2407
24745 #, no-wrap
24746 msgid ""
24747 " is-socket path\n"
24748 "\n"
24749 msgstr ""
24750
24751 #. type: =head2
24752 #: ../fish/guestfish-actions.pod:2414
24753 msgid "is-symlink"
24754 msgstr ""
24755
24756 #. type: verbatim
24757 #: ../fish/guestfish-actions.pod:2416
24758 #, no-wrap
24759 msgid ""
24760 " is-symlink path\n"
24761 "\n"
24762 msgstr ""
24763
24764 #. type: =head2
24765 #: ../fish/guestfish-actions.pod:2423
24766 msgid "is-zero"
24767 msgstr ""
24768
24769 #. type: verbatim
24770 #: ../fish/guestfish-actions.pod:2425
24771 #, no-wrap
24772 msgid ""
24773 " is-zero path\n"
24774 "\n"
24775 msgstr ""
24776
24777 #. type: =head2
24778 #: ../fish/guestfish-actions.pod:2430
24779 msgid "is-zero-device"
24780 msgstr ""
24781
24782 #. type: verbatim
24783 #: ../fish/guestfish-actions.pod:2432
24784 #, no-wrap
24785 msgid ""
24786 " is-zero-device device\n"
24787 "\n"
24788 msgstr ""
24789
24790 #. type: =head2
24791 #: ../fish/guestfish-actions.pod:2438
24792 msgid "kill-subprocess"
24793 msgstr ""
24794
24795 #. type: verbatim
24796 #: ../fish/guestfish-actions.pod:2440
24797 #, no-wrap
24798 msgid ""
24799 " kill-subprocess\n"
24800 "\n"
24801 msgstr ""
24802
24803 #. type: =head2
24804 #: ../fish/guestfish-actions.pod:2444
24805 msgid "launch"
24806 msgstr ""
24807
24808 #. type: =head2
24809 #: ../fish/guestfish-actions.pod:2446
24810 msgid "run"
24811 msgstr ""
24812
24813 #. type: verbatim
24814 #: ../fish/guestfish-actions.pod:2448
24815 #, no-wrap
24816 msgid ""
24817 " launch\n"
24818 "\n"
24819 msgstr ""
24820
24821 #. type: =head2
24822 #: ../fish/guestfish-actions.pod:2456
24823 msgid "lchown"
24824 msgstr ""
24825
24826 #. type: verbatim
24827 #: ../fish/guestfish-actions.pod:2458
24828 #, no-wrap
24829 msgid ""
24830 " lchown owner group path\n"
24831 "\n"
24832 msgstr ""
24833
24834 #. type: textblock
24835 #: ../fish/guestfish-actions.pod:2460
24836 msgid ""
24837 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
24838 "chown> but if C<path> is a symlink then the link itself is changed, not the "
24839 "target."
24840 msgstr ""
24841
24842 #. type: =head2
24843 #: ../fish/guestfish-actions.pod:2468
24844 msgid "lgetxattr"
24845 msgstr ""
24846
24847 #. type: verbatim
24848 #: ../fish/guestfish-actions.pod:2470
24849 #, no-wrap
24850 msgid ""
24851 " lgetxattr path name\n"
24852 "\n"
24853 msgstr ""
24854
24855 #. type: textblock
24856 #: ../fish/guestfish-actions.pod:2486
24857 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
24858 msgstr ""
24859
24860 #. type: =head2
24861 #: ../fish/guestfish-actions.pod:2488
24862 msgid "lgetxattrs"
24863 msgstr ""
24864
24865 #. type: verbatim
24866 #: ../fish/guestfish-actions.pod:2490
24867 #, no-wrap
24868 msgid ""
24869 " lgetxattrs path\n"
24870 "\n"
24871 msgstr ""
24872
24873 #. type: textblock
24874 #: ../fish/guestfish-actions.pod:2492
24875 msgid ""
24876 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
24877 "it returns the extended attributes of the link itself."
24878 msgstr ""
24879
24880 #. type: =head2
24881 #: ../fish/guestfish-actions.pod:2496
24882 msgid "list-9p"
24883 msgstr ""
24884
24885 #. type: verbatim
24886 #: ../fish/guestfish-actions.pod:2498
24887 #, no-wrap
24888 msgid ""
24889 " list-9p\n"
24890 "\n"
24891 msgstr ""
24892
24893 #. type: =head2
24894 #: ../fish/guestfish-actions.pod:2503
24895 msgid "list-devices"
24896 msgstr ""
24897
24898 #. type: verbatim
24899 #: ../fish/guestfish-actions.pod:2505
24900 #, no-wrap
24901 msgid ""
24902 " list-devices\n"
24903 "\n"
24904 msgstr ""
24905
24906 #. type: =head2
24907 #: ../fish/guestfish-actions.pod:2513
24908 msgid "list-filesystems"
24909 msgstr ""
24910
24911 #. type: verbatim
24912 #: ../fish/guestfish-actions.pod:2515
24913 #, no-wrap
24914 msgid ""
24915 " list-filesystems\n"
24916 "\n"
24917 msgstr ""
24918
24919 #. type: textblock
24920 #: ../fish/guestfish-actions.pod:2534
24921 msgid ""
24922 "This command runs other libguestfs commands, which might include L</mount> "
24923 "and L</umount>, and therefore you should use this soon after launch and only "
24924 "when nothing is mounted."
24925 msgstr ""
24926
24927 #. type: textblock
24928 #: ../fish/guestfish-actions.pod:2538
24929 msgid ""
24930 "Not all of the filesystems returned will be mountable.  In particular, swap "
24931 "partitions are returned in the list.  Also this command does not check that "
24932 "each filesystem found is valid and mountable, and some filesystems might be "
24933 "mountable but require special options.  Filesystems may not all belong to a "
24934 "single logical operating system (use L</inspect-os> to look for OSes)."
24935 msgstr ""
24936
24937 #. type: =head2
24938 #: ../fish/guestfish-actions.pod:2546
24939 msgid "list-partitions"
24940 msgstr ""
24941
24942 #. type: verbatim
24943 #: ../fish/guestfish-actions.pod:2548
24944 #, no-wrap
24945 msgid ""
24946 " list-partitions\n"
24947 "\n"
24948 msgstr ""
24949
24950 #. type: textblock
24951 #: ../fish/guestfish-actions.pod:2554
24952 msgid ""
24953 "This does not return logical volumes.  For that you will need to call L</"
24954 "lvs>."
24955 msgstr ""
24956
24957 #. type: =head2
24958 #: ../fish/guestfish-actions.pod:2559
24959 msgid "ll"
24960 msgstr ""
24961
24962 #. type: verbatim
24963 #: ../fish/guestfish-actions.pod:2561
24964 #, no-wrap
24965 msgid ""
24966 " ll directory\n"
24967 "\n"
24968 msgstr ""
24969
24970 #. type: =head2
24971 #: ../fish/guestfish-actions.pod:2569
24972 msgid "ln"
24973 msgstr ""
24974
24975 #. type: verbatim
24976 #: ../fish/guestfish-actions.pod:2571
24977 #, no-wrap
24978 msgid ""
24979 " ln target linkname\n"
24980 "\n"
24981 msgstr ""
24982
24983 #. type: =head2
24984 #: ../fish/guestfish-actions.pod:2575
24985 msgid "ln-f"
24986 msgstr ""
24987
24988 #. type: verbatim
24989 #: ../fish/guestfish-actions.pod:2577
24990 #, no-wrap
24991 msgid ""
24992 " ln-f target linkname\n"
24993 "\n"
24994 msgstr ""
24995
24996 #. type: =head2
24997 #: ../fish/guestfish-actions.pod:2582
24998 msgid "ln-s"
24999 msgstr ""
25000
25001 #. type: verbatim
25002 #: ../fish/guestfish-actions.pod:2584
25003 #, no-wrap
25004 msgid ""
25005 " ln-s target linkname\n"
25006 "\n"
25007 msgstr ""
25008
25009 #. type: =head2
25010 #: ../fish/guestfish-actions.pod:2588
25011 msgid "ln-sf"
25012 msgstr ""
25013
25014 #. type: verbatim
25015 #: ../fish/guestfish-actions.pod:2590
25016 #, no-wrap
25017 msgid ""
25018 " ln-sf target linkname\n"
25019 "\n"
25020 msgstr ""
25021
25022 #. type: =head2
25023 #: ../fish/guestfish-actions.pod:2595
25024 msgid "lremovexattr"
25025 msgstr ""
25026
25027 #. type: verbatim
25028 #: ../fish/guestfish-actions.pod:2597
25029 #, no-wrap
25030 msgid ""
25031 " lremovexattr xattr path\n"
25032 "\n"
25033 msgstr ""
25034
25035 #. type: textblock
25036 #: ../fish/guestfish-actions.pod:2599
25037 msgid ""
25038 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
25039 "it removes an extended attribute of the link itself."
25040 msgstr ""
25041
25042 #. type: =head2
25043 #: ../fish/guestfish-actions.pod:2603
25044 msgid "ls"
25045 msgstr ""
25046
25047 #. type: verbatim
25048 #: ../fish/guestfish-actions.pod:2605
25049 #, no-wrap
25050 msgid ""
25051 " ls directory\n"
25052 "\n"
25053 msgstr ""
25054
25055 #. type: textblock
25056 #: ../fish/guestfish-actions.pod:2611
25057 msgid ""
25058 "This command is mostly useful for interactive sessions.  Programs should "
25059 "probably use L</readdir> instead."
25060 msgstr ""
25061
25062 #. type: =head2
25063 #: ../fish/guestfish-actions.pod:2614
25064 msgid "lsetxattr"
25065 msgstr ""
25066
25067 #. type: verbatim
25068 #: ../fish/guestfish-actions.pod:2616
25069 #, no-wrap
25070 msgid ""
25071 " lsetxattr xattr val vallen path\n"
25072 "\n"
25073 msgstr ""
25074
25075 #. type: textblock
25076 #: ../fish/guestfish-actions.pod:2618
25077 msgid ""
25078 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
25079 "sets an extended attribute of the link itself."
25080 msgstr ""
25081
25082 #. type: =head2
25083 #: ../fish/guestfish-actions.pod:2622
25084 msgid "lstat"
25085 msgstr ""
25086
25087 #. type: verbatim
25088 #: ../fish/guestfish-actions.pod:2624
25089 #, no-wrap
25090 msgid ""
25091 " lstat path\n"
25092 "\n"
25093 msgstr ""
25094
25095 #. type: textblock
25096 #: ../fish/guestfish-actions.pod:2628
25097 msgid ""
25098 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
25099 "the link is stat-ed, not the file it refers to."
25100 msgstr ""
25101
25102 #. type: =head2
25103 #: ../fish/guestfish-actions.pod:2634
25104 msgid "lstatlist"
25105 msgstr ""
25106
25107 #. type: verbatim
25108 #: ../fish/guestfish-actions.pod:2636
25109 #, no-wrap
25110 msgid ""
25111 " lstatlist path 'names ...'\n"
25112 "\n"
25113 msgstr ""
25114
25115 #. type: textblock
25116 #: ../fish/guestfish-actions.pod:2638
25117 msgid ""
25118 "This call allows you to perform the L</lstat> operation on multiple files, "
25119 "where all files are in the directory C<path>.  C<names> is the list of files "
25120 "from this directory."
25121 msgstr ""
25122
25123 #. type: textblock
25124 #: ../fish/guestfish-actions.pod:2647
25125 msgid ""
25126 "This call is intended for programs that want to efficiently list a directory "
25127 "contents without making many round-trips.  See also L</lxattrlist> for a "
25128 "similarly efficient call for getting extended attributes.  Very long "
25129 "directory listings might cause the protocol message size to be exceeded, "
25130 "causing this call to fail.  The caller must split up such requests into "
25131 "smaller groups of names."
25132 msgstr ""
25133
25134 #. type: =head2
25135 #: ../fish/guestfish-actions.pod:2655
25136 msgid "luks-add-key"
25137 msgstr ""
25138
25139 #. type: verbatim
25140 #: ../fish/guestfish-actions.pod:2657
25141 #, no-wrap
25142 msgid ""
25143 " luks-add-key device keyslot\n"
25144 "\n"
25145 msgstr ""
25146
25147 #. type: textblock
25148 #: ../fish/guestfish-actions.pod:2664
25149 msgid ""
25150 "Note that if C<keyslot> already contains a key, then this command will "
25151 "fail.  You have to use L</luks-kill-slot> first to remove that key."
25152 msgstr ""
25153
25154 #. type: textblock
25155 #: ../fish/guestfish-actions.pod:2668 ../fish/guestfish-actions.pod:2690
25156 #: ../fish/guestfish-actions.pod:2703 ../fish/guestfish-actions.pod:2717
25157 #: ../fish/guestfish-actions.pod:2740 ../fish/guestfish-actions.pod:2750
25158 msgid ""
25159 "This command has one or more key or passphrase parameters.  Guestfish will "
25160 "prompt for these separately."
25161 msgstr ""
25162
25163 #. type: =head2
25164 #: ../fish/guestfish-actions.pod:2671
25165 msgid "luks-close"
25166 msgstr ""
25167
25168 #. type: verbatim
25169 #: ../fish/guestfish-actions.pod:2673
25170 #, no-wrap
25171 msgid ""
25172 " luks-close device\n"
25173 "\n"
25174 msgstr ""
25175
25176 #. type: textblock
25177 #: ../fish/guestfish-actions.pod:2675
25178 msgid ""
25179 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
25180 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
25181 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
25182 "block device."
25183 msgstr ""
25184
25185 #. type: =head2
25186 #: ../fish/guestfish-actions.pod:2681
25187 msgid "luks-format"
25188 msgstr ""
25189
25190 #. type: verbatim
25191 #: ../fish/guestfish-actions.pod:2683
25192 #, no-wrap
25193 msgid ""
25194 " luks-format device keyslot\n"
25195 "\n"
25196 msgstr ""
25197
25198 #. type: =head2
25199 #: ../fish/guestfish-actions.pod:2696
25200 msgid "luks-format-cipher"
25201 msgstr ""
25202
25203 #. type: verbatim
25204 #: ../fish/guestfish-actions.pod:2698
25205 #, no-wrap
25206 msgid ""
25207 " luks-format-cipher device keyslot cipher\n"
25208 "\n"
25209 msgstr ""
25210
25211 #. type: textblock
25212 #: ../fish/guestfish-actions.pod:2700
25213 msgid ""
25214 "This command is the same as L</luks-format> but it also allows you to set "
25215 "the C<cipher> used."
25216 msgstr ""
25217
25218 #. type: =head2
25219 #: ../fish/guestfish-actions.pod:2709
25220 msgid "luks-kill-slot"
25221 msgstr ""
25222
25223 #. type: verbatim
25224 #: ../fish/guestfish-actions.pod:2711
25225 #, no-wrap
25226 msgid ""
25227 " luks-kill-slot device keyslot\n"
25228 "\n"
25229 msgstr ""
25230
25231 #. type: =head2
25232 #: ../fish/guestfish-actions.pod:2720
25233 msgid "luks-open"
25234 msgstr ""
25235
25236 #. type: verbatim
25237 #: ../fish/guestfish-actions.pod:2722
25238 #, no-wrap
25239 msgid ""
25240 " luks-open device mapname\n"
25241 "\n"
25242 msgstr ""
25243
25244 #. type: textblock
25245 #: ../fish/guestfish-actions.pod:2736
25246 msgid ""
25247 "If this block device contains LVM volume groups, then calling L</vgscan> "
25248 "followed by L</vg-activate-all> will make them visible."
25249 msgstr ""
25250
25251 #. type: =head2
25252 #: ../fish/guestfish-actions.pod:2743
25253 msgid "luks-open-ro"
25254 msgstr ""
25255
25256 #. type: verbatim
25257 #: ../fish/guestfish-actions.pod:2745
25258 #, no-wrap
25259 msgid ""
25260 " luks-open-ro device mapname\n"
25261 "\n"
25262 msgstr ""
25263
25264 #. type: textblock
25265 #: ../fish/guestfish-actions.pod:2747
25266 msgid ""
25267 "This is the same as L</luks-open> except that a read-only mapping is created."
25268 msgstr ""
25269
25270 #. type: =head2
25271 #: ../fish/guestfish-actions.pod:2753
25272 msgid "lvcreate"
25273 msgstr ""
25274
25275 #. type: verbatim
25276 #: ../fish/guestfish-actions.pod:2755
25277 #, no-wrap
25278 msgid ""
25279 " lvcreate logvol volgroup mbytes\n"
25280 "\n"
25281 msgstr ""
25282
25283 #. type: =head2
25284 #: ../fish/guestfish-actions.pod:2760
25285 msgid "lvm-canonical-lv-name"
25286 msgstr ""
25287
25288 #. type: verbatim
25289 #: ../fish/guestfish-actions.pod:2762
25290 #, no-wrap
25291 msgid ""
25292 " lvm-canonical-lv-name lvname\n"
25293 "\n"
25294 msgstr ""
25295
25296 #. type: textblock
25297 #: ../fish/guestfish-actions.pod:2771
25298 msgid "See also L</is-lv>."
25299 msgstr ""
25300
25301 #. type: =head2
25302 #: ../fish/guestfish-actions.pod:2773
25303 msgid "lvm-clear-filter"
25304 msgstr ""
25305
25306 #. type: verbatim
25307 #: ../fish/guestfish-actions.pod:2775
25308 #, no-wrap
25309 msgid ""
25310 " lvm-clear-filter\n"
25311 "\n"
25312 msgstr ""
25313
25314 #. type: textblock
25315 #: ../fish/guestfish-actions.pod:2777
25316 msgid ""
25317 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
25318 "block device."
25319 msgstr ""
25320
25321 #. type: =head2
25322 #: ../fish/guestfish-actions.pod:2783
25323 msgid "lvm-remove-all"
25324 msgstr ""
25325
25326 #. type: verbatim
25327 #: ../fish/guestfish-actions.pod:2785
25328 #, no-wrap
25329 msgid ""
25330 " lvm-remove-all\n"
25331 "\n"
25332 msgstr ""
25333
25334 #. type: =head2
25335 #: ../fish/guestfish-actions.pod:2793
25336 msgid "lvm-set-filter"
25337 msgstr ""
25338
25339 #. type: verbatim
25340 #: ../fish/guestfish-actions.pod:2795
25341 #, no-wrap
25342 msgid ""
25343 " lvm-set-filter 'devices ...'\n"
25344 "\n"
25345 msgstr ""
25346
25347 #. type: =head2
25348 #: ../fish/guestfish-actions.pod:2820
25349 msgid "lvremove"
25350 msgstr ""
25351
25352 #. type: verbatim
25353 #: ../fish/guestfish-actions.pod:2822
25354 #, no-wrap
25355 msgid ""
25356 " lvremove device\n"
25357 "\n"
25358 msgstr ""
25359
25360 #. type: =head2
25361 #: ../fish/guestfish-actions.pod:2830
25362 msgid "lvrename"
25363 msgstr ""
25364
25365 #. type: verbatim
25366 #: ../fish/guestfish-actions.pod:2832
25367 #, no-wrap
25368 msgid ""
25369 " lvrename logvol newlogvol\n"
25370 "\n"
25371 msgstr ""
25372
25373 #. type: =head2
25374 #: ../fish/guestfish-actions.pod:2836
25375 msgid "lvresize"
25376 msgstr ""
25377
25378 #. type: verbatim
25379 #: ../fish/guestfish-actions.pod:2838
25380 #, no-wrap
25381 msgid ""
25382 " lvresize device mbytes\n"
25383 "\n"
25384 msgstr ""
25385
25386 #. type: =head2
25387 #: ../fish/guestfish-actions.pod:2844
25388 msgid "lvresize-free"
25389 msgstr ""
25390
25391 #. type: verbatim
25392 #: ../fish/guestfish-actions.pod:2846
25393 #, no-wrap
25394 msgid ""
25395 " lvresize-free lv percent\n"
25396 "\n"
25397 msgstr ""
25398
25399 #. type: =head2
25400 #: ../fish/guestfish-actions.pod:2854
25401 msgid "lvs"
25402 msgstr ""
25403
25404 #. type: verbatim
25405 #: ../fish/guestfish-actions.pod:2856
25406 #, no-wrap
25407 msgid ""
25408 " lvs\n"
25409 "\n"
25410 msgstr ""
25411
25412 #. type: textblock
25413 #: ../fish/guestfish-actions.pod:2864
25414 msgid "See also L</lvs-full>, L</list-filesystems>."
25415 msgstr ""
25416
25417 #. type: =head2
25418 #: ../fish/guestfish-actions.pod:2866
25419 msgid "lvs-full"
25420 msgstr ""
25421
25422 #. type: verbatim
25423 #: ../fish/guestfish-actions.pod:2868
25424 #, no-wrap
25425 msgid ""
25426 " lvs-full\n"
25427 "\n"
25428 msgstr ""
25429
25430 #. type: =head2
25431 #: ../fish/guestfish-actions.pod:2873
25432 msgid "lvuuid"
25433 msgstr ""
25434
25435 #. type: verbatim
25436 #: ../fish/guestfish-actions.pod:2875
25437 #, no-wrap
25438 msgid ""
25439 " lvuuid device\n"
25440 "\n"
25441 msgstr ""
25442
25443 #. type: =head2
25444 #: ../fish/guestfish-actions.pod:2879
25445 msgid "lxattrlist"
25446 msgstr ""
25447
25448 #. type: verbatim
25449 #: ../fish/guestfish-actions.pod:2881
25450 #, no-wrap
25451 msgid ""
25452 " lxattrlist path 'names ...'\n"
25453 "\n"
25454 msgstr ""
25455
25456 #. type: textblock
25457 #: ../fish/guestfish-actions.pod:2897
25458 msgid ""
25459 "This call is intended for programs that want to efficiently list a directory "
25460 "contents without making many round-trips.  See also L</lstatlist> for a "
25461 "similarly efficient call for getting standard stats.  Very long directory "
25462 "listings might cause the protocol message size to be exceeded, causing this "
25463 "call to fail.  The caller must split up such requests into smaller groups of "
25464 "names."
25465 msgstr ""
25466
25467 #. type: =head2
25468 #: ../fish/guestfish-actions.pod:2905
25469 msgid "mkdir"
25470 msgstr ""
25471
25472 #. type: verbatim
25473 #: ../fish/guestfish-actions.pod:2907
25474 #, no-wrap
25475 msgid ""
25476 " mkdir path\n"
25477 "\n"
25478 msgstr ""
25479
25480 #. type: =head2
25481 #: ../fish/guestfish-actions.pod:2911
25482 msgid "mkdir-mode"
25483 msgstr ""
25484
25485 #. type: verbatim
25486 #: ../fish/guestfish-actions.pod:2913
25487 #, no-wrap
25488 msgid ""
25489 " mkdir-mode path mode\n"
25490 "\n"
25491 msgstr ""
25492
25493 #. type: textblock
25494 #: ../fish/guestfish-actions.pod:2922
25495 msgid "See also L</mkdir>, L</umask>"
25496 msgstr ""
25497
25498 #. type: =head2
25499 #: ../fish/guestfish-actions.pod:2924
25500 msgid "mkdir-p"
25501 msgstr ""
25502
25503 #. type: verbatim
25504 #: ../fish/guestfish-actions.pod:2926
25505 #, no-wrap
25506 msgid ""
25507 " mkdir-p path\n"
25508 "\n"
25509 msgstr ""
25510
25511 #. type: =head2
25512 #: ../fish/guestfish-actions.pod:2931
25513 msgid "mkdtemp"
25514 msgstr ""
25515
25516 #. type: verbatim
25517 #: ../fish/guestfish-actions.pod:2933
25518 #, no-wrap
25519 msgid ""
25520 " mkdtemp template\n"
25521 "\n"
25522 msgstr ""
25523
25524 #. type: =head2
25525 #: ../fish/guestfish-actions.pod:2954
25526 msgid "mke2fs-J"
25527 msgstr ""
25528
25529 #. type: verbatim
25530 #: ../fish/guestfish-actions.pod:2956
25531 #, no-wrap
25532 msgid ""
25533 " mke2fs-J fstype blocksize device journal\n"
25534 "\n"
25535 msgstr ""
25536
25537 #. type: textblock
25538 #: ../fish/guestfish-actions.pod:2964
25539 msgid "See also L</mke2journal>."
25540 msgstr ""
25541
25542 #. type: =head2
25543 #: ../fish/guestfish-actions.pod:2966
25544 msgid "mke2fs-JL"
25545 msgstr ""
25546
25547 #. type: verbatim
25548 #: ../fish/guestfish-actions.pod:2968
25549 #, no-wrap
25550 msgid ""
25551 " mke2fs-JL fstype blocksize device label\n"
25552 "\n"
25553 msgstr ""
25554
25555 #. type: textblock
25556 #: ../fish/guestfish-actions.pod:2973
25557 msgid "See also L</mke2journal-L>."
25558 msgstr ""
25559
25560 #. type: =head2
25561 #: ../fish/guestfish-actions.pod:2975
25562 msgid "mke2fs-JU"
25563 msgstr ""
25564
25565 #. type: verbatim
25566 #: ../fish/guestfish-actions.pod:2977
25567 #, no-wrap
25568 msgid ""
25569 " mke2fs-JU fstype blocksize device uuid\n"
25570 "\n"
25571 msgstr ""
25572
25573 #. type: textblock
25574 #: ../fish/guestfish-actions.pod:2982
25575 msgid "See also L</mke2journal-U>."
25576 msgstr ""
25577
25578 #. type: =head2
25579 #: ../fish/guestfish-actions.pod:2984
25580 msgid "mke2journal"
25581 msgstr ""
25582
25583 #. type: verbatim
25584 #: ../fish/guestfish-actions.pod:2986
25585 #, no-wrap
25586 msgid ""
25587 " mke2journal blocksize device\n"
25588 "\n"
25589 msgstr ""
25590
25591 #. type: =head2
25592 #: ../fish/guestfish-actions.pod:2993
25593 msgid "mke2journal-L"
25594 msgstr ""
25595
25596 #. type: verbatim
25597 #: ../fish/guestfish-actions.pod:2995
25598 #, no-wrap
25599 msgid ""
25600 " mke2journal-L blocksize label device\n"
25601 "\n"
25602 msgstr ""
25603
25604 #. type: =head2
25605 #: ../fish/guestfish-actions.pod:2999
25606 msgid "mke2journal-U"
25607 msgstr ""
25608
25609 #. type: verbatim
25610 #: ../fish/guestfish-actions.pod:3001
25611 #, no-wrap
25612 msgid ""
25613 " mke2journal-U blocksize uuid device\n"
25614 "\n"
25615 msgstr ""
25616
25617 #. type: =head2
25618 #: ../fish/guestfish-actions.pod:3005
25619 msgid "mkfifo"
25620 msgstr ""
25621
25622 #. type: verbatim
25623 #: ../fish/guestfish-actions.pod:3007
25624 #, no-wrap
25625 msgid ""
25626 " mkfifo mode path\n"
25627 "\n"
25628 msgstr ""
25629
25630 #. type: textblock
25631 #: ../fish/guestfish-actions.pod:3009
25632 msgid ""
25633 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
25634 "is just a convenient wrapper around L</mknod>."
25635 msgstr ""
25636
25637 #. type: =head2
25638 #: ../fish/guestfish-actions.pod:3015
25639 msgid "mkfs"
25640 msgstr ""
25641
25642 #. type: verbatim
25643 #: ../fish/guestfish-actions.pod:3017
25644 #, no-wrap
25645 msgid ""
25646 " mkfs fstype device\n"
25647 "\n"
25648 msgstr ""
25649
25650 #. type: =head2
25651 #: ../fish/guestfish-actions.pod:3023
25652 msgid "mkfs-b"
25653 msgstr ""
25654
25655 #. type: verbatim
25656 #: ../fish/guestfish-actions.pod:3025
25657 #, no-wrap
25658 msgid ""
25659 " mkfs-b fstype blocksize device\n"
25660 "\n"
25661 msgstr ""
25662
25663 #. type: textblock
25664 #: ../fish/guestfish-actions.pod:3027
25665 msgid ""
25666 "This call is similar to L</mkfs>, but it allows you to control the block "
25667 "size of the resulting filesystem.  Supported block sizes depend on the "
25668 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
25669 msgstr ""
25670
25671 #. type: =head2
25672 #: ../fish/guestfish-actions.pod:3042
25673 msgid "mkfs-opts"
25674 msgstr ""
25675
25676 #. type: verbatim
25677 #: ../fish/guestfish-actions.pod:3044
25678 #, no-wrap
25679 msgid ""
25680 " mkfs-opts fstype device [blocksize:..] [features:..]\n"
25681 "\n"
25682 msgstr ""
25683
25684 #. type: =head2
25685 #: ../fish/guestfish-actions.pod:3079
25686 msgid "mkmountpoint"
25687 msgstr ""
25688
25689 #. type: verbatim
25690 #: ../fish/guestfish-actions.pod:3081
25691 #, no-wrap
25692 msgid ""
25693 " mkmountpoint exemptpath\n"
25694 "\n"
25695 msgstr ""
25696
25697 #. type: textblock
25698 #: ../fish/guestfish-actions.pod:3083
25699 msgid ""
25700 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
25701 "to create extra mountpoints before mounting the first filesystem."
25702 msgstr ""
25703
25704 #. type: textblock
25705 #: ../fish/guestfish-actions.pod:3107
25706 msgid ""
25707 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
25708 "unexpected errors if you try to mix these calls.  It is safest to manually "
25709 "unmount filesystems and remove mountpoints after use."
25710 msgstr ""
25711
25712 #. type: textblock
25713 #: ../fish/guestfish-actions.pod:3111
25714 msgid ""
25715 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
25716 "for this to work for manual mountpoints, you must ensure that the innermost "
25717 "mountpoints have the longest pathnames, as in the example code above."
25718 msgstr ""
25719
25720 #. type: textblock
25721 #: ../fish/guestfish-actions.pod:3118
25722 msgid ""
25723 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
25724 "L</umount-all> to be called when the handle is closed which can also trigger "
25725 "these issues."
25726 msgstr ""
25727
25728 #. type: =head2
25729 #: ../fish/guestfish-actions.pod:3122
25730 msgid "mknod"
25731 msgstr ""
25732
25733 #. type: verbatim
25734 #: ../fish/guestfish-actions.pod:3124
25735 #, no-wrap
25736 msgid ""
25737 " mknod mode devmajor devminor path\n"
25738 "\n"
25739 msgstr ""
25740
25741 #. type: textblock
25742 #: ../fish/guestfish-actions.pod:3134
25743 msgid ""
25744 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
25745 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
25746 "regular file).  These constants are available in the standard Linux header "
25747 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
25748 "wrappers around this command which bitwise OR in the appropriate constant "
25749 "for you."
25750 msgstr ""
25751
25752 #. type: =head2
25753 #: ../fish/guestfish-actions.pod:3144
25754 msgid "mknod-b"
25755 msgstr ""
25756
25757 #. type: verbatim
25758 #: ../fish/guestfish-actions.pod:3146
25759 #, no-wrap
25760 msgid ""
25761 " mknod-b mode devmajor devminor path\n"
25762 "\n"
25763 msgstr ""
25764
25765 #. type: textblock
25766 #: ../fish/guestfish-actions.pod:3148
25767 msgid ""
25768 "This call creates a block device node called C<path> with mode C<mode> and "
25769 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
25770 "wrapper around L</mknod>."
25771 msgstr ""
25772
25773 #. type: =head2
25774 #: ../fish/guestfish-actions.pod:3154
25775 msgid "mknod-c"
25776 msgstr ""
25777
25778 #. type: verbatim
25779 #: ../fish/guestfish-actions.pod:3156
25780 #, no-wrap
25781 msgid ""
25782 " mknod-c mode devmajor devminor path\n"
25783 "\n"
25784 msgstr ""
25785
25786 #. type: textblock
25787 #: ../fish/guestfish-actions.pod:3158
25788 msgid ""
25789 "This call creates a char device node called C<path> with mode C<mode> and "
25790 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
25791 "wrapper around L</mknod>."
25792 msgstr ""
25793
25794 #. type: =head2
25795 #: ../fish/guestfish-actions.pod:3164
25796 msgid "mkswap"
25797 msgstr ""
25798
25799 #. type: verbatim
25800 #: ../fish/guestfish-actions.pod:3166
25801 #, no-wrap
25802 msgid ""
25803 " mkswap device\n"
25804 "\n"
25805 msgstr ""
25806
25807 #. type: =head2
25808 #: ../fish/guestfish-actions.pod:3170
25809 msgid "mkswap-L"
25810 msgstr ""
25811
25812 #. type: verbatim
25813 #: ../fish/guestfish-actions.pod:3172
25814 #, no-wrap
25815 msgid ""
25816 " mkswap-L label device\n"
25817 "\n"
25818 msgstr ""
25819
25820 #. type: =head2
25821 #: ../fish/guestfish-actions.pod:3180
25822 msgid "mkswap-U"
25823 msgstr ""
25824
25825 #. type: verbatim
25826 #: ../fish/guestfish-actions.pod:3182
25827 #, no-wrap
25828 msgid ""
25829 " mkswap-U uuid device\n"
25830 "\n"
25831 msgstr ""
25832
25833 #. type: =head2
25834 #: ../fish/guestfish-actions.pod:3186
25835 msgid "mkswap-file"
25836 msgstr ""
25837
25838 #. type: verbatim
25839 #: ../fish/guestfish-actions.pod:3188
25840 #, no-wrap
25841 msgid ""
25842 " mkswap-file path\n"
25843 "\n"
25844 msgstr ""
25845
25846 #. type: textblock
25847 #: ../fish/guestfish-actions.pod:3192
25848 msgid ""
25849 "This command just writes a swap file signature to an existing file.  To "
25850 "create the file itself, use something like L</fallocate>."
25851 msgstr ""
25852
25853 #. type: =head2
25854 #: ../fish/guestfish-actions.pod:3195
25855 msgid "modprobe"
25856 msgstr ""
25857
25858 #. type: verbatim
25859 #: ../fish/guestfish-actions.pod:3197
25860 #, no-wrap
25861 msgid ""
25862 " modprobe modulename\n"
25863 "\n"
25864 msgstr ""
25865
25866 #. type: =head2
25867 #: ../fish/guestfish-actions.pod:3204
25868 msgid "mount"
25869 msgstr ""
25870
25871 #. type: verbatim
25872 #: ../fish/guestfish-actions.pod:3206
25873 #, no-wrap
25874 msgid ""
25875 " mount device mountpoint\n"
25876 "\n"
25877 msgstr ""
25878
25879 #. type: textblock
25880 #: ../fish/guestfish-actions.pod:3222
25881 msgid ""
25882 "B<Important note:> When you use this call, the filesystem options C<sync> "
25883 "and C<noatime> are set implicitly.  This was originally done because we "
25884 "thought it would improve reliability, but it turns out that I<-o sync> has a "
25885 "very large negative performance impact and negligible effect on "
25886 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
25887 "code that needs performance, and instead use L</mount-options> (use an empty "
25888 "string for the first parameter if you don't want any options)."
25889 msgstr ""
25890
25891 #. type: =head2
25892 #: ../fish/guestfish-actions.pod:3239
25893 msgid "mount-9p"
25894 msgstr ""
25895
25896 #. type: verbatim
25897 #: ../fish/guestfish-actions.pod:3241
25898 #, no-wrap
25899 msgid ""
25900 " mount-9p mounttag mountpoint [options:..]\n"
25901 "\n"
25902 msgstr ""
25903
25904 #. type: =head2
25905 #: ../fish/guestfish-actions.pod:3252
25906 msgid "mount-loop"
25907 msgstr ""
25908
25909 #. type: verbatim
25910 #: ../fish/guestfish-actions.pod:3254
25911 #, no-wrap
25912 msgid ""
25913 " mount-loop file mountpoint\n"
25914 "\n"
25915 msgstr ""
25916
25917 #. type: =head2
25918 #: ../fish/guestfish-actions.pod:3260
25919 msgid "mount-options"
25920 msgstr ""
25921
25922 #. type: verbatim
25923 #: ../fish/guestfish-actions.pod:3262
25924 #, no-wrap
25925 msgid ""
25926 " mount-options options device mountpoint\n"
25927 "\n"
25928 msgstr ""
25929
25930 #. type: textblock
25931 #: ../fish/guestfish-actions.pod:3264
25932 msgid ""
25933 "This is the same as the L</mount> command, but it allows you to set the "
25934 "mount options as for the L<mount(8)> I<-o> flag."
25935 msgstr ""
25936
25937 #. type: =head2
25938 #: ../fish/guestfish-actions.pod:3272
25939 msgid "mount-ro"
25940 msgstr ""
25941
25942 #. type: verbatim
25943 #: ../fish/guestfish-actions.pod:3274
25944 #, no-wrap
25945 msgid ""
25946 " mount-ro device mountpoint\n"
25947 "\n"
25948 msgstr ""
25949
25950 #. type: textblock
25951 #: ../fish/guestfish-actions.pod:3276
25952 msgid ""
25953 "This is the same as the L</mount> command, but it mounts the filesystem with "
25954 "the read-only (I<-o ro>) flag."
25955 msgstr ""
25956
25957 #. type: =head2
25958 #: ../fish/guestfish-actions.pod:3279
25959 msgid "mount-vfs"
25960 msgstr ""
25961
25962 #. type: verbatim
25963 #: ../fish/guestfish-actions.pod:3281
25964 #, no-wrap
25965 msgid ""
25966 " mount-vfs options vfstype device mountpoint\n"
25967 "\n"
25968 msgstr ""
25969
25970 #. type: textblock
25971 #: ../fish/guestfish-actions.pod:3283
25972 msgid ""
25973 "This is the same as the L</mount> command, but it allows you to set both the "
25974 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
25975 msgstr ""
25976
25977 #. type: =head2
25978 #: ../fish/guestfish-actions.pod:3287
25979 msgid "mountpoints"
25980 msgstr ""
25981
25982 #. type: verbatim
25983 #: ../fish/guestfish-actions.pod:3289
25984 #, no-wrap
25985 msgid ""
25986 " mountpoints\n"
25987 "\n"
25988 msgstr ""
25989
25990 #. type: textblock
25991 #: ../fish/guestfish-actions.pod:3291
25992 msgid ""
25993 "This call is similar to L</mounts>.  That call returns a list of devices.  "
25994 "This one returns a hash table (map) of device name to directory where the "
25995 "device is mounted."
25996 msgstr ""
25997
25998 #. type: =head2
25999 #: ../fish/guestfish-actions.pod:3295
26000 msgid "mounts"
26001 msgstr ""
26002
26003 #. type: verbatim
26004 #: ../fish/guestfish-actions.pod:3297
26005 #, no-wrap
26006 msgid ""
26007 " mounts\n"
26008 "\n"
26009 msgstr ""
26010
26011 #. type: textblock
26012 #: ../fish/guestfish-actions.pod:3304
26013 msgid "See also: L</mountpoints>"
26014 msgstr ""
26015
26016 #. type: =head2
26017 #: ../fish/guestfish-actions.pod:3306
26018 msgid "mv"
26019 msgstr ""
26020
26021 #. type: verbatim
26022 #: ../fish/guestfish-actions.pod:3308
26023 #, no-wrap
26024 msgid ""
26025 " mv src dest\n"
26026 "\n"
26027 msgstr ""
26028
26029 #. type: =head2
26030 #: ../fish/guestfish-actions.pod:3313
26031 msgid "ntfs-3g-probe"
26032 msgstr ""
26033
26034 #. type: verbatim
26035 #: ../fish/guestfish-actions.pod:3315
26036 #, no-wrap
26037 msgid ""
26038 " ntfs-3g-probe true|false device\n"
26039 "\n"
26040 msgstr ""
26041
26042 #. type: =head2
26043 #: ../fish/guestfish-actions.pod:3329
26044 msgid "ntfsresize"
26045 msgstr ""
26046
26047 #. type: verbatim
26048 #: ../fish/guestfish-actions.pod:3331
26049 #, no-wrap
26050 msgid ""
26051 " ntfsresize device\n"
26052 "\n"
26053 msgstr ""
26054
26055 #. type: =head2
26056 #: ../fish/guestfish-actions.pod:3337
26057 msgid "ntfsresize-size"
26058 msgstr ""
26059
26060 #. type: verbatim
26061 #: ../fish/guestfish-actions.pod:3339
26062 #, no-wrap
26063 msgid ""
26064 " ntfsresize-size device size\n"
26065 "\n"
26066 msgstr ""
26067
26068 #. type: textblock
26069 #: ../fish/guestfish-actions.pod:3341
26070 msgid ""
26071 "This command is the same as L</ntfsresize> except that it allows you to "
26072 "specify the new size (in bytes) explicitly."
26073 msgstr ""
26074
26075 #. type: =head2
26076 #: ../fish/guestfish-actions.pod:3344
26077 msgid "part-add"
26078 msgstr ""
26079
26080 #. type: verbatim
26081 #: ../fish/guestfish-actions.pod:3346
26082 #, no-wrap
26083 msgid ""
26084 " part-add device prlogex startsect endsect\n"
26085 "\n"
26086 msgstr ""
26087
26088 #. type: textblock
26089 #: ../fish/guestfish-actions.pod:3348
26090 msgid ""
26091 "This command adds a partition to C<device>.  If there is no partition table "
26092 "on the device, call L</part-init> first."
26093 msgstr ""
26094
26095 #. type: textblock
26096 #: ../fish/guestfish-actions.pod:3360
26097 msgid ""
26098 "Creating a partition which covers the whole disk is not so easy.  Use L</"
26099 "part-disk> to do that."
26100 msgstr ""
26101
26102 #. type: =head2
26103 #: ../fish/guestfish-actions.pod:3363
26104 msgid "part-del"
26105 msgstr ""
26106
26107 #. type: verbatim
26108 #: ../fish/guestfish-actions.pod:3365
26109 #, no-wrap
26110 msgid ""
26111 " part-del device partnum\n"
26112 "\n"
26113 msgstr ""
26114
26115 #. type: =head2
26116 #: ../fish/guestfish-actions.pod:3373
26117 msgid "part-disk"
26118 msgstr ""
26119
26120 #. type: verbatim
26121 #: ../fish/guestfish-actions.pod:3375
26122 #, no-wrap
26123 msgid ""
26124 " part-disk device parttype\n"
26125 "\n"
26126 msgstr ""
26127
26128 #. type: textblock
26129 #: ../fish/guestfish-actions.pod:3377
26130 msgid ""
26131 "This command is simply a combination of L</part-init> followed by L</part-"
26132 "add> to create a single primary partition covering the whole disk."
26133 msgstr ""
26134
26135 #. type: textblock
26136 #: ../fish/guestfish-actions.pod:3381
26137 msgid ""
26138 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
26139 "possible values are described in L</part-init>."
26140 msgstr ""
26141
26142 #. type: =head2
26143 #: ../fish/guestfish-actions.pod:3387
26144 msgid "part-get-bootable"
26145 msgstr ""
26146
26147 #. type: verbatim
26148 #: ../fish/guestfish-actions.pod:3389
26149 #, no-wrap
26150 msgid ""
26151 " part-get-bootable device partnum\n"
26152 "\n"
26153 msgstr ""
26154
26155 #. type: textblock
26156 #: ../fish/guestfish-actions.pod:3394
26157 msgid "See also L</part-set-bootable>."
26158 msgstr ""
26159
26160 #. type: =head2
26161 #: ../fish/guestfish-actions.pod:3396
26162 msgid "part-get-mbr-id"
26163 msgstr ""
26164
26165 #. type: verbatim
26166 #: ../fish/guestfish-actions.pod:3398
26167 #, no-wrap
26168 msgid ""
26169 " part-get-mbr-id device partnum\n"
26170 "\n"
26171 msgstr ""
26172
26173 #. type: textblock
26174 #: ../fish/guestfish-actions.pod:3403 ../fish/guestfish-actions.pod:3541
26175 msgid ""
26176 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
26177 "undefined results for other partition table types (see L</part-get-"
26178 "parttype>)."
26179 msgstr ""
26180
26181 #. type: =head2
26182 #: ../fish/guestfish-actions.pod:3407
26183 msgid "part-get-parttype"
26184 msgstr ""
26185
26186 #. type: verbatim
26187 #: ../fish/guestfish-actions.pod:3409
26188 #, no-wrap
26189 msgid ""
26190 " part-get-parttype device\n"
26191 "\n"
26192 msgstr ""
26193
26194 #. type: textblock
26195 #: ../fish/guestfish-actions.pod:3414
26196 msgid ""
26197 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
26198 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
26199 "possible, although unusual.  See L</part-init> for a full list."
26200 msgstr ""
26201
26202 #. type: =head2
26203 #: ../fish/guestfish-actions.pod:3419
26204 msgid "part-init"
26205 msgstr ""
26206
26207 #. type: verbatim
26208 #: ../fish/guestfish-actions.pod:3421
26209 #, no-wrap
26210 msgid ""
26211 " part-init device parttype\n"
26212 "\n"
26213 msgstr ""
26214
26215 #. type: textblock
26216 #: ../fish/guestfish-actions.pod:3427
26217 msgid ""
26218 "Initially there are no partitions.  Following this, you should call L</part-"
26219 "add> for each partition required."
26220 msgstr ""
26221
26222 #. type: =head2
26223 #: ../fish/guestfish-actions.pod:3490
26224 msgid "part-list"
26225 msgstr ""
26226
26227 #. type: verbatim
26228 #: ../fish/guestfish-actions.pod:3492
26229 #, no-wrap
26230 msgid ""
26231 " part-list device\n"
26232 "\n"
26233 msgstr ""
26234
26235 #. type: textblock
26236 #: ../fish/guestfish-actions.pod:3507
26237 msgid ""
26238 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
26239 "the device's sector size, see L</blockdev-getss>."
26240 msgstr ""
26241
26242 #. type: =head2
26243 #: ../fish/guestfish-actions.pod:3520
26244 msgid "part-set-bootable"
26245 msgstr ""
26246
26247 #. type: verbatim
26248 #: ../fish/guestfish-actions.pod:3522
26249 #, no-wrap
26250 msgid ""
26251 " part-set-bootable device partnum true|false\n"
26252 "\n"
26253 msgstr ""
26254
26255 #. type: =head2
26256 #: ../fish/guestfish-actions.pod:3531
26257 msgid "part-set-mbr-id"
26258 msgstr ""
26259
26260 #. type: verbatim
26261 #: ../fish/guestfish-actions.pod:3533
26262 #, no-wrap
26263 msgid ""
26264 " part-set-mbr-id device partnum idbyte\n"
26265 "\n"
26266 msgstr ""
26267
26268 #. type: =head2
26269 #: ../fish/guestfish-actions.pod:3545
26270 msgid "part-set-name"
26271 msgstr ""
26272
26273 #. type: verbatim
26274 #: ../fish/guestfish-actions.pod:3547
26275 #, no-wrap
26276 msgid ""
26277 " part-set-name device partnum name\n"
26278 "\n"
26279 msgstr ""
26280
26281 #. type: =head2
26282 #: ../fish/guestfish-actions.pod:3555
26283 msgid "part-to-dev"
26284 msgstr ""
26285
26286 #. type: verbatim
26287 #: ../fish/guestfish-actions.pod:3557
26288 #, no-wrap
26289 msgid ""
26290 " part-to-dev partition\n"
26291 "\n"
26292 msgstr ""
26293
26294 #. type: textblock
26295 #: ../fish/guestfish-actions.pod:3563
26296 msgid ""
26297 "The named partition must exist, for example as a string returned from L</"
26298 "list-partitions>."
26299 msgstr ""
26300
26301 #. type: =head2
26302 #: ../fish/guestfish-actions.pod:3566
26303 msgid "ping-daemon"
26304 msgstr ""
26305
26306 #. type: verbatim
26307 #: ../fish/guestfish-actions.pod:3568
26308 #, no-wrap
26309 msgid ""
26310 " ping-daemon\n"
26311 "\n"
26312 msgstr ""
26313
26314 #. type: =head2
26315 #: ../fish/guestfish-actions.pod:3575
26316 msgid "pread"
26317 msgstr ""
26318
26319 #. type: verbatim
26320 #: ../fish/guestfish-actions.pod:3577
26321 #, no-wrap
26322 msgid ""
26323 " pread path count offset\n"
26324 "\n"
26325 msgstr ""
26326
26327 #. type: textblock
26328 #: ../fish/guestfish-actions.pod:3585
26329 msgid "See also L</pwrite>, L</pread-device>."
26330 msgstr ""
26331
26332 #. type: =head2
26333 #: ../fish/guestfish-actions.pod:3590
26334 msgid "pread-device"
26335 msgstr ""
26336
26337 #. type: verbatim
26338 #: ../fish/guestfish-actions.pod:3592
26339 #, no-wrap
26340 msgid ""
26341 " pread-device device count offset\n"
26342 "\n"
26343 msgstr ""
26344
26345 #. type: textblock
26346 #: ../fish/guestfish-actions.pod:3600
26347 msgid "See also L</pread>."
26348 msgstr ""
26349
26350 #. type: =head2
26351 #: ../fish/guestfish-actions.pod:3605
26352 msgid "pvcreate"
26353 msgstr ""
26354
26355 #. type: verbatim
26356 #: ../fish/guestfish-actions.pod:3607
26357 #, no-wrap
26358 msgid ""
26359 " pvcreate device\n"
26360 "\n"
26361 msgstr ""
26362
26363 #. type: =head2
26364 #: ../fish/guestfish-actions.pod:3613
26365 msgid "pvremove"
26366 msgstr ""
26367
26368 #. type: verbatim
26369 #: ../fish/guestfish-actions.pod:3615
26370 #, no-wrap
26371 msgid ""
26372 " pvremove device\n"
26373 "\n"
26374 msgstr ""
26375
26376 #. type: =head2
26377 #: ../fish/guestfish-actions.pod:3624
26378 msgid "pvresize"
26379 msgstr ""
26380
26381 #. type: verbatim
26382 #: ../fish/guestfish-actions.pod:3626
26383 #, no-wrap
26384 msgid ""
26385 " pvresize device\n"
26386 "\n"
26387 msgstr ""
26388
26389 #. type: =head2
26390 #: ../fish/guestfish-actions.pod:3631
26391 msgid "pvresize-size"
26392 msgstr ""
26393
26394 #. type: verbatim
26395 #: ../fish/guestfish-actions.pod:3633
26396 #, no-wrap
26397 msgid ""
26398 " pvresize-size device size\n"
26399 "\n"
26400 msgstr ""
26401
26402 #. type: textblock
26403 #: ../fish/guestfish-actions.pod:3635
26404 msgid ""
26405 "This command is the same as L</pvresize> except that it allows you to "
26406 "specify the new size (in bytes) explicitly."
26407 msgstr ""
26408
26409 #. type: =head2
26410 #: ../fish/guestfish-actions.pod:3638
26411 msgid "pvs"
26412 msgstr ""
26413
26414 #. type: verbatim
26415 #: ../fish/guestfish-actions.pod:3640
26416 #, no-wrap
26417 msgid ""
26418 " pvs\n"
26419 "\n"
26420 msgstr ""
26421
26422 #. type: textblock
26423 #: ../fish/guestfish-actions.pod:3648
26424 msgid "See also L</pvs-full>."
26425 msgstr ""
26426
26427 #. type: =head2
26428 #: ../fish/guestfish-actions.pod:3650
26429 msgid "pvs-full"
26430 msgstr ""
26431
26432 #. type: verbatim
26433 #: ../fish/guestfish-actions.pod:3652
26434 #, no-wrap
26435 msgid ""
26436 " pvs-full\n"
26437 "\n"
26438 msgstr ""
26439
26440 #. type: =head2
26441 #: ../fish/guestfish-actions.pod:3657
26442 msgid "pvuuid"
26443 msgstr ""
26444
26445 #. type: verbatim
26446 #: ../fish/guestfish-actions.pod:3659
26447 #, no-wrap
26448 msgid ""
26449 " pvuuid device\n"
26450 "\n"
26451 msgstr ""
26452
26453 #. type: =head2
26454 #: ../fish/guestfish-actions.pod:3663
26455 msgid "pwrite"
26456 msgstr ""
26457
26458 #. type: verbatim
26459 #: ../fish/guestfish-actions.pod:3665
26460 #, no-wrap
26461 msgid ""
26462 " pwrite path content offset\n"
26463 "\n"
26464 msgstr ""
26465
26466 #. type: textblock
26467 #: ../fish/guestfish-actions.pod:3676
26468 msgid "See also L</pread>, L</pwrite-device>."
26469 msgstr ""
26470
26471 #. type: =head2
26472 #: ../fish/guestfish-actions.pod:3681
26473 msgid "pwrite-device"
26474 msgstr ""
26475
26476 #. type: verbatim
26477 #: ../fish/guestfish-actions.pod:3683
26478 #, no-wrap
26479 msgid ""
26480 " pwrite-device device content offset\n"
26481 "\n"
26482 msgstr ""
26483
26484 #. type: textblock
26485 #: ../fish/guestfish-actions.pod:3693
26486 msgid "See also L</pwrite>."
26487 msgstr ""
26488
26489 #. type: =head2
26490 #: ../fish/guestfish-actions.pod:3698
26491 msgid "read-file"
26492 msgstr ""
26493
26494 #. type: verbatim
26495 #: ../fish/guestfish-actions.pod:3700
26496 #, no-wrap
26497 msgid ""
26498 " read-file path\n"
26499 "\n"
26500 msgstr ""
26501
26502 #. type: textblock
26503 #: ../fish/guestfish-actions.pod:3705
26504 msgid ""
26505 "Unlike L</cat>, this function can correctly handle files that contain "
26506 "embedded ASCII NUL characters.  However unlike L</download>, this function "
26507 "is limited in the total size of file that can be handled."
26508 msgstr ""
26509
26510 #. type: =head2
26511 #: ../fish/guestfish-actions.pod:3713
26512 msgid "read-lines"
26513 msgstr ""
26514
26515 #. type: verbatim
26516 #: ../fish/guestfish-actions.pod:3715
26517 #, no-wrap
26518 msgid ""
26519 " read-lines path\n"
26520 "\n"
26521 msgstr ""
26522
26523 #. type: textblock
26524 #: ../fish/guestfish-actions.pod:3722
26525 msgid ""
26526 "Note that this function cannot correctly handle binary files (specifically, "
26527 "files containing C<\\0> character which is treated as end of line).  For "
26528 "those you need to use the L</read-file> function which has a more complex "
26529 "interface."
26530 msgstr ""
26531
26532 #. type: =head2
26533 #: ../fish/guestfish-actions.pod:3727
26534 msgid "readdir"
26535 msgstr ""
26536
26537 #. type: verbatim
26538 #: ../fish/guestfish-actions.pod:3729
26539 #, no-wrap
26540 msgid ""
26541 " readdir dir\n"
26542 "\n"
26543 msgstr ""
26544
26545 #. type: textblock
26546 #: ../fish/guestfish-actions.pod:3781
26547 msgid ""
26548 "This function is primarily intended for use by programs.  To get a simple "
26549 "list of names, use L</ls>.  To get a printable directory for human "
26550 "consumption, use L</ll>."
26551 msgstr ""
26552
26553 #. type: =head2
26554 #: ../fish/guestfish-actions.pod:3785
26555 msgid "readlink"
26556 msgstr ""
26557
26558 #. type: verbatim
26559 #: ../fish/guestfish-actions.pod:3787
26560 #, no-wrap
26561 msgid ""
26562 " readlink path\n"
26563 "\n"
26564 msgstr ""
26565
26566 #. type: =head2
26567 #: ../fish/guestfish-actions.pod:3791
26568 msgid "readlinklist"
26569 msgstr ""
26570
26571 #. type: verbatim
26572 #: ../fish/guestfish-actions.pod:3793
26573 #, no-wrap
26574 msgid ""
26575 " readlinklist path 'names ...'\n"
26576 "\n"
26577 msgstr ""
26578
26579 #. type: =head2
26580 #: ../fish/guestfish-actions.pod:3817
26581 msgid "realpath"
26582 msgstr ""
26583
26584 #. type: verbatim
26585 #: ../fish/guestfish-actions.pod:3819
26586 #, no-wrap
26587 msgid ""
26588 " realpath path\n"
26589 "\n"
26590 msgstr ""
26591
26592 #. type: =head2
26593 #: ../fish/guestfish-actions.pod:3824
26594 msgid "removexattr"
26595 msgstr ""
26596
26597 #. type: verbatim
26598 #: ../fish/guestfish-actions.pod:3826
26599 #, no-wrap
26600 msgid ""
26601 " removexattr xattr path\n"
26602 "\n"
26603 msgstr ""
26604
26605 #. type: textblock
26606 #: ../fish/guestfish-actions.pod:3831
26607 msgid "See also: L</lremovexattr>, L<attr(5)>."
26608 msgstr ""
26609
26610 #. type: =head2
26611 #: ../fish/guestfish-actions.pod:3833
26612 msgid "resize2fs"
26613 msgstr ""
26614
26615 #. type: verbatim
26616 #: ../fish/guestfish-actions.pod:3835
26617 #, no-wrap
26618 msgid ""
26619 " resize2fs device\n"
26620 "\n"
26621 msgstr ""
26622
26623 #. type: textblock
26624 #: ../fish/guestfish-actions.pod:3840
26625 msgid ""
26626 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
26627 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
26628 "gives an error about this and sometimes not.  In any case, it is always safe "
26629 "to call L</e2fsck-f> before calling this function."
26630 msgstr ""
26631
26632 #. type: =head2
26633 #: ../fish/guestfish-actions.pod:3846
26634 msgid "resize2fs-M"
26635 msgstr ""
26636
26637 #. type: verbatim
26638 #: ../fish/guestfish-actions.pod:3848
26639 #, no-wrap
26640 msgid ""
26641 " resize2fs-M device\n"
26642 "\n"
26643 msgstr ""
26644
26645 #. type: textblock
26646 #: ../fish/guestfish-actions.pod:3850
26647 msgid ""
26648 "This command is the same as L</resize2fs>, but the filesystem is resized to "
26649 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
26650 "command."
26651 msgstr ""
26652
26653 #. type: textblock
26654 #: ../fish/guestfish-actions.pod:3854
26655 msgid ""
26656 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
26657 "and read the C<Block size> and C<Block count> values.  These two numbers, "
26658 "multiplied together, give the resulting size of the minimal filesystem in "
26659 "bytes."
26660 msgstr ""
26661
26662 #. type: =head2
26663 #: ../fish/guestfish-actions.pod:3859
26664 msgid "resize2fs-size"
26665 msgstr ""
26666
26667 #. type: verbatim
26668 #: ../fish/guestfish-actions.pod:3861
26669 #, no-wrap
26670 msgid ""
26671 " resize2fs-size device size\n"
26672 "\n"
26673 msgstr ""
26674
26675 #. type: textblock
26676 #: ../fish/guestfish-actions.pod:3863
26677 msgid ""
26678 "This command is the same as L</resize2fs> except that it allows you to "
26679 "specify the new size (in bytes) explicitly."
26680 msgstr ""
26681
26682 #. type: =head2
26683 #: ../fish/guestfish-actions.pod:3866
26684 msgid "rm"
26685 msgstr ""
26686
26687 #. type: verbatim
26688 #: ../fish/guestfish-actions.pod:3868
26689 #, no-wrap
26690 msgid ""
26691 " rm path\n"
26692 "\n"
26693 msgstr ""
26694
26695 #. type: =head2
26696 #: ../fish/guestfish-actions.pod:3872
26697 msgid "rm-rf"
26698 msgstr ""
26699
26700 #. type: verbatim
26701 #: ../fish/guestfish-actions.pod:3874
26702 #, no-wrap
26703 msgid ""
26704 " rm-rf path\n"
26705 "\n"
26706 msgstr ""
26707
26708 #. type: =head2
26709 #: ../fish/guestfish-actions.pod:3880
26710 msgid "rmdir"
26711 msgstr ""
26712
26713 #. type: verbatim
26714 #: ../fish/guestfish-actions.pod:3882
26715 #, no-wrap
26716 msgid ""
26717 " rmdir path\n"
26718 "\n"
26719 msgstr ""
26720
26721 #. type: =head2
26722 #: ../fish/guestfish-actions.pod:3886
26723 msgid "rmmountpoint"
26724 msgstr ""
26725
26726 #. type: verbatim
26727 #: ../fish/guestfish-actions.pod:3888
26728 #, no-wrap
26729 msgid ""
26730 " rmmountpoint exemptpath\n"
26731 "\n"
26732 msgstr ""
26733
26734 #. type: textblock
26735 #: ../fish/guestfish-actions.pod:3890
26736 msgid ""
26737 "This calls removes a mountpoint that was previously created with L</"
26738 "mkmountpoint>.  See L</mkmountpoint> for full details."
26739 msgstr ""
26740
26741 #. type: =head2
26742 #: ../fish/guestfish-actions.pod:3894
26743 msgid "scrub-device"
26744 msgstr ""
26745
26746 #. type: verbatim
26747 #: ../fish/guestfish-actions.pod:3896
26748 #, no-wrap
26749 msgid ""
26750 " scrub-device device\n"
26751 "\n"
26752 msgstr ""
26753
26754 #. type: =head2
26755 #: ../fish/guestfish-actions.pod:3907
26756 msgid "scrub-file"
26757 msgstr ""
26758
26759 #. type: verbatim
26760 #: ../fish/guestfish-actions.pod:3909
26761 #, no-wrap
26762 msgid ""
26763 " scrub-file file\n"
26764 "\n"
26765 msgstr ""
26766
26767 #. type: =head2
26768 #: ../fish/guestfish-actions.pod:3919
26769 msgid "scrub-freespace"
26770 msgstr ""
26771
26772 #. type: verbatim
26773 #: ../fish/guestfish-actions.pod:3921
26774 #, no-wrap
26775 msgid ""
26776 " scrub-freespace dir\n"
26777 "\n"
26778 msgstr ""
26779
26780 #. type: textblock
26781 #: ../fish/guestfish-actions.pod:3923
26782 msgid ""
26783 "This command creates the directory C<dir> and then fills it with files until "
26784 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
26785 "deletes them.  The intention is to scrub any free space on the partition "
26786 "containing C<dir>."
26787 msgstr ""
26788
26789 #. type: =head2
26790 #: ../fish/guestfish-actions.pod:3932
26791 msgid "set-append"
26792 msgstr ""
26793
26794 #. type: =head2
26795 #: ../fish/guestfish-actions.pod:3934
26796 msgid "append"
26797 msgstr ""
26798
26799 #. type: verbatim
26800 #: ../fish/guestfish-actions.pod:3936
26801 #, no-wrap
26802 msgid ""
26803 " set-append append\n"
26804 "\n"
26805 msgstr ""
26806
26807 #. type: =head2
26808 #: ../fish/guestfish-actions.pod:3947
26809 msgid "set-attach-method"
26810 msgstr ""
26811
26812 #. type: =head2
26813 #: ../fish/guestfish-actions.pod:3949
26814 msgid "attach-method"
26815 msgstr ""
26816
26817 #. type: verbatim
26818 #: ../fish/guestfish-actions.pod:3951
26819 #, no-wrap
26820 msgid ""
26821 " set-attach-method attachmethod\n"
26822 "\n"
26823 msgstr ""
26824
26825 #. type: =head2
26826 #: ../fish/guestfish-actions.pod:3973
26827 msgid "set-autosync"
26828 msgstr ""
26829
26830 #. type: =head2
26831 #: ../fish/guestfish-actions.pod:3975
26832 msgid "autosync"
26833 msgstr ""
26834
26835 #. type: verbatim
26836 #: ../fish/guestfish-actions.pod:3977
26837 #, no-wrap
26838 msgid ""
26839 " set-autosync true|false\n"
26840 "\n"
26841 msgstr ""
26842
26843 #. type: =head2
26844 #: ../fish/guestfish-actions.pod:3987
26845 msgid "set-direct"
26846 msgstr ""
26847
26848 #. type: =head2
26849 #: ../fish/guestfish-actions.pod:3989
26850 msgid "direct"
26851 msgstr ""
26852
26853 #. type: verbatim
26854 #: ../fish/guestfish-actions.pod:3991
26855 #, no-wrap
26856 msgid ""
26857 " set-direct true|false\n"
26858 "\n"
26859 msgstr ""
26860
26861 #. type: textblock
26862 #: ../fish/guestfish-actions.pod:3997
26863 msgid ""
26864 "One consequence of this is that log messages aren't caught by the library "
26865 "and handled by L</set-log-message-callback>, but go straight to stdout."
26866 msgstr ""
26867
26868 #. type: =head2
26869 #: ../fish/guestfish-actions.pod:4006
26870 msgid "set-e2label"
26871 msgstr ""
26872
26873 #. type: verbatim
26874 #: ../fish/guestfish-actions.pod:4008
26875 #, no-wrap
26876 msgid ""
26877 " set-e2label device label\n"
26878 "\n"
26879 msgstr ""
26880
26881 #. type: textblock
26882 #: ../fish/guestfish-actions.pod:4014
26883 msgid ""
26884 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
26885 "label on a filesystem."
26886 msgstr ""
26887
26888 #. type: =head2
26889 #: ../fish/guestfish-actions.pod:4017
26890 msgid "set-e2uuid"
26891 msgstr ""
26892
26893 #. type: verbatim
26894 #: ../fish/guestfish-actions.pod:4019
26895 #, no-wrap
26896 msgid ""
26897 " set-e2uuid device uuid\n"
26898 "\n"
26899 msgstr ""
26900
26901 #. type: textblock
26902 #: ../fish/guestfish-actions.pod:4026
26903 msgid ""
26904 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
26905 "UUID of a filesystem."
26906 msgstr ""
26907
26908 #. type: =head2
26909 #: ../fish/guestfish-actions.pod:4029
26910 msgid "set-memsize"
26911 msgstr ""
26912
26913 #. type: =head2
26914 #: ../fish/guestfish-actions.pod:4031
26915 msgid "memsize"
26916 msgstr ""
26917
26918 #. type: verbatim
26919 #: ../fish/guestfish-actions.pod:4033
26920 #, no-wrap
26921 msgid ""
26922 " set-memsize memsize\n"
26923 "\n"
26924 msgstr ""
26925
26926 #. type: textblock
26927 #: ../fish/guestfish-actions.pod:4035
26928 msgid ""
26929 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
26930 "This only has any effect if called before L</launch>."
26931 msgstr ""
26932
26933 #. type: =head2
26934 #: ../fish/guestfish-actions.pod:4046
26935 msgid "set-network"
26936 msgstr ""
26937
26938 #. type: =head2
26939 #: ../fish/guestfish-actions.pod:4048
26940 msgid "network"
26941 msgstr ""
26942
26943 #. type: verbatim
26944 #: ../fish/guestfish-actions.pod:4050
26945 #, no-wrap
26946 msgid ""
26947 " set-network true|false\n"
26948 "\n"
26949 msgstr ""
26950
26951 #. type: textblock
26952 #: ../fish/guestfish-actions.pod:4058
26953 msgid ""
26954 "You must call this before calling L</launch>, otherwise it has no effect."
26955 msgstr ""
26956
26957 #. type: =head2
26958 #: ../fish/guestfish-actions.pod:4061
26959 msgid "set-path"
26960 msgstr ""
26961
26962 #. type: =head2
26963 #: ../fish/guestfish-actions.pod:4063
26964 msgid "path"
26965 msgstr ""
26966
26967 #. type: verbatim
26968 #: ../fish/guestfish-actions.pod:4065
26969 #, no-wrap
26970 msgid ""
26971 " set-path searchpath\n"
26972 "\n"
26973 msgstr ""
26974
26975 #. type: =head2
26976 #: ../fish/guestfish-actions.pod:4074
26977 msgid "set-qemu"
26978 msgstr ""
26979
26980 #. type: =head2
26981 #: ../fish/guestfish-actions.pod:4076
26982 msgid "qemu"
26983 msgstr ""
26984
26985 #. type: verbatim
26986 #: ../fish/guestfish-actions.pod:4078
26987 #, no-wrap
26988 msgid ""
26989 " set-qemu qemu\n"
26990 "\n"
26991 msgstr ""
26992
26993 #. type: =head2
26994 #: ../fish/guestfish-actions.pod:4098
26995 msgid "set-recovery-proc"
26996 msgstr ""
26997
26998 #. type: =head2
26999 #: ../fish/guestfish-actions.pod:4100
27000 msgid "recovery-proc"
27001 msgstr ""
27002
27003 #. type: verbatim
27004 #: ../fish/guestfish-actions.pod:4102
27005 #, no-wrap
27006 msgid ""
27007 " set-recovery-proc true|false\n"
27008 "\n"
27009 msgstr ""
27010
27011 #. type: textblock
27012 #: ../fish/guestfish-actions.pod:4104
27013 msgid ""
27014 "If this is called with the parameter C<false> then L</launch> does not "
27015 "create a recovery process.  The purpose of the recovery process is to stop "
27016 "runaway qemu processes in the case where the main program aborts abruptly."
27017 msgstr ""
27018
27019 #. type: textblock
27020 #: ../fish/guestfish-actions.pod:4109
27021 msgid ""
27022 "This only has any effect if called before L</launch>, and the default is "
27023 "true."
27024 msgstr ""
27025
27026 #. type: =head2
27027 #: ../fish/guestfish-actions.pod:4118
27028 msgid "set-selinux"
27029 msgstr ""
27030
27031 #. type: =head2
27032 #: ../fish/guestfish-actions.pod:4120
27033 msgid "selinux"
27034 msgstr ""
27035
27036 #. type: verbatim
27037 #: ../fish/guestfish-actions.pod:4122
27038 #, no-wrap
27039 msgid ""
27040 " set-selinux true|false\n"
27041 "\n"
27042 msgstr ""
27043
27044 #. type: =head2
27045 #: ../fish/guestfish-actions.pod:4133
27046 msgid "set-trace"
27047 msgstr ""
27048
27049 #. type: =head2
27050 #: ../fish/guestfish-actions.pod:4135
27051 msgid "trace"
27052 msgstr ""
27053
27054 #. type: verbatim
27055 #: ../fish/guestfish-actions.pod:4137
27056 #, no-wrap
27057 msgid ""
27058 " set-trace true|false\n"
27059 "\n"
27060 msgstr ""
27061
27062 #. type: textblock
27063 #: ../fish/guestfish-actions.pod:4149
27064 msgid ""
27065 "Trace messages are normally sent to C<stderr>, unless you register a "
27066 "callback to send them somewhere else (see L</set-event-callback>)."
27067 msgstr ""
27068
27069 #. type: =head2
27070 #: ../fish/guestfish-actions.pod:4153
27071 msgid "set-verbose"
27072 msgstr ""
27073
27074 #. type: =head2
27075 #: ../fish/guestfish-actions.pod:4155
27076 msgid "verbose"
27077 msgstr ""
27078
27079 #. type: verbatim
27080 #: ../fish/guestfish-actions.pod:4157
27081 #, no-wrap
27082 msgid ""
27083 " set-verbose true|false\n"
27084 "\n"
27085 msgstr ""
27086
27087 #. type: textblock
27088 #: ../fish/guestfish-actions.pod:4164
27089 msgid ""
27090 "Verbose messages are normally sent to C<stderr>, unless you register a "
27091 "callback to send them somewhere else (see L</set-event-callback>)."
27092 msgstr ""
27093
27094 #. type: =head2
27095 #: ../fish/guestfish-actions.pod:4168
27096 msgid "setcon"
27097 msgstr ""
27098
27099 #. type: verbatim
27100 #: ../fish/guestfish-actions.pod:4170
27101 #, no-wrap
27102 msgid ""
27103 " setcon context\n"
27104 "\n"
27105 msgstr ""
27106
27107 #. type: =head2
27108 #: ../fish/guestfish-actions.pod:4177
27109 msgid "setxattr"
27110 msgstr ""
27111
27112 #. type: verbatim
27113 #: ../fish/guestfish-actions.pod:4179
27114 #, no-wrap
27115 msgid ""
27116 " setxattr xattr val vallen path\n"
27117 "\n"
27118 msgstr ""
27119
27120 #. type: textblock
27121 #: ../fish/guestfish-actions.pod:4185
27122 msgid "See also: L</lsetxattr>, L<attr(5)>."
27123 msgstr ""
27124
27125 #. type: =head2
27126 #: ../fish/guestfish-actions.pod:4187
27127 msgid "sfdisk"
27128 msgstr ""
27129
27130 #. type: verbatim
27131 #: ../fish/guestfish-actions.pod:4189
27132 #, no-wrap
27133 msgid ""
27134 " sfdisk device cyls heads sectors 'lines ...'\n"
27135 "\n"
27136 msgstr ""
27137
27138 #. type: textblock
27139 #: ../fish/guestfish-actions.pod:4211
27140 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
27141 msgstr ""
27142
27143 #. type: =head2
27144 #: ../fish/guestfish-actions.pod:4224
27145 msgid "sfdiskM"
27146 msgstr ""
27147
27148 #. type: verbatim
27149 #: ../fish/guestfish-actions.pod:4226
27150 #, no-wrap
27151 msgid ""
27152 " sfdiskM device 'lines ...'\n"
27153 "\n"
27154 msgstr ""
27155
27156 #. type: textblock
27157 #: ../fish/guestfish-actions.pod:4228
27158 msgid ""
27159 "This is a simplified interface to the L</sfdisk> command, where partition "
27160 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
27161 "you don't need to specify the cyls, heads and sectors parameters which were "
27162 "rarely if ever used anyway."
27163 msgstr ""
27164
27165 #. type: textblock
27166 #: ../fish/guestfish-actions.pod:4234
27167 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
27168 msgstr ""
27169
27170 #. type: =head2
27171 #: ../fish/guestfish-actions.pod:4247
27172 msgid "sfdisk-N"
27173 msgstr ""
27174
27175 #. type: verbatim
27176 #: ../fish/guestfish-actions.pod:4249
27177 #, no-wrap
27178 msgid ""
27179 " sfdisk-N device partnum cyls heads sectors line\n"
27180 "\n"
27181 msgstr ""
27182
27183 #. type: textblock
27184 #: ../fish/guestfish-actions.pod:4254
27185 msgid ""
27186 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
27187 "cyls/heads/sectors parameters."
27188 msgstr ""
27189
27190 #. type: textblock
27191 #: ../fish/guestfish-actions.pod:4257
27192 msgid "See also: L</part-add>"
27193 msgstr ""
27194
27195 #. type: =head2
27196 #: ../fish/guestfish-actions.pod:4269
27197 msgid "sfdisk-disk-geometry"
27198 msgstr ""
27199
27200 #. type: verbatim
27201 #: ../fish/guestfish-actions.pod:4271
27202 #, no-wrap
27203 msgid ""
27204 " sfdisk-disk-geometry device\n"
27205 "\n"
27206 msgstr ""
27207
27208 #. type: textblock
27209 #: ../fish/guestfish-actions.pod:4273
27210 msgid ""
27211 "This displays the disk geometry of C<device> read from the partition table.  "
27212 "Especially in the case where the underlying block device has been resized, "
27213 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
27214 "kernel-geometry>)."
27215 msgstr ""
27216
27217 #. type: =head2
27218 #: ../fish/guestfish-actions.pod:4281
27219 msgid "sfdisk-kernel-geometry"
27220 msgstr ""
27221
27222 #. type: verbatim
27223 #: ../fish/guestfish-actions.pod:4283
27224 #, no-wrap
27225 msgid ""
27226 " sfdisk-kernel-geometry device\n"
27227 "\n"
27228 msgstr ""
27229
27230 #. type: =head2
27231 #: ../fish/guestfish-actions.pod:4290
27232 msgid "sfdisk-l"
27233 msgstr ""
27234
27235 #. type: verbatim
27236 #: ../fish/guestfish-actions.pod:4292
27237 #, no-wrap
27238 msgid ""
27239 " sfdisk-l device\n"
27240 "\n"
27241 msgstr ""
27242
27243 #. type: textblock
27244 #: ../fish/guestfish-actions.pod:4298
27245 msgid "See also: L</part-list>"
27246 msgstr ""
27247
27248 #. type: =head2
27249 #: ../fish/guestfish-actions.pod:4307
27250 msgid "sh"
27251 msgstr ""
27252
27253 #. type: verbatim
27254 #: ../fish/guestfish-actions.pod:4309
27255 #, no-wrap
27256 msgid ""
27257 " sh command\n"
27258 "\n"
27259 msgstr ""
27260
27261 #. type: textblock
27262 #: ../fish/guestfish-actions.pod:4314
27263 msgid "This is like L</command>, but passes the command to:"
27264 msgstr ""
27265
27266 #. type: textblock
27267 #: ../fish/guestfish-actions.pod:4322
27268 msgid "All the provisos about L</command> apply to this call."
27269 msgstr ""
27270
27271 #. type: =head2
27272 #: ../fish/guestfish-actions.pod:4324
27273 msgid "sh-lines"
27274 msgstr ""
27275
27276 #. type: verbatim
27277 #: ../fish/guestfish-actions.pod:4326
27278 #, no-wrap
27279 msgid ""
27280 " sh-lines command\n"
27281 "\n"
27282 msgstr ""
27283
27284 #. type: textblock
27285 #: ../fish/guestfish-actions.pod:4328
27286 msgid "This is the same as L</sh>, but splits the result into a list of lines."
27287 msgstr ""
27288
27289 #. type: textblock
27290 #: ../fish/guestfish-actions.pod:4331
27291 msgid "See also: L</command-lines>"
27292 msgstr ""
27293
27294 #. type: =head2
27295 #: ../fish/guestfish-actions.pod:4333
27296 msgid "sleep"
27297 msgstr ""
27298
27299 #. type: verbatim
27300 #: ../fish/guestfish-actions.pod:4335
27301 #, no-wrap
27302 msgid ""
27303 " sleep secs\n"
27304 "\n"
27305 msgstr ""
27306
27307 #. type: =head2
27308 #: ../fish/guestfish-actions.pod:4339
27309 msgid "stat"
27310 msgstr ""
27311
27312 #. type: verbatim
27313 #: ../fish/guestfish-actions.pod:4341
27314 #, no-wrap
27315 msgid ""
27316 " stat path\n"
27317 "\n"
27318 msgstr ""
27319
27320 #. type: =head2
27321 #: ../fish/guestfish-actions.pod:4347
27322 msgid "statvfs"
27323 msgstr ""
27324
27325 #. type: verbatim
27326 #: ../fish/guestfish-actions.pod:4349
27327 #, no-wrap
27328 msgid ""
27329 " statvfs path\n"
27330 "\n"
27331 msgstr ""
27332
27333 #. type: =head2
27334 #: ../fish/guestfish-actions.pod:4357
27335 msgid "strings"
27336 msgstr ""
27337
27338 #. type: verbatim
27339 #: ../fish/guestfish-actions.pod:4359
27340 #, no-wrap
27341 msgid ""
27342 " strings path\n"
27343 "\n"
27344 msgstr ""
27345
27346 #. type: =head2
27347 #: ../fish/guestfish-actions.pod:4367
27348 msgid "strings-e"
27349 msgstr ""
27350
27351 #. type: verbatim
27352 #: ../fish/guestfish-actions.pod:4369
27353 #, no-wrap
27354 msgid ""
27355 " strings-e encoding path\n"
27356 "\n"
27357 msgstr ""
27358
27359 #. type: textblock
27360 #: ../fish/guestfish-actions.pod:4371
27361 msgid ""
27362 "This is like the L</strings> command, but allows you to specify the encoding "
27363 "of strings that are looked for in the source file C<path>."
27364 msgstr ""
27365
27366 #. type: textblock
27367 #: ../fish/guestfish-actions.pod:4381
27368 msgid ""
27369 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
27370 "ISO-8859-X (this is what L</strings> uses)."
27371 msgstr ""
27372
27373 #. type: =head2
27374 #: ../fish/guestfish-actions.pod:4413
27375 msgid "swapoff-device"
27376 msgstr ""
27377
27378 #. type: verbatim
27379 #: ../fish/guestfish-actions.pod:4415
27380 #, no-wrap
27381 msgid ""
27382 " swapoff-device device\n"
27383 "\n"
27384 msgstr ""
27385
27386 #. type: textblock
27387 #: ../fish/guestfish-actions.pod:4417
27388 msgid ""
27389 "This command disables the libguestfs appliance swap device or partition "
27390 "named C<device>.  See L</swapon-device>."
27391 msgstr ""
27392
27393 #. type: =head2
27394 #: ../fish/guestfish-actions.pod:4421
27395 msgid "swapoff-file"
27396 msgstr ""
27397
27398 #. type: verbatim
27399 #: ../fish/guestfish-actions.pod:4423
27400 #, no-wrap
27401 msgid ""
27402 " swapoff-file file\n"
27403 "\n"
27404 msgstr ""
27405
27406 #. type: =head2
27407 #: ../fish/guestfish-actions.pod:4427
27408 msgid "swapoff-label"
27409 msgstr ""
27410
27411 #. type: verbatim
27412 #: ../fish/guestfish-actions.pod:4429
27413 #, no-wrap
27414 msgid ""
27415 " swapoff-label label\n"
27416 "\n"
27417 msgstr ""
27418
27419 #. type: =head2
27420 #: ../fish/guestfish-actions.pod:4434
27421 msgid "swapoff-uuid"
27422 msgstr ""
27423
27424 #. type: verbatim
27425 #: ../fish/guestfish-actions.pod:4436
27426 #, no-wrap
27427 msgid ""
27428 " swapoff-uuid uuid\n"
27429 "\n"
27430 msgstr ""
27431
27432 #. type: =head2
27433 #: ../fish/guestfish-actions.pod:4441
27434 msgid "swapon-device"
27435 msgstr ""
27436
27437 #. type: verbatim
27438 #: ../fish/guestfish-actions.pod:4443
27439 #, no-wrap
27440 msgid ""
27441 " swapon-device device\n"
27442 "\n"
27443 msgstr ""
27444
27445 #. type: textblock
27446 #: ../fish/guestfish-actions.pod:4445
27447 msgid ""
27448 "This command enables the libguestfs appliance to use the swap device or "
27449 "partition named C<device>.  The increased memory is made available for all "
27450 "commands, for example those run using L</command> or L</sh>."
27451 msgstr ""
27452
27453 #. type: =head2
27454 #: ../fish/guestfish-actions.pod:4457
27455 msgid "swapon-file"
27456 msgstr ""
27457
27458 #. type: verbatim
27459 #: ../fish/guestfish-actions.pod:4459
27460 #, no-wrap
27461 msgid ""
27462 " swapon-file file\n"
27463 "\n"
27464 msgstr ""
27465
27466 #. type: textblock
27467 #: ../fish/guestfish-actions.pod:4461
27468 msgid ""
27469 "This command enables swap to a file.  See L</swapon-device> for other notes."
27470 msgstr ""
27471
27472 #. type: =head2
27473 #: ../fish/guestfish-actions.pod:4464
27474 msgid "swapon-label"
27475 msgstr ""
27476
27477 #. type: verbatim
27478 #: ../fish/guestfish-actions.pod:4466
27479 #, no-wrap
27480 msgid ""
27481 " swapon-label label\n"
27482 "\n"
27483 msgstr ""
27484
27485 #. type: textblock
27486 #: ../fish/guestfish-actions.pod:4468
27487 msgid ""
27488 "This command enables swap to a labeled swap partition.  See L</swapon-"
27489 "device> for other notes."
27490 msgstr ""
27491
27492 #. type: =head2
27493 #: ../fish/guestfish-actions.pod:4471
27494 msgid "swapon-uuid"
27495 msgstr ""
27496
27497 #. type: verbatim
27498 #: ../fish/guestfish-actions.pod:4473
27499 #, no-wrap
27500 msgid ""
27501 " swapon-uuid uuid\n"
27502 "\n"
27503 msgstr ""
27504
27505 #. type: textblock
27506 #: ../fish/guestfish-actions.pod:4475
27507 msgid ""
27508 "This command enables swap to a swap partition with the given UUID.  See L</"
27509 "swapon-device> for other notes."
27510 msgstr ""
27511
27512 #. type: =head2
27513 #: ../fish/guestfish-actions.pod:4478
27514 msgid "sync"
27515 msgstr ""
27516
27517 #. type: verbatim
27518 #: ../fish/guestfish-actions.pod:4480
27519 #, no-wrap
27520 msgid ""
27521 " sync\n"
27522 "\n"
27523 msgstr ""
27524
27525 #. type: =head2
27526 #: ../fish/guestfish-actions.pod:4488
27527 msgid "tail"
27528 msgstr ""
27529
27530 #. type: verbatim
27531 #: ../fish/guestfish-actions.pod:4490
27532 #, no-wrap
27533 msgid ""
27534 " tail path\n"
27535 "\n"
27536 msgstr ""
27537
27538 #. type: =head2
27539 #: ../fish/guestfish-actions.pod:4498
27540 msgid "tail-n"
27541 msgstr ""
27542
27543 #. type: verbatim
27544 #: ../fish/guestfish-actions.pod:4500
27545 #, no-wrap
27546 msgid ""
27547 " tail-n nrlines path\n"
27548 "\n"
27549 msgstr ""
27550
27551 #. type: =head2
27552 #: ../fish/guestfish-actions.pod:4513
27553 msgid "tar-in"
27554 msgstr ""
27555
27556 #. type: verbatim
27557 #: ../fish/guestfish-actions.pod:4515
27558 #, no-wrap
27559 msgid ""
27560 " tar-in (tarfile|-) directory\n"
27561 "\n"
27562 msgstr ""
27563
27564 #. type: textblock
27565 #: ../fish/guestfish-actions.pod:4520
27566 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
27567 msgstr ""
27568
27569 #. type: =head2
27570 #: ../fish/guestfish-actions.pod:4525
27571 msgid "tar-out"
27572 msgstr ""
27573
27574 #. type: verbatim
27575 #: ../fish/guestfish-actions.pod:4527
27576 #, no-wrap
27577 msgid ""
27578 " tar-out directory (tarfile|-)\n"
27579 "\n"
27580 msgstr ""
27581
27582 #. type: textblock
27583 #: ../fish/guestfish-actions.pod:4532
27584 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
27585 msgstr ""
27586
27587 #. type: =head2
27588 #: ../fish/guestfish-actions.pod:4537
27589 msgid "tgz-in"
27590 msgstr ""
27591
27592 #. type: verbatim
27593 #: ../fish/guestfish-actions.pod:4539
27594 #, no-wrap
27595 msgid ""
27596 " tgz-in (tarball|-) directory\n"
27597 "\n"
27598 msgstr ""
27599
27600 #. type: textblock
27601 #: ../fish/guestfish-actions.pod:4544
27602 msgid "To upload an uncompressed tarball, use L</tar-in>."
27603 msgstr ""
27604
27605 #. type: =head2
27606 #: ../fish/guestfish-actions.pod:4548
27607 msgid "tgz-out"
27608 msgstr ""
27609
27610 #. type: verbatim
27611 #: ../fish/guestfish-actions.pod:4550
27612 #, no-wrap
27613 msgid ""
27614 " tgz-out directory (tarball|-)\n"
27615 "\n"
27616 msgstr ""
27617
27618 #. type: textblock
27619 #: ../fish/guestfish-actions.pod:4555
27620 msgid "To download an uncompressed tarball, use L</tar-out>."
27621 msgstr ""
27622
27623 #. type: =head2
27624 #: ../fish/guestfish-actions.pod:4559
27625 msgid "touch"
27626 msgstr ""
27627
27628 #. type: verbatim
27629 #: ../fish/guestfish-actions.pod:4561
27630 #, no-wrap
27631 msgid ""
27632 " touch path\n"
27633 "\n"
27634 msgstr ""
27635
27636 #. type: =head2
27637 #: ../fish/guestfish-actions.pod:4570
27638 msgid "truncate"
27639 msgstr ""
27640
27641 #. type: verbatim
27642 #: ../fish/guestfish-actions.pod:4572
27643 #, no-wrap
27644 msgid ""
27645 " truncate path\n"
27646 "\n"
27647 msgstr ""
27648
27649 #. type: =head2
27650 #: ../fish/guestfish-actions.pod:4577
27651 msgid "truncate-size"
27652 msgstr ""
27653
27654 #. type: verbatim
27655 #: ../fish/guestfish-actions.pod:4579
27656 #, no-wrap
27657 msgid ""
27658 " truncate-size path size\n"
27659 "\n"
27660 msgstr ""
27661
27662 #. type: textblock
27663 #: ../fish/guestfish-actions.pod:4584
27664 msgid ""
27665 "If the current file size is less than C<size> then the file is extended to "
27666 "the required size with zero bytes.  This creates a sparse file (ie. disk "
27667 "blocks are not allocated for the file until you write to it).  To create a "
27668 "non-sparse file of zeroes, use L</fallocate64> instead."
27669 msgstr ""
27670
27671 #. type: =head2
27672 #: ../fish/guestfish-actions.pod:4590
27673 msgid "tune2fs-l"
27674 msgstr ""
27675
27676 #. type: verbatim
27677 #: ../fish/guestfish-actions.pod:4592
27678 #, no-wrap
27679 msgid ""
27680 " tune2fs-l device\n"
27681 "\n"
27682 msgstr ""
27683
27684 #. type: =head2
27685 #: ../fish/guestfish-actions.pod:4602
27686 msgid "txz-in"
27687 msgstr ""
27688
27689 #. type: verbatim
27690 #: ../fish/guestfish-actions.pod:4604
27691 #, no-wrap
27692 msgid ""
27693 " txz-in (tarball|-) directory\n"
27694 "\n"
27695 msgstr ""
27696
27697 #. type: =head2
27698 #: ../fish/guestfish-actions.pod:4611
27699 msgid "txz-out"
27700 msgstr ""
27701
27702 #. type: verbatim
27703 #: ../fish/guestfish-actions.pod:4613
27704 #, no-wrap
27705 msgid ""
27706 " txz-out directory (tarball|-)\n"
27707 "\n"
27708 msgstr ""
27709
27710 #. type: =head2
27711 #: ../fish/guestfish-actions.pod:4620
27712 msgid "umask"
27713 msgstr ""
27714
27715 #. type: verbatim
27716 #: ../fish/guestfish-actions.pod:4622
27717 #, no-wrap
27718 msgid ""
27719 " umask mask\n"
27720 "\n"
27721 msgstr ""
27722
27723 #. type: textblock
27724 #: ../fish/guestfish-actions.pod:4636
27725 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
27726 msgstr ""
27727
27728 #. type: =head2
27729 #: ../fish/guestfish-actions.pod:4641
27730 msgid "umount"
27731 msgstr ""
27732
27733 #. type: =head2
27734 #: ../fish/guestfish-actions.pod:4643
27735 msgid "unmount"
27736 msgstr ""
27737
27738 #. type: verbatim
27739 #: ../fish/guestfish-actions.pod:4645
27740 #, no-wrap
27741 msgid ""
27742 " umount pathordevice\n"
27743 "\n"
27744 msgstr ""
27745
27746 #. type: =head2
27747 #: ../fish/guestfish-actions.pod:4651
27748 msgid "umount-all"
27749 msgstr ""
27750
27751 #. type: =head2
27752 #: ../fish/guestfish-actions.pod:4653
27753 msgid "unmount-all"
27754 msgstr ""
27755
27756 #. type: verbatim
27757 #: ../fish/guestfish-actions.pod:4655
27758 #, no-wrap
27759 msgid ""
27760 " umount-all\n"
27761 "\n"
27762 msgstr ""
27763
27764 #. type: =head2
27765 #: ../fish/guestfish-actions.pod:4661
27766 msgid "upload"
27767 msgstr ""
27768
27769 #. type: verbatim
27770 #: ../fish/guestfish-actions.pod:4663
27771 #, no-wrap
27772 msgid ""
27773 " upload (filename|-) remotefilename\n"
27774 "\n"
27775 msgstr ""
27776
27777 #. type: textblock
27778 #: ../fish/guestfish-actions.pod:4670
27779 msgid "See also L</download>."
27780 msgstr ""
27781
27782 #. type: =head2
27783 #: ../fish/guestfish-actions.pod:4674
27784 msgid "upload-offset"
27785 msgstr ""
27786
27787 #. type: verbatim
27788 #: ../fish/guestfish-actions.pod:4676
27789 #, no-wrap
27790 msgid ""
27791 " upload-offset (filename|-) remotefilename offset\n"
27792 "\n"
27793 msgstr ""
27794
27795 #. type: textblock
27796 #: ../fish/guestfish-actions.pod:4688
27797 msgid ""
27798 "Note that there is no limit on the amount of data that can be uploaded with "
27799 "this call, unlike with L</pwrite>, and this call always writes the full "
27800 "amount unless an error occurs."
27801 msgstr ""
27802
27803 #. type: textblock
27804 #: ../fish/guestfish-actions.pod:4693
27805 msgid "See also L</upload>, L</pwrite>."
27806 msgstr ""
27807
27808 #. type: =head2
27809 #: ../fish/guestfish-actions.pod:4697
27810 msgid "utimens"
27811 msgstr ""
27812
27813 #. type: verbatim
27814 #: ../fish/guestfish-actions.pod:4699
27815 #, no-wrap
27816 msgid ""
27817 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
27818 "\n"
27819 msgstr ""
27820
27821 #. type: =head2
27822 #: ../fish/guestfish-actions.pod:4718
27823 msgid "version"
27824 msgstr ""
27825
27826 #. type: verbatim
27827 #: ../fish/guestfish-actions.pod:4720
27828 #, no-wrap
27829 msgid ""
27830 " version\n"
27831 "\n"
27832 msgstr ""
27833
27834 #. type: textblock
27835 #: ../fish/guestfish-actions.pod:4747
27836 msgid ""
27837 "I<Note:> Don't use this call to test for availability of features.  In "
27838 "enterprise distributions we backport features from later versions into "
27839 "earlier versions, making this an unreliable way to test for features.  Use "
27840 "L</available> instead."
27841 msgstr ""
27842
27843 #. type: =head2
27844 #: ../fish/guestfish-actions.pod:4753
27845 msgid "vfs-label"
27846 msgstr ""
27847
27848 #. type: verbatim
27849 #: ../fish/guestfish-actions.pod:4755
27850 #, no-wrap
27851 msgid ""
27852 " vfs-label device\n"
27853 "\n"
27854 msgstr ""
27855
27856 #. type: textblock
27857 #: ../fish/guestfish-actions.pod:4762
27858 msgid "To find a filesystem from the label, use L</findfs-label>."
27859 msgstr ""
27860
27861 #. type: =head2
27862 #: ../fish/guestfish-actions.pod:4764
27863 msgid "vfs-type"
27864 msgstr ""
27865
27866 #. type: verbatim
27867 #: ../fish/guestfish-actions.pod:4766
27868 #, no-wrap
27869 msgid ""
27870 " vfs-type device\n"
27871 "\n"
27872 msgstr ""
27873
27874 #. type: =head2
27875 #: ../fish/guestfish-actions.pod:4776
27876 msgid "vfs-uuid"
27877 msgstr ""
27878
27879 #. type: verbatim
27880 #: ../fish/guestfish-actions.pod:4778
27881 #, no-wrap
27882 msgid ""
27883 " vfs-uuid device\n"
27884 "\n"
27885 msgstr ""
27886
27887 #. type: textblock
27888 #: ../fish/guestfish-actions.pod:4785
27889 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
27890 msgstr ""
27891
27892 #. type: =head2
27893 #: ../fish/guestfish-actions.pod:4787
27894 msgid "vg-activate"
27895 msgstr ""
27896
27897 #. type: verbatim
27898 #: ../fish/guestfish-actions.pod:4789
27899 #, no-wrap
27900 msgid ""
27901 " vg-activate true|false 'volgroups ...'\n"
27902 "\n"
27903 msgstr ""
27904
27905 #. type: =head2
27906 #: ../fish/guestfish-actions.pod:4802
27907 msgid "vg-activate-all"
27908 msgstr ""
27909
27910 #. type: verbatim
27911 #: ../fish/guestfish-actions.pod:4804
27912 #, no-wrap
27913 msgid ""
27914 " vg-activate-all true|false\n"
27915 "\n"
27916 msgstr ""
27917
27918 #. type: =head2
27919 #: ../fish/guestfish-actions.pod:4814
27920 msgid "vgcreate"
27921 msgstr ""
27922
27923 #. type: verbatim
27924 #: ../fish/guestfish-actions.pod:4816
27925 #, no-wrap
27926 msgid ""
27927 " vgcreate volgroup 'physvols ...'\n"
27928 "\n"
27929 msgstr ""
27930
27931 #. type: =head2
27932 #: ../fish/guestfish-actions.pod:4821
27933 msgid "vglvuuids"
27934 msgstr ""
27935
27936 #. type: verbatim
27937 #: ../fish/guestfish-actions.pod:4823
27938 #, no-wrap
27939 msgid ""
27940 " vglvuuids vgname\n"
27941 "\n"
27942 msgstr ""
27943
27944 #. type: textblock
27945 #: ../fish/guestfish-actions.pod:4828
27946 msgid ""
27947 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
27948 "logical volumes and volume groups."
27949 msgstr ""
27950
27951 #. type: textblock
27952 #: ../fish/guestfish-actions.pod:4831
27953 msgid "See also L</vgpvuuids>."
27954 msgstr ""
27955
27956 #. type: =head2
27957 #: ../fish/guestfish-actions.pod:4833
27958 msgid "vgpvuuids"
27959 msgstr ""
27960
27961 #. type: verbatim
27962 #: ../fish/guestfish-actions.pod:4835
27963 #, no-wrap
27964 msgid ""
27965 " vgpvuuids vgname\n"
27966 "\n"
27967 msgstr ""
27968
27969 #. type: textblock
27970 #: ../fish/guestfish-actions.pod:4840
27971 msgid ""
27972 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
27973 "physical volumes and volume groups."
27974 msgstr ""
27975
27976 #. type: textblock
27977 #: ../fish/guestfish-actions.pod:4843
27978 msgid "See also L</vglvuuids>."
27979 msgstr ""
27980
27981 #. type: =head2
27982 #: ../fish/guestfish-actions.pod:4845
27983 msgid "vgremove"
27984 msgstr ""
27985
27986 #. type: verbatim
27987 #: ../fish/guestfish-actions.pod:4847
27988 #, no-wrap
27989 msgid ""
27990 " vgremove vgname\n"
27991 "\n"
27992 msgstr ""
27993
27994 #. type: =head2
27995 #: ../fish/guestfish-actions.pod:4854
27996 msgid "vgrename"
27997 msgstr ""
27998
27999 #. type: verbatim
28000 #: ../fish/guestfish-actions.pod:4856
28001 #, no-wrap
28002 msgid ""
28003 " vgrename volgroup newvolgroup\n"
28004 "\n"
28005 msgstr ""
28006
28007 #. type: =head2
28008 #: ../fish/guestfish-actions.pod:4860
28009 msgid "vgs"
28010 msgstr ""
28011
28012 #. type: verbatim
28013 #: ../fish/guestfish-actions.pod:4862
28014 #, no-wrap
28015 msgid ""
28016 " vgs\n"
28017 "\n"
28018 msgstr ""
28019
28020 #. type: textblock
28021 #: ../fish/guestfish-actions.pod:4870
28022 msgid "See also L</vgs-full>."
28023 msgstr ""
28024
28025 #. type: =head2
28026 #: ../fish/guestfish-actions.pod:4872
28027 msgid "vgs-full"
28028 msgstr ""
28029
28030 #. type: verbatim
28031 #: ../fish/guestfish-actions.pod:4874
28032 #, no-wrap
28033 msgid ""
28034 " vgs-full\n"
28035 "\n"
28036 msgstr ""
28037
28038 #. type: =head2
28039 #: ../fish/guestfish-actions.pod:4879
28040 msgid "vgscan"
28041 msgstr ""
28042
28043 #. type: verbatim
28044 #: ../fish/guestfish-actions.pod:4881
28045 #, no-wrap
28046 msgid ""
28047 " vgscan\n"
28048 "\n"
28049 msgstr ""
28050
28051 #. type: =head2
28052 #: ../fish/guestfish-actions.pod:4886
28053 msgid "vguuid"
28054 msgstr ""
28055
28056 #. type: verbatim
28057 #: ../fish/guestfish-actions.pod:4888
28058 #, no-wrap
28059 msgid ""
28060 " vguuid vgname\n"
28061 "\n"
28062 msgstr ""
28063
28064 #. type: =head2
28065 #: ../fish/guestfish-actions.pod:4892
28066 msgid "wc-c"
28067 msgstr ""
28068
28069 #. type: verbatim
28070 #: ../fish/guestfish-actions.pod:4894
28071 #, no-wrap
28072 msgid ""
28073 " wc-c path\n"
28074 "\n"
28075 msgstr ""
28076
28077 #. type: =head2
28078 #: ../fish/guestfish-actions.pod:4899
28079 msgid "wc-l"
28080 msgstr ""
28081
28082 #. type: verbatim
28083 #: ../fish/guestfish-actions.pod:4901
28084 #, no-wrap
28085 msgid ""
28086 " wc-l path\n"
28087 "\n"
28088 msgstr ""
28089
28090 #. type: =head2
28091 #: ../fish/guestfish-actions.pod:4906
28092 msgid "wc-w"
28093 msgstr ""
28094
28095 #. type: verbatim
28096 #: ../fish/guestfish-actions.pod:4908
28097 #, no-wrap
28098 msgid ""
28099 " wc-w path\n"
28100 "\n"
28101 msgstr ""
28102
28103 #. type: =head2
28104 #: ../fish/guestfish-actions.pod:4913
28105 msgid "write"
28106 msgstr ""
28107
28108 #. type: verbatim
28109 #: ../fish/guestfish-actions.pod:4915
28110 #, no-wrap
28111 msgid ""
28112 " write path content\n"
28113 "\n"
28114 msgstr ""
28115
28116 #. type: =head2
28117 #: ../fish/guestfish-actions.pod:4923
28118 msgid "write-file"
28119 msgstr ""
28120
28121 #. type: verbatim
28122 #: ../fish/guestfish-actions.pod:4925
28123 #, no-wrap
28124 msgid ""
28125 " write-file path content size\n"
28126 "\n"
28127 msgstr ""
28128
28129 #. type: =head2
28130 #: ../fish/guestfish-actions.pod:4948
28131 msgid "zegrep"
28132 msgstr ""
28133
28134 #. type: verbatim
28135 #: ../fish/guestfish-actions.pod:4950
28136 #, no-wrap
28137 msgid ""
28138 " zegrep regex path\n"
28139 "\n"
28140 msgstr ""
28141
28142 #. type: =head2
28143 #: ../fish/guestfish-actions.pod:4958
28144 msgid "zegrepi"
28145 msgstr ""
28146
28147 #. type: verbatim
28148 #: ../fish/guestfish-actions.pod:4960
28149 #, no-wrap
28150 msgid ""
28151 " zegrepi regex path\n"
28152 "\n"
28153 msgstr ""
28154
28155 #. type: =head2
28156 #: ../fish/guestfish-actions.pod:4968
28157 msgid "zero"
28158 msgstr ""
28159
28160 #. type: verbatim
28161 #: ../fish/guestfish-actions.pod:4970
28162 #, no-wrap
28163 msgid ""
28164 " zero device\n"
28165 "\n"
28166 msgstr ""
28167
28168 #. type: textblock
28169 #: ../fish/guestfish-actions.pod:4978
28170 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
28171 msgstr ""
28172
28173 #. type: =head2
28174 #: ../fish/guestfish-actions.pod:4981
28175 msgid "zero-device"
28176 msgstr ""
28177
28178 #. type: verbatim
28179 #: ../fish/guestfish-actions.pod:4983
28180 #, no-wrap
28181 msgid ""
28182 " zero-device device\n"
28183 "\n"
28184 msgstr ""
28185
28186 #. type: textblock
28187 #: ../fish/guestfish-actions.pod:4985
28188 msgid ""
28189 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
28190 "which just zeroes the first few blocks of a device."
28191 msgstr ""
28192
28193 #. type: =head2
28194 #: ../fish/guestfish-actions.pod:4992
28195 msgid "zerofree"
28196 msgstr ""
28197
28198 #. type: verbatim
28199 #: ../fish/guestfish-actions.pod:4994
28200 #, no-wrap
28201 msgid ""
28202 " zerofree device\n"
28203 "\n"
28204 msgstr ""
28205
28206 #. type: =head2
28207 #: ../fish/guestfish-actions.pod:5007
28208 msgid "zfgrep"
28209 msgstr ""
28210
28211 #. type: verbatim
28212 #: ../fish/guestfish-actions.pod:5009
28213 #, no-wrap
28214 msgid ""
28215 " zfgrep pattern path\n"
28216 "\n"
28217 msgstr ""
28218
28219 #. type: =head2
28220 #: ../fish/guestfish-actions.pod:5017
28221 msgid "zfgrepi"
28222 msgstr ""
28223
28224 #. type: verbatim
28225 #: ../fish/guestfish-actions.pod:5019
28226 #, no-wrap
28227 msgid ""
28228 " zfgrepi pattern path\n"
28229 "\n"
28230 msgstr ""
28231
28232 #. type: =head2
28233 #: ../fish/guestfish-actions.pod:5027
28234 msgid "zfile"
28235 msgstr ""
28236
28237 #. type: verbatim
28238 #: ../fish/guestfish-actions.pod:5029
28239 #, no-wrap
28240 msgid ""
28241 " zfile meth path\n"
28242 "\n"
28243 msgstr ""
28244
28245 #. type: textblock
28246 #: ../fish/guestfish-actions.pod:5036
28247 msgid ""
28248 "Since 1.0.63, use L</file> instead which can now process compressed files."
28249 msgstr ""
28250
28251 #. type: =head2
28252 #: ../fish/guestfish-actions.pod:5046
28253 msgid "zgrep"
28254 msgstr ""
28255
28256 #. type: verbatim
28257 #: ../fish/guestfish-actions.pod:5048
28258 #, no-wrap
28259 msgid ""
28260 " zgrep regex path\n"
28261 "\n"
28262 msgstr ""
28263
28264 #. type: =head2
28265 #: ../fish/guestfish-actions.pod:5056
28266 msgid "zgrepi"
28267 msgstr ""
28268
28269 #. type: verbatim
28270 #: ../fish/guestfish-actions.pod:5058
28271 #, no-wrap
28272 msgid ""
28273 " zgrepi regex path\n"
28274 "\n"
28275 msgstr ""
28276
28277 #. type: =head2
28278 #: ../fish/guestfish-commands.pod:1
28279 msgid "alloc"
28280 msgstr ""
28281
28282 #. type: =head2
28283 #: ../fish/guestfish-commands.pod:3
28284 msgid "allocate"
28285 msgstr ""
28286
28287 #. type: verbatim
28288 #: ../fish/guestfish-commands.pod:5
28289 #, no-wrap
28290 msgid ""
28291 " alloc filename size\n"
28292 "\n"
28293 msgstr ""
28294
28295 #. type: textblock
28296 #: ../fish/guestfish-commands.pod:7
28297 msgid ""
28298 "This creates an empty (zeroed) file of the given size, and then adds so it "
28299 "can be further examined."
28300 msgstr ""
28301
28302 #. type: textblock
28303 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:182
28304 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
28305 msgstr ""
28306
28307 #. type: textblock
28308 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:184
28309 msgid "Size can be specified using standard suffixes, eg. C<1M>."
28310 msgstr ""
28311
28312 #. type: textblock
28313 #: ../fish/guestfish-commands.pod:14
28314 msgid ""
28315 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
28316 "image, see L</PREPARED DISK IMAGES>."
28317 msgstr ""
28318
28319 #. type: =head2
28320 #: ../fish/guestfish-commands.pod:17
28321 msgid "copy-in"
28322 msgstr ""
28323
28324 #. type: verbatim
28325 #: ../fish/guestfish-commands.pod:19
28326 #, no-wrap
28327 msgid ""
28328 " copy-in local [local ...] /remotedir\n"
28329 "\n"
28330 msgstr ""
28331
28332 #. type: textblock
28333 #: ../fish/guestfish-commands.pod:21
28334 msgid ""
28335 "C<copy-in> copies local files or directories recursively into the disk "
28336 "image, placing them in the directory called C</remotedir> (which must "
28337 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
28338 "other commands as necessary."
28339 msgstr ""
28340
28341 #. type: textblock
28342 #: ../fish/guestfish-commands.pod:26
28343 msgid ""
28344 "Multiple local files and directories can be specified, but the last "
28345 "parameter must always be a remote directory.  Wildcards cannot be used."
28346 msgstr ""
28347
28348 #. type: =head2
28349 #: ../fish/guestfish-commands.pod:30
28350 msgid "copy-out"
28351 msgstr ""
28352
28353 #. type: verbatim
28354 #: ../fish/guestfish-commands.pod:32
28355 #, no-wrap
28356 msgid ""
28357 " copy-out remote [remote ...] localdir\n"
28358 "\n"
28359 msgstr ""
28360
28361 #. type: textblock
28362 #: ../fish/guestfish-commands.pod:34
28363 msgid ""
28364 "C<copy-out> copies remote files or directories recursively out of the disk "
28365 "image, placing them on the host disk in a local directory called C<localdir> "
28366 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
28367 "download>, L</tar-out> and other commands as necessary."
28368 msgstr ""
28369
28370 #. type: textblock
28371 #: ../fish/guestfish-commands.pod:40
28372 msgid ""
28373 "Multiple remote files and directories can be specified, but the last "
28374 "parameter must always be a local directory.  To download to the current "
28375 "directory, use C<.> as in:"
28376 msgstr ""
28377
28378 #. type: verbatim
28379 #: ../fish/guestfish-commands.pod:44
28380 #, no-wrap
28381 msgid ""
28382 " copy-out /home .\n"
28383 "\n"
28384 msgstr ""
28385
28386 #. type: textblock
28387 #: ../fish/guestfish-commands.pod:46
28388 msgid ""
28389 "Wildcards cannot be used in the ordinary command, but you can use them with "
28390 "the help of L</glob> like this:"
28391 msgstr ""
28392
28393 #. type: verbatim
28394 #: ../fish/guestfish-commands.pod:49
28395 #, no-wrap
28396 msgid ""
28397 " glob copy-out /home/* .\n"
28398 "\n"
28399 msgstr ""
28400
28401 #. type: =head2
28402 #: ../fish/guestfish-commands.pod:51
28403 msgid "display"
28404 msgstr ""
28405
28406 #. type: verbatim
28407 #: ../fish/guestfish-commands.pod:53
28408 #, no-wrap
28409 msgid ""
28410 " display filename\n"
28411 "\n"
28412 msgstr ""
28413
28414 #. type: textblock
28415 #: ../fish/guestfish-commands.pod:55
28416 msgid ""
28417 "Use C<display> (a graphical display program) to display an image file.  It "
28418 "downloads the file, and runs C<display> on it."
28419 msgstr ""
28420
28421 #. type: textblock
28422 #: ../fish/guestfish-commands.pod:58
28423 msgid ""
28424 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
28425 "environment variable.  For example to use the GNOME display program:"
28426 msgstr ""
28427
28428 #. type: verbatim
28429 #: ../fish/guestfish-commands.pod:61
28430 #, no-wrap
28431 msgid ""
28432 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
28433 "\n"
28434 msgstr ""
28435
28436 #. type: textblock
28437 #: ../fish/guestfish-commands.pod:63
28438 #, fuzzy
28439 #| msgid "See L<guestfish(1)>."
28440 msgid "See also L<display(1)>."
28441 msgstr "Див. L<guestfish(1)>."
28442
28443 #. type: =head2
28444 #: ../fish/guestfish-commands.pod:65
28445 msgid "echo"
28446 msgstr ""
28447
28448 #. type: verbatim
28449 #: ../fish/guestfish-commands.pod:67
28450 #, no-wrap
28451 msgid ""
28452 " echo [params ...]\n"
28453 "\n"
28454 msgstr ""
28455
28456 #. type: textblock
28457 #: ../fish/guestfish-commands.pod:69
28458 msgid "This echos the parameters to the terminal."
28459 msgstr ""
28460
28461 #. type: =head2
28462 #: ../fish/guestfish-commands.pod:71
28463 msgid "edit"
28464 msgstr ""
28465
28466 #. type: =head2
28467 #: ../fish/guestfish-commands.pod:73
28468 msgid "vi"
28469 msgstr ""
28470
28471 #. type: =head2
28472 #: ../fish/guestfish-commands.pod:75
28473 msgid "emacs"
28474 msgstr ""
28475
28476 #. type: verbatim
28477 #: ../fish/guestfish-commands.pod:77
28478 #, no-wrap
28479 msgid ""
28480 " edit filename\n"
28481 "\n"
28482 msgstr ""
28483
28484 #. type: textblock
28485 #: ../fish/guestfish-commands.pod:79
28486 msgid ""
28487 "This is used to edit a file.  It downloads the file, edits it locally using "
28488 "your editor, then uploads the result."
28489 msgstr ""
28490
28491 #. type: textblock
28492 #: ../fish/guestfish-commands.pod:82
28493 msgid ""
28494 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
28495 "or C<emacs> you will get those corresponding editors."
28496 msgstr ""
28497
28498 #. type: =head2
28499 #: ../fish/guestfish-commands.pod:86
28500 msgid "glob"
28501 msgstr ""
28502
28503 #. type: verbatim
28504 #: ../fish/guestfish-commands.pod:88
28505 #, no-wrap
28506 msgid ""
28507 " glob command args...\n"
28508 "\n"
28509 msgstr ""
28510
28511 #. type: textblock
28512 #: ../fish/guestfish-commands.pod:90
28513 msgid ""
28514 "Expand wildcards in any paths in the args list, and run C<command> "
28515 "repeatedly on each matching path."
28516 msgstr ""
28517
28518 #. type: textblock
28519 #: ../fish/guestfish-commands.pod:93
28520 msgid "See L</WILDCARDS AND GLOBBING>."
28521 msgstr ""
28522
28523 #. type: =head2
28524 #: ../fish/guestfish-commands.pod:95
28525 msgid "hexedit"
28526 msgstr ""
28527
28528 #. type: verbatim
28529 #: ../fish/guestfish-commands.pod:97
28530 #, no-wrap
28531 msgid ""
28532 " hexedit <filename|device>\n"
28533 " hexedit <filename|device> <max>\n"
28534 " hexedit <filename|device> <start> <max>\n"
28535 "\n"
28536 msgstr ""
28537
28538 #. type: textblock
28539 #: ../fish/guestfish-commands.pod:101
28540 msgid ""
28541 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
28542 "device."
28543 msgstr ""
28544
28545 #. type: textblock
28546 #: ../fish/guestfish-commands.pod:104
28547 msgid ""
28548 "This command works by downloading potentially the whole file or device, "
28549 "editing it locally, then uploading it.  If the file or device is large, you "
28550 "have to specify which part you wish to edit by using C<max> and/or C<start> "
28551 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
28552 "usual modifiers allowed such as C<1M> (1 megabyte)."
28553 msgstr ""
28554
28555 #. type: textblock
28556 #: ../fish/guestfish-commands.pod:111
28557 msgid "For example to edit the first few sectors of a disk you might do:"
28558 msgstr ""
28559
28560 #. type: verbatim
28561 #: ../fish/guestfish-commands.pod:114
28562 #, no-wrap
28563 msgid ""
28564 " hexedit /dev/sda 1M\n"
28565 "\n"
28566 msgstr ""
28567
28568 #. type: textblock
28569 #: ../fish/guestfish-commands.pod:116
28570 msgid ""
28571 "which would allow you to edit anywhere within the first megabyte of the disk."
28572 msgstr ""
28573
28574 #. type: textblock
28575 #: ../fish/guestfish-commands.pod:119
28576 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
28577 msgstr ""
28578
28579 #. type: verbatim
28580 #: ../fish/guestfish-commands.pod:121
28581 #, no-wrap
28582 msgid ""
28583 " hexedit /dev/sda1 0x400 0x400\n"
28584 "\n"
28585 msgstr ""
28586
28587 #. type: textblock
28588 #: ../fish/guestfish-commands.pod:123
28589 msgid "(assuming the superblock is in the standard location)."
28590 msgstr ""
28591
28592 #. type: textblock
28593 #: ../fish/guestfish-commands.pod:125
28594 msgid ""
28595 "This command requires the external L<hexedit(1)> program.  You can specify "
28596 "another program to use by setting the C<HEXEDITOR> environment variable."
28597 msgstr ""
28598
28599 #. type: textblock
28600 #: ../fish/guestfish-commands.pod:129
28601 msgid "See also L</hexdump>."
28602 msgstr ""
28603
28604 #. type: =head2
28605 #: ../fish/guestfish-commands.pod:131
28606 msgid "lcd"
28607 msgstr ""
28608
28609 #. type: verbatim
28610 #: ../fish/guestfish-commands.pod:133
28611 #, no-wrap
28612 msgid ""
28613 " lcd directory\n"
28614 "\n"
28615 msgstr ""
28616
28617 #. type: textblock
28618 #: ../fish/guestfish-commands.pod:135
28619 msgid ""
28620 "Change the local directory, ie. the current directory of guestfish itself."
28621 msgstr ""
28622
28623 #. type: textblock
28624 #: ../fish/guestfish-commands.pod:138
28625 msgid "Note that C<!cd> won't do what you might expect."
28626 msgstr ""
28627
28628 #. type: =head2
28629 #: ../fish/guestfish-commands.pod:140
28630 msgid "man"
28631 msgstr ""
28632
28633 #. type: =head2
28634 #: ../fish/guestfish-commands.pod:142
28635 msgid "manual"
28636 msgstr ""
28637
28638 #. type: verbatim
28639 #: ../fish/guestfish-commands.pod:144
28640 #, no-wrap
28641 msgid ""
28642 "  man\n"
28643 "\n"
28644 msgstr ""
28645
28646 #. type: textblock
28647 #: ../fish/guestfish-commands.pod:146
28648 msgid "Opens the manual page for guestfish."
28649 msgstr ""
28650
28651 #. type: =head2
28652 #: ../fish/guestfish-commands.pod:148
28653 msgid "more"
28654 msgstr ""
28655
28656 #. type: =head2
28657 #: ../fish/guestfish-commands.pod:150
28658 msgid "less"
28659 msgstr ""
28660
28661 #. type: verbatim
28662 #: ../fish/guestfish-commands.pod:152
28663 #, no-wrap
28664 msgid ""
28665 " more filename\n"
28666 "\n"
28667 msgstr ""
28668
28669 #. type: verbatim
28670 #: ../fish/guestfish-commands.pod:154
28671 #, no-wrap
28672 msgid ""
28673 " less filename\n"
28674 "\n"
28675 msgstr ""
28676
28677 #. type: textblock
28678 #: ../fish/guestfish-commands.pod:156
28679 msgid "This is used to view a file."
28680 msgstr ""
28681
28682 #. type: textblock
28683 #: ../fish/guestfish-commands.pod:158
28684 msgid ""
28685 "The default viewer is C<$PAGER>.  However if you use the alternate command "
28686 "C<less> you will get the C<less> command specifically."
28687 msgstr ""
28688
28689 #. type: =head2
28690 #: ../fish/guestfish-commands.pod:161
28691 msgid "reopen"
28692 msgstr ""
28693
28694 #. type: verbatim
28695 #: ../fish/guestfish-commands.pod:163
28696 #, no-wrap
28697 msgid ""
28698 "  reopen\n"
28699 "\n"
28700 msgstr ""
28701
28702 #. type: textblock
28703 #: ../fish/guestfish-commands.pod:165
28704 msgid ""
28705 "Close and reopen the libguestfs handle.  It is not necessary to use this "
28706 "normally, because the handle is closed properly when guestfish exits.  "
28707 "However this is occasionally useful for testing."
28708 msgstr ""
28709
28710 #. type: =head2
28711 #: ../fish/guestfish-commands.pod:169
28712 msgid "sparse"
28713 msgstr ""
28714
28715 #. type: verbatim
28716 #: ../fish/guestfish-commands.pod:171
28717 #, no-wrap
28718 msgid ""
28719 " sparse filename size\n"
28720 "\n"
28721 msgstr ""
28722
28723 #. type: textblock
28724 #: ../fish/guestfish-commands.pod:173
28725 msgid ""
28726 "This creates an empty sparse file of the given size, and then adds so it can "
28727 "be further examined."
28728 msgstr ""
28729
28730 #. type: textblock
28731 #: ../fish/guestfish-commands.pod:176
28732 msgid ""
28733 "In all respects it works the same as the L</alloc> command, except that the "
28734 "image file is allocated sparsely, which means that disk blocks are not "
28735 "assigned to the file until they are needed.  Sparse disk files only use "
28736 "space when written to, but they are slower and there is a danger you could "
28737 "run out of real disk space during a write operation."
28738 msgstr ""
28739
28740 #. type: =head2
28741 #: ../fish/guestfish-commands.pod:186
28742 msgid "supported"
28743 msgstr ""
28744
28745 #. type: verbatim
28746 #: ../fish/guestfish-commands.pod:188
28747 #, no-wrap
28748 msgid ""
28749 " supported\n"
28750 "\n"
28751 msgstr ""
28752
28753 #. type: textblock
28754 #: ../fish/guestfish-commands.pod:190
28755 msgid ""
28756 "This command returns a list of the optional groups known to the daemon, and "
28757 "indicates which ones are supported by this build of the libguestfs appliance."
28758 msgstr ""
28759
28760 #. type: textblock
28761 #: ../fish/guestfish-commands.pod:194
28762 msgid "See also L<guestfs(3)/AVAILABILITY>."
28763 msgstr ""
28764
28765 #. type: =head2
28766 #: ../fish/guestfish-commands.pod:196
28767 msgid "time"
28768 msgstr ""
28769
28770 #. type: verbatim
28771 #: ../fish/guestfish-commands.pod:198
28772 #, no-wrap
28773 msgid ""
28774 " time command args...\n"
28775 "\n"
28776 msgstr ""
28777
28778 #. type: textblock
28779 #: ../fish/guestfish-commands.pod:200
28780 msgid ""
28781 "Run the command as usual, but print the elapsed time afterwards.  This can "
28782 "be useful for benchmarking operations."
28783 msgstr ""
28784
28785 #. type: textblock
28786 #: ../test-tool/libguestfs-test-tool.pod:5
28787 msgid "libguestfs-test-tool - End user tests for libguestfs"
28788 msgstr ""
28789
28790 #. type: verbatim
28791 #: ../test-tool/libguestfs-test-tool.pod:9
28792 #, no-wrap
28793 msgid ""
28794 " libguestfs-test-tool [--options]\n"
28795 "\n"
28796 msgstr ""
28797
28798 #. type: textblock
28799 #: ../test-tool/libguestfs-test-tool.pod:13
28800 msgid ""
28801 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
28802 "and developers, to allow them to check basic libguestfs functionality is "
28803 "working.  This is needed because libguestfs occasionally breaks for reasons "
28804 "beyond our control: usually because of changes in the underlying qemu or "
28805 "kernel packages, or the host environment."
28806 msgstr ""
28807
28808 #. type: textblock
28809 #: ../test-tool/libguestfs-test-tool.pod:20
28810 msgid "If you suspect a problem in libguestfs, then just run:"
28811 msgstr ""
28812
28813 #. type: verbatim
28814 #: ../test-tool/libguestfs-test-tool.pod:22
28815 #, no-wrap
28816 msgid ""
28817 " libguestfs-test-tool\n"
28818 "\n"
28819 msgstr ""
28820
28821 #. type: textblock
28822 #: ../test-tool/libguestfs-test-tool.pod:24
28823 msgid "It will print lots of diagnostic messages."
28824 msgstr ""
28825
28826 #. type: textblock
28827 #: ../test-tool/libguestfs-test-tool.pod:26
28828 msgid "If it runs to completion successfully, you will see this near the end:"
28829 msgstr ""
28830
28831 #. type: verbatim
28832 #: ../test-tool/libguestfs-test-tool.pod:28
28833 #, no-wrap
28834 msgid ""
28835 " ===== TEST FINISHED OK =====\n"
28836 "\n"
28837 msgstr ""
28838
28839 #. type: textblock
28840 #: ../test-tool/libguestfs-test-tool.pod:30
28841 msgid "and the test tool will exit with code 0."
28842 msgstr ""
28843
28844 #. type: textblock
28845 #: ../test-tool/libguestfs-test-tool.pod:32
28846 msgid ""
28847 "If it fails (and/or exits with non-zero error code), please paste the "
28848 "B<complete, unedited> output of the test tool into a bug report.  More "
28849 "information about reporting bugs can be found on the L<http://libguestfs.org/"
28850 "> website."
28851 msgstr ""
28852
28853 #. type: =item
28854 #: ../test-tool/libguestfs-test-tool.pod:41
28855 msgid "I<--help>"
28856 msgstr ""
28857
28858 #. type: textblock
28859 #: ../test-tool/libguestfs-test-tool.pod:43
28860 msgid "Display short usage information and exit."
28861 msgstr ""
28862
28863 #. type: =item
28864 #: ../test-tool/libguestfs-test-tool.pod:45
28865 msgid "I<--qemu qemu_binary>"
28866 msgstr ""
28867
28868 #. type: textblock
28869 #: ../test-tool/libguestfs-test-tool.pod:47
28870 msgid ""
28871 "If you have downloaded another qemu binary, point this option at the full "
28872 "path of the binary to try it."
28873 msgstr ""
28874
28875 #. type: =item
28876 #: ../test-tool/libguestfs-test-tool.pod:50
28877 msgid "I<--qemudir qemu_source_dir>"
28878 msgstr ""
28879
28880 #. type: textblock
28881 #: ../test-tool/libguestfs-test-tool.pod:52
28882 msgid ""
28883 "If you have compiled qemu from source, point this option at the source "
28884 "directory to try it."
28885 msgstr ""
28886
28887 #. type: =item
28888 #: ../test-tool/libguestfs-test-tool.pod:55
28889 msgid "I<--timeout N>"
28890 msgstr ""
28891
28892 #. type: textblock
28893 #: ../test-tool/libguestfs-test-tool.pod:57
28894 msgid ""
28895 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
28896 "does not usually need to be adjusted unless your machine is very slow."
28897 msgstr ""
28898
28899 #. type: =head1
28900 #: ../test-tool/libguestfs-test-tool.pod:63
28901 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
28902 msgstr ""
28903
28904 #. type: textblock
28905 #: ../test-tool/libguestfs-test-tool.pod:65
28906 msgid ""
28907 "If you have compiled another version of qemu from source and would like to "
28908 "try that, then you can use the I<--qemudir> option to point to the qemu "
28909 "source directory."
28910 msgstr ""
28911
28912 #. type: textblock
28913 #: ../test-tool/libguestfs-test-tool.pod:69
28914 msgid ""
28915 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
28916 "option to point to the binary."
28917 msgstr ""
28918
28919 #. type: textblock
28920 #: ../test-tool/libguestfs-test-tool.pod:72
28921 msgid ""
28922 "When using an alternate qemu with libguestfs, usually you would need to "
28923 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
28924 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
28925 "use either of the I<--qemudir> or I<--qemu> options."
28926 msgstr ""
28927
28928 #. type: textblock
28929 #: ../test-tool/libguestfs-test-tool.pod:79
28930 msgid ""
28931 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
28932 "I<1> if there was an error."
28933 msgstr ""
28934
28935 #. type: textblock
28936 #: ../test-tool/libguestfs-test-tool.pod:84
28937 msgid ""
28938 "For the full list of environment variables which may affect libguestfs, "
28939 "please see the L<guestfs(3)> manual page."
28940 msgstr ""
28941
28942 #. type: textblock
28943 #: ../test-tool/libguestfs-test-tool.pod:89
28944 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
28945 msgstr ""
28946
28947 #. type: textblock
28948 #: ../fuse/guestmount.pod:5
28949 msgid ""
28950 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
28951 msgstr ""
28952
28953 #. type: verbatim
28954 #: ../fuse/guestmount.pod:9
28955 #, no-wrap
28956 msgid ""
28957 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
28958 "\n"
28959 msgstr ""
28960
28961 #. type: verbatim
28962 #: ../fuse/guestmount.pod:11
28963 #, no-wrap
28964 msgid ""
28965 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
28966 "\n"
28967 msgstr ""
28968
28969 #. type: verbatim
28970 #: ../fuse/guestmount.pod:13
28971 #, no-wrap
28972 msgid ""
28973 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
28974 "\n"
28975 msgstr ""
28976
28977 #. type: textblock
28978 #: ../fuse/guestmount.pod:17
28979 msgid ""
28980 "You must I<not> use C<guestmount> in read-write mode on live virtual "
28981 "machines.  If you do this, you risk disk corruption in the VM."
28982 msgstr ""
28983
28984 #. type: textblock
28985 #: ../fuse/guestmount.pod:22
28986 msgid ""
28987 "The guestmount program can be used to mount virtual machine filesystems and "
28988 "other disk images on the host.  It uses libguestfs for access to the guest "
28989 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
28990 "a mountable device."
28991 msgstr ""
28992
28993 #. type: textblock
28994 #: ../fuse/guestmount.pod:27
28995 msgid ""
28996 "Along with other options, you have to give at least one device (I<-a> "
28997 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
28998 "option) or use the I<-i> inspection option.  How this works is better "
28999 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
29000 "below."
29001 msgstr ""
29002
29003 #. type: textblock
29004 #: ../fuse/guestmount.pod:33
29005 msgid ""
29006 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
29007 "by you, and the filesystem will not be visible to any other users unless you "
29008 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
29009 "the filesystem, use the C<fusermount -u> command."
29010 msgstr ""
29011
29012 #. type: textblock
29013 #: ../fuse/guestmount.pod:41
29014 msgid ""
29015 "For a typical Windows guest which has its main filesystem on the first "
29016 "partition:"
29017 msgstr ""
29018
29019 #. type: verbatim
29020 #: ../fuse/guestmount.pod:44
29021 #, no-wrap
29022 msgid ""
29023 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
29024 "\n"
29025 msgstr ""
29026
29027 #. type: textblock
29028 #: ../fuse/guestmount.pod:46
29029 msgid ""
29030 "For a typical Linux guest which has a /boot filesystem on the first "
29031 "partition, and the root filesystem on a logical volume:"
29032 msgstr ""
29033
29034 #. type: verbatim
29035 #: ../fuse/guestmount.pod:49
29036 #, no-wrap
29037 msgid ""
29038 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
29039 "\n"
29040 msgstr ""
29041
29042 #. type: textblock
29043 #: ../fuse/guestmount.pod:51
29044 msgid "To get libguestfs to detect guest mountpoints for you:"
29045 msgstr ""
29046
29047 #. type: verbatim
29048 #: ../fuse/guestmount.pod:53
29049 #, no-wrap
29050 msgid ""
29051 " guestmount -a guest.img -i --ro /mnt\n"
29052 "\n"
29053 msgstr ""
29054
29055 #. type: textblock
29056 #: ../fuse/guestmount.pod:55
29057 msgid "For a libvirt guest called \"Guest\" you could do:"
29058 msgstr ""
29059
29060 #. type: verbatim
29061 #: ../fuse/guestmount.pod:57
29062 #, no-wrap
29063 msgid ""
29064 " guestmount -d Guest -i --ro /mnt\n"
29065 "\n"
29066 msgstr ""
29067
29068 #. type: textblock
29069 #: ../fuse/guestmount.pod:59
29070 msgid ""
29071 "If you don't know what filesystems are contained in a guest or disk image, "
29072 "use L<virt-filesystems(1)> first:"
29073 msgstr ""
29074
29075 #. type: verbatim
29076 #: ../fuse/guestmount.pod:62
29077 #, no-wrap
29078 msgid ""
29079 " virt-filesystems MyGuest\n"
29080 "\n"
29081 msgstr ""
29082
29083 #. type: textblock
29084 #: ../fuse/guestmount.pod:64
29085 msgid ""
29086 "If you want to trace the libguestfs calls but without excessive debugging "
29087 "information, we recommend:"
29088 msgstr ""
29089
29090 #. type: verbatim
29091 #: ../fuse/guestmount.pod:67
29092 #, no-wrap
29093 msgid ""
29094 " guestmount [...] --trace /mnt\n"
29095 "\n"
29096 msgstr ""
29097
29098 #. type: textblock
29099 #: ../fuse/guestmount.pod:69
29100 msgid "If you want to debug the program, we recommend:"
29101 msgstr ""
29102
29103 #. type: verbatim
29104 #: ../fuse/guestmount.pod:71
29105 #, no-wrap
29106 msgid ""
29107 " guestmount [...] --trace --verbose /mnt\n"
29108 "\n"
29109 msgstr ""
29110
29111 #. type: =head1
29112 #: ../fuse/guestmount.pod:73
29113 msgid "NOTES"
29114 msgstr ""
29115
29116 #. type: =head2
29117 #: ../fuse/guestmount.pod:75
29118 msgid "Other users cannot see the filesystem by default"
29119 msgstr ""
29120
29121 #. type: textblock
29122 #: ../fuse/guestmount.pod:77
29123 msgid ""
29124 "If you mount a filesystem as one user (eg. root), then other users will not "
29125 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
29126 "option when mounting:"
29127 msgstr ""
29128
29129 #. type: verbatim
29130 #: ../fuse/guestmount.pod:81
29131 #, no-wrap
29132 msgid ""
29133 " sudo guestmount [...] -o allow_other /mnt\n"
29134 "\n"
29135 msgstr ""
29136
29137 #. type: =item
29138 #: ../fuse/guestmount.pod:87
29139 msgid "B<-a image> | B<--add image>"
29140 msgstr ""
29141
29142 #. type: textblock
29143 #: ../fuse/guestmount.pod:89
29144 msgid "Add a block device or virtual machine image."
29145 msgstr ""
29146
29147 #. type: =item
29148 #: ../fuse/guestmount.pod:94
29149 msgid "B<-c URI> | B<--connect URI>"
29150 msgstr ""
29151
29152 #. type: =item
29153 #: ../fuse/guestmount.pod:100
29154 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
29155 msgstr ""
29156
29157 #. type: =item
29158 #: ../fuse/guestmount.pod:108
29159 msgid "B<--dir-cache-timeout N>"
29160 msgstr ""
29161
29162 #. type: textblock
29163 #: ../fuse/guestmount.pod:110
29164 msgid ""
29165 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
29166 "seconds.  The readdir cache [actually, there are several semi-independent "
29167 "caches] is populated after a readdir(2) call with the stat and extended "
29168 "attributes of the files in the directory, in anticipation that they will be "
29169 "requested soon after."
29170 msgstr ""
29171
29172 #. type: textblock
29173 #: ../fuse/guestmount.pod:116
29174 msgid ""
29175 "There is also a different attribute cache implemented by FUSE (see the FUSE "
29176 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
29177 "requests, only cache existing ones."
29178 msgstr ""
29179
29180 #. type: =item
29181 #: ../fuse/guestmount.pod:127
29182 msgid "B<--format=raw|qcow2|..> | B<--format>"
29183 msgstr ""
29184
29185 #. type: textblock
29186 #: ../fuse/guestmount.pod:134
29187 msgid ""
29188 "If you have untrusted raw-format guest disk images, you should use this "
29189 "option to specify the disk format.  This avoids a possible security problem "
29190 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
29191 "guestfs_add_drive_opts>."
29192 msgstr ""
29193
29194 #. type: =item
29195 #: ../fuse/guestmount.pod:139
29196 msgid "B<--fuse-help>"
29197 msgstr ""
29198
29199 #. type: textblock
29200 #: ../fuse/guestmount.pod:141
29201 msgid "Display help on special FUSE options (see I<-o> below)."
29202 msgstr ""
29203
29204 #. type: textblock
29205 #: ../fuse/guestmount.pod:145
29206 msgid "Display brief help and exit."
29207 msgstr ""
29208
29209 #. type: =item
29210 #: ../fuse/guestmount.pod:147
29211 msgid "B<-i> | B<--inspector>"
29212 msgstr ""
29213
29214 #. type: textblock
29215 #: ../fuse/guestmount.pod:167
29216 msgid ""
29217 "Mount the named partition or logical volume on the given mountpoint B<in the "
29218 "guest> (this has nothing to do with mountpoints in the host)."
29219 msgstr ""
29220
29221 #. type: textblock
29222 #: ../fuse/guestmount.pod:170
29223 msgid ""
29224 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
29225 "something on C</>."
29226 msgstr ""
29227
29228 #. type: =item
29229 #: ../fuse/guestmount.pod:183
29230 msgid "B<-n> | B<--no-sync>"
29231 msgstr ""
29232
29233 #. type: textblock
29234 #: ../fuse/guestmount.pod:185
29235 msgid ""
29236 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
29237 "unmounted.  If you specify this option, then we don't attempt to sync the "
29238 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
29239 msgstr ""
29240
29241 #. type: =item
29242 #: ../fuse/guestmount.pod:190
29243 msgid "B<-o option> | B<--option option>"
29244 msgstr ""
29245
29246 #. type: textblock
29247 #: ../fuse/guestmount.pod:192
29248 msgid "Pass extra options to FUSE."
29249 msgstr ""
29250
29251 #. type: textblock
29252 #: ../fuse/guestmount.pod:194
29253 msgid ""
29254 "To get a list of all the extra options supported by FUSE, use the command "
29255 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
29256 "of them are a good idea."
29257 msgstr ""
29258
29259 #. type: verbatim
29260 #: ../fuse/guestmount.pod:198
29261 #, no-wrap
29262 msgid ""
29263 " guestmount --fuse-help\n"
29264 "\n"
29265 msgstr ""
29266
29267 #. type: textblock
29268 #: ../fuse/guestmount.pod:200
29269 msgid "Some potentially useful FUSE options:"
29270 msgstr ""
29271
29272 #. type: =item
29273 #: ../fuse/guestmount.pod:204
29274 msgid "B<-o allow_other>"
29275 msgstr ""
29276
29277 #. type: textblock
29278 #: ../fuse/guestmount.pod:206
29279 msgid "Allow other users to see the filesystem."
29280 msgstr ""
29281
29282 #. type: =item
29283 #: ../fuse/guestmount.pod:208
29284 msgid "B<-o attr_timeout=N>"
29285 msgstr ""
29286
29287 #. type: textblock
29288 #: ../fuse/guestmount.pod:210
29289 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
29290 msgstr ""
29291
29292 #. type: =item
29293 #: ../fuse/guestmount.pod:212
29294 msgid "B<-o kernel_cache>"
29295 msgstr ""
29296
29297 #. type: textblock
29298 #: ../fuse/guestmount.pod:214
29299 msgid ""
29300 "Allow the kernel to cache files (reduces the number of reads that have to go "
29301 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
29302 "afford the extra memory usage."
29303 msgstr ""
29304
29305 #. type: =item
29306 #: ../fuse/guestmount.pod:218
29307 msgid "B<-o uid=N> B<-o gid=N>"
29308 msgstr ""
29309
29310 #. type: textblock
29311 #: ../fuse/guestmount.pod:220
29312 msgid ""
29313 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
29314 "the chosen values."
29315 msgstr ""
29316
29317 #. type: =item
29318 #: ../fuse/guestmount.pod:225
29319 msgid "B<-r> | B<--ro>"
29320 msgstr ""
29321
29322 #. type: textblock
29323 #: ../fuse/guestmount.pod:227
29324 msgid ""
29325 "Add devices and mount everything read-only.  Also disallow writes and make "
29326 "the disk appear read-only to FUSE."
29327 msgstr ""
29328
29329 #. type: textblock
29330 #: ../fuse/guestmount.pod:230
29331 msgid ""
29332 "This is highly recommended if you are not going to edit the guest disk.  If "
29333 "the guest is running and this option is I<not> supplied, then there is a "
29334 "strong risk of disk corruption in the guest.  We try to prevent this from "
29335 "happening, but it is not always possible."
29336 msgstr ""
29337
29338 #. type: textblock
29339 #: ../fuse/guestmount.pod:235
29340 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
29341 msgstr ""
29342
29343 #. type: textblock
29344 #: ../fuse/guestmount.pod:239
29345 msgid "Enable SELinux support for the guest."
29346 msgstr ""
29347
29348 #. type: =item
29349 #: ../fuse/guestmount.pod:241
29350 msgid "B<-v> | B<--verbose>"
29351 msgstr ""
29352
29353 #. type: textblock
29354 #: ../fuse/guestmount.pod:243
29355 msgid "Enable verbose messages from underlying libguestfs."
29356 msgstr ""
29357
29358 #. type: =item
29359 #: ../fuse/guestmount.pod:245
29360 msgid "B<-V> | B<--version>"
29361 msgstr ""
29362
29363 #. type: textblock
29364 #: ../fuse/guestmount.pod:247
29365 msgid "Display the program version and exit."
29366 msgstr ""
29367
29368 #. type: =item
29369 #: ../fuse/guestmount.pod:249
29370 msgid "B<-w> | B<--rw>"
29371 msgstr ""
29372
29373 #. type: textblock
29374 #: ../fuse/guestmount.pod:254 ../fuse/guestmount.pod:275
29375 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
29376 msgstr ""
29377
29378 #. type: =item
29379 #: ../fuse/guestmount.pod:256
29380 msgid "B<-x> | B<--trace>"
29381 msgstr ""
29382
29383 #. type: textblock
29384 #: ../fuse/guestmount.pod:258
29385 msgid "Trace libguestfs calls and entry into each FUSE function."
29386 msgstr ""
29387
29388 #. type: textblock
29389 #: ../fuse/guestmount.pod:260
29390 msgid "This also stops the daemon from forking into the background."
29391 msgstr ""
29392
29393 #. type: textblock
29394 #: ../fuse/guestmount.pod:281
29395 msgid ""
29396 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
29397 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
29398 "net/>."
29399 msgstr ""
29400
29401 #. type: textblock
29402 #: ../fuse/guestmount.pod:296
29403 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
29404 msgstr ""
29405
29406 #. type: textblock
29407 #: ../tools/virt-win-reg.pl:37
29408 msgid ""
29409 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
29410 msgstr ""
29411
29412 #. type: verbatim
29413 #: ../tools/virt-win-reg.pl:41
29414 #, no-wrap
29415 msgid ""
29416 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
29417 "\n"
29418 msgstr ""
29419
29420 #. type: verbatim
29421 #: ../tools/virt-win-reg.pl:43
29422 #, no-wrap
29423 msgid ""
29424 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
29425 "\n"
29426 msgstr ""
29427
29428 #. type: verbatim
29429 #: ../tools/virt-win-reg.pl:45
29430 #, no-wrap
29431 msgid ""
29432 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
29433 "\n"
29434 msgstr ""
29435
29436 #. type: verbatim
29437 #: ../tools/virt-win-reg.pl:47
29438 #, no-wrap
29439 msgid ""
29440 " virt-win-reg --merge domname [input.reg ...]\n"
29441 "\n"
29442 msgstr ""
29443
29444 #. type: verbatim
29445 #: ../tools/virt-win-reg.pl:49
29446 #, no-wrap
29447 msgid ""
29448 " virt-win-reg [--options] disk.img ... # instead of domname\n"
29449 "\n"
29450 msgstr ""
29451
29452 #. type: textblock
29453 #: ../tools/virt-win-reg.pl:53
29454 msgid ""
29455 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
29456 "virtual machines.  If you do this, you I<will> get irreversible disk "
29457 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
29458 "but doesn't catch all cases."
29459 msgstr ""
29460
29461 #. type: textblock
29462 #: ../tools/virt-win-reg.pl:58
29463 msgid ""
29464 "Modifying the Windows Registry is an inherently risky operation.  The format "
29465 "is deliberately obscure and undocumented, and Registry changes can leave the "
29466 "system unbootable.  Therefore when using the I<--merge> option, make sure "
29467 "you have a reliable backup first."
29468 msgstr ""
29469
29470 #. type: textblock
29471 #: ../tools/virt-win-reg.pl:65
29472 msgid ""
29473 "This program can export and merge Windows Registry entries from a Windows "
29474 "guest."
29475 msgstr ""
29476
29477 #. type: textblock
29478 #: ../tools/virt-win-reg.pl:68
29479 msgid ""
29480 "The first parameter is the libvirt guest name or the raw disk image of a "
29481 "Windows guest."
29482 msgstr ""
29483
29484 #. type: textblock
29485 #: ../tools/virt-win-reg.pl:71
29486 msgid ""
29487 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
29488 "exported (recursively).  For example:"
29489 msgstr ""
29490
29491 #. type: verbatim
29492 #: ../tools/virt-win-reg.pl:74
29493 #, no-wrap
29494 msgid ""
29495 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
29496 "\n"
29497 msgstr ""
29498
29499 #. type: textblock
29500 #: ../tools/virt-win-reg.pl:76
29501 msgid ""
29502 "You can also display single values from within registry keys, for example:"
29503 msgstr ""
29504
29505 #. type: verbatim
29506 #: ../tools/virt-win-reg.pl:79
29507 #, no-wrap
29508 msgid ""
29509 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
29510 " $ virt-win-reg Windows7 $cvkey ProductName\n"
29511 " Windows 7 Enterprise\n"
29512 "\n"
29513 msgstr ""
29514
29515 #. type: textblock
29516 #: ../tools/virt-win-reg.pl:83
29517 msgid ""
29518 "With I<--merge>, you can merge a textual regedit file into the Windows "
29519 "Registry:"
29520 msgstr ""
29521
29522 #. type: verbatim
29523 #: ../tools/virt-win-reg.pl:86
29524 #, no-wrap
29525 msgid ""
29526 " $ virt-win-reg --merge Windows7 changes.reg\n"
29527 "\n"
29528 msgstr ""
29529
29530 #. type: =head1
29531 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
29532 msgid "NOTE"
29533 msgstr ""
29534
29535 #. type: textblock
29536 #: ../tools/virt-win-reg.pl:90
29537 msgid ""
29538 "This program is only meant for simple access to the registry.  If you want "
29539 "to do complicated things with the registry, we suggest you download the "
29540 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
29541 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
29542 "L<hivexregedit(1)>."
29543 msgstr ""
29544
29545 #. type: textblock
29546 #: ../tools/virt-win-reg.pl:106 ../tools/virt-list-filesystems.pl:63
29547 #: ../tools/virt-tar.pl:113 ../tools/virt-make-fs.pl:163
29548 #: ../tools/virt-list-partitions.pl:64
29549 msgid "Display brief help."
29550 msgstr ""
29551
29552 #. type: textblock
29553 #: ../tools/virt-win-reg.pl:114 ../tools/virt-list-filesystems.pl:71
29554 #: ../tools/virt-tar.pl:121 ../tools/virt-make-fs.pl:171
29555 #: ../tools/virt-list-partitions.pl:72
29556 msgid "Display version number and exit."
29557 msgstr ""
29558
29559 #. type: =item
29560 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
29561 msgid "B<--debug>"
29562 msgstr ""
29563
29564 #. type: textblock
29565 #: ../tools/virt-win-reg.pl:122
29566 msgid "Enable debugging messages."
29567 msgstr ""
29568
29569 #. type: =item
29570 #: ../tools/virt-win-reg.pl:128 ../tools/virt-list-filesystems.pl:77
29571 #: ../tools/virt-tar.pl:127 ../tools/virt-list-partitions.pl:78
29572 msgid "B<--connect URI> | B<-c URI>"
29573 msgstr ""
29574
29575 #. type: textblock
29576 #: ../tools/virt-win-reg.pl:130 ../tools/virt-list-filesystems.pl:79
29577 #: ../tools/virt-tar.pl:129 ../tools/virt-list-partitions.pl:80
29578 msgid ""
29579 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
29580 "to the default libvirt hypervisor."
29581 msgstr ""
29582
29583 #. type: textblock
29584 #: ../tools/virt-win-reg.pl:133 ../tools/virt-list-filesystems.pl:82
29585 #: ../tools/virt-tar.pl:132 ../tools/virt-list-partitions.pl:83
29586 msgid ""
29587 "If you specify guest block devices directly, then libvirt is not used at all."
29588 msgstr ""
29589
29590 #. type: =item
29591 #: ../tools/virt-win-reg.pl:140 ../tools/virt-list-filesystems.pl:89
29592 #: ../tools/virt-tar.pl:139 ../tools/virt-list-partitions.pl:90
29593 msgid "B<--format> raw"
29594 msgstr ""
29595
29596 #. type: textblock
29597 #: ../tools/virt-win-reg.pl:142 ../tools/virt-list-filesystems.pl:91
29598 #: ../tools/virt-tar.pl:141 ../tools/virt-list-partitions.pl:92
29599 msgid ""
29600 "Specify the format of disk images given on the command line.  If this is "
29601 "omitted then the format is autodetected from the content of the disk image."
29602 msgstr ""
29603
29604 #. type: textblock
29605 #: ../tools/virt-win-reg.pl:146 ../tools/virt-list-filesystems.pl:95
29606 #: ../tools/virt-tar.pl:145 ../tools/virt-list-partitions.pl:96
29607 msgid ""
29608 "If disk images are requested from libvirt, then this program asks libvirt "
29609 "for this information.  In this case, the value of the format parameter is "
29610 "ignored."
29611 msgstr ""
29612
29613 #. type: textblock
29614 #: ../tools/virt-win-reg.pl:150 ../tools/virt-list-filesystems.pl:99
29615 #: ../tools/virt-tar.pl:149 ../tools/virt-list-partitions.pl:100
29616 msgid ""
29617 "If working with untrusted raw-format guest disk images, you should ensure "
29618 "the format is always specified."
29619 msgstr ""
29620
29621 #. type: =item
29622 #: ../tools/virt-win-reg.pl:157
29623 msgid "B<--merge>"
29624 msgstr ""
29625
29626 #. type: textblock
29627 #: ../tools/virt-win-reg.pl:159
29628 msgid ""
29629 "In merge mode, this merges a textual regedit file into the Windows Registry "
29630 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
29631 "displays or exports Registry entries instead."
29632 msgstr ""
29633
29634 #. type: textblock
29635 #: ../tools/virt-win-reg.pl:163
29636 msgid ""
29637 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
29638 "result in disk corruption.  However exporting (without this flag)  is always "
29639 "safe."
29640 msgstr ""
29641
29642 #. type: =item
29643 #: ../tools/virt-win-reg.pl:171
29644 msgid "B<--encoding> UTF-16LE|ASCII"
29645 msgstr ""
29646
29647 #. type: textblock
29648 #: ../tools/virt-win-reg.pl:173
29649 msgid ""
29650 "When merging (only), you may need to specify the encoding for strings to be "
29651 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
29652 "(3)/ENCODING STRINGS>."
29653 msgstr ""
29654
29655 #. type: textblock
29656 #: ../tools/virt-win-reg.pl:177
29657 msgid ""
29658 "The default is to use UTF-16LE, which should work with recent versions of "
29659 "Windows."
29660 msgstr ""
29661
29662 #. type: =item
29663 #: ../tools/virt-win-reg.pl:184
29664 msgid "B<--unsafe-printable-strings>"
29665 msgstr ""
29666
29667 #. type: textblock
29668 #: ../tools/virt-win-reg.pl:186
29669 msgid ""
29670 "When exporting (only), assume strings are UTF-16LE and print them as strings "
29671 "instead of hex sequences.  Remove the final zero codepoint from strings if "
29672 "present."
29673 msgstr ""
29674
29675 #. type: textblock
29676 #: ../tools/virt-win-reg.pl:190
29677 msgid ""
29678 "This is unsafe and does not preserve the fidelity of strings in the original "
29679 "Registry for various reasons:"
29680 msgstr ""
29681
29682 #. type: textblock
29683 #: ../tools/virt-win-reg.pl:197
29684 msgid ""
29685 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
29686 "other encodings will be corrupted by this transformation."
29687 msgstr ""
29688
29689 #. type: textblock
29690 #: ../tools/virt-win-reg.pl:202
29691 msgid ""
29692 "Assumes that everything which has type 1 or 2 is really a string and that "
29693 "everything else is not a string, but the type field in real Registries is "
29694 "not reliable."
29695 msgstr ""
29696
29697 #. type: textblock
29698 #: ../tools/virt-win-reg.pl:208
29699 msgid ""
29700 "Loses information about whether a zero codepoint followed the string in the "
29701 "Registry or not."
29702 msgstr ""
29703
29704 #. type: textblock
29705 #: ../tools/virt-win-reg.pl:213
29706 msgid ""
29707 "This all happens because the Registry itself contains no information about "
29708 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
29709 msgstr ""
29710
29711 #. type: textblock
29712 #: ../tools/virt-win-reg.pl:217
29713 msgid ""
29714 "You should only use this option for quick hacking and debugging of the "
29715 "Registry contents, and I<never> use it if the output is going to be passed "
29716 "into another program or stored in another Registry."
29717 msgstr ""
29718
29719 #. type: =head1
29720 #: ../tools/virt-win-reg.pl:554
29721 msgid "SUPPORTED SYSTEMS"
29722 msgstr ""
29723
29724 #. type: textblock
29725 #: ../tools/virt-win-reg.pl:556
29726 msgid ""
29727 "The program currently supports Windows NT-derived guests starting with "
29728 "Windows XP through to at least Windows 7."
29729 msgstr ""
29730
29731 #. type: textblock
29732 #: ../tools/virt-win-reg.pl:559
29733 msgid "The following Registry keys are supported:"
29734 msgstr ""
29735
29736 #. type: =item
29737 #: ../tools/virt-win-reg.pl:563
29738 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
29739 msgstr ""
29740
29741 #. type: =item
29742 #: ../tools/virt-win-reg.pl:565
29743 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
29744 msgstr ""
29745
29746 #. type: =item
29747 #: ../tools/virt-win-reg.pl:567
29748 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
29749 msgstr ""
29750
29751 #. type: =item
29752 #: ../tools/virt-win-reg.pl:569
29753 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
29754 msgstr ""
29755
29756 #. type: =item
29757 #: ../tools/virt-win-reg.pl:571
29758 msgid "C<HKEY_USERS\\.DEFAULT>"
29759 msgstr ""
29760
29761 #. type: =item
29762 #: ../tools/virt-win-reg.pl:573
29763 msgid "C<HKEY_USERS\\I<SID>>"
29764 msgstr ""
29765
29766 #. type: textblock
29767 #: ../tools/virt-win-reg.pl:575
29768 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
29769 msgstr ""
29770
29771 #. type: =item
29772 #: ../tools/virt-win-reg.pl:577
29773 msgid "C<HKEY_USERS\\I<username>>"
29774 msgstr ""
29775
29776 #. type: textblock
29777 #: ../tools/virt-win-reg.pl:579
29778 msgid ""
29779 "where I<username> is a local user name (this is a libguestfs extension)."
29780 msgstr ""
29781
29782 #. type: textblock
29783 #: ../tools/virt-win-reg.pl:583
29784 msgid ""
29785 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
29786 "C<HKEY_USERS>."
29787 msgstr ""
29788
29789 #. type: textblock
29790 #: ../tools/virt-win-reg.pl:586
29791 msgid ""
29792 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
29793 "supported (there is no \"current user\")."
29794 msgstr ""
29795
29796 #. type: =head1
29797 #: ../tools/virt-win-reg.pl:589
29798 msgid "ENCODING"
29799 msgstr ""
29800
29801 #. type: textblock
29802 #: ../tools/virt-win-reg.pl:591
29803 msgid ""
29804 "C<virt-win-reg> expects that regedit files have already been reencoded in "
29805 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
29806 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
29807 "Windows-style line endings, you may need to reencode the whole file before "
29808 "or after processing."
29809 msgstr ""
29810
29811 #. type: textblock
29812 #: ../tools/virt-win-reg.pl:597
29813 msgid ""
29814 "To reencode a file from Windows format to Linux (before processing it with "
29815 "the I<--merge> option), you would do something like this:"
29816 msgstr ""
29817
29818 #. type: verbatim
29819 #: ../tools/virt-win-reg.pl:600
29820 #, no-wrap
29821 msgid ""
29822 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
29823 "\n"
29824 msgstr ""
29825
29826 #. type: textblock
29827 #: ../tools/virt-win-reg.pl:602
29828 msgid ""
29829 "To go in the opposite direction, after exporting and before sending the file "
29830 "to a Windows user, do something like this:"
29831 msgstr ""
29832
29833 #. type: verbatim
29834 #: ../tools/virt-win-reg.pl:605
29835 #, no-wrap
29836 msgid ""
29837 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
29838 "\n"
29839 msgstr ""
29840
29841 #. type: textblock
29842 #: ../tools/virt-win-reg.pl:607
29843 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
29844 msgstr ""
29845
29846 #. type: textblock
29847 #: ../tools/virt-win-reg.pl:609
29848 msgid ""
29849 "If you are unsure about the current encoding, use the L<file(1)> command.  "
29850 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
29851 "style (CRLF) line endings, like this:"
29852 msgstr ""
29853
29854 #. type: verbatim
29855 #: ../tools/virt-win-reg.pl:613
29856 #, no-wrap
29857 msgid ""
29858 " $ file software.reg\n"
29859 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
29860 " with CRLF line terminators\n"
29861 "\n"
29862 msgstr ""
29863
29864 #. type: textblock
29865 #: ../tools/virt-win-reg.pl:617
29866 msgid "This file would need conversion before you could I<--merge> it."
29867 msgstr ""
29868
29869 #. type: =head1
29870 #: ../tools/virt-win-reg.pl:619
29871 msgid "CurrentControlSet etc."
29872 msgstr ""
29873
29874 #. type: textblock
29875 #: ../tools/virt-win-reg.pl:621
29876 msgid ""
29877 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
29878 "Registry at the level of the hive file, and therefore you cannot modify "
29879 "these."
29880 msgstr ""
29881
29882 #. type: textblock
29883 #: ../tools/virt-win-reg.pl:625
29884 msgid ""
29885 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
29886 "circumstances it might refer to another control set.  The way to find out is "
29887 "to look at the C<HKLM\\SYSTEM\\Select> key:"
29888 msgstr ""
29889
29890 #. type: verbatim
29891 #: ../tools/virt-win-reg.pl:629
29892 #, no-wrap
29893 msgid ""
29894 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
29895 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
29896 " \"Current\"=dword:00000001\n"
29897 " \"Default\"=dword:00000001\n"
29898 " \"Failed\"=dword:00000000\n"
29899 " \"LastKnownGood\"=dword:00000002\n"
29900 "\n"
29901 msgstr ""
29902
29903 #. type: textblock
29904 #: ../tools/virt-win-reg.pl:636
29905 msgid "\"Current\" is the one which Windows will choose when it boots."
29906 msgstr ""
29907
29908 #. type: textblock
29909 #: ../tools/virt-win-reg.pl:638
29910 msgid ""
29911 "Similarly, other C<Current...> keys in the path may need to be replaced."
29912 msgstr ""
29913
29914 #. type: =head1
29915 #: ../tools/virt-win-reg.pl:641
29916 msgid "WINDOWS TIPS"
29917 msgstr ""
29918
29919 #. type: textblock
29920 #: ../tools/virt-win-reg.pl:643
29921 msgid ""
29922 "Note that some of these tips modify the guest disk image.  The guest I<must> "
29923 "be shut off, else you will get disk corruption."
29924 msgstr ""
29925
29926 #. type: =head2
29927 #: ../tools/virt-win-reg.pl:646
29928 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
29929 msgstr ""
29930
29931 #. type: textblock
29932 #: ../tools/virt-win-reg.pl:648
29933 msgid ""
29934 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
29935 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
29936 "is uploaded into C<C:\\>:"
29937 msgstr ""
29938
29939 #. type: verbatim
29940 #: ../tools/virt-win-reg.pl:652
29941 #, no-wrap
29942 msgid ""
29943 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
29944 "\n"
29945 msgstr ""
29946
29947 #. type: textblock
29948 #: ../tools/virt-win-reg.pl:654
29949 msgid "Prepare a regedit file containing the registry change:"
29950 msgstr ""
29951
29952 #. type: verbatim
29953 #: ../tools/virt-win-reg.pl:656
29954 #, no-wrap
29955 msgid ""
29956 " cat > test.reg <<'EOF'\n"
29957 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
29958 " \"Test\"=\"c:\\\\test.bat\"\n"
29959 " EOF\n"
29960 "\n"
29961 msgstr ""
29962
29963 #. type: textblock
29964 #: ../tools/virt-win-reg.pl:661
29965 msgid ""
29966 "In this example we use the key C<RunOnce> which means that the script will "
29967 "run precisely once when the first user logs in.  If you want it to run every "
29968 "time a user logs in, replace C<RunOnce> with C<Run>."
29969 msgstr ""
29970
29971 #. type: textblock
29972 #: ../tools/virt-win-reg.pl:665
29973 msgid "Now update the registry:"
29974 msgstr ""
29975
29976 #. type: verbatim
29977 #: ../tools/virt-win-reg.pl:667
29978 #, no-wrap
29979 msgid ""
29980 " virt-win-reg --merge WindowsGuest test.reg\n"
29981 "\n"
29982 msgstr ""
29983
29984 #. type: =head2
29985 #: ../tools/virt-win-reg.pl:669
29986 msgid "INSTALLING A SERVICE"
29987 msgstr ""
29988
29989 #. type: textblock
29990 #: ../tools/virt-win-reg.pl:671
29991 msgid ""
29992 "This section assumes you are familiar with Windows services, and you either "
29993 "have a program which handles the Windows Service Control Protocol directly "
29994 "or you want to run any program using a service wrapper like SrvAny or the "
29995 "free RHSrvAny."
29996 msgstr ""
29997
29998 #. type: textblock
29999 #: ../tools/virt-win-reg.pl:676
30000 msgid ""
30001 "First upload the program and optionally the service wrapper.  In this case "
30002 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
30003 msgstr ""
30004
30005 #. type: verbatim
30006 #: ../tools/virt-win-reg.pl:680
30007 #, no-wrap
30008 msgid ""
30009 " guestfish -i -d WindowsGuest <<EOF\n"
30010 "   upload rhsrvany.exe /rhsrvany.exe\n"
30011 "   upload test.exe /test.exe\n"
30012 " EOF\n"
30013 "\n"
30014 msgstr ""
30015
30016 #. type: textblock
30017 #: ../tools/virt-win-reg.pl:685
30018 msgid ""
30019 "Prepare a regedit file containing the registry changes.  In this example, "
30020 "the first registry change is needed for the service itself or the service "
30021 "wrapper (if used).  The second registry change is only needed because I am "
30022 "using the RHSrvAny service wrapper."
30023 msgstr ""
30024
30025 #. type: verbatim
30026 #: ../tools/virt-win-reg.pl:690
30027 #, no-wrap
30028 msgid ""
30029 " cat > service.reg <<'EOF'\n"
30030 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
30031 " \"Type\"=dword:00000010\n"
30032 " \"Start\"=dword:00000002\n"
30033 " \"ErrorControl\"=dword:00000001\n"
30034 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
30035 " \"DisplayName\"=\"RHSrvAny\"\n"
30036 " \"ObjectName\"=\"NetworkService\"\n"
30037 " \n"
30038 msgstr ""
30039
30040 #. type: verbatim
30041 #: ../tools/virt-win-reg.pl:699
30042 #, no-wrap
30043 msgid ""
30044 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
30045 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
30046 " \"PWD\"=\"c:\\\\Temp\"\n"
30047 " EOF\n"
30048 "\n"
30049 msgstr ""
30050
30051 #. type: textblock
30052 #: ../tools/virt-win-reg.pl:710
30053 msgid ""
30054 "For use of C<ControlSet001> see the section above in this manual page.  You "
30055 "may need to adjust this according to the control set that is in use by the "
30056 "guest."
30057 msgstr ""
30058
30059 #. type: textblock
30060 #: ../tools/virt-win-reg.pl:716
30061 msgid ""
30062 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
30063 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
30064 "privileged account."
30065 msgstr ""
30066
30067 #. type: textblock
30068 #: ../tools/virt-win-reg.pl:722
30069 msgid ""
30070 "For the meaning of the magic numbers, see this Microsoft KB article: "
30071 "L<http://support.microsoft.com/kb/103000>."
30072 msgstr ""
30073
30074 #. type: textblock
30075 #: ../tools/virt-win-reg.pl:727
30076 msgid "Update the registry:"
30077 msgstr ""
30078
30079 #. type: verbatim
30080 #: ../tools/virt-win-reg.pl:729
30081 #, no-wrap
30082 msgid ""
30083 " virt-win-reg --merge WindowsGuest service.reg\n"
30084 "\n"
30085 msgstr ""
30086
30087 #. type: =head1
30088 #: ../tools/virt-win-reg.pl:731 ../tools/virt-list-filesystems.pl:182
30089 #: ../tools/virt-tar.pl:279 ../tools/virt-make-fs.pl:532
30090 #: ../tools/virt-list-partitions.pl:250
30091 msgid "SHELL QUOTING"
30092 msgstr ""
30093
30094 #. type: textblock
30095 #: ../tools/virt-win-reg.pl:733
30096 msgid ""
30097 "Be careful when passing parameters containing C<\\> (backslash) in the "
30098 "shell.  Usually you will have to use 'single quotes' or double backslashes "
30099 "(but not both) to protect them from the shell."
30100 msgstr ""
30101
30102 #. type: textblock
30103 #: ../tools/virt-win-reg.pl:737
30104 msgid "Paths and value names are case-insensitive."
30105 msgstr ""
30106
30107 #. type: textblock
30108 #: ../tools/virt-win-reg.pl:739 ../tools/virt-list-filesystems.pl:184
30109 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534
30110 #: ../tools/virt-list-partitions.pl:252
30111 msgid ""
30112 "Libvirt guest names can contain arbitrary characters, some of which have "
30113 "meaning to the shell such as C<#> and space.  You may need to quote or "
30114 "escape these characters on the command line.  See the shell manual page L<sh"
30115 "(1)> for details."
30116 msgstr ""
30117
30118 #. type: textblock
30119 #: ../tools/virt-win-reg.pl:746
30120 msgid ""
30121 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
30122 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
30123 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
30124 msgstr ""
30125
30126 #. type: textblock
30127 #: ../tools/virt-win-reg.pl:761 ../tools/virt-make-fs.pl:555
30128 msgid ""
30129 "When reporting bugs, please enable debugging and capture the I<complete> "
30130 "output:"
30131 msgstr ""
30132
30133 #. type: verbatim
30134 #: ../tools/virt-win-reg.pl:764
30135 #, no-wrap
30136 msgid ""
30137 " export LIBGUESTFS_DEBUG=1\n"
30138 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
30139 "\n"
30140 msgstr ""
30141
30142 #. type: textblock
30143 #: ../tools/virt-win-reg.pl:767
30144 msgid ""
30145 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
30146 "redhat.com/>"
30147 msgstr ""
30148
30149 #. type: =head1
30150 #: ../tools/virt-win-reg.pl:770 ../tools/virt-list-filesystems.pl:202
30151 #: ../tools/virt-tar.pl:301 ../tools/virt-make-fs.pl:564
30152 #: ../tools/virt-list-partitions.pl:269
30153 msgid "AUTHOR"
30154 msgstr ""
30155
30156 #. type: textblock
30157 #: ../tools/virt-win-reg.pl:772 ../tools/virt-list-filesystems.pl:204
30158 #: ../tools/virt-tar.pl:303 ../tools/virt-make-fs.pl:566
30159 #: ../tools/virt-list-partitions.pl:271
30160 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
30161 msgstr ""
30162
30163 #. type: textblock
30164 #: ../tools/virt-win-reg.pl:776 ../tools/virt-make-fs.pl:570
30165 msgid "Copyright (C) 2010 Red Hat Inc."
30166 msgstr ""
30167
30168 #. type: textblock
30169 #: ../tools/virt-list-filesystems.pl:32
30170 msgid ""
30171 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
30172 msgstr ""
30173
30174 #. type: verbatim
30175 #: ../tools/virt-list-filesystems.pl:36
30176 #, no-wrap
30177 msgid ""
30178 " virt-list-filesystems [--options] domname\n"
30179 "\n"
30180 msgstr ""
30181
30182 #. type: verbatim
30183 #: ../tools/virt-list-filesystems.pl:38
30184 #, no-wrap
30185 msgid ""
30186 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
30187 "\n"
30188 msgstr ""
30189
30190 #. type: textblock
30191 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
30192 msgid ""
30193 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
30194 "replacement."
30195 msgstr ""
30196
30197 #. type: textblock
30198 #: ../tools/virt-list-filesystems.pl:45
30199 msgid ""
30200 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
30201 "are contained in a virtual machine or disk image."
30202 msgstr ""
30203
30204 #. type: textblock
30205 #: ../tools/virt-list-filesystems.pl:49
30206 msgid ""
30207 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
30208 "functionality.  For more complex cases you should look at the L<guestfish(1)"
30209 "> tool."
30210 msgstr ""
30211
30212 #. type: =item
30213 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
30214 msgid "B<-l> | B<--long>"
30215 msgstr ""
30216
30217 #. type: textblock
30218 #: ../tools/virt-list-filesystems.pl:108
30219 msgid ""
30220 "With this option, C<virt-list-filesystems> displays the type of each "
30221 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
30222 msgstr ""
30223
30224 #. type: =item
30225 #: ../tools/virt-list-filesystems.pl:115
30226 msgid "B<-a> | B<--all>"
30227 msgstr ""
30228
30229 #. type: textblock
30230 #: ../tools/virt-list-filesystems.pl:117
30231 msgid ""
30232 "Normally we only show mountable filesystems.  If this option is given then "
30233 "swap devices are shown too."
30234 msgstr ""
30235
30236 #. type: textblock
30237 #: ../tools/virt-list-filesystems.pl:191
30238 msgid ""
30239 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
30240 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
30241 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
30242 msgstr ""
30243
30244 #. type: textblock
30245 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:307
30246 msgid "Copyright (C) 2009 Red Hat Inc."
30247 msgstr ""
30248
30249 #. type: textblock
30250 #: ../tools/virt-tar.pl:33
30251 msgid "virt-tar - Extract or upload files to a virtual machine"
30252 msgstr ""
30253
30254 #. type: verbatim
30255 #: ../tools/virt-tar.pl:37
30256 #, no-wrap
30257 msgid ""
30258 " virt-tar [--options] -x domname directory tarball\n"
30259 "\n"
30260 msgstr ""
30261
30262 #. type: verbatim
30263 #: ../tools/virt-tar.pl:39
30264 #, no-wrap
30265 msgid ""
30266 " virt-tar [--options] -u domname tarball directory\n"
30267 "\n"
30268 msgstr ""
30269
30270 #. type: verbatim
30271 #: ../tools/virt-tar.pl:41
30272 #, no-wrap
30273 msgid ""
30274 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
30275 "\n"
30276 msgstr ""
30277
30278 #. type: verbatim
30279 #: ../tools/virt-tar.pl:43
30280 #, no-wrap
30281 msgid ""
30282 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
30283 "\n"
30284 msgstr ""
30285
30286 #. type: textblock
30287 #: ../tools/virt-tar.pl:47
30288 msgid ""
30289 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
30290 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
30291 msgstr ""
30292
30293 #. type: textblock
30294 #: ../tools/virt-tar.pl:52
30295 msgid "Download C</home> from the VM into a local tarball:"
30296 msgstr ""
30297
30298 #. type: verbatim
30299 #: ../tools/virt-tar.pl:54
30300 #, no-wrap
30301 msgid ""
30302 " virt-tar -x domname /home home.tar\n"
30303 "\n"
30304 msgstr ""
30305
30306 #. type: verbatim
30307 #: ../tools/virt-tar.pl:56
30308 #, no-wrap
30309 msgid ""
30310 " virt-tar -zx domname /home home.tar.gz\n"
30311 "\n"
30312 msgstr ""
30313
30314 #. type: textblock
30315 #: ../tools/virt-tar.pl:58
30316 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
30317 msgstr ""
30318
30319 #. type: verbatim
30320 #: ../tools/virt-tar.pl:60
30321 #, no-wrap
30322 msgid ""
30323 " virt-tar -u domname uploadstuff.tar /tmp\n"
30324 "\n"
30325 msgstr ""
30326
30327 #. type: verbatim
30328 #: ../tools/virt-tar.pl:62
30329 #, no-wrap
30330 msgid ""
30331 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
30332 "\n"
30333 msgstr ""
30334
30335 #. type: textblock
30336 #: ../tools/virt-tar.pl:66
30337 msgid ""
30338 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
30339 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
30340 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
30341 msgstr ""
30342
30343 #. type: textblock
30344 #: ../tools/virt-tar.pl:71
30345 msgid ""
30346 "You can use I<-x> (extract) on live virtual machines, but you might get "
30347 "inconsistent results or errors if there is filesystem activity inside the "
30348 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
30349 "work, but the only way to guarantee consistent results is if the virtual "
30350 "machine is shut down."
30351 msgstr ""
30352
30353 #. type: textblock
30354 #: ../tools/virt-tar.pl:79
30355 msgid ""
30356 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
30357 "parts of a guest filesystem.  There are many possibilities: making backups, "
30358 "uploading data files, snooping on guest activity, fixing or customizing "
30359 "guests, etc."
30360 msgstr ""
30361
30362 #. type: textblock
30363 #: ../tools/virt-tar.pl:84
30364 msgid ""
30365 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
30366 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
30367 "should look at the L<guestfish(1)> tool."
30368 msgstr ""
30369
30370 #. type: textblock
30371 #: ../tools/virt-tar.pl:88
30372 msgid ""
30373 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
30374 "its contents (recursively) from the virtual machine into a local tarball.  "
30375 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
30376 "virtual machine.  You cannot use these two options together."
30377 msgstr ""
30378
30379 #. type: textblock
30380 #: ../tools/virt-tar.pl:94
30381 msgid ""
30382 "In addition, you may need to use the I<-z> (gZip) option to enable "
30383 "compression.  When uploading, you have to specify I<-z> if the upload file "
30384 "is compressed because virt-tar won't detect this on its own."
30385 msgstr ""
30386
30387 #. type: textblock
30388 #: ../tools/virt-tar.pl:98
30389 msgid ""
30390 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
30391 "example it cannot do PKZip files or bzip2 compression.  If you want that "
30392 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
30393 "the L<libguestfs(3)> API)."
30394 msgstr ""
30395
30396 #. type: =item
30397 #: ../tools/virt-tar.pl:156
30398 msgid "B<-x> | B<--extract> | B<--download>"
30399 msgstr ""
30400
30401 #. type: =item
30402 #: ../tools/virt-tar.pl:158
30403 msgid "B<-u> | B<--upload>"
30404 msgstr ""
30405
30406 #. type: textblock
30407 #: ../tools/virt-tar.pl:160
30408 msgid ""
30409 "Use I<-x> to extract (download) a directory from a virtual machine to a "
30410 "local tarball."
30411 msgstr ""
30412
30413 #. type: textblock
30414 #: ../tools/virt-tar.pl:163
30415 msgid ""
30416 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
30417 "Please read the L</WARNING> section above before using this option."
30418 msgstr ""
30419
30420 #. type: textblock
30421 #: ../tools/virt-tar.pl:167
30422 msgid "You must specify exactly one of these options."
30423 msgstr ""
30424
30425 #. type: =item
30426 #: ../tools/virt-tar.pl:173
30427 msgid "B<-z> | B<--gzip>"
30428 msgstr ""
30429
30430 #. type: textblock
30431 #: ../tools/virt-tar.pl:175
30432 msgid "Specify that the input or output tarball is gzip-compressed."
30433 msgstr ""
30434
30435 #. type: textblock
30436 #: ../tools/virt-tar.pl:288
30437 msgid ""
30438 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
30439 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
30440 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
30441 "org/>."
30442 msgstr ""
30443
30444 #. type: textblock
30445 #: ../tools/virt-make-fs.pl:37
30446 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
30447 msgstr ""
30448
30449 #. type: verbatim
30450 #: ../tools/virt-make-fs.pl:41
30451 #, no-wrap
30452 msgid ""
30453 " virt-make-fs [--options] input.tar output.img\n"
30454 "\n"
30455 msgstr ""
30456
30457 #. type: verbatim
30458 #: ../tools/virt-make-fs.pl:43
30459 #, no-wrap
30460 msgid ""
30461 " virt-make-fs [--options] input.tar.gz output.img\n"
30462 "\n"
30463 msgstr ""
30464
30465 #. type: verbatim
30466 #: ../tools/virt-make-fs.pl:45
30467 #, no-wrap
30468 msgid ""
30469 " virt-make-fs [--options] directory output.img\n"
30470 "\n"
30471 msgstr ""
30472
30473 #. type: textblock
30474 #: ../tools/virt-make-fs.pl:49
30475 msgid ""
30476 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
30477 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
30478 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
30479 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
30480 "you want to attach these filesystems to existing virtual machines (eg. to "
30481 "import large amounts of read-only data to a VM)."
30482 msgstr ""
30483
30484 #. type: textblock
30485 #: ../tools/virt-make-fs.pl:57
30486 msgid "Basic usage is:"
30487 msgstr ""
30488
30489 #. type: verbatim
30490 #: ../tools/virt-make-fs.pl:59
30491 #, no-wrap
30492 msgid ""
30493 " virt-make-fs input output\n"
30494 "\n"
30495 msgstr ""
30496
30497 #. type: textblock
30498 #: ../tools/virt-make-fs.pl:61
30499 msgid ""
30500 "where C<input> is either a directory containing files that you want to add, "
30501 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
30502 "C<output> is a disk image.  The input type is detected automatically.  The "
30503 "output disk image defaults to a raw ext2 image unless you specify extra "
30504 "flags (see L</OPTIONS> below)."
30505 msgstr ""
30506
30507 #. type: =head2
30508 #: ../tools/virt-make-fs.pl:67
30509 msgid "EXTRA SPACE"
30510 msgstr ""
30511
30512 #. type: textblock
30513 #: ../tools/virt-make-fs.pl:69
30514 msgid ""
30515 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
30516 "the files that it contains, but might have extra space.  Depending on how "
30517 "you are going to use the output, you might think this extra space is wasted "
30518 "and want to minimize it, or you might want to leave space so that more files "
30519 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
30520 "but you can use the I<--size> flag to leave space in the filesystem if you "
30521 "want it."
30522 msgstr ""
30523
30524 #. type: textblock
30525 #: ../tools/virt-make-fs.pl:77
30526 msgid ""
30527 "An alternative way to leave extra space but not make the output image any "
30528 "bigger is to use an alternative disk image format (instead of the default "
30529 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
30530 "image format (check your hypervisor supports this before using it).  This "
30531 "allows you to choose a large I<--size> but the extra space won't actually be "
30532 "allocated in the image until you try to store something in it."
30533 msgstr ""
30534
30535 #. type: textblock
30536 #: ../tools/virt-make-fs.pl:85
30537 msgid ""
30538 "Don't forget that you can also use local commands including L<resize2fs(8)> "
30539 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
30540 "to build another image from scratch."
30541 msgstr ""
30542
30543 #. type: =head3
30544 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
30545 #: ../tools/virt-make-fs.pl:142
30546 msgid "EXAMPLE"
30547 msgstr ""
30548
30549 #. type: verbatim
30550 #: ../tools/virt-make-fs.pl:91
30551 #, no-wrap
30552 msgid ""
30553 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
30554 "\n"
30555 msgstr ""
30556
30557 #. type: =head2
30558 #: ../tools/virt-make-fs.pl:93
30559 msgid "FILESYSTEM TYPE"
30560 msgstr ""
30561
30562 #. type: textblock
30563 #: ../tools/virt-make-fs.pl:95
30564 msgid ""
30565 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
30566 "libguestfs supports can be used (but I<not> read-only formats like "
30567 "ISO9660).  Here are some of the more common choices:"
30568 msgstr ""
30569
30570 #. type: =item
30571 #: ../tools/virt-make-fs.pl:101
30572 msgid "I<ext3>"
30573 msgstr ""
30574
30575 #. type: textblock
30576 #: ../tools/virt-make-fs.pl:103
30577 msgid ""
30578 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
30579 "you are not going to use the filesystem in a way that requires the journal, "
30580 "then this is just wasted overhead."
30581 msgstr ""
30582
30583 #. type: =item
30584 #: ../tools/virt-make-fs.pl:107
30585 msgid "I<ntfs> or I<vfat>"
30586 msgstr ""
30587
30588 #. type: textblock
30589 #: ../tools/virt-make-fs.pl:109
30590 msgid "Useful if exporting data to a Windows guest."
30591 msgstr ""
30592
30593 #. type: textblock
30594 #: ../tools/virt-make-fs.pl:111
30595 msgid ""
30596 "I<Note for vfat>: The tar archive or local directory must only contain files "
30597 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
30598 "program running within libguestfs is unable to change the ownership of non-"
30599 "root files, since vfat itself does not support this."
30600 msgstr ""
30601
30602 #. type: =item
30603 #: ../tools/virt-make-fs.pl:116
30604 msgid "I<minix>"
30605 msgstr ""
30606
30607 #. type: textblock
30608 #: ../tools/virt-make-fs.pl:118
30609 msgid ""
30610 "Lower overhead than C<ext2>, but certain limitations on filename length and "
30611 "total filesystem size."
30612 msgstr ""
30613
30614 #. type: verbatim
30615 #: ../tools/virt-make-fs.pl:125
30616 #, no-wrap
30617 msgid ""
30618 " virt-make-fs --type=minix input minixfs.img\n"
30619 "\n"
30620 msgstr ""
30621
30622 #. type: =head2
30623 #: ../tools/virt-make-fs.pl:127
30624 msgid "TO PARTITION OR NOT TO PARTITION"
30625 msgstr ""
30626
30627 #. type: textblock
30628 #: ../tools/virt-make-fs.pl:129
30629 msgid "Optionally virt-make-fs can add a partition table to the output disk."
30630 msgstr ""
30631
30632 #. type: textblock
30633 #: ../tools/virt-make-fs.pl:131
30634 msgid ""
30635 "Adding a partition can make the disk image more compatible with certain "
30636 "virtualized operating systems which don't expect to see a filesystem "
30637 "directly located on a block device (Linux doesn't care and will happily "
30638 "handle both types)."
30639 msgstr ""
30640
30641 #. type: textblock
30642 #: ../tools/virt-make-fs.pl:136
30643 msgid ""
30644 "On the other hand, if you have a partition table then the output image is no "
30645 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
30646 "directly on a partitioned disk image.  (However libguestfs tools such as "
30647 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
30648 msgstr ""
30649
30650 #. type: textblock
30651 #: ../tools/virt-make-fs.pl:144
30652 msgid "Add an MBR partition:"
30653 msgstr ""
30654
30655 #. type: verbatim
30656 #: ../tools/virt-make-fs.pl:146
30657 #, no-wrap
30658 msgid ""
30659 " virt-make-fs --partition -- input disk.img\n"
30660 "\n"
30661 msgstr ""
30662
30663 #. type: textblock
30664 #: ../tools/virt-make-fs.pl:148
30665 msgid ""
30666 "If the output disk image could be terabyte-sized or larger, it's better to "
30667 "use an EFI/GPT-compatible partition table:"
30668 msgstr ""
30669
30670 #. type: verbatim
30671 #: ../tools/virt-make-fs.pl:151
30672 #, no-wrap
30673 msgid ""
30674 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
30675 "\n"
30676 msgstr ""
30677
30678 #. type: textblock
30679 #: ../tools/virt-make-fs.pl:179
30680 msgid "Enable debugging information."
30681 msgstr ""
30682
30683 #. type: =item
30684 #: ../tools/virt-make-fs.pl:185
30685 msgid "B<--size=E<lt>NE<gt>>"
30686 msgstr ""
30687
30688 #. type: =item
30689 #: ../tools/virt-make-fs.pl:187
30690 msgid "B<--size=+E<lt>NE<gt>>"
30691 msgstr ""
30692
30693 #. type: =item
30694 #: ../tools/virt-make-fs.pl:189
30695 msgid "B<-s E<lt>NE<gt>>"
30696 msgstr ""
30697
30698 #. type: =item
30699 #: ../tools/virt-make-fs.pl:191
30700 msgid "B<-s +E<lt>NE<gt>>"
30701 msgstr ""
30702
30703 #. type: textblock
30704 #: ../tools/virt-make-fs.pl:193
30705 msgid ""
30706 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
30707 msgstr ""
30708
30709 #. type: textblock
30710 #: ../tools/virt-make-fs.pl:196
30711 msgid ""
30712 "If this option is I<not> given, then the output image will be just large "
30713 "enough to contain all the files, with not much wasted space."
30714 msgstr ""
30715
30716 #. type: textblock
30717 #: ../tools/virt-make-fs.pl:199
30718 msgid ""
30719 "To choose a fixed size output disk, specify an absolute number followed by b/"
30720 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
30721 "Petabytes or Exabytes.  This must be large enough to contain all the input "
30722 "files, else you will get an error."
30723 msgstr ""
30724
30725 #. type: textblock
30726 #: ../tools/virt-make-fs.pl:204
30727 msgid ""
30728 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
30729 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
30730 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
30731 "the input files, and (approximately) an extra 200 MB free space."
30732 msgstr ""
30733
30734 #. type: textblock
30735 #: ../tools/virt-make-fs.pl:210
30736 msgid ""
30737 "Note that virt-make-fs estimates free space, and therefore will not produce "
30738 "filesystems containing precisely the free space requested.  (It is much more "
30739 "expensive and time-consuming to produce a filesystem which has precisely the "
30740 "desired free space)."
30741 msgstr ""
30742
30743 #. type: =item
30744 #: ../tools/virt-make-fs.pl:219
30745 msgid "B<--format=E<lt>fmtE<gt>>"
30746 msgstr ""
30747
30748 #. type: =item
30749 #: ../tools/virt-make-fs.pl:221
30750 msgid "B<-F E<lt>fmtE<gt>>"
30751 msgstr ""
30752
30753 #. type: textblock
30754 #: ../tools/virt-make-fs.pl:223
30755 msgid "Choose the output disk image format."
30756 msgstr ""
30757
30758 #. type: textblock
30759 #: ../tools/virt-make-fs.pl:225
30760 msgid "The default is C<raw> (raw disk image)."
30761 msgstr ""
30762
30763 #. type: textblock
30764 #: ../tools/virt-make-fs.pl:227
30765 msgid ""
30766 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
30767 "that would really make sense here is C<qcow2>."
30768 msgstr ""
30769
30770 #. type: =item
30771 #: ../tools/virt-make-fs.pl:234
30772 msgid "B<--type=E<lt>fsE<gt>>"
30773 msgstr ""
30774
30775 #. type: =item
30776 #: ../tools/virt-make-fs.pl:236
30777 msgid "B<-t E<lt>fsE<gt>>"
30778 msgstr ""
30779
30780 #. type: textblock
30781 #: ../tools/virt-make-fs.pl:238
30782 msgid "Choose the output filesystem type."
30783 msgstr ""
30784
30785 #. type: textblock
30786 #: ../tools/virt-make-fs.pl:240
30787 msgid "The default is C<ext2>."
30788 msgstr ""
30789
30790 #. type: textblock
30791 #: ../tools/virt-make-fs.pl:242
30792 msgid ""
30793 "Any filesystem which is supported read-write by libguestfs can be used here."
30794 msgstr ""
30795
30796 #. type: =item
30797 #: ../tools/virt-make-fs.pl:249
30798 msgid "B<--partition>"
30799 msgstr ""
30800
30801 #. type: =item
30802 #: ../tools/virt-make-fs.pl:251
30803 msgid "B<--partition=E<lt>parttypeE<gt>>"
30804 msgstr ""
30805
30806 #. type: textblock
30807 #: ../tools/virt-make-fs.pl:253
30808 msgid ""
30809 "If specified, this flag adds an MBR partition table to the output disk image."
30810 msgstr ""
30811
30812 #. type: textblock
30813 #: ../tools/virt-make-fs.pl:256
30814 msgid ""
30815 "You can change the partition table type, eg. I<--partition=gpt> for large "
30816 "disks."
30817 msgstr ""
30818
30819 #. type: textblock
30820 #: ../tools/virt-make-fs.pl:259
30821 msgid ""
30822 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
30823 "might consider the next parameter to be the partition type.  For example:"
30824 msgstr ""
30825
30826 #. type: verbatim
30827 #: ../tools/virt-make-fs.pl:263
30828 #, no-wrap
30829 msgid ""
30830 " virt-make-fs --partition input.tar ...\n"
30831 "\n"
30832 msgstr ""
30833
30834 #. type: textblock
30835 #: ../tools/virt-make-fs.pl:265
30836 msgid ""
30837 "would cause virt-make-fs to think you wanted to use a partition type of "
30838 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
30839 "dash) between options and the input file argument:"
30840 msgstr ""
30841
30842 #. type: verbatim
30843 #: ../tools/virt-make-fs.pl:269
30844 #, no-wrap
30845 msgid ""
30846 " virt-make-fs --partition -- input.tar ...\n"
30847 "\n"
30848 msgstr ""
30849
30850 #. type: textblock
30851 #: ../tools/virt-make-fs.pl:541
30852 msgid ""
30853 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
30854 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
30855 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
30856 msgstr ""
30857
30858 #. type: verbatim
30859 #: ../tools/virt-make-fs.pl:558
30860 #, no-wrap
30861 msgid ""
30862 " export LIBGUESTFS_DEBUG=1\n"
30863 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
30864 "\n"
30865 msgstr ""
30866
30867 #. type: textblock
30868 #: ../tools/virt-make-fs.pl:561
30869 msgid ""
30870 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
30871 "redhat.com/>"
30872 msgstr ""
30873
30874 #. type: textblock
30875 #: ../tools/virt-list-partitions.pl:32
30876 msgid ""
30877 "virt-list-partitions - List partitions in a virtual machine or disk image"
30878 msgstr ""
30879
30880 #. type: verbatim
30881 #: ../tools/virt-list-partitions.pl:36
30882 #, no-wrap
30883 msgid ""
30884 " virt-list-partitions [--options] domname\n"
30885 "\n"
30886 msgstr ""
30887
30888 #. type: verbatim
30889 #: ../tools/virt-list-partitions.pl:38
30890 #, no-wrap
30891 msgid ""
30892 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
30893 "\n"
30894 msgstr ""
30895
30896 #. type: textblock
30897 #: ../tools/virt-list-partitions.pl:45
30898 msgid ""
30899 "C<virt-list-partitions> is a command line tool to list the partitions that "
30900 "are contained in a virtual machine or disk image.  It is mainly useful as a "
30901 "first step to using L<virt-resize(1)>."
30902 msgstr ""
30903
30904 #. type: textblock
30905 #: ../tools/virt-list-partitions.pl:50
30906 msgid ""
30907 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
30908 "functionality.  For more complex cases you should look at the L<guestfish(1)"
30909 "> tool."
30910 msgstr ""
30911
30912 #. type: =item
30913 #: ../tools/virt-list-partitions.pl:107
30914 msgid "B<-h> | B<--human-readable>"
30915 msgstr ""
30916
30917 #. type: textblock
30918 #: ../tools/virt-list-partitions.pl:109
30919 msgid "Show sizes in human-readable form (eg. \"1G\")."
30920 msgstr ""
30921
30922 #. type: textblock
30923 #: ../tools/virt-list-partitions.pl:117
30924 msgid ""
30925 "With this option, C<virt-list-partitions> displays the type and size of each "
30926 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
30927 msgstr ""
30928
30929 #. type: =item
30930 #: ../tools/virt-list-partitions.pl:124
30931 msgid "B<-t> | B<--total>"
30932 msgstr ""
30933
30934 #. type: textblock
30935 #: ../tools/virt-list-partitions.pl:126
30936 msgid ""
30937 "Display the total size of each block device (as a separate row or rows)."
30938 msgstr ""
30939
30940 #. type: textblock
30941 #: ../tools/virt-list-partitions.pl:259
30942 msgid ""
30943 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
30944 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
30945 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
30946 msgstr ""
30947
30948 #. type: textblock
30949 #: ../tools/virt-list-partitions.pl:275
30950 msgid "Copyright (C) 2009-2010 Red Hat Inc."
30951 msgstr ""