Version 1.11.17.
[libguestfs.git] / po-docs / ja.po
1 # SOME DESCRIPTIVE TITLE.
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4 #
5 #, fuzzy
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2011-07-14 14:07+0200\n"
11 "PO-Revision-Date: 2010-09-02 14:46+0100\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # type: =head1
20 #. type: =head1
21 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3
22 #: ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
23 #: ../tools/virt-win-reg.pl:35 ../tools/virt-list-filesystems.pl:30
24 #: ../tools/virt-tar.pl:31 ../tools/virt-make-fs.pl:35
25 #: ../tools/virt-list-partitions.pl:30
26 msgid "NAME"
27 msgstr "名前"
28
29 # type: textblock
30 #. type: textblock
31 #: ../src/guestfs.pod:5
32 msgid "guestfs - Library for accessing and modifying virtual machine images"
33 msgstr ""
34
35 # type: =head1
36 #. type: =head1
37 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7
38 #: ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
39 #: ../tools/virt-win-reg.pl:39 ../tools/virt-list-filesystems.pl:34
40 #: ../tools/virt-tar.pl:35 ../tools/virt-make-fs.pl:39
41 #: ../tools/virt-list-partitions.pl:34
42 msgid "SYNOPSIS"
43 msgstr ""
44
45 # type: verbatim
46 #. type: verbatim
47 #: ../src/guestfs.pod:9
48 #, no-wrap
49 msgid ""
50 " #include <guestfs.h>\n"
51 " \n"
52 msgstr ""
53
54 # type: verbatim
55 #. type: verbatim
56 #: ../src/guestfs.pod:11
57 #, no-wrap
58 msgid ""
59 " guestfs_h *g = guestfs_create ();\n"
60 " guestfs_add_drive (g, \"guest.img\");\n"
61 " guestfs_launch (g);\n"
62 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
63 " guestfs_touch (g, \"/hello\");\n"
64 " guestfs_umount (g, \"/\");\n"
65 " guestfs_close (g);\n"
66 "\n"
67 msgstr ""
68
69 # type: verbatim
70 #. type: verbatim
71 #: ../src/guestfs.pod:19
72 #, no-wrap
73 msgid ""
74 " cc prog.c -o prog -lguestfs\n"
75 "or:\n"
76 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
77 "\n"
78 msgstr ""
79
80 # type: =head1
81 #. type: =head1
82 #: ../src/guestfs.pod:23 ../fish/guestfish.pod:30
83 #: ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20
84 #: ../tools/virt-win-reg.pl:63 ../tools/virt-list-filesystems.pl:40
85 #: ../tools/virt-tar.pl:77 ../tools/virt-make-fs.pl:47
86 #: ../tools/virt-list-partitions.pl:40
87 msgid "DESCRIPTION"
88 msgstr ""
89
90 # type: textblock
91 #. type: textblock
92 #: ../src/guestfs.pod:25
93 msgid ""
94 "Libguestfs is a library for accessing and modifying guest disk images.  "
95 "Amongst the things this is good for: making batch configuration changes to "
96 "guests, getting disk used/free statistics (see also: virt-df), migrating "
97 "between virtualization systems (see also: virt-p2v), performing partial "
98 "backups, performing partial guest clones, cloning guests and changing "
99 "registry/UUID/hostname info, and much else besides."
100 msgstr ""
101
102 # type: textblock
103 #. type: textblock
104 #: ../src/guestfs.pod:33
105 msgid ""
106 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
107 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
108 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
109 "qcow2, vmdk."
110 msgstr ""
111
112 # type: textblock
113 #. type: textblock
114 #: ../src/guestfs.pod:38
115 msgid ""
116 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
117 "what filesystem is in each LV, etc.).  It can also run commands in the "
118 "context of the guest.  Also you can access filesystems over FUSE."
119 msgstr ""
120
121 # type: textblock
122 #. type: textblock
123 #: ../src/guestfs.pod:43
124 msgid ""
125 "Libguestfs is a library that can be linked with C and C++ management "
126 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
127 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
128 "line."
129 msgstr ""
130
131 # type: textblock
132 #. type: textblock
133 #: ../src/guestfs.pod:48
134 msgid ""
135 "You don't need to be root to use libguestfs, although obviously you do need "
136 "enough permissions to access the disk images."
137 msgstr ""
138
139 # type: textblock
140 #. type: textblock
141 #: ../src/guestfs.pod:51
142 msgid ""
143 "Libguestfs is a large API because it can do many things.  For a gentle "
144 "introduction, please read the L</API OVERVIEW> section next."
145 msgstr ""
146
147 # type: textblock
148 #. type: textblock
149 #: ../src/guestfs.pod:54
150 msgid ""
151 "There are also some example programs in the L<guestfs-examples(3)> manual "
152 "page."
153 msgstr ""
154
155 # type: =head1
156 #. type: =head1
157 #: ../src/guestfs.pod:57
158 msgid "API OVERVIEW"
159 msgstr ""
160
161 # type: textblock
162 #. type: textblock
163 #: ../src/guestfs.pod:59
164 msgid ""
165 "This section provides a gentler overview of the libguestfs API.  We also try "
166 "to group API calls together, where that may not be obvious from reading "
167 "about the individual calls in the main section of this manual."
168 msgstr ""
169
170 # type: =head2
171 #. type: =head2
172 #: ../src/guestfs.pod:64
173 msgid "HANDLES"
174 msgstr ""
175
176 # type: textblock
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 #. type: textblock
189 #: ../src/guestfs.pod:73
190 msgid "The general structure of all libguestfs-using programs looks like this:"
191 msgstr ""
192
193 # type: verbatim
194 #. type: verbatim
195 #: ../src/guestfs.pod:76
196 #, no-wrap
197 msgid ""
198 " guestfs_h *g = guestfs_create ();\n"
199 " \n"
200 msgstr ""
201
202 # type: verbatim
203 #. type: verbatim
204 #: ../src/guestfs.pod:78
205 #, no-wrap
206 msgid ""
207 " /* Call guestfs_add_drive additional times if there are\n"
208 "  * multiple disk images.\n"
209 "  */\n"
210 " guestfs_add_drive (g, \"guest.img\");\n"
211 " \n"
212 msgstr ""
213
214 # type: verbatim
215 #. type: verbatim
216 #: ../src/guestfs.pod:83
217 #, no-wrap
218 msgid ""
219 " /* Most manipulation calls won't work until you've launched\n"
220 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
221 "  * and _before_ other commands.\n"
222 "  */\n"
223 " guestfs_launch (g);\n"
224 " \n"
225 msgstr ""
226
227 # type: verbatim
228 #. type: verbatim
229 #: ../src/guestfs.pod:89
230 #, no-wrap
231 msgid ""
232 " /* Now you can examine what partitions, LVs etc are available.\n"
233 "  */\n"
234 " char **partitions = guestfs_list_partitions (g);\n"
235 " char **logvols = guestfs_lvs (g);\n"
236 " \n"
237 msgstr ""
238
239 # type: verbatim
240 #. type: verbatim
241 #: ../src/guestfs.pod:94
242 #, no-wrap
243 msgid ""
244 " /* To access a filesystem in the image, you must mount it.\n"
245 "  */\n"
246 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
247 " \n"
248 msgstr ""
249
250 #. type: verbatim
251 #: ../src/guestfs.pod:98
252 #, 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 msgstr ""
260
261 # type: verbatim
262 #. type: verbatim
263 #: ../src/guestfs.pod:103
264 #, no-wrap
265 msgid ""
266 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
267 "  * it is done automatically when you close the handle.  See\n"
268 "  * discussion of autosync in this page.\n"
269 "  */\n"
270 " guestfs_sync (g);\n"
271 " \n"
272 msgstr ""
273
274 # type: verbatim
275 #. type: verbatim
276 #: ../src/guestfs.pod:109
277 #, no-wrap
278 msgid ""
279 " /* Close the handle 'g'. */\n"
280 " guestfs_close (g);\n"
281 "\n"
282 msgstr ""
283
284 # type: textblock
285 #. type: textblock
286 #: ../src/guestfs.pod:112
287 msgid ""
288 "The code above doesn't include any error checking.  In real code you should "
289 "check return values carefully for errors.  In general all functions that "
290 "return integers return C<-1> on error, and all functions that return "
291 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
292 "how to handle errors, and consult the documentation for each function call "
293 "below to see precisely how they return error indications.  See L<guestfs-"
294 "examples(3)> for fully worked examples."
295 msgstr ""
296
297 # type: =head2
298 #. type: =head2
299 #: ../src/guestfs.pod:121
300 msgid "DISK IMAGES"
301 msgstr ""
302
303 # type: textblock
304 #. type: textblock
305 #: ../src/guestfs.pod:123
306 msgid ""
307 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
308 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
309 "actual block device, or simply an empty file of zeroes that you have created "
310 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
311 "of these."
312 msgstr ""
313
314 # type: textblock
315 #. type: textblock
316 #: ../src/guestfs.pod:129
317 msgid ""
318 "The call you should use in modern code for adding drives is L</"
319 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
320 "specifying that the format is raw, do:"
321 msgstr ""
322
323 # type: verbatim
324 #. type: verbatim
325 #: ../src/guestfs.pod:133
326 #, no-wrap
327 msgid ""
328 " guestfs_add_drive_opts (g, filename,\n"
329 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
330 "                         -1);\n"
331 "\n"
332 msgstr ""
333
334 # type: textblock
335 #. type: textblock
336 #: ../src/guestfs.pod:137
337 msgid "You can add a disk read-only using:"
338 msgstr ""
339
340 # type: verbatim
341 #. type: verbatim
342 #: ../src/guestfs.pod:139
343 #, no-wrap
344 msgid ""
345 " guestfs_add_drive_opts (g, filename,\n"
346 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
347 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
348 "                         -1);\n"
349 "\n"
350 msgstr ""
351
352 # type: textblock
353 #. type: textblock
354 #: ../src/guestfs.pod:144
355 msgid ""
356 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
357 "libguestfs won't modify the file."
358 msgstr ""
359
360 # type: textblock
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 #. type: textblock
371 #: ../src/guestfs.pod:151
372 msgid ""
373 "You must add at least one disk image, and you may add multiple disk images.  "
374 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
375 "first one you added), C</dev/sdb> (for the second one you added), etc."
376 msgstr ""
377
378 # type: textblock
379 #. type: textblock
380 #: ../src/guestfs.pod:156
381 msgid ""
382 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
383 "can call L</guestfs_list_devices> to get a list of the device names, in the "
384 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
385 msgstr ""
386
387 # type: =head2
388 #. type: =head2
389 #: ../src/guestfs.pod:161
390 msgid "MOUNTING"
391 msgstr ""
392
393 #. type: textblock
394 #: ../src/guestfs.pod:163
395 msgid ""
396 "Before you can read or write files, create directories and so on in a disk "
397 "image that contains filesystems, you have to mount those filesystems using "
398 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
399 "a disk image contains (for example) one partition with a filesystem on that "
400 "partition, then you can mount it directly:"
401 msgstr ""
402
403 #. type: verbatim
404 #: ../src/guestfs.pod:170
405 #, no-wrap
406 msgid ""
407 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
408 "\n"
409 msgstr ""
410
411 #. type: textblock
412 #: ../src/guestfs.pod:172
413 msgid ""
414 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
415 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
416 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
417 "that these are libguestfs virtual devices, and are nothing to do with host "
418 "devices."
419 msgstr ""
420
421 #. type: textblock
422 #: ../src/guestfs.pod:178
423 msgid ""
424 "If you are given a disk image and you don't know what it contains then you "
425 "have to find out.  Libguestfs can do that too: use L</"
426 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
427 "LVs, and either try mounting each to see what is mountable, or else examine "
428 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
429 "filesystems, use L</guestfs_list_filesystems>."
430 msgstr ""
431
432 #. type: textblock
433 #: ../src/guestfs.pod:186
434 msgid ""
435 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
436 "L</INSPECTION> below).  But you might find it easier to look at higher level "
437 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
438 msgstr ""
439
440 #. type: textblock
441 #: ../src/guestfs.pod:191
442 msgid ""
443 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
444 "several other variations of the C<guestfs_mount_*> call."
445 msgstr ""
446
447 # type: =head2
448 #. type: =head2
449 #: ../src/guestfs.pod:194
450 msgid "FILESYSTEM ACCESS AND MODIFICATION"
451 msgstr ""
452
453 # type: textblock
454 #. type: textblock
455 #: ../src/guestfs.pod:196
456 msgid ""
457 "The majority of the libguestfs API consists of fairly low-level calls for "
458 "accessing and modifying the files, directories, symlinks etc on mounted "
459 "filesystems.  There are over a hundred such calls which you can find listed "
460 "in detail below in this man page, and we don't even pretend to cover them "
461 "all in this overview."
462 msgstr ""
463
464 # type: textblock
465 #. type: textblock
466 #: ../src/guestfs.pod:202
467 msgid ""
468 "Specify filenames as full paths, starting with C<\"/\"> and including the "
469 "mount point."
470 msgstr ""
471
472 # type: textblock
473 #. type: textblock
474 #: ../src/guestfs.pod:205
475 msgid ""
476 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
477 "the file called C<\"etc/passwd\"> then you could do:"
478 msgstr ""
479
480 # type: verbatim
481 #. type: verbatim
482 #: ../src/guestfs.pod:208
483 #, no-wrap
484 msgid ""
485 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
486 "\n"
487 msgstr ""
488
489 # type: textblock
490 #. type: textblock
491 #: ../src/guestfs.pod:210
492 msgid ""
493 "This would return C<data> as a newly allocated buffer containing the full "
494 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
495 "or C<NULL> if there was an error."
496 msgstr ""
497
498 # type: textblock
499 #. type: textblock
500 #: ../src/guestfs.pod:214
501 msgid ""
502 "As another example, to create a top-level directory on that filesystem "
503 "called C<\"var\"> you would do:"
504 msgstr ""
505
506 # type: verbatim
507 #. type: verbatim
508 #: ../src/guestfs.pod:217
509 #, no-wrap
510 msgid ""
511 " guestfs_mkdir (g, \"/var\");\n"
512 "\n"
513 msgstr ""
514
515 # type: textblock
516 #. type: textblock
517 #: ../src/guestfs.pod:219
518 msgid "To create a symlink you could do:"
519 msgstr ""
520
521 # type: verbatim
522 #. type: verbatim
523 #: ../src/guestfs.pod:221
524 #, no-wrap
525 msgid ""
526 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
527 "               \"/etc/rc3.d/S30portmap\");\n"
528 "\n"
529 msgstr ""
530
531 # type: textblock
532 #. type: textblock
533 #: ../src/guestfs.pod:224
534 msgid ""
535 "Libguestfs will reject attempts to use relative paths and there is no "
536 "concept of a current working directory."
537 msgstr ""
538
539 # type: textblock
540 #. type: textblock
541 #: ../src/guestfs.pod:227
542 msgid ""
543 "Libguestfs can return errors in many situations: for example if the "
544 "filesystem isn't writable, or if a file or directory that you requested "
545 "doesn't exist.  If you are using the C API (documented here)  you have to "
546 "check for those error conditions after each call.  (Other language bindings "
547 "turn these errors into exceptions)."
548 msgstr ""
549
550 # type: textblock
551 #. type: textblock
552 #: ../src/guestfs.pod:233
553 msgid ""
554 "File writes are affected by the per-handle umask, set by calling L</"
555 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
556 msgstr ""
557
558 # type: =head2
559 #. type: =head2
560 #: ../src/guestfs.pod:236
561 msgid "PARTITIONING"
562 msgstr ""
563
564 # type: textblock
565 #. type: textblock
566 #: ../src/guestfs.pod:238
567 msgid ""
568 "Libguestfs contains API calls to read, create and modify partition tables on "
569 "disk images."
570 msgstr ""
571
572 # type: textblock
573 #. type: textblock
574 #: ../src/guestfs.pod:241
575 msgid ""
576 "In the common case where you want to create a single partition covering the "
577 "whole disk, you should use the L</guestfs_part_disk> call:"
578 msgstr ""
579
580 # type: verbatim
581 #. type: verbatim
582 #: ../src/guestfs.pod:245
583 #, no-wrap
584 msgid ""
585 " const char *parttype = \"mbr\";\n"
586 " if (disk_is_larger_than_2TB)\n"
587 "   parttype = \"gpt\";\n"
588 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
589 "\n"
590 msgstr ""
591
592 # type: textblock
593 #. type: textblock
594 #: ../src/guestfs.pod:250
595 msgid ""
596 "Obviously this effectively wipes anything that was on that disk image before."
597 msgstr ""
598
599 # type: =head2
600 #. type: =head2
601 #: ../src/guestfs.pod:253
602 msgid "LVM2"
603 msgstr ""
604
605 # type: textblock
606 #. type: textblock
607 #: ../src/guestfs.pod:255
608 msgid ""
609 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
610 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
611 "you familiarize yourself with the concepts of physical volumes, volume "
612 "groups and logical volumes."
613 msgstr ""
614
615 # type: textblock
616 #. type: textblock
617 #: ../src/guestfs.pod:260
618 msgid ""
619 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
620 "tldp.org/HOWTO/LVM-HOWTO/>."
621 msgstr ""
622
623 # type: =head2
624 #. type: =head2
625 #: ../src/guestfs.pod:263
626 msgid "DOWNLOADING"
627 msgstr ""
628
629 #. type: textblock
630 #: ../src/guestfs.pod:265
631 msgid ""
632 "Use L</guestfs_cat> to download small, text only files.  This call is "
633 "limited to files which are less than 2 MB and which cannot contain any ASCII "
634 "NUL (C<\\0>) characters.  However the API is very simple to use."
635 msgstr ""
636
637 # type: textblock
638 #. type: textblock
639 #: ../src/guestfs.pod:269
640 msgid ""
641 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
642 "bit data, since it returns a (pointer, size) pair.  However it is still "
643 "limited to \"small\" files, less than 2 MB."
644 msgstr ""
645
646 # type: textblock
647 #. type: textblock
648 #: ../src/guestfs.pod:273
649 msgid ""
650 "L</guestfs_download> can be used to download any file, with no limits on "
651 "content or size (even files larger than 4 GB)."
652 msgstr ""
653
654 # type: textblock
655 #. type: textblock
656 #: ../src/guestfs.pod:276
657 msgid ""
658 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
659 msgstr ""
660
661 # type: =head2
662 #. type: =head2
663 #: ../src/guestfs.pod:279
664 msgid "UPLOADING"
665 msgstr ""
666
667 # type: textblock
668 #. type: textblock
669 #: ../src/guestfs.pod:281
670 msgid ""
671 "It's often the case that you want to write a file or files to the disk image."
672 msgstr ""
673
674 # type: textblock
675 #. type: textblock
676 #: ../src/guestfs.pod:284
677 msgid ""
678 "To write a small file with fixed content, use L</guestfs_write>.  To create "
679 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
680 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
681 "of other functions for creating test files, for example L</guestfs_fill> and "
682 "L</guestfs_fill_pattern>."
683 msgstr ""
684
685 # type: textblock
686 #. type: textblock
687 #: ../src/guestfs.pod:290
688 msgid ""
689 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
690 "file content or size (even files larger than 4 GB)."
691 msgstr ""
692
693 # type: textblock
694 #. type: textblock
695 #: ../src/guestfs.pod:293
696 msgid ""
697 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
698 msgstr ""
699
700 # type: textblock
701 #. type: textblock
702 #: ../src/guestfs.pod:295
703 msgid ""
704 "However the fastest way to upload I<large numbers of arbitrary files> is to "
705 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
706 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
707 "in a predictable way (eg. adding it last after all other drives) then you "
708 "can get the device name from L</guestfs_list_devices> and mount it directly "
709 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
710 "portable between kernel versions, and they don't support labels or UUIDs.  "
711 "If you want to pre-build an image or you need to mount it using a label or "
712 "UUID, use an ISO image instead."
713 msgstr ""
714
715 # type: =head2
716 #. type: =head2
717 #: ../src/guestfs.pod:306
718 msgid "COPYING"
719 msgstr ""
720
721 # type: textblock
722 #. type: textblock
723 #: ../src/guestfs.pod:308
724 msgid ""
725 "There are various different commands for copying between files and devices "
726 "and in and out of the guest filesystem.  These are summarised in the table "
727 "below."
728 msgstr ""
729
730 # type: =item
731 #. type: =item
732 #: ../src/guestfs.pod:314
733 msgid "B<file> to B<file>"
734 msgstr ""
735
736 # type: textblock
737 #. type: textblock
738 #: ../src/guestfs.pod:316
739 msgid ""
740 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
741 "directories recursively."
742 msgstr ""
743
744 # type: =item
745 #. type: =item
746 #: ../src/guestfs.pod:319
747 msgid "B<file or device> to B<file or device>"
748 msgstr ""
749
750 # type: textblock
751 #. type: textblock
752 #: ../src/guestfs.pod:321
753 msgid ""
754 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
755 "devices in the guest."
756 msgstr ""
757
758 # type: textblock
759 #. type: textblock
760 #: ../src/guestfs.pod:324
761 msgid "Example: duplicate the contents of an LV:"
762 msgstr ""
763
764 # type: verbatim
765 #. type: verbatim
766 #: ../src/guestfs.pod:326
767 #, no-wrap
768 msgid ""
769 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
770 "\n"
771 msgstr ""
772
773 # type: textblock
774 #. type: textblock
775 #: ../src/guestfs.pod:328
776 msgid ""
777 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
778 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
779 "guestfs_copy_size>."
780 msgstr ""
781
782 # type: =item
783 #. type: =item
784 #: ../src/guestfs.pod:332
785 msgid "B<file on the host> to B<file or device>"
786 msgstr ""
787
788 # type: textblock
789 #. type: textblock
790 #: ../src/guestfs.pod:334
791 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
792 msgstr ""
793
794 # type: =item
795 #. type: =item
796 #: ../src/guestfs.pod:336
797 msgid "B<file or device> to B<file on the host>"
798 msgstr ""
799
800 # type: textblock
801 #. type: textblock
802 #: ../src/guestfs.pod:338
803 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
804 msgstr ""
805
806 # type: =head2
807 #. type: =head2
808 #: ../src/guestfs.pod:342
809 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
810 msgstr ""
811
812 # type: textblock
813 #. type: textblock
814 #: ../src/guestfs.pod:344
815 msgid ""
816 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
817 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
818 "appears you can only upload and download to files.  However many Un*x-like "
819 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
820 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
821 "and arbitrary file descriptor N."
822 msgstr ""
823
824 # type: textblock
825 #. type: textblock
826 #: ../src/guestfs.pod:352
827 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
828 msgstr ""
829
830 #. type: verbatim
831 #: ../src/guestfs.pod:355
832 #, no-wrap
833 msgid ""
834 " guestfs_download (g, filename, \"/dev/stdout\");\n"
835 "\n"
836 msgstr ""
837
838 #. type: textblock
839 #: ../src/guestfs.pod:357
840 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
841 msgstr ""
842
843 #. type: verbatim
844 #: ../src/guestfs.pod:359
845 #, no-wrap
846 msgid ""
847 " char devfd[64];\n"
848 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
849 " guestfs_tar_out (g, \"/\", devfd);\n"
850 "\n"
851 msgstr ""
852
853 # type: =head2
854 #. type: =head2
855 #: ../src/guestfs.pod:363
856 msgid "LISTING FILES"
857 msgstr ""
858
859 # type: textblock
860 #. type: textblock
861 #: ../src/guestfs.pod:365
862 msgid ""
863 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
864 "L<guestfish(1)>-equivalent command C<ll>)."
865 msgstr ""
866
867 # type: textblock
868 #. type: textblock
869 #: ../src/guestfs.pod:368
870 msgid ""
871 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
872 "programs, as a flat list of strings."
873 msgstr ""
874
875 # type: textblock
876 #. type: textblock
877 #: ../src/guestfs.pod:371
878 msgid ""
879 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
880 "directory, plus additional information about each one.  It is more "
881 "equivalent to using the L<readdir(3)> call on a local filesystem."
882 msgstr ""
883
884 # type: textblock
885 #. type: textblock
886 #: ../src/guestfs.pod:375
887 msgid ""
888 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
889 msgstr ""
890
891 # type: =head2
892 #. type: =head2
893 #: ../src/guestfs.pod:378
894 msgid "RUNNING COMMANDS"
895 msgstr ""
896
897 # type: textblock
898 #. type: textblock
899 #: ../src/guestfs.pod:380
900 msgid ""
901 "Although libguestfs is primarily an API for manipulating files inside guest "
902 "images, we also provide some limited facilities for running commands inside "
903 "guests."
904 msgstr ""
905
906 # type: textblock
907 #. type: textblock
908 #: ../src/guestfs.pod:384
909 msgid "There are many limitations to this:"
910 msgstr ""
911
912 # type: =item
913 #. type: =item
914 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
915 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
916 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1064
917 #: ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077
918 #: ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112
919 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142
920 #: ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154
921 #: ../src/guestfs.pod:1643 ../src/guestfs.pod:1648 ../src/guestfs.pod:1652
922 #: ../src/guestfs.pod:1754 ../src/guestfs.pod:1759 ../src/guestfs.pod:1763
923 #: ../src/guestfs.pod:1773 ../src/guestfs.pod:2008 ../src/guestfs.pod:2013
924 #: ../src/guestfs.pod:2019 ../src/guestfs.pod:2027 ../src/guestfs.pod:2381
925 #: ../src/guestfs.pod:2387 ../src/guestfs.pod:2392 ../src/guestfs.pod:2398
926 #: ../src/guestfs.pod:2972 ../src/guestfs.pod:2976 ../src/guestfs.pod:2980
927 #: ../src/guestfs.pod:2984 ../src/guestfs-actions.pod:15
928 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:583
929 #: ../src/guestfs-actions.pod:591 ../src/guestfs-actions.pod:598
930 #: ../src/guestfs-actions.pod:605 ../src/guestfs-actions.pod:1660
931 #: ../src/guestfs-actions.pod:1664 ../src/guestfs-actions.pod:1668
932 #: ../src/guestfs-actions.pod:1672 ../src/guestfs-actions.pod:1680
933 #: ../src/guestfs-actions.pod:1684 ../src/guestfs-actions.pod:1688
934 #: ../src/guestfs-actions.pod:1698 ../src/guestfs-actions.pod:1702
935 #: ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:1844
936 #: ../src/guestfs-actions.pod:1848 ../src/guestfs-actions.pod:1853
937 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1919
938 #: ../src/guestfs-actions.pod:1923 ../src/guestfs-actions.pod:1928
939 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:2852
940 #: ../src/guestfs-actions.pod:2860 ../src/guestfs-actions.pod:2867
941 #: ../src/guestfs-actions.pod:2874 ../fish/guestfish.pod:445
942 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
943 #: ../fish/guestfish.pod:457 ../fish/guestfish-actions.pod:13
944 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:385
945 #: ../fish/guestfish-actions.pod:393 ../fish/guestfish-actions.pod:400
946 #: ../fish/guestfish-actions.pod:407 ../fish/guestfish-actions.pod:1099
947 #: ../fish/guestfish-actions.pod:1103 ../fish/guestfish-actions.pod:1107
948 #: ../fish/guestfish-actions.pod:1111 ../fish/guestfish-actions.pod:1119
949 #: ../fish/guestfish-actions.pod:1123 ../fish/guestfish-actions.pod:1127
950 #: ../fish/guestfish-actions.pod:1137 ../fish/guestfish-actions.pod:1141
951 #: ../fish/guestfish-actions.pod:1145 ../fish/guestfish-actions.pod:1235
952 #: ../fish/guestfish-actions.pod:1239 ../fish/guestfish-actions.pod:1244
953 #: ../fish/guestfish-actions.pod:1249 ../fish/guestfish-actions.pod:1291
954 #: ../fish/guestfish-actions.pod:1295 ../fish/guestfish-actions.pod:1300
955 #: ../fish/guestfish-actions.pod:1927 ../fish/guestfish-actions.pod:1933
956 #: ../fish/guestfish-actions.pod:1941 ../fish/guestfish-actions.pod:1948
957 #: ../fish/guestfish-actions.pod:1955 ../tools/virt-win-reg.pl:195
958 #: ../tools/virt-win-reg.pl:200 ../tools/virt-win-reg.pl:206
959 #: ../tools/virt-win-reg.pl:708 ../tools/virt-win-reg.pl:714
960 #: ../tools/virt-win-reg.pl:720
961 msgid "*"
962 msgstr ""
963
964 # type: textblock
965 #. type: textblock
966 #: ../src/guestfs.pod:390
967 msgid ""
968 "The kernel version that the command runs under will be different from what "
969 "it expects."
970 msgstr ""
971
972 # type: textblock
973 #. type: textblock
974 #: ../src/guestfs.pod:395
975 msgid ""
976 "If the command needs to communicate with daemons, then most likely they "
977 "won't be running."
978 msgstr ""
979
980 # type: textblock
981 #. type: textblock
982 #: ../src/guestfs.pod:400
983 msgid "The command will be running in limited memory."
984 msgstr ""
985
986 # type: textblock
987 #. type: textblock
988 #: ../src/guestfs.pod:404
989 msgid ""
990 "The network may not be available unless you enable it (see L</"
991 "guestfs_set_network>)."
992 msgstr ""
993
994 # type: textblock
995 #. type: textblock
996 #: ../src/guestfs.pod:409
997 msgid "Only supports Linux guests (not Windows, BSD, etc)."
998 msgstr ""
999
1000 # type: textblock
1001 #. type: textblock
1002 #: ../src/guestfs.pod:413
1003 msgid ""
1004 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
1005 msgstr ""
1006
1007 # type: textblock
1008 #. type: textblock
1009 #: ../src/guestfs.pod:418
1010 msgid ""
1011 "For SELinux guests, you may need to enable SELinux and load policy first.  "
1012 "See L</SELINUX> in this manpage."
1013 msgstr ""
1014
1015 # type: textblock
1016 #. type: textblock
1017 #: ../src/guestfs.pod:423
1018 msgid ""
1019 "I<Security:> It is not safe to run commands from untrusted, possibly "
1020 "malicious guests.  These commands may attempt to exploit your program by "
1021 "sending unexpected output.  They could also try to exploit the Linux kernel "
1022 "or qemu provided by the libguestfs appliance.  They could use the network "
1023 "provided by the libguestfs appliance to bypass ordinary network partitions "
1024 "and firewalls.  They could use the elevated privileges or different SELinux "
1025 "context of your program to their advantage."
1026 msgstr ""
1027
1028 # type: textblock
1029 #. type: textblock
1030 #: ../src/guestfs.pod:432
1031 msgid ""
1032 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
1033 "(a script which runs when the guest next boots normally), and to have this "
1034 "script run the commands you want in the normal context of the running guest, "
1035 "network security and so on.  For information about other security issues, "
1036 "see L</SECURITY>."
1037 msgstr ""
1038
1039 # type: textblock
1040 #. type: textblock
1041 #: ../src/guestfs.pod:440
1042 msgid ""
1043 "The two main API calls to run commands are L</guestfs_command> and L</"
1044 "guestfs_sh> (there are also variations)."
1045 msgstr ""
1046
1047 # type: textblock
1048 #. type: textblock
1049 #: ../src/guestfs.pod:443
1050 msgid ""
1051 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
1052 "shell globs, redirections, etc will work."
1053 msgstr ""
1054
1055 # type: =head2
1056 #. type: =head2
1057 #: ../src/guestfs.pod:446
1058 msgid "CONFIGURATION FILES"
1059 msgstr ""
1060
1061 # type: textblock
1062 #. type: textblock
1063 #: ../src/guestfs.pod:448
1064 msgid ""
1065 "To read and write configuration files in Linux guest filesystems, we "
1066 "strongly recommend using Augeas.  For example, Augeas understands how to "
1067 "read and write, say, a Linux shadow password file or X.org configuration "
1068 "file, and so avoids you having to write that code."
1069 msgstr ""
1070
1071 # type: textblock
1072 #. type: textblock
1073 #: ../src/guestfs.pod:453
1074 msgid ""
1075 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
1076 "document Augeas itself here because there is excellent documentation on the "
1077 "L<http://augeas.net/> website."
1078 msgstr ""
1079
1080 # type: textblock
1081 #. type: textblock
1082 #: ../src/guestfs.pod:457
1083 msgid ""
1084 "If you don't want to use Augeas (you fool!) then try calling L</"
1085 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
1086 "over."
1087 msgstr ""
1088
1089 # type: =head2
1090 #. type: =head2
1091 #: ../src/guestfs.pod:461
1092 msgid "SELINUX"
1093 msgstr ""
1094
1095 # type: textblock
1096 #. type: textblock
1097 #: ../src/guestfs.pod:463
1098 msgid ""
1099 "We support SELinux guests.  To ensure that labeling happens correctly in "
1100 "SELinux guests, you need to enable SELinux and load the guest's policy:"
1101 msgstr ""
1102
1103 # type: =item
1104 #. type: =item
1105 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1257 ../src/guestfs.pod:1395
1106 #: ../src/guestfs.pod:2426
1107 msgid "1."
1108 msgstr ""
1109
1110 # type: textblock
1111 #. type: textblock
1112 #: ../src/guestfs.pod:471
1113 msgid "Before launching, do:"
1114 msgstr ""
1115
1116 # type: verbatim
1117 #. type: verbatim
1118 #: ../src/guestfs.pod:473
1119 #, no-wrap
1120 msgid ""
1121 " guestfs_set_selinux (g, 1);\n"
1122 "\n"
1123 msgstr ""
1124
1125 # type: =item
1126 #. type: =item
1127 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1261 ../src/guestfs.pod:1399
1128 #: ../src/guestfs.pod:2451
1129 msgid "2."
1130 msgstr ""
1131
1132 # type: textblock
1133 #. type: textblock
1134 #: ../src/guestfs.pod:477
1135 msgid ""
1136 "After mounting the guest's filesystem(s), load the policy.  This is best "
1137 "done by running the L<load_policy(8)> command in the guest itself:"
1138 msgstr ""
1139
1140 # type: verbatim
1141 #. type: verbatim
1142 #: ../src/guestfs.pod:481
1143 #, no-wrap
1144 msgid ""
1145 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
1146 "\n"
1147 msgstr ""
1148
1149 # type: textblock
1150 #. type: textblock
1151 #: ../src/guestfs.pod:483
1152 msgid ""
1153 "(Older versions of C<load_policy> require you to specify the name of the "
1154 "policy file)."
1155 msgstr ""
1156
1157 # type: =item
1158 #. type: =item
1159 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1405
1160 msgid "3."
1161 msgstr ""
1162
1163 # type: textblock
1164 #. type: textblock
1165 #: ../src/guestfs.pod:488
1166 msgid ""
1167 "Optionally, set the security context for the API.  The correct security "
1168 "context to use can only be known by inspecting the guest.  As an example:"
1169 msgstr ""
1170
1171 # type: verbatim
1172 #. type: verbatim
1173 #: ../src/guestfs.pod:492
1174 #, no-wrap
1175 msgid ""
1176 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1177 "\n"
1178 msgstr ""
1179
1180 # type: textblock
1181 #. type: textblock
1182 #: ../src/guestfs.pod:496
1183 msgid "This will work for running commands and editing existing files."
1184 msgstr ""
1185
1186 # type: textblock
1187 #. type: textblock
1188 #: ../src/guestfs.pod:498
1189 msgid ""
1190 "When new files are created, you may need to label them explicitly, for "
1191 "example by running the external command C<restorecon pathname>."
1192 msgstr ""
1193
1194 # type: =head2
1195 #. type: =head2
1196 #: ../src/guestfs.pod:502
1197 msgid "UMASK"
1198 msgstr ""
1199
1200 # type: textblock
1201 #. type: textblock
1202 #: ../src/guestfs.pod:504
1203 msgid ""
1204 "Certain calls are affected by the current file mode creation mask (the "
1205 "\"umask\").  In particular ones which create files or directories, such as "
1206 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1207 "either the default mode that the file is created with or modifies the mode "
1208 "that you supply."
1209 msgstr ""
1210
1211 # type: textblock
1212 #. type: textblock
1213 #: ../src/guestfs.pod:510
1214 msgid ""
1215 "The default umask is C<022>, so files are created with modes such as C<0644> "
1216 "and directories with C<0755>."
1217 msgstr ""
1218
1219 # type: textblock
1220 #. type: textblock
1221 #: ../src/guestfs.pod:513
1222 msgid ""
1223 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1224 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1225 "guestfs_chmod> after creating each file or directory."
1226 msgstr ""
1227
1228 # type: textblock
1229 #. type: textblock
1230 #: ../src/guestfs.pod:517
1231 msgid "For more information about umask, see L<umask(2)>."
1232 msgstr ""
1233
1234 # type: =head1
1235 #. type: =head1
1236 #: ../src/guestfs.pod:519 ../fish/guestfish.pod:767
1237 msgid "ENCRYPTED DISKS"
1238 msgstr ""
1239
1240 # type: textblock
1241 #. type: textblock
1242 #: ../src/guestfs.pod:521
1243 msgid ""
1244 "Libguestfs allows you to access Linux guests which have been encrypted using "
1245 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1246 "standard.  This includes nearly all whole disk encryption systems used by "
1247 "modern Linux guests."
1248 msgstr ""
1249
1250 # type: textblock
1251 #. type: textblock
1252 #: ../src/guestfs.pod:527
1253 msgid ""
1254 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1255 "returns the string C<crypto_LUKS>)."
1256 msgstr ""
1257
1258 # type: textblock
1259 #. type: textblock
1260 #: ../src/guestfs.pod:530
1261 msgid ""
1262 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1263 "will require the passphrase!"
1264 msgstr ""
1265
1266 # type: textblock
1267 #. type: textblock
1268 #: ../src/guestfs.pod:533
1269 msgid ""
1270 "Opening a LUKS device creates a new device mapper device called C</dev/"
1271 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1272 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1273 "from and encrypted to the underlying block device respectively."
1274 msgstr ""
1275
1276 # type: textblock
1277 #. type: textblock
1278 #: ../src/guestfs.pod:539
1279 msgid ""
1280 "LVM volume groups on the device can be made visible by calling L</"
1281 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1282 "(s) can now be mounted in the usual way."
1283 msgstr ""
1284
1285 # type: textblock
1286 #. type: textblock
1287 #: ../src/guestfs.pod:543
1288 msgid ""
1289 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1290 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1291 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1292 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1293 "underlying encrypted block device)."
1294 msgstr ""
1295
1296 # type: =head2
1297 #. type: =head2
1298 #: ../src/guestfs.pod:550
1299 msgid "INSPECTION"
1300 msgstr ""
1301
1302 #. type: textblock
1303 #: ../src/guestfs.pod:552
1304 msgid ""
1305 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1306 "contains operating systems, an install CD or a live CD.  (These APIs used to "
1307 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
1308 "version 1.5.3 the most frequently used part of this library has been "
1309 "rewritten in C and moved into the core code)."
1310 msgstr ""
1311
1312 # type: textblock
1313 #. type: textblock
1314 #: ../src/guestfs.pod:559
1315 msgid ""
1316 "Add all disks belonging to the unknown virtual machine and call L</"
1317 "guestfs_launch> in the usual way."
1318 msgstr ""
1319
1320 # type: textblock
1321 #. type: textblock
1322 #: ../src/guestfs.pod:562
1323 msgid ""
1324 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1325 "and certain heuristics, and returns a list of operating systems that were "
1326 "found.  An empty list means none were found.  A single element is the root "
1327 "filesystem of the operating system.  For dual- or multi-boot guests, "
1328 "multiple roots can be returned, each one corresponding to a separate "
1329 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1330 "world of virtualization, but since this scenario can happen, we have built "
1331 "libguestfs to deal with it.)"
1332 msgstr ""
1333
1334 # type: textblock
1335 #. type: textblock
1336 #: ../src/guestfs.pod:571
1337 msgid ""
1338 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1339 "to get additional details about that operating system.  For example, call L</"
1340 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1341 "Windows and Linux-based operating systems respectively."
1342 msgstr ""
1343
1344 # type: textblock
1345 #. type: textblock
1346 #: ../src/guestfs.pod:577
1347 msgid ""
1348 "Un*x-like and Linux-based operating systems usually consist of several "
1349 "filesystems which are mounted at boot time (for example, a separate boot "
1350 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1351 "filesystems correspond to mount points.  Call "
1352 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1353 "hash table like this example:"
1354 msgstr ""
1355
1356 # type: verbatim
1357 #. type: verbatim
1358 #: ../src/guestfs.pod:584
1359 #, no-wrap
1360 msgid ""
1361 " /boot => /dev/sda1\n"
1362 " /     => /dev/vg_guest/lv_root\n"
1363 " /usr  => /dev/vg_guest/lv_usr\n"
1364 "\n"
1365 msgstr ""
1366
1367 # type: textblock
1368 #. type: textblock
1369 #: ../src/guestfs.pod:588
1370 msgid ""
1371 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1372 "filesystems as suggested."
1373 msgstr ""
1374
1375 # type: textblock
1376 #. type: textblock
1377 #: ../src/guestfs.pod:591
1378 msgid ""
1379 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1380 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1381 msgstr ""
1382
1383 # type: textblock
1384 #. type: textblock
1385 #: ../src/guestfs.pod:595
1386 msgid ""
1387 "Inspection currently only works for some common operating systems.  "
1388 "Contributors are welcome to send patches for other operating systems that we "
1389 "currently cannot detect."
1390 msgstr ""
1391
1392 # type: textblock
1393 #. type: textblock
1394 #: ../src/guestfs.pod:599
1395 msgid ""
1396 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1397 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1398 "encrypted devices."
1399 msgstr ""
1400
1401 # type: textblock
1402 #. type: textblock
1403 #: ../src/guestfs.pod:603
1404 msgid ""
1405 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1406 "inspection and caches the results in the guest handle.  Subsequent calls to "
1407 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1408 "read the disks.  If you change the content of the guest disks, you can redo "
1409 "inspection by calling L</guestfs_inspect_os> again.  (L</"
1410 "guestfs_inspect_list_applications> works a little differently from the other "
1411 "calls and does read the disks.  See documentation for that function for "
1412 "details)."
1413 msgstr ""
1414
1415 #. type: =head3
1416 #: ../src/guestfs.pod:612
1417 msgid "INSPECTING INSTALL DISKS"
1418 msgstr ""
1419
1420 #. type: textblock
1421 #: ../src/guestfs.pod:614
1422 msgid ""
1423 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
1424 "CDs and more."
1425 msgstr ""
1426
1427 #. type: textblock
1428 #: ../src/guestfs.pod:617
1429 msgid ""
1430 "Call L</guestfs_inspect_get_format> to return the format of the operating "
1431 "system, which currently can be C<installed> (a regular operating system) or "
1432 "C<installer> (some sort of install disk)."
1433 msgstr ""
1434
1435 #. type: textblock
1436 #: ../src/guestfs.pod:621
1437 msgid ""
1438 "Further information is available about the operating system that can be "
1439 "installed using the regular inspection APIs like L</"
1440 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
1441 msgstr ""
1442
1443 #. type: textblock
1444 #: ../src/guestfs.pod:626
1445 msgid ""
1446 "Some additional information specific to installer disks is also available "
1447 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
1448 "guestfs_inspect_is_multipart> calls."
1449 msgstr ""
1450
1451 # type: =head2
1452 #. type: =head2
1453 #: ../src/guestfs.pod:631
1454 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1455 msgstr ""
1456
1457 # type: textblock
1458 #. type: textblock
1459 #: ../src/guestfs.pod:633
1460 msgid ""
1461 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1462 "ntfs-3g.org/> driver."
1463 msgstr ""
1464
1465 # type: =head3
1466 #. type: =head3
1467 #: ../src/guestfs.pod:636
1468 msgid "DRIVE LETTERS AND PATHS"
1469 msgstr ""
1470
1471 # type: textblock
1472 #. type: textblock
1473 #: ../src/guestfs.pod:638
1474 msgid ""
1475 "DOS and Windows still use drive letters, and the filesystems are always "
1476 "treated as case insensitive by Windows itself, and therefore you might find "
1477 "a Windows configuration file referring to a path like C<c:\\windows"
1478 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1479 "might be referred to as C</WINDOWS/System32>."
1480 msgstr ""
1481
1482 #. type: textblock
1483 #: ../src/guestfs.pod:644
1484 msgid ""
1485 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
1486 "L</guestfs_inspect_get_drive_mappings>)"
1487 msgstr ""
1488
1489 #. type: textblock
1490 #: ../src/guestfs.pod:647
1491 msgid ""
1492 "Dealing with separator characters (backslash vs forward slash) is outside "
1493 "the scope of libguestfs, but usually a simple character replacement will "
1494 "work."
1495 msgstr ""
1496
1497 #. type: textblock
1498 #: ../src/guestfs.pod:651
1499 msgid ""
1500 "To resolve the case insensitivity of paths, call L</"
1501 "guestfs_case_sensitive_path>."
1502 msgstr ""
1503
1504 # type: =head3
1505 #. type: =head3
1506 #: ../src/guestfs.pod:654
1507 msgid "ACCESSING THE WINDOWS REGISTRY"
1508 msgstr ""
1509
1510 # type: textblock
1511 #. type: textblock
1512 #: ../src/guestfs.pod:656
1513 msgid ""
1514 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1515 "files, through the library C<hivex> which is part of the libguestfs project "
1516 "although ships as a separate tarball.  You have to locate and download the "
1517 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1518 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1519 "reg(1)> for more help on this issue."
1520 msgstr ""
1521
1522 # type: =head3
1523 #. type: =head3
1524 #: ../src/guestfs.pod:664
1525 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
1526 msgstr ""
1527
1528 # type: textblock
1529 #. type: textblock
1530 #: ../src/guestfs.pod:666
1531 msgid ""
1532 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
1533 "provide something which looks like a Linux symlink.  The way it tries to do "
1534 "the rewriting is described here:"
1535 msgstr ""
1536
1537 # type: textblock
1538 #. type: textblock
1539 #: ../src/guestfs.pod:670
1540 msgid ""
1541 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1542 "symbolic-links/>"
1543 msgstr ""
1544
1545 # type: textblock
1546 #. type: textblock
1547 #: ../src/guestfs.pod:672
1548 msgid ""
1549 "The essential problem is that ntfs-3g simply does not have enough "
1550 "information to do a correct job.  NTFS links can contain drive letters and "
1551 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
1552 "It is almost certainly the case that libguestfs callers should ignore what "
1553 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
1554 msgstr ""
1555
1556 # type: textblock
1557 #. type: textblock
1558 #: ../src/guestfs.pod:679
1559 msgid ""
1560 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
1561 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
1562 "attribute, and read the raw reparse data from that (you can find the format "
1563 "documented in various places around the web)."
1564 msgstr ""
1565
1566 # type: =head3
1567 #. type: =head3
1568 #: ../src/guestfs.pod:684
1569 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
1570 msgstr ""
1571
1572 # type: textblock
1573 #. type: textblock
1574 #: ../src/guestfs.pod:686
1575 msgid ""
1576 "There are other useful extended attributes that can be read from ntfs-3g "
1577 "filesystems (using L</guestfs_getxattr>).  See:"
1578 msgstr ""
1579
1580 # type: textblock
1581 #. type: textblock
1582 #: ../src/guestfs.pod:689
1583 msgid ""
1584 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1585 msgstr ""
1586
1587 # type: =head2
1588 #. type: =head2
1589 #: ../src/guestfs.pod:691
1590 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1591 msgstr ""
1592
1593 # type: textblock
1594 #. type: textblock
1595 #: ../src/guestfs.pod:693
1596 msgid ""
1597 "Although we don't want to discourage you from using the C API, we will "
1598 "mention here that the same API is also available in other languages."
1599 msgstr ""
1600
1601 #. type: textblock
1602 #: ../src/guestfs.pod:696
1603 msgid ""
1604 "The API is broadly identical in all supported languages.  This means that "
1605 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
1606 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
1607 "OCaml.  In other words, a straightforward, predictable isomorphism between "
1608 "each language."
1609 msgstr ""
1610
1611 # type: textblock
1612 #. type: textblock
1613 #: ../src/guestfs.pod:702
1614 msgid ""
1615 "Error messages are automatically transformed into exceptions if the language "
1616 "supports it."
1617 msgstr ""
1618
1619 # type: textblock
1620 #. type: textblock
1621 #: ../src/guestfs.pod:705
1622 msgid ""
1623 "We don't try to \"object orientify\" parts of the API in OO languages, "
1624 "although contributors are welcome to write higher level APIs above what we "
1625 "provide in their favourite languages if they wish."
1626 msgstr ""
1627
1628 # type: =item
1629 #. type: =item
1630 #: ../src/guestfs.pod:711
1631 msgid "B<C++>"
1632 msgstr ""
1633
1634 # type: textblock
1635 #. type: textblock
1636 #: ../src/guestfs.pod:713
1637 msgid ""
1638 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1639 "identical to the C API.  C++ classes and exceptions are not used."
1640 msgstr ""
1641
1642 # type: =item
1643 #. type: =item
1644 #: ../src/guestfs.pod:717
1645 msgid "B<C#>"
1646 msgstr ""
1647
1648 # type: textblock
1649 #. type: textblock
1650 #: ../src/guestfs.pod:719
1651 msgid ""
1652 "The C# bindings are highly experimental.  Please read the warnings at the "
1653 "top of C<csharp/Libguestfs.cs>."
1654 msgstr ""
1655
1656 # type: =item
1657 #. type: =item
1658 #: ../src/guestfs.pod:722
1659 msgid "B<Haskell>"
1660 msgstr ""
1661
1662 # type: textblock
1663 #. type: textblock
1664 #: ../src/guestfs.pod:724
1665 msgid ""
1666 "This is the only language binding that is working but incomplete.  Only "
1667 "calls which return simple integers have been bound in Haskell, and we are "
1668 "looking for help to complete this binding."
1669 msgstr ""
1670
1671 # type: =item
1672 #. type: =item
1673 #: ../src/guestfs.pod:728
1674 msgid "B<Java>"
1675 msgstr ""
1676
1677 # type: textblock
1678 #. type: textblock
1679 #: ../src/guestfs.pod:730
1680 msgid ""
1681 "Full documentation is contained in the Javadoc which is distributed with "
1682 "libguestfs."
1683 msgstr ""
1684
1685 # type: =item
1686 #. type: =item
1687 #: ../src/guestfs.pod:733
1688 msgid "B<OCaml>"
1689 msgstr ""
1690
1691 #. type: textblock
1692 #: ../src/guestfs.pod:735
1693 msgid "See L<guestfs-ocaml(3)>."
1694 msgstr ""
1695
1696 # type: =item
1697 #. type: =item
1698 #: ../src/guestfs.pod:737
1699 msgid "B<Perl>"
1700 msgstr ""
1701
1702 #. type: textblock
1703 #: ../src/guestfs.pod:739
1704 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
1705 msgstr ""
1706
1707 # type: =item
1708 #. type: =item
1709 #: ../src/guestfs.pod:741
1710 msgid "B<PHP>"
1711 msgstr ""
1712
1713 # type: textblock
1714 #. type: textblock
1715 #: ../src/guestfs.pod:743
1716 msgid ""
1717 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1718 "the php-libguestfs package for your distribution."
1719 msgstr ""
1720
1721 # type: textblock
1722 #. type: textblock
1723 #: ../src/guestfs.pod:746
1724 msgid "The PHP binding only works correctly on 64 bit machines."
1725 msgstr ""
1726
1727 # type: =item
1728 #. type: =item
1729 #: ../src/guestfs.pod:748
1730 msgid "B<Python>"
1731 msgstr ""
1732
1733 #. type: textblock
1734 #: ../src/guestfs.pod:750
1735 msgid "See L<guestfs-python(3)>."
1736 msgstr ""
1737
1738 # type: =item
1739 #. type: =item
1740 #: ../src/guestfs.pod:752
1741 msgid "B<Ruby>"
1742 msgstr ""
1743
1744 #. type: textblock
1745 #: ../src/guestfs.pod:754
1746 msgid "See L<guestfs-ruby(3)>."
1747 msgstr ""
1748
1749 # type: =item
1750 #. type: =item
1751 #: ../src/guestfs.pod:756
1752 msgid "B<shell scripts>"
1753 msgstr ""
1754
1755 #. type: textblock
1756 #: ../src/guestfs.pod:758
1757 msgid "See L<guestfish(1)>."
1758 msgstr ""
1759
1760 # type: =head2
1761 #. type: =head2
1762 #: ../src/guestfs.pod:762
1763 msgid "LIBGUESTFS GOTCHAS"
1764 msgstr ""
1765
1766 # type: textblock
1767 #. type: textblock
1768 #: ../src/guestfs.pod:764
1769 msgid ""
1770 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1771 "system [...] that works in the way it is documented but is counterintuitive "
1772 "and almost invites mistakes.\""
1773 msgstr ""
1774
1775 # type: textblock
1776 #. type: textblock
1777 #: ../src/guestfs.pod:768
1778 msgid ""
1779 "Since we developed libguestfs and the associated tools, there are several "
1780 "things we would have designed differently, but are now stuck with for "
1781 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1782 "release, you can expect these to change.  Beware of them."
1783 msgstr ""
1784
1785 # type: =item
1786 #. type: =item
1787 #: ../src/guestfs.pod:776
1788 msgid "Autosync / forgetting to sync."
1789 msgstr ""
1790
1791 #. type: textblock
1792 #: ../src/guestfs.pod:778
1793 msgid ""
1794 "I<Update:> Autosync is enabled by default for all API users starting from "
1795 "libguestfs 1.5.24.  This section only applies to older versions."
1796 msgstr ""
1797
1798 # type: textblock
1799 #. type: textblock
1800 #: ../src/guestfs.pod:781
1801 msgid ""
1802 "When modifying a filesystem from C or another language, you B<must> unmount "
1803 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1804 "libguestfs handle.  You can also call:"
1805 msgstr ""
1806
1807 # type: verbatim
1808 #. type: verbatim
1809 #: ../src/guestfs.pod:785
1810 #, no-wrap
1811 msgid ""
1812 " guestfs_set_autosync (g, 1);\n"
1813 "\n"
1814 msgstr ""
1815
1816 # type: textblock
1817 #. type: textblock
1818 #: ../src/guestfs.pod:787
1819 msgid ""
1820 "to have the unmount/sync done automatically for you when the handle 'g' is "
1821 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1822 msgstr ""
1823
1824 # type: textblock
1825 #. type: textblock
1826 #: ../src/guestfs.pod:791
1827 msgid ""
1828 "If you forget to do this, then it is entirely possible that your changes "
1829 "won't be written out, or will be partially written, or (very rarely) that "
1830 "you'll get disk corruption."
1831 msgstr ""
1832
1833 # type: textblock
1834 #. type: textblock
1835 #: ../src/guestfs.pod:795
1836 msgid ""
1837 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1838 "guestfish scripts that forget to sync will work just fine, which can make "
1839 "this very puzzling if you are trying to debug a problem."
1840 msgstr ""
1841
1842 # type: =item
1843 #. type: =item
1844 #: ../src/guestfs.pod:799
1845 msgid "Mount option C<-o sync> should not be the default."
1846 msgstr ""
1847
1848 # type: textblock
1849 #. type: textblock
1850 #: ../src/guestfs.pod:801
1851 msgid ""
1852 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1853 "However C<-o sync> does not add any reliability benefit, but does have a "
1854 "very large performance impact."
1855 msgstr ""
1856
1857 # type: textblock
1858 #. type: textblock
1859 #: ../src/guestfs.pod:805
1860 msgid ""
1861 "The work around is to use L</guestfs_mount_options> and set the mount "
1862 "options that you actually want to use."
1863 msgstr ""
1864
1865 # type: =item
1866 #. type: =item
1867 #: ../src/guestfs.pod:808
1868 msgid "Read-only should be the default."
1869 msgstr ""
1870
1871 # type: textblock
1872 #. type: textblock
1873 #: ../src/guestfs.pod:810
1874 msgid ""
1875 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1876 "specify I<--rw> if you want to make changes to the image."
1877 msgstr ""
1878
1879 # type: textblock
1880 #. type: textblock
1881 #: ../src/guestfs.pod:813
1882 msgid "This would reduce the potential to corrupt live VM images."
1883 msgstr ""
1884
1885 # type: textblock
1886 #. type: textblock
1887 #: ../src/guestfs.pod:815
1888 msgid ""
1889 "Note that many filesystems change the disk when you just mount and unmount, "
1890 "even if you didn't perform any writes.  You need to use L</"
1891 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1892 msgstr ""
1893
1894 # type: =item
1895 #. type: =item
1896 #: ../src/guestfs.pod:819
1897 msgid "guestfish command line is hard to use."
1898 msgstr ""
1899
1900 # type: textblock
1901 #. type: textblock
1902 #: ../src/guestfs.pod:821
1903 msgid ""
1904 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1905 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1906 "exist, so it fails.  In earlier versions of guestfish the error message was "
1907 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1908 "we should have used C<guestfish -c command> to run commands."
1909 msgstr ""
1910
1911 # type: =item
1912 #. type: =item
1913 #: ../src/guestfs.pod:828
1914 msgid "guestfish megabyte modifiers don't work right on all commands"
1915 msgstr ""
1916
1917 # type: textblock
1918 #. type: textblock
1919 #: ../src/guestfs.pod:830
1920 msgid ""
1921 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1922 "other modifiers).  What guestfish actually does is to multiply the number "
1923 "part by the modifier part and pass the result to the C API.  However this "
1924 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1925 "expecting some other unit (eg. megabytes)."
1926 msgstr ""
1927
1928 # type: textblock
1929 #. type: textblock
1930 #: ../src/guestfs.pod:837
1931 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1932 msgstr ""
1933
1934 # type: verbatim
1935 #. type: verbatim
1936 #: ../src/guestfs.pod:839
1937 #, no-wrap
1938 msgid ""
1939 " lvcreate LV VG 100M\n"
1940 "\n"
1941 msgstr ""
1942
1943 # type: textblock
1944 #. type: textblock
1945 #: ../src/guestfs.pod:841
1946 msgid ""
1947 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1948 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1949 "megabytes * megabytes) logical volume.  The error message you get from this "
1950 "is also a little obscure."
1951 msgstr ""
1952
1953 # type: textblock
1954 #. type: textblock
1955 #: ../src/guestfs.pod:846
1956 msgid ""
1957 "This could be fixed in the generator by specially marking parameters and "
1958 "return values which take bytes or other units."
1959 msgstr ""
1960
1961 # type: =item
1962 #. type: =item
1963 #: ../src/guestfs.pod:849
1964 msgid "Ambiguity between devices and paths"
1965 msgstr ""
1966
1967 # type: textblock
1968 #. type: textblock
1969 #: ../src/guestfs.pod:851
1970 msgid ""
1971 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1972 "sdb2>) and a similar pathname.  A file might just happen to be called "
1973 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1974 msgstr ""
1975
1976 # type: textblock
1977 #. type: textblock
1978 #: ../src/guestfs.pod:856
1979 msgid ""
1980 "In the current API we usually resolve this ambiguity by having two separate "
1981 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1982 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1983 "detecting if the path supplied begins with C</dev/>."
1984 msgstr ""
1985
1986 # type: textblock
1987 #. type: textblock
1988 #: ../src/guestfs.pod:862
1989 msgid ""
1990 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1991 "make paths/devices into structured names.  One way to do this would be to "
1992 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1993 "aspect of grub.  Another way would be to use a structured type, equivalent "
1994 "to this OCaml type:"
1995 msgstr ""
1996
1997 # type: verbatim
1998 #. type: verbatim
1999 #: ../src/guestfs.pod:868
2000 #, no-wrap
2001 msgid ""
2002 " type path = Path of string | Device of int | Partition of int * int\n"
2003 "\n"
2004 msgstr ""
2005
2006 # type: textblock
2007 #. type: textblock
2008 #: ../src/guestfs.pod:870
2009 msgid "which would allow you to pass arguments like:"
2010 msgstr ""
2011
2012 # type: verbatim
2013 #. type: verbatim
2014 #: ../src/guestfs.pod:872
2015 #, no-wrap
2016 msgid ""
2017 " Path \"/foo/bar\"\n"
2018 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
2019 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
2020 " Path \"/dev/sdb2\"    (* not a device *)\n"
2021 "\n"
2022 msgstr ""
2023
2024 # type: textblock
2025 #. type: textblock
2026 #: ../src/guestfs.pod:877
2027 msgid ""
2028 "As you can see there are still problems to resolve even with this "
2029 "representation.  Also consider how it might work in guestfish."
2030 msgstr ""
2031
2032 # type: =head2
2033 #. type: =head2
2034 #: ../src/guestfs.pod:882
2035 msgid "KEYS AND PASSPHRASES"
2036 msgstr ""
2037
2038 # type: textblock
2039 #. type: textblock
2040 #: ../src/guestfs.pod:884
2041 msgid ""
2042 "Certain libguestfs calls take a parameter that contains sensitive key "
2043 "material, passed in as a C string."
2044 msgstr ""
2045
2046 # type: textblock
2047 #. type: textblock
2048 #: ../src/guestfs.pod:887
2049 msgid ""
2050 "In the future we would hope to change the libguestfs implementation so that "
2051 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
2052 "swap.  However this is I<not> done at the moment, because of the complexity "
2053 "of such an implementation."
2054 msgstr ""
2055
2056 # type: textblock
2057 #. type: textblock
2058 #: ../src/guestfs.pod:892
2059 msgid ""
2060 "Therefore you should be aware that any key parameter you pass to libguestfs "
2061 "might end up being written out to the swap partition.  If this is a concern, "
2062 "scrub the swap partition or don't use libguestfs on encrypted devices."
2063 msgstr ""
2064
2065 # type: =head1
2066 #. type: =head2
2067 #: ../src/guestfs.pod:897
2068 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
2069 msgstr ""
2070
2071 # type: textblock
2072 #. type: textblock
2073 #: ../src/guestfs.pod:899
2074 msgid ""
2075 "All high-level libguestfs actions are synchronous.  If you want to use "
2076 "libguestfs asynchronously then you must create a thread."
2077 msgstr ""
2078
2079 # type: textblock
2080 #. type: textblock
2081 #: ../src/guestfs.pod:902
2082 msgid ""
2083 "Only use the handle from a single thread.  Either use the handle exclusively "
2084 "from one thread, or provide your own mutex so that two threads cannot issue "
2085 "calls on the same handle at the same time."
2086 msgstr ""
2087
2088 # type: textblock
2089 #. type: textblock
2090 #: ../src/guestfs.pod:906
2091 msgid ""
2092 "See the graphical program guestfs-browser for one possible architecture for "
2093 "multithreaded programs using libvirt and libguestfs."
2094 msgstr ""
2095
2096 # type: =head1
2097 #. type: =head2
2098 #: ../src/guestfs.pod:909
2099 msgid "PATH"
2100 msgstr ""
2101
2102 #. type: textblock
2103 #: ../src/guestfs.pod:911
2104 msgid ""
2105 "Libguestfs needs a supermin appliance, which it finds by looking along an "
2106 "internal path."
2107 msgstr ""
2108
2109 # type: textblock
2110 #. type: textblock
2111 #: ../src/guestfs.pod:914
2112 msgid ""
2113 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
2114 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
2115 msgstr ""
2116
2117 # type: textblock
2118 #. type: textblock
2119 #: ../src/guestfs.pod:917
2120 msgid ""
2121 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
2122 "to change the directories that libguestfs will search in.  The value is a "
2123 "colon-separated list of paths.  The current directory is I<not> searched "
2124 "unless the path contains an empty element or C<.>.  For example "
2125 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
2126 "then C</usr/lib/guestfs>."
2127 msgstr ""
2128
2129 # type: =head1
2130 #. type: =head2
2131 #: ../src/guestfs.pod:924
2132 msgid "QEMU WRAPPERS"
2133 msgstr ""
2134
2135 # type: textblock
2136 #. type: textblock
2137 #: ../src/guestfs.pod:926
2138 msgid ""
2139 "If you want to compile your own qemu, run qemu from a non-standard location, "
2140 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
2141 "around qemu."
2142 msgstr ""
2143
2144 # type: textblock
2145 #. type: textblock
2146 #: ../src/guestfs.pod:930
2147 msgid ""
2148 "There is one important rule to remember: you I<must C<exec qemu>> as the "
2149 "last command in the shell script (so that qemu replaces the shell and "
2150 "becomes the direct child of the libguestfs-using program).  If you don't do "
2151 "this, then the qemu process won't be cleaned up correctly."
2152 msgstr ""
2153
2154 # type: textblock
2155 #. type: textblock
2156 #: ../src/guestfs.pod:935
2157 msgid ""
2158 "Here is an example of a wrapper, where I have built my own copy of qemu from "
2159 "source:"
2160 msgstr ""
2161
2162 # type: verbatim
2163 #. type: verbatim
2164 #: ../src/guestfs.pod:938
2165 #, no-wrap
2166 msgid ""
2167 " #!/bin/sh -\n"
2168 " qemudir=/home/rjones/d/qemu\n"
2169 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
2170 "\n"
2171 msgstr ""
2172
2173 # type: textblock
2174 #. type: textblock
2175 #: ../src/guestfs.pod:942
2176 msgid ""
2177 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
2178 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
2179 "example:"
2180 msgstr ""
2181
2182 # type: verbatim
2183 #. type: verbatim
2184 #: ../src/guestfs.pod:946
2185 #, no-wrap
2186 msgid ""
2187 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
2188 "\n"
2189 msgstr ""
2190
2191 # type: textblock
2192 #. type: textblock
2193 #: ../src/guestfs.pod:948
2194 msgid ""
2195 "Note that libguestfs also calls qemu with the -help and -version options in "
2196 "order to determine features."
2197 msgstr ""
2198
2199 #. type: =head2
2200 #: ../src/guestfs.pod:951
2201 msgid "ATTACHING TO RUNNING DAEMONS"
2202 msgstr ""
2203
2204 #. type: textblock
2205 #: ../src/guestfs.pod:953
2206 msgid ""
2207 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
2208 "babies.  Use with caution."
2209 msgstr ""
2210
2211 #. type: textblock
2212 #: ../src/guestfs.pod:956
2213 msgid ""
2214 "I<Note (2):> This section explains how to attach to a running daemon from a "
2215 "low level perspective.  For most users, simply using virt tools such as "
2216 "L<guestfish(1)> with the I<--live> option will \"just work\"."
2217 msgstr ""
2218
2219 #. type: =head3
2220 #: ../src/guestfs.pod:960
2221 msgid "Using guestfs_set_attach_method"
2222 msgstr ""
2223
2224 #. type: textblock
2225 #: ../src/guestfs.pod:962
2226 msgid ""
2227 "By calling L</guestfs_set_attach_method> you can change how the library "
2228 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
2229 "ARCHITECTURE> for some background)."
2230 msgstr ""
2231
2232 #. type: textblock
2233 #: ../src/guestfs.pod:966
2234 msgid ""
2235 "The normal attach method is C<appliance>, where a small appliance is created "
2236 "containing the daemon, and then the library connects to this."
2237 msgstr ""
2238
2239 #. type: textblock
2240 #: ../src/guestfs.pod:969
2241 msgid ""
2242 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
2243 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
2244 "daemon over the Unix domain socket."
2245 msgstr ""
2246
2247 #. type: textblock
2248 #: ../src/guestfs.pod:973
2249 msgid ""
2250 "The normal use for this is to connect to a running virtual machine that "
2251 "contains a C<guestfsd> daemon, and send commands so you can read and write "
2252 "files inside the live virtual machine."
2253 msgstr ""
2254
2255 #. type: =head3
2256 #: ../src/guestfs.pod:977
2257 msgid "Using guestfs_add_domain with live flag"
2258 msgstr ""
2259
2260 #. type: textblock
2261 #: ../src/guestfs.pod:979
2262 msgid ""
2263 "L</guestfs_add_domain> provides some help for getting the correct attach "
2264 "method.  If you pass the C<live> option to this function, then (if the "
2265 "virtual machine is running) it will examine the libvirt XML looking for a "
2266 "virtio-serial channel to connect to:"
2267 msgstr ""
2268
2269 #. type: verbatim
2270 #: ../src/guestfs.pod:985
2271 #, no-wrap
2272 msgid ""
2273 " <domain>\n"
2274 "   ...\n"
2275 "   <devices>\n"
2276 "     ...\n"
2277 "     <channel type='unix'>\n"
2278 "       <source mode='bind' path='/path/to/socket'/>\n"
2279 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
2280 "     </channel>\n"
2281 "     ...\n"
2282 "   </devices>\n"
2283 " </domain>\n"
2284 "\n"
2285 msgstr ""
2286
2287 #. type: textblock
2288 #: ../src/guestfs.pod:997
2289 msgid ""
2290 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
2291 "method to C<unix:/path/to/socket>."
2292 msgstr ""
2293
2294 #. type: textblock
2295 #: ../src/guestfs.pod:1000
2296 msgid ""
2297 "Some of the libguestfs tools (including guestfish) support a I<--live> "
2298 "option which is passed through to L</guestfs_add_domain> thus allowing you "
2299 "to attach to and modify live virtual machines."
2300 msgstr ""
2301
2302 #. type: textblock
2303 #: ../src/guestfs.pod:1004
2304 msgid ""
2305 "The virtual machine needs to have been set up beforehand so that it has the "
2306 "virtio-serial channel and so that guestfsd is running inside it."
2307 msgstr ""
2308
2309 # type: =head2
2310 #. type: =head2
2311 #: ../src/guestfs.pod:1008
2312 msgid "ABI GUARANTEE"
2313 msgstr ""
2314
2315 # type: textblock
2316 #. type: textblock
2317 #: ../src/guestfs.pod:1010
2318 msgid ""
2319 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2320 "actions as outlined in this section.  Although we will deprecate some "
2321 "actions, for example if they get replaced by newer calls, we will keep the "
2322 "old actions forever.  This allows you the developer to program in confidence "
2323 "against the libguestfs API."
2324 msgstr ""
2325
2326 # type: =head1
2327 #. type: =head2
2328 #: ../src/guestfs.pod:1016
2329 msgid "BLOCK DEVICE NAMING"
2330 msgstr ""
2331
2332 # type: textblock
2333 #. type: textblock
2334 #: ../src/guestfs.pod:1018
2335 msgid ""
2336 "In the kernel there is now quite a profusion of schemata for naming block "
2337 "devices (in this context, by I<block device> I mean a physical or virtual "
2338 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
2339 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
2340 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
2341 "for the old IDE driver (particularly for SATA devices) those devices also "
2342 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
2343 "paravirtualized drivers.  This has created several different naming systems, "
2344 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
2345 msgstr ""
2346
2347 # type: textblock
2348 #. type: textblock
2349 #: ../src/guestfs.pod:1030
2350 msgid ""
2351 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2352 "Linux kernel to access block devices.  We can run a variety of appliances "
2353 "based on a variety of Linux kernels."
2354 msgstr ""
2355
2356 # type: textblock
2357 #. type: textblock
2358 #: ../src/guestfs.pod:1034
2359 msgid ""
2360 "This causes a problem for libguestfs because many API calls use device or "
2361 "partition names.  Working scripts and the recipe (example) scripts that we "
2362 "make available over the internet could fail if the naming scheme changes."
2363 msgstr ""
2364
2365 # type: textblock
2366 #. type: textblock
2367 #: ../src/guestfs.pod:1039
2368 msgid ""
2369 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2370 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2371 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2372 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2373 msgstr ""
2374
2375 # type: textblock
2376 #. type: textblock
2377 #: ../src/guestfs.pod:1045
2378 msgid ""
2379 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2380 "L</guestfs_list_partitions> and similar calls return the true names of the "
2381 "devices and partitions as known to the appliance."
2382 msgstr ""
2383
2384 # type: =head2
2385 #. type: =head3
2386 #: ../src/guestfs.pod:1050
2387 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2388 msgstr ""
2389
2390 # type: textblock
2391 #. type: textblock
2392 #: ../src/guestfs.pod:1052
2393 msgid ""
2394 "Usually this translation is transparent.  However in some (very rare)  cases "
2395 "you may need to know the exact algorithm.  Such cases include where you use "
2396 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
2397 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
2398 msgstr ""
2399
2400 # type: textblock
2401 #. type: textblock
2402 #: ../src/guestfs.pod:1058
2403 msgid ""
2404 "The algorithm is applied only to I<parameters> which are known to be either "
2405 "device or partition names.  Return values from functions such as L</"
2406 "guestfs_list_devices> are never changed."
2407 msgstr ""
2408
2409 # type: textblock
2410 #. type: textblock
2411 #: ../src/guestfs.pod:1066
2412 msgid "Is the string a parameter which is a device or partition name?"
2413 msgstr ""
2414
2415 # type: textblock
2416 #. type: textblock
2417 #: ../src/guestfs.pod:1070
2418 msgid "Does the string begin with C</dev/sd>?"
2419 msgstr ""
2420
2421 # type: textblock
2422 #. type: textblock
2423 #: ../src/guestfs.pod:1074
2424 msgid ""
2425 "Does the named device exist? If so, we use that device.  However if I<not> "
2426 "then we continue with this algorithm."
2427 msgstr ""
2428
2429 # type: textblock
2430 #. type: textblock
2431 #: ../src/guestfs.pod:1079
2432 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2433 msgstr ""
2434
2435 # type: textblock
2436 #. type: textblock
2437 #: ../src/guestfs.pod:1081
2438 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2439 msgstr ""
2440
2441 # type: textblock
2442 #. type: textblock
2443 #: ../src/guestfs.pod:1083
2444 msgid "If that named device exists, use it.  If not, continue."
2445 msgstr ""
2446
2447 # type: textblock
2448 #. type: textblock
2449 #: ../src/guestfs.pod:1087
2450 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2451 msgstr ""
2452
2453 # type: textblock
2454 #. type: textblock
2455 #: ../src/guestfs.pod:1089
2456 msgid "If that named device exists, use it.  If not, return an error."
2457 msgstr ""
2458
2459 # type: =head3
2460 #. type: =head3
2461 #: ../src/guestfs.pod:1093
2462 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2463 msgstr ""
2464
2465 # type: textblock
2466 #. type: textblock
2467 #: ../src/guestfs.pod:1095
2468 msgid ""
2469 "Although the standard naming scheme and automatic translation is useful for "
2470 "simple programs and guestfish scripts, for larger programs it is best not to "
2471 "rely on this mechanism."
2472 msgstr ""
2473
2474 # type: textblock
2475 #. type: textblock
2476 #: ../src/guestfs.pod:1099
2477 msgid ""
2478 "Where possible for maximum future portability programs using libguestfs "
2479 "should use these future-proof techniques:"
2480 msgstr ""
2481
2482 # type: textblock
2483 #. type: textblock
2484 #: ../src/guestfs.pod:1106
2485 msgid ""
2486 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2487 "device names, and then use those names directly."
2488 msgstr ""
2489
2490 # type: textblock
2491 #. type: textblock
2492 #: ../src/guestfs.pod:1109
2493 msgid ""
2494 "Since those device names exist by definition, they will never be translated."
2495 msgstr ""
2496
2497 # type: textblock
2498 #. type: textblock
2499 #: ../src/guestfs.pod:1114
2500 msgid ""
2501 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2502 "filesystem labels."
2503 msgstr ""
2504
2505 # type: =head1
2506 #. type: =head1
2507 #: ../src/guestfs.pod:1119
2508 msgid "SECURITY"
2509 msgstr ""
2510
2511 # type: textblock
2512 #. type: textblock
2513 #: ../src/guestfs.pod:1121
2514 msgid ""
2515 "This section discusses security implications of using libguestfs, "
2516 "particularly with untrusted or malicious guests or disk images."
2517 msgstr ""
2518
2519 # type: =head2
2520 #. type: =head2
2521 #: ../src/guestfs.pod:1124
2522 msgid "GENERAL SECURITY CONSIDERATIONS"
2523 msgstr ""
2524
2525 # type: textblock
2526 #. type: textblock
2527 #: ../src/guestfs.pod:1126
2528 msgid ""
2529 "Be careful with any files or data that you download from a guest (by "
2530 "\"download\" we mean not just the L</guestfs_download> command but any "
2531 "command that reads files, filenames, directories or anything else from a "
2532 "disk image).  An attacker could manipulate the data to fool your program "
2533 "into doing the wrong thing.  Consider cases such as:"
2534 msgstr ""
2535
2536 # type: textblock
2537 #. type: textblock
2538 #: ../src/guestfs.pod:1136
2539 msgid "the data (file etc) not being present"
2540 msgstr ""
2541
2542 # type: textblock
2543 #. type: textblock
2544 #: ../src/guestfs.pod:1140
2545 msgid "being present but empty"
2546 msgstr ""
2547
2548 # type: textblock
2549 #. type: textblock
2550 #: ../src/guestfs.pod:1144
2551 msgid "being much larger than normal"
2552 msgstr ""
2553
2554 # type: textblock
2555 #. type: textblock
2556 #: ../src/guestfs.pod:1148
2557 msgid "containing arbitrary 8 bit data"
2558 msgstr ""
2559
2560 # type: textblock
2561 #. type: textblock
2562 #: ../src/guestfs.pod:1152
2563 msgid "being in an unexpected character encoding"
2564 msgstr ""
2565
2566 # type: textblock
2567 #. type: textblock
2568 #: ../src/guestfs.pod:1156
2569 msgid "containing homoglyphs."
2570 msgstr ""
2571
2572 # type: =head2
2573 #. type: =head2
2574 #: ../src/guestfs.pod:1160
2575 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2576 msgstr ""
2577
2578 # type: textblock
2579 #. type: textblock
2580 #: ../src/guestfs.pod:1162
2581 msgid ""
2582 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2583 "(VFS) module can sometimes be escalated into exploits by deliberately "
2584 "creating a malicious, malformed filesystem.  These exploits are very severe "
2585 "for two reasons.  Firstly there are very many filesystem drivers in the "
2586 "kernel, and many of them are infrequently used and not much developer "
2587 "attention has been paid to the code.  Linux userspace helps potential "
2588 "crackers by detecting the filesystem type and automatically choosing the "
2589 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2590 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2591 "exploit (worse in some ways), giving immediate and total access to the "
2592 "system right down to the hardware level."
2593 msgstr ""
2594
2595 # type: textblock
2596 #. type: textblock
2597 #: ../src/guestfs.pod:1175
2598 msgid ""
2599 "That explains why you should never mount a filesystem from an untrusted "
2600 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2601 "inside a qemu virtual machine, usually running as a non-root user.  The "
2602 "attacker would need to write a filesystem which first exploited the kernel, "
2603 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2604 "the libguestfs protocol, and finally to be as serious as the host kernel "
2605 "exploit it would need to escalate its privileges to root.  This multi-step "
2606 "escalation, performed by a static piece of data, is thought to be extremely "
2607 "hard to do, although we never say 'never' about security issues."
2608 msgstr ""
2609
2610 # type: textblock
2611 #. type: textblock
2612 #: ../src/guestfs.pod:1186
2613 msgid ""
2614 "In any case callers can reduce the attack surface by forcing the filesystem "
2615 "type when mounting (use L</guestfs_mount_vfs>)."
2616 msgstr ""
2617
2618 # type: =head2
2619 #. type: =head2
2620 #: ../src/guestfs.pod:1189
2621 msgid "PROTOCOL SECURITY"
2622 msgstr ""
2623
2624 # type: textblock
2625 #. type: textblock
2626 #: ../src/guestfs.pod:1191
2627 msgid ""
2628 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2629 "defined upper message size.  However a program that uses libguestfs must "
2630 "also take care - for example you can write a program that downloads a binary "
2631 "from a disk image and executes it locally, and no amount of protocol "
2632 "security will save you from the consequences."
2633 msgstr ""
2634
2635 # type: =head2
2636 #. type: =head2
2637 #: ../src/guestfs.pod:1197
2638 msgid "INSPECTION SECURITY"
2639 msgstr ""
2640
2641 # type: textblock
2642 #. type: textblock
2643 #: ../src/guestfs.pod:1199
2644 msgid ""
2645 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2646 "directly from the guest, and these could contain any 8 bit data.  Callers "
2647 "should be careful to escape these before printing them to a structured file "
2648 "(for example, use HTML escaping if creating a web page)."
2649 msgstr ""
2650
2651 # type: textblock
2652 #. type: textblock
2653 #: ../src/guestfs.pod:1205
2654 msgid ""
2655 "Guest configuration may be altered in unusual ways by the administrator of "
2656 "the virtual machine, and may not reflect reality (particularly for untrusted "
2657 "or actively malicious guests).  For example we parse the hostname from "
2658 "configuration files like C</etc/sysconfig/network> that we find in the "
2659 "guest, but the guest administrator can easily manipulate these files to "
2660 "provide the wrong hostname."
2661 msgstr ""
2662
2663 # type: textblock
2664 #. type: textblock
2665 #: ../src/guestfs.pod:1213
2666 msgid ""
2667 "The inspection API parses guest configuration using two external libraries: "
2668 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2669 "designed to be robust in the face of malicious data, although denial of "
2670 "service attacks are still possible, for example with oversized configuration "
2671 "files."
2672 msgstr ""
2673
2674 # type: =head2
2675 #. type: =head2
2676 #: ../src/guestfs.pod:1219
2677 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2678 msgstr ""
2679
2680 # type: textblock
2681 #. type: textblock
2682 #: ../src/guestfs.pod:1221
2683 msgid ""
2684 "Be very cautious about running commands from the guest.  By running a "
2685 "command in the guest, you are giving CPU time to a binary that you do not "
2686 "control, under the same user account as the library, albeit wrapped in qemu "
2687 "virtualization.  More information and alternatives can be found in the "
2688 "section L</RUNNING COMMANDS>."
2689 msgstr ""
2690
2691 # type: =head2
2692 #. type: =head2
2693 #: ../src/guestfs.pod:1227
2694 msgid "CVE-2010-3851"
2695 msgstr ""
2696
2697 # type: textblock
2698 #. type: textblock
2699 #: ../src/guestfs.pod:1229
2700 msgid "https://bugzilla.redhat.com/642934"
2701 msgstr ""
2702
2703 # type: textblock
2704 #. type: textblock
2705 #: ../src/guestfs.pod:1231
2706 msgid ""
2707 "This security bug concerns the automatic disk format detection that qemu "
2708 "does on disk images."
2709 msgstr ""
2710
2711 # type: textblock
2712 #. type: textblock
2713 #: ../src/guestfs.pod:1234
2714 msgid ""
2715 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2716 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2717 "for one of the known headers, and if none is found then assuming the disk "
2718 "image must be raw."
2719 msgstr ""
2720
2721 # type: textblock
2722 #. type: textblock
2723 #: ../src/guestfs.pod:1239
2724 msgid ""
2725 "This allows a guest which has been given a raw disk image to write some "
2726 "other header.  At next boot (or when the disk image is accessed by "
2727 "libguestfs) qemu would do autodetection and think the disk image format was, "
2728 "say, qcow2 based on the header written by the guest."
2729 msgstr ""
2730
2731 # type: textblock
2732 #. type: textblock
2733 #: ../src/guestfs.pod:1244
2734 msgid ""
2735 "This in itself would not be a problem, but qcow2 offers many features, one "
2736 "of which is to allow a disk image to refer to another image (called the "
2737 "\"backing disk\").  It does this by placing the path to the backing disk "
2738 "into the qcow2 header.  This path is not validated and could point to any "
2739 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2740 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2741 "control of the attacker."
2742 msgstr ""
2743
2744 # type: textblock
2745 #. type: textblock
2746 #: ../src/guestfs.pod:1252
2747 msgid ""
2748 "In libguestfs this is rather hard to exploit except under two circumstances:"
2749 msgstr ""
2750
2751 # type: textblock
2752 #. type: textblock
2753 #: ../src/guestfs.pod:1259
2754 msgid "You have enabled the network or have opened the disk in write mode."
2755 msgstr ""
2756
2757 # type: textblock
2758 #. type: textblock
2759 #: ../src/guestfs.pod:1263
2760 msgid ""
2761 "You are also running untrusted code from the guest (see L</RUNNING "
2762 "COMMANDS>)."
2763 msgstr ""
2764
2765 # type: textblock
2766 #. type: textblock
2767 #: ../src/guestfs.pod:1268
2768 msgid ""
2769 "The way to avoid this is to specify the expected disk format when adding "
2770 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2771 "should always do this if the disk is raw format, and it's a good idea for "
2772 "other cases too."
2773 msgstr ""
2774
2775 # type: textblock
2776 #. type: textblock
2777 #: ../src/guestfs.pod:1273
2778 msgid ""
2779 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2780 "format is fetched from libvirt and passed through."
2781 msgstr ""
2782
2783 # type: textblock
2784 #. type: textblock
2785 #: ../src/guestfs.pod:1276
2786 msgid ""
2787 "For libguestfs tools, use the I<--format> command line parameter as "
2788 "appropriate."
2789 msgstr ""
2790
2791 # type: =head1
2792 #. type: =head1
2793 #: ../src/guestfs.pod:1279
2794 msgid "CONNECTION MANAGEMENT"
2795 msgstr ""
2796
2797 # type: =head2
2798 #. type: =head2
2799 #: ../src/guestfs.pod:1281
2800 msgid "guestfs_h *"
2801 msgstr ""
2802
2803 # type: textblock
2804 #. type: textblock
2805 #: ../src/guestfs.pod:1283
2806 msgid ""
2807 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2808 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2809 "handle and release all resources used."
2810 msgstr ""
2811
2812 #. type: textblock
2813 #: ../src/guestfs.pod:1287
2814 msgid ""
2815 "For information on using multiple handles and threads, see the section L</"
2816 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
2817 msgstr ""
2818
2819 # type: =head2
2820 #. type: =head2
2821 #: ../src/guestfs.pod:1290
2822 msgid "guestfs_create"
2823 msgstr ""
2824
2825 # type: verbatim
2826 #. type: verbatim
2827 #: ../src/guestfs.pod:1292
2828 #, no-wrap
2829 msgid ""
2830 " guestfs_h *guestfs_create (void);\n"
2831 "\n"
2832 msgstr ""
2833
2834 # type: textblock
2835 #. type: textblock
2836 #: ../src/guestfs.pod:1294
2837 msgid "Create a connection handle."
2838 msgstr ""
2839
2840 #. type: textblock
2841 #: ../src/guestfs.pod:1296
2842 msgid ""
2843 "On success this returns a non-NULL pointer to a handle.  On error it returns "
2844 "NULL."
2845 msgstr ""
2846
2847 #. type: textblock
2848 #: ../src/guestfs.pod:1299
2849 msgid ""
2850 "You have to \"configure\" the handle after creating it.  This includes "
2851 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
2852 "handle at least once."
2853 msgstr ""
2854
2855 # type: textblock
2856 #. type: textblock
2857 #: ../src/guestfs.pod:1303
2858 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2859 msgstr ""
2860
2861 #. type: textblock
2862 #: ../src/guestfs.pod:1305
2863 msgid ""
2864 "You may also want to configure error handling for the handle.  See the L</"
2865 "ERROR HANDLING> section below."
2866 msgstr ""
2867
2868 # type: =head2
2869 #. type: =head2
2870 #: ../src/guestfs.pod:1308
2871 msgid "guestfs_close"
2872 msgstr ""
2873
2874 # type: verbatim
2875 #. type: verbatim
2876 #: ../src/guestfs.pod:1310
2877 #, no-wrap
2878 msgid ""
2879 " void guestfs_close (guestfs_h *g);\n"
2880 "\n"
2881 msgstr ""
2882
2883 # type: textblock
2884 #. type: textblock
2885 #: ../src/guestfs.pod:1312
2886 msgid "This closes the connection handle and frees up all resources used."
2887 msgstr ""
2888
2889 #. type: textblock
2890 #: ../src/guestfs.pod:1314
2891 msgid ""
2892 "If autosync was set on the handle and the handle was launched, then this "
2893 "implicitly calls various functions to unmount filesystems and sync the "
2894 "disk.  See L</guestfs_set_autosync> for more details."
2895 msgstr ""
2896
2897 #. type: textblock
2898 #: ../src/guestfs.pod:1318
2899 msgid "If a close callback was set on the handle, then it is called."
2900 msgstr ""
2901
2902 # type: =head1
2903 #. type: =head1
2904 #: ../src/guestfs.pod:1320
2905 msgid "ERROR HANDLING"
2906 msgstr ""
2907
2908 # type: textblock
2909 #. type: textblock
2910 #: ../src/guestfs.pod:1322
2911 msgid ""
2912 "API functions can return errors.  For example, almost all functions that "
2913 "return C<int> will return C<-1> to indicate an error."
2914 msgstr ""
2915
2916 # type: textblock
2917 #. type: textblock
2918 #: ../src/guestfs.pod:1325
2919 msgid ""
2920 "Additional information is available for errors: an error message string and "
2921 "optionally an error number (errno) if the thing that failed was a system "
2922 "call."
2923 msgstr ""
2924
2925 # type: textblock
2926 #. type: textblock
2927 #: ../src/guestfs.pod:1329
2928 msgid ""
2929 "You can get at the additional information about the last error on the handle "
2930 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2931 "up an error handler with L</guestfs_set_error_handler>."
2932 msgstr ""
2933
2934 # type: textblock
2935 #. type: textblock
2936 #: ../src/guestfs.pod:1334
2937 msgid ""
2938 "When the handle is created, a default error handler is installed which "
2939 "prints the error message string to C<stderr>.  For small short-running "
2940 "command line programs it is sufficient to do:"
2941 msgstr ""
2942
2943 # type: verbatim
2944 #. type: verbatim
2945 #: ../src/guestfs.pod:1338
2946 #, no-wrap
2947 msgid ""
2948 " if (guestfs_launch (g) == -1)\n"
2949 "   exit (EXIT_FAILURE);\n"
2950 "\n"
2951 msgstr ""
2952
2953 # type: textblock
2954 #. type: textblock
2955 #: ../src/guestfs.pod:1341
2956 msgid ""
2957 "since the default error handler will ensure that an error message has been "
2958 "printed to C<stderr> before the program exits."
2959 msgstr ""
2960
2961 # type: textblock
2962 #. type: textblock
2963 #: ../src/guestfs.pod:1344
2964 msgid ""
2965 "For other programs the caller will almost certainly want to install an "
2966 "alternate error handler or do error handling in-line like this:"
2967 msgstr ""
2968
2969 # type: verbatim
2970 #. type: verbatim
2971 #: ../src/guestfs.pod:1347
2972 #, no-wrap
2973 msgid ""
2974 " g = guestfs_create ();\n"
2975 " \n"
2976 msgstr ""
2977
2978 # type: verbatim
2979 #. type: verbatim
2980 #: ../src/guestfs.pod:1349
2981 #, no-wrap
2982 msgid ""
2983 " /* This disables the default behaviour of printing errors\n"
2984 "    on stderr. */\n"
2985 " guestfs_set_error_handler (g, NULL, NULL);\n"
2986 " \n"
2987 msgstr ""
2988
2989 # type: verbatim
2990 #. type: verbatim
2991 #: ../src/guestfs.pod:1353
2992 #, no-wrap
2993 msgid ""
2994 " if (guestfs_launch (g) == -1) {\n"
2995 "   /* Examine the error message and print it etc. */\n"
2996 "   char *msg = guestfs_last_error (g);\n"
2997 "   int errnum = guestfs_last_errno (g);\n"
2998 "   fprintf (stderr, \"%s\\n\", msg);\n"
2999 "   /* ... */\n"
3000 "  }\n"
3001 "\n"
3002 msgstr ""
3003
3004 # type: textblock
3005 #. type: textblock
3006 #: ../src/guestfs.pod:1361
3007 msgid ""
3008 "Out of memory errors are handled differently.  The default action is to call "
3009 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
3010 "guestfs_set_out_of_memory_handler>."
3011 msgstr ""
3012
3013 # type: textblock
3014 #. type: textblock
3015 #: ../src/guestfs.pod:1365
3016 msgid ""
3017 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
3018 "because there is no handle if this happens there is no way to get additional "
3019 "error information.  However L</guestfs_create> is supposed to be a "
3020 "lightweight operation which can only fail because of insufficient memory (it "
3021 "returns NULL in this case)."
3022 msgstr ""
3023
3024 # type: =head2
3025 #. type: =head2
3026 #: ../src/guestfs.pod:1371
3027 msgid "guestfs_last_error"
3028 msgstr ""
3029
3030 # type: verbatim
3031 #. type: verbatim
3032 #: ../src/guestfs.pod:1373
3033 #, no-wrap
3034 msgid ""
3035 " const char *guestfs_last_error (guestfs_h *g);\n"
3036 "\n"
3037 msgstr ""
3038
3039 # type: textblock
3040 #. type: textblock
3041 #: ../src/guestfs.pod:1375
3042 msgid ""
3043 "This returns the last error message that happened on C<g>.  If there has not "
3044 "been an error since the handle was created, then this returns C<NULL>."
3045 msgstr ""
3046
3047 # type: textblock
3048 #. type: textblock
3049 #: ../src/guestfs.pod:1379
3050 msgid ""
3051 "The lifetime of the returned string is until the next error occurs, or L</"
3052 "guestfs_close> is called."
3053 msgstr ""
3054
3055 # type: =head2
3056 #. type: =head2
3057 #: ../src/guestfs.pod:1382
3058 msgid "guestfs_last_errno"
3059 msgstr ""
3060
3061 # type: verbatim
3062 #. type: verbatim
3063 #: ../src/guestfs.pod:1384
3064 #, no-wrap
3065 msgid ""
3066 " int guestfs_last_errno (guestfs_h *g);\n"
3067 "\n"
3068 msgstr ""
3069
3070 # type: textblock
3071 #. type: textblock
3072 #: ../src/guestfs.pod:1386
3073 msgid "This returns the last error number (errno) that happened on C<g>."
3074 msgstr ""
3075
3076 # type: textblock
3077 #. type: textblock
3078 #: ../src/guestfs.pod:1388
3079 msgid "If successful, an errno integer not equal to zero is returned."
3080 msgstr ""
3081
3082 # type: textblock
3083 #. type: textblock
3084 #: ../src/guestfs.pod:1390
3085 msgid ""
3086 "If no error, this returns 0.  This call can return 0 in three situations:"
3087 msgstr ""
3088
3089 # type: textblock
3090 #. type: textblock
3091 #: ../src/guestfs.pod:1397
3092 msgid "There has not been any error on the handle."
3093 msgstr ""
3094
3095 # type: textblock
3096 #. type: textblock
3097 #: ../src/guestfs.pod:1401
3098 msgid ""
3099 "There has been an error but the errno was meaningless.  This corresponds to "
3100 "the case where the error did not come from a failed system call, but for "
3101 "some other reason."
3102 msgstr ""
3103
3104 # type: textblock
3105 #. type: textblock
3106 #: ../src/guestfs.pod:1407
3107 msgid ""
3108 "There was an error from a failed system call, but for some reason the errno "
3109 "was not captured and returned.  This usually indicates a bug in libguestfs."
3110 msgstr ""
3111
3112 # type: textblock
3113 #. type: textblock
3114 #: ../src/guestfs.pod:1413
3115 msgid ""
3116 "Libguestfs tries to convert the errno from inside the applicance into a "
3117 "corresponding errno for the caller (not entirely trivial: the appliance "
3118 "might be running a completely different operating system from the library "
3119 "and error numbers are not standardized across Un*xen).  If this could not be "
3120 "done, then the error is translated to C<EINVAL>.  In practice this should "
3121 "only happen in very rare circumstances."
3122 msgstr ""
3123
3124 # type: =head2
3125 #. type: =head2
3126 #: ../src/guestfs.pod:1421
3127 msgid "guestfs_set_error_handler"
3128 msgstr ""
3129
3130 # type: verbatim
3131 #. type: verbatim
3132 #: ../src/guestfs.pod:1423
3133 #, no-wrap
3134 msgid ""
3135 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
3136 "                                           void *opaque,\n"
3137 "                                           const char *msg);\n"
3138 " void guestfs_set_error_handler (guestfs_h *g,\n"
3139 "                                 guestfs_error_handler_cb cb,\n"
3140 "                                 void *opaque);\n"
3141 "\n"
3142 msgstr ""
3143
3144 # type: textblock
3145 #. type: textblock
3146 #: ../src/guestfs.pod:1430
3147 msgid ""
3148 "The callback C<cb> will be called if there is an error.  The parameters "
3149 "passed to the callback are an opaque data pointer and the error message "
3150 "string."
3151 msgstr ""
3152
3153 # type: textblock
3154 #. type: textblock
3155 #: ../src/guestfs.pod:1434
3156 msgid ""
3157 "C<errno> is not passed to the callback.  To get that the callback must call "
3158 "L</guestfs_last_errno>."
3159 msgstr ""
3160
3161 # type: textblock
3162 #. type: textblock
3163 #: ../src/guestfs.pod:1437
3164 msgid ""
3165 "Note that the message string C<msg> is freed as soon as the callback "
3166 "function returns, so if you want to stash it somewhere you must make your "
3167 "own copy."
3168 msgstr ""
3169
3170 # type: textblock
3171 #. type: textblock
3172 #: ../src/guestfs.pod:1441
3173 msgid "The default handler prints messages on C<stderr>."
3174 msgstr ""
3175
3176 # type: textblock
3177 #. type: textblock
3178 #: ../src/guestfs.pod:1443
3179 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
3180 msgstr ""
3181
3182 # type: =head2
3183 #. type: =head2
3184 #: ../src/guestfs.pod:1445
3185 msgid "guestfs_get_error_handler"
3186 msgstr ""
3187
3188 # type: verbatim
3189 #. type: verbatim
3190 #: ../src/guestfs.pod:1447
3191 #, no-wrap
3192 msgid ""
3193 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
3194 "                                                     void **opaque_rtn);\n"
3195 "\n"
3196 msgstr ""
3197
3198 # type: textblock
3199 #. type: textblock
3200 #: ../src/guestfs.pod:1450
3201 msgid "Returns the current error handler callback."
3202 msgstr ""
3203
3204 # type: =head2
3205 #. type: =head2
3206 #: ../src/guestfs.pod:1452
3207 msgid "guestfs_set_out_of_memory_handler"
3208 msgstr ""
3209
3210 # type: verbatim
3211 #. type: verbatim
3212 #: ../src/guestfs.pod:1454
3213 #, no-wrap
3214 msgid ""
3215 " typedef void (*guestfs_abort_cb) (void);\n"
3216 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
3217 "                                        guestfs_abort_cb);\n"
3218 "\n"
3219 msgstr ""
3220
3221 # type: textblock
3222 #. type: textblock
3223 #: ../src/guestfs.pod:1458
3224 msgid ""
3225 "The callback C<cb> will be called if there is an out of memory situation.  "
3226 "I<Note this callback must not return>."
3227 msgstr ""
3228
3229 # type: textblock
3230 #. type: textblock
3231 #: ../src/guestfs.pod:1461
3232 msgid "The default is to call L<abort(3)>."
3233 msgstr ""
3234
3235 # type: textblock
3236 #. type: textblock
3237 #: ../src/guestfs.pod:1463
3238 msgid ""
3239 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
3240 msgstr ""
3241
3242 # type: =head2
3243 #. type: =head2
3244 #: ../src/guestfs.pod:1466
3245 msgid "guestfs_get_out_of_memory_handler"
3246 msgstr ""
3247
3248 # type: verbatim
3249 #. type: verbatim
3250 #: ../src/guestfs.pod:1468
3251 #, no-wrap
3252 msgid ""
3253 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
3254 "\n"
3255 msgstr ""
3256
3257 # type: textblock
3258 #. type: textblock
3259 #: ../src/guestfs.pod:1470
3260 msgid "This returns the current out of memory handler."
3261 msgstr ""
3262
3263 # type: =head1
3264 #. type: =head1
3265 #: ../src/guestfs.pod:1472
3266 msgid "API CALLS"
3267 msgstr ""
3268
3269 # type: textblock
3270 #. type: textblock
3271 #: ../src/guestfs.pod:1474 ../fish/guestfish.pod:1010
3272 msgid "@ACTIONS@"
3273 msgstr ""
3274
3275 # type: =head1
3276 #. type: =head1
3277 #: ../src/guestfs.pod:1476
3278 msgid "STRUCTURES"
3279 msgstr ""
3280
3281 # type: textblock
3282 #. type: textblock
3283 #: ../src/guestfs.pod:1478
3284 msgid "@STRUCTS@"
3285 msgstr ""
3286
3287 # type: =head1
3288 #. type: =head1
3289 #: ../src/guestfs.pod:1480
3290 msgid "AVAILABILITY"
3291 msgstr ""
3292
3293 # type: =head2
3294 #. type: =head2
3295 #: ../src/guestfs.pod:1482
3296 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
3297 msgstr ""
3298
3299 # type: textblock
3300 #. type: textblock
3301 #: ../src/guestfs.pod:1484
3302 msgid ""
3303 "Using L</guestfs_available> you can test availability of the following "
3304 "groups of functions.  This test queries the appliance to see if the "
3305 "appliance you are currently using supports the functionality."
3306 msgstr ""
3307
3308 # type: textblock
3309 #. type: textblock
3310 #: ../src/guestfs.pod:1489
3311 msgid "@AVAILABILITY@"
3312 msgstr ""
3313
3314 # type: =head2
3315 #. type: =head2
3316 #: ../src/guestfs.pod:1491
3317 msgid "GUESTFISH supported COMMAND"
3318 msgstr ""
3319
3320 # type: textblock
3321 #. type: textblock
3322 #: ../src/guestfs.pod:1493
3323 msgid ""
3324 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
3325 "prints out the available groups and whether they are supported by this build "
3326 "of libguestfs.  Note however that you have to do C<run> first."
3327 msgstr ""
3328
3329 # type: =head2
3330 #. type: =head2
3331 #: ../src/guestfs.pod:1498
3332 msgid "SINGLE CALLS AT COMPILE TIME"
3333 msgstr ""
3334
3335 # type: textblock
3336 #. type: textblock
3337 #: ../src/guestfs.pod:1500
3338 msgid ""
3339 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
3340 "function, such as:"
3341 msgstr ""
3342
3343 # type: verbatim
3344 #. type: verbatim
3345 #: ../src/guestfs.pod:1503
3346 #, no-wrap
3347 msgid ""
3348 " #define LIBGUESTFS_HAVE_DD 1\n"
3349 "\n"
3350 msgstr ""
3351
3352 # type: textblock
3353 #. type: textblock
3354 #: ../src/guestfs.pod:1505
3355 msgid "if L</guestfs_dd> is available."
3356 msgstr ""
3357
3358 # type: textblock
3359 #. type: textblock
3360 #: ../src/guestfs.pod:1507
3361 msgid ""
3362 "Before version 1.5.8, if you needed to test whether a single libguestfs "
3363 "function is available at compile time, we recommended using build tools such "
3364 "as autoconf or cmake.  For example in autotools you could use:"
3365 msgstr ""
3366
3367 # type: verbatim
3368 #. type: verbatim
3369 #: ../src/guestfs.pod:1512
3370 #, no-wrap
3371 msgid ""
3372 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
3373 " AC_CHECK_FUNCS([guestfs_dd])\n"
3374 "\n"
3375 msgstr ""
3376
3377 # type: textblock
3378 #. type: textblock
3379 #: ../src/guestfs.pod:1515
3380 msgid ""
3381 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
3382 "in your program."
3383 msgstr ""
3384
3385 # type: =head2
3386 #. type: =head2
3387 #: ../src/guestfs.pod:1518
3388 msgid "SINGLE CALLS AT RUN TIME"
3389 msgstr ""
3390
3391 # type: textblock
3392 #. type: textblock
3393 #: ../src/guestfs.pod:1520
3394 msgid ""
3395 "Testing at compile time doesn't guarantee that a function really exists in "
3396 "the library.  The reason is that you might be dynamically linked against a "
3397 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
3398 "This situation unfortunately results in a segmentation fault, which is a "
3399 "shortcoming of the C dynamic linking system itself."
3400 msgstr ""
3401
3402 # type: textblock
3403 #. type: textblock
3404 #: ../src/guestfs.pod:1527
3405 msgid ""
3406 "You can use L<dlopen(3)> to test if a function is available at run time, as "
3407 "in this example program (note that you still need the compile time check as "
3408 "well):"
3409 msgstr ""
3410
3411 # type: verbatim
3412 #. type: verbatim
3413 #: ../src/guestfs.pod:1531
3414 #, no-wrap
3415 msgid ""
3416 " #include <stdio.h>\n"
3417 " #include <stdlib.h>\n"
3418 " #include <unistd.h>\n"
3419 " #include <dlfcn.h>\n"
3420 " #include <guestfs.h>\n"
3421 " \n"
3422 msgstr ""
3423
3424 # type: verbatim
3425 #. type: verbatim
3426 #: ../src/guestfs.pod:1537
3427 #, no-wrap
3428 msgid ""
3429 " main ()\n"
3430 " {\n"
3431 " #ifdef LIBGUESTFS_HAVE_DD\n"
3432 "   void *dl;\n"
3433 "   int has_function;\n"
3434 " \n"
3435 msgstr ""
3436
3437 # type: verbatim
3438 #. type: verbatim
3439 #: ../src/guestfs.pod:1543
3440 #, no-wrap
3441 msgid ""
3442 "   /* Test if the function guestfs_dd is really available. */\n"
3443 "   dl = dlopen (NULL, RTLD_LAZY);\n"
3444 "   if (!dl) {\n"
3445 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
3446 "     exit (EXIT_FAILURE);\n"
3447 "   }\n"
3448 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
3449 "   dlclose (dl);\n"
3450 " \n"
3451 msgstr ""
3452
3453 # type: verbatim
3454 #. type: verbatim
3455 #: ../src/guestfs.pod:1552
3456 #, no-wrap
3457 msgid ""
3458 "   if (!has_function)\n"
3459 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
3460 "   else {\n"
3461 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
3462 "     /* Now it's safe to call\n"
3463 "     guestfs_dd (g, \"foo\", \"bar\");\n"
3464 "     */\n"
3465 "   }\n"
3466 " #else\n"
3467 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
3468 " #endif\n"
3469 "  }\n"
3470 "\n"
3471 msgstr ""
3472
3473 # type: textblock
3474 #. type: textblock
3475 #: ../src/guestfs.pod:1565
3476 msgid ""
3477 "You may think the above is an awful lot of hassle, and it is.  There are "
3478 "other ways outside of the C linking system to ensure that this kind of "
3479 "incompatibility never arises, such as using package versioning:"
3480 msgstr ""
3481
3482 # type: verbatim
3483 #. type: verbatim
3484 #: ../src/guestfs.pod:1570
3485 #, no-wrap
3486 msgid ""
3487 " Requires: libguestfs >= 1.0.80\n"
3488 "\n"
3489 msgstr ""
3490
3491 # type: =head1
3492 #. type: =head1
3493 #: ../src/guestfs.pod:1572
3494 msgid "CALLS WITH OPTIONAL ARGUMENTS"
3495 msgstr ""
3496
3497 # type: textblock
3498 #. type: textblock
3499 #: ../src/guestfs.pod:1574
3500 msgid ""
3501 "A recent feature of the API is the introduction of calls which take optional "
3502 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
3503 "takes variable arguments (ie. C<...>), as in this example:"
3504 msgstr ""
3505
3506 # type: verbatim
3507 #. type: verbatim
3508 #: ../src/guestfs.pod:1579
3509 #, no-wrap
3510 msgid ""
3511 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
3512 "\n"
3513 msgstr ""
3514
3515 # type: textblock
3516 #. type: textblock
3517 #: ../src/guestfs.pod:1581
3518 msgid ""
3519 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
3520 "call with no optional arguments specified:"
3521 msgstr ""
3522
3523 # type: verbatim
3524 #. type: verbatim
3525 #: ../src/guestfs.pod:1584
3526 #, no-wrap
3527 msgid ""
3528 " guestfs_add_drive_opts (g, filename, -1);\n"
3529 "\n"
3530 msgstr ""
3531
3532 # type: textblock
3533 #. type: textblock
3534 #: ../src/guestfs.pod:1586
3535 msgid "With a single optional argument:"
3536 msgstr ""
3537
3538 # type: verbatim
3539 #. type: verbatim
3540 #: ../src/guestfs.pod:1588
3541 #, no-wrap
3542 msgid ""
3543 " guestfs_add_drive_opts (g, filename,\n"
3544 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3545 "                         -1);\n"
3546 "\n"
3547 msgstr ""
3548
3549 # type: textblock
3550 #. type: textblock
3551 #: ../src/guestfs.pod:1592
3552 msgid "With two:"
3553 msgstr ""
3554
3555 # type: verbatim
3556 #. type: verbatim
3557 #: ../src/guestfs.pod:1594
3558 #, no-wrap
3559 msgid ""
3560 " guestfs_add_drive_opts (g, filename,\n"
3561 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3562 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
3563 "                         -1);\n"
3564 "\n"
3565 msgstr ""
3566
3567 # type: textblock
3568 #. type: textblock
3569 #: ../src/guestfs.pod:1599
3570 msgid ""
3571 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
3572 "happen!"
3573 msgstr ""
3574
3575 # type: =head2
3576 #. type: =head2
3577 #: ../src/guestfs.pod:1602
3578 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
3579 msgstr ""
3580
3581 # type: textblock
3582 #. type: textblock
3583 #: ../src/guestfs.pod:1604
3584 msgid ""
3585 "The second variant has the same name with the suffix C<_va>, which works the "
3586 "same way but takes a C<va_list>.  See the C manual for details.  For the "
3587 "example function, this is declared:"
3588 msgstr ""
3589
3590 # type: verbatim
3591 #. type: verbatim
3592 #: ../src/guestfs.pod:1608
3593 #, no-wrap
3594 msgid ""
3595 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3596 "                                va_list args);\n"
3597 "\n"
3598 msgstr ""
3599
3600 # type: =head2
3601 #. type: =head2
3602 #: ../src/guestfs.pod:1611
3603 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
3604 msgstr ""
3605
3606 # type: textblock
3607 #. type: textblock
3608 #: ../src/guestfs.pod:1613
3609 msgid ""
3610 "The third variant is useful where you need to construct these calls.  You "
3611 "pass in a structure where you fill in the optional fields.  The structure "
3612 "has a bitmask as the first element which you must set to indicate which "
3613 "fields you have filled in.  For our example function the structure and call "
3614 "are declared:"
3615 msgstr ""
3616
3617 # type: verbatim
3618 #. type: verbatim
3619 #: ../src/guestfs.pod:1619
3620 #, no-wrap
3621 msgid ""
3622 " struct guestfs_add_drive_opts_argv {\n"
3623 "   uint64_t bitmask;\n"
3624 "   int readonly;\n"
3625 "   const char *format;\n"
3626 "   /* ... */\n"
3627 " };\n"
3628 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3629 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3630 "\n"
3631 msgstr ""
3632
3633 # type: textblock
3634 #. type: textblock
3635 #: ../src/guestfs.pod:1628
3636 msgid "You could call it like this:"
3637 msgstr ""
3638
3639 # type: verbatim
3640 #. type: verbatim
3641 #: ../src/guestfs.pod:1630
3642 #, no-wrap
3643 msgid ""
3644 " struct guestfs_add_drive_opts_argv optargs = {\n"
3645 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3646 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3647 "   .readonly = 1,\n"
3648 "   .format = \"qcow2\"\n"
3649 " };\n"
3650 " \n"
3651 msgstr ""
3652
3653 # type: verbatim
3654 #. type: verbatim
3655 #: ../src/guestfs.pod:1637
3656 #, no-wrap
3657 msgid ""
3658 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3659 "\n"
3660 msgstr ""
3661
3662 # type: textblock
3663 #. type: textblock
3664 #: ../src/guestfs.pod:1639 ../src/guestfs-actions.pod:11
3665 #: ../src/guestfs-actions.pod:1915 ../src/guestfs-actions.pod:2842
3666 #: ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1287
3667 #: ../fish/guestfish-actions.pod:1923 ../tools/virt-win-reg.pl:704
3668 msgid "Notes:"
3669 msgstr ""
3670
3671 # type: textblock
3672 #. type: textblock
3673 #: ../src/guestfs.pod:1645
3674 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3675 msgstr ""
3676
3677 # type: textblock
3678 #. type: textblock
3679 #: ../src/guestfs.pod:1650
3680 msgid "You do not need to fill in all fields of the structure."
3681 msgstr ""
3682
3683 # type: textblock
3684 #. type: textblock
3685 #: ../src/guestfs.pod:1654
3686 msgid ""
3687 "There must be a one-to-one correspondence between fields of the structure "
3688 "that are filled in, and bits set in the bitmask."
3689 msgstr ""
3690
3691 # type: =head2
3692 #. type: =head2
3693 #: ../src/guestfs.pod:1659
3694 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3695 msgstr ""
3696
3697 # type: textblock
3698 #. type: textblock
3699 #: ../src/guestfs.pod:1661
3700 msgid ""
3701 "In other languages, optional arguments are expressed in the way that is "
3702 "natural for that language.  We refer you to the language-specific "
3703 "documentation for more details on that."
3704 msgstr ""
3705
3706 # type: textblock
3707 #. type: textblock
3708 #: ../src/guestfs.pod:1665
3709 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3710 msgstr ""
3711
3712 # type: =head2
3713 #. type: =head2
3714 #: ../src/guestfs.pod:1667
3715 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3716 msgstr ""
3717
3718 #. type: textblock
3719 #: ../src/guestfs.pod:1669
3720 msgid ""
3721 "B<Note:> This section documents the generic event mechanism introduced in "
3722 "libguestfs 1.10, which you should use in new code if possible.  The old "
3723 "functions C<guestfs_set_log_message_callback>, "
3724 "C<guestfs_set_subprocess_quit_callback>, "
3725 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
3726 "C<guestfs_set_progress_callback> are no longer documented in this manual "
3727 "page.  Because of the ABI guarantee, the old functions continue to work."
3728 msgstr ""
3729
3730 #. type: textblock
3731 #: ../src/guestfs.pod:1678
3732 msgid ""
3733 "Handles generate events when certain things happen, such as log messages "
3734 "being generated, progress messages during long-running operations, or the "
3735 "handle being closed.  The API calls described below let you register a "
3736 "callback to be called when events happen.  You can register multiple "
3737 "callbacks (for the same, different or overlapping sets of events), and "
3738 "individually remove callbacks.  If callbacks are not removed, then they "
3739 "remain in force until the handle is closed."
3740 msgstr ""
3741
3742 #. type: textblock
3743 #: ../src/guestfs.pod:1686
3744 msgid ""
3745 "In the current implementation, events are only generated synchronously: that "
3746 "means that events (and hence callbacks) can only happen while you are in the "
3747 "middle of making another libguestfs call.  The callback is called in the "
3748 "same thread."
3749 msgstr ""
3750
3751 #. type: textblock
3752 #: ../src/guestfs.pod:1691
3753 msgid ""
3754 "Events may contain a payload, usually nothing (void), an array of 64 bit "
3755 "unsigned integers, or a message buffer.  Payloads are discussed later on."
3756 msgstr ""
3757
3758 #. type: =head3
3759 #: ../src/guestfs.pod:1695
3760 msgid "CLASSES OF EVENTS"
3761 msgstr ""
3762
3763 #. type: =item
3764 #: ../src/guestfs.pod:1699
3765 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
3766 msgstr ""
3767
3768 #. type: textblock
3769 #: ../src/guestfs.pod:1702
3770 msgid ""
3771 "The callback function will be called while the handle is being closed "
3772 "(synchronously from L</guestfs_close>)."
3773 msgstr ""
3774
3775 # type: textblock
3776 #. type: textblock
3777 #: ../src/guestfs.pod:1705
3778 msgid ""
3779 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3780 "handles that are open when the program exits.  This means that this callback "
3781 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3782 "problems in higher-level languages (eg. if your HLL interpreter has already "
3783 "been cleaned up by the time this is called, and if your callback then jumps "
3784 "into some HLL function)."
3785 msgstr ""
3786
3787 #. type: textblock
3788 #: ../src/guestfs.pod:1712
3789 msgid ""
3790 "If no callback is registered: the handle is closed without any callback "
3791 "being invoked."
3792 msgstr ""
3793
3794 #. type: =item
3795 #: ../src/guestfs.pod:1715
3796 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
3797 msgstr ""
3798
3799 #. type: textblock
3800 #: ../src/guestfs.pod:1718
3801 msgid ""
3802 "The callback function will be called when the child process quits, either "
3803 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3804 "corresponds to a transition from any state to the CONFIG state)."
3805 msgstr ""
3806
3807 #. type: textblock
3808 #: ../src/guestfs.pod:1722 ../src/guestfs.pod:1731
3809 msgid "If no callback is registered: the event is ignored."
3810 msgstr ""
3811
3812 #. type: =item
3813 #: ../src/guestfs.pod:1724
3814 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
3815 msgstr ""
3816
3817 #. type: textblock
3818 #: ../src/guestfs.pod:1727
3819 msgid ""
3820 "The callback function will be called when the child process becomes ready "
3821 "first time after it has been launched.  (This corresponds to a transition "
3822 "from LAUNCHING to the READY state)."
3823 msgstr ""
3824
3825 #. type: =item
3826 #: ../src/guestfs.pod:1733
3827 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
3828 msgstr ""
3829
3830 # type: textblock
3831 #. type: textblock
3832 #: ../src/guestfs.pod:1736
3833 msgid ""
3834 "Some long-running operations can generate progress messages.  If this "
3835 "callback is registered, then it will be called each time a progress message "
3836 "is generated (usually two seconds after the operation started, and three "
3837 "times per second thereafter until it completes, although the frequency may "
3838 "change in future versions)."
3839 msgstr ""
3840
3841 #. type: textblock
3842 #: ../src/guestfs.pod:1742
3843 msgid ""
3844 "The callback receives in the payload four unsigned 64 bit numbers which are "
3845 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
3846 msgstr ""
3847
3848 #. type: textblock
3849 #: ../src/guestfs.pod:1745
3850 msgid ""
3851 "The units of C<total> are not defined, although for some operations C<total> "
3852 "may relate in some way to the amount of data to be transferred (eg. in bytes "
3853 "or megabytes), and C<position> may be the portion which has been transferred."
3854 msgstr ""
3855
3856 # type: textblock
3857 #. type: textblock
3858 #: ../src/guestfs.pod:1750
3859 msgid "The only defined and stable parts of the API are:"
3860 msgstr ""
3861
3862 # type: textblock
3863 #. type: textblock
3864 #: ../src/guestfs.pod:1756
3865 msgid ""
3866 "The callback can display to the user some type of progress bar or indicator "
3867 "which shows the ratio of C<position>:C<total>."
3868 msgstr ""
3869
3870 # type: textblock
3871 #. type: textblock
3872 #: ../src/guestfs.pod:1761
3873 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3874 msgstr ""
3875
3876 #. type: textblock
3877 #: ../src/guestfs.pod:1765
3878 msgid ""
3879 "If any progress notification is sent during a call, then a final progress "
3880 "notification is always sent when C<position> = C<total> (I<unless> the call "
3881 "fails with an error)."
3882 msgstr ""
3883
3884 # type: textblock
3885 #. type: textblock
3886 #: ../src/guestfs.pod:1769
3887 msgid ""
3888 "This is to simplify caller code, so callers can easily set the progress "
3889 "indicator to \"100%\" at the end of the operation, without requiring special "
3890 "code to detect this case."
3891 msgstr ""
3892
3893 #. type: textblock
3894 #: ../src/guestfs.pod:1775
3895 msgid ""
3896 "For some calls we are unable to estimate the progress of the call, but we "
3897 "can still generate progress messages to indicate activity.  This is known as "
3898 "\"pulse mode\", and is directly supported by certain progress bar "
3899 "implementations (eg. GtkProgressBar)."
3900 msgstr ""
3901
3902 #. type: textblock
3903 #: ../src/guestfs.pod:1780
3904 msgid ""
3905 "For these calls, zero or more progress messages are generated with "
3906 "C<position = 0> and C<total = 1>, followed by a final message with "
3907 "C<position = total = 1>."
3908 msgstr ""
3909
3910 #. type: textblock
3911 #: ../src/guestfs.pod:1784
3912 msgid ""
3913 "As noted above, if the call fails with an error then the final message may "
3914 "not be generated."
3915 msgstr ""
3916
3917 #. type: textblock
3918 #: ../src/guestfs.pod:1789
3919 msgid ""
3920 "The callback also receives the procedure number (C<proc_nr>) and serial "
3921 "number (C<serial>) of the call.  These are only useful for debugging "
3922 "protocol issues, and the callback can normally ignore them.  The callback "
3923 "may want to print these numbers in error messages or debugging messages."
3924 msgstr ""
3925
3926 #. type: textblock
3927 #: ../src/guestfs.pod:1795
3928 msgid "If no callback is registered: progress messages are discarded."
3929 msgstr ""
3930
3931 #. type: =item
3932 #: ../src/guestfs.pod:1797
3933 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
3934 msgstr ""
3935
3936 #. type: textblock
3937 #: ../src/guestfs.pod:1800
3938 msgid ""
3939 "The callback function is called whenever a log message is generated by qemu, "
3940 "the appliance kernel, guestfsd (daemon), or utility programs."
3941 msgstr ""
3942
3943 #. type: textblock
3944 #: ../src/guestfs.pod:1803
3945 msgid ""
3946 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
3947 "guestfs_launch>) then additional debug messages are generated."
3948 msgstr ""
3949
3950 #. type: textblock
3951 #: ../src/guestfs.pod:1806 ../src/guestfs.pod:1820
3952 msgid ""
3953 "If no callback is registered: the messages are discarded unless the verbose "
3954 "flag is set in which case they are sent to stderr.  You can override the "
3955 "printing of verbose messages to stderr by setting up a callback."
3956 msgstr ""
3957
3958 #. type: =item
3959 #: ../src/guestfs.pod:1811
3960 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
3961 msgstr ""
3962
3963 #. type: textblock
3964 #: ../src/guestfs.pod:1814
3965 msgid ""
3966 "The callback function is called whenever a log message is generated by the "
3967 "library part of libguestfs."
3968 msgstr ""
3969
3970 #. type: textblock
3971 #: ../src/guestfs.pod:1817
3972 msgid ""
3973 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
3974 "messages are generated."
3975 msgstr ""
3976
3977 #. type: =item
3978 #: ../src/guestfs.pod:1825
3979 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
3980 msgstr ""
3981
3982 #. type: textblock
3983 #: ../src/guestfs.pod:1828
3984 msgid ""
3985 "The callback function is called whenever a trace message is generated.  This "
3986 "only applies if the trace flag (L</guestfs_set_trace>) is set."
3987 msgstr ""
3988
3989 #. type: textblock
3990 #: ../src/guestfs.pod:1831
3991 msgid ""
3992 "If no callback is registered: the messages are sent to stderr.  You can "
3993 "override the printing of trace messages to stderr by setting up a callback."
3994 msgstr ""
3995
3996 #. type: =head3
3997 #: ../src/guestfs.pod:1837
3998 msgid "guestfs_set_event_callback"
3999 msgstr ""
4000
4001 #. type: verbatim
4002 #: ../src/guestfs.pod:1839
4003 #, no-wrap
4004 msgid ""
4005 " int guestfs_set_event_callback (guestfs_h *g,\n"
4006 "                                 guestfs_event_callback cb,\n"
4007 "                                 uint64_t event_bitmask,\n"
4008 "                                 int flags,\n"
4009 "                                 void *opaque);\n"
4010 "\n"
4011 msgstr ""
4012
4013 #. type: textblock
4014 #: ../src/guestfs.pod:1845
4015 msgid ""
4016 "This function registers a callback (C<cb>) for all event classes in the "
4017 "C<event_bitmask>."
4018 msgstr ""
4019
4020 #. type: textblock
4021 #: ../src/guestfs.pod:1848
4022 msgid ""
4023 "For example, to register for all log message events, you could call this "
4024 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
4025 "To register a single callback for all possible classes of events, use "
4026 "C<GUESTFS_EVENT_ALL>."
4027 msgstr ""
4028
4029 #. type: textblock
4030 #: ../src/guestfs.pod:1854
4031 msgid "C<flags> should always be passed as 0."
4032 msgstr ""
4033
4034 #. type: textblock
4035 #: ../src/guestfs.pod:1856
4036 msgid ""
4037 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
4038 "it for any purpose."
4039 msgstr ""
4040
4041 #. type: textblock
4042 #: ../src/guestfs.pod:1859
4043 msgid ""
4044 "The return value is the event handle (an integer) which you can use to "
4045 "delete the callback (see below)."
4046 msgstr ""
4047
4048 #. type: textblock
4049 #: ../src/guestfs.pod:1862
4050 msgid ""
4051 "If there is an error, this function returns C<-1>, and sets the error in the "
4052 "handle in the usual way (see L</guestfs_last_error> etc.)"
4053 msgstr ""
4054
4055 #. type: textblock
4056 #: ../src/guestfs.pod:1865
4057 msgid ""
4058 "Callbacks remain in effect until they are deleted, or until the handle is "
4059 "closed."
4060 msgstr ""
4061
4062 #. type: textblock
4063 #: ../src/guestfs.pod:1868
4064 msgid ""
4065 "In the case where multiple callbacks are registered for a particular event "
4066 "class, all of the callbacks are called.  The order in which multiple "
4067 "callbacks are called is not defined."
4068 msgstr ""
4069
4070 #. type: =head3
4071 #: ../src/guestfs.pod:1872
4072 msgid "guestfs_delete_event_callback"
4073 msgstr ""
4074
4075 #. type: verbatim
4076 #: ../src/guestfs.pod:1874
4077 #, no-wrap
4078 msgid ""
4079 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
4080 "\n"
4081 msgstr ""
4082
4083 #. type: textblock
4084 #: ../src/guestfs.pod:1876
4085 msgid ""
4086 "Delete a callback that was previously registered.  C<event_handle> should be "
4087 "the integer that was returned by a previous call to "
4088 "C<guestfs_set_event_callback> on the same handle."
4089 msgstr ""
4090
4091 #. type: =head3
4092 #: ../src/guestfs.pod:1880
4093 msgid "guestfs_event_callback"
4094 msgstr ""
4095
4096 #. type: verbatim
4097 #: ../src/guestfs.pod:1882
4098 #, no-wrap
4099 msgid ""
4100 " typedef void (*guestfs_event_callback) (\n"
4101 "                  guestfs_h *g,\n"
4102 "                  void *opaque,\n"
4103 "                  uint64_t event,\n"
4104 "                  int event_handle,\n"
4105 "                  int flags,\n"
4106 "                  const char *buf, size_t buf_len,\n"
4107 "                  const uint64_t *array, size_t array_len);\n"
4108 "\n"
4109 msgstr ""
4110
4111 #. type: textblock
4112 #: ../src/guestfs.pod:1891
4113 msgid ""
4114 "This is the type of the event callback function that you have to provide."
4115 msgstr ""
4116
4117 #. type: textblock
4118 #: ../src/guestfs.pod:1894
4119 msgid ""
4120 "The basic parameters are: the handle (C<g>), the opaque user pointer "
4121 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
4122 "handle, and C<flags> which in the current API you should ignore."
4123 msgstr ""
4124
4125 #. type: textblock
4126 #: ../src/guestfs.pod:1898
4127 msgid ""
4128 "The remaining parameters contain the event payload (if any).  Each event may "
4129 "contain a payload, which usually relates to the event class, but for future "
4130 "proofing your code should be written to handle any payload for any event "
4131 "class."
4132 msgstr ""
4133
4134 #. type: textblock
4135 #: ../src/guestfs.pod:1903
4136 msgid ""
4137 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
4138 "there is no message buffer).  Note that this message buffer can contain "
4139 "arbitrary 8 bit data, including NUL bytes."
4140 msgstr ""
4141
4142 #. type: textblock
4143 #: ../src/guestfs.pod:1907
4144 msgid ""
4145 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
4146 "moment this is only used for progress messages."
4147 msgstr ""
4148
4149 #. type: =head3
4150 #: ../src/guestfs.pod:1910
4151 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
4152 msgstr ""
4153
4154 #. type: textblock
4155 #: ../src/guestfs.pod:1912
4156 msgid ""
4157 "One motivation for the generic event API was to allow GUI programs to "
4158 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
4159 "unconditionally to C<stderr>."
4160 msgstr ""
4161
4162 #. type: textblock
4163 #: ../src/guestfs.pod:1916
4164 msgid ""
4165 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
4166 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
4167 "messages are not events; you must capture error messages separately)."
4168 msgstr ""
4169
4170 #. type: textblock
4171 #: ../src/guestfs.pod:1921
4172 msgid ""
4173 "Programs have to set up a callback to capture the classes of events of "
4174 "interest:"
4175 msgstr ""
4176
4177 #. type: verbatim
4178 #: ../src/guestfs.pod:1924
4179 #, no-wrap
4180 msgid ""
4181 " int eh =\n"
4182 "   guestfs_set_event_callback\n"
4183 "     (g, message_callback,\n"
4184 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
4185 "      GUESTFS_EVENT_TRACE,\n"
4186 "      0, NULL) == -1)\n"
4187 " if (eh == -1) {\n"
4188 "   // handle error in the usual way\n"
4189 " }\n"
4190 "\n"
4191 msgstr ""
4192
4193 #. type: textblock
4194 #: ../src/guestfs.pod:1934
4195 msgid ""
4196 "The callback can then direct messages to the appropriate place.  In this "
4197 "example, messages are directed to syslog:"
4198 msgstr ""
4199
4200 #. type: verbatim
4201 #: ../src/guestfs.pod:1937
4202 #, no-wrap
4203 msgid ""
4204 " static void\n"
4205 " message_callback (\n"
4206 "         guestfs_h *g,\n"
4207 "         void *opaque,\n"
4208 "         uint64_t event,\n"
4209 "         int event_handle,\n"
4210 "         int flags,\n"
4211 "         const char *buf, size_t buf_len,\n"
4212 "         const uint64_t *array, size_t array_len)\n"
4213 " {\n"
4214 "   const int priority = LOG_USER|LOG_INFO;\n"
4215 "   if (buf_len > 0)\n"
4216 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
4217 " }\n"
4218 "\n"
4219 msgstr ""
4220
4221 # type: =head1
4222 #. type: =head1
4223 #: ../src/guestfs.pod:1952
4224 msgid "PRIVATE DATA AREA"
4225 msgstr ""
4226
4227 #. type: textblock
4228 #: ../src/guestfs.pod:1954
4229 msgid ""
4230 "You can attach named pieces of private data to the libguestfs handle, fetch "
4231 "them by name, and walk over them, for the lifetime of the handle.  This is "
4232 "called the private data area and is only available from the C API."
4233 msgstr ""
4234
4235 # type: textblock
4236 #. type: textblock
4237 #: ../src/guestfs.pod:1959
4238 msgid "To attach a named piece of data, use the following call:"
4239 msgstr ""
4240
4241 # type: verbatim
4242 #. type: verbatim
4243 #: ../src/guestfs.pod:1961
4244 #, no-wrap
4245 msgid ""
4246 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
4247 "\n"
4248 msgstr ""
4249
4250 #. type: textblock
4251 #: ../src/guestfs.pod:1963
4252 msgid ""
4253 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
4254 "pointer (which can be C<NULL>).  Any previous item with the same key is "
4255 "overwritten."
4256 msgstr ""
4257
4258 #. type: textblock
4259 #: ../src/guestfs.pod:1967
4260 msgid ""
4261 "You can use any C<key> you want, but your key should I<not> start with an "
4262 "underscore character.  Keys beginning with an underscore character are "
4263 "reserved for internal libguestfs purposes (eg. for implementing language "
4264 "bindings).  It is recommended that you prefix the key with some unique "
4265 "string to avoid collisions with other users."
4266 msgstr ""
4267
4268 # type: textblock
4269 #. type: textblock
4270 #: ../src/guestfs.pod:1973
4271 msgid "To retrieve the pointer, use:"
4272 msgstr ""
4273
4274 # type: verbatim
4275 #. type: verbatim
4276 #: ../src/guestfs.pod:1975
4277 #, no-wrap
4278 msgid ""
4279 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
4280 "\n"
4281 msgstr ""
4282
4283 # type: textblock
4284 #. type: textblock
4285 #: ../src/guestfs.pod:1977
4286 msgid ""
4287 "This function returns C<NULL> if either no data is found associated with "
4288 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
4289 "C<NULL>."
4290 msgstr ""
4291
4292 #. type: textblock
4293 #: ../src/guestfs.pod:1981
4294 msgid ""
4295 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
4296 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
4297 "all.  In particular, libguestfs does I<not> try to free the data when the "
4298 "handle is closed.  If the data must be freed, then the caller must either "
4299 "free it before calling L</guestfs_close> or must set up a close callback to "
4300 "do it (see L</GUESTFS_EVENT_CLOSE>)."
4301 msgstr ""
4302
4303 #. type: textblock
4304 #: ../src/guestfs.pod:1988
4305 msgid "To walk over all entries, use these two functions:"
4306 msgstr ""
4307
4308 #. type: verbatim
4309 #: ../src/guestfs.pod:1990
4310 #, no-wrap
4311 msgid ""
4312 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
4313 "\n"
4314 msgstr ""
4315
4316 #. type: verbatim
4317 #: ../src/guestfs.pod:1992
4318 #, no-wrap
4319 msgid ""
4320 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
4321 "\n"
4322 msgstr ""
4323
4324 #. type: textblock
4325 #: ../src/guestfs.pod:1994
4326 msgid ""
4327 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
4328 "not have any particular meaning -- keys are not returned in any defined "
4329 "order).  A pointer to the key is returned in C<*key_rtn> and the "
4330 "corresponding data pointer is returned from the function.  C<NULL> is "
4331 "returned if there are no keys stored in the handle."
4332 msgstr ""
4333
4334 #. type: textblock
4335 #: ../src/guestfs.pod:2000
4336 msgid ""
4337 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
4338 "value of this function is also C<NULL> is there are no further entries to "
4339 "return."
4340 msgstr ""
4341
4342 #. type: textblock
4343 #: ../src/guestfs.pod:2004
4344 msgid "Notes about walking over entries:"
4345 msgstr ""
4346
4347 #. type: textblock
4348 #: ../src/guestfs.pod:2010
4349 msgid ""
4350 "You must not call C<guestfs_set_private> while walking over the entries."
4351 msgstr ""
4352
4353 #. type: textblock
4354 #: ../src/guestfs.pod:2015
4355 msgid ""
4356 "The handle maintains an internal iterator which is reset when you call "
4357 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
4358 "call C<guestfs_set_private>."
4359 msgstr ""
4360
4361 #. type: textblock
4362 #: ../src/guestfs.pod:2021
4363 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
4364 msgstr ""
4365
4366 #. type: verbatim
4367 #: ../src/guestfs.pod:2023
4368 #, no-wrap
4369 msgid ""
4370 " guestfs_set_private (g, key, NULL);\n"
4371 "\n"
4372 msgstr ""
4373
4374 #. type: textblock
4375 #: ../src/guestfs.pod:2025
4376 msgid "then that C<key> is not returned when walking."
4377 msgstr ""
4378
4379 #. type: textblock
4380 #: ../src/guestfs.pod:2029
4381 msgid ""
4382 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
4383 "C<guestfs_next_private> or C<guestfs_set_private>."
4384 msgstr ""
4385
4386 #. type: textblock
4387 #: ../src/guestfs.pod:2035
4388 msgid ""
4389 "The following example code shows how to print all keys and data pointers "
4390 "that are associated with the handle C<g>:"
4391 msgstr ""
4392
4393 #. type: verbatim
4394 #: ../src/guestfs.pod:2038
4395 #, no-wrap
4396 msgid ""
4397 " const char *key;\n"
4398 " void *data = guestfs_first_private (g, &key);\n"
4399 " while (data != NULL)\n"
4400 "   {\n"
4401 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
4402 "     data = guestfs_next_private (g, &key);\n"
4403 "   }\n"
4404 "\n"
4405 msgstr ""
4406
4407 #. type: textblock
4408 #: ../src/guestfs.pod:2046
4409 msgid ""
4410 "More commonly you are only interested in keys that begin with an application-"
4411 "specific prefix C<foo_>.  Modify the loop like so:"
4412 msgstr ""
4413
4414 #. type: verbatim
4415 #: ../src/guestfs.pod:2049
4416 #, no-wrap
4417 msgid ""
4418 " const char *key;\n"
4419 " void *data = guestfs_first_private (g, &key);\n"
4420 " while (data != NULL)\n"
4421 "   {\n"
4422 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4423 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
4424 "     data = guestfs_next_private (g, &key);\n"
4425 "   }\n"
4426 "\n"
4427 msgstr ""
4428
4429 #. type: textblock
4430 #: ../src/guestfs.pod:2058
4431 msgid ""
4432 "If you need to modify keys while walking, then you have to jump back to the "
4433 "beginning of the loop.  For example, to delete all keys prefixed with "
4434 "C<foo_>:"
4435 msgstr ""
4436
4437 #. type: verbatim
4438 #: ../src/guestfs.pod:2062
4439 #, no-wrap
4440 msgid ""
4441 "  const char *key;\n"
4442 "  void *data;\n"
4443 " again:\n"
4444 "  data = guestfs_first_private (g, &key);\n"
4445 "  while (data != NULL)\n"
4446 "    {\n"
4447 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4448 "        {\n"
4449 "          guestfs_set_private (g, key, NULL);\n"
4450 "          /* note that 'key' pointer is now invalid, and so is\n"
4451 "             the internal iterator */\n"
4452 "          goto again;\n"
4453 "        }\n"
4454 "      data = guestfs_next_private (g, &key);\n"
4455 "    }\n"
4456 "\n"
4457 msgstr ""
4458
4459 #. type: textblock
4460 #: ../src/guestfs.pod:2078
4461 msgid ""
4462 "Note that the above loop is guaranteed to terminate because the keys are "
4463 "being deleted, but other manipulations of keys within the loop might not "
4464 "terminate unless you also maintain an indication of which keys have been "
4465 "visited."
4466 msgstr ""
4467
4468 # type: =end
4469 #. type: =end
4470 #: ../src/guestfs.pod:2083 ../src/guestfs.pod:2088
4471 msgid "html"
4472 msgstr ""
4473
4474 # type: textblock
4475 #. type: textblock
4476 #: ../src/guestfs.pod:2085
4477 msgid ""
4478 "<!-- old anchor for the next section --> <a name="
4479 "\"state_machine_and_low_level_event_api\"/>"
4480 msgstr ""
4481
4482 # type: =head1
4483 #. type: =head1
4484 #: ../src/guestfs.pod:2090
4485 msgid "ARCHITECTURE"
4486 msgstr ""
4487
4488 # type: textblock
4489 #. type: textblock
4490 #: ../src/guestfs.pod:2092
4491 msgid ""
4492 "Internally, libguestfs is implemented by running an appliance (a special "
4493 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
4494 "process of the main program."
4495 msgstr ""
4496
4497 # type: verbatim
4498 #. type: verbatim
4499 #: ../src/guestfs.pod:2096
4500 #, no-wrap
4501 msgid ""
4502 "  ___________________\n"
4503 " /                   \\\n"
4504 " | main program      |\n"
4505 " |                   |\n"
4506 " |                   |           child process / appliance\n"
4507 " |                   |           __________________________\n"
4508 " |                   |          / qemu                     \\\n"
4509 " +-------------------+   RPC    |      +-----------------+ |\n"
4510 " | libguestfs     <--------------------> guestfsd        | |\n"
4511 " |                   |          |      +-----------------+ |\n"
4512 " \\___________________/          |      | Linux kernel    | |\n"
4513 "                                |      +--^--------------+ |\n"
4514 "                                \\_________|________________/\n"
4515 "                                          |\n"
4516 "                                   _______v______\n"
4517 "                                  /              \\\n"
4518 "                                  | Device or    |\n"
4519 "                                  | disk image   |\n"
4520 "                                  \\______________/\n"
4521 "\n"
4522 msgstr ""
4523
4524 # type: textblock
4525 #. type: textblock
4526 #: ../src/guestfs.pod:2116
4527 msgid ""
4528 "The library, linked to the main program, creates the child process and hence "
4529 "the appliance in the L</guestfs_launch> function."
4530 msgstr ""
4531
4532 # type: textblock
4533 #. type: textblock
4534 #: ../src/guestfs.pod:2119
4535 msgid ""
4536 "Inside the appliance is a Linux kernel and a complete stack of userspace "
4537 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
4538 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
4539 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
4540 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
4541 "attached to the qemu process which translates device access by the "
4542 "appliance's Linux kernel into accesses to the image."
4543 msgstr ""
4544
4545 # type: textblock
4546 #. type: textblock
4547 #: ../src/guestfs.pod:2128
4548 msgid ""
4549 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
4550 "Although the disk image you are attached to might also be used by some "
4551 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
4552 "care if both libguestfs's qemu process and your virtual machine are trying "
4553 "to update the disk image at the same time, since these usually results in "
4554 "massive disk corruption)."
4555 msgstr ""
4556
4557 # type: =head1
4558 #. type: =head1
4559 #: ../src/guestfs.pod:2135
4560 msgid "STATE MACHINE"
4561 msgstr ""
4562
4563 # type: textblock
4564 #. type: textblock
4565 #: ../src/guestfs.pod:2137
4566 msgid "libguestfs uses a state machine to model the child process:"
4567 msgstr ""
4568
4569 # type: verbatim
4570 #. type: verbatim
4571 #: ../src/guestfs.pod:2139
4572 #, no-wrap
4573 msgid ""
4574 "                         |\n"
4575 "                    guestfs_create\n"
4576 "                         |\n"
4577 "                         |\n"
4578 "                     ____V_____\n"
4579 "                    /          \\\n"
4580 "                    |  CONFIG  |\n"
4581 "                    \\__________/\n"
4582 "                     ^ ^   ^  \\\n"
4583 "                    /  |    \\  \\ guestfs_launch\n"
4584 "                   /   |    _\\__V______\n"
4585 "                  /    |   /           \\\n"
4586 "                 /     |   | LAUNCHING |\n"
4587 "                /      |   \\___________/\n"
4588 "               /       |       /\n"
4589 "              /        |  guestfs_launch\n"
4590 "             /         |     /\n"
4591 "    ______  /        __|____V\n"
4592 "   /      \\ ------> /        \\\n"
4593 "   | BUSY |         | READY  |\n"
4594 "   \\______/ <------ \\________/\n"
4595 "\n"
4596 msgstr ""
4597
4598 # type: textblock
4599 #. type: textblock
4600 #: ../src/guestfs.pod:2161
4601 msgid ""
4602 "The normal transitions are (1) CONFIG (when the handle is created, but there "
4603 "is no child process), (2) LAUNCHING (when the child process is booting up), "
4604 "(3) alternating between READY and BUSY as commands are issued to, and "
4605 "carried out by, the child process."
4606 msgstr ""
4607
4608 # type: textblock
4609 #. type: textblock
4610 #: ../src/guestfs.pod:2166
4611 msgid ""
4612 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
4613 "asynchronously at any time (eg. due to some internal error), and that causes "
4614 "the state to transition back to CONFIG."
4615 msgstr ""
4616
4617 # type: textblock
4618 #. type: textblock
4619 #: ../src/guestfs.pod:2170
4620 msgid ""
4621 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
4622 "issued when in the CONFIG state."
4623 msgstr ""
4624
4625 # type: textblock
4626 #. type: textblock
4627 #: ../src/guestfs.pod:2173
4628 msgid ""
4629 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
4630 "L</guestfs_launch> blocks until the child process is READY to accept "
4631 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
4632 "moves the state from CONFIG to LAUNCHING while it is running."
4633 msgstr ""
4634
4635 # type: textblock
4636 #. type: textblock
4637 #: ../src/guestfs.pod:2179
4638 msgid ""
4639 "API actions such as L</guestfs_mount> can only be issued when in the READY "
4640 "state.  These API calls block waiting for the command to be carried out (ie. "
4641 "the state to transition to BUSY and then back to READY).  There are no non-"
4642 "blocking versions, and no way to issue more than one command per handle at "
4643 "the same time."
4644 msgstr ""
4645
4646 # type: textblock
4647 #. type: textblock
4648 #: ../src/guestfs.pod:2185
4649 msgid ""
4650 "Finally, the child process sends asynchronous messages back to the main "
4651 "program, such as kernel log messages.  You can register a callback to "
4652 "receive these messages."
4653 msgstr ""
4654
4655 # type: =head1
4656 #. type: =head1
4657 #: ../src/guestfs.pod:2189
4658 msgid "INTERNALS"
4659 msgstr ""
4660
4661 # type: =head2
4662 #. type: =head2
4663 #: ../src/guestfs.pod:2191
4664 msgid "COMMUNICATION PROTOCOL"
4665 msgstr ""
4666
4667 # type: textblock
4668 #. type: textblock
4669 #: ../src/guestfs.pod:2193
4670 msgid ""
4671 "Don't rely on using this protocol directly.  This section documents how it "
4672 "currently works, but it may change at any time."
4673 msgstr ""
4674
4675 # type: textblock
4676 #. type: textblock
4677 #: ../src/guestfs.pod:2196
4678 msgid ""
4679 "The protocol used to talk between the library and the daemon running inside "
4680 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
4681 "1014, RFC 1832, RFC 4506)."
4682 msgstr ""
4683
4684 # type: textblock
4685 #. type: textblock
4686 #: ../src/guestfs.pod:2200
4687 msgid ""
4688 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
4689 "this file is automatically generated)."
4690 msgstr ""
4691
4692 # type: textblock
4693 #. type: textblock
4694 #: ../src/guestfs.pod:2203
4695 msgid ""
4696 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
4697 "and C<FileOut> parameters, which are handled with very simple request/reply "
4698 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
4699 "parameters, which use the same request and reply messages, but they may also "
4700 "be followed by files sent using a chunked encoding."
4701 msgstr ""
4702
4703 # type: =head3
4704 #. type: =head3
4705 #: ../src/guestfs.pod:2210
4706 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
4707 msgstr ""
4708
4709 # type: textblock
4710 #. type: textblock
4711 #: ../src/guestfs.pod:2212
4712 msgid "For ordinary functions, the request message is:"
4713 msgstr ""
4714
4715 # type: verbatim
4716 #. type: verbatim
4717 #: ../src/guestfs.pod:2214
4718 #, no-wrap
4719 msgid ""
4720 " total length (header + arguments,\n"
4721 "      but not including the length word itself)\n"
4722 " struct guestfs_message_header (encoded as XDR)\n"
4723 " struct guestfs_<foo>_args (encoded as XDR)\n"
4724 "\n"
4725 msgstr ""
4726
4727 # type: textblock
4728 #. type: textblock
4729 #: ../src/guestfs.pod:2219
4730 msgid ""
4731 "The total length field allows the daemon to allocate a fixed size buffer "
4732 "into which it slurps the rest of the message.  As a result, the total length "
4733 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
4734 "effective size of any request is limited to somewhere under this size."
4735 msgstr ""
4736
4737 # type: textblock
4738 #. type: textblock
4739 #: ../src/guestfs.pod:2225
4740 msgid ""
4741 "Note also that many functions don't take any arguments, in which case the "
4742 "C<guestfs_I<foo>_args> is completely omitted."
4743 msgstr ""
4744
4745 # type: textblock
4746 #. type: textblock
4747 #: ../src/guestfs.pod:2228
4748 msgid ""
4749 "The header contains the procedure number (C<guestfs_proc>) which is how the "
4750 "receiver knows what type of args structure to expect, or none at all."
4751 msgstr ""
4752
4753 # type: textblock
4754 #. type: textblock
4755 #: ../src/guestfs.pod:2232
4756 msgid ""
4757 "For functions that take optional arguments, the optional arguments are "
4758 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
4759 "arguments.  A bitmask in the header indicates which optional arguments are "
4760 "meaningful.  The bitmask is also checked to see if it contains bits set "
4761 "which the daemon does not know about (eg. if more optional arguments were "
4762 "added in a later version of the library), and this causes the call to be "
4763 "rejected."
4764 msgstr ""
4765
4766 # type: textblock
4767 #. type: textblock
4768 #: ../src/guestfs.pod:2240
4769 msgid "The reply message for ordinary functions is:"
4770 msgstr ""
4771
4772 # type: verbatim
4773 #. type: verbatim
4774 #: ../src/guestfs.pod:2242
4775 #, no-wrap
4776 msgid ""
4777 " total length (header + ret,\n"
4778 "      but not including the length word itself)\n"
4779 " struct guestfs_message_header (encoded as XDR)\n"
4780 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4781 "\n"
4782 msgstr ""
4783
4784 # type: textblock
4785 #. type: textblock
4786 #: ../src/guestfs.pod:2247
4787 msgid ""
4788 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
4789 "functions that return no formal return values."
4790 msgstr ""
4791
4792 # type: textblock
4793 #. type: textblock
4794 #: ../src/guestfs.pod:2250
4795 msgid ""
4796 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
4797 msgstr ""
4798
4799 # type: textblock
4800 #. type: textblock
4801 #: ../src/guestfs.pod:2253
4802 msgid ""
4803 "In the case of an error, a flag is set in the header, and the reply message "
4804 "is slightly changed:"
4805 msgstr ""
4806
4807 # type: verbatim
4808 #. type: verbatim
4809 #: ../src/guestfs.pod:2256
4810 #, no-wrap
4811 msgid ""
4812 " total length (header + error,\n"
4813 "      but not including the length word itself)\n"
4814 " struct guestfs_message_header (encoded as XDR)\n"
4815 " struct guestfs_message_error (encoded as XDR)\n"
4816 "\n"
4817 msgstr ""
4818
4819 # type: textblock
4820 #. type: textblock
4821 #: ../src/guestfs.pod:2261
4822 msgid ""
4823 "The C<guestfs_message_error> structure contains the error message as a "
4824 "string."
4825 msgstr ""
4826
4827 # type: =head3
4828 #. type: =head3
4829 #: ../src/guestfs.pod:2264
4830 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
4831 msgstr ""
4832
4833 # type: textblock
4834 #. type: textblock
4835 #: ../src/guestfs.pod:2266
4836 msgid ""
4837 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
4838 "The normal request message is sent (see above).  However this is followed by "
4839 "a sequence of file chunks."
4840 msgstr ""
4841
4842 # type: verbatim
4843 #. type: verbatim
4844 #: ../src/guestfs.pod:2270
4845 #, no-wrap
4846 msgid ""
4847 " total length (header + arguments,\n"
4848 "      but not including the length word itself,\n"
4849 "      and not including the chunks)\n"
4850 " struct guestfs_message_header (encoded as XDR)\n"
4851 " struct guestfs_<foo>_args (encoded as XDR)\n"
4852 " sequence of chunks for FileIn param #0\n"
4853 " sequence of chunks for FileIn param #1 etc.\n"
4854 "\n"
4855 msgstr ""
4856
4857 # type: textblock
4858 #. type: textblock
4859 #: ../src/guestfs.pod:2278
4860 msgid "The \"sequence of chunks\" is:"
4861 msgstr ""
4862
4863 # type: verbatim
4864 #. type: verbatim
4865 #: ../src/guestfs.pod:2280
4866 #, no-wrap
4867 msgid ""
4868 " length of chunk (not including length word itself)\n"
4869 " struct guestfs_chunk (encoded as XDR)\n"
4870 " length of chunk\n"
4871 " struct guestfs_chunk (encoded as XDR)\n"
4872 "   ...\n"
4873 " length of chunk\n"
4874 " struct guestfs_chunk (with data.data_len == 0)\n"
4875 "\n"
4876 msgstr ""
4877
4878 # type: textblock
4879 #. type: textblock
4880 #: ../src/guestfs.pod:2288
4881 msgid ""
4882 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
4883 "is set in the final chunk to indicate either successful completion or early "
4884 "cancellation."
4885 msgstr ""
4886
4887 # type: textblock
4888 #. type: textblock
4889 #: ../src/guestfs.pod:2292
4890 msgid ""
4891 "At time of writing there are no functions that have more than one FileIn "
4892 "parameter.  However this is (theoretically) supported, by sending the "
4893 "sequence of chunks for each FileIn parameter one after another (from left to "
4894 "right)."
4895 msgstr ""
4896
4897 # type: textblock
4898 #. type: textblock
4899 #: ../src/guestfs.pod:2297
4900 msgid ""
4901 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
4902 "transfer.  The library does this by sending a chunk with a special flag set "
4903 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
4904 "RPC, does I<not> send any reply, and goes back to reading the next request."
4905 msgstr ""
4906
4907 # type: textblock
4908 #. type: textblock
4909 #: ../src/guestfs.pod:2303
4910 msgid ""
4911 "The daemon may also cancel.  It does this by writing a special word "
4912 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
4913 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
4914 "cancel chunk).  The special word is chosen so that even if cancellation "
4915 "happens right at the end of the transfer (after the library has finished "
4916 "writing and has started listening for the reply), the \"spurious\" cancel "
4917 "flag will not be confused with the reply message."
4918 msgstr ""
4919
4920 # type: textblock
4921 #. type: textblock
4922 #: ../src/guestfs.pod:2312
4923 msgid ""
4924 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
4925 "limit), and also files where the size is not known in advance (eg. from "
4926 "pipes or sockets).  However the chunks are rather small "
4927 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
4928 "to keep much in memory."
4929 msgstr ""
4930
4931 # type: =head3
4932 #. type: =head3
4933 #: ../src/guestfs.pod:2318
4934 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
4935 msgstr ""
4936
4937 # type: textblock
4938 #. type: textblock
4939 #: ../src/guestfs.pod:2320
4940 msgid ""
4941 "The protocol for FileOut parameters is exactly the same as for FileIn "
4942 "parameters, but with the roles of daemon and library reversed."
4943 msgstr ""
4944
4945 # type: verbatim
4946 #. type: verbatim
4947 #: ../src/guestfs.pod:2323
4948 #, no-wrap
4949 msgid ""
4950 " total length (header + ret,\n"
4951 "      but not including the length word itself,\n"
4952 "      and not including the chunks)\n"
4953 " struct guestfs_message_header (encoded as XDR)\n"
4954 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4955 " sequence of chunks for FileOut param #0\n"
4956 " sequence of chunks for FileOut param #1 etc.\n"
4957 "\n"
4958 msgstr ""
4959
4960 # type: =head3
4961 #. type: =head3
4962 #: ../src/guestfs.pod:2331
4963 msgid "INITIAL MESSAGE"
4964 msgstr ""
4965
4966 # type: textblock
4967 #. type: textblock
4968 #: ../src/guestfs.pod:2333
4969 msgid ""
4970 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
4971 "which indicates that the guest and daemon is alive.  This is what L</"
4972 "guestfs_launch> waits for."
4973 msgstr ""
4974
4975 # type: =head3
4976 #. type: =head3
4977 #: ../src/guestfs.pod:2337
4978 msgid "PROGRESS NOTIFICATION MESSAGES"
4979 msgstr ""
4980
4981 # type: textblock
4982 #. type: textblock
4983 #: ../src/guestfs.pod:2339
4984 msgid ""
4985 "The daemon may send progress notification messages at any time.  These are "
4986 "distinguished by the normal length word being replaced by "
4987 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
4988 msgstr ""
4989
4990 #. type: textblock
4991 #: ../src/guestfs.pod:2343
4992 msgid ""
4993 "The library turns them into progress callbacks (see L</"
4994 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
4995 "if not."
4996 msgstr ""
4997
4998 # type: textblock
4999 #. type: textblock
5000 #: ../src/guestfs.pod:2347
5001 msgid ""
5002 "The daemon self-limits the frequency of progress messages it sends (see "
5003 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
5004 "messages."
5005 msgstr ""
5006
5007 # type: =head1
5008 #. type: =head1
5009 #: ../src/guestfs.pod:2351
5010 msgid "LIBGUESTFS VERSION NUMBERS"
5011 msgstr ""
5012
5013 # type: textblock
5014 #. type: textblock
5015 #: ../src/guestfs.pod:2353
5016 msgid ""
5017 "Since April 2010, libguestfs has started to make separate development and "
5018 "stable releases, along with corresponding branches in our git repository.  "
5019 "These separate releases can be identified by version number:"
5020 msgstr ""
5021
5022 # type: verbatim
5023 #. type: verbatim
5024 #: ../src/guestfs.pod:2358
5025 #, no-wrap
5026 msgid ""
5027 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
5028 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
5029 "       |\n"
5030 "       v\n"
5031 " 1  .  3  .  5\n"
5032 " ^           ^\n"
5033 " |           |\n"
5034 " |           `-------- sub-version\n"
5035 " |\n"
5036 " `------ always '1' because we don't change the ABI\n"
5037 "\n"
5038 msgstr ""
5039
5040 # type: textblock
5041 #. type: textblock
5042 #: ../src/guestfs.pod:2369
5043 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
5044 msgstr ""
5045
5046 # type: textblock
5047 #. type: textblock
5048 #: ../src/guestfs.pod:2371
5049 msgid ""
5050 "As time passes we cherry pick fixes from the development branch and backport "
5051 "those into the stable branch, the effect being that the stable branch should "
5052 "get more stable and less buggy over time.  So the stable releases are ideal "
5053 "for people who don't need new features but would just like the software to "
5054 "work."
5055 msgstr ""
5056
5057 # type: textblock
5058 #. type: textblock
5059 #: ../src/guestfs.pod:2377
5060 msgid "Our criteria for backporting changes are:"
5061 msgstr ""
5062
5063 # type: textblock
5064 #. type: textblock
5065 #: ../src/guestfs.pod:2383
5066 msgid ""
5067 "Documentation changes which don't affect any code are backported unless the "
5068 "documentation refers to a future feature which is not in stable."
5069 msgstr ""
5070
5071 # type: textblock
5072 #. type: textblock
5073 #: ../src/guestfs.pod:2389
5074 msgid ""
5075 "Bug fixes which are not controversial, fix obvious problems, and have been "
5076 "well tested are backported."
5077 msgstr ""
5078
5079 # type: textblock
5080 #. type: textblock
5081 #: ../src/guestfs.pod:2394
5082 msgid ""
5083 "Simple rearrangements of code which shouldn't affect how it works get "
5084 "backported.  This is so that the code in the two branches doesn't get too "
5085 "far out of step, allowing us to backport future fixes more easily."
5086 msgstr ""
5087
5088 # type: textblock
5089 #. type: textblock
5090 #: ../src/guestfs.pod:2400
5091 msgid ""
5092 "We I<don't> backport new features, new APIs, new tools etc, except in one "
5093 "exceptional case: the new feature is required in order to implement an "
5094 "important bug fix."
5095 msgstr ""
5096
5097 # type: textblock
5098 #. type: textblock
5099 #: ../src/guestfs.pod:2406
5100 msgid ""
5101 "A new stable branch starts when we think the new features in development are "
5102 "substantial and compelling enough over the current stable branch to warrant "
5103 "it.  When that happens we create new stable and development versions 1.N.0 "
5104 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
5105 "stable at this point, but by backporting fixes from development, that branch "
5106 "will stabilize over time."
5107 msgstr ""
5108
5109 #. type: =head1
5110 #: ../src/guestfs.pod:2414
5111 msgid "EXTENDING LIBGUESTFS"
5112 msgstr ""
5113
5114 #. type: =head2
5115 #: ../src/guestfs.pod:2416
5116 msgid "ADDING A NEW API ACTION"
5117 msgstr ""
5118
5119 #. type: textblock
5120 #: ../src/guestfs.pod:2418
5121 msgid ""
5122 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
5123 "documentation) are generated, and this makes it easy to extend the "
5124 "libguestfs API."
5125 msgstr ""
5126
5127 #. type: textblock
5128 #: ../src/guestfs.pod:2422
5129 msgid "To add a new API action there are two changes:"
5130 msgstr ""
5131
5132 #. type: textblock
5133 #: ../src/guestfs.pod:2428
5134 msgid ""
5135 "You need to add a description of the call (name, parameters, return type, "
5136 "tests, documentation) to C<generator/generator_actions.ml>."
5137 msgstr ""
5138
5139 #. type: textblock
5140 #: ../src/guestfs.pod:2431
5141 msgid ""
5142 "There are two sorts of API action, depending on whether the call goes "
5143 "through to the daemon in the appliance, or is serviced entirely by the "
5144 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
5145 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
5146 "an example of the latter, since a trace flag is maintained in the handle and "
5147 "all tracing is done on the library side."
5148 msgstr ""
5149
5150 #. type: textblock
5151 #: ../src/guestfs.pod:2439
5152 msgid ""
5153 "Most new actions are of the first type, and get added to the "
5154 "C<daemon_functions> list.  Each function has a unique procedure number used "
5155 "in the RPC protocol which is assigned to that action when we publish "
5156 "libguestfs and cannot be reused.  Take the latest procedure number and "
5157 "increment it."
5158 msgstr ""
5159
5160 #. type: textblock
5161 #: ../src/guestfs.pod:2445
5162 msgid ""
5163 "For library-only actions of the second type, add to the "
5164 "C<non_daemon_functions> list.  Since these functions are serviced by the "
5165 "library and do not travel over the RPC mechanism to the daemon, these "
5166 "functions do not need a procedure number, and so the procedure number is set "
5167 "to C<-1>."
5168 msgstr ""
5169
5170 #. type: textblock
5171 #: ../src/guestfs.pod:2453
5172 msgid "Implement the action (in C):"
5173 msgstr ""
5174
5175 #. type: textblock
5176 #: ../src/guestfs.pod:2455
5177 msgid ""
5178 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
5179 "C<daemon/> directory."
5180 msgstr ""
5181
5182 #. type: textblock
5183 #: ../src/guestfs.pod:2458
5184 msgid ""
5185 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
5186 "(note: double underscore) in the C<src/> directory."
5187 msgstr ""
5188
5189 #. type: textblock
5190 #: ../src/guestfs.pod:2461
5191 msgid "In either case, use another function as an example of what to do."
5192 msgstr ""
5193
5194 #. type: textblock
5195 #: ../src/guestfs.pod:2465
5196 msgid "After making these changes, use C<make> to compile."
5197 msgstr ""
5198
5199 #. type: textblock
5200 #: ../src/guestfs.pod:2467
5201 msgid ""
5202 "Note that you don't need to implement the RPC, language bindings, manual "
5203 "pages or anything else.  It's all automatically generated from the OCaml "
5204 "description."
5205 msgstr ""
5206
5207 #. type: =head2
5208 #: ../src/guestfs.pod:2471
5209 msgid "ADDING TESTS FOR AN API ACTION"
5210 msgstr ""
5211
5212 #. type: textblock
5213 #: ../src/guestfs.pod:2473
5214 msgid ""
5215 "You can supply zero or as many tests as you want per API call.  The tests "
5216 "can either be added as part of the API description (C<generator/"
5217 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
5218 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
5219 "slower, so if possible use the first method."
5220 msgstr ""
5221
5222 #. type: textblock
5223 #: ../src/guestfs.pod:2479
5224 msgid ""
5225 "The following describes the test environment used when you add an API test "
5226 "in C<generator_actions.ml>."
5227 msgstr ""
5228
5229 #. type: textblock
5230 #: ../src/guestfs.pod:2482
5231 msgid "The test environment has 4 block devices:"
5232 msgstr ""
5233
5234 #. type: =item
5235 #: ../src/guestfs.pod:2486
5236 msgid "C</dev/sda> 500MB"
5237 msgstr ""
5238
5239 #. type: textblock
5240 #: ../src/guestfs.pod:2488
5241 msgid "General block device for testing."
5242 msgstr ""
5243
5244 #. type: =item
5245 #: ../src/guestfs.pod:2490
5246 msgid "C</dev/sdb> 50MB"
5247 msgstr ""
5248
5249 #. type: textblock
5250 #: ../src/guestfs.pod:2492
5251 msgid ""
5252 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
5253 "operations."
5254 msgstr ""
5255
5256 #. type: =item
5257 #: ../src/guestfs.pod:2495
5258 msgid "C</dev/sdc> 10MB"
5259 msgstr ""
5260
5261 #. type: textblock
5262 #: ../src/guestfs.pod:2497
5263 msgid "Used in a few tests where two block devices are needed."
5264 msgstr ""
5265
5266 #. type: =item
5267 #: ../src/guestfs.pod:2499
5268 msgid "C</dev/sdd>"
5269 msgstr ""
5270
5271 #. type: textblock
5272 #: ../src/guestfs.pod:2501
5273 msgid "ISO with fixed content (see C<images/test.iso>)."
5274 msgstr ""
5275
5276 #. type: textblock
5277 #: ../src/guestfs.pod:2505
5278 msgid ""
5279 "To be able to run the tests in a reasonable amount of time, the libguestfs "
5280 "appliance and block devices are reused between tests.  So don't try testing "
5281 "L</guestfs_kill_subprocess> :-x"
5282 msgstr ""
5283
5284 #. type: textblock
5285 #: ../src/guestfs.pod:2509
5286 msgid ""
5287 "Each test starts with an initial scenario, selected using one of the "
5288 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
5289 "initialize the disks mentioned above in a particular way as documented in "
5290 "C<generator_types.ml>.  You should not assume anything about the previous "
5291 "contents of other disks that are not initialized."
5292 msgstr ""
5293
5294 #. type: textblock
5295 #: ../src/guestfs.pod:2515
5296 msgid ""
5297 "You can add a prerequisite clause to any individual test.  This is a run-"
5298 "time check, which, if it fails, causes the test to be skipped.  Useful if "
5299 "testing a command which might not work on all variations of libguestfs "
5300 "builds.  A test that has prerequisite of C<Always> means to run "
5301 "unconditionally."
5302 msgstr ""
5303
5304 #. type: textblock
5305 #: ../src/guestfs.pod:2521
5306 msgid ""
5307 "In addition, packagers can skip individual tests by setting environment "
5308 "variables before running C<make check>."
5309 msgstr ""
5310
5311 #. type: verbatim
5312 #: ../src/guestfs.pod:2524
5313 #, no-wrap
5314 msgid ""
5315 " SKIP_TEST_<CMD>_<NUM>=1\n"
5316 "\n"
5317 msgstr ""
5318
5319 #. type: textblock
5320 #: ../src/guestfs.pod:2526
5321 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
5322 msgstr ""
5323
5324 #. type: textblock
5325 #: ../src/guestfs.pod:2528
5326 msgid "or:"
5327 msgstr ""
5328
5329 #. type: verbatim
5330 #: ../src/guestfs.pod:2530
5331 #, no-wrap
5332 msgid ""
5333 " SKIP_TEST_<CMD>=1\n"
5334 "\n"
5335 msgstr ""
5336
5337 #. type: textblock
5338 #: ../src/guestfs.pod:2532
5339 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
5340 msgstr ""
5341
5342 #. type: textblock
5343 #: ../src/guestfs.pod:2534
5344 msgid "Packagers can run only certain tests by setting for example:"
5345 msgstr ""
5346
5347 #. type: verbatim
5348 #: ../src/guestfs.pod:2536
5349 #, no-wrap
5350 msgid ""
5351 " TEST_ONLY=\"vfs_type zerofree\"\n"
5352 "\n"
5353 msgstr ""
5354
5355 #. type: textblock
5356 #: ../src/guestfs.pod:2538
5357 msgid ""
5358 "See C<capitests/tests.c> for more details of how these environment variables "
5359 "work."
5360 msgstr ""
5361
5362 #. type: =head2
5363 #: ../src/guestfs.pod:2541
5364 msgid "DEBUGGING NEW API ACTIONS"
5365 msgstr ""
5366
5367 #. type: textblock
5368 #: ../src/guestfs.pod:2543
5369 msgid "Test new actions work before submitting them."
5370 msgstr ""
5371
5372 #. type: textblock
5373 #: ../src/guestfs.pod:2545
5374 msgid "You can use guestfish to try out new commands."
5375 msgstr ""
5376
5377 #. type: textblock
5378 #: ../src/guestfs.pod:2547
5379 msgid ""
5380 "Debugging the daemon is a problem because it runs inside a minimal "
5381 "environment.  However you can fprintf messages in the daemon to stderr, and "
5382 "they will show up if you use C<guestfish -v>."
5383 msgstr ""
5384
5385 #. type: =head2
5386 #: ../src/guestfs.pod:2551
5387 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
5388 msgstr ""
5389
5390 #. type: textblock
5391 #: ../src/guestfs.pod:2553
5392 msgid ""
5393 "Our C source code generally adheres to some basic code-formatting "
5394 "conventions.  The existing code base is not totally consistent on this "
5395 "front, but we do prefer that contributed code be formatted similarly.  In "
5396 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
5397 "indentation level, and other than that, follow the K&R style."
5398 msgstr ""
5399
5400 #. type: textblock
5401 #: ../src/guestfs.pod:2559
5402 msgid ""
5403 "If you use Emacs, add the following to one of one of your start-up files (e."
5404 "g., ~/.emacs), to help ensure that you get indentation right:"
5405 msgstr ""
5406
5407 #. type: verbatim
5408 #: ../src/guestfs.pod:2562
5409 #, no-wrap
5410 msgid ""
5411 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
5412 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
5413 " (add-hook 'find-file-hook\n"
5414 "     '(lambda () (if (and buffer-file-name\n"
5415 "                          (string-match \"/libguestfs\\\\>\"\n"
5416 "                              (buffer-file-name))\n"
5417 "                          (not (string-equal mode-name \"Change Log\"))\n"
5418 "                          (not (string-equal mode-name \"Makefile\")))\n"
5419 "                     (setq indent-tabs-mode nil))))\n"
5420 " \n"
5421 msgstr ""
5422
5423 #. type: verbatim
5424 #: ../src/guestfs.pod:2572
5425 #, no-wrap
5426 msgid ""
5427 " ;;; When editing C sources in libguestfs, use this style.\n"
5428 " (defun libguestfs-c-mode ()\n"
5429 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
5430 "   (interactive)\n"
5431 "   (c-set-style \"K&R\")\n"
5432 "   (setq c-indent-level 2)\n"
5433 "   (setq c-basic-offset 2))\n"
5434 " (add-hook 'c-mode-hook\n"
5435 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
5436 "                               (buffer-file-name))\n"
5437 "                           (libguestfs-c-mode))))\n"
5438 "\n"
5439 msgstr ""
5440
5441 #. type: textblock
5442 #: ../src/guestfs.pod:2584
5443 msgid "Enable warnings when compiling (and fix any problems this finds):"
5444 msgstr ""
5445
5446 #. type: verbatim
5447 #: ../src/guestfs.pod:2587
5448 #, no-wrap
5449 msgid ""
5450 " ./configure --enable-gcc-warnings\n"
5451 "\n"
5452 msgstr ""
5453
5454 #. type: textblock
5455 #: ../src/guestfs.pod:2589
5456 msgid "Useful targets are:"
5457 msgstr ""
5458
5459 #. type: verbatim
5460 #: ../src/guestfs.pod:2591
5461 #, no-wrap
5462 msgid ""
5463 " make syntax-check  # checks the syntax of the C code\n"
5464 " make check         # runs the test suite\n"
5465 "\n"
5466 msgstr ""
5467
5468 #. type: =head2
5469 #: ../src/guestfs.pod:2594
5470 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
5471 msgstr ""
5472
5473 #. type: textblock
5474 #: ../src/guestfs.pod:2596
5475 msgid ""
5476 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
5477 "which are used to do shell quoting."
5478 msgstr ""
5479
5480 #. type: =item
5481 #: ../src/guestfs.pod:2601
5482 msgid "%Q"
5483 msgstr ""
5484
5485 #. type: textblock
5486 #: ../src/guestfs.pod:2603
5487 msgid ""
5488 "Simple shell quoted string.  Any spaces or other shell characters are "
5489 "escaped for you."
5490 msgstr ""
5491
5492 #. type: =item
5493 #: ../src/guestfs.pod:2606
5494 msgid "%R"
5495 msgstr ""
5496
5497 #. type: textblock
5498 #: ../src/guestfs.pod:2608
5499 msgid ""
5500 "Same as C<%Q> except the string is treated as a path which is prefixed by "
5501 "the sysroot."
5502 msgstr ""
5503
5504 # type: textblock
5505 #. type: textblock
5506 #: ../src/guestfs.pod:2613 ../fish/guestfish.pod:242 ../fish/guestfish.pod:615
5507 msgid "For example:"
5508 msgstr ""
5509
5510 #. type: verbatim
5511 #: ../src/guestfs.pod:2615
5512 #, no-wrap
5513 msgid ""
5514 " asprintf (&cmd, \"cat %R\", path);\n"
5515 "\n"
5516 msgstr ""
5517
5518 #. type: textblock
5519 #: ../src/guestfs.pod:2617
5520 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
5521 msgstr ""
5522
5523 #. type: textblock
5524 #: ../src/guestfs.pod:2619
5525 msgid ""
5526 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
5527 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
5528 "they are not passed via the shell (instead, straight to exec).  You probably "
5529 "want to use the C<sysroot_path()> function however."
5530 msgstr ""
5531
5532 #. type: =head2
5533 #: ../src/guestfs.pod:2625
5534 msgid "SUBMITTING YOUR NEW API ACTIONS"
5535 msgstr ""
5536
5537 #. type: textblock
5538 #: ../src/guestfs.pod:2627
5539 msgid ""
5540 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
5541 "libguestfs> and CC to L<rjones@redhat.com>."
5542 msgstr ""
5543
5544 #. type: =head2
5545 #: ../src/guestfs.pod:2631
5546 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
5547 msgstr ""
5548
5549 #. type: textblock
5550 #: ../src/guestfs.pod:2633
5551 msgid "We support i18n (gettext anyhow) in the library."
5552 msgstr ""
5553
5554 #. type: textblock
5555 #: ../src/guestfs.pod:2635
5556 msgid ""
5557 "However many messages come from the daemon, and we don't translate those at "
5558 "the moment.  One reason is that the appliance generally has all locale files "
5559 "removed from it, because they take up a lot of space.  So we'd have to readd "
5560 "some of those, as well as copying our PO files into the appliance."
5561 msgstr ""
5562
5563 #. type: textblock
5564 #: ../src/guestfs.pod:2641
5565 msgid ""
5566 "Debugging messages are never translated, since they are intended for the "
5567 "programmers."
5568 msgstr ""
5569
5570 #. type: =head2
5571 #: ../src/guestfs.pod:2644
5572 msgid "SOURCE CODE SUBDIRECTORIES"
5573 msgstr ""
5574
5575 #. type: =item
5576 #: ../src/guestfs.pod:2648 ../src/guestfs-actions.pod:6163
5577 #: ../fish/guestfish-actions.pod:4066
5578 msgid "C<appliance>"
5579 msgstr ""
5580
5581 #. type: textblock
5582 #: ../src/guestfs.pod:2650
5583 msgid "The libguestfs appliance, build scripts and so on."
5584 msgstr ""
5585
5586 #. type: =item
5587 #: ../src/guestfs.pod:2652
5588 msgid "C<capitests>"
5589 msgstr ""
5590
5591 #. type: textblock
5592 #: ../src/guestfs.pod:2654
5593 msgid "Automated tests of the C API."
5594 msgstr ""
5595
5596 #. type: =item
5597 #: ../src/guestfs.pod:2656
5598 msgid "C<cat>"
5599 msgstr ""
5600
5601 #. type: textblock
5602 #: ../src/guestfs.pod:2658
5603 msgid ""
5604 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
5605 "documentation."
5606 msgstr ""
5607
5608 #. type: =item
5609 #: ../src/guestfs.pod:2661
5610 msgid "C<caution>"
5611 msgstr ""
5612
5613 #. type: textblock
5614 #: ../src/guestfs.pod:2663
5615 msgid ""
5616 "Safety and liveness tests of components that libguestfs depends upon (not of "
5617 "libguestfs itself).  Mainly this is for qemu and the kernel."
5618 msgstr ""
5619
5620 #. type: =item
5621 #: ../src/guestfs.pod:2666
5622 msgid "C<contrib>"
5623 msgstr ""
5624
5625 #. type: textblock
5626 #: ../src/guestfs.pod:2668
5627 msgid "Outside contributions, experimental parts."
5628 msgstr ""
5629
5630 #. type: =item
5631 #: ../src/guestfs.pod:2670
5632 msgid "C<daemon>"
5633 msgstr ""
5634
5635 #. type: textblock
5636 #: ../src/guestfs.pod:2672
5637 msgid ""
5638 "The daemon that runs inside the libguestfs appliance and carries out actions."
5639 msgstr ""
5640
5641 #. type: =item
5642 #: ../src/guestfs.pod:2675
5643 msgid "C<df>"
5644 msgstr ""
5645
5646 #. type: textblock
5647 #: ../src/guestfs.pod:2677
5648 msgid "L<virt-df(1)> command and documentation."
5649 msgstr ""
5650
5651 #. type: =item
5652 #: ../src/guestfs.pod:2679
5653 msgid "C<edit>"
5654 msgstr ""
5655
5656 #. type: textblock
5657 #: ../src/guestfs.pod:2681
5658 msgid "L<virt-edit(1)> command and documentation."
5659 msgstr ""
5660
5661 #. type: =item
5662 #: ../src/guestfs.pod:2683
5663 msgid "C<examples>"
5664 msgstr ""
5665
5666 #. type: textblock
5667 #: ../src/guestfs.pod:2685
5668 msgid "C API example code."
5669 msgstr ""
5670
5671 #. type: =item
5672 #: ../src/guestfs.pod:2687
5673 msgid "C<fish>"
5674 msgstr ""
5675
5676 #. type: textblock
5677 #: ../src/guestfs.pod:2689
5678 msgid ""
5679 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
5680 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
5681 "L<virt-tar-out(1)>."
5682 msgstr ""
5683
5684 #. type: =item
5685 #: ../src/guestfs.pod:2693
5686 msgid "C<fuse>"
5687 msgstr ""
5688
5689 #. type: textblock
5690 #: ../src/guestfs.pod:2695
5691 msgid ""
5692 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
5693 msgstr ""
5694
5695 #. type: =item
5696 #: ../src/guestfs.pod:2697
5697 msgid "C<generator>"
5698 msgstr ""
5699
5700 #. type: textblock
5701 #: ../src/guestfs.pod:2699
5702 msgid ""
5703 "The crucially important generator, used to automatically generate large "
5704 "amounts of boilerplate C code for things like RPC and bindings."
5705 msgstr ""
5706
5707 #. type: =item
5708 #: ../src/guestfs.pod:2702
5709 msgid "C<images>"
5710 msgstr ""
5711
5712 #. type: textblock
5713 #: ../src/guestfs.pod:2704
5714 msgid "Files used by the test suite."
5715 msgstr ""
5716
5717 #. type: textblock
5718 #: ../src/guestfs.pod:2706
5719 msgid "Some \"phony\" guest images which we test against."
5720 msgstr ""
5721
5722 #. type: =item
5723 #: ../src/guestfs.pod:2708
5724 msgid "C<inspector>"
5725 msgstr ""
5726
5727 #. type: textblock
5728 #: ../src/guestfs.pod:2710
5729 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
5730 msgstr ""
5731
5732 #. type: =item
5733 #: ../src/guestfs.pod:2712
5734 msgid "C<logo>"
5735 msgstr ""
5736
5737 #. type: textblock
5738 #: ../src/guestfs.pod:2714
5739 msgid "Logo used on the website.  The fish is called Arthur by the way."
5740 msgstr ""
5741
5742 #. type: =item
5743 #: ../src/guestfs.pod:2716
5744 msgid "C<m4>"
5745 msgstr ""
5746
5747 #. type: textblock
5748 #: ../src/guestfs.pod:2718
5749 msgid "M4 macros used by autoconf."
5750 msgstr ""
5751
5752 #. type: =item
5753 #: ../src/guestfs.pod:2720
5754 msgid "C<po>"
5755 msgstr ""
5756
5757 #. type: textblock
5758 #: ../src/guestfs.pod:2722
5759 msgid "Translations of simple gettext strings."
5760 msgstr ""
5761
5762 #. type: =item
5763 #: ../src/guestfs.pod:2724
5764 msgid "C<po-docs>"
5765 msgstr ""
5766
5767 #. type: textblock
5768 #: ../src/guestfs.pod:2726
5769 msgid ""
5770 "The build infrastructure and PO files for translations of manpages and POD "
5771 "files.  Eventually this will be combined with the C<po> directory, but that "
5772 "is rather complicated."
5773 msgstr ""
5774
5775 #. type: =item
5776 #: ../src/guestfs.pod:2730
5777 msgid "C<regressions>"
5778 msgstr ""
5779
5780 #. type: textblock
5781 #: ../src/guestfs.pod:2732
5782 msgid "Regression tests."
5783 msgstr ""
5784
5785 #. type: =item
5786 #: ../src/guestfs.pod:2734
5787 msgid "C<rescue>"
5788 msgstr ""
5789
5790 #. type: textblock
5791 #: ../src/guestfs.pod:2736
5792 msgid "L<virt-rescue(1)> command and documentation."
5793 msgstr ""
5794
5795 #. type: =item
5796 #: ../src/guestfs.pod:2738
5797 msgid "C<src>"
5798 msgstr ""
5799
5800 #. type: textblock
5801 #: ../src/guestfs.pod:2740
5802 msgid "Source code to the C library."
5803 msgstr ""
5804
5805 #. type: =item
5806 #: ../src/guestfs.pod:2742
5807 msgid "C<tools>"
5808 msgstr ""
5809
5810 #. type: textblock
5811 #: ../src/guestfs.pod:2744
5812 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
5813 msgstr ""
5814
5815 #. type: =item
5816 #: ../src/guestfs.pod:2746
5817 msgid "C<test-tool>"
5818 msgstr ""
5819
5820 #. type: textblock
5821 #: ../src/guestfs.pod:2748
5822 msgid ""
5823 "Test tool for end users to test if their qemu/kernel combination will work "
5824 "with libguestfs."
5825 msgstr ""
5826
5827 #. type: =item
5828 #: ../src/guestfs.pod:2751
5829 msgid "C<csharp>"
5830 msgstr ""
5831
5832 #. type: =item
5833 #: ../src/guestfs.pod:2753
5834 msgid "C<haskell>"
5835 msgstr ""
5836
5837 #. type: =item
5838 #: ../src/guestfs.pod:2755
5839 msgid "C<java>"
5840 msgstr ""
5841
5842 #. type: =item
5843 #: ../src/guestfs.pod:2757
5844 msgid "C<ocaml>"
5845 msgstr ""
5846
5847 #. type: =item
5848 #: ../src/guestfs.pod:2759
5849 msgid "C<php>"
5850 msgstr ""
5851
5852 #. type: =item
5853 #: ../src/guestfs.pod:2761
5854 msgid "C<perl>"
5855 msgstr ""
5856
5857 #. type: =item
5858 #: ../src/guestfs.pod:2763
5859 msgid "C<python>"
5860 msgstr ""
5861
5862 #. type: =item
5863 #: ../src/guestfs.pod:2765
5864 msgid "C<ruby>"
5865 msgstr ""
5866
5867 #. type: textblock
5868 #: ../src/guestfs.pod:2767
5869 msgid "Language bindings."
5870 msgstr ""
5871
5872 #. type: =head1
5873 #: ../src/guestfs.pod:2771
5874 msgid "LIMITS"
5875 msgstr ""
5876
5877 # type: =head2
5878 #. type: =head2
5879 #: ../src/guestfs.pod:2773
5880 msgid "PROTOCOL LIMITS"
5881 msgstr ""
5882
5883 # type: textblock
5884 #. type: textblock
5885 #: ../src/guestfs.pod:2775
5886 msgid ""
5887 "Internally libguestfs uses a message-based protocol to pass API calls and "
5888 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
5889 "plenty more detail about this).  The maximum message size used by the "
5890 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
5891 "aware of this limit.  The API calls which may be affected are individually "
5892 "documented, with a link back to this section of the documentation."
5893 msgstr ""
5894
5895 # type: textblock
5896 #. type: textblock
5897 #: ../src/guestfs.pod:2783
5898 msgid ""
5899 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
5900 "a simple string.  Because this string is at some point internally encoded as "
5901 "a message, the maximum size that it can return is slightly under 4 MB.  If "
5902 "the requested file is larger than this then you will get an error."
5903 msgstr ""
5904
5905 # type: textblock
5906 #. type: textblock
5907 #: ../src/guestfs.pod:2789
5908 msgid ""
5909 "In order to transfer large files into and out of the guest filesystem, you "
5910 "need to use particular calls that support this.  The sections L</UPLOADING> "
5911 "and L</DOWNLOADING> document how to do this."
5912 msgstr ""
5913
5914 # type: textblock
5915 #. type: textblock
5916 #: ../src/guestfs.pod:2793
5917 msgid ""
5918 "You might also consider mounting the disk image using our FUSE filesystem "
5919 "support (L<guestmount(1)>)."
5920 msgstr ""
5921
5922 #. type: =head2
5923 #: ../src/guestfs.pod:2796
5924 msgid "MAXIMUM NUMBER OF DISKS"
5925 msgstr ""
5926
5927 #. type: textblock
5928 #: ../src/guestfs.pod:2798
5929 msgid "When using virtio disks (the default) the current limit is B<25> disks."
5930 msgstr ""
5931
5932 #. type: textblock
5933 #: ../src/guestfs.pod:2801
5934 msgid ""
5935 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
5936 "slots.  However febootstrap only understands disks with names C</dev/vda> "
5937 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
5938 "purposes."
5939 msgstr ""
5940
5941 #. type: textblock
5942 #: ../src/guestfs.pod:2806
5943 msgid ""
5944 "We are working to substantially raise this limit in future versions but it "
5945 "requires complex changes to qemu."
5946 msgstr ""
5947
5948 #. type: textblock
5949 #: ../src/guestfs.pod:2809
5950 msgid ""
5951 "In future versions of libguestfs it should also be possible to \"hot plug\" "
5952 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
5953 "requires changes to qemu."
5954 msgstr ""
5955
5956 #. type: =head2
5957 #: ../src/guestfs.pod:2813
5958 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
5959 msgstr ""
5960
5961 #. type: textblock
5962 #: ../src/guestfs.pod:2815
5963 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
5964 msgstr ""
5965
5966 #. type: textblock
5967 #: ../src/guestfs.pod:2817
5968 msgid ""
5969 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
5970 "vda>, and C</dev/vda1> through C</dev/vda15>)."
5971 msgstr ""
5972
5973 #. type: textblock
5974 #: ../src/guestfs.pod:2820
5975 msgid ""
5976 "If you attach a disk with more than 15 partitions, the extra partitions are "
5977 "ignored by libguestfs."
5978 msgstr ""
5979
5980 #. type: =head2
5981 #: ../src/guestfs.pod:2823
5982 msgid "MAXIMUM SIZE OF A DISK"
5983 msgstr ""
5984
5985 #. type: textblock
5986 #: ../src/guestfs.pod:2825
5987 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
5988 msgstr ""
5989
5990 #. type: textblock
5991 #: ../src/guestfs.pod:2827
5992 msgid ""
5993 "We have tested block devices up to 1 exabyte (2**60 or "
5994 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
5995 "filesystem."
5996 msgstr ""
5997
5998 #. type: textblock
5999 #: ../src/guestfs.pod:2831
6000 msgid ""
6001 "Although libguestfs probably does not impose any limit, the underlying host "
6002 "storage will.  If you store disk images on a host ext4 filesystem, then the "
6003 "maximum size will be limited by the maximum ext4 file size (currently 16 "
6004 "TB).  If you store disk images as host logical volumes then you are limited "
6005 "by the maximum size of an LV."
6006 msgstr ""
6007
6008 #. type: textblock
6009 #: ../src/guestfs.pod:2837
6010 msgid ""
6011 "For the hugest disk image files, we recommend using XFS on the host for "
6012 "storage."
6013 msgstr ""
6014
6015 #. type: =head2
6016 #: ../src/guestfs.pod:2840
6017 msgid "MAXIMUM SIZE OF A PARTITION"
6018 msgstr ""
6019
6020 #. type: textblock
6021 #: ../src/guestfs.pod:2842
6022 msgid ""
6023 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
6024 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
6025 "address a partition located beyond 2 TB on the disk."
6026 msgstr ""
6027
6028 #. type: textblock
6029 #: ../src/guestfs.pod:2846
6030 msgid ""
6031 "It is recommended that you use GPT partitions on disks which are larger than "
6032 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
6033 "which are theoretically larger than the largest disk we could support."
6034 msgstr ""
6035
6036 #. type: =head2
6037 #: ../src/guestfs.pod:2851
6038 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
6039 msgstr ""
6040
6041 #. type: textblock
6042 #: ../src/guestfs.pod:2853
6043 msgid ""
6044 "This depends on the filesystem type.  libguestfs itself does not impose any "
6045 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
6046 "what these limits are."
6047 msgstr ""
6048
6049 #. type: =head2
6050 #: ../src/guestfs.pod:2857
6051 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
6052 msgstr ""
6053
6054 #. type: textblock
6055 #: ../src/guestfs.pod:2859
6056 msgid ""
6057 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
6058 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
6059 "uploads and downloads."
6060 msgstr ""
6061
6062 #. type: =head2
6063 #: ../src/guestfs.pod:2863
6064 msgid "INSPECTION LIMITS"
6065 msgstr ""
6066
6067 #. type: textblock
6068 #: ../src/guestfs.pod:2865
6069 msgid ""
6070 "The inspection code has several arbitrary limits on things like the size of "
6071 "Windows Registry hive it will read, and the length of product name.  These "
6072 "are intended to stop a malicious guest from consuming arbitrary amounts of "
6073 "memory and disk space on the host, and should not be reached in practice.  "
6074 "See the source code for more information."
6075 msgstr ""
6076
6077 # type: =head1
6078 #. type: =head1
6079 #: ../src/guestfs.pod:2871 ../fish/guestfish.pod:1017
6080 #: ../test-tool/libguestfs-test-tool.pod:82
6081 msgid "ENVIRONMENT VARIABLES"
6082 msgstr ""
6083
6084 # type: =item
6085 #. type: =item
6086 #: ../src/guestfs.pod:2875 ../fish/guestfish.pod:1048
6087 msgid "LIBGUESTFS_APPEND"
6088 msgstr ""
6089
6090 # type: textblock
6091 #. type: textblock
6092 #: ../src/guestfs.pod:2877 ../fish/guestfish.pod:1050
6093 msgid "Pass additional options to the guest kernel."
6094 msgstr ""
6095
6096 # type: =item
6097 #. type: =item
6098 #: ../src/guestfs.pod:2879 ../fish/guestfish.pod:1052
6099 msgid "LIBGUESTFS_DEBUG"
6100 msgstr ""
6101
6102 # type: textblock
6103 #. type: textblock
6104 #: ../src/guestfs.pod:2881
6105 msgid ""
6106 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
6107 "effect as calling C<guestfs_set_verbose (g, 1)>."
6108 msgstr ""
6109
6110 # type: =item
6111 #. type: =item
6112 #: ../src/guestfs.pod:2884 ../fish/guestfish.pod:1057
6113 msgid "LIBGUESTFS_MEMSIZE"
6114 msgstr ""
6115
6116 # type: textblock
6117 #. type: textblock
6118 #: ../src/guestfs.pod:2886 ../fish/guestfish.pod:1059
6119 msgid ""
6120 "Set the memory allocated to the qemu process, in megabytes.  For example:"
6121 msgstr ""
6122
6123 # type: verbatim
6124 #. type: verbatim
6125 #: ../src/guestfs.pod:2889 ../fish/guestfish.pod:1062
6126 #, no-wrap
6127 msgid ""
6128 " LIBGUESTFS_MEMSIZE=700\n"
6129 "\n"
6130 msgstr ""
6131
6132 # type: =item
6133 #. type: =item
6134 #: ../src/guestfs.pod:2891 ../fish/guestfish.pod:1064
6135 msgid "LIBGUESTFS_PATH"
6136 msgstr ""
6137
6138 #. type: textblock
6139 #: ../src/guestfs.pod:2893
6140 msgid ""
6141 "Set the path that libguestfs uses to search for a supermin appliance.  See "
6142 "the discussion of paths in section L</PATH> above."
6143 msgstr ""
6144
6145 # type: =item
6146 #. type: =item
6147 #: ../src/guestfs.pod:2896 ../fish/guestfish.pod:1069
6148 msgid "LIBGUESTFS_QEMU"
6149 msgstr ""
6150
6151 # type: textblock
6152 #. type: textblock
6153 #: ../src/guestfs.pod:2898 ../fish/guestfish.pod:1071
6154 msgid ""
6155 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
6156 "which was found at compile time by the configure script is used."
6157 msgstr ""
6158
6159 # type: textblock
6160 #. type: textblock
6161 #: ../src/guestfs.pod:2902
6162 msgid "See also L</QEMU WRAPPERS> above."
6163 msgstr ""
6164
6165 # type: =item
6166 #. type: =item
6167 #: ../src/guestfs.pod:2904 ../fish/guestfish.pod:1075
6168 msgid "LIBGUESTFS_TRACE"
6169 msgstr ""
6170
6171 # type: textblock
6172 #. type: textblock
6173 #: ../src/guestfs.pod:2906
6174 msgid ""
6175 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
6176 "effect as calling C<guestfs_set_trace (g, 1)>."
6177 msgstr ""
6178
6179 # type: =item
6180 #. type: =item
6181 #: ../src/guestfs.pod:2909 ../fish/guestfish.pod:1084
6182 msgid "TMPDIR"
6183 msgstr ""
6184
6185 #. type: textblock
6186 #: ../src/guestfs.pod:2911 ../fish/guestfish.pod:1086
6187 msgid ""
6188 "Location of temporary directory, defaults to C</tmp> except for the cached "
6189 "supermin appliance which defaults to C</var/tmp>."
6190 msgstr ""
6191
6192 #. type: textblock
6193 #: ../src/guestfs.pod:2914 ../fish/guestfish.pod:1089
6194 msgid ""
6195 "If libguestfs was compiled to use the supermin appliance then the real "
6196 "appliance is cached in this directory, shared between all handles belonging "
6197 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
6198 "use in case C</var/tmp> is not large enough."
6199 msgstr ""
6200
6201 # type: =head1
6202 #. type: =head1
6203 #: ../src/guestfs.pod:2922 ../fish/guestfish.pod:1156
6204 #: ../test-tool/libguestfs-test-tool.pod:87 ../fuse/guestmount.pod:279
6205 #: ../tools/virt-win-reg.pl:744 ../tools/virt-list-filesystems.pl:189
6206 #: ../tools/virt-tar.pl:286 ../tools/virt-make-fs.pl:539
6207 #: ../tools/virt-list-partitions.pl:257
6208 msgid "SEE ALSO"
6209 msgstr ""
6210
6211 #. type: textblock
6212 #: ../src/guestfs.pod:2924
6213 msgid ""
6214 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
6215 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in"
6216 "(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems"
6217 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
6218 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
6219 "tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)"
6220 ">, L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
6221 msgstr ""
6222
6223 # type: textblock
6224 #. type: textblock
6225 #: ../src/guestfs.pod:2951
6226 msgid ""
6227 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
6228 "(8)>, L<disktype(1)>."
6229 msgstr ""
6230
6231 # type: =head1
6232 #. type: =head1
6233 #: ../src/guestfs.pod:2958 ../tools/virt-win-reg.pl:759
6234 #: ../tools/virt-make-fs.pl:553
6235 msgid "BUGS"
6236 msgstr ""
6237
6238 # type: textblock
6239 #. type: textblock
6240 #: ../src/guestfs.pod:2960
6241 msgid "To get a list of bugs against libguestfs use this link:"
6242 msgstr ""
6243
6244 # type: textblock
6245 #. type: textblock
6246 #: ../src/guestfs.pod:2962
6247 msgid ""
6248 "L<https://bugzilla.redhat.com/buglist.cgi?"
6249 "component=libguestfs&product=Virtualization+Tools>"
6250 msgstr ""
6251
6252 # type: textblock
6253 #. type: textblock
6254 #: ../src/guestfs.pod:2964
6255 msgid "To report a new bug against libguestfs use this link:"
6256 msgstr ""
6257
6258 # type: textblock
6259 #. type: textblock
6260 #: ../src/guestfs.pod:2966
6261 msgid ""
6262 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
6263 "component=libguestfs&product=Virtualization+Tools>"
6264 msgstr ""
6265
6266 # type: textblock
6267 #. type: textblock
6268 #: ../src/guestfs.pod:2968
6269 msgid "When reporting a bug, please check:"
6270 msgstr ""
6271
6272 # type: textblock
6273 #. type: textblock
6274 #: ../src/guestfs.pod:2974
6275 msgid "That the bug hasn't been reported already."
6276 msgstr ""
6277
6278 # type: textblock
6279 #. type: textblock
6280 #: ../src/guestfs.pod:2978
6281 msgid "That you are testing a recent version."
6282 msgstr ""
6283
6284 # type: textblock
6285 #. type: textblock
6286 #: ../src/guestfs.pod:2982
6287 msgid "Describe the bug accurately, and give a way to reproduce it."
6288 msgstr ""
6289
6290 # type: textblock
6291 #. type: textblock
6292 #: ../src/guestfs.pod:2986
6293 msgid ""
6294 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
6295 "bug report."
6296 msgstr ""
6297
6298 # type: =head1
6299 #. type: =head1
6300 #: ../src/guestfs.pod:2991 ../fish/guestfish.pod:1180
6301 #: ../test-tool/libguestfs-test-tool.pod:93 ../fuse/guestmount.pod:290
6302 msgid "AUTHORS"
6303 msgstr ""
6304
6305 # type: textblock
6306 #. type: textblock
6307 #: ../src/guestfs.pod:2993 ../fish/guestfish.pod:1182
6308 #: ../test-tool/libguestfs-test-tool.pod:95 ../fuse/guestmount.pod:292
6309 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
6310 msgstr ""
6311
6312 # type: =head1
6313 #. type: =head1
6314 #: ../src/guestfs.pod:2995 ../fish/guestfish.pod:1184
6315 #: ../test-tool/libguestfs-test-tool.pod:97 ../fuse/guestmount.pod:294
6316 #: ../tools/virt-win-reg.pl:774 ../tools/virt-list-filesystems.pl:206
6317 #: ../tools/virt-tar.pl:305 ../tools/virt-make-fs.pl:568
6318 #: ../tools/virt-list-partitions.pl:273
6319 msgid "COPYRIGHT"
6320 msgstr ""
6321
6322 #. type: textblock
6323 #: ../src/guestfs.pod:2997 ../fish/guestfish.pod:1186
6324 #: ../test-tool/libguestfs-test-tool.pod:99
6325 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
6326 msgstr ""
6327
6328 # type: textblock
6329 #. type: textblock
6330 #: ../src/guestfs.pod:3000
6331 msgid ""
6332 "This library is free software; you can redistribute it and/or modify it "
6333 "under the terms of the GNU Lesser General Public License as published by the "
6334 "Free Software Foundation; either version 2 of the License, or (at your "
6335 "option) any later version."
6336 msgstr ""
6337
6338 # type: textblock
6339 #. type: textblock
6340 #: ../src/guestfs.pod:3005
6341 msgid ""
6342 "This library is distributed in the hope that it will be useful, but WITHOUT "
6343 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
6344 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
6345 "for more details."
6346 msgstr ""
6347
6348 # type: textblock
6349 #. type: textblock
6350 #: ../src/guestfs.pod:3010
6351 msgid ""
6352 "You should have received a copy of the GNU Lesser General Public License "
6353 "along with this library; if not, write to the Free Software Foundation, "
6354 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
6355 msgstr ""
6356
6357 # type: =head2
6358 #. type: =head2
6359 #: ../src/guestfs-actions.pod:1
6360 msgid "guestfs_add_cdrom"
6361 msgstr ""
6362
6363 # type: verbatim
6364 #. type: verbatim
6365 #: ../src/guestfs-actions.pod:3
6366 #, no-wrap
6367 msgid ""
6368 " int\n"
6369 " guestfs_add_cdrom (guestfs_h *g,\n"
6370 "                    const char *filename);\n"
6371 "\n"
6372 msgstr ""
6373
6374 # type: textblock
6375 #. type: textblock
6376 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
6377 msgid "This function adds a virtual CD-ROM disk image to the guest."
6378 msgstr ""
6379
6380 #. type: textblock
6381 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
6382 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
6383 msgstr ""
6384
6385 # type: textblock
6386 #. type: textblock
6387 #: ../src/guestfs-actions.pod:17
6388 msgid ""
6389 "This call checks for the existence of C<filename>.  This stops you from "
6390 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6391 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
6392 "instead."
6393 msgstr ""
6394
6395 # type: textblock
6396 #. type: textblock
6397 #: ../src/guestfs-actions.pod:24
6398 msgid ""
6399 "If you just want to add an ISO file (often you use this as an efficient way "
6400 "to transfer large files into the guest), then you should probably use "
6401 "C<guestfs_add_drive_ro> instead."
6402 msgstr ""
6403
6404 # type: textblock
6405 #. type: textblock
6406 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:140
6407 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
6408 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
6409 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
6410 #: ../src/guestfs-actions.pod:422 ../src/guestfs-actions.pod:442
6411 #: ../src/guestfs-actions.pod:456 ../src/guestfs-actions.pod:501
6412 #: ../src/guestfs-actions.pod:529 ../src/guestfs-actions.pod:547
6413 #: ../src/guestfs-actions.pod:614 ../src/guestfs-actions.pod:647
6414 #: ../src/guestfs-actions.pod:661 ../src/guestfs-actions.pod:676
6415 #: ../src/guestfs-actions.pod:775 ../src/guestfs-actions.pod:793
6416 #: ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:821
6417 #: ../src/guestfs-actions.pod:858 ../src/guestfs-actions.pod:1039
6418 #: ../src/guestfs-actions.pod:1059 ../src/guestfs-actions.pod:1077
6419 #: ../src/guestfs-actions.pod:1161 ../src/guestfs-actions.pod:1179
6420 #: ../src/guestfs-actions.pod:1198 ../src/guestfs-actions.pod:1212
6421 #: ../src/guestfs-actions.pod:1232 ../src/guestfs-actions.pod:1302
6422 #: ../src/guestfs-actions.pod:1333 ../src/guestfs-actions.pod:1358
6423 #: ../src/guestfs-actions.pod:1400 ../src/guestfs-actions.pod:1506
6424 #: ../src/guestfs-actions.pod:1540 ../src/guestfs-actions.pod:1755
6425 #: ../src/guestfs-actions.pod:1777 ../src/guestfs-actions.pod:1864
6426 #: ../src/guestfs-actions.pod:2328 ../src/guestfs-actions.pod:2472
6427 #: ../src/guestfs-actions.pod:2533 ../src/guestfs-actions.pod:2568
6428 #: ../src/guestfs-actions.pod:3608 ../src/guestfs-actions.pod:3623
6429 #: ../src/guestfs-actions.pod:3648 ../src/guestfs-actions.pod:3837
6430 #: ../src/guestfs-actions.pod:3851 ../src/guestfs-actions.pod:3864
6431 #: ../src/guestfs-actions.pod:3878 ../src/guestfs-actions.pod:3893
6432 #: ../src/guestfs-actions.pod:3929 ../src/guestfs-actions.pod:4001
6433 #: ../src/guestfs-actions.pod:4021 ../src/guestfs-actions.pod:4038
6434 #: ../src/guestfs-actions.pod:4061 ../src/guestfs-actions.pod:4084
6435 #: ../src/guestfs-actions.pod:4119 ../src/guestfs-actions.pod:4138
6436 #: ../src/guestfs-actions.pod:4157 ../src/guestfs-actions.pod:4192
6437 #: ../src/guestfs-actions.pod:4204 ../src/guestfs-actions.pod:4240
6438 #: ../src/guestfs-actions.pod:4256 ../src/guestfs-actions.pod:4269
6439 #: ../src/guestfs-actions.pod:4284 ../src/guestfs-actions.pod:4301
6440 #: ../src/guestfs-actions.pod:4394 ../src/guestfs-actions.pod:4414
6441 #: ../src/guestfs-actions.pod:4427 ../src/guestfs-actions.pod:4478
6442 #: ../src/guestfs-actions.pod:4496 ../src/guestfs-actions.pod:4514
6443 #: ../src/guestfs-actions.pod:4530 ../src/guestfs-actions.pod:4544
6444 #: ../src/guestfs-actions.pod:4558 ../src/guestfs-actions.pod:4575
6445 #: ../src/guestfs-actions.pod:4590 ../src/guestfs-actions.pod:4610
6446 #: ../src/guestfs-actions.pod:4680 ../src/guestfs-actions.pod:4753
6447 #: ../src/guestfs-actions.pod:4784 ../src/guestfs-actions.pod:4803
6448 #: ../src/guestfs-actions.pod:4822 ../src/guestfs-actions.pod:4834
6449 #: ../src/guestfs-actions.pod:4851 ../src/guestfs-actions.pod:4864
6450 #: ../src/guestfs-actions.pod:4879 ../src/guestfs-actions.pod:4894
6451 #: ../src/guestfs-actions.pod:4929 ../src/guestfs-actions.pod:4962
6452 #: ../src/guestfs-actions.pod:5001 ../src/guestfs-actions.pod:5021
6453 #: ../src/guestfs-actions.pod:5035 ../src/guestfs-actions.pod:5052
6454 #: ../src/guestfs-actions.pod:5101 ../src/guestfs-actions.pod:5147
6455 #: ../src/guestfs-actions.pod:5201 ../src/guestfs-actions.pod:5237
6456 #: ../src/guestfs-actions.pod:5272 ../src/guestfs-actions.pod:5289
6457 #: ../src/guestfs-actions.pod:5307 ../src/guestfs-actions.pod:5441
6458 #: ../src/guestfs-actions.pod:5498 ../src/guestfs-actions.pod:5520
6459 #: ../src/guestfs-actions.pod:5538 ../src/guestfs-actions.pod:5570
6460 #: ../src/guestfs-actions.pod:5636 ../src/guestfs-actions.pod:5653
6461 #: ../src/guestfs-actions.pod:5666 ../src/guestfs-actions.pod:5680
6462 #: ../src/guestfs-actions.pod:5969 ../src/guestfs-actions.pod:5988
6463 #: ../src/guestfs-actions.pod:6007 ../src/guestfs-actions.pod:6021
6464 #: ../src/guestfs-actions.pod:6033 ../src/guestfs-actions.pod:6047
6465 #: ../src/guestfs-actions.pod:6059 ../src/guestfs-actions.pod:6073
6466 #: ../src/guestfs-actions.pod:6089 ../src/guestfs-actions.pod:6110
6467 #: ../src/guestfs-actions.pod:6129 ../src/guestfs-actions.pod:6148
6468 #: ../src/guestfs-actions.pod:6178 ../src/guestfs-actions.pod:6196
6469 #: ../src/guestfs-actions.pod:6219 ../src/guestfs-actions.pod:6237
6470 #: ../src/guestfs-actions.pod:6256 ../src/guestfs-actions.pod:6277
6471 #: ../src/guestfs-actions.pod:6296 ../src/guestfs-actions.pod:6313
6472 #: ../src/guestfs-actions.pod:6341 ../src/guestfs-actions.pod:6365
6473 #: ../src/guestfs-actions.pod:6384 ../src/guestfs-actions.pod:6408
6474 #: ../src/guestfs-actions.pod:6427 ../src/guestfs-actions.pod:6442
6475 #: ../src/guestfs-actions.pod:6461 ../src/guestfs-actions.pod:6498
6476 #: ../src/guestfs-actions.pod:6528 ../src/guestfs-actions.pod:6561
6477 #: ../src/guestfs-actions.pod:6683 ../src/guestfs-actions.pod:6804
6478 #: ../src/guestfs-actions.pod:6816 ../src/guestfs-actions.pod:6829
6479 #: ../src/guestfs-actions.pod:6842 ../src/guestfs-actions.pod:6864
6480 #: ../src/guestfs-actions.pod:6877 ../src/guestfs-actions.pod:6890
6481 #: ../src/guestfs-actions.pod:6903 ../src/guestfs-actions.pod:6918
6482 #: ../src/guestfs-actions.pod:6977 ../src/guestfs-actions.pod:6994
6483 #: ../src/guestfs-actions.pod:7010 ../src/guestfs-actions.pod:7026
6484 #: ../src/guestfs-actions.pod:7043 ../src/guestfs-actions.pod:7056
6485 #: ../src/guestfs-actions.pod:7076 ../src/guestfs-actions.pod:7112
6486 #: ../src/guestfs-actions.pod:7126 ../src/guestfs-actions.pod:7167
6487 #: ../src/guestfs-actions.pod:7180 ../src/guestfs-actions.pod:7198
6488 #: ../src/guestfs-actions.pod:7232 ../src/guestfs-actions.pod:7268
6489 #: ../src/guestfs-actions.pod:7384 ../src/guestfs-actions.pod:7399
6490 #: ../src/guestfs-actions.pod:7413 ../src/guestfs-actions.pod:7468
6491 #: ../src/guestfs-actions.pod:7481 ../src/guestfs-actions.pod:7526
6492 #: ../src/guestfs-actions.pod:7559 ../src/guestfs-actions.pod:7620
6493 #: ../src/guestfs-actions.pod:7646 ../src/guestfs-actions.pod:7713
6494 #: ../src/guestfs-actions.pod:7732 ../src/guestfs-actions.pod:7761
6495 msgid "This function returns 0 on success or -1 on error."
6496 msgstr ""
6497
6498 # type: textblock
6499 #. type: textblock
6500 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:254
6501 #: ../src/guestfs-actions.pod:275 ../fish/guestfish-actions.pod:28
6502 #: ../fish/guestfish-actions.pod:163 ../fish/guestfish-actions.pod:177
6503 msgid ""
6504 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
6505 "instead."
6506 msgstr ""
6507
6508 # type: textblock
6509 #. type: textblock
6510 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257
6511 #: ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1511
6512 #: ../src/guestfs-actions.pod:2006 ../src/guestfs-actions.pod:2027
6513 #: ../src/guestfs-actions.pod:4615 ../src/guestfs-actions.pod:4934
6514 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5242
6515 #: ../src/guestfs-actions.pod:6506 ../src/guestfs-actions.pod:6536
6516 #: ../src/guestfs-actions.pod:6569 ../src/guestfs-actions.pod:6628
6517 #: ../src/guestfs-actions.pod:7564 ../src/guestfs-actions.pod:7654
6518 #: ../src/guestfs-actions.pod:7824 ../fish/guestfish-actions.pod:31
6519 #: ../fish/guestfish-actions.pod:166 ../fish/guestfish-actions.pod:180
6520 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:1346
6521 #: ../fish/guestfish-actions.pod:1360 ../fish/guestfish-actions.pod:3079
6522 #: ../fish/guestfish-actions.pod:3286 ../fish/guestfish-actions.pod:3400
6523 #: ../fish/guestfish-actions.pod:3448 ../fish/guestfish-actions.pod:4328
6524 #: ../fish/guestfish-actions.pod:4351 ../fish/guestfish-actions.pod:4373
6525 #: ../fish/guestfish-actions.pod:4411 ../fish/guestfish-actions.pod:5046
6526 #: ../fish/guestfish-actions.pod:5144
6527 msgid ""
6528 "Deprecated functions will not be removed from the API, but the fact that "
6529 "they are deprecated indicates that there are problems with correct use of "
6530 "these functions."
6531 msgstr ""
6532
6533 # type: textblock
6534 #. type: textblock
6535 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
6536 #: ../src/guestfs-actions.pod:1163 ../src/guestfs-actions.pod:1978
6537 #: ../src/guestfs-actions.pod:2076 ../src/guestfs-actions.pod:2179
6538 #: ../src/guestfs-actions.pod:3610 ../src/guestfs-actions.pod:3630
6539 #: ../src/guestfs-actions.pod:4938 ../src/guestfs-actions.pod:6198
6540 #: ../src/guestfs-actions.pod:6315 ../src/guestfs-actions.pod:6429
6541 #: ../src/guestfs-actions.pod:6920 ../src/guestfs-actions.pod:7045
6542 #: ../src/guestfs-actions.pod:7568
6543 msgid "(Added in 0.3)"
6544 msgstr ""
6545
6546 # type: =head2
6547 #. type: =head2
6548 #: ../src/guestfs-actions.pod:41
6549 msgid "guestfs_add_domain"
6550 msgstr ""
6551
6552 # type: verbatim
6553 #. type: verbatim
6554 #: ../src/guestfs-actions.pod:43
6555 #, no-wrap
6556 msgid ""
6557 " int\n"
6558 " guestfs_add_domain (guestfs_h *g,\n"
6559 "                     const char *dom,\n"
6560 "                     ...);\n"
6561 "\n"
6562 msgstr ""
6563
6564 # type: textblock
6565 #. type: textblock
6566 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
6567 #: ../src/guestfs-actions.pod:832 ../src/guestfs-actions.pod:2813
6568 #: ../src/guestfs-actions.pod:4629 ../src/guestfs-actions.pod:4948
6569 #: ../src/guestfs-actions.pod:5165
6570 msgid ""
6571 "You may supply a list of optional arguments to this call.  Use zero or more "
6572 "of the following pairs of parameters, and terminate the list with C<-1> on "
6573 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
6574 msgstr ""
6575
6576 #. type: verbatim
6577 #: ../src/guestfs-actions.pod:53
6578 #, no-wrap
6579 msgid ""
6580 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
6581 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
6582 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
6583 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
6584 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
6585 "\n"
6586 msgstr ""
6587
6588 # type: textblock
6589 #. type: textblock
6590 #: ../src/guestfs-actions.pod:59
6591 msgid ""
6592 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6593 "It works by connecting to libvirt, requesting the domain and domain XML from "
6594 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
6595 "one."
6596 msgstr ""
6597
6598 # type: textblock
6599 #. type: textblock
6600 #: ../src/guestfs-actions.pod:64 ../fish/guestfish-actions.pod:46
6601 msgid ""
6602 "The number of disks added is returned.  This operation is atomic: if an "
6603 "error is returned, then no disks are added."
6604 msgstr ""
6605
6606 # type: textblock
6607 #. type: textblock
6608 #: ../src/guestfs-actions.pod:67 ../fish/guestfish-actions.pod:49
6609 msgid ""
6610 "This function does some minimal checks to make sure the libvirt domain is "
6611 "not running (unless C<readonly> is true).  In a future version we will try "
6612 "to acquire the libvirt lock on each disk."
6613 msgstr ""
6614
6615 # type: textblock
6616 #. type: textblock
6617 #: ../src/guestfs-actions.pod:71 ../fish/guestfish-actions.pod:53
6618 msgid ""
6619 "Disks must be accessible locally.  This often means that adding disks from a "
6620 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6621 "unless those disks are accessible via the same device path locally too."
6622 msgstr ""
6623
6624 #. type: textblock
6625 #: ../src/guestfs-actions.pod:76 ../fish/guestfish-actions.pod:58
6626 msgid ""
6627 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6628 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
6629 "libvirt URI (or one set through an environment variable, see the libvirt "
6630 "documentation for full details)."
6631 msgstr ""
6632
6633 #. type: textblock
6634 #: ../src/guestfs-actions.pod:82 ../fish/guestfish-actions.pod:64
6635 msgid ""
6636 "The optional C<live> flag controls whether this call will try to connect to "
6637 "a running virtual machine C<guestfsd> process if it sees a suitable "
6638 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6639 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6640 "DAEMONS> for more information."
6641 msgstr ""
6642
6643 #. type: textblock
6644 #: ../src/guestfs-actions.pod:89 ../fish/guestfish-actions.pod:71
6645 msgid ""
6646 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6647 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6648 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6649 "as usual."
6650 msgstr ""
6651
6652 # type: textblock
6653 #. type: textblock
6654 #: ../src/guestfs-actions.pod:94
6655 msgid ""
6656 "The other optional parameters are passed directly through to "
6657 "C<guestfs_add_drive_opts>."
6658 msgstr ""
6659
6660 # type: textblock
6661 #. type: textblock
6662 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
6663 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:693
6664 #: ../src/guestfs-actions.pod:724 ../src/guestfs-actions.pod:742
6665 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:1378
6666 #: ../src/guestfs-actions.pod:1734 ../src/guestfs-actions.pod:1937
6667 #: ../src/guestfs-actions.pod:2048 ../src/guestfs-actions.pod:2088
6668 #: ../src/guestfs-actions.pod:2143 ../src/guestfs-actions.pod:2166
6669 #: ../src/guestfs-actions.pod:2459 ../src/guestfs-actions.pod:2931
6670 #: ../src/guestfs-actions.pod:2949 ../src/guestfs-actions.pod:5124
6671 #: ../src/guestfs-actions.pod:5344 ../src/guestfs-actions.pod:5750
6672 #: ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:7153
6673 #: ../src/guestfs-actions.pod:7579 ../src/guestfs-actions.pod:7592
6674 #: ../src/guestfs-actions.pod:7605
6675 msgid "On error this function returns -1."
6676 msgstr ""
6677
6678 # type: textblock
6679 #. type: textblock
6680 #: ../src/guestfs-actions.pod:99
6681 msgid "(Added in 1.7.4)"
6682 msgstr ""
6683
6684 # type: =head2
6685 #. type: =head2
6686 #: ../src/guestfs-actions.pod:101
6687 msgid "guestfs_add_domain_va"
6688 msgstr ""
6689
6690 # type: verbatim
6691 #. type: verbatim
6692 #: ../src/guestfs-actions.pod:103
6693 #, no-wrap
6694 msgid ""
6695 " int\n"
6696 " guestfs_add_domain_va (guestfs_h *g,\n"
6697 "                        const char *dom,\n"
6698 "                        va_list args);\n"
6699 "\n"
6700 msgstr ""
6701
6702 # type: textblock
6703 #. type: textblock
6704 #: ../src/guestfs-actions.pod:108
6705 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
6706 msgstr ""
6707
6708 # type: textblock
6709 #. type: textblock
6710 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
6711 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
6712 #: ../src/guestfs-actions.pod:869 ../src/guestfs-actions.pod:880
6713 #: ../src/guestfs-actions.pod:2897 ../src/guestfs-actions.pod:2909
6714 #: ../src/guestfs-actions.pod:4694 ../src/guestfs-actions.pod:4706
6715 #: ../src/guestfs-actions.pod:4976 ../src/guestfs-actions.pod:4988
6716 #: ../src/guestfs-actions.pod:5214 ../src/guestfs-actions.pod:5225
6717 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
6718 msgstr ""
6719
6720 # type: =head2
6721 #. type: =head2
6722 #: ../src/guestfs-actions.pod:112
6723 msgid "guestfs_add_domain_argv"
6724 msgstr ""
6725
6726 # type: verbatim
6727 #. type: verbatim
6728 #: ../src/guestfs-actions.pod:114
6729 #, no-wrap
6730 msgid ""
6731 " int\n"
6732 " guestfs_add_domain_argv (guestfs_h *g,\n"
6733 "                          const char *dom,\n"
6734 "                          const struct guestfs_add_domain_argv *optargs);\n"
6735 "\n"
6736 msgstr ""
6737
6738 # type: textblock
6739 #. type: textblock
6740 #: ../src/guestfs-actions.pod:119
6741 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
6742 msgstr ""
6743
6744 # type: =head2
6745 #. type: =head2
6746 #: ../src/guestfs-actions.pod:123
6747 msgid "guestfs_add_drive"
6748 msgstr ""
6749
6750 # type: verbatim
6751 #. type: verbatim
6752 #: ../src/guestfs-actions.pod:125
6753 #, no-wrap
6754 msgid ""
6755 " int\n"
6756 " guestfs_add_drive (guestfs_h *g,\n"
6757 "                    const char *filename);\n"
6758 "\n"
6759 msgstr ""
6760
6761 # type: textblock
6762 #. type: textblock
6763 #: ../src/guestfs-actions.pod:129
6764 msgid ""
6765 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
6766 "optional parameters, so the disk is added writable, with the format being "
6767 "detected automatically."
6768 msgstr ""
6769
6770 # type: textblock
6771 #. type: textblock
6772 #: ../src/guestfs-actions.pod:133
6773 msgid ""
6774 "Automatic detection of the format opens you up to a potential security hole "
6775 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6776 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6777 "you should think about replacing calls to this function with calls to "
6778 "C<guestfs_add_drive_opts>, and specifying the format."
6779 msgstr ""
6780
6781 # type: =head2
6782 #. type: =head2
6783 #: ../src/guestfs-actions.pod:144
6784 msgid "guestfs_add_drive_opts"
6785 msgstr ""
6786
6787 # type: verbatim
6788 #. type: verbatim
6789 #: ../src/guestfs-actions.pod:146
6790 #, no-wrap
6791 msgid ""
6792 " int\n"
6793 " guestfs_add_drive_opts (guestfs_h *g,\n"
6794 "                         const char *filename,\n"
6795 "                         ...);\n"
6796 "\n"
6797 msgstr ""
6798
6799 # type: verbatim
6800 #. type: verbatim
6801 #: ../src/guestfs-actions.pod:156
6802 #, no-wrap
6803 msgid ""
6804 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
6805 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
6806 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
6807 "\n"
6808 msgstr ""
6809
6810 # type: textblock
6811 #. type: textblock
6812 #: ../src/guestfs-actions.pod:160 ../fish/guestfish-actions.pod:102
6813 msgid ""
6814 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6815 "The first time you call this function, the disk appears as C</dev/sda>, the "
6816 "second time as C</dev/sdb>, and so on."
6817 msgstr ""
6818
6819 # type: textblock
6820 #. type: textblock
6821 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:107
6822 msgid ""
6823 "You don't necessarily need to be root when using libguestfs.  However you "
6824 "obviously do need sufficient permissions to access the filename for whatever "
6825 "operations you want to perform (ie. read access if you just want to read the "
6826 "image or write access if you want to modify the image)."
6827 msgstr ""
6828
6829 # type: textblock
6830 #. type: textblock
6831 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:113
6832 msgid "This call checks that C<filename> exists."
6833 msgstr ""
6834
6835 # type: textblock
6836 #. type: textblock
6837 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4642
6838 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3090
6839 msgid "The optional arguments are:"
6840 msgstr ""
6841
6842 # type: =item
6843 #. type: =item
6844 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:119
6845 msgid "C<readonly>"
6846 msgstr ""
6847
6848 # type: textblock
6849 #. type: textblock
6850 #: ../src/guestfs-actions.pod:179 ../fish/guestfish-actions.pod:121
6851 msgid ""
6852 "If true then the image is treated as read-only.  Writes are still allowed, "
6853 "but they are stored in a temporary snapshot overlay which is discarded at "
6854 "the end.  The disk that you add is not modified."
6855 msgstr ""
6856
6857 # type: =item
6858 #. type: =item
6859 #: ../src/guestfs-actions.pod:183 ../fish/guestfish-actions.pod:125
6860 msgid "C<format>"
6861 msgstr ""
6862
6863 # type: textblock
6864 #. type: textblock
6865 #: ../src/guestfs-actions.pod:185
6866 msgid ""
6867 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
6868 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
6869 "Possible formats include C<raw> and C<qcow2>."
6870 msgstr ""
6871
6872 # type: textblock
6873 #. type: textblock
6874 #: ../src/guestfs-actions.pod:189 ../fish/guestfish-actions.pod:131
6875 msgid ""
6876 "Automatic detection of the format opens you up to a potential security hole "
6877 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6878 "RHBZ#642934.  Specifying the format closes this security hole."
6879 msgstr ""
6880
6881 # type: =item
6882 #. type: =item
6883 #: ../src/guestfs-actions.pod:194 ../fish/guestfish-actions.pod:136
6884 msgid "C<iface>"
6885 msgstr ""
6886
6887 # type: textblock
6888 #. type: textblock
6889 #: ../src/guestfs-actions.pod:196
6890 msgid ""
6891 "This rarely-used option lets you emulate the behaviour of the deprecated "
6892 "C<guestfs_add_drive_with_if> call (q.v.)"
6893 msgstr ""
6894
6895 # type: textblock
6896 #. type: textblock
6897 #: ../src/guestfs-actions.pod:203
6898 msgid "(Added in 1.5.23)"
6899 msgstr ""
6900
6901 # type: =head2
6902 #. type: =head2
6903 #: ../src/guestfs-actions.pod:205
6904 msgid "guestfs_add_drive_opts_va"
6905 msgstr ""
6906
6907 # type: verbatim
6908 #. type: verbatim
6909 #: ../src/guestfs-actions.pod:207
6910 #, no-wrap
6911 msgid ""
6912 " int\n"
6913 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
6914 "                            const char *filename,\n"
6915 "                            va_list args);\n"
6916 "\n"
6917 msgstr ""
6918
6919 # type: textblock
6920 #. type: textblock
6921 #: ../src/guestfs-actions.pod:212
6922 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
6923 msgstr ""
6924
6925 # type: =head2
6926 #. type: =head2
6927 #: ../src/guestfs-actions.pod:216
6928 msgid "guestfs_add_drive_opts_argv"
6929 msgstr ""
6930
6931 # type: verbatim
6932 #. type: verbatim
6933 #: ../src/guestfs-actions.pod:218
6934 #, no-wrap
6935 msgid ""
6936 " int\n"
6937 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
6938 "                              const char *filename,\n"
6939 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
6940 "\n"
6941 msgstr ""
6942
6943 # type: textblock
6944 #. type: textblock
6945 #: ../src/guestfs-actions.pod:223
6946 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
6947 msgstr ""
6948
6949 # type: =head2
6950 #. type: =head2
6951 #: ../src/guestfs-actions.pod:227
6952 msgid "guestfs_add_drive_ro"
6953 msgstr ""
6954
6955 # type: verbatim
6956 #. type: verbatim
6957 #: ../src/guestfs-actions.pod:229
6958 #, no-wrap
6959 msgid ""
6960 " int\n"
6961 " guestfs_add_drive_ro (guestfs_h *g,\n"
6962 "                       const char *filename);\n"
6963 "\n"
6964 msgstr ""
6965
6966 # type: textblock
6967 #. type: textblock
6968 #: ../src/guestfs-actions.pod:233
6969 msgid ""
6970 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
6971 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
6972 "disk is added read-only, with the format being detected automatically."
6973 msgstr ""
6974
6975 # type: textblock
6976 #. type: textblock
6977 #: ../src/guestfs-actions.pod:240
6978 msgid "(Added in 1.0.38)"
6979 msgstr ""
6980
6981 # type: =head2
6982 #. type: =head2
6983 #: ../src/guestfs-actions.pod:242
6984 msgid "guestfs_add_drive_ro_with_if"
6985 msgstr ""
6986
6987 # type: verbatim
6988 #. type: verbatim
6989 #: ../src/guestfs-actions.pod:244
6990 #, no-wrap
6991 msgid ""
6992 " int\n"
6993 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
6994 "                               const char *filename,\n"
6995 "                               const char *iface);\n"
6996 "\n"
6997 msgstr ""
6998
6999 # type: textblock
7000 #. type: textblock
7001 #: ../src/guestfs-actions.pod:249
7002 msgid ""
7003 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
7004 "QEMU interface emulation to use at run time."
7005 msgstr ""
7006
7007 # type: textblock
7008 #. type: textblock
7009 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
7010 #: ../src/guestfs-actions.pod:2418
7011 msgid "(Added in 1.0.84)"
7012 msgstr ""
7013
7014 # type: =head2
7015 #. type: =head2
7016 #: ../src/guestfs-actions.pod:263
7017 msgid "guestfs_add_drive_with_if"
7018 msgstr ""
7019
7020 # type: verbatim
7021 #. type: verbatim
7022 #: ../src/guestfs-actions.pod:265
7023 #, no-wrap
7024 msgid ""
7025 " int\n"
7026 " guestfs_add_drive_with_if (guestfs_h *g,\n"
7027 "                            const char *filename,\n"
7028 "                            const char *iface);\n"
7029 "\n"
7030 msgstr ""
7031
7032 # type: textblock
7033 #. type: textblock
7034 #: ../src/guestfs-actions.pod:270
7035 msgid ""
7036 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
7037 "QEMU interface emulation to use at run time."
7038 msgstr ""
7039
7040 # type: =head2
7041 #. type: =head2
7042 #: ../src/guestfs-actions.pod:284
7043 msgid "guestfs_aug_clear"
7044 msgstr ""
7045
7046 # type: verbatim
7047 #. type: verbatim
7048 #: ../src/guestfs-actions.pod:286
7049 #, no-wrap
7050 msgid ""
7051 " int\n"
7052 " guestfs_aug_clear (guestfs_h *g,\n"
7053 "                    const char *augpath);\n"
7054 "\n"
7055 msgstr ""
7056
7057 # type: textblock
7058 #. type: textblock
7059 #: ../src/guestfs-actions.pod:290 ../fish/guestfish-actions.pod:188
7060 msgid ""
7061 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
7062 "L<augtool(1)> C<clear> command."
7063 msgstr ""
7064
7065 # type: textblock
7066 #. type: textblock
7067 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2168
7068 msgid "(Added in 1.3.4)"
7069 msgstr ""
7070
7071 # type: =head2
7072 #. type: =head2
7073 #: ../src/guestfs-actions.pod:297
7074 msgid "guestfs_aug_close"
7075 msgstr ""
7076
7077 # type: verbatim
7078 #. type: verbatim
7079 #: ../src/guestfs-actions.pod:299
7080 #, no-wrap
7081 msgid ""
7082 " int\n"
7083 " guestfs_aug_close (guestfs_h *g);\n"
7084 "\n"
7085 msgstr ""
7086
7087 # type: textblock
7088 #. type: textblock
7089 #: ../src/guestfs-actions.pod:302
7090 msgid ""
7091 "Close the current Augeas handle and free up any resources used by it.  After "
7092 "calling this, you have to call C<guestfs_aug_init> again before you can use "
7093 "any other Augeas functions."
7094 msgstr ""
7095
7096 # type: textblock
7097 #. type: textblock
7098 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
7099 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
7100 #: ../src/guestfs-actions.pod:424 ../src/guestfs-actions.pod:444
7101 #: ../src/guestfs-actions.pod:458 ../src/guestfs-actions.pod:489
7102 #: ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:517
7103 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:549
7104 #: ../src/guestfs-actions.pod:5827
7105 msgid "(Added in 0.7)"
7106 msgstr ""
7107
7108 # type: =head2
7109 #. type: =head2
7110 #: ../src/guestfs-actions.pod:311
7111 msgid "guestfs_aug_defnode"
7112 msgstr ""
7113
7114 # type: verbatim
7115 #. type: verbatim
7116 #: ../src/guestfs-actions.pod:313
7117 #, no-wrap
7118 msgid ""
7119 " struct guestfs_int_bool *\n"
7120 " guestfs_aug_defnode (guestfs_h *g,\n"
7121 "                      const char *name,\n"
7122 "                      const char *expr,\n"
7123 "                      const char *val);\n"
7124 "\n"
7125 msgstr ""
7126
7127 # type: textblock
7128 #. type: textblock
7129 #: ../src/guestfs-actions.pod:319 ../fish/guestfish-actions.pod:204
7130 msgid ""
7131 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
7132 msgstr ""
7133
7134 # type: textblock
7135 #. type: textblock
7136 #: ../src/guestfs-actions.pod:322
7137 msgid ""
7138 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
7139 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
7140 "containing that single node."
7141 msgstr ""
7142
7143 # type: textblock
7144 #. type: textblock
7145 #: ../src/guestfs-actions.pod:326 ../fish/guestfish-actions.pod:211
7146 msgid ""
7147 "On success this returns a pair containing the number of nodes in the "
7148 "nodeset, and a boolean flag if a node was created."
7149 msgstr ""
7150
7151 # type: textblock
7152 #. type: textblock
7153 #: ../src/guestfs-actions.pod:330
7154 msgid ""
7155 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
7156 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
7157 msgstr ""
7158
7159 # type: =head2
7160 #. type: =head2
7161 #: ../src/guestfs-actions.pod:336
7162 msgid "guestfs_aug_defvar"
7163 msgstr ""
7164
7165 # type: verbatim
7166 #. type: verbatim
7167 #: ../src/guestfs-actions.pod:338
7168 #, no-wrap
7169 msgid ""
7170 " int\n"
7171 " guestfs_aug_defvar (guestfs_h *g,\n"
7172 "                     const char *name,\n"
7173 "                     const char *expr);\n"
7174 "\n"
7175 msgstr ""
7176
7177 # type: textblock
7178 #. type: textblock
7179 #: ../src/guestfs-actions.pod:343 ../fish/guestfish-actions.pod:219
7180 msgid ""
7181 "Defines an Augeas variable C<name> whose value is the result of evaluating "
7182 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
7183 msgstr ""
7184
7185 # type: textblock
7186 #. type: textblock
7187 #: ../src/guestfs-actions.pod:347 ../fish/guestfish-actions.pod:223
7188 msgid ""
7189 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
7190 "evaluates to something which is not a nodeset."
7191 msgstr ""
7192
7193 # type: =head2
7194 #. type: =head2
7195 #: ../src/guestfs-actions.pod:354
7196 msgid "guestfs_aug_get"
7197 msgstr ""
7198
7199 # type: verbatim
7200 #. type: verbatim
7201 #: ../src/guestfs-actions.pod:356
7202 #, no-wrap
7203 msgid ""
7204 " char *\n"
7205 " guestfs_aug_get (guestfs_h *g,\n"
7206 "                  const char *augpath);\n"
7207 "\n"
7208 msgstr ""
7209
7210 # type: textblock
7211 #. type: textblock
7212 #: ../src/guestfs-actions.pod:360 ../fish/guestfish-actions.pod:230
7213 msgid ""
7214 "Look up the value associated with C<path>.  If C<path> matches exactly one "
7215 "node, the C<value> is returned."
7216 msgstr ""
7217
7218 # type: textblock
7219 #. type: textblock
7220 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:920
7221 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:998
7222 #: ../src/guestfs-actions.pod:1014 ../src/guestfs-actions.pod:1117
7223 #: ../src/guestfs-actions.pod:1247 ../src/guestfs-actions.pod:1264
7224 #: ../src/guestfs-actions.pod:1283 ../src/guestfs-actions.pod:1417
7225 #: ../src/guestfs-actions.pod:1605 ../src/guestfs-actions.pod:1717
7226 #: ../src/guestfs-actions.pod:1880 ../src/guestfs-actions.pod:1897
7227 #: ../src/guestfs-actions.pod:1964 ../src/guestfs-actions.pod:2000
7228 #: ../src/guestfs-actions.pod:2021 ../src/guestfs-actions.pod:2191
7229 #: ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2587
7230 #: ../src/guestfs-actions.pod:2677 ../src/guestfs-actions.pod:2781
7231 #: ../src/guestfs-actions.pod:2800 ../src/guestfs-actions.pod:3014
7232 #: ../src/guestfs-actions.pod:3042 ../src/guestfs-actions.pod:3063
7233 #: ../src/guestfs-actions.pod:3097 ../src/guestfs-actions.pod:3156
7234 #: ../src/guestfs-actions.pod:3176 ../src/guestfs-actions.pod:3196
7235 #: ../src/guestfs-actions.pod:3823 ../src/guestfs-actions.pod:4176
7236 #: ../src/guestfs-actions.pod:4346 ../src/guestfs-actions.pod:4456
7237 #: ../src/guestfs-actions.pod:5362 ../src/guestfs-actions.pod:5555
7238 #: ../src/guestfs-actions.pod:5725 ../src/guestfs-actions.pod:5903
7239 #: ../src/guestfs-actions.pod:5952 ../src/guestfs-actions.pod:6589
7240 #: ../src/guestfs-actions.pod:6605 ../src/guestfs-actions.pod:6622
7241 #: ../src/guestfs-actions.pod:6653 ../src/guestfs-actions.pod:7327
7242 #: ../src/guestfs-actions.pod:7346 ../src/guestfs-actions.pod:7364
7243 #: ../src/guestfs-actions.pod:7538 ../src/guestfs-actions.pod:7818
7244 msgid ""
7245 "This function returns a string, or NULL on error.  I<The caller must free "
7246 "the returned string after use>."
7247 msgstr ""
7248
7249 # type: =head2
7250 #. type: =head2
7251 #: ../src/guestfs-actions.pod:368
7252 msgid "guestfs_aug_init"
7253 msgstr ""
7254
7255 # type: verbatim
7256 #. type: verbatim
7257 #: ../src/guestfs-actions.pod:370
7258 #, no-wrap
7259 msgid ""
7260 " int\n"
7261 " guestfs_aug_init (guestfs_h *g,\n"
7262 "                   const char *root,\n"
7263 "                   int flags);\n"
7264 "\n"
7265 msgstr ""
7266
7267 # type: textblock
7268 #. type: textblock
7269 #: ../src/guestfs-actions.pod:375 ../fish/guestfish-actions.pod:237
7270 msgid ""
7271 "Create a new Augeas handle for editing configuration files.  If there was "
7272 "any previous Augeas handle associated with this guestfs session, then it is "
7273 "closed."
7274 msgstr ""
7275
7276 # type: textblock
7277 #. type: textblock
7278 #: ../src/guestfs-actions.pod:379
7279 msgid "You must call this before using any other C<guestfs_aug_*> commands."
7280 msgstr ""
7281
7282 # type: textblock
7283 #. type: textblock
7284 #: ../src/guestfs-actions.pod:382 ../fish/guestfish-actions.pod:244
7285 msgid ""
7286 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
7287 msgstr ""
7288
7289 # type: textblock
7290 #. type: textblock
7291 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:247
7292 msgid ""
7293 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
7294 "logical I<or> of the following integers:"
7295 msgstr ""
7296
7297 # type: =item
7298 #. type: =item
7299 #: ../src/guestfs-actions.pod:391 ../fish/guestfish-actions.pod:253
7300 msgid "C<AUG_SAVE_BACKUP> = 1"
7301 msgstr ""
7302
7303 # type: textblock
7304 #. type: textblock
7305 #: ../src/guestfs-actions.pod:393 ../fish/guestfish-actions.pod:255
7306 msgid "Keep the original file with a C<.augsave> extension."
7307 msgstr ""
7308
7309 # type: =item
7310 #. type: =item
7311 #: ../src/guestfs-actions.pod:395 ../fish/guestfish-actions.pod:257
7312 msgid "C<AUG_SAVE_NEWFILE> = 2"
7313 msgstr ""
7314
7315 # type: textblock
7316 #. type: textblock
7317 #: ../src/guestfs-actions.pod:397 ../fish/guestfish-actions.pod:259
7318 msgid ""
7319 "Save changes into a file with extension C<.augnew>, and do not overwrite "
7320 "original.  Overrides C<AUG_SAVE_BACKUP>."
7321 msgstr ""
7322
7323 # type: =item
7324 #. type: =item
7325 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:262
7326 msgid "C<AUG_TYPE_CHECK> = 4"
7327 msgstr ""
7328
7329 # type: textblock
7330 #. type: textblock
7331 #: ../src/guestfs-actions.pod:402 ../fish/guestfish-actions.pod:264
7332 msgid "Typecheck lenses (can be expensive)."
7333 msgstr ""
7334
7335 # type: =item
7336 #. type: =item
7337 #: ../src/guestfs-actions.pod:404 ../fish/guestfish-actions.pod:266
7338 msgid "C<AUG_NO_STDINC> = 8"
7339 msgstr ""
7340
7341 # type: textblock
7342 #. type: textblock
7343 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:268
7344 msgid "Do not use standard load path for modules."
7345 msgstr ""
7346
7347 # type: =item
7348 #. type: =item
7349 #: ../src/guestfs-actions.pod:408 ../fish/guestfish-actions.pod:270
7350 msgid "C<AUG_SAVE_NOOP> = 16"
7351 msgstr ""
7352
7353 # type: textblock
7354 #. type: textblock
7355 #: ../src/guestfs-actions.pod:410 ../fish/guestfish-actions.pod:272
7356 msgid "Make save a no-op, just record what would have been changed."
7357 msgstr ""
7358
7359 # type: =item
7360 #. type: =item
7361 #: ../src/guestfs-actions.pod:412 ../fish/guestfish-actions.pod:274
7362 msgid "C<AUG_NO_LOAD> = 32"
7363 msgstr ""
7364
7365 # type: textblock
7366 #. type: textblock
7367 #: ../src/guestfs-actions.pod:414
7368 msgid "Do not load the tree in C<guestfs_aug_init>."
7369 msgstr ""
7370
7371 # type: textblock
7372 #. type: textblock
7373 #: ../src/guestfs-actions.pod:418
7374 msgid "To close the handle, you can call C<guestfs_aug_close>."
7375 msgstr ""
7376
7377 # type: textblock
7378 #. type: textblock
7379 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:282
7380 msgid "To find out more about Augeas, see L<http://augeas.net/>."
7381 msgstr ""
7382
7383 # type: =head2
7384 #. type: =head2
7385 #: ../src/guestfs-actions.pod:426
7386 msgid "guestfs_aug_insert"
7387 msgstr ""
7388
7389 # type: verbatim
7390 #. type: verbatim
7391 #: ../src/guestfs-actions.pod:428
7392 #, no-wrap
7393 msgid ""
7394 " int\n"
7395 " guestfs_aug_insert (guestfs_h *g,\n"
7396 "                     const char *augpath,\n"
7397 "                     const char *label,\n"
7398 "                     int before);\n"
7399 "\n"
7400 msgstr ""
7401
7402 # type: textblock
7403 #. type: textblock
7404 #: ../src/guestfs-actions.pod:434 ../fish/guestfish-actions.pod:288
7405 msgid ""
7406 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
7407 "or after C<path> (depending on the boolean flag C<before>)."
7408 msgstr ""
7409
7410 # type: textblock
7411 #. type: textblock
7412 #: ../src/guestfs-actions.pod:438 ../fish/guestfish-actions.pod:292
7413 msgid ""
7414 "C<path> must match exactly one existing node in the tree, and C<label> must "
7415 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
7416 msgstr ""
7417
7418 # type: =head2
7419 #. type: =head2
7420 #: ../src/guestfs-actions.pod:446
7421 msgid "guestfs_aug_load"
7422 msgstr ""
7423
7424 # type: verbatim
7425 #. type: verbatim
7426 #: ../src/guestfs-actions.pod:448
7427 #, no-wrap
7428 msgid ""
7429 " int\n"
7430 " guestfs_aug_load (guestfs_h *g);\n"
7431 "\n"
7432 msgstr ""
7433
7434 # type: textblock
7435 #. type: textblock
7436 #: ../src/guestfs-actions.pod:451 ../fish/guestfish-actions.pod:300
7437 msgid "Load files into the tree."
7438 msgstr ""
7439
7440 # type: textblock
7441 #. type: textblock
7442 #: ../src/guestfs-actions.pod:453 ../fish/guestfish-actions.pod:302
7443 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
7444 msgstr ""
7445
7446 # type: =head2
7447 #. type: =head2
7448 #: ../src/guestfs-actions.pod:460
7449 msgid "guestfs_aug_ls"
7450 msgstr ""
7451
7452 # type: verbatim
7453 #. type: verbatim
7454 #: ../src/guestfs-actions.pod:462
7455 #, no-wrap
7456 msgid ""
7457 " char **\n"
7458 " guestfs_aug_ls (guestfs_h *g,\n"
7459 "                 const char *augpath);\n"
7460 "\n"
7461 msgstr ""
7462
7463 # type: textblock
7464 #. type: textblock
7465 #: ../src/guestfs-actions.pod:466
7466 msgid ""
7467 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
7468 "sorting the resulting nodes into alphabetical order."
7469 msgstr ""
7470
7471 # type: textblock
7472 #. type: textblock
7473 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:485
7474 #: ../src/guestfs-actions.pod:631 ../src/guestfs-actions.pod:1136
7475 #: ../src/guestfs-actions.pod:1432 ../src/guestfs-actions.pod:1451
7476 #: ../src/guestfs-actions.pod:1554 ../src/guestfs-actions.pod:1573
7477 #: ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:2263
7478 #: ../src/guestfs-actions.pod:2279 ../src/guestfs-actions.pod:2298
7479 #: ../src/guestfs-actions.pod:2341 ../src/guestfs-actions.pod:2365
7480 #: ../src/guestfs-actions.pod:2436 ../src/guestfs-actions.pod:2485
7481 #: ../src/guestfs-actions.pod:2742 ../src/guestfs-actions.pod:3116
7482 #: ../src/guestfs-actions.pod:3392 ../src/guestfs-actions.pod:3706
7483 #: ../src/guestfs-actions.pod:3723 ../src/guestfs-actions.pod:3743
7484 #: ../src/guestfs-actions.pod:3805 ../src/guestfs-actions.pod:3910
7485 #: ../src/guestfs-actions.pod:4318 ../src/guestfs-actions.pod:5085
7486 #: ../src/guestfs-actions.pod:5697 ../src/guestfs-actions.pod:5823
7487 #: ../src/guestfs-actions.pod:5937 ../src/guestfs-actions.pod:6669
7488 #: ../src/guestfs-actions.pod:6730 ../src/guestfs-actions.pod:6785
7489 #: ../src/guestfs-actions.pod:6931 ../src/guestfs-actions.pod:6955
7490 #: ../src/guestfs-actions.pod:7431 ../src/guestfs-actions.pod:7451
7491 #: ../src/guestfs-actions.pod:7498 ../src/guestfs-actions.pod:7670
7492 #: ../src/guestfs-actions.pod:7689 ../src/guestfs-actions.pod:7775
7493 #: ../src/guestfs-actions.pod:7794 ../src/guestfs-actions.pod:7840
7494 #: ../src/guestfs-actions.pod:7859
7495 msgid ""
7496 "This function returns a NULL-terminated array of strings (like L<environ(3)"
7497 ">), or NULL if there was an error.  I<The caller must free the strings and "
7498 "the array after use>."
7499 msgstr ""
7500
7501 # type: textblock
7502 #. type: textblock
7503 #: ../src/guestfs-actions.pod:473 ../src/guestfs-actions.pod:1061
7504 #: ../src/guestfs-actions.pod:1079 ../src/guestfs-actions.pod:1489
7505 #: ../src/guestfs-actions.pod:3470 ../src/guestfs-actions.pod:3501
7506 #: ../src/guestfs-actions.pod:4159 ../src/guestfs-actions.pod:4209
7507 #: ../src/guestfs-actions.pod:4396 ../src/guestfs-actions.pod:4429
7508 #: ../src/guestfs-actions.pod:4592 ../src/guestfs-actions.pod:5089
7509 #: ../src/guestfs-actions.pod:5638 ../src/guestfs-actions.pod:6035
7510 #: ../src/guestfs-actions.pod:6049 ../src/guestfs-actions.pod:6061
7511 #: ../src/guestfs-actions.pod:6510 ../src/guestfs-actions.pod:7169
7512 #: ../src/guestfs-actions.pod:7182 ../src/guestfs-actions.pod:7415
7513 #: ../src/guestfs-actions.pod:7658
7514 msgid "(Added in 0.8)"
7515 msgstr ""
7516
7517 # type: =head2
7518 #. type: =head2
7519 #: ../src/guestfs-actions.pod:475
7520 msgid "guestfs_aug_match"
7521 msgstr ""
7522
7523 # type: verbatim
7524 #. type: verbatim
7525 #: ../src/guestfs-actions.pod:477
7526 #, no-wrap
7527 msgid ""
7528 " char **\n"
7529 " guestfs_aug_match (guestfs_h *g,\n"
7530 "                    const char *augpath);\n"
7531 "\n"
7532 msgstr ""
7533
7534 # type: textblock
7535 #. type: textblock
7536 #: ../src/guestfs-actions.pod:481 ../fish/guestfish-actions.pod:316
7537 msgid ""
7538 "Returns a list of paths which match the path expression C<path>.  The "
7539 "returned paths are sufficiently qualified so that they match exactly one "
7540 "node in the current tree."
7541 msgstr ""
7542
7543 # type: =head2
7544 #. type: =head2
7545 #: ../src/guestfs-actions.pod:491
7546 msgid "guestfs_aug_mv"
7547 msgstr ""
7548
7549 # type: verbatim
7550 #. type: verbatim
7551 #: ../src/guestfs-actions.pod:493
7552 #, no-wrap
7553 msgid ""
7554 " int\n"
7555 " guestfs_aug_mv (guestfs_h *g,\n"
7556 "                 const char *src,\n"
7557 "                 const char *dest);\n"
7558 "\n"
7559 msgstr ""
7560
7561 # type: textblock
7562 #. type: textblock
7563 #: ../src/guestfs-actions.pod:498 ../fish/guestfish-actions.pod:324
7564 msgid ""
7565 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
7566 "C<dest> is overwritten if it exists."
7567 msgstr ""
7568
7569 # type: =head2
7570 #. type: =head2
7571 #: ../src/guestfs-actions.pod:505
7572 msgid "guestfs_aug_rm"
7573 msgstr ""
7574
7575 # type: verbatim
7576 #. type: verbatim
7577 #: ../src/guestfs-actions.pod:507
7578 #, no-wrap
7579 msgid ""
7580 " int\n"
7581 " guestfs_aug_rm (guestfs_h *g,\n"
7582 "                 const char *augpath);\n"
7583 "\n"
7584 msgstr ""
7585
7586 # type: textblock
7587 #. type: textblock
7588 #: ../src/guestfs-actions.pod:511 ../fish/guestfish-actions.pod:331
7589 msgid "Remove C<path> and all of its children."
7590 msgstr ""
7591
7592 # type: textblock
7593 #. type: textblock
7594 #: ../src/guestfs-actions.pod:513 ../fish/guestfish-actions.pod:333
7595 msgid "On success this returns the number of entries which were removed."
7596 msgstr ""
7597
7598 # type: =head2
7599 #. type: =head2
7600 #: ../src/guestfs-actions.pod:519
7601 msgid "guestfs_aug_save"
7602 msgstr ""
7603
7604 # type: verbatim
7605 #. type: verbatim
7606 #: ../src/guestfs-actions.pod:521
7607 #, no-wrap
7608 msgid ""
7609 " int\n"
7610 " guestfs_aug_save (guestfs_h *g);\n"
7611 "\n"
7612 msgstr ""
7613
7614 # type: textblock
7615 #. type: textblock
7616 #: ../src/guestfs-actions.pod:524 ../fish/guestfish-actions.pod:339
7617 msgid "This writes all pending changes to disk."
7618 msgstr ""
7619
7620 # type: textblock
7621 #. type: textblock
7622 #: ../src/guestfs-actions.pod:526
7623 msgid ""
7624 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
7625 "are saved."
7626 msgstr ""
7627
7628 # type: =head2
7629 #. type: =head2
7630 #: ../src/guestfs-actions.pod:533
7631 msgid "guestfs_aug_set"
7632 msgstr ""
7633
7634 # type: verbatim
7635 #. type: verbatim
7636 #: ../src/guestfs-actions.pod:535
7637 #, no-wrap
7638 msgid ""
7639 " int\n"
7640 " guestfs_aug_set (guestfs_h *g,\n"
7641 "                  const char *augpath,\n"
7642 "                  const char *val);\n"
7643 "\n"
7644 msgstr ""
7645
7646 # type: textblock
7647 #. type: textblock
7648 #: ../src/guestfs-actions.pod:540 ../fish/guestfish-actions.pod:348
7649 msgid "Set the value associated with C<path> to C<val>."
7650 msgstr ""
7651
7652 # type: textblock
7653 #. type: textblock
7654 #: ../src/guestfs-actions.pod:542
7655 msgid ""
7656 "In the Augeas API, it is possible to clear a node by setting the value to "
7657 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
7658 "this call.  Instead you must use the C<guestfs_aug_clear> call."
7659 msgstr ""
7660
7661 # type: =head2
7662 #. type: =head2
7663 #: ../src/guestfs-actions.pod:551
7664 msgid "guestfs_available"
7665 msgstr ""
7666
7667 # type: verbatim
7668 #. type: verbatim
7669 #: ../src/guestfs-actions.pod:553
7670 #, no-wrap
7671 msgid ""
7672 " int\n"
7673 " guestfs_available (guestfs_h *g,\n"
7674 "                    char *const *groups);\n"
7675 "\n"
7676 msgstr ""
7677
7678 # type: textblock
7679 #. type: textblock
7680 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:359
7681 msgid ""
7682 "This command is used to check the availability of some groups of "
7683 "functionality in the appliance, which not all builds of the libguestfs "
7684 "appliance will be able to provide."
7685 msgstr ""
7686
7687 # type: textblock
7688 #. type: textblock
7689 #: ../src/guestfs-actions.pod:561
7690 msgid ""
7691 "The libguestfs groups, and the functions that those groups correspond to, "
7692 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
7693 "runtime by calling C<guestfs_available_all_groups>."
7694 msgstr ""
7695
7696 # type: textblock
7697 #. type: textblock
7698 #: ../src/guestfs-actions.pod:566 ../fish/guestfish-actions.pod:368
7699 msgid ""
7700 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
7701 "\"]> would check for the availability of the Linux inotify functions and "
7702 "Augeas (configuration file editing) functions."
7703 msgstr ""
7704
7705 # type: textblock
7706 #. type: textblock
7707 #: ../src/guestfs-actions.pod:571 ../fish/guestfish-actions.pod:373
7708 msgid "The command returns no error if I<all> requested groups are available."
7709 msgstr ""
7710
7711 # type: textblock
7712 #. type: textblock
7713 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:375
7714 msgid ""
7715 "It fails with an error if one or more of the requested groups is unavailable "
7716 "in the appliance."
7717 msgstr ""
7718
7719 # type: textblock
7720 #. type: textblock
7721 #: ../src/guestfs-actions.pod:576 ../fish/guestfish-actions.pod:378
7722 msgid ""
7723 "If an unknown group name is included in the list of groups then an error is "
7724 "always returned."
7725 msgstr ""
7726
7727 # type: textblock
7728 #. type: textblock
7729 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:381
7730 msgid "I<Notes:>"
7731 msgstr ""
7732
7733 # type: textblock
7734 #. type: textblock
7735 #: ../src/guestfs-actions.pod:585
7736 msgid "You must call C<guestfs_launch> before calling this function."
7737 msgstr ""
7738
7739 # type: textblock
7740 #. type: textblock
7741 #: ../src/guestfs-actions.pod:587 ../fish/guestfish-actions.pod:389
7742 msgid ""
7743 "The reason is because we don't know what groups are supported by the "
7744 "appliance/daemon until it is running and can be queried."
7745 msgstr ""
7746
7747 # type: textblock
7748 #. type: textblock
7749 #: ../src/guestfs-actions.pod:593 ../fish/guestfish-actions.pod:395
7750 msgid ""
7751 "If a group of functions is available, this does not necessarily mean that "
7752 "they will work.  You still have to check for errors when calling individual "
7753 "API functions even if they are available."
7754 msgstr ""
7755
7756 # type: textblock
7757 #. type: textblock
7758 #: ../src/guestfs-actions.pod:600 ../fish/guestfish-actions.pod:402
7759 msgid ""
7760 "It is usually the job of distro packagers to build complete functionality "
7761 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
7762 "with all requirements satisfied, will support everything."
7763 msgstr ""
7764
7765 # type: textblock
7766 #. type: textblock
7767 #: ../src/guestfs-actions.pod:607
7768 msgid ""
7769 "This call was added in version C<1.0.80>.  In previous versions of "
7770 "libguestfs all you could do would be to speculatively execute a command to "
7771 "find out if the daemon implemented it.  See also C<guestfs_version>."
7772 msgstr ""
7773
7774 # type: textblock
7775 #. type: textblock
7776 #: ../src/guestfs-actions.pod:616 ../src/guestfs-actions.pod:1234
7777 msgid "(Added in 1.0.80)"
7778 msgstr ""
7779
7780 # type: =head2
7781 #. type: =head2
7782 #: ../src/guestfs-actions.pod:618
7783 msgid "guestfs_available_all_groups"
7784 msgstr ""
7785
7786 # type: verbatim
7787 #. type: verbatim
7788 #: ../src/guestfs-actions.pod:620
7789 #, no-wrap
7790 msgid ""
7791 " char **\n"
7792 " guestfs_available_all_groups (guestfs_h *g);\n"
7793 "\n"
7794 msgstr ""
7795
7796 # type: textblock
7797 #. type: textblock
7798 #: ../src/guestfs-actions.pod:623
7799 msgid ""
7800 "This command returns a list of all optional groups that this daemon knows "
7801 "about.  Note this returns both supported and unsupported groups.  To find "
7802 "out which ones the daemon can actually support you have to call "
7803 "C<guestfs_available> on each member of the returned list."
7804 msgstr ""
7805
7806 # type: textblock
7807 #. type: textblock
7808 #: ../src/guestfs-actions.pod:629
7809 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
7810 msgstr ""
7811
7812 # type: textblock
7813 #. type: textblock
7814 #: ../src/guestfs-actions.pod:635
7815 msgid "(Added in 1.3.15)"
7816 msgstr ""
7817
7818 # type: =head2
7819 #. type: =head2
7820 #: ../src/guestfs-actions.pod:637
7821 msgid "guestfs_base64_in"
7822 msgstr ""
7823
7824 # type: verbatim
7825 #. type: verbatim
7826 #: ../src/guestfs-actions.pod:639
7827 #, no-wrap
7828 msgid ""
7829 " int\n"
7830 " guestfs_base64_in (guestfs_h *g,\n"
7831 "                    const char *base64file,\n"
7832 "                    const char *filename);\n"
7833 "\n"
7834 msgstr ""
7835
7836 # type: textblock
7837 #. type: textblock
7838 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:432
7839 msgid ""
7840 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7841 msgstr ""
7842
7843 # type: textblock
7844 #. type: textblock
7845 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:663
7846 msgid "(Added in 1.3.5)"
7847 msgstr ""
7848
7849 # type: =head2
7850 #. type: =head2
7851 #: ../src/guestfs-actions.pod:651
7852 msgid "guestfs_base64_out"
7853 msgstr ""
7854
7855 # type: verbatim
7856 #. type: verbatim
7857 #: ../src/guestfs-actions.pod:653
7858 #, no-wrap
7859 msgid ""
7860 " int\n"
7861 " guestfs_base64_out (guestfs_h *g,\n"
7862 "                     const char *filename,\n"
7863 "                     const char *base64file);\n"
7864 "\n"
7865 msgstr ""
7866
7867 # type: textblock
7868 #. type: textblock
7869 #: ../src/guestfs-actions.pod:658 ../fish/guestfish-actions.pod:441
7870 msgid ""
7871 "This command downloads the contents of C<filename>, writing it out to local "
7872 "file C<base64file> encoded as base64."
7873 msgstr ""
7874
7875 # type: =head2
7876 #. type: =head2
7877 #: ../src/guestfs-actions.pod:665
7878 msgid "guestfs_blockdev_flushbufs"
7879 msgstr ""
7880
7881 # type: verbatim
7882 #. type: verbatim
7883 #: ../src/guestfs-actions.pod:667
7884 #, no-wrap
7885 msgid ""
7886 " int\n"
7887 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
7888 "                             const char *device);\n"
7889 "\n"
7890 msgstr ""
7891
7892 # type: textblock
7893 #. type: textblock
7894 #: ../src/guestfs-actions.pod:671 ../fish/guestfish-actions.pod:450
7895 msgid ""
7896 "This tells the kernel to flush internal buffers associated with C<device>."
7897 msgstr ""
7898
7899 # type: textblock
7900 #. type: textblock
7901 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:691
7902 #: ../src/guestfs-actions.pod:706 ../src/guestfs-actions.pod:722
7903 #: ../src/guestfs-actions.pod:740 ../src/guestfs-actions.pod:759
7904 #: ../src/guestfs-actions.pod:773 ../src/guestfs-actions.pod:791
7905 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:819
7906 #: ../fish/guestfish-actions.pod:453 ../fish/guestfish-actions.pod:464
7907 #: ../fish/guestfish-actions.pod:473 ../fish/guestfish-actions.pod:483
7908 #: ../fish/guestfish-actions.pod:495 ../fish/guestfish-actions.pod:508
7909 #: ../fish/guestfish-actions.pod:516 ../fish/guestfish-actions.pod:527
7910 #: ../fish/guestfish-actions.pod:535 ../fish/guestfish-actions.pod:543
7911 msgid "This uses the L<blockdev(8)> command."
7912 msgstr ""
7913
7914 # type: textblock
7915 #. type: textblock
7916 #: ../src/guestfs-actions.pod:678 ../src/guestfs-actions.pod:695
7917 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:726
7918 #: ../src/guestfs-actions.pod:744 ../src/guestfs-actions.pod:763
7919 #: ../src/guestfs-actions.pod:777 ../src/guestfs-actions.pod:795
7920 #: ../src/guestfs-actions.pod:809 ../src/guestfs-actions.pod:823
7921 msgid "(Added in 0.9.3)"
7922 msgstr ""
7923
7924 # type: =head2
7925 #. type: =head2
7926 #: ../src/guestfs-actions.pod:680
7927 msgid "guestfs_blockdev_getbsz"
7928 msgstr ""
7929
7930 # type: verbatim
7931 #. type: verbatim
7932 #: ../src/guestfs-actions.pod:682
7933 #, no-wrap
7934 msgid ""
7935 " int\n"
7936 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
7937 "                          const char *device);\n"
7938 "\n"
7939 msgstr ""
7940
7941 # type: textblock
7942 #. type: textblock
7943 #: ../src/guestfs-actions.pod:686 ../fish/guestfish-actions.pod:459
7944 msgid "This returns the block size of a device."
7945 msgstr ""
7946
7947 # type: textblock
7948 #. type: textblock
7949 #: ../src/guestfs-actions.pod:688 ../src/guestfs-actions.pod:788
7950 #: ../fish/guestfish-actions.pod:461 ../fish/guestfish-actions.pod:524
7951 msgid ""
7952 "(Note this is different from both I<size in blocks> and I<filesystem block "
7953 "size>)."
7954 msgstr ""
7955
7956 # type: =head2
7957 #. type: =head2
7958 #: ../src/guestfs-actions.pod:697
7959 msgid "guestfs_blockdev_getro"
7960 msgstr ""
7961
7962 # type: verbatim
7963 #. type: verbatim
7964 #: ../src/guestfs-actions.pod:699
7965 #, no-wrap
7966 msgid ""
7967 " int\n"
7968 " guestfs_blockdev_getro (guestfs_h *g,\n"
7969 "                         const char *device);\n"
7970 "\n"
7971 msgstr ""
7972
7973 # type: textblock
7974 #. type: textblock
7975 #: ../src/guestfs-actions.pod:703 ../fish/guestfish-actions.pod:470
7976 msgid ""
7977 "Returns a boolean indicating if the block device is read-only (true if read-"
7978 "only, false if not)."
7979 msgstr ""
7980
7981 # type: textblock
7982 #. type: textblock
7983 #: ../src/guestfs-actions.pod:708 ../src/guestfs-actions.pod:1472
7984 #: ../src/guestfs-actions.pod:1487 ../src/guestfs-actions.pod:1976
7985 #: ../src/guestfs-actions.pod:1987 ../src/guestfs-actions.pod:2059
7986 #: ../src/guestfs-actions.pod:2114 ../src/guestfs-actions.pod:2129
7987 #: ../src/guestfs-actions.pod:2154 ../src/guestfs-actions.pod:2177
7988 #: ../src/guestfs-actions.pod:3213 ../src/guestfs-actions.pod:3229
7989 #: ../src/guestfs-actions.pod:3247 ../src/guestfs-actions.pod:3409
7990 #: ../src/guestfs-actions.pod:3423 ../src/guestfs-actions.pod:3438
7991 #: ../src/guestfs-actions.pod:3452 ../src/guestfs-actions.pod:3468
7992 #: ../src/guestfs-actions.pod:3483 ../src/guestfs-actions.pod:3499
7993 #: ../src/guestfs-actions.pod:3513 ../src/guestfs-actions.pod:3526
7994 #: ../src/guestfs-actions.pod:3540 ../src/guestfs-actions.pod:3555
7995 #: ../src/guestfs-actions.pod:3570 ../src/guestfs-actions.pod:3583
7996 #: ../src/guestfs-actions.pod:3597 ../src/guestfs-actions.pod:5326
7997 msgid "This function returns a C truth value on success or -1 on error."
7998 msgstr ""
7999
8000 # type: =head2
8001 #. type: =head2
8002 #: ../src/guestfs-actions.pod:712
8003 msgid "guestfs_blockdev_getsize64"
8004 msgstr ""
8005
8006 # type: verbatim
8007 #. type: verbatim
8008 #: ../src/guestfs-actions.pod:714
8009 #, no-wrap
8010 msgid ""
8011 " int64_t\n"
8012 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
8013 "                             const char *device);\n"
8014 "\n"
8015 msgstr ""
8016
8017 # type: textblock
8018 #. type: textblock
8019 #: ../src/guestfs-actions.pod:718 ../fish/guestfish-actions.pod:479
8020 msgid "This returns the size of the device in bytes."
8021 msgstr ""
8022
8023 # type: textblock
8024 #. type: textblock
8025 #: ../src/guestfs-actions.pod:720
8026 msgid "See also C<guestfs_blockdev_getsz>."
8027 msgstr ""
8028
8029 # type: =head2
8030 #. type: =head2
8031 #: ../src/guestfs-actions.pod:728
8032 msgid "guestfs_blockdev_getss"
8033 msgstr ""
8034
8035 # type: verbatim
8036 #. type: verbatim
8037 #: ../src/guestfs-actions.pod:730
8038 #, no-wrap
8039 msgid ""
8040 " int\n"
8041 " guestfs_blockdev_getss (guestfs_h *g,\n"
8042 "                         const char *device);\n"
8043 "\n"
8044 msgstr ""
8045
8046 # type: textblock
8047 #. type: textblock
8048 #: ../src/guestfs-actions.pod:734 ../fish/guestfish-actions.pod:489
8049 msgid ""
8050 "This returns the size of sectors on a block device.  Usually 512, but can be "
8051 "larger for modern devices."
8052 msgstr ""
8053
8054 # type: textblock
8055 #. type: textblock
8056 #: ../src/guestfs-actions.pod:737
8057 msgid ""
8058 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
8059 "that)."
8060 msgstr ""
8061
8062 # type: =head2
8063 #. type: =head2
8064 #: ../src/guestfs-actions.pod:746
8065 msgid "guestfs_blockdev_getsz"
8066 msgstr ""
8067
8068 # type: verbatim
8069 #. type: verbatim
8070 #: ../src/guestfs-actions.pod:748
8071 #, no-wrap
8072 msgid ""
8073 " int64_t\n"
8074 " guestfs_blockdev_getsz (guestfs_h *g,\n"
8075 "                         const char *device);\n"
8076 "\n"
8077 msgstr ""
8078
8079 # type: textblock
8080 #. type: textblock
8081 #: ../src/guestfs-actions.pod:752 ../fish/guestfish-actions.pod:501
8082 msgid ""
8083 "This returns the size of the device in units of 512-byte sectors (even if "
8084 "the sectorsize isn't 512 bytes ... weird)."
8085 msgstr ""
8086
8087 # type: textblock
8088 #. type: textblock
8089 #: ../src/guestfs-actions.pod:755
8090 msgid ""
8091 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
8092 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
8093 msgstr ""
8094
8095 # type: =head2
8096 #. type: =head2
8097 #: ../src/guestfs-actions.pod:765
8098 msgid "guestfs_blockdev_rereadpt"
8099 msgstr ""
8100
8101 # type: verbatim
8102 #. type: verbatim
8103 #: ../src/guestfs-actions.pod:767
8104 #, no-wrap
8105 msgid ""
8106 " int\n"
8107 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
8108 "                            const char *device);\n"
8109 "\n"
8110 msgstr ""
8111
8112 # type: textblock
8113 #. type: textblock
8114 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:514
8115 msgid "Reread the partition table on C<device>."
8116 msgstr ""
8117
8118 # type: =head2
8119 #. type: =head2
8120 #: ../src/guestfs-actions.pod:779
8121 msgid "guestfs_blockdev_setbsz"
8122 msgstr ""
8123
8124 # type: verbatim
8125 #. type: verbatim
8126 #: ../src/guestfs-actions.pod:781
8127 #, no-wrap
8128 msgid ""
8129 " int\n"
8130 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
8131 "                          const char *device,\n"
8132 "                          int blocksize);\n"
8133 "\n"
8134 msgstr ""
8135
8136 # type: textblock
8137 #. type: textblock
8138 #: ../src/guestfs-actions.pod:786 ../fish/guestfish-actions.pod:522
8139 msgid "This sets the block size of a device."
8140 msgstr ""
8141
8142 # type: =head2
8143 #. type: =head2
8144 #: ../src/guestfs-actions.pod:797
8145 msgid "guestfs_blockdev_setro"
8146 msgstr ""
8147
8148 # type: verbatim
8149 #. type: verbatim
8150 #: ../src/guestfs-actions.pod:799
8151 #, no-wrap
8152 msgid ""
8153 " int\n"
8154 " guestfs_blockdev_setro (guestfs_h *g,\n"
8155 "                         const char *device);\n"
8156 "\n"
8157 msgstr ""
8158
8159 # type: textblock
8160 #. type: textblock
8161 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:533
8162 msgid "Sets the block device named C<device> to read-only."
8163 msgstr ""
8164
8165 # type: =head2
8166 #. type: =head2
8167 #: ../src/guestfs-actions.pod:811
8168 msgid "guestfs_blockdev_setrw"
8169 msgstr ""
8170
8171 # type: verbatim
8172 #. type: verbatim
8173 #: ../src/guestfs-actions.pod:813
8174 #, no-wrap
8175 msgid ""
8176 " int\n"
8177 " guestfs_blockdev_setrw (guestfs_h *g,\n"
8178 "                         const char *device);\n"
8179 "\n"
8180 msgstr ""
8181
8182 # type: textblock
8183 #. type: textblock
8184 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:541
8185 msgid "Sets the block device named C<device> to read-write."
8186 msgstr ""
8187
8188 #. type: =head2
8189 #: ../src/guestfs-actions.pod:825
8190 msgid "guestfs_btrfs_filesystem_resize"
8191 msgstr ""
8192
8193 #. type: verbatim
8194 #: ../src/guestfs-actions.pod:827
8195 #, no-wrap
8196 msgid ""
8197 " int\n"
8198 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
8199 "                                  const char *mountpoint,\n"
8200 "                                  ...);\n"
8201 "\n"
8202 msgstr ""
8203
8204 #. type: verbatim
8205 #: ../src/guestfs-actions.pod:837
8206 #, no-wrap
8207 msgid ""
8208 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
8209 "\n"
8210 msgstr ""
8211
8212 #. type: textblock
8213 #: ../src/guestfs-actions.pod:839 ../fish/guestfish-actions.pod:549
8214 msgid "This command resizes a btrfs filesystem."
8215 msgstr ""
8216
8217 #. type: textblock
8218 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:551
8219 msgid ""
8220 "Note that unlike other resize calls, the filesystem has to be mounted and "
8221 "the parameter is the mountpoint not the device (this is a requirement of "
8222 "btrfs itself)."
8223 msgstr ""
8224
8225 #. type: textblock
8226 #: ../src/guestfs-actions.pod:845 ../src/guestfs-actions.pod:5176
8227 #: ../fish/guestfish-actions.pod:555 ../fish/guestfish-actions.pod:3411
8228 msgid "The optional parameters are:"
8229 msgstr ""
8230
8231 #. type: =item
8232 #: ../src/guestfs-actions.pod:849 ../src/guestfs-actions.pod:5180
8233 #: ../fish/guestfish-actions.pod:559 ../fish/guestfish-actions.pod:3415
8234 msgid "C<size>"
8235 msgstr ""
8236
8237 #. type: textblock
8238 #: ../src/guestfs-actions.pod:851 ../fish/guestfish-actions.pod:561
8239 msgid ""
8240 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
8241 "resized to the maximum size."
8242 msgstr ""
8243
8244 #. type: textblock
8245 #: ../src/guestfs-actions.pod:856 ../fish/guestfish-actions.pod:566
8246 msgid "See also L<btrfs(8)>."
8247 msgstr ""
8248
8249 #. type: =head2
8250 #: ../src/guestfs-actions.pod:860
8251 msgid "guestfs_btrfs_filesystem_resize_va"
8252 msgstr ""
8253
8254 #. type: verbatim
8255 #: ../src/guestfs-actions.pod:862
8256 #, no-wrap
8257 msgid ""
8258 " int\n"
8259 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
8260 "                                     const char *mountpoint,\n"
8261 "                                     va_list args);\n"
8262 "\n"
8263 msgstr ""
8264
8265 #. type: textblock
8266 #: ../src/guestfs-actions.pod:867
8267 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
8268 msgstr ""
8269
8270 #. type: =head2
8271 #: ../src/guestfs-actions.pod:871
8272 msgid "guestfs_btrfs_filesystem_resize_argv"
8273 msgstr ""
8274
8275 #. type: verbatim
8276 #: ../src/guestfs-actions.pod:873
8277 #, no-wrap
8278 msgid ""
8279 " int\n"
8280 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
8281 "                                       const char *mountpoint,\n"
8282 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
8283 "\n"
8284 msgstr ""
8285
8286 #. type: textblock
8287 #: ../src/guestfs-actions.pod:878
8288 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
8289 msgstr ""
8290
8291 # type: =head2
8292 #. type: =head2
8293 #: ../src/guestfs-actions.pod:882
8294 msgid "guestfs_case_sensitive_path"
8295 msgstr ""
8296
8297 # type: verbatim
8298 #. type: verbatim
8299 #: ../src/guestfs-actions.pod:884
8300 #, no-wrap
8301 msgid ""
8302 " char *\n"
8303 " guestfs_case_sensitive_path (guestfs_h *g,\n"
8304 "                              const char *path);\n"
8305 "\n"
8306 msgstr ""
8307
8308 # type: textblock
8309 #. type: textblock
8310 #: ../src/guestfs-actions.pod:888 ../fish/guestfish-actions.pod:574
8311 msgid ""
8312 "This can be used to resolve case insensitive paths on a filesystem which is "
8313 "case sensitive.  The use case is to resolve paths which you have read from "
8314 "Windows configuration files or the Windows Registry, to the true path."
8315 msgstr ""
8316
8317 # type: textblock
8318 #. type: textblock
8319 #: ../src/guestfs-actions.pod:893 ../fish/guestfish-actions.pod:579
8320 msgid ""
8321 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
8322 "(and probably others), which is that although the underlying filesystem is "
8323 "case-insensitive, the driver exports the filesystem to Linux as case-"
8324 "sensitive."
8325 msgstr ""
8326
8327 # type: textblock
8328 #. type: textblock
8329 #: ../src/guestfs-actions.pod:898 ../fish/guestfish-actions.pod:584
8330 msgid ""
8331 "One consequence of this is that special directories such as C<c:\\windows> "
8332 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
8333 "precise details of how they were created.  In Windows itself this would not "
8334 "be a problem."
8335 msgstr ""
8336
8337 # type: textblock
8338 #. type: textblock
8339 #: ../src/guestfs-actions.pod:904 ../fish/guestfish-actions.pod:590
8340 msgid ""
8341 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
8342 "#posixfilenames1>"
8343 msgstr ""
8344
8345 # type: textblock
8346 #. type: textblock
8347 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:593
8348 msgid ""
8349 "This function resolves the true case of each element in the path and returns "
8350 "the case-sensitive path."
8351 msgstr ""
8352
8353 # type: textblock
8354 #. type: textblock
8355 #: ../src/guestfs-actions.pod:910
8356 msgid ""
8357 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
8358 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
8359 "how the directories were originally created under Windows)."
8360 msgstr ""
8361
8362 # type: textblock
8363 #. type: textblock
8364 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:601
8365 msgid "I<Note>: This function does not handle drive names, backslashes etc."
8366 msgstr ""
8367
8368 # type: textblock
8369 #. type: textblock
8370 #: ../src/guestfs-actions.pod:918
8371 msgid "See also C<guestfs_realpath>."
8372 msgstr ""
8373
8374 # type: textblock
8375 #. type: textblock
8376 #: ../src/guestfs-actions.pod:923 ../src/guestfs-actions.pod:7349
8377 msgid "(Added in 1.0.75)"
8378 msgstr ""
8379
8380 # type: =head2
8381 #. type: =head2
8382 #: ../src/guestfs-actions.pod:925
8383 msgid "guestfs_cat"
8384 msgstr ""
8385
8386 # type: verbatim
8387 #. type: verbatim
8388 #: ../src/guestfs-actions.pod:927
8389 #, no-wrap
8390 msgid ""
8391 " char *\n"
8392 " guestfs_cat (guestfs_h *g,\n"
8393 "              const char *path);\n"
8394 "\n"
8395 msgstr ""
8396
8397 # type: textblock
8398 #. type: textblock
8399 #: ../src/guestfs-actions.pod:931 ../src/guestfs-actions.pod:5813
8400 #: ../fish/guestfish-actions.pod:610 ../fish/guestfish-actions.pod:3825
8401 msgid "Return the contents of the file named C<path>."
8402 msgstr ""
8403
8404 # type: textblock
8405 #. type: textblock
8406 #: ../src/guestfs-actions.pod:933
8407 msgid ""
8408 "Note that this function cannot correctly handle binary files (specifically, "
8409 "files containing C<\\0> character which is treated as end of string).  For "
8410 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
8411 "functions which have a more complex interface."
8412 msgstr ""
8413
8414 # type: textblock
8415 #. type: textblock
8416 #: ../src/guestfs-actions.pod:941 ../src/guestfs-actions.pod:1120
8417 #: ../src/guestfs-actions.pod:1140 ../src/guestfs-actions.pod:1436
8418 #: ../src/guestfs-actions.pod:1455 ../src/guestfs-actions.pod:1558
8419 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1823
8420 #: ../src/guestfs-actions.pod:2283 ../src/guestfs-actions.pod:2302
8421 #: ../src/guestfs-actions.pod:2345 ../src/guestfs-actions.pod:2369
8422 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:2415
8423 #: ../src/guestfs-actions.pod:5595 ../src/guestfs-actions.pod:5621
8424 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:5778
8425 #: ../src/guestfs-actions.pod:5802 ../src/guestfs-actions.pod:6734
8426 #: ../src/guestfs-actions.pod:6789 ../src/guestfs-actions.pod:6935
8427 #: ../src/guestfs-actions.pod:6959 ../src/guestfs-actions.pod:7622
8428 #: ../src/guestfs-actions.pod:7648 ../src/guestfs-actions.pod:7674
8429 #: ../src/guestfs-actions.pod:7693 ../src/guestfs-actions.pod:7779
8430 #: ../src/guestfs-actions.pod:7798 ../src/guestfs-actions.pod:7844
8431 #: ../src/guestfs-actions.pod:7863 ../fish/guestfish-actions.pod:617
8432 #: ../fish/guestfish-actions.pod:752 ../fish/guestfish-actions.pod:764
8433 #: ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:950
8434 #: ../fish/guestfish-actions.pod:1017 ../fish/guestfish-actions.pod:1027
8435 #: ../fish/guestfish-actions.pod:1219 ../fish/guestfish-actions.pod:1520
8436 #: ../fish/guestfish-actions.pod:1530 ../fish/guestfish-actions.pod:1558
8437 #: ../fish/guestfish-actions.pod:1573 ../fish/guestfish-actions.pod:1583
8438 #: ../fish/guestfish-actions.pod:1602 ../fish/guestfish-actions.pod:3695
8439 #: ../fish/guestfish-actions.pod:3710 ../fish/guestfish-actions.pod:3786
8440 #: ../fish/guestfish-actions.pod:3803 ../fish/guestfish-actions.pod:3818
8441 #: ../fish/guestfish-actions.pod:4472 ../fish/guestfish-actions.pod:4518
8442 #: ../fish/guestfish-actions.pod:4603 ../fish/guestfish-actions.pod:4618
8443 #: ../fish/guestfish-actions.pod:5022 ../fish/guestfish-actions.pod:5040
8444 #: ../fish/guestfish-actions.pod:5057 ../fish/guestfish-actions.pod:5067
8445 #: ../fish/guestfish-actions.pod:5116 ../fish/guestfish-actions.pod:5126
8446 #: ../fish/guestfish-actions.pod:5155 ../fish/guestfish-actions.pod:5165
8447 msgid ""
8448 "Because of the message protocol, there is a transfer limit of somewhere "
8449 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
8450 msgstr ""
8451
8452 # type: textblock
8453 #. type: textblock
8454 #: ../src/guestfs-actions.pod:944 ../src/guestfs-actions.pod:3727
8455 #: ../src/guestfs-actions.pod:3809 ../src/guestfs-actions.pod:3826
8456 #: ../src/guestfs-actions.pod:3914 ../src/guestfs-actions.pod:4322
8457 #: ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:5701
8458 #: ../src/guestfs-actions.pod:5715 ../src/guestfs-actions.pod:7502
8459 #: ../src/guestfs-actions.pod:7516
8460 msgid "(Added in 0.4)"
8461 msgstr ""
8462
8463 # type: =head2
8464 #. type: =head2
8465 #: ../src/guestfs-actions.pod:946
8466 msgid "guestfs_checksum"
8467 msgstr ""
8468
8469 # type: verbatim
8470 #. type: verbatim
8471 #: ../src/guestfs-actions.pod:948
8472 #, no-wrap
8473 msgid ""
8474 " char *\n"
8475 " guestfs_checksum (guestfs_h *g,\n"
8476 "                   const char *csumtype,\n"
8477 "                   const char *path);\n"
8478 "\n"
8479 msgstr ""
8480
8481 # type: textblock
8482 #. type: textblock
8483 #: ../src/guestfs-actions.pod:953 ../fish/guestfish-actions.pod:624
8484 msgid ""
8485 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
8486 msgstr ""
8487
8488 # type: textblock
8489 #. type: textblock
8490 #: ../src/guestfs-actions.pod:956 ../fish/guestfish-actions.pod:627
8491 msgid ""
8492 "The type of checksum to compute is given by the C<csumtype> parameter which "
8493 "must have one of the following values:"
8494 msgstr ""
8495
8496 # type: =item
8497 #. type: =item
8498 #: ../src/guestfs-actions.pod:961 ../fish/guestfish-actions.pod:632
8499 msgid "C<crc>"
8500 msgstr ""
8501
8502 # type: textblock
8503 #. type: textblock
8504 #: ../src/guestfs-actions.pod:963 ../fish/guestfish-actions.pod:634
8505 msgid ""
8506 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
8507 "C<cksum> command."
8508 msgstr ""
8509
8510 # type: =item
8511 #. type: =item
8512 #: ../src/guestfs-actions.pod:966 ../fish/guestfish-actions.pod:637
8513 msgid "C<md5>"
8514 msgstr ""
8515
8516 # type: textblock
8517 #. type: textblock
8518 #: ../src/guestfs-actions.pod:968 ../fish/guestfish-actions.pod:639
8519 msgid "Compute the MD5 hash (using the C<md5sum> program)."
8520 msgstr ""
8521
8522 # type: =item
8523 #. type: =item
8524 #: ../src/guestfs-actions.pod:970 ../fish/guestfish-actions.pod:641
8525 msgid "C<sha1>"
8526 msgstr ""
8527
8528 # type: textblock
8529 #. type: textblock
8530 #: ../src/guestfs-actions.pod:972 ../fish/guestfish-actions.pod:643
8531 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
8532 msgstr ""
8533
8534 # type: =item
8535 #. type: =item
8536 #: ../src/guestfs-actions.pod:974 ../fish/guestfish-actions.pod:645
8537 msgid "C<sha224>"
8538 msgstr ""
8539
8540 # type: textblock
8541 #. type: textblock
8542 #: ../src/guestfs-actions.pod:976 ../fish/guestfish-actions.pod:647
8543 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
8544 msgstr ""
8545
8546 # type: =item
8547 #. type: =item
8548 #: ../src/guestfs-actions.pod:978 ../fish/guestfish-actions.pod:649
8549 msgid "C<sha256>"
8550 msgstr ""
8551
8552 # type: textblock
8553 #. type: textblock
8554 #: ../src/guestfs-actions.pod:980 ../fish/guestfish-actions.pod:651
8555 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
8556 msgstr ""
8557
8558 # type: =item
8559 #. type: =item
8560 #: ../src/guestfs-actions.pod:982 ../fish/guestfish-actions.pod:653
8561 msgid "C<sha384>"
8562 msgstr ""
8563
8564 # type: textblock
8565 #. type: textblock
8566 #: ../src/guestfs-actions.pod:984 ../fish/guestfish-actions.pod:655
8567 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
8568 msgstr ""
8569
8570 # type: =item
8571 #. type: =item
8572 #: ../src/guestfs-actions.pod:986 ../fish/guestfish-actions.pod:657
8573 msgid "C<sha512>"
8574 msgstr ""
8575
8576 # type: textblock
8577 #. type: textblock
8578 #: ../src/guestfs-actions.pod:988 ../fish/guestfish-actions.pod:659
8579 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
8580 msgstr ""
8581
8582 # type: textblock
8583 #. type: textblock
8584 #: ../src/guestfs-actions.pod:992 ../fish/guestfish-actions.pod:663
8585 msgid "The checksum is returned as a printable string."
8586 msgstr ""
8587
8588 # type: textblock
8589 #. type: textblock
8590 #: ../src/guestfs-actions.pod:994
8591 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
8592 msgstr ""
8593
8594 # type: textblock
8595 #. type: textblock
8596 #: ../src/guestfs-actions.pod:996
8597 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
8598 msgstr ""
8599
8600 # type: textblock
8601 #. type: textblock
8602 #: ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1309
8603 #: ../src/guestfs-actions.pod:2145 ../src/guestfs-actions.pod:3425
8604 #: ../src/guestfs-actions.pod:3454 ../src/guestfs-actions.pod:3515
8605 #: ../src/guestfs-actions.pod:3542 ../src/guestfs-actions.pod:7205
8606 msgid "(Added in 1.0.2)"
8607 msgstr ""
8608
8609 # type: =head2
8610 #. type: =head2
8611 #: ../src/guestfs-actions.pod:1003
8612 msgid "guestfs_checksum_device"
8613 msgstr ""
8614
8615 # type: verbatim
8616 #. type: verbatim
8617 #: ../src/guestfs-actions.pod:1005
8618 #, no-wrap
8619 msgid ""
8620 " char *\n"
8621 " guestfs_checksum_device (guestfs_h *g,\n"
8622 "                          const char *csumtype,\n"
8623 "                          const char *device);\n"
8624 "\n"
8625 msgstr ""
8626
8627 # type: textblock
8628 #. type: textblock
8629 #: ../src/guestfs-actions.pod:1010
8630 msgid ""
8631 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
8632 "device named C<device>.  For the types of checksums supported see the "
8633 "C<guestfs_checksum> command."
8634 msgstr ""
8635
8636 # type: textblock
8637 #. type: textblock
8638 #: ../src/guestfs-actions.pod:1017 ../src/guestfs-actions.pod:5156
8639 #: ../src/guestfs-actions.pod:5291 ../src/guestfs-actions.pod:5328
8640 #: ../src/guestfs-actions.pod:5346 ../src/guestfs-actions.pod:5522
8641 #: ../src/guestfs-actions.pod:7114 ../src/guestfs-actions.pod:7128
8642 #: ../src/guestfs-actions.pod:7528
8643 msgid "(Added in 1.3.2)"
8644 msgstr ""
8645
8646 # type: =head2
8647 #. type: =head2
8648 #: ../src/guestfs-actions.pod:1019
8649 msgid "guestfs_checksums_out"
8650 msgstr ""
8651
8652 # type: verbatim
8653 #. type: verbatim
8654 #: ../src/guestfs-actions.pod:1021
8655 #, no-wrap
8656 msgid ""
8657 " int\n"
8658 " guestfs_checksums_out (guestfs_h *g,\n"
8659 "                        const char *csumtype,\n"
8660 "                        const char *directory,\n"
8661 "                        const char *sumsfile);\n"
8662 "\n"
8663 msgstr ""
8664
8665 # type: textblock
8666 #. type: textblock
8667 #: ../src/guestfs-actions.pod:1027 ../fish/guestfish-actions.pod:681
8668 msgid ""
8669 "This command computes the checksums of all regular files in C<directory> and "
8670 "then emits a list of those checksums to the local output file C<sumsfile>."
8671 msgstr ""
8672
8673 # type: textblock
8674 #. type: textblock
8675 #: ../src/guestfs-actions.pod:1031 ../fish/guestfish-actions.pod:685
8676 msgid ""
8677 "This can be used for verifying the integrity of a virtual machine.  However "
8678 "to be properly secure you should pay attention to the output of the checksum "
8679 "command (it uses the ones from GNU coreutils).  In particular when the "
8680 "filename is not printable, coreutils uses a special backslash syntax.  For "
8681 "more information, see the GNU coreutils info file."
8682 msgstr ""
8683
8684 # type: textblock
8685 #. type: textblock
8686 #: ../src/guestfs-actions.pod:1041
8687 msgid "(Added in 1.3.7)"
8688 msgstr ""
8689
8690 # type: =head2
8691 #. type: =head2
8692 #: ../src/guestfs-actions.pod:1043
8693 msgid "guestfs_chmod"
8694 msgstr ""
8695
8696 # type: verbatim
8697 #. type: verbatim
8698 #: ../src/guestfs-actions.pod:1045
8699 #, no-wrap
8700 msgid ""
8701 " int\n"
8702 " guestfs_chmod (guestfs_h *g,\n"
8703 "                int mode,\n"
8704 "                const char *path);\n"
8705 "\n"
8706 msgstr ""
8707
8708 # type: textblock
8709 #. type: textblock
8710 #: ../src/guestfs-actions.pod:1050 ../fish/guestfish-actions.pod:699
8711 msgid ""
8712 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
8713 "supported."
8714 msgstr ""
8715
8716 # type: textblock
8717 #. type: textblock
8718 #: ../src/guestfs-actions.pod:1053 ../fish/guestfish-actions.pod:702
8719 msgid ""
8720 "I<Note>: When using this command from guestfish, C<mode> by default would be "
8721 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
8722 "C<700>."
8723 msgstr ""
8724
8725 # type: textblock
8726 #. type: textblock
8727 #: ../src/guestfs-actions.pod:1057 ../src/guestfs-actions.pod:4573
8728 #: ../src/guestfs-actions.pod:4782 ../src/guestfs-actions.pod:4801
8729 #: ../src/guestfs-actions.pod:4820 ../fish/guestfish-actions.pod:706
8730 #: ../fish/guestfish-actions.pod:3054 ../fish/guestfish-actions.pod:3193
8731 #: ../fish/guestfish-actions.pod:3203 ../fish/guestfish-actions.pod:3213
8732 msgid "The mode actually set is affected by the umask."
8733 msgstr ""
8734
8735 # type: =head2
8736 #. type: =head2
8737 #: ../src/guestfs-actions.pod:1063
8738 msgid "guestfs_chown"
8739 msgstr ""
8740
8741 # type: verbatim
8742 #. type: verbatim
8743 #: ../src/guestfs-actions.pod:1065
8744 #, no-wrap
8745 msgid ""
8746 " int\n"
8747 " guestfs_chown (guestfs_h *g,\n"
8748 "                int owner,\n"
8749 "                int group,\n"
8750 "                const char *path);\n"
8751 "\n"
8752 msgstr ""
8753
8754 # type: textblock
8755 #. type: textblock
8756 #: ../src/guestfs-actions.pod:1071 ../fish/guestfish-actions.pod:712
8757 msgid "Change the file owner to C<owner> and group to C<group>."
8758 msgstr ""
8759
8760 # type: textblock
8761 #. type: textblock
8762 #: ../src/guestfs-actions.pod:1073 ../src/guestfs-actions.pod:3644
8763 #: ../fish/guestfish-actions.pod:714 ../fish/guestfish-actions.pod:2489
8764 msgid ""
8765 "Only numeric uid and gid are supported.  If you want to use names, you will "
8766 "need to locate and parse the password file yourself (Augeas support makes "
8767 "this relatively easy)."
8768 msgstr ""
8769
8770 # type: =head2
8771 #. type: =head2
8772 #: ../src/guestfs-actions.pod:1081
8773 msgid "guestfs_command"
8774 msgstr ""
8775
8776 # type: verbatim
8777 #. type: verbatim
8778 #: ../src/guestfs-actions.pod:1083
8779 #, no-wrap
8780 msgid ""
8781 " char *\n"
8782 " guestfs_command (guestfs_h *g,\n"
8783 "                  char *const *arguments);\n"
8784 "\n"
8785 msgstr ""
8786
8787 # type: textblock
8788 #. type: textblock
8789 #: ../src/guestfs-actions.pod:1087 ../fish/guestfish-actions.pod:722
8790 msgid ""
8791 "This call runs a command from the guest filesystem.  The filesystem must be "
8792 "mounted, and must contain a compatible operating system (ie. something "
8793 "Linux, with the same or compatible processor architecture)."
8794 msgstr ""
8795
8796 # type: textblock
8797 #. type: textblock
8798 #: ../src/guestfs-actions.pod:1092
8799 msgid ""
8800 "The single parameter is an argv-style list of arguments.  The first element "
8801 "is the name of the program to run.  Subsequent elements are parameters.  The "
8802 "list must be non-empty (ie. must contain a program name).  Note that the "
8803 "command runs directly, and is I<not> invoked via the shell (see "
8804 "C<guestfs_sh>)."
8805 msgstr ""
8806
8807 # type: textblock
8808 #. type: textblock
8809 #: ../src/guestfs-actions.pod:1099 ../fish/guestfish-actions.pod:734
8810 msgid "The return value is anything printed to I<stdout> by the command."
8811 msgstr ""
8812
8813 # type: textblock
8814 #. type: textblock
8815 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:737
8816 msgid ""
8817 "If the command returns a non-zero exit status, then this function returns an "
8818 "error message.  The error message string is the content of I<stderr> from "
8819 "the command."
8820 msgstr ""
8821
8822 # type: textblock
8823 #. type: textblock
8824 #: ../src/guestfs-actions.pod:1106 ../fish/guestfish-actions.pod:741
8825 msgid ""
8826 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
8827 "bin>.  If you require a program from another location, you should provide "
8828 "the full path in the first parameter."
8829 msgstr ""
8830
8831 # type: textblock
8832 #. type: textblock
8833 #: ../src/guestfs-actions.pod:1111 ../fish/guestfish-actions.pod:746
8834 msgid ""
8835 "Shared libraries and data files required by the program must be available on "
8836 "filesystems which are mounted in the correct places.  It is the caller's "
8837 "responsibility to ensure all filesystems that are needed are mounted at the "
8838 "right locations."
8839 msgstr ""
8840
8841 # type: textblock
8842 #. type: textblock
8843 #: ../src/guestfs-actions.pod:1123 ../src/guestfs-actions.pod:1143
8844 #: ../src/guestfs-actions.pod:1608
8845 msgid "(Added in 0.9.1)"
8846 msgstr ""
8847
8848 # type: =head2
8849 #. type: =head2
8850 #: ../src/guestfs-actions.pod:1125
8851 msgid "guestfs_command_lines"
8852 msgstr ""
8853
8854 # type: verbatim
8855 #. type: verbatim
8856 #: ../src/guestfs-actions.pod:1127
8857 #, no-wrap
8858 msgid ""
8859 " char **\n"
8860 " guestfs_command_lines (guestfs_h *g,\n"
8861 "                        char *const *arguments);\n"
8862 "\n"
8863 msgstr ""
8864
8865 # type: textblock
8866 #. type: textblock
8867 #: ../src/guestfs-actions.pod:1131
8868 msgid ""
8869 "This is the same as C<guestfs_command>, but splits the result into a list of "
8870 "lines."
8871 msgstr ""
8872
8873 # type: textblock
8874 #. type: textblock
8875 #: ../src/guestfs-actions.pod:1134
8876 msgid "See also: C<guestfs_sh_lines>"
8877 msgstr ""
8878
8879 # type: =head2
8880 #. type: =head2
8881 #: ../src/guestfs-actions.pod:1145
8882 msgid "guestfs_config"
8883 msgstr ""
8884
8885 # type: verbatim
8886 #. type: verbatim
8887 #: ../src/guestfs-actions.pod:1147
8888 #, no-wrap
8889 msgid ""
8890 " int\n"
8891 " guestfs_config (guestfs_h *g,\n"
8892 "                 const char *qemuparam,\n"
8893 "                 const char *qemuvalue);\n"
8894 "\n"
8895 msgstr ""
8896
8897 #. type: textblock
8898 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:771
8899 msgid ""
8900 "This can be used to add arbitrary qemu command line parameters of the form "
8901 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8902 "setting some parameters which would interfere with parameters that we use."
8903 msgstr ""
8904
8905 # type: textblock
8906 #. type: textblock
8907 #: ../src/guestfs-actions.pod:1157 ../fish/guestfish-actions.pod:776
8908 msgid "The first character of C<param> string must be a C<-> (dash)."
8909 msgstr ""
8910
8911 # type: textblock
8912 #. type: textblock
8913 #: ../src/guestfs-actions.pod:1159 ../fish/guestfish-actions.pod:778
8914 msgid "C<value> can be NULL."
8915 msgstr ""
8916
8917 # type: =head2
8918 #. type: =head2
8919 #: ../src/guestfs-actions.pod:1165
8920 msgid "guestfs_copy_size"
8921 msgstr ""
8922
8923 # type: verbatim
8924 #. type: verbatim
8925 #: ../src/guestfs-actions.pod:1167
8926 #, no-wrap
8927 msgid ""
8928 " int\n"
8929 " guestfs_copy_size (guestfs_h *g,\n"
8930 "                    const char *src,\n"
8931 "                    const char *dest,\n"
8932 "                    int64_t size);\n"
8933 "\n"
8934 msgstr ""
8935
8936 # type: textblock
8937 #. type: textblock
8938 #: ../src/guestfs-actions.pod:1173 ../fish/guestfish-actions.pod:784
8939 msgid ""
8940 "This command copies exactly C<size> bytes from one source device or file "
8941 "C<src> to another destination device or file C<dest>."
8942 msgstr ""
8943
8944 # type: textblock
8945 #. type: textblock
8946 #: ../src/guestfs-actions.pod:1176 ../fish/guestfish-actions.pod:787
8947 msgid ""
8948 "Note this will fail if the source is too short or if the destination is not "
8949 "large enough."
8950 msgstr ""
8951
8952 #. type: textblock
8953 #: ../src/guestfs-actions.pod:1181 ../src/guestfs-actions.pod:1304
8954 #: ../src/guestfs-actions.pod:1335 ../src/guestfs-actions.pod:1380
8955 #: ../src/guestfs-actions.pod:1757 ../src/guestfs-actions.pod:1779
8956 #: ../src/guestfs-actions.pod:3625 ../src/guestfs-actions.pod:7200
8957 #: ../src/guestfs-actions.pod:7234 ../src/guestfs-actions.pod:7715
8958 #: ../src/guestfs-actions.pod:7734
8959 msgid ""
8960 "This long-running command can generate progress notification messages so "
8961 "that the caller can display a progress bar or indicator.  To receive these "
8962 "messages, the caller must register a progress event callback.  See L<guestfs"
8963 "(3)/GUESTFS_EVENT_PROGRESS>."
8964 msgstr ""
8965
8966 # type: textblock
8967 #. type: textblock
8968 #: ../src/guestfs-actions.pod:1186 ../src/guestfs-actions.pod:4349
8969 #: ../src/guestfs-actions.pod:5728 ../src/guestfs-actions.pod:7435
8970 #: ../src/guestfs-actions.pod:7455 ../src/guestfs-actions.pod:7541
8971 msgid "(Added in 1.0.87)"
8972 msgstr ""
8973
8974 # type: =head2
8975 #. type: =head2
8976 #: ../src/guestfs-actions.pod:1188
8977 msgid "guestfs_cp"
8978 msgstr ""
8979
8980 # type: verbatim
8981 #. type: verbatim
8982 #: ../src/guestfs-actions.pod:1190
8983 #, no-wrap
8984 msgid ""
8985 " int\n"
8986 " guestfs_cp (guestfs_h *g,\n"
8987 "             const char *src,\n"
8988 "             const char *dest);\n"
8989 "\n"
8990 msgstr ""
8991
8992 # type: textblock
8993 #. type: textblock
8994 #: ../src/guestfs-actions.pod:1195 ../fish/guestfish-actions.pod:794
8995 msgid ""
8996 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8997 "destination filename or destination directory."
8998 msgstr ""
8999
9000 # type: textblock
9001 #. type: textblock
9002 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1214
9003 #: ../src/guestfs-actions.pod:1286 ../src/guestfs-actions.pod:1360
9004 #: ../src/guestfs-actions.pod:1474 ../src/guestfs-actions.pod:5103
9005 #: ../src/guestfs-actions.pod:5572
9006 msgid "(Added in 1.0.18)"
9007 msgstr ""
9008
9009 # type: =head2
9010 #. type: =head2
9011 #: ../src/guestfs-actions.pod:1202
9012 msgid "guestfs_cp_a"
9013 msgstr ""
9014
9015 # type: verbatim
9016 #. type: verbatim
9017 #: ../src/guestfs-actions.pod:1204
9018 #, no-wrap
9019 msgid ""
9020 " int\n"
9021 " guestfs_cp_a (guestfs_h *g,\n"
9022 "               const char *src,\n"
9023 "               const char *dest);\n"
9024 "\n"
9025 msgstr ""
9026
9027 # type: textblock
9028 #. type: textblock
9029 #: ../src/guestfs-actions.pod:1209 ../fish/guestfish-actions.pod:801
9030 msgid ""
9031 "This copies a file or directory from C<src> to C<dest> recursively using the "
9032 "C<cp -a> command."
9033 msgstr ""
9034
9035 # type: =head2
9036 #. type: =head2
9037 #: ../src/guestfs-actions.pod:1216
9038 msgid "guestfs_dd"
9039 msgstr ""
9040
9041 # type: verbatim
9042 #. type: verbatim
9043 #: ../src/guestfs-actions.pod:1218
9044 #, no-wrap
9045 msgid ""
9046 " int\n"
9047 " guestfs_dd (guestfs_h *g,\n"
9048 "             const char *src,\n"
9049 "             const char *dest);\n"
9050 "\n"
9051 msgstr ""
9052
9053 # type: textblock
9054 #. type: textblock
9055 #: ../src/guestfs-actions.pod:1223 ../fish/guestfish-actions.pod:808
9056 msgid ""
9057 "This command copies from one source device or file C<src> to another "
9058 "destination device or file C<dest>.  Normally you would use this to copy to "
9059 "or from a device or partition, for example to duplicate a filesystem."
9060 msgstr ""
9061
9062 # type: textblock
9063 #. type: textblock
9064 #: ../src/guestfs-actions.pod:1228
9065 msgid ""
9066 "If the destination is a device, it must be as large or larger than the "
9067 "source file or device, otherwise the copy will fail.  This command cannot do "
9068 "partial copies (see C<guestfs_copy_size>)."
9069 msgstr ""
9070
9071 # type: =head2
9072 #. type: =head2
9073 #: ../src/guestfs-actions.pod:1236
9074 msgid "guestfs_df"
9075 msgstr ""
9076
9077 # type: verbatim
9078 #. type: verbatim
9079 #: ../src/guestfs-actions.pod:1238
9080 #, no-wrap
9081 msgid ""
9082 " char *\n"
9083 " guestfs_df (guestfs_h *g);\n"
9084 "\n"
9085 msgstr ""
9086
9087 # type: textblock
9088 #. type: textblock
9089 #: ../src/guestfs-actions.pod:1241 ../fish/guestfish-actions.pod:821
9090 msgid "This command runs the C<df> command to report disk space used."
9091 msgstr ""
9092
9093 # type: textblock
9094 #. type: textblock
9095 #: ../src/guestfs-actions.pod:1243 ../src/guestfs-actions.pod:1260
9096 msgid ""
9097 "This command is mostly useful for interactive sessions.  It is I<not> "
9098 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
9099 "from programs."
9100 msgstr ""
9101
9102 # type: textblock
9103 #. type: textblock
9104 #: ../src/guestfs-actions.pod:1250 ../src/guestfs-actions.pod:1267
9105 #: ../src/guestfs-actions.pod:1385 ../src/guestfs-actions.pod:2348
9106 #: ../src/guestfs-actions.pod:2372 ../src/guestfs-actions.pod:2440
9107 #: ../src/guestfs-actions.pod:4459 ../src/guestfs-actions.pod:5003
9108 #: ../src/guestfs-actions.pod:6938 ../src/guestfs-actions.pod:6962
9109 #: ../src/guestfs-actions.pod:7581 ../src/guestfs-actions.pod:7594
9110 #: ../src/guestfs-actions.pod:7607
9111 msgid "(Added in 1.0.54)"
9112 msgstr ""
9113
9114 # type: =head2
9115 #. type: =head2
9116 #: ../src/guestfs-actions.pod:1252
9117 msgid "guestfs_df_h"
9118 msgstr ""
9119
9120 # type: verbatim
9121 #. type: verbatim
9122 #: ../src/guestfs-actions.pod:1254
9123 #, no-wrap
9124 msgid ""
9125 " char *\n"
9126 " guestfs_df_h (guestfs_h *g);\n"
9127 "\n"
9128 msgstr ""
9129
9130 # type: textblock
9131 #. type: textblock
9132 #: ../src/guestfs-actions.pod:1257 ../fish/guestfish-actions.pod:831
9133 msgid ""
9134 "This command runs the C<df -h> command to report disk space used in human-"
9135 "readable format."
9136 msgstr ""
9137
9138 # type: =head2
9139 #. type: =head2
9140 #: ../src/guestfs-actions.pod:1269
9141 msgid "guestfs_dmesg"
9142 msgstr ""
9143
9144 # type: verbatim
9145 #. type: verbatim
9146 #: ../src/guestfs-actions.pod:1271
9147 #, no-wrap
9148 msgid ""
9149 " char *\n"
9150 " guestfs_dmesg (guestfs_h *g);\n"
9151 "\n"
9152 msgstr ""
9153
9154 # type: textblock
9155 #. type: textblock
9156 #: ../src/guestfs-actions.pod:1274 ../fish/guestfish-actions.pod:842
9157 msgid ""
9158 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
9159 "This is sometimes useful for extended debugging of problems."
9160 msgstr ""
9161
9162 # type: textblock
9163 #. type: textblock
9164 #: ../src/guestfs-actions.pod:1278
9165 msgid ""
9166 "Another way to get the same information is to enable verbose messages with "
9167 "C<guestfs_set_verbose> or by setting the environment variable "
9168 "C<LIBGUESTFS_DEBUG=1> before running the program."
9169 msgstr ""
9170
9171 # type: =head2
9172 #. type: =head2
9173 #: ../src/guestfs-actions.pod:1288
9174 msgid "guestfs_download"
9175 msgstr ""
9176
9177 # type: verbatim
9178 #. type: verbatim
9179 #: ../src/guestfs-actions.pod:1290
9180 #, no-wrap
9181 msgid ""
9182 " int\n"
9183 " guestfs_download (guestfs_h *g,\n"
9184 "                   const char *remotefilename,\n"
9185 "                   const char *filename);\n"
9186 "\n"
9187 msgstr ""
9188
9189 # type: textblock
9190 #. type: textblock
9191 #: ../src/guestfs-actions.pod:1295 ../src/guestfs-actions.pod:1320
9192 #: ../fish/guestfish-actions.pod:855 ../fish/guestfish-actions.pod:868
9193 msgid ""
9194 "Download file C<remotefilename> and save it as C<filename> on the local "
9195 "machine."
9196 msgstr ""
9197
9198 # type: textblock
9199 #. type: textblock
9200 #: ../src/guestfs-actions.pod:1298 ../src/guestfs-actions.pod:7194
9201 #: ../fish/guestfish-actions.pod:858 ../fish/guestfish-actions.pod:4776
9202 msgid "C<filename> can also be a named pipe."
9203 msgstr ""
9204
9205 # type: textblock
9206 #. type: textblock
9207 #: ../src/guestfs-actions.pod:1300
9208 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
9209 msgstr ""
9210
9211 # type: =head2
9212 #. type: =head2
9213 #: ../src/guestfs-actions.pod:1311
9214 msgid "guestfs_download_offset"
9215 msgstr ""
9216
9217 # type: verbatim
9218 #. type: verbatim
9219 #: ../src/guestfs-actions.pod:1313
9220 #, no-wrap
9221 msgid ""
9222 " int\n"
9223 " guestfs_download_offset (guestfs_h *g,\n"
9224 "                          const char *remotefilename,\n"
9225 "                          const char *filename,\n"
9226 "                          int64_t offset,\n"
9227 "                          int64_t size);\n"
9228 "\n"
9229 msgstr ""
9230
9231 # type: textblock
9232 #. type: textblock
9233 #: ../src/guestfs-actions.pod:1323 ../fish/guestfish-actions.pod:871
9234 msgid ""
9235 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
9236 "region must be within the file or device)."
9237 msgstr ""
9238
9239 # type: textblock
9240 #. type: textblock
9241 #: ../src/guestfs-actions.pod:1326
9242 msgid ""
9243 "Note that there is no limit on the amount of data that can be downloaded "
9244 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
9245 "full amount unless an error occurs."
9246 msgstr ""
9247
9248 # type: textblock
9249 #. type: textblock
9250 #: ../src/guestfs-actions.pod:1331
9251 msgid "See also C<guestfs_download>, C<guestfs_pread>."
9252 msgstr ""
9253
9254 # type: textblock
9255 #. type: textblock
9256 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:7239
9257 msgid "(Added in 1.5.17)"
9258 msgstr ""
9259
9260 # type: =head2
9261 #. type: =head2
9262 #: ../src/guestfs-actions.pod:1342
9263 msgid "guestfs_drop_caches"
9264 msgstr ""
9265
9266 # type: verbatim
9267 #. type: verbatim
9268 #: ../src/guestfs-actions.pod:1344
9269 #, no-wrap
9270 msgid ""
9271 " int\n"
9272 " guestfs_drop_caches (guestfs_h *g,\n"
9273 "                      int whattodrop);\n"
9274 "\n"
9275 msgstr ""
9276
9277 # type: textblock
9278 #. type: textblock
9279 #: ../src/guestfs-actions.pod:1348 ../fish/guestfish-actions.pod:887
9280 msgid ""
9281 "This instructs the guest kernel to drop its page cache, and/or dentries and "
9282 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
9283 "to drop, see L<http://linux-mm.org/Drop_Caches>"
9284 msgstr ""
9285
9286 # type: textblock
9287 #. type: textblock
9288 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:892
9289 msgid "Setting C<whattodrop> to 3 should drop everything."
9290 msgstr ""
9291
9292 # type: textblock
9293 #. type: textblock
9294 #: ../src/guestfs-actions.pod:1355 ../fish/guestfish-actions.pod:894
9295 msgid ""
9296 "This automatically calls L<sync(2)> before the operation, so that the "
9297 "maximum guest memory is freed."
9298 msgstr ""
9299
9300 # type: =head2
9301 #. type: =head2
9302 #: ../src/guestfs-actions.pod:1362
9303 msgid "guestfs_du"
9304 msgstr ""
9305
9306 # type: verbatim
9307 #. type: verbatim
9308 #: ../src/guestfs-actions.pod:1364
9309 #, no-wrap
9310 msgid ""
9311 " int64_t\n"
9312 " guestfs_du (guestfs_h *g,\n"
9313 "             const char *path);\n"
9314 "\n"
9315 msgstr ""
9316
9317 # type: textblock
9318 #. type: textblock
9319 #: ../src/guestfs-actions.pod:1368 ../fish/guestfish-actions.pod:901
9320 msgid ""
9321 "This command runs the C<du -s> command to estimate file space usage for "
9322 "C<path>."
9323 msgstr ""
9324
9325 # type: textblock
9326 #. type: textblock
9327 #: ../src/guestfs-actions.pod:1371 ../fish/guestfish-actions.pod:904
9328 msgid ""
9329 "C<path> can be a file or a directory.  If C<path> is a directory then the "
9330 "estimate includes the contents of the directory and all subdirectories "
9331 "(recursively)."
9332 msgstr ""
9333
9334 # type: textblock
9335 #. type: textblock
9336 #: ../src/guestfs-actions.pod:1375 ../fish/guestfish-actions.pod:908
9337 msgid ""
9338 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
9339 msgstr ""
9340
9341 # type: =head2
9342 #. type: =head2
9343 #: ../src/guestfs-actions.pod:1387
9344 msgid "guestfs_e2fsck_f"
9345 msgstr ""
9346
9347 # type: verbatim
9348 #. type: verbatim
9349 #: ../src/guestfs-actions.pod:1389
9350 #, no-wrap
9351 msgid ""
9352 " int\n"
9353 " guestfs_e2fsck_f (guestfs_h *g,\n"
9354 "                   const char *device);\n"
9355 "\n"
9356 msgstr ""
9357
9358 #. type: textblock
9359 #: ../src/guestfs-actions.pod:1393 ../fish/guestfish-actions.pod:915
9360 msgid ""
9361 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
9362 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
9363 "clean (I<-f>)."
9364 msgstr ""
9365
9366 # type: textblock
9367 #. type: textblock
9368 #: ../src/guestfs-actions.pod:1397
9369 msgid ""
9370 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
9371 "Normally you should use C<guestfs_fsck>."
9372 msgstr ""
9373
9374 # type: textblock
9375 #. type: textblock
9376 #: ../src/guestfs-actions.pod:1402
9377 msgid "(Added in 1.0.29)"
9378 msgstr ""
9379
9380 # type: =head2
9381 #. type: =head2
9382 #: ../src/guestfs-actions.pod:1404
9383 msgid "guestfs_echo_daemon"
9384 msgstr ""
9385
9386 # type: verbatim
9387 #. type: verbatim
9388 #: ../src/guestfs-actions.pod:1406
9389 #, no-wrap
9390 msgid ""
9391 " char *\n"
9392 " guestfs_echo_daemon (guestfs_h *g,\n"
9393 "                      char *const *words);\n"
9394 "\n"
9395 msgstr ""
9396
9397 # type: textblock
9398 #. type: textblock
9399 #: ../src/guestfs-actions.pod:1410 ../fish/guestfish-actions.pod:926
9400 msgid ""
9401 "This command concatenates the list of C<words> passed with single spaces "
9402 "between them and returns the resulting string."
9403 msgstr ""
9404
9405 # type: textblock
9406 #. type: textblock
9407 #: ../src/guestfs-actions.pod:1413 ../fish/guestfish-actions.pod:929
9408 msgid "You can use this command to test the connection through to the daemon."
9409 msgstr ""
9410
9411 # type: textblock
9412 #. type: textblock
9413 #: ../src/guestfs-actions.pod:1415
9414 msgid "See also C<guestfs_ping_daemon>."
9415 msgstr ""
9416
9417 # type: textblock
9418 #. type: textblock
9419 #: ../src/guestfs-actions.pod:1420 ../src/guestfs-actions.pod:2156
9420 #: ../src/guestfs-actions.pod:6410
9421 msgid "(Added in 1.0.69)"
9422 msgstr ""
9423
9424 # type: =head2
9425 #. type: =head2
9426 #: ../src/guestfs-actions.pod:1422
9427 msgid "guestfs_egrep"
9428 msgstr ""
9429
9430 # type: verbatim
9431 #. type: verbatim
9432 #: ../src/guestfs-actions.pod:1424
9433 #, no-wrap
9434 msgid ""
9435 " char **\n"
9436 " guestfs_egrep (guestfs_h *g,\n"
9437 "                const char *regex,\n"
9438 "                const char *path);\n"
9439 "\n"
9440 msgstr ""
9441
9442 # type: textblock
9443 #. type: textblock
9444 #: ../src/guestfs-actions.pod:1429 ../fish/guestfish-actions.pod:937
9445 msgid ""
9446 "This calls the external C<egrep> program and returns the matching lines."
9447 msgstr ""
9448
9449 # type: textblock
9450 #. type: textblock
9451 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1458
9452 #: ../src/guestfs-actions.pod:1515 ../src/guestfs-actions.pod:1561
9453 #: ../src/guestfs-actions.pod:1580 ../src/guestfs-actions.pod:2286
9454 #: ../src/guestfs-actions.pod:2305 ../src/guestfs-actions.pod:2461
9455 #: ../src/guestfs-actions.pod:2474 ../src/guestfs-actions.pod:2489
9456 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:2557
9457 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:3839
9458 #: ../src/guestfs-actions.pod:3853 ../src/guestfs-actions.pod:3866
9459 #: ../src/guestfs-actions.pod:3880 ../src/guestfs-actions.pod:4881
9460 #: ../src/guestfs-actions.pod:5906 ../src/guestfs-actions.pod:5955
9461 #: ../src/guestfs-actions.pod:6806 ../src/guestfs-actions.pod:6818
9462 #: ../src/guestfs-actions.pod:6831 ../src/guestfs-actions.pod:6844
9463 #: ../src/guestfs-actions.pod:6866 ../src/guestfs-actions.pod:6879
9464 #: ../src/guestfs-actions.pod:6892 ../src/guestfs-actions.pod:6905
9465 #: ../src/guestfs-actions.pod:7677 ../src/guestfs-actions.pod:7696
9466 #: ../src/guestfs-actions.pod:7782 ../src/guestfs-actions.pod:7801
9467 #: ../src/guestfs-actions.pod:7847 ../src/guestfs-actions.pod:7866
9468 msgid "(Added in 1.0.66)"
9469 msgstr ""
9470
9471 # type: =head2
9472 #. type: =head2
9473 #: ../src/guestfs-actions.pod:1441
9474 msgid "guestfs_egrepi"
9475 msgstr ""
9476
9477 # type: verbatim
9478 #. type: verbatim
9479 #: ../src/guestfs-actions.pod:1443
9480 #, no-wrap
9481 msgid ""
9482 " char **\n"
9483 " guestfs_egrepi (guestfs_h *g,\n"
9484 "                 const char *regex,\n"
9485 "                 const char *path);\n"
9486 "\n"
9487 msgstr ""
9488
9489 # type: textblock
9490 #. type: textblock
9491 #: ../src/guestfs-actions.pod:1448 ../fish/guestfish-actions.pod:947
9492 msgid ""
9493 "This calls the external C<egrep -i> program and returns the matching lines."
9494 msgstr ""
9495
9496 # type: =head2
9497 #. type: =head2
9498 #: ../src/guestfs-actions.pod:1460
9499 msgid "guestfs_equal"
9500 msgstr ""
9501
9502 # type: verbatim
9503 #. type: verbatim
9504 #: ../src/guestfs-actions.pod:1462
9505 #, no-wrap
9506 msgid ""
9507 " int\n"
9508 " guestfs_equal (guestfs_h *g,\n"
9509 "                const char *file1,\n"
9510 "                const char *file2);\n"
9511 "\n"
9512 msgstr ""
9513
9514 # type: textblock
9515 #. type: textblock
9516 #: ../src/guestfs-actions.pod:1467 ../fish/guestfish-actions.pod:957
9517 msgid ""
9518 "This compares the two files C<file1> and C<file2> and returns true if their "
9519 "content is exactly equal, or false otherwise."
9520 msgstr ""
9521
9522 # type: textblock
9523 #. type: textblock
9524 #: ../src/guestfs-actions.pod:1470 ../fish/guestfish-actions.pod:960
9525 msgid "The external L<cmp(1)> program is used for the comparison."
9526 msgstr ""
9527
9528 # type: =head2
9529 #. type: =head2
9530 #: ../src/guestfs-actions.pod:1476
9531 msgid "guestfs_exists"
9532 msgstr ""
9533
9534 # type: verbatim
9535 #. type: verbatim
9536 #: ../src/guestfs-actions.pod:1478
9537 #, no-wrap
9538 msgid ""
9539 " int\n"
9540 " guestfs_exists (guestfs_h *g,\n"
9541 "                 const char *path);\n"
9542 "\n"
9543 msgstr ""
9544
9545 # type: textblock
9546 #. type: textblock
9547 #: ../src/guestfs-actions.pod:1482 ../fish/guestfish-actions.pod:966
9548 msgid ""
9549 "This returns C<true> if and only if there is a file, directory (or anything) "
9550 "with the given C<path> name."
9551 msgstr ""
9552
9553 # type: textblock
9554 #. type: textblock
9555 #: ../src/guestfs-actions.pod:1485
9556 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
9557 msgstr ""
9558
9559 # type: =head2
9560 #. type: =head2
9561 #: ../src/guestfs-actions.pod:1491
9562 msgid "guestfs_fallocate"
9563 msgstr ""
9564
9565 # type: verbatim
9566 #. type: verbatim
9567 #: ../src/guestfs-actions.pod:1493
9568 #, no-wrap
9569 msgid ""
9570 " int\n"
9571 " guestfs_fallocate (guestfs_h *g,\n"
9572 "                    const char *path,\n"
9573 "                    int len);\n"
9574 "\n"
9575 msgstr ""
9576
9577 # type: textblock
9578 #. type: textblock
9579 #: ../src/guestfs-actions.pod:1498 ../src/guestfs-actions.pod:1524
9580 #: ../fish/guestfish-actions.pod:975 ../fish/guestfish-actions.pod:994
9581 msgid ""
9582 "This command preallocates a file (containing zero bytes) named C<path> of "
9583 "size C<len> bytes.  If the file exists already, it is overwritten."
9584 msgstr ""
9585
9586 # type: textblock
9587 #. type: textblock
9588 #: ../src/guestfs-actions.pod:1502 ../fish/guestfish-actions.pod:979
9589 msgid ""
9590 "Do not confuse this with the guestfish-specific C<alloc> command which "
9591 "allocates a file in the host and attaches it as a device."
9592 msgstr ""
9593
9594 # type: textblock
9595 #. type: textblock
9596 #: ../src/guestfs-actions.pod:1508 ../fish/guestfish-actions.pod:983
9597 msgid ""
9598 "This function is deprecated.  In new code, use the C<fallocate64> call "
9599 "instead."
9600 msgstr ""
9601
9602 # type: =head2
9603 #. type: =head2
9604 #: ../src/guestfs-actions.pod:1517
9605 msgid "guestfs_fallocate64"
9606 msgstr ""
9607
9608 # type: verbatim
9609 #. type: verbatim
9610 #: ../src/guestfs-actions.pod:1519
9611 #, no-wrap
9612 msgid ""
9613 " int\n"
9614 " guestfs_fallocate64 (guestfs_h *g,\n"
9615 "                      const char *path,\n"
9616 "                      int64_t len);\n"
9617 "\n"
9618 msgstr ""
9619
9620 # type: textblock
9621 #. type: textblock
9622 #: ../src/guestfs-actions.pod:1528
9623 msgid ""
9624 "Note that this call allocates disk blocks for the file.  To create a sparse "
9625 "file use C<guestfs_truncate_size> instead."
9626 msgstr ""
9627
9628 # type: textblock
9629 #. type: textblock
9630 #: ../src/guestfs-actions.pod:1531
9631 msgid ""
9632 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
9633 "oversight it only allowed 30 bit lengths to be specified, effectively "
9634 "limiting the maximum size of files created through that call to 1GB."
9635 msgstr ""
9636
9637 # type: textblock
9638 #. type: textblock
9639 #: ../src/guestfs-actions.pod:1536 ../fish/guestfish-actions.pod:1006
9640 msgid ""
9641 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
9642 "commands which create a file in the host and attach it as a device."
9643 msgstr ""
9644
9645 # type: textblock
9646 #. type: textblock
9647 #: ../src/guestfs-actions.pod:1542
9648 msgid "(Added in 1.3.17)"
9649 msgstr ""
9650
9651 # type: =head2
9652 #. type: =head2
9653 #: ../src/guestfs-actions.pod:1544
9654 msgid "guestfs_fgrep"
9655 msgstr ""
9656
9657 # type: verbatim
9658 #. type: verbatim
9659 #: ../src/guestfs-actions.pod:1546
9660 #, no-wrap
9661 msgid ""
9662 " char **\n"
9663 " guestfs_fgrep (guestfs_h *g,\n"
9664 "                const char *pattern,\n"
9665 "                const char *path);\n"
9666 "\n"
9667 msgstr ""
9668
9669 # type: textblock
9670 #. type: textblock
9671 #: ../src/guestfs-actions.pod:1551 ../fish/guestfish-actions.pod:1014
9672 msgid ""
9673 "This calls the external C<fgrep> program and returns the matching lines."
9674 msgstr ""
9675
9676 # type: =head2
9677 #. type: =head2
9678 #: ../src/guestfs-actions.pod:1563
9679 msgid "guestfs_fgrepi"
9680 msgstr ""
9681
9682 # type: verbatim
9683 #. type: verbatim
9684 #: ../src/guestfs-actions.pod:1565
9685 #, no-wrap
9686 msgid ""
9687 " char **\n"
9688 " guestfs_fgrepi (guestfs_h *g,\n"
9689 "                 const char *pattern,\n"
9690 "                 const char *path);\n"
9691 "\n"
9692 msgstr ""
9693
9694 # type: textblock
9695 #. type: textblock
9696 #: ../src/guestfs-actions.pod:1570 ../fish/guestfish-actions.pod:1024
9697 msgid ""
9698 "This calls the external C<fgrep -i> program and returns the matching lines."
9699 msgstr ""
9700
9701 # type: =head2
9702 #. type: =head2
9703 #: ../src/guestfs-actions.pod:1582
9704 msgid "guestfs_file"
9705 msgstr ""
9706
9707 # type: verbatim
9708 #. type: verbatim
9709 #: ../src/guestfs-actions.pod:1584
9710 #, no-wrap
9711 msgid ""
9712 " char *\n"
9713 " guestfs_file (guestfs_h *g,\n"
9714 "               const char *path);\n"
9715 "\n"
9716 msgstr ""
9717
9718 # type: textblock
9719 #. type: textblock
9720 #: ../src/guestfs-actions.pod:1588 ../fish/guestfish-actions.pod:1034
9721 msgid ""
9722 "This call uses the standard L<file(1)> command to determine the type or "
9723 "contents of the file."
9724 msgstr ""
9725
9726 # type: textblock
9727 #. type: textblock
9728 #: ../src/guestfs-actions.pod:1591 ../fish/guestfish-actions.pod:1037
9729 msgid ""
9730 "This call will also transparently look inside various types of compressed "
9731 "file."
9732 msgstr ""
9733
9734 #. type: textblock
9735 #: ../src/guestfs-actions.pod:1594 ../fish/guestfish-actions.pod:1040
9736 msgid ""
9737 "The exact command which runs is C<file -zb path>.  Note in particular that "
9738 "the filename is not prepended to the output (the I<-b> option)."
9739 msgstr ""
9740
9741 #. type: textblock
9742 #: ../src/guestfs-actions.pod:1598 ../fish/guestfish-actions.pod:1044
9743 msgid ""
9744 "The output depends on the output of the underlying L<file(1)> command and it "
9745 "can change in future in ways beyond our control.  In other words, the output "
9746 "is not guaranteed by the ABI."
9747 msgstr ""
9748
9749 #. type: textblock
9750 #: ../src/guestfs-actions.pod:1602
9751 msgid ""
9752 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
9753 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
9754 msgstr ""
9755
9756 # type: =head2
9757 #. type: =head2
9758 #: ../src/guestfs-actions.pod:1610
9759 msgid "guestfs_file_architecture"
9760 msgstr ""
9761
9762 # type: verbatim
9763 #. type: verbatim
9764 #: ../src/guestfs-actions.pod:1612
9765 #, no-wrap
9766 msgid ""
9767 " char *\n"
9768 " guestfs_file_architecture (guestfs_h *g,\n"
9769 "                            const char *filename);\n"
9770 "\n"
9771 msgstr ""
9772
9773 # type: textblock
9774 #. type: textblock
9775 #: ../src/guestfs-actions.pod:1616 ../fish/guestfish-actions.pod:1055
9776 msgid ""
9777 "This detects the architecture of the binary C<filename>, and returns it if "
9778 "known."
9779 msgstr ""
9780
9781 # type: textblock
9782 #. type: textblock
9783 #: ../src/guestfs-actions.pod:1619 ../fish/guestfish-actions.pod:1058
9784 msgid "Currently defined architectures are:"
9785 msgstr ""
9786
9787 # type: =item
9788 #. type: =item
9789 #: ../src/guestfs-actions.pod:1623 ../fish/guestfish-actions.pod:1062
9790 msgid "\"i386\""
9791 msgstr ""
9792
9793 # type: textblock
9794 #. type: textblock
9795 #: ../src/guestfs-actions.pod:1625 ../fish/guestfish-actions.pod:1064
9796 msgid ""
9797 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
9798 "irrespective of the precise processor requirements of the binary."
9799 msgstr ""
9800
9801 # type: =item
9802 #. type: =item
9803 #: ../src/guestfs-actions.pod:1628 ../fish/guestfish-actions.pod:1067
9804 msgid "\"x86_64\""
9805 msgstr ""
9806
9807 # type: textblock
9808 #. type: textblock
9809 #: ../src/guestfs-actions.pod:1630 ../fish/guestfish-actions.pod:1069
9810 msgid "64 bit x86-64."
9811 msgstr ""
9812
9813 # type: =item
9814 #. type: =item
9815 #: ../src/guestfs-actions.pod:1632 ../fish/guestfish-actions.pod:1071
9816 msgid "\"sparc\""
9817 msgstr ""
9818
9819 # type: textblock
9820 #. type: textblock
9821 #: ../src/guestfs-actions.pod:1634 ../fish/guestfish-actions.pod:1073
9822 msgid "32 bit SPARC."
9823 msgstr ""
9824
9825 # type: =item
9826 #. type: =item
9827 #: ../src/guestfs-actions.pod:1636 ../fish/guestfish-actions.pod:1075
9828 msgid "\"sparc64\""
9829 msgstr ""
9830
9831 # type: textblock
9832 #. type: textblock
9833 #: ../src/guestfs-actions.pod:1638 ../fish/guestfish-actions.pod:1077
9834 msgid "64 bit SPARC V9 and above."
9835 msgstr ""
9836
9837 # type: =item
9838 #. type: =item
9839 #: ../src/guestfs-actions.pod:1640 ../fish/guestfish-actions.pod:1079
9840 msgid "\"ia64\""
9841 msgstr ""
9842
9843 # type: textblock
9844 #. type: textblock
9845 #: ../src/guestfs-actions.pod:1642 ../fish/guestfish-actions.pod:1081
9846 msgid "Intel Itanium."
9847 msgstr ""
9848
9849 # type: =item
9850 #. type: =item
9851 #: ../src/guestfs-actions.pod:1644 ../fish/guestfish-actions.pod:1083
9852 msgid "\"ppc\""
9853 msgstr ""
9854
9855 # type: textblock
9856 #. type: textblock
9857 #: ../src/guestfs-actions.pod:1646 ../fish/guestfish-actions.pod:1085
9858 msgid "32 bit Power PC."
9859 msgstr ""
9860
9861 # type: =item
9862 #. type: =item
9863 #: ../src/guestfs-actions.pod:1648 ../fish/guestfish-actions.pod:1087
9864 msgid "\"ppc64\""
9865 msgstr ""
9866
9867 # type: textblock
9868 #. type: textblock
9869 #: ../src/guestfs-actions.pod:1650 ../fish/guestfish-actions.pod:1089
9870 msgid "64 bit Power PC."
9871 msgstr ""
9872
9873 # type: textblock
9874 #. type: textblock
9875 #: ../src/guestfs-actions.pod:1654 ../fish/guestfish-actions.pod:1093
9876 msgid "Libguestfs may return other architecture strings in future."
9877 msgstr ""
9878
9879 # type: textblock
9880 #. type: textblock
9881 #: ../src/guestfs-actions.pod:1656 ../fish/guestfish-actions.pod:1095
9882 msgid "The function works on at least the following types of files:"
9883 msgstr ""
9884
9885 # type: textblock
9886 #. type: textblock
9887 #: ../src/guestfs-actions.pod:1662 ../fish/guestfish-actions.pod:1101
9888 msgid "many types of Un*x and Linux binary"
9889 msgstr ""
9890
9891 # type: textblock
9892 #. type: textblock
9893 #: ../src/guestfs-actions.pod:1666 ../fish/guestfish-actions.pod:1105
9894 msgid "many types of Un*x and Linux shared library"
9895 msgstr ""
9896
9897 # type: textblock
9898 #. type: textblock
9899 #: ../src/guestfs-actions.pod:1670 ../fish/guestfish-actions.pod:1109
9900 msgid "Windows Win32 and Win64 binaries"
9901 msgstr ""
9902
9903 # type: textblock
9904 #. type: textblock
9905 #: ../src/guestfs-actions.pod:1674 ../fish/guestfish-actions.pod:1113
9906 msgid "Windows Win32 and Win64 DLLs"
9907 msgstr ""
9908
9909 # type: textblock
9910 #. type: textblock
9911 #: ../src/guestfs-actions.pod:1676 ../fish/guestfish-actions.pod:1115
9912 msgid "Win32 binaries and DLLs return C<i386>."
9913 msgstr ""
9914
9915 # type: textblock
9916 #. type: textblock
9917 #: ../src/guestfs-actions.pod:1678 ../fish/guestfish-actions.pod:1117
9918 msgid "Win64 binaries and DLLs return C<x86_64>."
9919 msgstr ""
9920
9921 # type: textblock
9922 #. type: textblock
9923 #: ../src/guestfs-actions.pod:1682 ../fish/guestfish-actions.pod:1121
9924 msgid "Linux kernel modules"
9925 msgstr ""
9926
9927 # type: textblock
9928 #. type: textblock
9929 #: ../src/guestfs-actions.pod:1686 ../fish/guestfish-actions.pod:1125
9930 msgid "Linux new-style initrd images"
9931 msgstr ""
9932
9933 # type: textblock
9934 #. type: textblock
9935 #: ../src/guestfs-actions.pod:1690 ../fish/guestfish-actions.pod:1129
9936 msgid "some non-x86 Linux vmlinuz kernels"
9937 msgstr ""
9938
9939 # type: textblock
9940 #. type: textblock
9941 #: ../src/guestfs-actions.pod:1694 ../fish/guestfish-actions.pod:1133
9942 msgid "What it can't do currently:"
9943 msgstr ""
9944
9945 # type: textblock
9946 #. type: textblock
9947 #: ../src/guestfs-actions.pod:1700 ../fish/guestfish-actions.pod:1139
9948 msgid "static libraries (libfoo.a)"
9949 msgstr ""
9950
9951 # type: textblock
9952 #. type: textblock
9953 #: ../src/guestfs-actions.pod:1704 ../fish/guestfish-actions.pod:1143
9954 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9955 msgstr ""
9956
9957 # type: textblock
9958 #. type: textblock
9959 #: ../src/guestfs-actions.pod:1708 ../fish/guestfish-actions.pod:1147
9960 msgid "x86 Linux vmlinuz kernels"
9961 msgstr ""
9962
9963 # type: textblock
9964 #. type: textblock
9965 #: ../src/guestfs-actions.pod:1710 ../fish/guestfish-actions.pod:1149
9966 msgid ""
9967 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
9968 "compressed code, and are horribly hard to unpack.  If you want to find the "
9969 "architecture of a kernel, use the architecture of the associated initrd or "
9970 "kernel module(s) instead."
9971 msgstr ""
9972
9973 # type: textblock
9974 #. type: textblock
9975 #: ../src/guestfs-actions.pod:1720 ../src/guestfs-actions.pod:1883
9976 #: ../src/guestfs-actions.pod:1900 ../src/guestfs-actions.pod:2590
9977 #: ../src/guestfs-actions.pod:2680 ../src/guestfs-actions.pod:2746
9978 #: ../src/guestfs-actions.pod:2933 ../src/guestfs-actions.pod:2951
9979 #: ../src/guestfs-actions.pod:2991 ../src/guestfs-actions.pod:3066
9980 #: ../src/guestfs-actions.pod:3159 ../src/guestfs-actions.pod:3396
9981 #: ../src/guestfs-actions.pod:3528
9982 msgid "(Added in 1.5.3)"
9983 msgstr ""
9984
9985 # type: =head2
9986 #. type: =head2
9987 #: ../src/guestfs-actions.pod:1722
9988 msgid "guestfs_filesize"
9989 msgstr ""
9990
9991 # type: verbatim
9992 #. type: verbatim
9993 #: ../src/guestfs-actions.pod:1724
9994 #, no-wrap
9995 msgid ""
9996 " int64_t\n"
9997 " guestfs_filesize (guestfs_h *g,\n"
9998 "                   const char *file);\n"
9999 "\n"
10000 msgstr ""
10001
10002 # type: textblock
10003 #. type: textblock
10004 #: ../src/guestfs-actions.pod:1728 ../fish/guestfish-actions.pod:1160
10005 msgid "This command returns the size of C<file> in bytes."
10006 msgstr ""
10007
10008 # type: textblock
10009 #. type: textblock
10010 #: ../src/guestfs-actions.pod:1730
10011 msgid ""
10012 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
10013 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
10014 "devices, use C<guestfs_blockdev_getsize64>."
10015 msgstr ""
10016
10017 # type: textblock
10018 #. type: textblock
10019 #: ../src/guestfs-actions.pod:1736
10020 msgid "(Added in 1.0.82)"
10021 msgstr ""
10022
10023 # type: =head2
10024 #. type: =head2
10025 #: ../src/guestfs-actions.pod:1738
10026 msgid "guestfs_fill"
10027 msgstr ""
10028
10029 # type: verbatim
10030 #. type: verbatim
10031 #: ../src/guestfs-actions.pod:1740
10032 #, no-wrap
10033 msgid ""
10034 " int\n"
10035 " guestfs_fill (guestfs_h *g,\n"
10036 "               int c,\n"
10037 "               int len,\n"
10038 "               const char *path);\n"
10039 "\n"
10040 msgstr ""
10041
10042 # type: textblock
10043 #. type: textblock
10044 #: ../src/guestfs-actions.pod:1746 ../fish/guestfish-actions.pod:1170
10045 msgid ""
10046 "This command creates a new file called C<path>.  The initial content of the "
10047 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
10048 "[0..255]>."
10049 msgstr ""
10050
10051 # type: textblock
10052 #. type: textblock
10053 #: ../src/guestfs-actions.pod:1750
10054 msgid ""
10055 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
10056 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
10057 "bytes use C<guestfs_fill_pattern>."
10058 msgstr ""
10059
10060 # type: textblock
10061 #. type: textblock
10062 #: ../src/guestfs-actions.pod:1762
10063 msgid "(Added in 1.0.79)"
10064 msgstr ""
10065
10066 # type: =head2
10067 #. type: =head2
10068 #: ../src/guestfs-actions.pod:1764
10069 msgid "guestfs_fill_pattern"
10070 msgstr ""
10071
10072 # type: verbatim
10073 #. type: verbatim
10074 #: ../src/guestfs-actions.pod:1766
10075 #, no-wrap
10076 msgid ""
10077 " int\n"
10078 " guestfs_fill_pattern (guestfs_h *g,\n"
10079 "                       const char *pattern,\n"
10080 "                       int len,\n"
10081 "                       const char *path);\n"
10082 "\n"
10083 msgstr ""
10084
10085 # type: textblock
10086 #. type: textblock
10087 #: ../src/guestfs-actions.pod:1772
10088 msgid ""
10089 "This function is like C<guestfs_fill> except that it creates a new file of "
10090 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
10091 "pattern is truncated if necessary to ensure the length of the file is "
10092 "exactly C<len> bytes."
10093 msgstr ""
10094
10095 # type: textblock
10096 #. type: textblock
10097 #: ../src/guestfs-actions.pod:1784
10098 msgid "(Added in 1.3.12)"
10099 msgstr ""
10100
10101 # type: =head2
10102 #. type: =head2
10103 #: ../src/guestfs-actions.pod:1786
10104 msgid "guestfs_find"
10105 msgstr ""
10106
10107 # type: verbatim
10108 #. type: verbatim
10109 #: ../src/guestfs-actions.pod:1788
10110 #, no-wrap
10111 msgid ""
10112 " char **\n"
10113 " guestfs_find (guestfs_h *g,\n"
10114 "               const char *directory);\n"
10115 "\n"
10116 msgstr ""
10117
10118 # type: textblock
10119 #. type: textblock
10120 #: ../src/guestfs-actions.pod:1792 ../fish/guestfish-actions.pod:1192
10121 msgid ""
10122 "This command lists out all files and directories, recursively, starting at "
10123 "C<directory>.  It is essentially equivalent to running the shell command "
10124 "C<find directory -print> but some post-processing happens on the output, "
10125 "described below."
10126 msgstr ""
10127
10128 # type: textblock
10129 #. type: textblock
10130 #: ../src/guestfs-actions.pod:1797 ../fish/guestfish-actions.pod:1197
10131 msgid ""
10132 "This returns a list of strings I<without any prefix>.  Thus if the directory "
10133 "structure was:"
10134 msgstr ""
10135
10136 # type: verbatim
10137 #. type: verbatim
10138 #: ../src/guestfs-actions.pod:1800 ../fish/guestfish-actions.pod:1200
10139 #, no-wrap
10140 msgid ""
10141 " /tmp/a\n"
10142 " /tmp/b\n"
10143 " /tmp/c/d\n"
10144 "\n"
10145 msgstr ""
10146
10147 # type: textblock
10148 #. type: textblock
10149 #: ../src/guestfs-actions.pod:1804
10150 msgid ""
10151 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
10152 msgstr ""
10153
10154 # type: verbatim
10155 #. type: verbatim
10156 #: ../src/guestfs-actions.pod:1807 ../fish/guestfish-actions.pod:1207
10157 #, no-wrap
10158 msgid ""
10159 " a\n"
10160 " b\n"
10161 " c\n"
10162 " c/d\n"
10163 "\n"
10164 msgstr ""
10165
10166 # type: textblock
10167 #. type: textblock
10168 #: ../src/guestfs-actions.pod:1812 ../fish/guestfish-actions.pod:1212
10169 msgid "If C<directory> is not a directory, then this command returns an error."
10170 msgstr ""
10171
10172 # type: textblock
10173 #. type: textblock
10174 #: ../src/guestfs-actions.pod:1815 ../fish/guestfish-actions.pod:1215
10175 msgid "The returned list is sorted."
10176 msgstr ""
10177
10178 # type: textblock
10179 #. type: textblock
10180 #: ../src/guestfs-actions.pod:1817
10181 msgid "See also C<guestfs_find0>."
10182 msgstr ""
10183
10184 # type: textblock
10185 #. type: textblock
10186 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:4286
10187 #: ../src/guestfs-actions.pod:5990
10188 msgid "(Added in 1.0.27)"
10189 msgstr ""
10190
10191 # type: =head2
10192 #. type: =head2
10193 #: ../src/guestfs-actions.pod:1828
10194 msgid "guestfs_find0"
10195 msgstr ""
10196
10197 # type: verbatim
10198 #. type: verbatim
10199 #: ../src/guestfs-actions.pod:1830
10200 #, no-wrap
10201 msgid ""
10202 " int\n"
10203 " guestfs_find0 (guestfs_h *g,\n"
10204 "                const char *directory,\n"
10205 "                const char *files);\n"
10206 "\n"
10207 msgstr ""
10208
10209 # type: textblock
10210 #. type: textblock
10211 #: ../src/guestfs-actions.pod:1835 ../fish/guestfish-actions.pod:1226
10212 msgid ""
10213 "This command lists out all files and directories, recursively, starting at "
10214 "C<directory>, placing the resulting list in the external file called "
10215 "C<files>."
10216 msgstr ""
10217
10218 # type: textblock
10219 #. type: textblock
10220 #: ../src/guestfs-actions.pod:1839
10221 msgid ""
10222 "This command works the same way as C<guestfs_find> with the following "
10223 "exceptions:"
10224 msgstr ""
10225
10226 # type: textblock
10227 #. type: textblock
10228 #: ../src/guestfs-actions.pod:1846 ../fish/guestfish-actions.pod:1237
10229 msgid "The resulting list is written to an external file."
10230 msgstr ""
10231
10232 # type: textblock
10233 #. type: textblock
10234 #: ../src/guestfs-actions.pod:1850 ../fish/guestfish-actions.pod:1241
10235 msgid ""
10236 "Items (filenames) in the result are separated by C<\\0> characters.  See "
10237 "L<find(1)> option I<-print0>."
10238 msgstr ""
10239
10240 # type: textblock
10241 #. type: textblock
10242 #: ../src/guestfs-actions.pod:1855 ../fish/guestfish-actions.pod:1246
10243 msgid "This command is not limited in the number of names that it can return."
10244 msgstr ""
10245
10246 # type: textblock
10247 #. type: textblock
10248 #: ../src/guestfs-actions.pod:1860 ../fish/guestfish-actions.pod:1251
10249 msgid "The result list is not sorted."
10250 msgstr ""
10251
10252 # type: textblock
10253 #. type: textblock
10254 #: ../src/guestfs-actions.pod:1866
10255 msgid "(Added in 1.0.74)"
10256 msgstr ""
10257
10258 # type: =head2
10259 #. type: =head2
10260 #: ../src/guestfs-actions.pod:1868
10261 msgid "guestfs_findfs_label"
10262 msgstr ""
10263
10264 # type: verbatim
10265 #. type: verbatim
10266 #: ../src/guestfs-actions.pod:1870
10267 #, no-wrap
10268 msgid ""
10269 " char *\n"
10270 " guestfs_findfs_label (guestfs_h *g,\n"
10271 "                       const char *label);\n"
10272 "\n"
10273 msgstr ""
10274
10275 # type: textblock
10276 #. type: textblock
10277 #: ../src/guestfs-actions.pod:1874 ../fish/guestfish-actions.pod:1261
10278 msgid ""
10279 "This command searches the filesystems and returns the one which has the "
10280 "given label.  An error is returned if no such filesystem can be found."
10281 msgstr ""
10282
10283 # type: textblock
10284 #. type: textblock
10285 #: ../src/guestfs-actions.pod:1878
10286 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
10287 msgstr ""
10288
10289 # type: =head2
10290 #. type: =head2
10291 #: ../src/guestfs-actions.pod:1885
10292 msgid "guestfs_findfs_uuid"
10293 msgstr ""
10294
10295 # type: verbatim
10296 #. type: verbatim
10297 #: ../src/guestfs-actions.pod:1887
10298 #, no-wrap
10299 msgid ""
10300 " char *\n"
10301 " guestfs_findfs_uuid (guestfs_h *g,\n"
10302 "                      const char *uuid);\n"
10303 "\n"
10304 msgstr ""
10305
10306 # type: textblock
10307 #. type: textblock
10308 #: ../src/guestfs-actions.pod:1891 ../fish/guestfish-actions.pod:1271
10309 msgid ""
10310 "This command searches the filesystems and returns the one which has the "
10311 "given UUID.  An error is returned if no such filesystem can be found."
10312 msgstr ""
10313
10314 # type: textblock
10315 #. type: textblock
10316 #: ../src/guestfs-actions.pod:1895
10317 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
10318 msgstr ""
10319
10320 # type: =head2
10321 #. type: =head2
10322 #: ../src/guestfs-actions.pod:1902
10323 msgid "guestfs_fsck"
10324 msgstr ""
10325
10326 # type: verbatim
10327 #. type: verbatim
10328 #: ../src/guestfs-actions.pod:1904
10329 #, no-wrap
10330 msgid ""
10331 " int\n"
10332 " guestfs_fsck (guestfs_h *g,\n"
10333 "               const char *fstype,\n"
10334 "               const char *device);\n"
10335 "\n"
10336 msgstr ""
10337
10338 # type: textblock
10339 #. type: textblock
10340 #: ../src/guestfs-actions.pod:1909 ../fish/guestfish-actions.pod:1281
10341 msgid ""
10342 "This runs the filesystem checker (fsck) on C<device> which should have "
10343 "filesystem type C<fstype>."
10344 msgstr ""
10345
10346 # type: textblock
10347 #. type: textblock
10348 #: ../src/guestfs-actions.pod:1912 ../fish/guestfish-actions.pod:1284
10349 msgid ""
10350 "The returned integer is the status.  See L<fsck(8)> for the list of status "
10351 "codes from C<fsck>."
10352 msgstr ""
10353
10354 # type: textblock
10355 #. type: textblock
10356 #: ../src/guestfs-actions.pod:1921 ../fish/guestfish-actions.pod:1293
10357 msgid "Multiple status codes can be summed together."
10358 msgstr ""
10359
10360 # type: textblock
10361 #. type: textblock
10362 #: ../src/guestfs-actions.pod:1925 ../fish/guestfish-actions.pod:1297
10363 msgid ""
10364 "A non-zero return code can mean \"success\", for example if errors have been "
10365 "corrected on the filesystem."
10366 msgstr ""
10367
10368 # type: textblock
10369 #. type: textblock
10370 #: ../src/guestfs-actions.pod:1930 ../fish/guestfish-actions.pod:1302
10371 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
10372 msgstr ""
10373
10374 # type: textblock
10375 #. type: textblock
10376 #: ../src/guestfs-actions.pod:1935 ../fish/guestfish-actions.pod:1307
10377 msgid ""
10378 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
10379 msgstr ""
10380
10381 # type: textblock
10382 #. type: textblock
10383 #: ../src/guestfs-actions.pod:1939 ../src/guestfs-actions.pod:7720
10384 msgid "(Added in 1.0.16)"
10385 msgstr ""
10386
10387 # type: =head2
10388 #. type: =head2
10389 #: ../src/guestfs-actions.pod:1941
10390 msgid "guestfs_get_append"
10391 msgstr ""
10392
10393 # type: verbatim
10394 #. type: verbatim
10395 #: ../src/guestfs-actions.pod:1943
10396 #, no-wrap
10397 msgid ""
10398 " const char *\n"
10399 " guestfs_get_append (guestfs_h *g);\n"
10400 "\n"
10401 msgstr ""
10402
10403 # type: textblock
10404 #. type: textblock
10405 #: ../src/guestfs-actions.pod:1946 ../fish/guestfish-actions.pod:1313
10406 msgid ""
10407 "Return the additional kernel options which are added to the guest kernel "
10408 "command line."
10409 msgstr ""
10410
10411 # type: textblock
10412 #. type: textblock
10413 #: ../src/guestfs-actions.pod:1949 ../fish/guestfish-actions.pod:1316
10414 msgid "If C<NULL> then no options are added."
10415 msgstr ""
10416
10417 # type: textblock
10418 #. type: textblock
10419 #: ../src/guestfs-actions.pod:1951
10420 msgid ""
10421 "This function returns a string which may be NULL.  There is no way to return "
10422 "an error from this function.  The string is owned by the guest handle and "
10423 "must I<not> be freed."
10424 msgstr ""
10425
10426 # type: textblock
10427 #. type: textblock
10428 #: ../src/guestfs-actions.pod:1955 ../src/guestfs-actions.pod:5668
10429 #: ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6573
10430 #: ../src/guestfs-actions.pod:6592 ../src/guestfs-actions.pod:6608
10431 #: ../src/guestfs-actions.pod:6632 ../src/guestfs-actions.pod:7386
10432 #: ../src/guestfs-actions.pod:7401 ../src/guestfs-actions.pod:7763
10433 msgid "(Added in 1.0.26)"
10434 msgstr ""
10435
10436 #. type: =head2
10437 #: ../src/guestfs-actions.pod:1957
10438 msgid "guestfs_get_attach_method"
10439 msgstr ""
10440
10441 #. type: verbatim
10442 #: ../src/guestfs-actions.pod:1959
10443 #, no-wrap
10444 msgid ""
10445 " char *\n"
10446 " guestfs_get_attach_method (guestfs_h *g);\n"
10447 "\n"
10448 msgstr ""
10449
10450 #. type: textblock
10451 #: ../src/guestfs-actions.pod:1962
10452 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
10453 msgstr ""
10454
10455 #. type: textblock
10456 #: ../src/guestfs-actions.pod:1967 ../src/guestfs-actions.pod:6180
10457 msgid "(Added in 1.9.8)"
10458 msgstr ""
10459
10460 # type: =head2
10461 #. type: =head2
10462 #: ../src/guestfs-actions.pod:1969
10463 msgid "guestfs_get_autosync"
10464 msgstr ""
10465
10466 # type: verbatim
10467 #. type: verbatim
10468 #: ../src/guestfs-actions.pod:1971
10469 #, no-wrap
10470 msgid ""
10471 " int\n"
10472 " guestfs_get_autosync (guestfs_h *g);\n"
10473 "\n"
10474 msgstr ""
10475
10476 # type: textblock
10477 #. type: textblock
10478 #: ../src/guestfs-actions.pod:1974 ../fish/guestfish-actions.pod:1328
10479 msgid "Get the autosync flag."
10480 msgstr ""
10481
10482 # type: =head2
10483 #. type: =head2
10484 #: ../src/guestfs-actions.pod:1980
10485 msgid "guestfs_get_direct"
10486 msgstr ""
10487
10488 # type: verbatim
10489 #. type: verbatim
10490 #: ../src/guestfs-actions.pod:1982
10491 #, no-wrap
10492 msgid ""
10493 " int\n"
10494 " guestfs_get_direct (guestfs_h *g);\n"
10495 "\n"
10496 msgstr ""
10497
10498 # type: textblock
10499 #. type: textblock
10500 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1334
10501 msgid "Return the direct appliance mode flag."
10502 msgstr ""
10503
10504 # type: textblock
10505 #. type: textblock
10506 #: ../src/guestfs-actions.pod:1989 ../src/guestfs-actions.pod:6221
10507 msgid "(Added in 1.0.72)"
10508 msgstr ""
10509
10510 # type: =head2
10511 #. type: =head2
10512 #: ../src/guestfs-actions.pod:1991
10513 msgid "guestfs_get_e2label"
10514 msgstr ""
10515
10516 # type: verbatim
10517 #. type: verbatim
10518 #: ../src/guestfs-actions.pod:1993
10519 #, no-wrap
10520 msgid ""
10521 " char *\n"
10522 " guestfs_get_e2label (guestfs_h *g,\n"
10523 "                      const char *device);\n"
10524 "\n"
10525 msgstr ""
10526
10527 # type: textblock
10528 #. type: textblock
10529 #: ../src/guestfs-actions.pod:1997 ../fish/guestfish-actions.pod:1340
10530 msgid ""
10531 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
10532 msgstr ""
10533
10534 # type: textblock
10535 #. type: textblock
10536 #: ../src/guestfs-actions.pod:2003 ../fish/guestfish-actions.pod:1343
10537 msgid ""
10538 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
10539 msgstr ""
10540
10541 # type: textblock
10542 #. type: textblock
10543 #: ../src/guestfs-actions.pod:2010 ../src/guestfs-actions.pod:2031
10544 #: ../src/guestfs-actions.pod:6239 ../src/guestfs-actions.pod:6258
10545 msgid "(Added in 1.0.15)"
10546 msgstr ""
10547
10548 # type: =head2
10549 #. type: =head2
10550 #: ../src/guestfs-actions.pod:2012
10551 msgid "guestfs_get_e2uuid"
10552 msgstr ""
10553
10554 # type: verbatim
10555 #. type: verbatim
10556 #: ../src/guestfs-actions.pod:2014
10557 #, no-wrap
10558 msgid ""
10559 " char *\n"
10560 " guestfs_get_e2uuid (guestfs_h *g,\n"
10561 "                     const char *device);\n"
10562 "\n"
10563 msgstr ""
10564
10565 # type: textblock
10566 #. type: textblock
10567 #: ../src/guestfs-actions.pod:2018 ../fish/guestfish-actions.pod:1354
10568 msgid ""
10569 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
10570 msgstr ""
10571
10572 # type: textblock
10573 #. type: textblock
10574 #: ../src/guestfs-actions.pod:2024 ../fish/guestfish-actions.pod:1357
10575 msgid ""
10576 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
10577 msgstr ""
10578
10579 # type: =head2
10580 #. type: =head2
10581 #: ../src/guestfs-actions.pod:2033
10582 msgid "guestfs_get_memsize"
10583 msgstr ""
10584
10585 # type: verbatim
10586 #. type: verbatim
10587 #: ../src/guestfs-actions.pod:2035
10588 #, no-wrap
10589 msgid ""
10590 " int\n"
10591 " guestfs_get_memsize (guestfs_h *g);\n"
10592 "\n"
10593 msgstr ""
10594
10595 # type: textblock
10596 #. type: textblock
10597 #: ../src/guestfs-actions.pod:2038 ../fish/guestfish-actions.pod:1368
10598 msgid ""
10599 "This gets the memory size in megabytes allocated to the qemu subprocess."
10600 msgstr ""
10601
10602 # type: textblock
10603 #. type: textblock
10604 #: ../src/guestfs-actions.pod:2041
10605 msgid ""
10606 "If C<guestfs_set_memsize> was not called on this handle, and if "
10607 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
10608 "value for memsize."
10609 msgstr ""
10610
10611 # type: textblock
10612 #. type: textblock
10613 #: ../src/guestfs-actions.pod:2045 ../src/guestfs-actions.pod:2126
10614 #: ../src/guestfs-actions.pod:6274 ../src/guestfs-actions.pod:6381
10615 #: ../fish/guestfish-actions.pod:1375 ../fish/guestfish-actions.pod:1426
10616 #: ../fish/guestfish-actions.pod:4151 ../fish/guestfish-actions.pod:4238
10617 msgid ""
10618 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
10619 msgstr ""
10620
10621 # type: textblock
10622 #. type: textblock
10623 #: ../src/guestfs-actions.pod:2050 ../src/guestfs-actions.pod:4577
10624 #: ../src/guestfs-actions.pod:4786 ../src/guestfs-actions.pod:4805
10625 #: ../src/guestfs-actions.pod:4824 ../src/guestfs-actions.pod:4836
10626 #: ../src/guestfs-actions.pod:4853 ../src/guestfs-actions.pod:4866
10627 #: ../src/guestfs-actions.pod:5893 ../src/guestfs-actions.pod:6279
10628 #: ../src/guestfs-actions.pod:6540 ../src/guestfs-actions.pod:7155
10629 msgid "(Added in 1.0.55)"
10630 msgstr ""
10631
10632 # type: =head2
10633 #. type: =head2
10634 #: ../src/guestfs-actions.pod:2052
10635 msgid "guestfs_get_network"
10636 msgstr ""
10637
10638 # type: verbatim
10639 #. type: verbatim
10640 #: ../src/guestfs-actions.pod:2054
10641 #, no-wrap
10642 msgid ""
10643 " int\n"
10644 " guestfs_get_network (guestfs_h *g);\n"
10645 "\n"
10646 msgstr ""
10647
10648 # type: textblock
10649 #. type: textblock
10650 #: ../src/guestfs-actions.pod:2057 ../fish/guestfish-actions.pod:1382
10651 msgid "This returns the enable network flag."
10652 msgstr ""
10653
10654 # type: textblock
10655 #. type: textblock
10656 #: ../src/guestfs-actions.pod:2061 ../src/guestfs-actions.pod:6298
10657 msgid "(Added in 1.5.4)"
10658 msgstr ""
10659
10660 # type: =head2
10661 #. type: =head2
10662 #: ../src/guestfs-actions.pod:2063
10663 msgid "guestfs_get_path"
10664 msgstr ""
10665
10666 # type: verbatim
10667 #. type: verbatim
10668 #: ../src/guestfs-actions.pod:2065
10669 #, no-wrap
10670 msgid ""
10671 " const char *\n"
10672 " guestfs_get_path (guestfs_h *g);\n"
10673 "\n"
10674 msgstr ""
10675
10676 # type: textblock
10677 #. type: textblock
10678 #: ../src/guestfs-actions.pod:2068 ../fish/guestfish-actions.pod:1388
10679 msgid "Return the current search path."
10680 msgstr ""
10681
10682 # type: textblock
10683 #. type: textblock
10684 #: ../src/guestfs-actions.pod:2070 ../fish/guestfish-actions.pod:1390
10685 msgid ""
10686 "This is always non-NULL.  If it wasn't set already, then this will return "
10687 "the default path."
10688 msgstr ""
10689
10690 # type: textblock
10691 #. type: textblock
10692 #: ../src/guestfs-actions.pod:2073 ../src/guestfs-actions.pod:2102
10693 msgid ""
10694 "This function returns a string, or NULL on error.  The string is owned by "
10695 "the guest handle and must I<not> be freed."
10696 msgstr ""
10697
10698 # type: =head2
10699 #. type: =head2
10700 #: ../src/guestfs-actions.pod:2078
10701 msgid "guestfs_get_pid"
10702 msgstr ""
10703
10704 # type: verbatim
10705 #. type: verbatim
10706 #: ../src/guestfs-actions.pod:2080
10707 #, no-wrap
10708 msgid ""
10709 " int\n"
10710 " guestfs_get_pid (guestfs_h *g);\n"
10711 "\n"
10712 msgstr ""
10713
10714 # type: textblock
10715 #. type: textblock
10716 #: ../src/guestfs-actions.pod:2083 ../fish/guestfish-actions.pod:1399
10717 msgid ""
10718 "Return the process ID of the qemu subprocess.  If there is no qemu "
10719 "subprocess, then this will return an error."
10720 msgstr ""
10721
10722 # type: textblock
10723 #. type: textblock
10724 #: ../src/guestfs-actions.pod:2086 ../fish/guestfish-actions.pod:1402
10725 msgid "This is an internal call used for debugging and testing."
10726 msgstr ""
10727
10728 # type: textblock
10729 #. type: textblock
10730 #: ../src/guestfs-actions.pod:2090
10731 msgid "(Added in 1.0.56)"
10732 msgstr ""
10733
10734 # type: =head2
10735 #. type: =head2
10736 #: ../src/guestfs-actions.pod:2092
10737 msgid "guestfs_get_qemu"
10738 msgstr ""
10739
10740 # type: verbatim
10741 #. type: verbatim
10742 #: ../src/guestfs-actions.pod:2094
10743 #, no-wrap
10744 msgid ""
10745 " const char *\n"
10746 " guestfs_get_qemu (guestfs_h *g);\n"
10747 "\n"
10748 msgstr ""
10749
10750 # type: textblock
10751 #. type: textblock
10752 #: ../src/guestfs-actions.pod:2097 ../fish/guestfish-actions.pod:1408
10753 msgid "Return the current qemu binary."
10754 msgstr ""
10755
10756 # type: textblock
10757 #. type: textblock
10758 #: ../src/guestfs-actions.pod:2099 ../fish/guestfish-actions.pod:1410
10759 msgid ""
10760 "This is always non-NULL.  If it wasn't set already, then this will return "
10761 "the default qemu binary name."
10762 msgstr ""
10763
10764 # type: textblock
10765 #. type: textblock
10766 #: ../src/guestfs-actions.pod:2105 ../src/guestfs-actions.pod:6343
10767 msgid "(Added in 1.0.6)"
10768 msgstr ""
10769
10770 # type: =head2
10771 #. type: =head2
10772 #: ../src/guestfs-actions.pod:2107
10773 msgid "guestfs_get_recovery_proc"
10774 msgstr ""
10775
10776 # type: verbatim
10777 #. type: verbatim
10778 #: ../src/guestfs-actions.pod:2109
10779 #, no-wrap
10780 msgid ""
10781 " int\n"
10782 " guestfs_get_recovery_proc (guestfs_h *g);\n"
10783 "\n"
10784 msgstr ""
10785
10786 # type: textblock
10787 #. type: textblock
10788 #: ../src/guestfs-actions.pod:2112 ../fish/guestfish-actions.pod:1417
10789 msgid "Return the recovery process enabled flag."
10790 msgstr ""
10791
10792 # type: textblock
10793 #. type: textblock
10794 #: ../src/guestfs-actions.pod:2116 ../src/guestfs-actions.pod:3650
10795 #: ../src/guestfs-actions.pod:3981 ../src/guestfs-actions.pod:4384
10796 #: ../src/guestfs-actions.pod:4416 ../src/guestfs-actions.pod:5598
10797 #: ../src/guestfs-actions.pod:5941 ../src/guestfs-actions.pod:6367
10798 #: ../src/guestfs-actions.pod:7058 ../src/guestfs-actions.pod:7078
10799 #: ../src/guestfs-actions.pod:7270
10800 msgid "(Added in 1.0.77)"
10801 msgstr ""
10802
10803 # type: =head2
10804 #. type: =head2
10805 #: ../src/guestfs-actions.pod:2118
10806 msgid "guestfs_get_selinux"
10807 msgstr ""
10808
10809 # type: verbatim
10810 #. type: verbatim
10811 #: ../src/guestfs-actions.pod:2120
10812 #, no-wrap
10813 msgid ""
10814 " int\n"
10815 " guestfs_get_selinux (guestfs_h *g);\n"
10816 "\n"
10817 msgstr ""
10818
10819 # type: textblock
10820 #. type: textblock
10821 #: ../src/guestfs-actions.pod:2123
10822 msgid ""
10823 "This returns the current setting of the selinux flag which is passed to the "
10824 "appliance at boot time.  See C<guestfs_set_selinux>."
10825 msgstr ""
10826
10827 # type: textblock
10828 #. type: textblock
10829 #: ../src/guestfs-actions.pod:2131 ../src/guestfs-actions.pod:2194
10830 #: ../src/guestfs-actions.pod:6386 ../src/guestfs-actions.pod:6444
10831 msgid "(Added in 1.0.67)"
10832 msgstr ""
10833
10834 # type: =head2
10835 #. type: =head2
10836 #: ../src/guestfs-actions.pod:2133
10837 msgid "guestfs_get_state"
10838 msgstr ""
10839
10840 # type: verbatim
10841 #. type: verbatim
10842 #: ../src/guestfs-actions.pod:2135
10843 #, no-wrap
10844 msgid ""
10845 " int\n"
10846 " guestfs_get_state (guestfs_h *g);\n"
10847 "\n"
10848 msgstr ""
10849
10850 # type: textblock
10851 #. type: textblock
10852 #: ../src/guestfs-actions.pod:2138 ../fish/guestfish-actions.pod:1433
10853 msgid ""
10854 "This returns the current state as an opaque integer.  This is only useful "
10855 "for printing debug and internal error messages."
10856 msgstr ""
10857
10858 # type: textblock
10859 #. type: textblock
10860 #: ../src/guestfs-actions.pod:2141 ../src/guestfs-actions.pod:3421
10861 #: ../src/guestfs-actions.pod:3450 ../src/guestfs-actions.pod:3511
10862 #: ../src/guestfs-actions.pod:3538 ../fish/guestfish-actions.pod:1436
10863 #: ../fish/guestfish-actions.pod:2356 ../fish/guestfish-actions.pod:2374
10864 #: ../fish/guestfish-actions.pod:2412 ../fish/guestfish-actions.pod:2428
10865 msgid "For more information on states, see L<guestfs(3)>."
10866 msgstr ""
10867
10868 # type: =head2
10869 #. type: =head2
10870 #: ../src/guestfs-actions.pod:2147
10871 msgid "guestfs_get_trace"
10872 msgstr ""
10873
10874 # type: verbatim
10875 #. type: verbatim
10876 #: ../src/guestfs-actions.pod:2149
10877 #, no-wrap
10878 msgid ""
10879 " int\n"
10880 " guestfs_get_trace (guestfs_h *g);\n"
10881 "\n"
10882 msgstr ""
10883
10884 # type: textblock
10885 #. type: textblock
10886 #: ../src/guestfs-actions.pod:2152 ../fish/guestfish-actions.pod:1442
10887 msgid "Return the command trace flag."
10888 msgstr ""
10889
10890 # type: =head2
10891 #. type: =head2
10892 #: ../src/guestfs-actions.pod:2158
10893 msgid "guestfs_get_umask"
10894 msgstr ""
10895
10896 # type: verbatim
10897 #. type: verbatim
10898 #: ../src/guestfs-actions.pod:2160
10899 #, no-wrap
10900 msgid ""
10901 " int\n"
10902 " guestfs_get_umask (guestfs_h *g);\n"
10903 "\n"
10904 msgstr ""
10905
10906 # type: textblock
10907 #. type: textblock
10908 #: ../src/guestfs-actions.pod:2163
10909 msgid ""
10910 "Return the current umask.  By default the umask is C<022> unless it has been "
10911 "set by calling C<guestfs_umask>."
10912 msgstr ""
10913
10914 # type: =head2
10915 #. type: =head2
10916 #: ../src/guestfs-actions.pod:2170
10917 msgid "guestfs_get_verbose"
10918 msgstr ""
10919
10920 # type: verbatim
10921 #. type: verbatim
10922 #: ../src/guestfs-actions.pod:2172
10923 #, no-wrap
10924 msgid ""
10925 " int\n"
10926 " guestfs_get_verbose (guestfs_h *g);\n"
10927 "\n"
10928 msgstr ""
10929
10930 # type: textblock
10931 #. type: textblock
10932 #: ../src/guestfs-actions.pod:2175 ../fish/guestfish-actions.pod:1455
10933 msgid "This returns the verbose messages flag."
10934 msgstr ""
10935
10936 # type: =head2
10937 #. type: =head2
10938 #: ../src/guestfs-actions.pod:2181
10939 msgid "guestfs_getcon"
10940 msgstr ""
10941
10942 # type: verbatim
10943 #. type: verbatim
10944 #: ../src/guestfs-actions.pod:2183
10945 #, no-wrap
10946 msgid ""
10947 " char *\n"
10948 " guestfs_getcon (guestfs_h *g);\n"
10949 "\n"
10950 msgstr ""
10951
10952 # type: textblock
10953 #. type: textblock
10954 #: ../src/guestfs-actions.pod:2186 ../fish/guestfish-actions.pod:1461
10955 msgid "This gets the SELinux security context of the daemon."
10956 msgstr ""
10957
10958 # type: textblock
10959 #. type: textblock
10960 #: ../src/guestfs-actions.pod:2188
10961 msgid ""
10962 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
10963 msgstr ""
10964
10965 # type: =head2
10966 #. type: =head2
10967 #: ../src/guestfs-actions.pod:2196
10968 msgid "guestfs_getxattr"
10969 msgstr ""
10970
10971 # type: verbatim
10972 #. type: verbatim
10973 #: ../src/guestfs-actions.pod:2198
10974 #, no-wrap
10975 msgid ""
10976 " char *\n"
10977 " guestfs_getxattr (guestfs_h *g,\n"
10978 "                   const char *path,\n"
10979 "                   const char *name,\n"
10980 "                   size_t *size_r);\n"
10981 "\n"
10982 msgstr ""
10983
10984 # type: textblock
10985 #. type: textblock
10986 #: ../src/guestfs-actions.pod:2204
10987 msgid ""
10988 "Get a single extended attribute from file C<path> named C<name>.  This call "
10989 "follows symlinks.  If you want to lookup an extended attribute for the "
10990 "symlink itself, use C<guestfs_lgetxattr>."
10991 msgstr ""
10992
10993 # type: textblock
10994 #. type: textblock
10995 #: ../src/guestfs-actions.pod:2208 ../src/guestfs-actions.pod:3664
10996 msgid ""
10997 "Normally it is better to get all extended attributes from a file in one go "
10998 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
10999 "implementations are buggy and do not provide a way to list out attributes.  "
11000 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
11001 "extended attributes you want in advance and call this function."
11002 msgstr ""
11003
11004 # type: textblock
11005 #. type: textblock
11006 #: ../src/guestfs-actions.pod:2215 ../src/guestfs-actions.pod:3671
11007 #: ../fish/guestfish-actions.pod:1481 ../fish/guestfish-actions.pod:2508
11008 msgid ""
11009 "Extended attribute values are blobs of binary data.  If there is no extended "
11010 "attribute named C<name>, this returns an error."
11011 msgstr ""
11012
11013 # type: textblock
11014 #. type: textblock
11015 #: ../src/guestfs-actions.pod:2218
11016 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
11017 msgstr ""
11018
11019 # type: textblock
11020 #. type: textblock
11021 #: ../src/guestfs-actions.pod:2220 ../src/guestfs-actions.pod:2411
11022 #: ../src/guestfs-actions.pod:2881 ../src/guestfs-actions.pod:3676
11023 #: ../src/guestfs-actions.pod:5591 ../src/guestfs-actions.pod:5617
11024 #: ../src/guestfs-actions.pod:5798
11025 msgid ""
11026 "This function returns a buffer, or NULL on error.  The size of the returned "
11027 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
11028 "after use>."
11029 msgstr ""
11030
11031 #. type: textblock
11032 #: ../src/guestfs-actions.pod:2224 ../src/guestfs-actions.pod:3680
11033 msgid "(Added in 1.7.24)"
11034 msgstr ""
11035
11036 # type: =head2
11037 #. type: =head2
11038 #: ../src/guestfs-actions.pod:2226
11039 msgid "guestfs_getxattrs"
11040 msgstr ""
11041
11042 # type: verbatim
11043 #. type: verbatim
11044 #: ../src/guestfs-actions.pod:2228
11045 #, no-wrap
11046 msgid ""
11047 " struct guestfs_xattr_list *\n"
11048 " guestfs_getxattrs (guestfs_h *g,\n"
11049 "                    const char *path);\n"
11050 "\n"
11051 msgstr ""
11052
11053 # type: textblock
11054 #. type: textblock
11055 #: ../src/guestfs-actions.pod:2232 ../fish/guestfish-actions.pod:1490
11056 msgid ""
11057 "This call lists the extended attributes of the file or directory C<path>."
11058 msgstr ""
11059
11060 # type: textblock
11061 #. type: textblock
11062 #: ../src/guestfs-actions.pod:2235 ../fish/guestfish-actions.pod:1493
11063 msgid ""
11064 "At the system call level, this is a combination of the L<listxattr(2)> and "
11065 "L<getxattr(2)> calls."
11066 msgstr ""
11067
11068 # type: textblock
11069 #. type: textblock
11070 #: ../src/guestfs-actions.pod:2238
11071 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
11072 msgstr ""
11073
11074 # type: textblock
11075 #. type: textblock
11076 #: ../src/guestfs-actions.pod:2240 ../src/guestfs-actions.pod:3692
11077 #: ../src/guestfs-actions.pod:4380
11078 msgid ""
11079 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
11080 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
11081 msgstr ""
11082
11083 # type: textblock
11084 #. type: textblock
11085 #: ../src/guestfs-actions.pod:2244 ../src/guestfs-actions.pod:3696
11086 #: ../src/guestfs-actions.pod:3895 ../src/guestfs-actions.pod:3931
11087 #: ../src/guestfs-actions.pod:5971 ../src/guestfs-actions.pod:6463
11088 #: ../src/guestfs-actions.pod:7828
11089 msgid "(Added in 1.0.59)"
11090 msgstr ""
11091
11092 # type: =head2
11093 #. type: =head2
11094 #: ../src/guestfs-actions.pod:2246
11095 msgid "guestfs_glob_expand"
11096 msgstr ""
11097
11098 # type: verbatim
11099 #. type: verbatim
11100 #: ../src/guestfs-actions.pod:2248
11101 #, no-wrap
11102 msgid ""
11103 " char **\n"
11104 " guestfs_glob_expand (guestfs_h *g,\n"
11105 "                      const char *pattern);\n"
11106 "\n"
11107 msgstr ""
11108
11109 # type: textblock
11110 #. type: textblock
11111 #: ../src/guestfs-actions.pod:2252 ../fish/guestfish-actions.pod:1502
11112 msgid ""
11113 "This command searches for all the pathnames matching C<pattern> according to "
11114 "the wildcard expansion rules used by the shell."
11115 msgstr ""
11116
11117 # type: textblock
11118 #. type: textblock
11119 #: ../src/guestfs-actions.pod:2256 ../fish/guestfish-actions.pod:1506
11120 msgid ""
11121 "If no paths match, then this returns an empty list (note: not an error)."
11122 msgstr ""
11123
11124 # type: textblock
11125 #. type: textblock
11126 #: ../src/guestfs-actions.pod:2259 ../fish/guestfish-actions.pod:1509
11127 msgid ""
11128 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
11129 "GLOB_BRACE>.  See that manual page for more details."
11130 msgstr ""
11131
11132 # type: textblock
11133 #. type: textblock
11134 #: ../src/guestfs-actions.pod:2267 ../src/guestfs-actions.pod:6656
11135 #: ../src/guestfs-actions.pod:6673
11136 msgid "(Added in 1.0.50)"
11137 msgstr ""
11138
11139 # type: =head2
11140 #. type: =head2
11141 #: ../src/guestfs-actions.pod:2269
11142 msgid "guestfs_grep"
11143 msgstr ""
11144
11145 # type: verbatim
11146 #. type: verbatim
11147 #: ../src/guestfs-actions.pod:2271
11148 #, no-wrap
11149 msgid ""
11150 " char **\n"
11151 " guestfs_grep (guestfs_h *g,\n"
11152 "               const char *regex,\n"
11153 "               const char *path);\n"
11154 "\n"
11155 msgstr ""
11156
11157 # type: textblock
11158 #. type: textblock
11159 #: ../src/guestfs-actions.pod:2276 ../fish/guestfish-actions.pod:1517
11160 msgid "This calls the external C<grep> program and returns the matching lines."
11161 msgstr ""
11162
11163 # type: =head2
11164 #. type: =head2
11165 #: ../src/guestfs-actions.pod:2288
11166 msgid "guestfs_grepi"
11167 msgstr ""
11168
11169 # type: verbatim
11170 #. type: verbatim
11171 #: ../src/guestfs-actions.pod:2290
11172 #, no-wrap
11173 msgid ""
11174 " char **\n"
11175 " guestfs_grepi (guestfs_h *g,\n"
11176 "                const char *regex,\n"
11177 "                const char *path);\n"
11178 "\n"
11179 msgstr ""
11180
11181 # type: textblock
11182 #. type: textblock
11183 #: ../src/guestfs-actions.pod:2295 ../fish/guestfish-actions.pod:1527
11184 msgid ""
11185 "This calls the external C<grep -i> program and returns the matching lines."
11186 msgstr ""
11187
11188 # type: =head2
11189 #. type: =head2
11190 #: ../src/guestfs-actions.pod:2307
11191 msgid "guestfs_grub_install"
11192 msgstr ""
11193
11194 # type: verbatim
11195 #. type: verbatim
11196 #: ../src/guestfs-actions.pod:2309
11197 #, no-wrap
11198 msgid ""
11199 " int\n"
11200 " guestfs_grub_install (guestfs_h *g,\n"
11201 "                       const char *root,\n"
11202 "                       const char *device);\n"
11203 "\n"
11204 msgstr ""
11205
11206 # type: textblock
11207 #. type: textblock
11208 #: ../src/guestfs-actions.pod:2314 ../fish/guestfish-actions.pod:1537
11209 msgid ""
11210 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
11211 "the root directory being C<root>."
11212 msgstr ""
11213
11214 # type: textblock
11215 #. type: textblock
11216 #: ../src/guestfs-actions.pod:2317 ../fish/guestfish-actions.pod:1540
11217 msgid ""
11218 "Note: If grub-install reports the error \"No suitable drive was found in the "
11219 "generated device map.\" it may be that you need to create a C</boot/grub/"
11220 "device.map> file first that contains the mapping between grub device names "
11221 "and Linux device names.  It is usually sufficient to create a file "
11222 "containing:"
11223 msgstr ""
11224
11225 # type: verbatim
11226 #. type: verbatim
11227 #: ../src/guestfs-actions.pod:2324 ../fish/guestfish-actions.pod:1547
11228 #, no-wrap
11229 msgid ""
11230 " (hd0) /dev/vda\n"
11231 "\n"
11232 msgstr ""
11233
11234 # type: textblock
11235 #. type: textblock
11236 #: ../src/guestfs-actions.pod:2326 ../fish/guestfish-actions.pod:1549
11237 msgid "replacing C</dev/vda> with the name of the installation device."
11238 msgstr ""
11239
11240 # type: textblock
11241 #. type: textblock
11242 #: ../src/guestfs-actions.pod:2330
11243 msgid "(Added in 1.0.17)"
11244 msgstr ""
11245
11246 # type: =head2
11247 #. type: =head2
11248 #: ../src/guestfs-actions.pod:2332
11249 msgid "guestfs_head"
11250 msgstr ""
11251
11252 # type: verbatim
11253 #. type: verbatim
11254 #: ../src/guestfs-actions.pod:2334
11255 #, no-wrap
11256 msgid ""
11257 " char **\n"
11258 " guestfs_head (guestfs_h *g,\n"
11259 "               const char *path);\n"
11260 "\n"
11261 msgstr ""
11262
11263 # type: textblock
11264 #. type: textblock
11265 #: ../src/guestfs-actions.pod:2338 ../fish/guestfish-actions.pod:1555
11266 msgid ""
11267 "This command returns up to the first 10 lines of a file as a list of strings."
11268 msgstr ""
11269
11270 # type: =head2
11271 #. type: =head2
11272 #: ../src/guestfs-actions.pod:2350
11273 msgid "guestfs_head_n"
11274 msgstr ""
11275
11276 # type: verbatim
11277 #. type: verbatim
11278 #: ../src/guestfs-actions.pod:2352
11279 #, no-wrap
11280 msgid ""
11281 " char **\n"
11282 " guestfs_head_n (guestfs_h *g,\n"
11283 "                 int nrlines,\n"
11284 "                 const char *path);\n"
11285 "\n"
11286 msgstr ""
11287
11288 # type: textblock
11289 #. type: textblock
11290 #: ../src/guestfs-actions.pod:2357 ../fish/guestfish-actions.pod:1565
11291 msgid ""
11292 "If the parameter C<nrlines> is a positive number, this returns the first "
11293 "C<nrlines> lines of the file C<path>."
11294 msgstr ""
11295
11296 # type: textblock
11297 #. type: textblock
11298 #: ../src/guestfs-actions.pod:2360 ../fish/guestfish-actions.pod:1568
11299 msgid ""
11300 "If the parameter C<nrlines> is a negative number, this returns lines from "
11301 "the file C<path>, excluding the last C<nrlines> lines."
11302 msgstr ""
11303
11304 # type: textblock
11305 #. type: textblock
11306 #: ../src/guestfs-actions.pod:2363 ../src/guestfs-actions.pod:6953
11307 #: ../fish/guestfish-actions.pod:1571 ../fish/guestfish-actions.pod:4616
11308 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
11309 msgstr ""
11310
11311 # type: =head2
11312 #. type: =head2
11313 #: ../src/guestfs-actions.pod:2374
11314 msgid "guestfs_hexdump"
11315 msgstr ""
11316
11317 # type: verbatim
11318 #. type: verbatim
11319 #: ../src/guestfs-actions.pod:2376
11320 #, no-wrap
11321 msgid ""
11322 " char *\n"
11323 " guestfs_hexdump (guestfs_h *g,\n"
11324 "                  const char *path);\n"
11325 "\n"
11326 msgstr ""
11327
11328 # type: textblock
11329 #. type: textblock
11330 #: ../src/guestfs-actions.pod:2380 ../fish/guestfish-actions.pod:1580
11331 msgid ""
11332 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
11333 "readable, canonical hex dump of the file."
11334 msgstr ""
11335
11336 # type: textblock
11337 #. type: textblock
11338 #: ../src/guestfs-actions.pod:2389 ../src/guestfs-actions.pod:6737
11339 #: ../src/guestfs-actions.pod:6792
11340 msgid "(Added in 1.0.22)"
11341 msgstr ""
11342
11343 # type: =head2
11344 #. type: =head2
11345 #: ../src/guestfs-actions.pod:2391
11346 msgid "guestfs_initrd_cat"
11347 msgstr ""
11348
11349 # type: verbatim
11350 #. type: verbatim
11351 #: ../src/guestfs-actions.pod:2393
11352 #, no-wrap
11353 msgid ""
11354 " char *\n"
11355 " guestfs_initrd_cat (guestfs_h *g,\n"
11356 "                     const char *initrdpath,\n"
11357 "                     const char *filename,\n"
11358 "                     size_t *size_r);\n"
11359 "\n"
11360 msgstr ""
11361
11362 # type: textblock
11363 #. type: textblock
11364 #: ../src/guestfs-actions.pod:2399 ../fish/guestfish-actions.pod:1590
11365 msgid ""
11366 "This command unpacks the file C<filename> from the initrd file called "
11367 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
11368 "character."
11369 msgstr ""
11370
11371 # type: textblock
11372 #. type: textblock
11373 #: ../src/guestfs-actions.pod:2403 ../fish/guestfish-actions.pod:1594
11374 msgid ""
11375 "For example, in guestfish you could use the following command to examine the "
11376 "boot script (usually called C</init>)  contained in a Linux initrd or "
11377 "initramfs image:"
11378 msgstr ""
11379
11380 # type: verbatim
11381 #. type: verbatim
11382 #: ../src/guestfs-actions.pod:2407 ../fish/guestfish-actions.pod:1598
11383 #, no-wrap
11384 msgid ""
11385 " initrd-cat /boot/initrd-<version>.img init\n"
11386 "\n"
11387 msgstr ""
11388
11389 # type: textblock
11390 #. type: textblock
11391 #: ../src/guestfs-actions.pod:2409
11392 msgid "See also C<guestfs_initrd_list>."
11393 msgstr ""
11394
11395 # type: =head2
11396 #. type: =head2
11397 #: ../src/guestfs-actions.pod:2420
11398 msgid "guestfs_initrd_list"
11399 msgstr ""
11400
11401 # type: verbatim
11402 #. type: verbatim
11403 #: ../src/guestfs-actions.pod:2422
11404 #, no-wrap
11405 msgid ""
11406 " char **\n"
11407 " guestfs_initrd_list (guestfs_h *g,\n"
11408 "                      const char *path);\n"
11409 "\n"
11410 msgstr ""
11411
11412 # type: textblock
11413 #. type: textblock
11414 #: ../src/guestfs-actions.pod:2426 ../fish/guestfish-actions.pod:1609
11415 msgid "This command lists out files contained in an initrd."
11416 msgstr ""
11417
11418 # type: textblock
11419 #. type: textblock
11420 #: ../src/guestfs-actions.pod:2428 ../fish/guestfish-actions.pod:1611
11421 msgid ""
11422 "The files are listed without any initial C</> character.  The files are "
11423 "listed in the order they appear (not necessarily alphabetical).  Directory "
11424 "names are listed as separate items."
11425 msgstr ""
11426
11427 # type: textblock
11428 #. type: textblock
11429 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1615
11430 msgid ""
11431 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
11432 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
11433 "files)."
11434 msgstr ""
11435
11436 # type: =head2
11437 #. type: =head2
11438 #: ../src/guestfs-actions.pod:2442
11439 msgid "guestfs_inotify_add_watch"
11440 msgstr ""
11441
11442 # type: verbatim
11443 #. type: verbatim
11444 #: ../src/guestfs-actions.pod:2444
11445 #, no-wrap
11446 msgid ""
11447 " int64_t\n"
11448 " guestfs_inotify_add_watch (guestfs_h *g,\n"
11449 "                            const char *path,\n"
11450 "                            int mask);\n"
11451 "\n"
11452 msgstr ""
11453
11454 # type: textblock
11455 #. type: textblock
11456 #: ../src/guestfs-actions.pod:2449 ../fish/guestfish-actions.pod:1623
11457 msgid "Watch C<path> for the events listed in C<mask>."
11458 msgstr ""
11459
11460 # type: textblock
11461 #. type: textblock
11462 #: ../src/guestfs-actions.pod:2451 ../fish/guestfish-actions.pod:1625
11463 msgid ""
11464 "Note that if C<path> is a directory then events within that directory are "
11465 "watched, but this does I<not> happen recursively (in subdirectories)."
11466 msgstr ""
11467
11468 # type: textblock
11469 #. type: textblock
11470 #: ../src/guestfs-actions.pod:2455 ../fish/guestfish-actions.pod:1629
11471 msgid ""
11472 "Note for non-C or non-Linux callers: the inotify events are defined by the "
11473 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
11474 msgstr ""
11475
11476 # type: =head2
11477 #. type: =head2
11478 #: ../src/guestfs-actions.pod:2463
11479 msgid "guestfs_inotify_close"
11480 msgstr ""
11481
11482 # type: verbatim
11483 #. type: verbatim
11484 #: ../src/guestfs-actions.pod:2465
11485 #, no-wrap
11486 msgid ""
11487 " int\n"
11488 " guestfs_inotify_close (guestfs_h *g);\n"
11489 "\n"
11490 msgstr ""
11491
11492 # type: textblock
11493 #. type: textblock
11494 #: ../src/guestfs-actions.pod:2468 ../fish/guestfish-actions.pod:1637
11495 msgid ""
11496 "This closes the inotify handle which was previously opened by inotify_init.  "
11497 "It removes all watches, throws away any pending events, and deallocates all "
11498 "resources."
11499 msgstr ""
11500
11501 # type: =head2
11502 #. type: =head2
11503 #: ../src/guestfs-actions.pod:2476
11504 msgid "guestfs_inotify_files"
11505 msgstr ""
11506
11507 # type: verbatim
11508 #. type: verbatim
11509 #: ../src/guestfs-actions.pod:2478
11510 #, no-wrap
11511 msgid ""
11512 " char **\n"
11513 " guestfs_inotify_files (guestfs_h *g);\n"
11514 "\n"
11515 msgstr ""
11516
11517 # type: textblock
11518 #. type: textblock
11519 #: ../src/guestfs-actions.pod:2481
11520 msgid ""
11521 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
11522 "returns a list of pathnames of objects that were touched.  The returned "
11523 "pathnames are sorted and deduplicated."
11524 msgstr ""
11525
11526 # type: =head2
11527 #. type: =head2
11528 #: ../src/guestfs-actions.pod:2491
11529 msgid "guestfs_inotify_init"
11530 msgstr ""
11531
11532 # type: verbatim
11533 #. type: verbatim
11534 #: ../src/guestfs-actions.pod:2493
11535 #, no-wrap
11536 msgid ""
11537 " int\n"
11538 " guestfs_inotify_init (guestfs_h *g,\n"
11539 "                       int maxevents);\n"
11540 "\n"
11541 msgstr ""
11542
11543 # type: textblock
11544 #. type: textblock
11545 #: ../src/guestfs-actions.pod:2497 ../fish/guestfish-actions.pod:1653
11546 msgid ""
11547 "This command creates a new inotify handle.  The inotify subsystem can be "
11548 "used to notify events which happen to objects in the guest filesystem."
11549 msgstr ""
11550
11551 # type: textblock
11552 #. type: textblock
11553 #: ../src/guestfs-actions.pod:2501
11554 msgid ""
11555 "C<maxevents> is the maximum number of events which will be queued up between "
11556 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
11557 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
11558 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
11559 "throws away events, but records the fact that it threw them away by setting "
11560 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
11561 "C<guestfs_inotify_read>)."
11562 msgstr ""
11563
11564 # type: textblock
11565 #. type: textblock
11566 #: ../src/guestfs-actions.pod:2511
11567 msgid ""
11568 "Before any events are generated, you have to add some watches to the "
11569 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
11570 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
11571 msgstr ""
11572
11573 # type: textblock
11574 #. type: textblock
11575 #: ../src/guestfs-actions.pod:2517
11576 msgid ""
11577 "Queued up events should be read periodically by calling "
11578 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
11579 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
11580 "often enough then you risk the internal queue overflowing."
11581 msgstr ""
11582
11583 # type: textblock
11584 #. type: textblock
11585 #: ../src/guestfs-actions.pod:2524
11586 msgid ""
11587 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
11588 "This also removes any watches automatically."
11589 msgstr ""
11590
11591 # type: textblock
11592 #. type: textblock
11593 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1684
11594 msgid ""
11595 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
11596 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
11597 "that there is one global inotify handle per libguestfs instance."
11598 msgstr ""
11599
11600 # type: =head2
11601 #. type: =head2
11602 #: ../src/guestfs-actions.pod:2537
11603 msgid "guestfs_inotify_read"
11604 msgstr ""
11605
11606 # type: verbatim
11607 #. type: verbatim
11608 #: ../src/guestfs-actions.pod:2539
11609 #, no-wrap
11610 msgid ""
11611 " struct guestfs_inotify_event_list *\n"
11612 " guestfs_inotify_read (guestfs_h *g);\n"
11613 "\n"
11614 msgstr ""
11615
11616 # type: textblock
11617 #. type: textblock
11618 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1693
11619 msgid ""
11620 "Return the complete queue of events that have happened since the previous "
11621 "read call."
11622 msgstr ""
11623
11624 # type: textblock
11625 #. type: textblock
11626 #: ../src/guestfs-actions.pod:2545 ../fish/guestfish-actions.pod:1696
11627 msgid "If no events have happened, this returns an empty list."
11628 msgstr ""
11629
11630 # type: textblock
11631 #. type: textblock
11632 #: ../src/guestfs-actions.pod:2547 ../fish/guestfish-actions.pod:1698
11633 msgid ""
11634 "I<Note>: In order to make sure that all events have been read, you must call "
11635 "this function repeatedly until it returns an empty list.  The reason is that "
11636 "the call will read events up to the maximum appliance-to-host message size "
11637 "and leave remaining events in the queue."
11638 msgstr ""
11639
11640 # type: textblock
11641 #. type: textblock
11642 #: ../src/guestfs-actions.pod:2553
11643 msgid ""
11644 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
11645 "there was an error.  I<The caller must call "
11646 "C<guestfs_free_inotify_event_list> after use>."
11647 msgstr ""
11648
11649 # type: =head2
11650 #. type: =head2
11651 #: ../src/guestfs-actions.pod:2559
11652 msgid "guestfs_inotify_rm_watch"
11653 msgstr ""
11654
11655 # type: verbatim
11656 #. type: verbatim
11657 #: ../src/guestfs-actions.pod:2561
11658 #, no-wrap
11659 msgid ""
11660 " int\n"
11661 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
11662 "                           int wd);\n"
11663 "\n"
11664 msgstr ""
11665
11666 # type: textblock
11667 #. type: textblock
11668 #: ../src/guestfs-actions.pod:2565
11669 msgid ""
11670 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
11671 msgstr ""
11672
11673 # type: =head2
11674 #. type: =head2
11675 #: ../src/guestfs-actions.pod:2572
11676 msgid "guestfs_inspect_get_arch"
11677 msgstr ""
11678
11679 # type: verbatim
11680 #. type: verbatim
11681 #: ../src/guestfs-actions.pod:2574
11682 #, no-wrap
11683 msgid ""
11684 " char *\n"
11685 " guestfs_inspect_get_arch (guestfs_h *g,\n"
11686 "                           const char *root);\n"
11687 "\n"
11688 msgstr ""
11689
11690 # type: textblock
11691 #. type: textblock
11692 #: ../src/guestfs-actions.pod:2578
11693 msgid ""
11694 "This returns the architecture of the inspected operating system.  The "
11695 "possible return values are listed under C<guestfs_file_architecture>."
11696 msgstr ""
11697
11698 # type: textblock
11699 #. type: textblock
11700 #: ../src/guestfs-actions.pod:2582 ../fish/guestfish-actions.pod:1719
11701 msgid ""
11702 "If the architecture could not be determined, then the string C<unknown> is "
11703 "returned."
11704 msgstr ""
11705
11706 # type: textblock
11707 #. type: textblock
11708 #: ../src/guestfs-actions.pod:2585 ../src/guestfs-actions.pod:2675
11709 #: ../src/guestfs-actions.pod:2779 ../src/guestfs-actions.pod:2798
11710 #: ../src/guestfs-actions.pod:2929 ../src/guestfs-actions.pod:3012
11711 #: ../src/guestfs-actions.pod:3040 ../src/guestfs-actions.pod:3061
11712 #: ../src/guestfs-actions.pod:3114 ../src/guestfs-actions.pod:3154
11713 #: ../src/guestfs-actions.pod:3174 ../src/guestfs-actions.pod:3194
11714 #: ../src/guestfs-actions.pod:3211 ../src/guestfs-actions.pod:3227
11715 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3347
11716 #: ../src/guestfs-actions.pod:3388 ../fish/guestfish-actions.pod:1722
11717 #: ../fish/guestfish-actions.pod:1805 ../fish/guestfish-actions.pod:1884
11718 #: ../fish/guestfish-actions.pod:1896 ../fish/guestfish-actions.pod:1980
11719 #: ../fish/guestfish-actions.pod:2041 ../fish/guestfish-actions.pod:2062
11720 #: ../fish/guestfish-actions.pod:2076 ../fish/guestfish-actions.pod:2116
11721 #: ../fish/guestfish-actions.pod:2148 ../fish/guestfish-actions.pod:2161
11722 #: ../fish/guestfish-actions.pod:2174 ../fish/guestfish-actions.pod:2184
11723 #: ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2206
11724 #: ../fish/guestfish-actions.pod:2302 ../fish/guestfish-actions.pod:2336
11725 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
11726 msgstr ""
11727
11728 # type: =head2
11729 #. type: =head2
11730 #: ../src/guestfs-actions.pod:2592
11731 msgid "guestfs_inspect_get_distro"
11732 msgstr ""
11733
11734 # type: verbatim
11735 #. type: verbatim
11736 #: ../src/guestfs-actions.pod:2594
11737 #, no-wrap
11738 msgid ""
11739 " char *\n"
11740 " guestfs_inspect_get_distro (guestfs_h *g,\n"
11741 "                             const char *root);\n"
11742 "\n"
11743 msgstr ""
11744
11745 # type: textblock
11746 #. type: textblock
11747 #: ../src/guestfs-actions.pod:2598 ../fish/guestfish-actions.pod:1728
11748 msgid ""
11749 "This returns the distro (distribution) of the inspected operating system."
11750 msgstr ""
11751
11752 # type: textblock
11753 #. type: textblock
11754 #: ../src/guestfs-actions.pod:2601 ../fish/guestfish-actions.pod:1731
11755 msgid "Currently defined distros are:"
11756 msgstr ""
11757
11758 # type: =item
11759 #. type: =item
11760 #: ../src/guestfs-actions.pod:2605 ../fish/guestfish-actions.pod:1735
11761 msgid "\"archlinux\""
11762 msgstr ""
11763
11764 # type: textblock
11765 #. type: textblock
11766 #: ../src/guestfs-actions.pod:2607 ../fish/guestfish-actions.pod:1737
11767 msgid "Arch Linux."
11768 msgstr ""
11769
11770 #. type: =item
11771 #: ../src/guestfs-actions.pod:2609 ../fish/guestfish-actions.pod:1739
11772 msgid "\"centos\""
11773 msgstr ""
11774
11775 #. type: textblock
11776 #: ../src/guestfs-actions.pod:2611 ../fish/guestfish-actions.pod:1741
11777 msgid "CentOS."
11778 msgstr ""
11779
11780 # type: =item
11781 #. type: =item
11782 #: ../src/guestfs-actions.pod:2613 ../fish/guestfish-actions.pod:1743
11783 msgid "\"debian\""
11784 msgstr ""
11785
11786 # type: textblock
11787 #. type: textblock
11788 #: ../src/guestfs-actions.pod:2615 ../fish/guestfish-actions.pod:1745
11789 msgid "Debian."
11790 msgstr ""
11791
11792 # type: =item
11793 #. type: =item
11794 #: ../src/guestfs-actions.pod:2617 ../fish/guestfish-actions.pod:1747
11795 msgid "\"fedora\""
11796 msgstr ""
11797
11798 # type: textblock
11799 #. type: textblock
11800 #: ../src/guestfs-actions.pod:2619 ../fish/guestfish-actions.pod:1749
11801 msgid "Fedora."
11802 msgstr ""
11803
11804 # type: =item
11805 #. type: =item
11806 #: ../src/guestfs-actions.pod:2621 ../fish/guestfish-actions.pod:1751
11807 msgid "\"gentoo\""
11808 msgstr ""
11809
11810 # type: textblock
11811 #. type: textblock
11812 #: ../src/guestfs-actions.pod:2623 ../fish/guestfish-actions.pod:1753
11813 msgid "Gentoo."
11814 msgstr ""
11815
11816 # type: =item
11817 #. type: =item
11818 #: ../src/guestfs-actions.pod:2625 ../fish/guestfish-actions.pod:1755
11819 msgid "\"linuxmint\""
11820 msgstr ""
11821
11822 # type: textblock
11823 #. type: textblock
11824 #: ../src/guestfs-actions.pod:2627 ../fish/guestfish-actions.pod:1757
11825 msgid "Linux Mint."
11826 msgstr ""
11827
11828 # type: =item
11829 #. type: =item
11830 #: ../src/guestfs-actions.pod:2629 ../fish/guestfish-actions.pod:1759
11831 msgid "\"mandriva\""
11832 msgstr ""
11833
11834 # type: textblock
11835 #. type: textblock
11836 #: ../src/guestfs-actions.pod:2631 ../fish/guestfish-actions.pod:1761
11837 msgid "Mandriva."
11838 msgstr ""
11839
11840 # type: =item
11841 #. type: =item
11842 #: ../src/guestfs-actions.pod:2633 ../fish/guestfish-actions.pod:1763
11843 msgid "\"meego\""
11844 msgstr ""
11845
11846 # type: textblock
11847 #. type: textblock
11848 #: ../src/guestfs-actions.pod:2635 ../fish/guestfish-actions.pod:1765
11849 msgid "MeeGo."
11850 msgstr ""
11851
11852 # type: =item
11853 #. type: =item
11854 #: ../src/guestfs-actions.pod:2637 ../fish/guestfish-actions.pod:1767
11855 msgid "\"pardus\""
11856 msgstr ""
11857
11858 # type: textblock
11859 #. type: textblock
11860 #: ../src/guestfs-actions.pod:2639 ../fish/guestfish-actions.pod:1769
11861 msgid "Pardus."
11862 msgstr ""
11863
11864 # type: =item
11865 #. type: =item
11866 #: ../src/guestfs-actions.pod:2641 ../fish/guestfish-actions.pod:1771
11867 msgid "\"redhat-based\""
11868 msgstr ""
11869
11870 # type: textblock
11871 #. type: textblock
11872 #: ../src/guestfs-actions.pod:2643 ../fish/guestfish-actions.pod:1773
11873 msgid "Some Red Hat-derived distro."
11874 msgstr ""
11875
11876 # type: =item
11877 #. type: =item
11878 #: ../src/guestfs-actions.pod:2645 ../fish/guestfish-actions.pod:1775
11879 msgid "\"rhel\""
11880 msgstr ""
11881
11882 #. type: textblock
11883 #: ../src/guestfs-actions.pod:2647 ../fish/guestfish-actions.pod:1777
11884 msgid "Red Hat Enterprise Linux."
11885 msgstr ""
11886
11887 #. type: =item
11888 #: ../src/guestfs-actions.pod:2649 ../fish/guestfish-actions.pod:1779
11889 msgid "\"scientificlinux\""
11890 msgstr ""
11891
11892 #. type: textblock
11893 #: ../src/guestfs-actions.pod:2651 ../fish/guestfish-actions.pod:1781
11894 msgid "Scientific Linux."
11895 msgstr ""
11896
11897 #. type: =item
11898 #: ../src/guestfs-actions.pod:2653 ../fish/guestfish-actions.pod:1783
11899 msgid "\"slackware\""
11900 msgstr ""
11901
11902 #. type: textblock
11903 #: ../src/guestfs-actions.pod:2655 ../fish/guestfish-actions.pod:1785
11904 msgid "Slackware."
11905 msgstr ""
11906
11907 # type: =item
11908 #. type: =item
11909 #: ../src/guestfs-actions.pod:2657 ../fish/guestfish-actions.pod:1787
11910 msgid "\"ubuntu\""
11911 msgstr ""
11912
11913 # type: textblock
11914 #. type: textblock
11915 #: ../src/guestfs-actions.pod:2659 ../fish/guestfish-actions.pod:1789
11916 msgid "Ubuntu."
11917 msgstr ""
11918
11919 # type: =item
11920 #. type: =item
11921 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2770
11922 #: ../src/guestfs-actions.pod:3145 ../fish/guestfish-actions.pod:1791
11923 #: ../fish/guestfish-actions.pod:1875 ../fish/guestfish-actions.pod:2139
11924 msgid "\"unknown\""
11925 msgstr ""
11926
11927 # type: textblock
11928 #. type: textblock
11929 #: ../src/guestfs-actions.pod:2663 ../fish/guestfish-actions.pod:1793
11930 msgid "The distro could not be determined."
11931 msgstr ""
11932
11933 # type: =item
11934 #. type: =item
11935 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:3137
11936 #: ../fish/guestfish-actions.pod:1795 ../fish/guestfish-actions.pod:2131
11937 msgid "\"windows\""
11938 msgstr ""
11939
11940 # type: textblock
11941 #. type: textblock
11942 #: ../src/guestfs-actions.pod:2667 ../fish/guestfish-actions.pod:1797
11943 msgid ""
11944 "Windows does not have distributions.  This string is returned if the OS type "
11945 "is Windows."
11946 msgstr ""
11947
11948 # type: textblock
11949 #. type: textblock
11950 #: ../src/guestfs-actions.pod:2672 ../src/guestfs-actions.pod:2776
11951 #: ../src/guestfs-actions.pod:3151 ../fish/guestfish-actions.pod:1802
11952 #: ../fish/guestfish-actions.pod:1881 ../fish/guestfish-actions.pod:2145
11953 msgid ""
11954 "Future versions of libguestfs may return other strings here.  The caller "
11955 "should be prepared to handle any string."
11956 msgstr ""
11957
11958 #. type: =head2
11959 #: ../src/guestfs-actions.pod:2682
11960 msgid "guestfs_inspect_get_drive_mappings"
11961 msgstr ""
11962
11963 #. type: verbatim
11964 #: ../src/guestfs-actions.pod:2684
11965 #, no-wrap
11966 msgid ""
11967 " char **\n"
11968 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
11969 "                                     const char *root);\n"
11970 "\n"
11971 msgstr ""
11972
11973 #. type: textblock
11974 #: ../src/guestfs-actions.pod:2688 ../fish/guestfish-actions.pod:1811
11975 msgid ""
11976 "This call is useful for Windows which uses a primitive system of assigning "
11977 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
11978 "Windows Registry to find out how disks/partitions are mapped to drive "
11979 "letters, and returns a hash table as in the example below:"
11980 msgstr ""
11981
11982 #. type: verbatim
11983 #: ../src/guestfs-actions.pod:2694 ../fish/guestfish-actions.pod:1817
11984 #, no-wrap
11985 msgid ""
11986 " C      =>     /dev/vda2\n"
11987 " E      =>     /dev/vdb1\n"
11988 " F      =>     /dev/vdc1\n"
11989 "\n"
11990 msgstr ""
11991
11992 #. type: textblock
11993 #: ../src/guestfs-actions.pod:2698 ../fish/guestfish-actions.pod:1821
11994 msgid ""
11995 "Note that keys are drive letters.  For Windows, the key is case insensitive "
11996 "and just contains the drive letter, without the customary colon separator "
11997 "character."
11998 msgstr ""
11999
12000 #. type: textblock
12001 #: ../src/guestfs-actions.pod:2702 ../fish/guestfish-actions.pod:1825
12002 msgid ""
12003 "In future we may support other operating systems that also used drive "
12004 "letters, but the keys for those might not be case insensitive and might be "
12005 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
12006 "C<h1> etc."
12007 msgstr ""
12008
12009 #. type: textblock
12010 #: ../src/guestfs-actions.pod:2707 ../fish/guestfish-actions.pod:1830
12011 msgid ""
12012 "For Windows guests, currently only hard drive mappings are returned.  "
12013 "Removable disks (eg. DVD-ROMs) are ignored."
12014 msgstr ""
12015
12016 #. type: textblock
12017 #: ../src/guestfs-actions.pod:2710 ../fish/guestfish-actions.pod:1833
12018 msgid ""
12019 "For guests that do not use drive mappings, or if the drive mappings could "
12020 "not be determined, this returns an empty hash table."
12021 msgstr ""
12022
12023 #. type: textblock
12024 #: ../src/guestfs-actions.pod:2713
12025 msgid ""
12026 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
12027 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
12028 msgstr ""
12029
12030 # type: textblock
12031 #. type: textblock
12032 #: ../src/guestfs-actions.pod:2717 ../src/guestfs-actions.pod:2985
12033 #: ../src/guestfs-actions.pod:3783 ../src/guestfs-actions.pod:5065
12034 #: ../src/guestfs-actions.pod:7094
12035 msgid ""
12036 "This function returns a NULL-terminated array of strings, or NULL if there "
12037 "was an error.  The array of strings will always have length C<2n+1>, where "
12038 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
12039 "caller must free the strings and the array after use>."
12040 msgstr ""
12041
12042 #. type: textblock
12043 #: ../src/guestfs-actions.pod:2723 ../src/guestfs-actions.pod:3179
12044 msgid "(Added in 1.9.17)"
12045 msgstr ""
12046
12047 # type: =head2
12048 #. type: =head2
12049 #: ../src/guestfs-actions.pod:2725
12050 msgid "guestfs_inspect_get_filesystems"
12051 msgstr ""
12052
12053 # type: verbatim
12054 #. type: verbatim
12055 #: ../src/guestfs-actions.pod:2727
12056 #, no-wrap
12057 msgid ""
12058 " char **\n"
12059 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
12060 "                                  const char *root);\n"
12061 "\n"
12062 msgstr ""
12063
12064 # type: textblock
12065 #. type: textblock
12066 #: ../src/guestfs-actions.pod:2731 ../fish/guestfish-actions.pod:1844
12067 msgid ""
12068 "This returns a list of all the filesystems that we think are associated with "
12069 "this operating system.  This includes the root filesystem, other ordinary "
12070 "filesystems, and non-mounted devices like swap partitions."
12071 msgstr ""
12072
12073 # type: textblock
12074 #. type: textblock
12075 #: ../src/guestfs-actions.pod:2736 ../fish/guestfish-actions.pod:1849
12076 msgid ""
12077 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
12078 "to be shared between operating systems."
12079 msgstr ""
12080
12081 # type: textblock
12082 #. type: textblock
12083 #: ../src/guestfs-actions.pod:2739
12084 msgid ""
12085 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
12086 "C<guestfs_inspect_get_mountpoints>."
12087 msgstr ""
12088
12089 #. type: =head2
12090 #: ../src/guestfs-actions.pod:2748
12091 msgid "guestfs_inspect_get_format"
12092 msgstr ""
12093
12094 #. type: verbatim
12095 #: ../src/guestfs-actions.pod:2750
12096 #, no-wrap
12097 msgid ""
12098 " char *\n"
12099 " guestfs_inspect_get_format (guestfs_h *g,\n"
12100 "                             const char *root);\n"
12101 "\n"
12102 msgstr ""
12103
12104 #. type: textblock
12105 #: ../src/guestfs-actions.pod:2754 ../fish/guestfish-actions.pod:1859
12106 msgid ""
12107 "This returns the format of the inspected operating system.  You can use it "
12108 "to detect install images, live CDs and similar."
12109 msgstr ""
12110
12111 #. type: textblock
12112 #: ../src/guestfs-actions.pod:2757 ../fish/guestfish-actions.pod:1862
12113 msgid "Currently defined formats are:"
12114 msgstr ""
12115
12116 #. type: =item
12117 #: ../src/guestfs-actions.pod:2761 ../fish/guestfish-actions.pod:1866
12118 msgid "\"installed\""
12119 msgstr ""
12120
12121 #. type: textblock
12122 #: ../src/guestfs-actions.pod:2763 ../fish/guestfish-actions.pod:1868
12123 msgid "This is an installed operating system."
12124 msgstr ""
12125
12126 #. type: =item
12127 #: ../src/guestfs-actions.pod:2765 ../fish/guestfish-actions.pod:1870
12128 msgid "\"installer\""
12129 msgstr ""
12130
12131 #. type: textblock
12132 #: ../src/guestfs-actions.pod:2767 ../fish/guestfish-actions.pod:1872
12133 msgid ""
12134 "The disk image being inspected is not an installed operating system, but a "
12135 "I<bootable> install disk, live CD, or similar."
12136 msgstr ""
12137
12138 #. type: textblock
12139 #: ../src/guestfs-actions.pod:2772 ../fish/guestfish-actions.pod:1877
12140 msgid "The format of this disk image is not known."
12141 msgstr ""
12142
12143 #. type: textblock
12144 #: ../src/guestfs-actions.pod:2784 ../src/guestfs-actions.pod:3215
12145 #: ../src/guestfs-actions.pod:3231 ../src/guestfs-actions.pod:3249
12146 #: ../src/guestfs-actions.pod:6009
12147 msgid "(Added in 1.9.4)"
12148 msgstr ""
12149
12150 # type: =head2
12151 #. type: =head2
12152 #: ../src/guestfs-actions.pod:2786
12153 msgid "guestfs_inspect_get_hostname"
12154 msgstr ""
12155
12156 # type: verbatim
12157 #. type: verbatim
12158 #: ../src/guestfs-actions.pod:2788
12159 #, no-wrap
12160 msgid ""
12161 " char *\n"
12162 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
12163 "                               const char *root);\n"
12164 "\n"
12165 msgstr ""
12166
12167 # type: textblock
12168 #. type: textblock
12169 #: ../src/guestfs-actions.pod:2792 ../fish/guestfish-actions.pod:1890
12170 msgid ""
12171 "This function returns the hostname of the operating system as found by "
12172 "inspection of the guest's configuration files."
12173 msgstr ""
12174
12175 # type: textblock
12176 #. type: textblock
12177 #: ../src/guestfs-actions.pod:2795 ../fish/guestfish-actions.pod:1893
12178 msgid ""
12179 "If the hostname could not be determined, then the string C<unknown> is "
12180 "returned."
12181 msgstr ""
12182
12183 # type: textblock
12184 #. type: textblock
12185 #: ../src/guestfs-actions.pod:2803
12186 msgid "(Added in 1.7.9)"
12187 msgstr ""
12188
12189 #. type: =head2
12190 #: ../src/guestfs-actions.pod:2805
12191 msgid "guestfs_inspect_get_icon"
12192 msgstr ""
12193
12194 #. type: verbatim
12195 #: ../src/guestfs-actions.pod:2807
12196 #, no-wrap
12197 msgid ""
12198 " char *\n"
12199 " guestfs_inspect_get_icon (guestfs_h *g,\n"
12200 "                           const char *root,\n"
12201 "                           size_t *size_r,\n"
12202 "                           ...);\n"
12203 "\n"
12204 msgstr ""
12205
12206 #. type: verbatim
12207 #: ../src/guestfs-actions.pod:2818
12208 #, no-wrap
12209 msgid ""
12210 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
12211 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
12212 "\n"
12213 msgstr ""
12214
12215 #. type: textblock
12216 #: ../src/guestfs-actions.pod:2821 ../fish/guestfish-actions.pod:1902
12217 msgid ""
12218 "This function returns an icon corresponding to the inspected operating "
12219 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
12220 "to PNG if necessary)."
12221 msgstr ""
12222
12223 #. type: textblock
12224 #: ../src/guestfs-actions.pod:2825 ../fish/guestfish-actions.pod:1906
12225 msgid ""
12226 "If it was not possible to get an icon this function returns a zero-length "
12227 "(non-NULL) buffer.  I<Callers must check for this case>."
12228 msgstr ""
12229
12230 #. type: textblock
12231 #: ../src/guestfs-actions.pod:2828 ../fish/guestfish-actions.pod:1909
12232 msgid ""
12233 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
12234 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
12235 "this file will be returned.  You can disable favicons by passing the "
12236 "optional C<favicon> boolean as false (default is true)."
12237 msgstr ""
12238
12239 #. type: textblock
12240 #: ../src/guestfs-actions.pod:2834 ../fish/guestfish-actions.pod:1915
12241 msgid ""
12242 "If finding the favicon fails, then we look in other places in the guest for "
12243 "a suitable icon."
12244 msgstr ""
12245
12246 #. type: textblock
12247 #: ../src/guestfs-actions.pod:2837 ../fish/guestfish-actions.pod:1918
12248 msgid ""
12249 "If the optional C<highquality> boolean is true then only high quality icons "
12250 "are returned, which means only icons of high resolution with an alpha "
12251 "channel.  The default (false) is to return any icon we can, even if it is of "
12252 "substandard quality."
12253 msgstr ""
12254
12255 #. type: textblock
12256 #: ../src/guestfs-actions.pod:2848 ../fish/guestfish-actions.pod:1929
12257 msgid ""
12258 "Unlike most other inspection API calls, the guest's disks must be mounted up "
12259 "before you call this, since it needs to read information from the guest "
12260 "filesystem during the call."
12261 msgstr ""
12262
12263 #. type: textblock
12264 #: ../src/guestfs-actions.pod:2854 ../fish/guestfish-actions.pod:1935
12265 msgid ""
12266 "B<Security:> The icon data comes from the untrusted guest, and should be "
12267 "treated with caution.  PNG files have been known to contain exploits.  "
12268 "Ensure that libpng (or other relevant libraries) are fully up to date before "
12269 "trying to process or display the icon."
12270 msgstr ""
12271
12272 #. type: textblock
12273 #: ../src/guestfs-actions.pod:2862 ../fish/guestfish-actions.pod:1943
12274 msgid ""
12275 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
12276 "tries to return the largest, highest quality icon available.  The "
12277 "application must scale the icon to the required size."
12278 msgstr ""
12279
12280 #. type: textblock
12281 #: ../src/guestfs-actions.pod:2869 ../fish/guestfish-actions.pod:1950
12282 msgid ""
12283 "Extracting icons from Windows guests requires the external C<wrestool> "
12284 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
12285 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
12286 "installed separately."
12287 msgstr ""
12288
12289 #. type: textblock
12290 #: ../src/guestfs-actions.pod:2876 ../fish/guestfish-actions.pod:1957
12291 msgid ""
12292 "Operating system icons are usually trademarks.  Seek legal advice before "
12293 "using trademarks in applications."
12294 msgstr ""
12295
12296 #. type: textblock
12297 #: ../src/guestfs-actions.pod:2885 ../src/guestfs-actions.pod:3710
12298 #: ../src/guestfs-actions.pod:4964
12299 msgid "(Added in 1.11.12)"
12300 msgstr ""
12301
12302 #. type: =head2
12303 #: ../src/guestfs-actions.pod:2887
12304 msgid "guestfs_inspect_get_icon_va"
12305 msgstr ""
12306
12307 #. type: verbatim
12308 #: ../src/guestfs-actions.pod:2889
12309 #, no-wrap
12310 msgid ""
12311 " char *\n"
12312 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
12313 "                              const char *root,\n"
12314 "                              size_t *size_r,\n"
12315 "                              va_list args);\n"
12316 "\n"
12317 msgstr ""
12318
12319 #. type: textblock
12320 #: ../src/guestfs-actions.pod:2895
12321 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
12322 msgstr ""
12323
12324 #. type: =head2
12325 #: ../src/guestfs-actions.pod:2899
12326 msgid "guestfs_inspect_get_icon_argv"
12327 msgstr ""
12328
12329 #. type: verbatim
12330 #: ../src/guestfs-actions.pod:2901
12331 #, no-wrap
12332 msgid ""
12333 " char *\n"
12334 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
12335 "                                const char *root,\n"
12336 "                                size_t *size_r,\n"
12337 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
12338 "\n"
12339 msgstr ""
12340
12341 #. type: textblock
12342 #: ../src/guestfs-actions.pod:2907
12343 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
12344 msgstr ""
12345
12346 # type: =head2
12347 #. type: =head2
12348 #: ../src/guestfs-actions.pod:2911
12349 msgid "guestfs_inspect_get_major_version"
12350 msgstr ""
12351
12352 # type: verbatim
12353 #. type: verbatim
12354 #: ../src/guestfs-actions.pod:2913
12355 #, no-wrap
12356 msgid ""
12357 " int\n"
12358 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
12359 "                                    const char *root);\n"
12360 "\n"
12361 msgstr ""
12362
12363 # type: textblock
12364 #. type: textblock
12365 #: ../src/guestfs-actions.pod:2917 ../fish/guestfish-actions.pod:1968
12366 msgid ""
12367 "This returns the major version number of the inspected operating system."
12368 msgstr ""
12369
12370 # type: textblock
12371 #. type: textblock
12372 #: ../src/guestfs-actions.pod:2920 ../fish/guestfish-actions.pod:1971
12373 msgid ""
12374 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
12375 "popular public names used by the operating system.  Notably the operating "
12376 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
12377 "1).  You can find out the real versions corresponding to releases of Windows "
12378 "by consulting Wikipedia or MSDN."
12379 msgstr ""
12380
12381 # type: textblock
12382 #. type: textblock
12383 #: ../src/guestfs-actions.pod:2927 ../src/guestfs-actions.pod:2944
12384 #: ../fish/guestfish-actions.pod:1978 ../fish/guestfish-actions.pod:1989
12385 msgid "If the version could not be determined, then C<0> is returned."
12386 msgstr ""
12387
12388 # type: =head2
12389 #. type: =head2
12390 #: ../src/guestfs-actions.pod:2935
12391 msgid "guestfs_inspect_get_minor_version"
12392 msgstr ""
12393
12394 # type: verbatim
12395 #. type: verbatim
12396 #: ../src/guestfs-actions.pod:2937
12397 #, no-wrap
12398 msgid ""
12399 " int\n"
12400 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
12401 "                                    const char *root);\n"
12402 "\n"
12403 msgstr ""
12404
12405 # type: textblock
12406 #. type: textblock
12407 #: ../src/guestfs-actions.pod:2941 ../fish/guestfish-actions.pod:1986
12408 msgid ""
12409 "This returns the minor version number of the inspected operating system."
12410 msgstr ""
12411
12412 # type: textblock
12413 #. type: textblock
12414 #: ../src/guestfs-actions.pod:2946
12415 msgid ""
12416 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
12417 "C<guestfs_inspect_get_major_version>."
12418 msgstr ""
12419
12420 # type: =head2
12421 #. type: =head2
12422 #: ../src/guestfs-actions.pod:2953
12423 msgid "guestfs_inspect_get_mountpoints"
12424 msgstr ""
12425
12426 # type: verbatim
12427 #. type: verbatim
12428 #: ../src/guestfs-actions.pod:2955
12429 #, no-wrap
12430 msgid ""
12431 " char **\n"
12432 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
12433 "                                  const char *root);\n"
12434 "\n"
12435 msgstr ""
12436
12437 #. type: textblock
12438 #: ../src/guestfs-actions.pod:2959 ../fish/guestfish-actions.pod:1998
12439 msgid ""
12440 "This returns a hash of where we think the filesystems associated with this "
12441 "operating system should be mounted.  Callers should note that this is at "
12442 "best an educated guess made by reading configuration files such as C</etc/"
12443 "fstab>.  I<In particular note> that this may return filesystems which are "
12444 "non-existent or not mountable and callers should be prepared to handle or "
12445 "ignore failures if they try to mount them."
12446 msgstr ""
12447
12448 # type: textblock
12449 #. type: textblock
12450 #: ../src/guestfs-actions.pod:2968 ../fish/guestfish-actions.pod:2007
12451 msgid ""
12452 "Each element in the returned hashtable has a key which is the path of the "
12453 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
12454 "mounted there (eg. C</dev/sda1>)."
12455 msgstr ""
12456
12457 # type: textblock
12458 #. type: textblock
12459 #: ../src/guestfs-actions.pod:2973 ../fish/guestfish-actions.pod:2012
12460 msgid ""
12461 "Non-mounted devices such as swap devices are I<not> returned in this list."
12462 msgstr ""
12463
12464 #. type: textblock
12465 #: ../src/guestfs-actions.pod:2976
12466 msgid ""
12467 "For operating systems like Windows which still use drive letters, this call "
12468 "will only return an entry for the first drive \"mounted on\" C</>.  For "
12469 "information about the mapping of drive letters to partitions, see "
12470 "C<guestfs_inspect_get_drive_mappings>."
12471 msgstr ""
12472
12473 # type: textblock
12474 #. type: textblock
12475 #: ../src/guestfs-actions.pod:2982
12476 msgid ""
12477 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
12478 "C<guestfs_inspect_get_filesystems>."
12479 msgstr ""
12480
12481 # type: =head2
12482 #. type: =head2
12483 #: ../src/guestfs-actions.pod:2993
12484 msgid "guestfs_inspect_get_package_format"
12485 msgstr ""
12486
12487 # type: verbatim
12488 #. type: verbatim
12489 #: ../src/guestfs-actions.pod:2995
12490 #, no-wrap
12491 msgid ""
12492 " char *\n"
12493 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
12494 "                                     const char *root);\n"
12495 "\n"
12496 msgstr ""
12497
12498 # type: textblock
12499 #. type: textblock
12500 #: ../src/guestfs-actions.pod:2999
12501 msgid ""
12502 "This function and C<guestfs_inspect_get_package_management> return the "
12503 "package format and package management tool used by the inspected operating "
12504 "system.  For example for Fedora these functions would return C<rpm> (package "
12505 "format) and C<yum> (package management)."
12506 msgstr ""
12507
12508 # type: textblock
12509 #. type: textblock
12510 #: ../src/guestfs-actions.pod:3005 ../fish/guestfish-actions.pod:2034
12511 msgid ""
12512 "This returns the string C<unknown> if we could not determine the package "
12513 "format I<or> if the operating system does not have a real packaging system "
12514 "(eg. Windows)."
12515 msgstr ""
12516
12517 # type: textblock
12518 #. type: textblock
12519 #: ../src/guestfs-actions.pod:3009 ../fish/guestfish-actions.pod:2038
12520 msgid ""
12521 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
12522 "Future versions of libguestfs may return other strings."
12523 msgstr ""
12524
12525 # type: textblock
12526 #. type: textblock
12527 #: ../src/guestfs-actions.pod:3017 ../src/guestfs-actions.pod:3045
12528 msgid "(Added in 1.7.5)"
12529 msgstr ""
12530
12531 # type: =head2
12532 #. type: =head2
12533 #: ../src/guestfs-actions.pod:3019
12534 msgid "guestfs_inspect_get_package_management"
12535 msgstr ""
12536
12537 # type: verbatim
12538 #. type: verbatim
12539 #: ../src/guestfs-actions.pod:3021
12540 #, no-wrap
12541 msgid ""
12542 " char *\n"
12543 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
12544 "                                         const char *root);\n"
12545 "\n"
12546 msgstr ""
12547
12548 # type: textblock
12549 #. type: textblock
12550 #: ../src/guestfs-actions.pod:3025
12551 msgid ""
12552 "C<guestfs_inspect_get_package_format> and this function return the package "
12553 "format and package management tool used by the inspected operating system.  "
12554 "For example for Fedora these functions would return C<rpm> (package format) "
12555 "and C<yum> (package management)."
12556 msgstr ""
12557
12558 # type: textblock
12559 #. type: textblock
12560 #: ../src/guestfs-actions.pod:3031 ../fish/guestfish-actions.pod:2053
12561 msgid ""
12562 "This returns the string C<unknown> if we could not determine the package "
12563 "management tool I<or> if the operating system does not have a real packaging "
12564 "system (eg. Windows)."
12565 msgstr ""
12566
12567 # type: textblock
12568 #. type: textblock
12569 #: ../src/guestfs-actions.pod:3035 ../fish/guestfish-actions.pod:2057
12570 msgid ""
12571 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
12572 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
12573 "libguestfs may return other strings."
12574 msgstr ""
12575
12576 # type: =head2
12577 #. type: =head2
12578 #: ../src/guestfs-actions.pod:3047
12579 msgid "guestfs_inspect_get_product_name"
12580 msgstr ""
12581
12582 # type: verbatim
12583 #. type: verbatim
12584 #: ../src/guestfs-actions.pod:3049
12585 #, no-wrap
12586 msgid ""
12587 " char *\n"
12588 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
12589 "                                   const char *root);\n"
12590 "\n"
12591 msgstr ""
12592
12593 # type: textblock
12594 #. type: textblock
12595 #: ../src/guestfs-actions.pod:3053 ../fish/guestfish-actions.pod:2068
12596 msgid ""
12597 "This returns the product name of the inspected operating system.  The "
12598 "product name is generally some freeform string which can be displayed to the "
12599 "user, but should not be parsed by programs."
12600 msgstr ""
12601
12602 # type: textblock
12603 #. type: textblock
12604 #: ../src/guestfs-actions.pod:3058 ../fish/guestfish-actions.pod:2073
12605 msgid ""
12606 "If the product name could not be determined, then the string C<unknown> is "
12607 "returned."
12608 msgstr ""
12609
12610 #. type: =head2
12611 #: ../src/guestfs-actions.pod:3068
12612 msgid "guestfs_inspect_get_product_variant"
12613 msgstr ""
12614
12615 #. type: verbatim
12616 #: ../src/guestfs-actions.pod:3070
12617 #, no-wrap
12618 msgid ""
12619 " char *\n"
12620 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
12621 "                                      const char *root);\n"
12622 "\n"
12623 msgstr ""
12624
12625 #. type: textblock
12626 #: ../src/guestfs-actions.pod:3074 ../fish/guestfish-actions.pod:2082
12627 msgid "This returns the product variant of the inspected operating system."
12628 msgstr ""
12629
12630 #. type: textblock
12631 #: ../src/guestfs-actions.pod:3077 ../fish/guestfish-actions.pod:2085
12632 msgid ""
12633 "For Windows guests, this returns the contents of the Registry key C<HKLM"
12634 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
12635 "is usually a string such as C<Client> or C<Server> (other values are "
12636 "possible).  This can be used to distinguish consumer and enterprise versions "
12637 "of Windows that have the same version number (for example, Windows 7 and "
12638 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
12639 "the latter is C<Server>)."
12640 msgstr ""
12641
12642 #. type: textblock
12643 #: ../src/guestfs-actions.pod:3086 ../fish/guestfish-actions.pod:2094
12644 msgid ""
12645 "For enterprise Linux guests, in future we intend this to return the product "
12646 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
12647 "implemented at present."
12648 msgstr ""
12649
12650 #. type: textblock
12651 #: ../src/guestfs-actions.pod:3090 ../fish/guestfish-actions.pod:2098
12652 msgid ""
12653 "If the product variant could not be determined, then the string C<unknown> "
12654 "is returned."
12655 msgstr ""
12656
12657 #. type: textblock
12658 #: ../src/guestfs-actions.pod:3093
12659 msgid ""
12660 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
12661 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
12662 msgstr ""
12663
12664 #. type: textblock
12665 #: ../src/guestfs-actions.pod:3100
12666 msgid "(Added in 1.9.13)"
12667 msgstr ""
12668
12669 # type: =head2
12670 #. type: =head2
12671 #: ../src/guestfs-actions.pod:3102
12672 msgid "guestfs_inspect_get_roots"
12673 msgstr ""
12674
12675 # type: verbatim
12676 #. type: verbatim
12677 #: ../src/guestfs-actions.pod:3104
12678 #, no-wrap
12679 msgid ""
12680 " char **\n"
12681 " guestfs_inspect_get_roots (guestfs_h *g);\n"
12682 "\n"
12683 msgstr ""
12684
12685 # type: textblock
12686 #. type: textblock
12687 #: ../src/guestfs-actions.pod:3107
12688 msgid ""
12689 "This function is a convenient way to get the list of root devices, as "
12690 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
12691 "the whole inspection process."
12692 msgstr ""
12693
12694 # type: textblock
12695 #. type: textblock
12696 #: ../src/guestfs-actions.pod:3111
12697 msgid ""
12698 "This returns an empty list if either no root devices were found or the "
12699 "caller has not called C<guestfs_inspect_os>."
12700 msgstr ""
12701
12702 # type: textblock
12703 #. type: textblock
12704 #: ../src/guestfs-actions.pod:3120
12705 msgid "(Added in 1.7.3)"
12706 msgstr ""
12707
12708 # type: =head2
12709 #. type: =head2
12710 #: ../src/guestfs-actions.pod:3122
12711 msgid "guestfs_inspect_get_type"
12712 msgstr ""
12713
12714 # type: verbatim
12715 #. type: verbatim
12716 #: ../src/guestfs-actions.pod:3124
12717 #, no-wrap
12718 msgid ""
12719 " char *\n"
12720 " guestfs_inspect_get_type (guestfs_h *g,\n"
12721 "                           const char *root);\n"
12722 "\n"
12723 msgstr ""
12724
12725 # type: textblock
12726 #. type: textblock
12727 #: ../src/guestfs-actions.pod:3128 ../fish/guestfish-actions.pod:2122
12728 msgid ""
12729 "This returns the type of the inspected operating system.  Currently defined "
12730 "types are:"
12731 msgstr ""
12732
12733 # type: =item
12734 #. type: =item
12735 #: ../src/guestfs-actions.pod:3133 ../fish/guestfish-actions.pod:2127
12736 msgid "\"linux\""
12737 msgstr ""
12738
12739 # type: textblock
12740 #. type: textblock
12741 #: ../src/guestfs-actions.pod:3135 ../fish/guestfish-actions.pod:2129
12742 msgid "Any Linux-based operating system."
12743 msgstr ""
12744
12745 # type: textblock
12746 #. type: textblock
12747 #: ../src/guestfs-actions.pod:3139 ../fish/guestfish-actions.pod:2133
12748 msgid "Any Microsoft Windows operating system."
12749 msgstr ""
12750
12751 # type: =item
12752 #. type: =item
12753 #: ../src/guestfs-actions.pod:3141 ../fish/guestfish-actions.pod:2135
12754 msgid "\"freebsd\""
12755 msgstr ""
12756
12757 # type: textblock
12758 #. type: textblock
12759 #: ../src/guestfs-actions.pod:3143 ../fish/guestfish-actions.pod:2137
12760 msgid "FreeBSD."
12761 msgstr ""
12762
12763 # type: textblock
12764 #. type: textblock
12765 #: ../src/guestfs-actions.pod:3147 ../fish/guestfish-actions.pod:2141
12766 msgid "The operating system type could not be determined."
12767 msgstr ""
12768
12769 #. type: =head2
12770 #: ../src/guestfs-actions.pod:3161
12771 msgid "guestfs_inspect_get_windows_current_control_set"
12772 msgstr ""
12773
12774 #. type: verbatim
12775 #: ../src/guestfs-actions.pod:3163
12776 #, no-wrap
12777 msgid ""
12778 " char *\n"
12779 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
12780 "                                                  const char *root);\n"
12781 "\n"
12782 msgstr ""
12783
12784 #. type: textblock
12785 #: ../src/guestfs-actions.pod:3167 ../fish/guestfish-actions.pod:2154
12786 msgid ""
12787 "This returns the Windows CurrentControlSet of the inspected guest.  The "
12788 "CurrentControlSet is a registry key name such as C<ControlSet001>."
12789 msgstr ""
12790
12791 #. type: textblock
12792 #: ../src/guestfs-actions.pod:3170 ../fish/guestfish-actions.pod:2157
12793 msgid ""
12794 "This call assumes that the guest is Windows and that the Registry could be "
12795 "examined by inspection.  If this is not the case then an error is returned."
12796 msgstr ""
12797
12798 # type: =head2
12799 #. type: =head2
12800 #: ../src/guestfs-actions.pod:3181
12801 msgid "guestfs_inspect_get_windows_systemroot"
12802 msgstr ""
12803
12804 # type: verbatim
12805 #. type: verbatim
12806 #: ../src/guestfs-actions.pod:3183
12807 #, no-wrap
12808 msgid ""
12809 " char *\n"
12810 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
12811 "                                         const char *root);\n"
12812 "\n"
12813 msgstr ""
12814
12815 # type: textblock
12816 #. type: textblock
12817 #: ../src/guestfs-actions.pod:3187 ../fish/guestfish-actions.pod:2167
12818 msgid ""
12819 "This returns the Windows systemroot of the inspected guest.  The systemroot "
12820 "is a directory path such as C</WINDOWS>."
12821 msgstr ""
12822
12823 # type: textblock
12824 #. type: textblock
12825 #: ../src/guestfs-actions.pod:3190 ../fish/guestfish-actions.pod:2170
12826 msgid ""
12827 "This call assumes that the guest is Windows and that the systemroot could be "
12828 "determined by inspection.  If this is not the case then an error is returned."
12829 msgstr ""
12830
12831 # type: textblock
12832 #. type: textblock
12833 #: ../src/guestfs-actions.pod:3199
12834 msgid "(Added in 1.5.25)"
12835 msgstr ""
12836
12837 #. type: =head2
12838 #: ../src/guestfs-actions.pod:3201
12839 msgid "guestfs_inspect_is_live"
12840 msgstr ""
12841
12842 #. type: verbatim
12843 #: ../src/guestfs-actions.pod:3203
12844 #, no-wrap
12845 msgid ""
12846 " int\n"
12847 " guestfs_inspect_is_live (guestfs_h *g,\n"
12848 "                          const char *root);\n"
12849 "\n"
12850 msgstr ""
12851
12852 #. type: textblock
12853 #: ../src/guestfs-actions.pod:3207
12854 msgid ""
12855 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12856 "disk), then this returns true if a live image was detected on the disk."
12857 msgstr ""
12858
12859 #. type: =head2
12860 #: ../src/guestfs-actions.pod:3217
12861 msgid "guestfs_inspect_is_multipart"
12862 msgstr ""
12863
12864 #. type: verbatim
12865 #: ../src/guestfs-actions.pod:3219
12866 #, no-wrap
12867 msgid ""
12868 " int\n"
12869 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
12870 "                               const char *root);\n"
12871 "\n"
12872 msgstr ""
12873
12874 #. type: textblock
12875 #: ../src/guestfs-actions.pod:3223
12876 msgid ""
12877 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12878 "disk), then this returns true if the disk is part of a set."
12879 msgstr ""
12880
12881 #. type: =head2
12882 #: ../src/guestfs-actions.pod:3233
12883 msgid "guestfs_inspect_is_netinst"
12884 msgstr ""
12885
12886 #. type: verbatim
12887 #: ../src/guestfs-actions.pod:3235
12888 #, no-wrap
12889 msgid ""
12890 " int\n"
12891 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
12892 "                             const char *root);\n"
12893 "\n"
12894 msgstr ""
12895
12896 #. type: textblock
12897 #: ../src/guestfs-actions.pod:3239
12898 msgid ""
12899 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12900 "disk), then this returns true if the disk is a network installer, ie. not a "
12901 "self-contained install CD but one which is likely to require network access "
12902 "to complete the install."
12903 msgstr ""
12904
12905 # type: =head2
12906 #. type: =head2
12907 #: ../src/guestfs-actions.pod:3251
12908 msgid "guestfs_inspect_list_applications"
12909 msgstr ""
12910
12911 # type: verbatim
12912 #. type: verbatim
12913 #: ../src/guestfs-actions.pod:3253
12914 #, no-wrap
12915 msgid ""
12916 " struct guestfs_application_list *\n"
12917 " guestfs_inspect_list_applications (guestfs_h *g,\n"
12918 "                                    const char *root);\n"
12919 "\n"
12920 msgstr ""
12921
12922 # type: textblock
12923 #. type: textblock
12924 #: ../src/guestfs-actions.pod:3257 ../fish/guestfish-actions.pod:2212
12925 msgid "Return the list of applications installed in the operating system."
12926 msgstr ""
12927
12928 # type: textblock
12929 #. type: textblock
12930 #: ../src/guestfs-actions.pod:3259
12931 msgid ""
12932 "I<Note:> This call works differently from other parts of the inspection "
12933 "API.  You have to call C<guestfs_inspect_os>, then "
12934 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
12935 "this.  Listing applications is a significantly more difficult operation "
12936 "which requires access to the full filesystem.  Also note that unlike the "
12937 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
12938 "the libguestfs handle, this call actually reads parts of the mounted "
12939 "filesystems during the call."
12940 msgstr ""
12941
12942 # type: textblock
12943 #. type: textblock
12944 #: ../src/guestfs-actions.pod:3269 ../fish/guestfish-actions.pod:2224
12945 msgid ""
12946 "This returns an empty list if the inspection code was not able to determine "
12947 "the list of applications."
12948 msgstr ""
12949
12950 # type: textblock
12951 #. type: textblock
12952 #: ../src/guestfs-actions.pod:3272 ../fish/guestfish-actions.pod:2227
12953 msgid "The application structure contains the following fields:"
12954 msgstr ""
12955
12956 # type: =item
12957 #. type: =item
12958 #: ../src/guestfs-actions.pod:3276 ../fish/guestfish-actions.pod:2231
12959 msgid "C<app_name>"
12960 msgstr ""
12961
12962 # type: textblock
12963 #. type: textblock
12964 #: ../src/guestfs-actions.pod:3278 ../fish/guestfish-actions.pod:2233
12965 msgid ""
12966 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
12967 "guests, this is the package name."
12968 msgstr ""
12969
12970 # type: =item
12971 #. type: =item
12972 #: ../src/guestfs-actions.pod:3281 ../fish/guestfish-actions.pod:2236
12973 msgid "C<app_display_name>"
12974 msgstr ""
12975
12976 # type: textblock
12977 #. type: textblock
12978 #: ../src/guestfs-actions.pod:3283 ../fish/guestfish-actions.pod:2238
12979 msgid ""
12980 "The display name of the application, sometimes localized to the install "
12981 "language of the guest operating system."
12982 msgstr ""
12983
12984 # type: textblock
12985 #. type: textblock
12986 #: ../src/guestfs-actions.pod:3286 ../fish/guestfish-actions.pod:2241
12987 msgid ""
12988 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
12989 "to display something can use C<app_name> instead."
12990 msgstr ""
12991
12992 # type: =item
12993 #. type: =item
12994 #: ../src/guestfs-actions.pod:3289 ../fish/guestfish-actions.pod:2244
12995 msgid "C<app_epoch>"
12996 msgstr ""
12997
12998 # type: textblock
12999 #. type: textblock
13000 #: ../src/guestfs-actions.pod:3291 ../fish/guestfish-actions.pod:2246
13001 msgid ""
13002 "For package managers which use epochs, this contains the epoch of the "
13003 "package (an integer).  If unavailable, this is returned as C<0>."
13004 msgstr ""
13005
13006 # type: =item
13007 #. type: =item
13008 #: ../src/guestfs-actions.pod:3294 ../fish/guestfish-actions.pod:2249
13009 msgid "C<app_version>"
13010 msgstr ""
13011
13012 # type: textblock
13013 #. type: textblock
13014 #: ../src/guestfs-actions.pod:3296 ../fish/guestfish-actions.pod:2251
13015 msgid ""
13016 "The version string of the application or package.  If unavailable this is "
13017 "returned as an empty string C<\"\">."
13018 msgstr ""
13019
13020 # type: =item
13021 #. type: =item
13022 #: ../src/guestfs-actions.pod:3299 ../fish/guestfish-actions.pod:2254
13023 msgid "C<app_release>"
13024 msgstr ""
13025
13026 # type: textblock
13027 #. type: textblock
13028 #: ../src/guestfs-actions.pod:3301 ../fish/guestfish-actions.pod:2256
13029 msgid ""
13030 "The release string of the application or package, for package managers that "
13031 "use this.  If unavailable this is returned as an empty string C<\"\">."
13032 msgstr ""
13033
13034 # type: =item
13035 #. type: =item
13036 #: ../src/guestfs-actions.pod:3305 ../fish/guestfish-actions.pod:2260
13037 msgid "C<app_install_path>"
13038 msgstr ""
13039
13040 # type: textblock
13041 #. type: textblock
13042 #: ../src/guestfs-actions.pod:3307 ../fish/guestfish-actions.pod:2262
13043 msgid ""
13044 "The installation path of the application (on operating systems such as "
13045 "Windows which use installation paths).  This path is in the format used by "
13046 "the guest operating system, it is not a libguestfs path."
13047 msgstr ""
13048
13049 # type: textblock
13050 #. type: textblock
13051 #: ../src/guestfs-actions.pod:3312 ../fish/guestfish-actions.pod:2267
13052 msgid "If unavailable this is returned as an empty string C<\"\">."
13053 msgstr ""
13054
13055 # type: =item
13056 #. type: =item
13057 #: ../src/guestfs-actions.pod:3314 ../fish/guestfish-actions.pod:2269
13058 msgid "C<app_trans_path>"
13059 msgstr ""
13060
13061 # type: textblock
13062 #. type: textblock
13063 #: ../src/guestfs-actions.pod:3316 ../fish/guestfish-actions.pod:2271
13064 msgid ""
13065 "The install path translated into a libguestfs path.  If unavailable this is "
13066 "returned as an empty string C<\"\">."
13067 msgstr ""
13068
13069 # type: =item
13070 #. type: =item
13071 #: ../src/guestfs-actions.pod:3319 ../fish/guestfish-actions.pod:2274
13072 msgid "C<app_publisher>"
13073 msgstr ""
13074
13075 # type: textblock
13076 #. type: textblock
13077 #: ../src/guestfs-actions.pod:3321 ../fish/guestfish-actions.pod:2276
13078 msgid ""
13079 "The name of the publisher of the application, for package managers that use "
13080 "this.  If unavailable this is returned as an empty string C<\"\">."
13081 msgstr ""
13082
13083 # type: =item
13084 #. type: =item
13085 #: ../src/guestfs-actions.pod:3325 ../fish/guestfish-actions.pod:2280
13086 msgid "C<app_url>"
13087 msgstr ""
13088
13089 # type: textblock
13090 #. type: textblock
13091 #: ../src/guestfs-actions.pod:3327 ../fish/guestfish-actions.pod:2282
13092 msgid ""
13093 "The URL (eg. upstream URL) of the application.  If unavailable this is "
13094 "returned as an empty string C<\"\">."
13095 msgstr ""
13096
13097 # type: =item
13098 #. type: =item
13099 #: ../src/guestfs-actions.pod:3330 ../fish/guestfish-actions.pod:2285
13100 msgid "C<app_source_package>"
13101 msgstr ""
13102
13103 # type: textblock
13104 #. type: textblock
13105 #: ../src/guestfs-actions.pod:3332 ../fish/guestfish-actions.pod:2287
13106 msgid ""
13107 "For packaging systems which support this, the name of the source package.  "
13108 "If unavailable this is returned as an empty string C<\"\">."
13109 msgstr ""
13110
13111 # type: =item
13112 #. type: =item
13113 #: ../src/guestfs-actions.pod:3335 ../fish/guestfish-actions.pod:2290
13114 msgid "C<app_summary>"
13115 msgstr ""
13116
13117 # type: textblock
13118 #. type: textblock
13119 #: ../src/guestfs-actions.pod:3337 ../fish/guestfish-actions.pod:2292
13120 msgid ""
13121 "A short (usually one line) description of the application or package.  If "
13122 "unavailable this is returned as an empty string C<\"\">."
13123 msgstr ""
13124
13125 # type: =item
13126 #. type: =item
13127 #: ../src/guestfs-actions.pod:3340 ../fish/guestfish-actions.pod:2295
13128 msgid "C<app_description>"
13129 msgstr ""
13130
13131 # type: textblock
13132 #. type: textblock
13133 #: ../src/guestfs-actions.pod:3342 ../fish/guestfish-actions.pod:2297
13134 msgid ""
13135 "A longer description of the application or package.  If unavailable this is "
13136 "returned as an empty string C<\"\">."
13137 msgstr ""
13138
13139 # type: textblock
13140 #. type: textblock
13141 #: ../src/guestfs-actions.pod:3349
13142 msgid ""
13143 "This function returns a C<struct guestfs_application_list *>, or NULL if "
13144 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
13145 "after use>."
13146 msgstr ""
13147
13148 # type: textblock
13149 #. type: textblock
13150 #: ../src/guestfs-actions.pod:3353
13151 msgid "(Added in 1.7.8)"
13152 msgstr ""
13153
13154 # type: =head2
13155 #. type: =head2
13156 #: ../src/guestfs-actions.pod:3355
13157 msgid "guestfs_inspect_os"
13158 msgstr ""
13159
13160 # type: verbatim
13161 #. type: verbatim
13162 #: ../src/guestfs-actions.pod:3357
13163 #, no-wrap
13164 msgid ""
13165 " char **\n"
13166 " guestfs_inspect_os (guestfs_h *g);\n"
13167 "\n"
13168 msgstr ""
13169
13170 # type: textblock
13171 #. type: textblock
13172 #: ../src/guestfs-actions.pod:3360 ../fish/guestfish-actions.pod:2308
13173 msgid ""
13174 "This function uses other libguestfs functions and certain heuristics to "
13175 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
13176 "for operating systems."
13177 msgstr ""
13178
13179 # type: textblock
13180 #. type: textblock
13181 #: ../src/guestfs-actions.pod:3364 ../fish/guestfish-actions.pod:2312
13182 msgid "The list returned is empty if no operating systems were found."
13183 msgstr ""
13184
13185 # type: textblock
13186 #. type: textblock
13187 #: ../src/guestfs-actions.pod:3366 ../fish/guestfish-actions.pod:2314
13188 msgid ""
13189 "If one operating system was found, then this returns a list with a single "
13190 "element, which is the name of the root filesystem of this operating system.  "
13191 "It is also possible for this function to return a list containing more than "
13192 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
13193 "element being the root filesystem of one of the operating systems."
13194 msgstr ""
13195
13196 # type: textblock
13197 #. type: textblock
13198 #: ../src/guestfs-actions.pod:3373
13199 msgid ""
13200 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
13201 "functions in order to query further information about each operating system, "
13202 "such as the name and version."
13203 msgstr ""
13204
13205 # type: textblock
13206 #. type: textblock
13207 #: ../src/guestfs-actions.pod:3378
13208 msgid ""
13209 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
13210 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
13211 "the contents.  This should be called with no disks currently mounted.  The "
13212 "function may also use Augeas, so any existing Augeas handle will be closed."
13213 msgstr ""
13214
13215 # type: textblock
13216 #. type: textblock
13217 #: ../src/guestfs-actions.pod:3384 ../fish/guestfish-actions.pod:2332
13218 msgid ""
13219 "This function cannot decrypt encrypted disks.  The caller must do that first "
13220 "(supplying the necessary keys) if the disk is encrypted."
13221 msgstr ""
13222
13223 # type: textblock
13224 #. type: textblock
13225 #: ../src/guestfs-actions.pod:3390 ../src/guestfs-actions.pod:3721
13226 #: ../src/guestfs-actions.pod:3803
13227 msgid "See also C<guestfs_list_filesystems>."
13228 msgstr ""
13229
13230 # type: =head2
13231 #. type: =head2
13232 #: ../src/guestfs-actions.pod:3398
13233 msgid "guestfs_is_blockdev"
13234 msgstr ""
13235
13236 # type: verbatim
13237 #. type: verbatim
13238 #: ../src/guestfs-actions.pod:3400
13239 #, no-wrap
13240 msgid ""
13241 " int\n"
13242 " guestfs_is_blockdev (guestfs_h *g,\n"
13243 "                      const char *path);\n"
13244 "\n"
13245 msgstr ""
13246
13247 # type: textblock
13248 #. type: textblock
13249 #: ../src/guestfs-actions.pod:3404 ../fish/guestfish-actions.pod:2344
13250 msgid ""
13251 "This returns C<true> if and only if there is a block device with the given "
13252 "C<path> name."
13253 msgstr ""
13254
13255 # type: textblock
13256 #. type: textblock
13257 #: ../src/guestfs-actions.pod:3407 ../src/guestfs-actions.pod:3436
13258 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3481
13259 #: ../src/guestfs-actions.pod:3497 ../src/guestfs-actions.pod:3553
13260 #: ../src/guestfs-actions.pod:3568
13261 msgid "See also C<guestfs_stat>."
13262 msgstr ""
13263
13264 # type: textblock
13265 #. type: textblock
13266 #: ../src/guestfs-actions.pod:3411 ../src/guestfs-actions.pod:3440
13267 #: ../src/guestfs-actions.pod:3485 ../src/guestfs-actions.pod:3557
13268 #: ../src/guestfs-actions.pod:3572
13269 msgid "(Added in 1.5.10)"
13270 msgstr ""
13271
13272 # type: =head2
13273 #. type: =head2
13274 #: ../src/guestfs-actions.pod:3413
13275 msgid "guestfs_is_busy"
13276 msgstr ""
13277
13278 # type: verbatim
13279 #. type: verbatim
13280 #: ../src/guestfs-actions.pod:3415
13281 #, no-wrap
13282 msgid ""
13283 " int\n"
13284 " guestfs_is_busy (guestfs_h *g);\n"
13285 "\n"
13286 msgstr ""
13287
13288 # type: textblock
13289 #. type: textblock
13290 #: ../src/guestfs-actions.pod:3418 ../fish/guestfish-actions.pod:2353
13291 msgid ""
13292 "This returns true iff this handle is busy processing a command (in the "
13293 "C<BUSY> state)."
13294 msgstr ""
13295
13296 # type: =head2
13297 #. type: =head2
13298 #: ../src/guestfs-actions.pod:3427
13299 msgid "guestfs_is_chardev"
13300 msgstr ""
13301
13302 # type: verbatim
13303 #. type: verbatim
13304 #: ../src/guestfs-actions.pod:3429
13305 #, no-wrap
13306 msgid ""
13307 " int\n"
13308 " guestfs_is_chardev (guestfs_h *g,\n"
13309 "                     const char *path);\n"
13310 "\n"
13311 msgstr ""
13312
13313 # type: textblock
13314 #. type: textblock
13315 #: ../src/guestfs-actions.pod:3433 ../fish/guestfish-actions.pod:2362
13316 msgid ""
13317 "This returns C<true> if and only if there is a character device with the "
13318 "given C<path> name."
13319 msgstr ""
13320
13321 # type: =head2
13322 #. type: =head2
13323 #: ../src/guestfs-actions.pod:3442
13324 msgid "guestfs_is_config"
13325 msgstr ""
13326
13327 # type: verbatim
13328 #. type: verbatim
13329 #: ../src/guestfs-actions.pod:3444
13330 #, no-wrap
13331 msgid ""
13332 " int\n"
13333 " guestfs_is_config (guestfs_h *g);\n"
13334 "\n"
13335 msgstr ""
13336
13337 # type: textblock
13338 #. type: textblock
13339 #: ../src/guestfs-actions.pod:3447 ../fish/guestfish-actions.pod:2371
13340 msgid ""
13341 "This returns true iff this handle is being configured (in the C<CONFIG> "
13342 "state)."
13343 msgstr ""
13344
13345 # type: =head2
13346 #. type: =head2
13347 #: ../src/guestfs-actions.pod:3456
13348 msgid "guestfs_is_dir"
13349 msgstr ""
13350
13351 # type: verbatim
13352 #. type: verbatim
13353 #: ../src/guestfs-actions.pod:3458
13354 #, no-wrap
13355 msgid ""
13356 " int\n"
13357 " guestfs_is_dir (guestfs_h *g,\n"
13358 "                 const char *path);\n"
13359 "\n"
13360 msgstr ""
13361
13362 # type: textblock
13363 #. type: textblock
13364 #: ../src/guestfs-actions.pod:3462 ../fish/guestfish-actions.pod:2380
13365 msgid ""
13366 "This returns C<true> if and only if there is a directory with the given "
13367 "C<path> name.  Note that it returns false for other objects like files."
13368 msgstr ""
13369
13370 # type: =head2
13371 #. type: =head2
13372 #: ../src/guestfs-actions.pod:3472
13373 msgid "guestfs_is_fifo"
13374 msgstr ""
13375
13376 # type: verbatim
13377 #. type: verbatim
13378 #: ../src/guestfs-actions.pod:3474
13379 #, no-wrap
13380 msgid ""
13381 " int\n"
13382 " guestfs_is_fifo (guestfs_h *g,\n"
13383 "                  const char *path);\n"
13384 "\n"
13385 msgstr ""
13386
13387 # type: textblock
13388 #. type: textblock
13389 #: ../src/guestfs-actions.pod:3478 ../fish/guestfish-actions.pod:2390
13390 msgid ""
13391 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
13392 "given C<path> name."
13393 msgstr ""
13394
13395 # type: =head2
13396 #. type: =head2
13397 #: ../src/guestfs-actions.pod:3487
13398 msgid "guestfs_is_file"
13399 msgstr ""
13400
13401 # type: verbatim
13402 #. type: verbatim
13403 #: ../src/guestfs-actions.pod:3489
13404 #, no-wrap
13405 msgid ""
13406 " int\n"
13407 " guestfs_is_file (guestfs_h *g,\n"
13408 "                  const char *path);\n"
13409 "\n"
13410 msgstr ""
13411
13412 # type: textblock
13413 #. type: textblock
13414 #: ../src/guestfs-actions.pod:3493 ../fish/guestfish-actions.pod:2399
13415 msgid ""
13416 "This returns C<true> if and only if there is a regular file with the given "
13417 "C<path> name.  Note that it returns false for other objects like directories."
13418 msgstr ""
13419
13420 # type: =head2
13421 #. type: =head2
13422 #: ../src/guestfs-actions.pod:3503
13423 msgid "guestfs_is_launching"
13424 msgstr ""
13425
13426 # type: verbatim
13427 #. type: verbatim
13428 #: ../src/guestfs-actions.pod:3505
13429 #, no-wrap
13430 msgid ""
13431 " int\n"
13432 " guestfs_is_launching (guestfs_h *g);\n"
13433 "\n"
13434 msgstr ""
13435
13436 # type: textblock
13437 #. type: textblock
13438 #: ../src/guestfs-actions.pod:3508 ../fish/guestfish-actions.pod:2409
13439 msgid ""
13440 "This returns true iff this handle is launching the subprocess (in the "
13441 "C<LAUNCHING> state)."
13442 msgstr ""
13443
13444 # type: =head2
13445 #. type: =head2
13446 #: ../src/guestfs-actions.pod:3517
13447 msgid "guestfs_is_lv"
13448 msgstr ""
13449
13450 # type: verbatim
13451 #. type: verbatim
13452 #: ../src/guestfs-actions.pod:3519
13453 #, no-wrap
13454 msgid ""
13455 " int\n"
13456 " guestfs_is_lv (guestfs_h *g,\n"
13457 "                const char *device);\n"
13458 "\n"
13459 msgstr ""
13460
13461 # type: textblock
13462 #. type: textblock
13463 #: ../src/guestfs-actions.pod:3523 ../fish/guestfish-actions.pod:2418
13464 msgid ""
13465 "This command tests whether C<device> is a logical volume, and returns true "
13466 "iff this is the case."
13467 msgstr ""
13468
13469 # type: =head2
13470 #. type: =head2
13471 #: ../src/guestfs-actions.pod:3530
13472 msgid "guestfs_is_ready"
13473 msgstr ""
13474
13475 # type: verbatim
13476 #. type: verbatim
13477 #: ../src/guestfs-actions.pod:3532
13478 #, no-wrap
13479 msgid ""
13480 " int\n"
13481 " guestfs_is_ready (guestfs_h *g);\n"
13482 "\n"
13483 msgstr ""
13484
13485 # type: textblock
13486 #. type: textblock
13487 #: ../src/guestfs-actions.pod:3535 ../fish/guestfish-actions.pod:2425
13488 msgid ""
13489 "This returns true iff this handle is ready to accept commands (in the "
13490 "C<READY> state)."
13491 msgstr ""
13492
13493 # type: =head2
13494 #. type: =head2
13495 #: ../src/guestfs-actions.pod:3544
13496 msgid "guestfs_is_socket"
13497 msgstr ""
13498
13499 # type: verbatim
13500 #. type: verbatim
13501 #: ../src/guestfs-actions.pod:3546
13502 #, no-wrap
13503 msgid ""
13504 " int\n"
13505 " guestfs_is_socket (guestfs_h *g,\n"
13506 "                    const char *path);\n"
13507 "\n"
13508 msgstr ""
13509
13510 # type: textblock
13511 #. type: textblock
13512 #: ../src/guestfs-actions.pod:3550 ../fish/guestfish-actions.pod:2434
13513 msgid ""
13514 "This returns C<true> if and only if there is a Unix domain socket with the "
13515 "given C<path> name."
13516 msgstr ""
13517
13518 # type: =head2
13519 #. type: =head2
13520 #: ../src/guestfs-actions.pod:3559
13521 msgid "guestfs_is_symlink"
13522 msgstr ""
13523
13524 # type: verbatim
13525 #. type: verbatim
13526 #: ../src/guestfs-actions.pod:3561
13527 #, no-wrap
13528 msgid ""
13529 " int\n"
13530 " guestfs_is_symlink (guestfs_h *g,\n"
13531 "                     const char *path);\n"
13532 "\n"
13533 msgstr ""
13534
13535 # type: textblock
13536 #. type: textblock
13537 #: ../src/guestfs-actions.pod:3565 ../fish/guestfish-actions.pod:2443
13538 msgid ""
13539 "This returns C<true> if and only if there is a symbolic link with the given "
13540 "C<path> name."
13541 msgstr ""
13542
13543 #. type: =head2
13544 #: ../src/guestfs-actions.pod:3574
13545 msgid "guestfs_is_zero"
13546 msgstr ""
13547
13548 #. type: verbatim
13549 #: ../src/guestfs-actions.pod:3576
13550 #, no-wrap
13551 msgid ""
13552 " int\n"
13553 " guestfs_is_zero (guestfs_h *g,\n"
13554 "                  const char *path);\n"
13555 "\n"
13556 msgstr ""
13557
13558 #. type: textblock
13559 #: ../src/guestfs-actions.pod:3580 ../fish/guestfish-actions.pod:2452
13560 msgid ""
13561 "This returns true iff the file exists and the file is empty or it contains "
13562 "all zero bytes."
13563 msgstr ""
13564
13565 #. type: textblock
13566 #: ../src/guestfs-actions.pod:3585 ../src/guestfs-actions.pod:3599
13567 msgid "(Added in 1.11.8)"
13568 msgstr ""
13569
13570 #. type: =head2
13571 #: ../src/guestfs-actions.pod:3587
13572 msgid "guestfs_is_zero_device"
13573 msgstr ""
13574
13575 #. type: verbatim
13576 #: ../src/guestfs-actions.pod:3589
13577 #, no-wrap
13578 msgid ""
13579 " int\n"
13580 " guestfs_is_zero_device (guestfs_h *g,\n"
13581 "                         const char *device);\n"
13582 "\n"
13583 msgstr ""
13584
13585 #. type: textblock
13586 #: ../src/guestfs-actions.pod:3593 ../fish/guestfish-actions.pod:2459
13587 msgid "This returns true iff the device exists and contains all zero bytes."
13588 msgstr ""
13589
13590 #. type: textblock
13591 #: ../src/guestfs-actions.pod:3595 ../fish/guestfish-actions.pod:2461
13592 msgid "Note that for large devices this can take a long time to run."
13593 msgstr ""
13594
13595 # type: =head2
13596 #. type: =head2
13597 #: ../src/guestfs-actions.pod:3601
13598 msgid "guestfs_kill_subprocess"
13599 msgstr ""
13600
13601 # type: verbatim
13602 #. type: verbatim
13603 #: ../src/guestfs-actions.pod:3603
13604 #, no-wrap
13605 msgid ""
13606 " int\n"
13607 " guestfs_kill_subprocess (guestfs_h *g);\n"
13608 "\n"
13609 msgstr ""
13610
13611 # type: textblock
13612 #. type: textblock
13613 #: ../src/guestfs-actions.pod:3606 ../fish/guestfish-actions.pod:2467
13614 msgid "This kills the qemu subprocess.  You should never need to call this."
13615 msgstr ""
13616
13617 # type: =head2
13618 #. type: =head2
13619 #: ../src/guestfs-actions.pod:3612
13620 msgid "guestfs_launch"
13621 msgstr ""
13622
13623 # type: verbatim
13624 #. type: verbatim
13625 #: ../src/guestfs-actions.pod:3614
13626 #, no-wrap
13627 msgid ""
13628 " int\n"
13629 " guestfs_launch (guestfs_h *g);\n"
13630 "\n"
13631 msgstr ""
13632
13633 # type: textblock
13634 #. type: textblock
13635 #: ../src/guestfs-actions.pod:3617 ../fish/guestfish-actions.pod:2475
13636 msgid ""
13637 "Internally libguestfs is implemented by running a virtual machine using "
13638 "L<qemu(1)>."
13639 msgstr ""
13640
13641 # type: textblock
13642 #. type: textblock
13643 #: ../src/guestfs-actions.pod:3620 ../fish/guestfish-actions.pod:2478
13644 msgid ""
13645 "You should call this after configuring the handle (eg. adding drives) but "
13646 "before performing any actions."
13647 msgstr ""
13648
13649 # type: =head2
13650 #. type: =head2
13651 #: ../src/guestfs-actions.pod:3632
13652 msgid "guestfs_lchown"
13653 msgstr ""
13654
13655 # type: verbatim
13656 #. type: verbatim
13657 #: ../src/guestfs-actions.pod:3634
13658 #, no-wrap
13659 msgid ""
13660 " int\n"
13661 " guestfs_lchown (guestfs_h *g,\n"
13662 "                 int owner,\n"
13663 "                 int group,\n"
13664 "                 const char *path);\n"
13665 "\n"
13666 msgstr ""
13667
13668 # type: textblock
13669 #. type: textblock
13670 #: ../src/guestfs-actions.pod:3640
13671 msgid ""
13672 "Change the file owner to C<owner> and group to C<group>.  This is like "
13673 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
13674 "changed, not the target."
13675 msgstr ""
13676
13677 # type: =head2
13678 #. type: =head2
13679 #: ../src/guestfs-actions.pod:3652
13680 msgid "guestfs_lgetxattr"
13681 msgstr ""
13682
13683 # type: verbatim
13684 #. type: verbatim
13685 #: ../src/guestfs-actions.pod:3654
13686 #, no-wrap
13687 msgid ""
13688 " char *\n"
13689 " guestfs_lgetxattr (guestfs_h *g,\n"
13690 "                    const char *path,\n"
13691 "                    const char *name,\n"
13692 "                    size_t *size_r);\n"
13693 "\n"
13694 msgstr ""
13695
13696 # type: textblock
13697 #. type: textblock
13698 #: ../src/guestfs-actions.pod:3660 ../fish/guestfish-actions.pod:2497
13699 msgid ""
13700 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
13701 "is a symlink, then this call returns an extended attribute from the symlink."
13702 msgstr ""
13703
13704 # type: textblock
13705 #. type: textblock
13706 #: ../src/guestfs-actions.pod:3674
13707 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
13708 msgstr ""
13709
13710 # type: =head2
13711 #. type: =head2
13712 #: ../src/guestfs-actions.pod:3682
13713 msgid "guestfs_lgetxattrs"
13714 msgstr ""
13715
13716 # type: verbatim
13717 #. type: verbatim
13718 #: ../src/guestfs-actions.pod:3684
13719 #, no-wrap
13720 msgid ""
13721 " struct guestfs_xattr_list *\n"
13722 " guestfs_lgetxattrs (guestfs_h *g,\n"
13723 "                     const char *path);\n"
13724 "\n"
13725 msgstr ""
13726
13727 # type: textblock
13728 #. type: textblock
13729 #: ../src/guestfs-actions.pod:3688
13730 msgid ""
13731 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
13732 "then it returns the extended attributes of the link itself."
13733 msgstr ""
13734
13735 #. type: =head2
13736 #: ../src/guestfs-actions.pod:3698
13737 msgid "guestfs_list_9p"
13738 msgstr ""
13739
13740 #. type: verbatim
13741 #: ../src/guestfs-actions.pod:3700
13742 #, no-wrap
13743 msgid ""
13744 " char **\n"
13745 " guestfs_list_9p (guestfs_h *g);\n"
13746 "\n"
13747 msgstr ""
13748
13749 #. type: textblock
13750 #: ../src/guestfs-actions.pod:3703 ../fish/guestfish-actions.pod:2525
13751 msgid ""
13752 "List all 9p filesystems attached to the guest.  A list of mount tags is "
13753 "returned."
13754 msgstr ""
13755
13756 # type: =head2
13757 #. type: =head2
13758 #: ../src/guestfs-actions.pod:3712
13759 msgid "guestfs_list_devices"
13760 msgstr ""
13761
13762 # type: verbatim
13763 #. type: verbatim
13764 #: ../src/guestfs-actions.pod:3714
13765 #, no-wrap
13766 msgid ""
13767 " char **\n"
13768 " guestfs_list_devices (guestfs_h *g);\n"
13769 "\n"
13770 msgstr ""
13771
13772 # type: textblock
13773 #. type: textblock
13774 #: ../src/guestfs-actions.pod:3717 ../fish/guestfish-actions.pod:2532
13775 msgid "List all the block devices."
13776 msgstr ""
13777
13778 # type: textblock
13779 #. type: textblock
13780 #: ../src/guestfs-actions.pod:3719 ../fish/guestfish-actions.pod:2534
13781 msgid "The full block device names are returned, eg. C</dev/sda>."
13782 msgstr ""
13783
13784 #. type: =head2
13785 #: ../src/guestfs-actions.pod:3729
13786 msgid "guestfs_list_dm_devices"
13787 msgstr ""
13788
13789 #. type: verbatim
13790 #: ../src/guestfs-actions.pod:3731
13791 #, no-wrap
13792 msgid ""
13793 " char **\n"
13794 " guestfs_list_dm_devices (guestfs_h *g);\n"
13795 "\n"
13796 msgstr ""
13797
13798 #. type: textblock
13799 #: ../src/guestfs-actions.pod:3734 ../fish/guestfish-actions.pod:2542
13800 msgid "List all device mapper devices."
13801 msgstr ""
13802
13803 #. type: textblock
13804 #: ../src/guestfs-actions.pod:3736
13805 msgid ""
13806 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
13807 "previous call to C<guestfs_luks_open>."
13808 msgstr ""
13809
13810 #. type: textblock
13811 #: ../src/guestfs-actions.pod:3739
13812 msgid ""
13813 "Device mapper devices which correspond to logical volumes are I<not> "
13814 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
13815 "volumes."
13816 msgstr ""
13817
13818 #. type: textblock
13819 #: ../src/guestfs-actions.pod:3747 ../src/guestfs-actions.pod:5203
13820 msgid "(Added in 1.11.15)"
13821 msgstr ""
13822
13823 # type: =head2
13824 #. type: =head2
13825 #: ../src/guestfs-actions.pod:3749
13826 msgid "guestfs_list_filesystems"
13827 msgstr ""
13828
13829 # type: verbatim
13830 #. type: verbatim
13831 #: ../src/guestfs-actions.pod:3751
13832 #, no-wrap
13833 msgid ""
13834 " char **\n"
13835 " guestfs_list_filesystems (guestfs_h *g);\n"
13836 "\n"
13837 msgstr ""
13838
13839 # type: textblock
13840 #. type: textblock
13841 #: ../src/guestfs-actions.pod:3754 ../fish/guestfish-actions.pod:2555
13842 msgid ""
13843 "This inspection command looks for filesystems on partitions, block devices "
13844 "and logical volumes, returning a list of devices containing filesystems and "
13845 "their type."
13846 msgstr ""
13847
13848 # type: textblock
13849 #. type: textblock
13850 #: ../src/guestfs-actions.pod:3758 ../fish/guestfish-actions.pod:2559
13851 msgid ""
13852 "The return value is a hash, where the keys are the devices containing "
13853 "filesystems, and the values are the filesystem types.  For example:"
13854 msgstr ""
13855
13856 # type: verbatim
13857 #. type: verbatim
13858 #: ../src/guestfs-actions.pod:3762 ../fish/guestfish-actions.pod:2563
13859 #, no-wrap
13860 msgid ""
13861 " \"/dev/sda1\" => \"ntfs\"\n"
13862 " \"/dev/sda2\" => \"ext2\"\n"
13863 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
13864 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
13865 "\n"
13866 msgstr ""
13867
13868 # type: textblock
13869 #. type: textblock
13870 #: ../src/guestfs-actions.pod:3767 ../fish/guestfish-actions.pod:2568
13871 msgid ""
13872 "The value can have the special value \"unknown\", meaning the content of the "
13873 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
13874 msgstr ""
13875
13876 # type: textblock
13877 #. type: textblock
13878 #: ../src/guestfs-actions.pod:3771
13879 msgid ""
13880 "This command runs other libguestfs commands, which might include "
13881 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
13882 "soon after launch and only when nothing is mounted."
13883 msgstr ""
13884
13885 # type: textblock
13886 #. type: textblock
13887 #: ../src/guestfs-actions.pod:3775
13888 msgid ""
13889 "Not all of the filesystems returned will be mountable.  In particular, swap "
13890 "partitions are returned in the list.  Also this command does not check that "
13891 "each filesystem found is valid and mountable, and some filesystems might be "
13892 "mountable but require special options.  Filesystems may not all belong to a "
13893 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
13894 msgstr ""
13895
13896 # type: textblock
13897 #. type: textblock
13898 #: ../src/guestfs-actions.pod:3789 ../src/guestfs-actions.pod:5558
13899 msgid "(Added in 1.5.15)"
13900 msgstr ""
13901
13902 # type: =head2
13903 #. type: =head2
13904 #: ../src/guestfs-actions.pod:3791
13905 msgid "guestfs_list_partitions"
13906 msgstr ""
13907
13908 # type: verbatim
13909 #. type: verbatim
13910 #: ../src/guestfs-actions.pod:3793
13911 #, no-wrap
13912 msgid ""
13913 " char **\n"
13914 " guestfs_list_partitions (guestfs_h *g);\n"
13915 "\n"
13916 msgstr ""
13917
13918 # type: textblock
13919 #. type: textblock
13920 #: ../src/guestfs-actions.pod:3796 ../fish/guestfish-actions.pod:2588
13921 msgid "List all the partitions detected on all block devices."
13922 msgstr ""
13923
13924 # type: textblock
13925 #. type: textblock
13926 #: ../src/guestfs-actions.pod:3798 ../fish/guestfish-actions.pod:2590
13927 msgid "The full partition device names are returned, eg. C</dev/sda1>"
13928 msgstr ""
13929
13930 # type: textblock
13931 #. type: textblock
13932 #: ../src/guestfs-actions.pod:3800
13933 msgid ""
13934 "This does not return logical volumes.  For that you will need to call "
13935 "C<guestfs_lvs>."
13936 msgstr ""
13937
13938 # type: =head2
13939 #. type: =head2
13940 #: ../src/guestfs-actions.pod:3811
13941 msgid "guestfs_ll"
13942 msgstr ""
13943
13944 # type: verbatim
13945 #. type: verbatim
13946 #: ../src/guestfs-actions.pod:3813
13947 #, no-wrap
13948 msgid ""
13949 " char *\n"
13950 " guestfs_ll (guestfs_h *g,\n"
13951 "             const char *directory);\n"
13952 "\n"
13953 msgstr ""
13954
13955 # type: textblock
13956 #. type: textblock
13957 #: ../src/guestfs-actions.pod:3817 ../fish/guestfish-actions.pod:2601
13958 msgid ""
13959 "List the files in C<directory> (relative to the root directory, there is no "
13960 "cwd) in the format of 'ls -la'."
13961 msgstr ""
13962
13963 # type: textblock
13964 #. type: textblock
13965 #: ../src/guestfs-actions.pod:3820 ../fish/guestfish-actions.pod:2604
13966 msgid ""
13967 "This command is mostly useful for interactive sessions.  It is I<not> "
13968 "intended that you try to parse the output string."
13969 msgstr ""
13970
13971 # type: =head2
13972 #. type: =head2
13973 #: ../src/guestfs-actions.pod:3828
13974 msgid "guestfs_ln"
13975 msgstr ""
13976
13977 # type: verbatim
13978 #. type: verbatim
13979 #: ../src/guestfs-actions.pod:3830
13980 #, no-wrap
13981 msgid ""
13982 " int\n"
13983 " guestfs_ln (guestfs_h *g,\n"
13984 "             const char *target,\n"
13985 "             const char *linkname);\n"
13986 "\n"
13987 msgstr ""
13988
13989 # type: textblock
13990 #. type: textblock
13991 #: ../src/guestfs-actions.pod:3835 ../fish/guestfish-actions.pod:2611
13992 msgid "This command creates a hard link using the C<ln> command."
13993 msgstr ""
13994
13995 # type: =head2
13996 #. type: =head2
13997 #: ../src/guestfs-actions.pod:3841
13998 msgid "guestfs_ln_f"
13999 msgstr ""
14000
14001 # type: verbatim
14002 #. type: verbatim
14003 #: ../src/guestfs-actions.pod:3843
14004 #, no-wrap
14005 msgid ""
14006 " int\n"
14007 " guestfs_ln_f (guestfs_h *g,\n"
14008 "               const char *target,\n"
14009 "               const char *linkname);\n"
14010 "\n"
14011 msgstr ""
14012
14013 #. type: textblock
14014 #: ../src/guestfs-actions.pod:3848 ../fish/guestfish-actions.pod:2617
14015 msgid ""
14016 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
14017 "option removes the link (C<linkname>) if it exists already."
14018 msgstr ""
14019
14020 # type: =head2
14021 #. type: =head2
14022 #: ../src/guestfs-actions.pod:3855
14023 msgid "guestfs_ln_s"
14024 msgstr ""
14025
14026 # type: verbatim
14027 #. type: verbatim
14028 #: ../src/guestfs-actions.pod:3857
14029 #, no-wrap
14030 msgid ""
14031 " int\n"
14032 " guestfs_ln_s (guestfs_h *g,\n"
14033 "               const char *target,\n"
14034 "               const char *linkname);\n"
14035 "\n"
14036 msgstr ""
14037
14038 # type: textblock
14039 #. type: textblock
14040 #: ../src/guestfs-actions.pod:3862 ../fish/guestfish-actions.pod:2624
14041 msgid "This command creates a symbolic link using the C<ln -s> command."
14042 msgstr ""
14043
14044 # type: =head2
14045 #. type: =head2
14046 #: ../src/guestfs-actions.pod:3868
14047 msgid "guestfs_ln_sf"
14048 msgstr ""
14049
14050 # type: verbatim
14051 #. type: verbatim
14052 #: ../src/guestfs-actions.pod:3870
14053 #, no-wrap
14054 msgid ""
14055 " int\n"
14056 " guestfs_ln_sf (guestfs_h *g,\n"
14057 "                const char *target,\n"
14058 "                const char *linkname);\n"
14059 "\n"
14060 msgstr ""
14061
14062 #. type: textblock
14063 #: ../src/guestfs-actions.pod:3875 ../fish/guestfish-actions.pod:2630
14064 msgid ""
14065 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
14066 "option removes the link (C<linkname>) if it exists already."
14067 msgstr ""
14068
14069 # type: =head2
14070 #. type: =head2
14071 #: ../src/guestfs-actions.pod:3882
14072 msgid "guestfs_lremovexattr"
14073 msgstr ""
14074
14075 # type: verbatim
14076 #. type: verbatim
14077 #: ../src/guestfs-actions.pod:3884
14078 #, no-wrap
14079 msgid ""
14080 " int\n"
14081 " guestfs_lremovexattr (guestfs_h *g,\n"
14082 "                       const char *xattr,\n"
14083 "                       const char *path);\n"
14084 "\n"
14085 msgstr ""
14086
14087 # type: textblock
14088 #. type: textblock
14089 #: ../src/guestfs-actions.pod:3889
14090 msgid ""
14091 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
14092 "link, then it removes an extended attribute of the link itself."
14093 msgstr ""
14094
14095 # type: =head2
14096 #. type: =head2
14097 #: ../src/guestfs-actions.pod:3897
14098 msgid "guestfs_ls"
14099 msgstr ""
14100
14101 # type: verbatim
14102 #. type: verbatim
14103 #: ../src/guestfs-actions.pod:3899
14104 #, no-wrap
14105 msgid ""
14106 " char **\n"
14107 " guestfs_ls (guestfs_h *g,\n"
14108 "             const char *directory);\n"
14109 "\n"
14110 msgstr ""
14111
14112 # type: textblock
14113 #. type: textblock
14114 #: ../src/guestfs-actions.pod:3903 ../fish/guestfish-actions.pod:2645
14115 msgid ""
14116 "List the files in C<directory> (relative to the root directory, there is no "
14117 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
14118 msgstr ""
14119
14120 # type: textblock
14121 #. type: textblock
14122 #: ../src/guestfs-actions.pod:3907
14123 msgid ""
14124 "This command is mostly useful for interactive sessions.  Programs should "
14125 "probably use C<guestfs_readdir> instead."
14126 msgstr ""
14127
14128 # type: =head2
14129 #. type: =head2
14130 #: ../src/guestfs-actions.pod:3916
14131 msgid "guestfs_lsetxattr"
14132 msgstr ""
14133
14134 # type: verbatim
14135 #. type: verbatim
14136 #: ../src/guestfs-actions.pod:3918
14137 #, no-wrap
14138 msgid ""
14139 " int\n"
14140 " guestfs_lsetxattr (guestfs_h *g,\n"
14141 "                    const char *xattr,\n"
14142 "                    const char *val,\n"
14143 "                    int vallen,\n"
14144 "                    const char *path);\n"
14145 "\n"
14146 msgstr ""
14147
14148 # type: textblock
14149 #. type: textblock
14150 #: ../src/guestfs-actions.pod:3925
14151 msgid ""
14152 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
14153 "then it sets an extended attribute of the link itself."
14154 msgstr ""
14155
14156 # type: =head2
14157 #. type: =head2
14158 #: ../src/guestfs-actions.pod:3933
14159 msgid "guestfs_lstat"
14160 msgstr ""
14161
14162 # type: verbatim
14163 #. type: verbatim
14164 #: ../src/guestfs-actions.pod:3935
14165 #, no-wrap
14166 msgid ""
14167 " struct guestfs_stat *\n"
14168 " guestfs_lstat (guestfs_h *g,\n"
14169 "                const char *path);\n"
14170 "\n"
14171 msgstr ""
14172
14173 # type: textblock
14174 #. type: textblock
14175 #: ../src/guestfs-actions.pod:3939 ../src/guestfs-actions.pod:6693
14176 #: ../fish/guestfish-actions.pod:2664 ../fish/guestfish-actions.pod:4451
14177 msgid "Returns file information for the given C<path>."
14178 msgstr ""
14179
14180 # type: textblock
14181 #. type: textblock
14182 #: ../src/guestfs-actions.pod:3941
14183 msgid ""
14184 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
14185 "link, then the link is stat-ed, not the file it refers to."
14186 msgstr ""
14187
14188 # type: textblock
14189 #. type: textblock
14190 #: ../src/guestfs-actions.pod:3945 ../fish/guestfish-actions.pod:2670
14191 msgid "This is the same as the C<lstat(2)> system call."
14192 msgstr ""
14193
14194 # type: textblock
14195 #. type: textblock
14196 #: ../src/guestfs-actions.pod:3947 ../src/guestfs-actions.pod:6697
14197 msgid ""
14198 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
14199 "error.  I<The caller must call C<guestfs_free_stat> after use>."
14200 msgstr ""
14201
14202 # type: textblock
14203 #. type: textblock
14204 #: ../src/guestfs-actions.pod:3951 ../src/guestfs-actions.pod:6701
14205 #: ../src/guestfs-actions.pod:6719 ../src/guestfs-actions.pod:7100
14206 msgid "(Added in 0.9.2)"
14207 msgstr ""
14208
14209 # type: =head2
14210 #. type: =head2
14211 #: ../src/guestfs-actions.pod:3953
14212 msgid "guestfs_lstatlist"
14213 msgstr ""
14214
14215 # type: verbatim
14216 #. type: verbatim
14217 #: ../src/guestfs-actions.pod:3955
14218 #, no-wrap
14219 msgid ""
14220 " struct guestfs_stat_list *\n"
14221 " guestfs_lstatlist (guestfs_h *g,\n"
14222 "                    const char *path,\n"
14223 "                    char *const *names);\n"
14224 "\n"
14225 msgstr ""
14226
14227 # type: textblock
14228 #. type: textblock
14229 #: ../src/guestfs-actions.pod:3960
14230 msgid ""
14231 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
14232 "files, where all files are in the directory C<path>.  C<names> is the list "
14233 "of files from this directory."
14234 msgstr ""
14235
14236 # type: textblock
14237 #. type: textblock
14238 #: ../src/guestfs-actions.pod:3964 ../fish/guestfish-actions.pod:2680
14239 msgid ""
14240 "On return you get a list of stat structs, with a one-to-one correspondence "
14241 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
14242 "then the C<ino> field of that structure is set to C<-1>."
14243 msgstr ""
14244
14245 # type: textblock
14246 #. type: textblock
14247 #: ../src/guestfs-actions.pod:3969
14248 msgid ""
14249 "This call is intended for programs that want to efficiently list a directory "
14250 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
14251 "for a similarly efficient call for getting extended attributes.  Very long "
14252 "directory listings might cause the protocol message size to be exceeded, "
14253 "causing this call to fail.  The caller must split up such requests into "
14254 "smaller groups of names."
14255 msgstr ""
14256
14257 # type: textblock
14258 #. type: textblock
14259 #: ../src/guestfs-actions.pod:3977
14260 msgid ""
14261 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
14262 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
14263 msgstr ""
14264
14265 # type: =head2
14266 #. type: =head2
14267 #: ../src/guestfs-actions.pod:3983
14268 msgid "guestfs_luks_add_key"
14269 msgstr ""
14270
14271 # type: verbatim
14272 #. type: verbatim
14273 #: ../src/guestfs-actions.pod:3985
14274 #, no-wrap
14275 msgid ""
14276 " int\n"
14277 " guestfs_luks_add_key (guestfs_h *g,\n"
14278 "                       const char *device,\n"
14279 "                       const char *key,\n"
14280 "                       const char *newkey,\n"
14281 "                       int keyslot);\n"
14282 "\n"
14283 msgstr ""
14284
14285 # type: textblock
14286 #. type: textblock
14287 #: ../src/guestfs-actions.pod:3992 ../fish/guestfish-actions.pod:2697
14288 msgid ""
14289 "This command adds a new key on LUKS device C<device>.  C<key> is any "
14290 "existing key, and is used to access the device.  C<newkey> is the new key to "
14291 "add.  C<keyslot> is the key slot that will be replaced."
14292 msgstr ""
14293
14294 # type: textblock
14295 #. type: textblock
14296 #: ../src/guestfs-actions.pod:3997
14297 msgid ""
14298 "Note that if C<keyslot> already contains a key, then this command will "
14299 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
14300 msgstr ""
14301
14302 # type: textblock
14303 #. type: textblock
14304 #: ../src/guestfs-actions.pod:4003 ../src/guestfs-actions.pod:4043
14305 #: ../src/guestfs-actions.pod:4066 ../src/guestfs-actions.pod:4086
14306 #: ../src/guestfs-actions.pod:4121 ../src/guestfs-actions.pod:4140
14307 msgid ""
14308 "This function takes a key or passphrase parameter which could contain "
14309 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
14310 "information."
14311 msgstr ""
14312
14313 # type: textblock
14314 #. type: textblock
14315 #: ../src/guestfs-actions.pod:4007 ../src/guestfs-actions.pod:4047
14316 #: ../src/guestfs-actions.pod:4070 ../src/guestfs-actions.pod:4090
14317 msgid "(Added in 1.5.2)"
14318 msgstr ""
14319
14320 # type: =head2
14321 #. type: =head2
14322 #: ../src/guestfs-actions.pod:4009
14323 msgid "guestfs_luks_close"
14324 msgstr ""
14325
14326 # type: verbatim
14327 #. type: verbatim
14328 #: ../src/guestfs-actions.pod:4011
14329 #, no-wrap
14330 msgid ""
14331 " int\n"
14332 " guestfs_luks_close (guestfs_h *g,\n"
14333 "                     const char *device);\n"
14334 "\n"
14335 msgstr ""
14336
14337 # type: textblock
14338 #. type: textblock
14339 #: ../src/guestfs-actions.pod:4015
14340 msgid ""
14341 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
14342 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
14343 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
14344 "underlying block device."
14345 msgstr ""
14346
14347 # type: textblock
14348 #. type: textblock
14349 #: ../src/guestfs-actions.pod:4023 ../src/guestfs-actions.pod:4125
14350 #: ../src/guestfs-actions.pod:4144 ../src/guestfs-actions.pod:4194
14351 #: ../src/guestfs-actions.pod:4242
14352 msgid "(Added in 1.5.1)"
14353 msgstr ""
14354
14355 # type: =head2
14356 #. type: =head2
14357 #: ../src/guestfs-actions.pod:4025
14358 msgid "guestfs_luks_format"
14359 msgstr ""
14360
14361 # type: verbatim
14362 #. type: verbatim
14363 #: ../src/guestfs-actions.pod:4027
14364 #, no-wrap
14365 msgid ""
14366 " int\n"
14367 " guestfs_luks_format (guestfs_h *g,\n"
14368 "                      const char *device,\n"
14369 "                      const char *key,\n"
14370 "                      int keyslot);\n"
14371 "\n"
14372 msgstr ""
14373
14374 # type: textblock
14375 #. type: textblock
14376 #: ../src/guestfs-actions.pod:4033 ../fish/guestfish-actions.pod:2723
14377 msgid ""
14378 "This command erases existing data on C<device> and formats the device as a "
14379 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
14380 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
14381 msgstr ""
14382
14383 # type: textblock
14384 #. type: textblock
14385 #: ../src/guestfs-actions.pod:4040 ../src/guestfs-actions.pod:4063
14386 #: ../src/guestfs-actions.pod:4206 ../src/guestfs-actions.pod:5309
14387 #: ../src/guestfs-actions.pod:6091 ../src/guestfs-actions.pod:6500
14388 #: ../src/guestfs-actions.pod:6530 ../src/guestfs-actions.pod:6563
14389 #: ../src/guestfs-actions.pod:7739 ../fish/guestfish-actions.pod:2731
14390 #: ../fish/guestfish-actions.pod:2744 ../fish/guestfish-actions.pod:2831
14391 #: ../fish/guestfish-actions.pod:3492 ../fish/guestfish-actions.pod:4012
14392 #: ../fish/guestfish-actions.pod:4322 ../fish/guestfish-actions.pod:4345
14393 #: ../fish/guestfish-actions.pod:4367 ../fish/guestfish-actions.pod:5091
14394 msgid ""
14395 "B<This command is dangerous.  Without careful use you can easily destroy all "
14396 "your data>."
14397 msgstr ""
14398
14399 # type: =head2
14400 #. type: =head2
14401 #: ../src/guestfs-actions.pod:4049
14402 msgid "guestfs_luks_format_cipher"
14403 msgstr ""
14404
14405 # type: verbatim
14406 #. type: verbatim
14407 #: ../src/guestfs-actions.pod:4051
14408 #, no-wrap
14409 msgid ""
14410 " int\n"
14411 " guestfs_luks_format_cipher (guestfs_h *g,\n"
14412 "                             const char *device,\n"
14413 "                             const char *key,\n"
14414 "                             int keyslot,\n"
14415 "                             const char *cipher);\n"
14416 "\n"
14417 msgstr ""
14418
14419 # type: textblock
14420 #. type: textblock
14421 #: ../src/guestfs-actions.pod:4058
14422 msgid ""
14423 "This command is the same as C<guestfs_luks_format> but it also allows you to "
14424 "set the C<cipher> used."
14425 msgstr ""
14426
14427 # type: =head2
14428 #. type: =head2
14429 #: ../src/guestfs-actions.pod:4072
14430 msgid "guestfs_luks_kill_slot"
14431 msgstr ""
14432
14433 # type: verbatim
14434 #. type: verbatim
14435 #: ../src/guestfs-actions.pod:4074
14436 #, no-wrap
14437 msgid ""
14438 " int\n"
14439 " guestfs_luks_kill_slot (guestfs_h *g,\n"
14440 "                         const char *device,\n"
14441 "                         const char *key,\n"
14442 "                         int keyslot);\n"
14443 "\n"
14444 msgstr ""
14445
14446 # type: textblock
14447 #. type: textblock
14448 #: ../src/guestfs-actions.pod:4080 ../fish/guestfish-actions.pod:2751
14449 msgid ""
14450 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
14451 "device C<device>.  C<key> must be one of the I<other> keys."
14452 msgstr ""
14453
14454 # type: =head2
14455 #. type: =head2
14456 #: ../src/guestfs-actions.pod:4092
14457 msgid "guestfs_luks_open"
14458 msgstr ""
14459
14460 # type: verbatim
14461 #. type: verbatim
14462 #: ../src/guestfs-actions.pod:4094
14463 #, no-wrap
14464 msgid ""
14465 " int\n"
14466 " guestfs_luks_open (guestfs_h *g,\n"
14467 "                    const char *device,\n"
14468 "                    const char *key,\n"
14469 "                    const char *mapname);\n"
14470 "\n"
14471 msgstr ""
14472
14473 # type: textblock
14474 #. type: textblock
14475 #: ../src/guestfs-actions.pod:4100 ../fish/guestfish-actions.pod:2762
14476 msgid ""
14477 "This command opens a block device which has been encrypted according to the "
14478 "Linux Unified Key Setup (LUKS) standard."
14479 msgstr ""
14480
14481 # type: textblock
14482 #. type: textblock
14483 #: ../src/guestfs-actions.pod:4103 ../fish/guestfish-actions.pod:2765
14484 msgid "C<device> is the encrypted block device or partition."
14485 msgstr ""
14486
14487 # type: textblock
14488 #. type: textblock
14489 #: ../src/guestfs-actions.pod:4105 ../fish/guestfish-actions.pod:2767
14490 msgid ""
14491 "The caller must supply one of the keys associated with the LUKS block "
14492 "device, in the C<key> parameter."
14493 msgstr ""
14494
14495 # type: textblock
14496 #. type: textblock
14497 #: ../src/guestfs-actions.pod:4108 ../fish/guestfish-actions.pod:2770
14498 msgid ""
14499 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
14500 "writes to this block device are decrypted from and encrypted to the "
14501 "underlying C<device> respectively."
14502 msgstr ""
14503
14504 # type: textblock
14505 #. type: textblock
14506 #: ../src/guestfs-actions.pod:4112
14507 msgid ""
14508 "If this block device contains LVM volume groups, then calling "
14509 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
14510 "visible."
14511 msgstr ""
14512
14513 #. type: textblock
14514 #: ../src/guestfs-actions.pod:4116
14515 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
14516 msgstr ""
14517
14518 # type: =head2
14519 #. type: =head2
14520 #: ../src/guestfs-actions.pod:4127
14521 msgid "guestfs_luks_open_ro"
14522 msgstr ""
14523
14524 # type: verbatim
14525 #. type: verbatim
14526 #: ../src/guestfs-actions.pod:4129
14527 #, no-wrap
14528 msgid ""
14529 " int\n"
14530 " guestfs_luks_open_ro (guestfs_h *g,\n"
14531 "                       const char *device,\n"
14532 "                       const char *key,\n"
14533 "                       const char *mapname);\n"
14534 "\n"
14535 msgstr ""
14536
14537 # type: textblock
14538 #. type: textblock
14539 #: ../src/guestfs-actions.pod:4135
14540 msgid ""
14541 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
14542 "created."
14543 msgstr ""
14544
14545 # type: =head2
14546 #. type: =head2
14547 #: ../src/guestfs-actions.pod:4146
14548 msgid "guestfs_lvcreate"
14549 msgstr ""
14550
14551 # type: verbatim
14552 #. type: verbatim
14553 #: ../src/guestfs-actions.pod:4148
14554 #, no-wrap
14555 msgid ""
14556 " int\n"
14557 " guestfs_lvcreate (guestfs_h *g,\n"
14558 "                   const char *logvol,\n"
14559 "                   const char *volgroup,\n"
14560 "                   int mbytes);\n"
14561 "\n"
14562 msgstr ""
14563
14564 # type: textblock
14565 #. type: textblock
14566 #: ../src/guestfs-actions.pod:4154 ../fish/guestfish-actions.pod:2798
14567 msgid ""
14568 "This creates an LVM logical volume called C<logvol> on the volume group "
14569 "C<volgroup>, with C<size> megabytes."
14570 msgstr ""
14571
14572 # type: =head2
14573 #. type: =head2
14574 #: ../src/guestfs-actions.pod:4161
14575 msgid "guestfs_lvm_canonical_lv_name"
14576 msgstr ""
14577
14578 # type: verbatim
14579 #. type: verbatim
14580 #: ../src/guestfs-actions.pod:4163
14581 #, no-wrap
14582 msgid ""
14583 " char *\n"
14584 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
14585 "                                const char *lvname);\n"
14586 "\n"
14587 msgstr ""
14588
14589 # type: textblock
14590 #. type: textblock
14591 #: ../src/guestfs-actions.pod:4167 ../fish/guestfish-actions.pod:2805
14592 msgid ""
14593 "This converts alternative naming schemes for LVs that you might find to the "
14594 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
14595 "LV>."
14596 msgstr ""
14597
14598 # type: textblock
14599 #. type: textblock
14600 #: ../src/guestfs-actions.pod:4171 ../fish/guestfish-actions.pod:2809
14601 msgid ""
14602 "This command returns an error if the C<lvname> parameter does not refer to a "
14603 "logical volume."
14604 msgstr ""
14605
14606 # type: textblock
14607 #. type: textblock
14608 #: ../src/guestfs-actions.pod:4174
14609 msgid "See also C<guestfs_is_lv>."
14610 msgstr ""
14611
14612 # type: textblock
14613 #. type: textblock
14614 #: ../src/guestfs-actions.pod:4179
14615 msgid "(Added in 1.5.24)"
14616 msgstr ""
14617
14618 # type: =head2
14619 #. type: =head2
14620 #: ../src/guestfs-actions.pod:4181
14621 msgid "guestfs_lvm_clear_filter"
14622 msgstr ""
14623
14624 # type: verbatim
14625 #. type: verbatim
14626 #: ../src/guestfs-actions.pod:4183
14627 #, no-wrap
14628 msgid ""
14629 " int\n"
14630 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
14631 "\n"
14632 msgstr ""
14633
14634 # type: textblock
14635 #. type: textblock
14636 #: ../src/guestfs-actions.pod:4186
14637 msgid ""
14638 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
14639 "see every block device."
14640 msgstr ""
14641
14642 # type: textblock
14643 #. type: textblock
14644 #: ../src/guestfs-actions.pod:4189 ../src/guestfs-actions.pod:4231
14645 #: ../fish/guestfish-actions.pod:2821 ../fish/guestfish-actions.pod:2852
14646 msgid ""
14647 "This command also clears the LVM cache and performs a volume group scan."
14648 msgstr ""
14649
14650 # type: =head2
14651 #. type: =head2
14652 #: ../src/guestfs-actions.pod:4196
14653 msgid "guestfs_lvm_remove_all"
14654 msgstr ""
14655
14656 # type: verbatim
14657 #. type: verbatim
14658 #: ../src/guestfs-actions.pod:4198
14659 #, no-wrap
14660 msgid ""
14661 " int\n"
14662 " guestfs_lvm_remove_all (guestfs_h *g);\n"
14663 "\n"
14664 msgstr ""
14665
14666 # type: textblock
14667 #. type: textblock
14668 #: ../src/guestfs-actions.pod:4201 ../fish/guestfish-actions.pod:2828
14669 msgid ""
14670 "This command removes all LVM logical volumes, volume groups and physical "
14671 "volumes."
14672 msgstr ""
14673
14674 # type: =head2
14675 #. type: =head2
14676 #: ../src/guestfs-actions.pod:4211
14677 msgid "guestfs_lvm_set_filter"
14678 msgstr ""
14679
14680 # type: verbatim
14681 #. type: verbatim
14682 #: ../src/guestfs-actions.pod:4213
14683 #, no-wrap
14684 msgid ""
14685 " int\n"
14686 " guestfs_lvm_set_filter (guestfs_h *g,\n"
14687 "                         char *const *devices);\n"
14688 "\n"
14689 msgstr ""
14690
14691 # type: textblock
14692 #. type: textblock
14693 #: ../src/guestfs-actions.pod:4217 ../fish/guestfish-actions.pod:2838
14694 msgid ""
14695 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
14696 "block devices in the list C<devices>, and will ignore all other attached "
14697 "block devices."
14698 msgstr ""
14699
14700 # type: textblock
14701 #. type: textblock
14702 #: ../src/guestfs-actions.pod:4221 ../fish/guestfish-actions.pod:2842
14703 msgid ""
14704 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
14705 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
14706 "there are two types of duplication possible: either cloned PVs/VGs which "
14707 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
14708 "same name.  In normal operation you cannot create this situation, but you "
14709 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
14710 "inside the LVM metadata."
14711 msgstr ""
14712
14713 # type: textblock
14714 #. type: textblock
14715 #: ../src/guestfs-actions.pod:4234 ../fish/guestfish-actions.pod:2855
14716 msgid "You can filter whole block devices or individual partitions."
14717 msgstr ""
14718
14719 # type: textblock
14720 #. type: textblock
14721 #: ../src/guestfs-actions.pod:4236 ../fish/guestfish-actions.pod:2857
14722 msgid ""
14723 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
14724 "filesystem), even if you are not filtering out that VG."
14725 msgstr ""
14726
14727 # type: =head2
14728 #. type: =head2
14729 #: ../src/guestfs-actions.pod:4244
14730 msgid "guestfs_lvremove"
14731 msgstr ""
14732
14733 # type: verbatim
14734 #. type: verbatim
14735 #: ../src/guestfs-actions.pod:4246
14736 #, no-wrap
14737 msgid ""
14738 " int\n"
14739 " guestfs_lvremove (guestfs_h *g,\n"
14740 "                   const char *device);\n"
14741 "\n"
14742 msgstr ""
14743
14744 # type: textblock
14745 #. type: textblock
14746 #: ../src/guestfs-actions.pod:4250 ../fish/guestfish-actions.pod:2865
14747 msgid ""
14748 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
14749 "LV, such as C</dev/VG/LV>."
14750 msgstr ""
14751
14752 # type: textblock
14753 #. type: textblock
14754 #: ../src/guestfs-actions.pod:4253 ../fish/guestfish-actions.pod:2868
14755 msgid ""
14756 "You can also remove all LVs in a volume group by specifying the VG name, C</"
14757 "dev/VG>."
14758 msgstr ""
14759
14760 # type: textblock
14761 #. type: textblock
14762 #: ../src/guestfs-actions.pod:4258 ../src/guestfs-actions.pod:5655
14763 #: ../src/guestfs-actions.pod:7470
14764 msgid "(Added in 1.0.13)"
14765 msgstr ""
14766
14767 # type: =head2
14768 #. type: =head2
14769 #: ../src/guestfs-actions.pod:4260
14770 msgid "guestfs_lvrename"
14771 msgstr ""
14772
14773 # type: verbatim
14774 #. type: verbatim
14775 #: ../src/guestfs-actions.pod:4262
14776 #, no-wrap
14777 msgid ""
14778 " int\n"
14779 " guestfs_lvrename (guestfs_h *g,\n"
14780 "                   const char *logvol,\n"
14781 "                   const char *newlogvol);\n"
14782 "\n"
14783 msgstr ""
14784
14785 # type: textblock
14786 #. type: textblock
14787 #: ../src/guestfs-actions.pod:4267 ../fish/guestfish-actions.pod:2875
14788 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
14789 msgstr ""
14790
14791 # type: textblock
14792 #. type: textblock
14793 #: ../src/guestfs-actions.pod:4271 ../src/guestfs-actions.pod:7483
14794 msgid "(Added in 1.0.83)"
14795 msgstr ""
14796
14797 # type: =head2
14798 #. type: =head2
14799 #: ../src/guestfs-actions.pod:4273
14800 msgid "guestfs_lvresize"
14801 msgstr ""
14802
14803 # type: verbatim
14804 #. type: verbatim
14805 #: ../src/guestfs-actions.pod:4275
14806 #, no-wrap
14807 msgid ""
14808 " int\n"
14809 " guestfs_lvresize (guestfs_h *g,\n"
14810 "                   const char *device,\n"
14811 "                   int mbytes);\n"
14812 "\n"
14813 msgstr ""
14814
14815 # type: textblock
14816 #. type: textblock
14817 #: ../src/guestfs-actions.pod:4280 ../fish/guestfish-actions.pod:2881
14818 msgid ""
14819 "This resizes (expands or shrinks) an existing LVM logical volume to "
14820 "C<mbytes>.  When reducing, data in the reduced part is lost."
14821 msgstr ""
14822
14823 # type: =head2
14824 #. type: =head2
14825 #: ../src/guestfs-actions.pod:4288
14826 msgid "guestfs_lvresize_free"
14827 msgstr ""
14828
14829 # type: verbatim
14830 #. type: verbatim
14831 #: ../src/guestfs-actions.pod:4290
14832 #, no-wrap
14833 msgid ""
14834 " int\n"
14835 " guestfs_lvresize_free (guestfs_h *g,\n"
14836 "                        const char *lv,\n"
14837 "                        int percent);\n"
14838 "\n"
14839 msgstr ""
14840
14841 # type: textblock
14842 #. type: textblock
14843 #: ../src/guestfs-actions.pod:4295 ../fish/guestfish-actions.pod:2889
14844 msgid ""
14845 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
14846 "remaining free space in the volume group.  Commonly you would call this with "
14847 "pc = 100 which expands the logical volume as much as possible, using all "
14848 "remaining free space in the volume group."
14849 msgstr ""
14850
14851 # type: textblock
14852 #. type: textblock
14853 #: ../src/guestfs-actions.pod:4303
14854 msgid "(Added in 1.3.3)"
14855 msgstr ""
14856
14857 # type: =head2
14858 #. type: =head2
14859 #: ../src/guestfs-actions.pod:4305
14860 msgid "guestfs_lvs"
14861 msgstr ""
14862
14863 # type: verbatim
14864 #. type: verbatim
14865 #: ../src/guestfs-actions.pod:4307
14866 #, no-wrap
14867 msgid ""
14868 " char **\n"
14869 " guestfs_lvs (guestfs_h *g);\n"
14870 "\n"
14871 msgstr ""
14872
14873 # type: textblock
14874 #. type: textblock
14875 #: ../src/guestfs-actions.pod:4310 ../fish/guestfish-actions.pod:2899
14876 msgid ""
14877 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
14878 "(8)> command."
14879 msgstr ""
14880
14881 # type: textblock
14882 #. type: textblock
14883 #: ../src/guestfs-actions.pod:4313 ../fish/guestfish-actions.pod:2902
14884 msgid ""
14885 "This returns a list of the logical volume device names (eg. C</dev/"
14886 "VolGroup00/LogVol00>)."
14887 msgstr ""
14888
14889 # type: textblock
14890 #. type: textblock
14891 #: ../src/guestfs-actions.pod:4316
14892 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
14893 msgstr ""
14894
14895 # type: =head2
14896 #. type: =head2
14897 #: ../src/guestfs-actions.pod:4324
14898 msgid "guestfs_lvs_full"
14899 msgstr ""
14900
14901 # type: verbatim
14902 #. type: verbatim
14903 #: ../src/guestfs-actions.pod:4326
14904 #, no-wrap
14905 msgid ""
14906 " struct guestfs_lvm_lv_list *\n"
14907 " guestfs_lvs_full (guestfs_h *g);\n"
14908 "\n"
14909 msgstr ""
14910
14911 # type: textblock
14912 #. type: textblock
14913 #: ../src/guestfs-actions.pod:4329 ../fish/guestfish-actions.pod:2911
14914 msgid ""
14915 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
14916 "(8)> command.  The \"full\" version includes all fields."
14917 msgstr ""
14918
14919 # type: textblock
14920 #. type: textblock
14921 #: ../src/guestfs-actions.pod:4332
14922 msgid ""
14923 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
14924 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
14925 msgstr ""
14926
14927 # type: =head2
14928 #. type: =head2
14929 #: ../src/guestfs-actions.pod:4338
14930 msgid "guestfs_lvuuid"
14931 msgstr ""
14932
14933 # type: verbatim
14934 #. type: verbatim
14935 #: ../src/guestfs-actions.pod:4340
14936 #, no-wrap
14937 msgid ""
14938 " char *\n"
14939 " guestfs_lvuuid (guestfs_h *g,\n"
14940 "                 const char *device);\n"
14941 "\n"
14942 msgstr ""
14943
14944 # type: textblock
14945 #. type: textblock
14946 #: ../src/guestfs-actions.pod:4344 ../fish/guestfish-actions.pod:2918
14947 msgid "This command returns the UUID of the LVM LV C<device>."
14948 msgstr ""
14949
14950 # type: =head2
14951 #. type: =head2
14952 #: ../src/guestfs-actions.pod:4351
14953 msgid "guestfs_lxattrlist"
14954 msgstr ""
14955
14956 # type: verbatim
14957 #. type: verbatim
14958 #: ../src/guestfs-actions.pod:4353
14959 #, no-wrap
14960 msgid ""
14961 " struct guestfs_xattr_list *\n"
14962 " guestfs_lxattrlist (guestfs_h *g,\n"
14963 "                     const char *path,\n"
14964 "                     char *const *names);\n"
14965 "\n"
14966 msgstr ""
14967
14968 # type: textblock
14969 #. type: textblock
14970 #: ../src/guestfs-actions.pod:4358 ../fish/guestfish-actions.pod:2924
14971 msgid ""
14972 "This call allows you to get the extended attributes of multiple files, where "
14973 "all files are in the directory C<path>.  C<names> is the list of files from "
14974 "this directory."
14975 msgstr ""
14976
14977 # type: textblock
14978 #. type: textblock
14979 #: ../src/guestfs-actions.pod:4362 ../fish/guestfish-actions.pod:2928
14980 msgid ""
14981 "On return you get a flat list of xattr structs which must be interpreted "
14982 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
14983 "C<attrval> in this struct is zero-length to indicate there was an error "
14984 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
14985 "number (the number of following attributes for this file, which could be C<"
14986 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
14987 "for the first named file.  This repeats for the second and subsequent files."
14988 msgstr ""
14989
14990 # type: textblock
14991 #. type: textblock
14992 #: ../src/guestfs-actions.pod:4372
14993 msgid ""
14994 "This call is intended for programs that want to efficiently list a directory "
14995 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
14996 "a similarly efficient call for getting standard stats.  Very long directory "
14997 "listings might cause the protocol message size to be exceeded, causing this "
14998 "call to fail.  The caller must split up such requests into smaller groups of "
14999 "names."
15000 msgstr ""
15001
15002 # type: =head2
15003 #. type: =head2
15004 #: ../src/guestfs-actions.pod:4386
15005 msgid "guestfs_mkdir"
15006 msgstr ""
15007
15008 # type: verbatim
15009 #. type: verbatim
15010 #: ../src/guestfs-actions.pod:4388
15011 #, no-wrap
15012 msgid ""
15013 " int\n"
15014 " guestfs_mkdir (guestfs_h *g,\n"
15015 "                const char *path);\n"
15016 "\n"
15017 msgstr ""
15018
15019 # type: textblock
15020 #. type: textblock
15021 #: ../src/guestfs-actions.pod:4392 ../fish/guestfish-actions.pod:2950
15022 msgid "Create a directory named C<path>."
15023 msgstr ""
15024
15025 # type: =head2
15026 #. type: =head2
15027 #: ../src/guestfs-actions.pod:4398
15028 msgid "guestfs_mkdir_mode"
15029 msgstr ""
15030
15031 # type: verbatim
15032 #. type: verbatim
15033 #: ../src/guestfs-actions.pod:4400
15034 #, no-wrap
15035 msgid ""
15036 " int\n"
15037 " guestfs_mkdir_mode (guestfs_h *g,\n"
15038 "                     const char *path,\n"
15039 "                     int mode);\n"
15040 "\n"
15041 msgstr ""
15042
15043 # type: textblock
15044 #. type: textblock
15045 #: ../src/guestfs-actions.pod:4405 ../fish/guestfish-actions.pod:2956
15046 msgid ""
15047 "This command creates a directory, setting the initial permissions of the "
15048 "directory to C<mode>."
15049 msgstr ""
15050
15051 # type: textblock
15052 #. type: textblock
15053 #: ../src/guestfs-actions.pod:4408 ../fish/guestfish-actions.pod:2959
15054 msgid ""
15055 "For common Linux filesystems, the actual mode which is set will be C<mode & "
15056 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
15057 "other ways."
15058 msgstr ""
15059
15060 # type: textblock
15061 #. type: textblock
15062 #: ../src/guestfs-actions.pod:4412
15063 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
15064 msgstr ""
15065
15066 # type: =head2
15067 #. type: =head2
15068 #: ../src/guestfs-actions.pod:4418
15069 msgid "guestfs_mkdir_p"
15070 msgstr ""
15071
15072 # type: verbatim
15073 #. type: verbatim
15074 #: ../src/guestfs-actions.pod:4420
15075 #, no-wrap
15076 msgid ""
15077 " int\n"
15078 " guestfs_mkdir_p (guestfs_h *g,\n"
15079 "                  const char *path);\n"
15080 "\n"
15081 msgstr ""
15082
15083 # type: textblock
15084 #. type: textblock
15085 #: ../src/guestfs-actions.pod:4424 ../fish/guestfish-actions.pod:2969
15086 msgid ""
15087 "Create a directory named C<path>, creating any parent directories as "
15088 "necessary.  This is like the C<mkdir -p> shell command."
15089 msgstr ""
15090
15091 # type: =head2
15092 #. type: =head2
15093 #: ../src/guestfs-actions.pod:4431
15094 msgid "guestfs_mkdtemp"
15095 msgstr ""
15096
15097 # type: verbatim
15098 #. type: verbatim
15099 #: ../src/guestfs-actions.pod:4433
15100 #, no-wrap
15101 msgid ""
15102 " char *\n"
15103 " guestfs_mkdtemp (guestfs_h *g,\n"
15104 "                  const char *template);\n"
15105 "\n"
15106 msgstr ""
15107
15108 # type: textblock
15109 #. type: textblock
15110 #: ../src/guestfs-actions.pod:4437 ../fish/guestfish-actions.pod:2976
15111 msgid ""
15112 "This command creates a temporary directory.  The C<template> parameter "
15113 "should be a full pathname for the temporary directory name with the final "
15114 "six characters being \"XXXXXX\"."
15115 msgstr ""
15116
15117 # type: textblock
15118 #. type: textblock
15119 #: ../src/guestfs-actions.pod:4442 ../fish/guestfish-actions.pod:2981
15120 msgid ""
15121 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
15122 "being suitable for Windows filesystems."
15123 msgstr ""
15124
15125 # type: textblock
15126 #. type: textblock
15127 #: ../src/guestfs-actions.pod:4445 ../fish/guestfish-actions.pod:2984
15128 msgid "The name of the temporary directory that was created is returned."
15129 msgstr ""
15130
15131 # type: textblock
15132 #. type: textblock
15133 #: ../src/guestfs-actions.pod:4448 ../fish/guestfish-actions.pod:2987
15134 msgid "The temporary directory is created with mode 0700 and is owned by root."
15135 msgstr ""
15136
15137 # type: textblock
15138 #. type: textblock
15139 #: ../src/guestfs-actions.pod:4451 ../fish/guestfish-actions.pod:2990
15140 msgid ""
15141 "The caller is responsible for deleting the temporary directory and its "
15142 "contents after use."
15143 msgstr ""
15144
15145 # type: textblock
15146 #. type: textblock
15147 #: ../src/guestfs-actions.pod:4454 ../fish/guestfish-actions.pod:2993
15148 msgid "See also: L<mkdtemp(3)>"
15149 msgstr ""
15150
15151 # type: =head2
15152 #. type: =head2
15153 #: ../src/guestfs-actions.pod:4461
15154 msgid "guestfs_mke2fs_J"
15155 msgstr ""
15156
15157 # type: verbatim
15158 #. type: verbatim
15159 #: ../src/guestfs-actions.pod:4463
15160 #, no-wrap
15161 msgid ""
15162 " int\n"
15163 " guestfs_mke2fs_J (guestfs_h *g,\n"
15164 "                   const char *fstype,\n"
15165 "                   int blocksize,\n"
15166 "                   const char *device,\n"
15167 "                   const char *journal);\n"
15168 "\n"
15169 msgstr ""
15170
15171 # type: textblock
15172 #. type: textblock
15173 #: ../src/guestfs-actions.pod:4470 ../fish/guestfish-actions.pod:2999
15174 msgid ""
15175 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
15176 "C<journal>.  It is equivalent to the command:"
15177 msgstr ""
15178
15179 # type: verbatim
15180 #. type: verbatim
15181 #: ../src/guestfs-actions.pod:4474 ../fish/guestfish-actions.pod:3003
15182 #, no-wrap
15183 msgid ""
15184 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
15185 "\n"
15186 msgstr ""
15187
15188 # type: textblock
15189 #. type: textblock
15190 #: ../src/guestfs-actions.pod:4476
15191 msgid "See also C<guestfs_mke2journal>."
15192 msgstr ""
15193
15194 # type: textblock
15195 #. type: textblock
15196 #: ../src/guestfs-actions.pod:4480 ../src/guestfs-actions.pod:4498
15197 #: ../src/guestfs-actions.pod:4516 ../src/guestfs-actions.pod:4532
15198 #: ../src/guestfs-actions.pod:4546 ../src/guestfs-actions.pod:4560
15199 #: ../src/guestfs-actions.pod:4619 ../src/guestfs-actions.pod:4896
15200 msgid "(Added in 1.0.68)"
15201 msgstr ""
15202
15203 # type: =head2
15204 #. type: =head2
15205 #: ../src/guestfs-actions.pod:4482
15206 msgid "guestfs_mke2fs_JL"
15207 msgstr ""
15208
15209 # type: verbatim
15210 #. type: verbatim
15211 #: ../src/guestfs-actions.pod:4484
15212 #, no-wrap
15213 msgid ""
15214 " int\n"
15215 " guestfs_mke2fs_JL (guestfs_h *g,\n"
15216 "                    const char *fstype,\n"
15217 "                    int blocksize,\n"
15218 "                    const char *device,\n"
15219 "                    const char *label);\n"
15220 "\n"
15221 msgstr ""
15222
15223 # type: textblock
15224 #. type: textblock
15225 #: ../src/guestfs-actions.pod:4491 ../fish/guestfish-actions.pod:3011
15226 msgid ""
15227 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
15228 "the journal labeled C<label>."
15229 msgstr ""
15230
15231 # type: textblock
15232 #. type: textblock
15233 #: ../src/guestfs-actions.pod:4494
15234 msgid "See also C<guestfs_mke2journal_L>."
15235 msgstr ""
15236
15237 # type: =head2
15238 #. type: =head2
15239 #: ../src/guestfs-actions.pod:4500
15240 msgid "guestfs_mke2fs_JU"
15241 msgstr ""
15242
15243 # type: verbatim
15244 #. type: verbatim
15245 #: ../src/guestfs-actions.pod:4502
15246 #, no-wrap
15247 msgid ""
15248 " int\n"
15249 " guestfs_mke2fs_JU (guestfs_h *g,\n"
15250 "                    const char *fstype,\n"
15251 "                    int blocksize,\n"
15252 "                    const char *device,\n"
15253 "                    const char *uuid);\n"
15254 "\n"
15255 msgstr ""
15256
15257 # type: textblock
15258 #. type: textblock
15259 #: ../src/guestfs-actions.pod:4509 ../fish/guestfish-actions.pod:3020
15260 msgid ""
15261 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
15262 "the journal with UUID C<uuid>."
15263 msgstr ""
15264
15265 # type: textblock
15266 #. type: textblock
15267 #: ../src/guestfs-actions.pod:4512
15268 msgid "See also C<guestfs_mke2journal_U>."
15269 msgstr ""
15270
15271 # type: =head2
15272 #. type: =head2
15273 #: ../src/guestfs-actions.pod:4518
15274 msgid "guestfs_mke2journal"
15275 msgstr ""
15276
15277 # type: verbatim
15278 #. type: verbatim
15279 #: ../src/guestfs-actions.pod:4520
15280 #, no-wrap
15281 msgid ""
15282 " int\n"
15283 " guestfs_mke2journal (guestfs_h *g,\n"
15284 "                      int blocksize,\n"
15285 "                      const char *device);\n"
15286 "\n"
15287 msgstr ""
15288
15289 # type: textblock
15290 #. type: textblock
15291 #: ../src/guestfs-actions.pod:4525 ../fish/guestfish-actions.pod:3029
15292 msgid ""
15293 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
15294 "command:"
15295 msgstr ""
15296
15297 # type: verbatim
15298 #. type: verbatim
15299 #: ../src/guestfs-actions.pod:4528 ../fish/guestfish-actions.pod:3032
15300 #, no-wrap
15301 msgid ""
15302 " mke2fs -O journal_dev -b blocksize device\n"
15303 "\n"
15304 msgstr ""
15305
15306 # type: =head2
15307 #. type: =head2
15308 #: ../src/guestfs-actions.pod:4534
15309 msgid "guestfs_mke2journal_L"
15310 msgstr ""
15311
15312 # type: verbatim
15313 #. type: verbatim
15314 #: ../src/guestfs-actions.pod:4536
15315 #, no-wrap
15316 msgid ""
15317 " int\n"
15318 " guestfs_mke2journal_L (guestfs_h *g,\n"
15319 "                        int blocksize,\n"
15320 "                        const char *label,\n"
15321 "                        const char *device);\n"
15322 "\n"
15323 msgstr ""
15324
15325 # type: textblock
15326 #. type: textblock
15327 #: ../src/guestfs-actions.pod:4542 ../fish/guestfish-actions.pod:3038
15328 msgid "This creates an ext2 external journal on C<device> with label C<label>."
15329 msgstr ""
15330
15331 # type: =head2
15332 #. type: =head2
15333 #: ../src/guestfs-actions.pod:4548
15334 msgid "guestfs_mke2journal_U"
15335 msgstr ""
15336
15337 # type: verbatim
15338 #. type: verbatim
15339 #: ../src/guestfs-actions.pod:4550
15340 #, no-wrap
15341 msgid ""
15342 " int\n"
15343 " guestfs_mke2journal_U (guestfs_h *g,\n"
15344 "                        int blocksize,\n"
15345 "                        const char *uuid,\n"
15346 "                        const char *device);\n"
15347 "\n"
15348 msgstr ""
15349
15350 # type: textblock
15351 #. type: textblock
15352 #: ../src/guestfs-actions.pod:4556 ../fish/guestfish-actions.pod:3044
15353 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
15354 msgstr ""
15355
15356 # type: =head2
15357 #. type: =head2
15358 #: ../src/guestfs-actions.pod:4562
15359 msgid "guestfs_mkfifo"
15360 msgstr ""
15361
15362 # type: verbatim
15363 #. type: verbatim
15364 #: ../src/guestfs-actions.pod:4564
15365 #, no-wrap
15366 msgid ""
15367 " int\n"
15368 " guestfs_mkfifo (guestfs_h *g,\n"
15369 "                 int mode,\n"
15370 "                 const char *path);\n"
15371 "\n"
15372 msgstr ""
15373
15374 # type: textblock
15375 #. type: textblock
15376 #: ../src/guestfs-actions.pod:4569
15377 msgid ""
15378 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
15379 "is just a convenient wrapper around C<guestfs_mknod>."
15380 msgstr ""
15381
15382 # type: =head2
15383 #. type: =head2
15384 #: ../src/guestfs-actions.pod:4579
15385 msgid "guestfs_mkfs"
15386 msgstr ""
15387
15388 # type: verbatim
15389 #. type: verbatim
15390 #: ../src/guestfs-actions.pod:4581
15391 #, no-wrap
15392 msgid ""
15393 " int\n"
15394 " guestfs_mkfs (guestfs_h *g,\n"
15395 "               const char *fstype,\n"
15396 "               const char *device);\n"
15397 "\n"
15398 msgstr ""
15399
15400 # type: textblock
15401 #. type: textblock
15402 #: ../src/guestfs-actions.pod:4586 ../fish/guestfish-actions.pod:3060
15403 msgid ""
15404 "This creates a filesystem on C<device> (usually a partition or LVM logical "
15405 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
15406 msgstr ""
15407
15408 # type: =head2
15409 #. type: =head2
15410 #: ../src/guestfs-actions.pod:4594
15411 msgid "guestfs_mkfs_b"
15412 msgstr ""
15413
15414 # type: verbatim
15415 #. type: verbatim
15416 #: ../src/guestfs-actions.pod:4596
15417 #, no-wrap
15418 msgid ""
15419 " int\n"
15420 " guestfs_mkfs_b (guestfs_h *g,\n"
15421 "                 const char *fstype,\n"
15422 "                 int blocksize,\n"
15423 "                 const char *device);\n"
15424 "\n"
15425 msgstr ""
15426
15427 # type: textblock
15428 #. type: textblock
15429 #: ../src/guestfs-actions.pod:4602
15430 msgid ""
15431 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
15432 "block size of the resulting filesystem.  Supported block sizes depend on the "
15433 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
15434 msgstr ""
15435
15436 # type: textblock
15437 #. type: textblock
15438 #: ../src/guestfs-actions.pod:4607 ../src/guestfs-actions.pod:4652
15439 #: ../fish/guestfish-actions.pod:3073 ../fish/guestfish-actions.pod:3100
15440 msgid ""
15441 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
15442 "cluster size."
15443 msgstr ""
15444
15445 # type: textblock
15446 #. type: textblock
15447 #: ../src/guestfs-actions.pod:4612 ../fish/guestfish-actions.pod:3076
15448 msgid ""
15449 "This function is deprecated.  In new code, use the C<mkfs_opts> call instead."
15450 msgstr ""
15451
15452 # type: =head2
15453 #. type: =head2
15454 #: ../src/guestfs-actions.pod:4621
15455 msgid "guestfs_mkfs_opts"
15456 msgstr ""
15457
15458 # type: verbatim
15459 #. type: verbatim
15460 #: ../src/guestfs-actions.pod:4623
15461 #, no-wrap
15462 msgid ""
15463 " int\n"
15464 " guestfs_mkfs_opts (guestfs_h *g,\n"
15465 "                    const char *fstype,\n"
15466 "                    const char *device,\n"
15467 "                    ...);\n"
15468 "\n"
15469 msgstr ""
15470
15471 #. type: verbatim
15472 #: ../src/guestfs-actions.pod:4634
15473 #, no-wrap
15474 msgid ""
15475 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
15476 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
15477 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
15478 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
15479 "\n"
15480 msgstr ""
15481
15482 # type: textblock
15483 #. type: textblock
15484 #: ../src/guestfs-actions.pod:4639 ../fish/guestfish-actions.pod:3087
15485 msgid ""
15486 "This function creates a filesystem on C<device>.  The filesystem type is "
15487 "C<fstype>, for example C<ext3>."
15488 msgstr ""
15489
15490 # type: =item
15491 #. type: =item
15492 #: ../src/guestfs-actions.pod:4646 ../fish/guestfish-actions.pod:3094
15493 msgid "C<blocksize>"
15494 msgstr ""
15495
15496 # type: textblock
15497 #. type: textblock
15498 #: ../src/guestfs-actions.pod:4648 ../fish/guestfish-actions.pod:3096
15499 msgid ""
15500 "The filesystem block size.  Supported block sizes depend on the filesystem "
15501 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
15502 "filesystems."
15503 msgstr ""
15504
15505 #. type: textblock
15506 #: ../src/guestfs-actions.pod:4655 ../fish/guestfish-actions.pod:3103
15507 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
15508 msgstr ""
15509
15510 #. type: =item
15511 #: ../src/guestfs-actions.pod:4657 ../fish/guestfish-actions.pod:3105
15512 msgid "C<features>"
15513 msgstr ""
15514
15515 #. type: textblock
15516 #: ../src/guestfs-actions.pod:4659 ../fish/guestfish-actions.pod:3107
15517 msgid "This passes the I<-O> parameter to the external mkfs program."
15518 msgstr ""
15519
15520 #. type: textblock
15521 #: ../src/guestfs-actions.pod:4661 ../fish/guestfish-actions.pod:3109
15522 msgid ""
15523 "For certain filesystem types, this allows extra filesystem features to be "
15524 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
15525 msgstr ""
15526
15527 #. type: textblock
15528 #: ../src/guestfs-actions.pod:4665 ../fish/guestfish-actions.pod:3113
15529 msgid ""
15530 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
15531 "type."
15532 msgstr ""
15533
15534 #. type: =item
15535 #: ../src/guestfs-actions.pod:4668 ../fish/guestfish-actions.pod:3116
15536 msgid "C<inode>"
15537 msgstr ""
15538
15539 #. type: textblock
15540 #: ../src/guestfs-actions.pod:4670 ../fish/guestfish-actions.pod:3118
15541 msgid ""
15542 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
15543 "sets the inode size (only for ext2/3/4 filesystems at present)."
15544 msgstr ""
15545
15546 #. type: =item
15547 #: ../src/guestfs-actions.pod:4673 ../fish/guestfish-actions.pod:3121
15548 msgid "C<sectorsize>"
15549 msgstr ""
15550
15551 #. type: textblock
15552 #: ../src/guestfs-actions.pod:4675 ../fish/guestfish-actions.pod:3123
15553 msgid ""
15554 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
15555 "sets sector size for ufs filesystem."
15556 msgstr ""
15557
15558 #. type: textblock
15559 #: ../src/guestfs-actions.pod:4682
15560 msgid "(Added in 1.7.19)"
15561 msgstr ""
15562
15563 # type: =head2
15564 #. type: =head2
15565 #: ../src/guestfs-actions.pod:4684
15566 msgid "guestfs_mkfs_opts_va"
15567 msgstr ""
15568
15569 # type: verbatim
15570 #. type: verbatim
15571 #: ../src/guestfs-actions.pod:4686
15572 #, no-wrap
15573 msgid ""
15574 " int\n"
15575 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
15576 "                       const char *fstype,\n"
15577 "                       const char *device,\n"
15578 "                       va_list args);\n"
15579 "\n"
15580 msgstr ""
15581
15582 # type: textblock
15583 #. type: textblock
15584 #: ../src/guestfs-actions.pod:4692
15585 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
15586 msgstr ""
15587
15588 # type: =head2
15589 #. type: =head2
15590 #: ../src/guestfs-actions.pod:4696
15591 msgid "guestfs_mkfs_opts_argv"
15592 msgstr ""
15593
15594 # type: verbatim
15595 #. type: verbatim
15596 #: ../src/guestfs-actions.pod:4698
15597 #, no-wrap
15598 msgid ""
15599 " int\n"
15600 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
15601 "                         const char *fstype,\n"
15602 "                         const char *device,\n"
15603 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
15604 "\n"
15605 msgstr ""
15606
15607 # type: textblock
15608 #. type: textblock
15609 #: ../src/guestfs-actions.pod:4704
15610 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
15611 msgstr ""
15612
15613 # type: =head2
15614 #. type: =head2
15615 #: ../src/guestfs-actions.pod:4708
15616 msgid "guestfs_mkmountpoint"
15617 msgstr ""
15618
15619 # type: verbatim
15620 #. type: verbatim
15621 #: ../src/guestfs-actions.pod:4710
15622 #, no-wrap
15623 msgid ""
15624 " int\n"
15625 " guestfs_mkmountpoint (guestfs_h *g,\n"
15626 "                       const char *exemptpath);\n"
15627 "\n"
15628 msgstr ""
15629
15630 # type: textblock
15631 #. type: textblock
15632 #: ../src/guestfs-actions.pod:4714
15633 msgid ""
15634 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
15635 "that can be used to create extra mountpoints before mounting the first "
15636 "filesystem."
15637 msgstr ""
15638
15639 # type: textblock
15640 #. type: textblock
15641 #: ../src/guestfs-actions.pod:4718 ../fish/guestfish-actions.pod:3138
15642 msgid ""
15643 "These calls are I<only> necessary in some very limited circumstances, mainly "
15644 "the case where you want to mount a mix of unrelated and/or read-only "
15645 "filesystems together."
15646 msgstr ""
15647
15648 # type: textblock
15649 #. type: textblock
15650 #: ../src/guestfs-actions.pod:4722 ../fish/guestfish-actions.pod:3142
15651 msgid ""
15652 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
15653 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
15654 "inside that.  You can unpack this as follows in guestfish:"
15655 msgstr ""
15656
15657 # type: verbatim
15658 #. type: verbatim
15659 #: ../src/guestfs-actions.pod:4727 ../fish/guestfish-actions.pod:3147
15660 #, no-wrap
15661 msgid ""
15662 " add-ro Fedora-11-i686-Live.iso\n"
15663 " run\n"
15664 " mkmountpoint /cd\n"
15665 " mkmountpoint /sqsh\n"
15666 " mkmountpoint /ext3fs\n"
15667 " mount /dev/sda /cd\n"
15668 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
15669 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
15670 "\n"
15671 msgstr ""
15672
15673 # type: textblock
15674 #. type: textblock
15675 #: ../src/guestfs-actions.pod:4736 ../fish/guestfish-actions.pod:3156
15676 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
15677 msgstr ""
15678
15679 # type: textblock
15680 #. type: textblock
15681 #: ../src/guestfs-actions.pod:4738
15682 msgid ""
15683 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
15684 "may get unexpected errors if you try to mix these calls.  It is safest to "
15685 "manually unmount filesystems and remove mountpoints after use."
15686 msgstr ""
15687
15688 # type: textblock
15689 #. type: textblock
15690 #: ../src/guestfs-actions.pod:4742
15691 msgid ""
15692 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
15693 "first, so for this to work for manual mountpoints, you must ensure that the "
15694 "innermost mountpoints have the longest pathnames, as in the example code "
15695 "above."
15696 msgstr ""
15697
15698 # type: textblock
15699 #. type: textblock
15700 #: ../src/guestfs-actions.pod:4747 ../fish/guestfish-actions.pod:3167
15701 msgid ""
15702 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
15703 msgstr ""
15704
15705 #. type: textblock
15706 #: ../src/guestfs-actions.pod:4749
15707 msgid ""
15708 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
15709 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
15710 "can also trigger these issues."
15711 msgstr ""
15712
15713 # type: textblock
15714 #. type: textblock
15715 #: ../src/guestfs-actions.pod:4755 ../src/guestfs-actions.pod:5071
15716 #: ../src/guestfs-actions.pod:6075
15717 msgid "(Added in 1.0.62)"
15718 msgstr ""
15719
15720 # type: =head2
15721 #. type: =head2
15722 #: ../src/guestfs-actions.pod:4757
15723 msgid "guestfs_mknod"
15724 msgstr ""
15725
15726 # type: verbatim
15727 #. type: verbatim
15728 #: ../src/guestfs-actions.pod:4759
15729 #, no-wrap
15730 msgid ""
15731 " int\n"
15732 " guestfs_mknod (guestfs_h *g,\n"
15733 "                int mode,\n"
15734 "                int devmajor,\n"
15735 "                int devminor,\n"
15736 "                const char *path);\n"
15737 "\n"
15738 msgstr ""
15739
15740 # type: textblock
15741 #. type: textblock
15742 #: ../src/guestfs-actions.pod:4766 ../fish/guestfish-actions.pod:3177
15743 msgid ""
15744 "This call creates block or character special devices, or named pipes (FIFOs)."
15745 msgstr ""
15746
15747 # type: textblock
15748 #. type: textblock
15749 #: ../src/guestfs-actions.pod:4769 ../fish/guestfish-actions.pod:3180
15750 msgid ""
15751 "The C<mode> parameter should be the mode, using the standard constants.  "
15752 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
15753 "used when creating block and character special devices."
15754 msgstr ""
15755
15756 # type: textblock
15757 #. type: textblock
15758 #: ../src/guestfs-actions.pod:4774
15759 msgid ""
15760 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
15761 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
15762 "regular file).  These constants are available in the standard Linux header "
15763 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
15764 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
15765 "the appropriate constant for you."
15766 msgstr ""
15767
15768 # type: =head2
15769 #. type: =head2
15770 #: ../src/guestfs-actions.pod:4788
15771 msgid "guestfs_mknod_b"
15772 msgstr ""
15773
15774 # type: verbatim
15775 #. type: verbatim
15776 #: ../src/guestfs-actions.pod:4790
15777 #, no-wrap
15778 msgid ""
15779 " int\n"
15780 " guestfs_mknod_b (guestfs_h *g,\n"
15781 "                  int mode,\n"
15782 "                  int devmajor,\n"
15783 "                  int devminor,\n"
15784 "                  const char *path);\n"
15785 "\n"
15786 msgstr ""
15787
15788 # type: textblock
15789 #. type: textblock
15790 #: ../src/guestfs-actions.pod:4797
15791 msgid ""
15792 "This call creates a block device node called C<path> with mode C<mode> and "
15793 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
15794 "wrapper around C<guestfs_mknod>."
15795 msgstr ""
15796
15797 # type: =head2
15798 #. type: =head2
15799 #: ../src/guestfs-actions.pod:4807
15800 msgid "guestfs_mknod_c"
15801 msgstr ""
15802
15803 # type: verbatim
15804 #. type: verbatim
15805 #: ../src/guestfs-actions.pod:4809
15806 #, no-wrap
15807 msgid ""
15808 " int\n"
15809 " guestfs_mknod_c (guestfs_h *g,\n"
15810 "                  int mode,\n"
15811 "                  int devmajor,\n"
15812 "                  int devminor,\n"
15813 "                  const char *path);\n"
15814 "\n"
15815 msgstr ""
15816
15817 # type: textblock
15818 #. type: textblock
15819 #: ../src/guestfs-actions.pod:4816
15820 msgid ""
15821 "This call creates a char device node called C<path> with mode C<mode> and "
15822 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
15823 "wrapper around C<guestfs_mknod>."
15824 msgstr ""
15825
15826 # type: =head2
15827 #. type: =head2
15828 #: ../src/guestfs-actions.pod:4826
15829 msgid "guestfs_mkswap"
15830 msgstr ""
15831
15832 # type: verbatim
15833 #. type: verbatim
15834 #: ../src/guestfs-actions.pod:4828
15835 #, no-wrap
15836 msgid ""
15837 " int\n"
15838 " guestfs_mkswap (guestfs_h *g,\n"
15839 "                 const char *device);\n"
15840 "\n"
15841 msgstr ""
15842
15843 # type: textblock
15844 #. type: textblock
15845 #: ../src/guestfs-actions.pod:4832 ../fish/guestfish-actions.pod:3219
15846 msgid "Create a swap partition on C<device>."
15847 msgstr ""
15848
15849 # type: =head2
15850 #. type: =head2
15851 #: ../src/guestfs-actions.pod:4838
15852 msgid "guestfs_mkswap_L"
15853 msgstr ""
15854
15855 # type: verbatim
15856 #. type: verbatim
15857 #: ../src/guestfs-actions.pod:4840
15858 #, no-wrap
15859 msgid ""
15860 " int\n"
15861 " guestfs_mkswap_L (guestfs_h *g,\n"
15862 "                   const char *label,\n"
15863 "                   const char *device);\n"
15864 "\n"
15865 msgstr ""
15866
15867 # type: textblock
15868 #. type: textblock
15869 #: ../src/guestfs-actions.pod:4845 ../fish/guestfish-actions.pod:3225
15870 msgid "Create a swap partition on C<device> with label C<label>."
15871 msgstr ""
15872
15873 # type: textblock
15874 #. type: textblock
15875 #: ../src/guestfs-actions.pod:4847 ../fish/guestfish-actions.pod:3227
15876 msgid ""
15877 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
15878 "sda>), just to a partition.  This appears to be a limitation of the kernel "
15879 "or swap tools."
15880 msgstr ""
15881
15882 # type: =head2
15883 #. type: =head2
15884 #: ../src/guestfs-actions.pod:4855
15885 msgid "guestfs_mkswap_U"
15886 msgstr ""
15887
15888 # type: verbatim
15889 #. type: verbatim
15890 #: ../src/guestfs-actions.pod:4857
15891 #, no-wrap
15892 msgid ""
15893 " int\n"
15894 " guestfs_mkswap_U (guestfs_h *g,\n"
15895 "                   const char *uuid,\n"
15896 "                   const char *device);\n"
15897 "\n"
15898 msgstr ""
15899
15900 # type: textblock
15901 #. type: textblock
15902 #: ../src/guestfs-actions.pod:4862 ../fish/guestfish-actions.pod:3235
15903 msgid "Create a swap partition on C<device> with UUID C<uuid>."
15904 msgstr ""
15905
15906 # type: =head2
15907 #. type: =head2
15908 #: ../src/guestfs-actions.pod:4868
15909 msgid "guestfs_mkswap_file"
15910 msgstr ""
15911
15912 # type: verbatim
15913 #. type: verbatim
15914 #: ../src/guestfs-actions.pod:4870
15915 #, no-wrap
15916 msgid ""
15917 " int\n"
15918 " guestfs_mkswap_file (guestfs_h *g,\n"
15919 "                      const char *path);\n"
15920 "\n"
15921 msgstr ""
15922
15923 # type: textblock
15924 #. type: textblock
15925 #: ../src/guestfs-actions.pod:4874 ../fish/guestfish-actions.pod:3241
15926 msgid "Create a swap file."
15927 msgstr ""
15928
15929 # type: textblock
15930 #. type: textblock
15931 #: ../src/guestfs-actions.pod:4876
15932 msgid ""
15933 "This command just writes a swap file signature to an existing file.  To "
15934 "create the file itself, use something like C<guestfs_fallocate>."
15935 msgstr ""
15936
15937 # type: =head2
15938 #. type: =head2
15939 #: ../src/guestfs-actions.pod:4883
15940 msgid "guestfs_modprobe"
15941 msgstr ""
15942
15943 # type: verbatim
15944 #. type: verbatim
15945 #: ../src/guestfs-actions.pod:4885
15946 #, no-wrap
15947 msgid ""
15948 " int\n"
15949 " guestfs_modprobe (guestfs_h *g,\n"
15950 "                   const char *modulename);\n"
15951 "\n"
15952 msgstr ""
15953
15954 # type: textblock
15955 #. type: textblock
15956 #: ../src/guestfs-actions.pod:4889 ../fish/guestfish-actions.pod:3250
15957 msgid "This loads a kernel module in the appliance."
15958 msgstr ""
15959
15960 # type: textblock
15961 #. type: textblock
15962 #: ../src/guestfs-actions.pod:4891 ../fish/guestfish-actions.pod:3252
15963 msgid ""
15964 "The kernel module must have been whitelisted when libguestfs was built (see "
15965 "C<appliance/kmod.whitelist.in> in the source)."
15966 msgstr ""
15967
15968 # type: =head2
15969 #. type: =head2
15970 #: ../src/guestfs-actions.pod:4898
15971 msgid "guestfs_mount"
15972 msgstr ""
15973
15974 # type: verbatim
15975 #. type: verbatim
15976 #: ../src/guestfs-actions.pod:4900
15977 #, no-wrap
15978 msgid ""
15979 " int\n"
15980 " guestfs_mount (guestfs_h *g,\n"
15981 "                const char *device,\n"
15982 "                const char *mountpoint);\n"
15983 "\n"
15984 msgstr ""
15985
15986 # type: textblock
15987 #. type: textblock
15988 #: ../src/guestfs-actions.pod:4905 ../fish/guestfish-actions.pod:3259
15989 msgid ""
15990 "Mount a guest disk at a position in the filesystem.  Block devices are named "
15991 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
15992 "those block devices contain partitions, they will have the usual names (eg. "
15993 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
15994 msgstr ""
15995
15996 # type: textblock
15997 #. type: textblock
15998 #: ../src/guestfs-actions.pod:4911 ../fish/guestfish-actions.pod:3265
15999 msgid ""
16000 "The rules are the same as for L<mount(2)>: A filesystem must first be "
16001 "mounted on C</> before others can be mounted.  Other filesystems can only be "
16002 "mounted on directories which already exist."
16003 msgstr ""
16004
16005 # type: textblock
16006 #. type: textblock
16007 #: ../src/guestfs-actions.pod:4916 ../fish/guestfish-actions.pod:3270
16008 msgid ""
16009 "The mounted filesystem is writable, if we have sufficient permissions on the "
16010 "underlying device."
16011 msgstr ""
16012
16013 # type: textblock
16014 #. type: textblock
16015 #: ../src/guestfs-actions.pod:4919
16016 msgid ""
16017 "B<Important note:> When you use this call, the filesystem options C<sync> "
16018 "and C<noatime> are set implicitly.  This was originally done because we "
16019 "thought it would improve reliability, but it turns out that I<-o sync> has a "
16020 "very large negative performance impact and negligible effect on "
16021 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
16022 "in any code that needs performance, and instead use C<guestfs_mount_options> "
16023 "(use an empty string for the first parameter if you don't want any options)."
16024 msgstr ""
16025
16026 #. type: textblock
16027 #: ../src/guestfs-actions.pod:4931 ../fish/guestfish-actions.pod:3283
16028 msgid ""
16029 "This function is deprecated.  In new code, use the C<mount_options> call "
16030 "instead."
16031 msgstr ""
16032
16033 #. type: =head2
16034 #: ../src/guestfs-actions.pod:4940
16035 msgid "guestfs_mount_9p"
16036 msgstr ""
16037
16038 #. type: verbatim
16039 #: ../src/guestfs-actions.pod:4942
16040 #, no-wrap
16041 msgid ""
16042 " int\n"
16043 " guestfs_mount_9p (guestfs_h *g,\n"
16044 "                   const char *mounttag,\n"
16045 "                   const char *mountpoint,\n"
16046 "                   ...);\n"
16047 "\n"
16048 msgstr ""
16049
16050 #. type: verbatim
16051 #: ../src/guestfs-actions.pod:4953
16052 #, no-wrap
16053 msgid ""
16054 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
16055 "\n"
16056 msgstr ""
16057
16058 #. type: textblock
16059 #: ../src/guestfs-actions.pod:4955 ../fish/guestfish-actions.pod:3294
16060 msgid ""
16061 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
16062 "C<mountpoint>."
16063 msgstr ""
16064
16065 #. type: textblock
16066 #: ../src/guestfs-actions.pod:4958 ../fish/guestfish-actions.pod:3297
16067 msgid ""
16068 "If required, C<trans=virtio> will be automatically added to the options.  "
16069 "Any other options required can be passed in the optional C<options> "
16070 "parameter."
16071 msgstr ""
16072
16073 #. type: =head2
16074 #: ../src/guestfs-actions.pod:4966
16075 msgid "guestfs_mount_9p_va"
16076 msgstr ""
16077
16078 #. type: verbatim
16079 #: ../src/guestfs-actions.pod:4968
16080 #, no-wrap
16081 msgid ""
16082 " int\n"
16083 " guestfs_mount_9p_va (guestfs_h *g,\n"
16084 "                      const char *mounttag,\n"
16085 "                      const char *mountpoint,\n"
16086 "                      va_list args);\n"
16087 "\n"
16088 msgstr ""
16089
16090 #. type: textblock
16091 #: ../src/guestfs-actions.pod:4974
16092 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
16093 msgstr ""
16094
16095 #. type: =head2
16096 #: ../src/guestfs-actions.pod:4978
16097 msgid "guestfs_mount_9p_argv"
16098 msgstr ""
16099
16100 #. type: verbatim
16101 #: ../src/guestfs-actions.pod:4980
16102 #, no-wrap
16103 msgid ""
16104 " int\n"
16105 " guestfs_mount_9p_argv (guestfs_h *g,\n"
16106 "                        const char *mounttag,\n"
16107 "                        const char *mountpoint,\n"
16108 "                        const struct guestfs_mount_9p_argv *optargs);\n"
16109 "\n"
16110 msgstr ""
16111
16112 #. type: textblock
16113 #: ../src/guestfs-actions.pod:4986
16114 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
16115 msgstr ""
16116
16117 # type: =head2
16118 #. type: =head2
16119 #: ../src/guestfs-actions.pod:4990
16120 msgid "guestfs_mount_loop"
16121 msgstr ""
16122
16123 # type: verbatim
16124 #. type: verbatim
16125 #: ../src/guestfs-actions.pod:4992
16126 #, no-wrap
16127 msgid ""
16128 " int\n"
16129 " guestfs_mount_loop (guestfs_h *g,\n"
16130 "                     const char *file,\n"
16131 "                     const char *mountpoint);\n"
16132 "\n"
16133 msgstr ""
16134
16135 # type: textblock
16136 #. type: textblock
16137 #: ../src/guestfs-actions.pod:4997 ../fish/guestfish-actions.pod:3307
16138 msgid ""
16139 "This command lets you mount C<file> (a filesystem image in a file) on a "
16140 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
16141 "mountpoint>."
16142 msgstr ""
16143
16144 # type: =head2
16145 #. type: =head2
16146 #: ../src/guestfs-actions.pod:5005
16147 msgid "guestfs_mount_options"
16148 msgstr ""
16149
16150 # type: verbatim
16151 #. type: verbatim
16152 #: ../src/guestfs-actions.pod:5007
16153 #, no-wrap
16154 msgid ""
16155 " int\n"
16156 " guestfs_mount_options (guestfs_h *g,\n"
16157 "                        const char *options,\n"
16158 "                        const char *device,\n"
16159 "                        const char *mountpoint);\n"
16160 "\n"
16161 msgstr ""
16162
16163 # type: textblock
16164 #. type: textblock
16165 #: ../src/guestfs-actions.pod:5013
16166 msgid ""
16167 "This is the same as the C<guestfs_mount> command, but it allows you to set "
16168 "the mount options as for the L<mount(8)> I<-o> flag."
16169 msgstr ""
16170
16171 # type: textblock
16172 #. type: textblock
16173 #: ../src/guestfs-actions.pod:5017 ../fish/guestfish-actions.pod:3319
16174 msgid ""
16175 "If the C<options> parameter is an empty string, then no options are passed "
16176 "(all options default to whatever the filesystem uses)."
16177 msgstr ""
16178
16179 # type: textblock
16180 #. type: textblock
16181 #: ../src/guestfs-actions.pod:5023 ../src/guestfs-actions.pod:5037
16182 #: ../src/guestfs-actions.pod:5054
16183 msgid "(Added in 1.0.10)"
16184 msgstr ""
16185
16186 # type: =head2
16187 #. type: =head2
16188 #: ../src/guestfs-actions.pod:5025
16189 msgid "guestfs_mount_ro"
16190 msgstr ""
16191
16192 # type: verbatim
16193 #. type: verbatim
16194 #: ../src/guestfs-actions.pod:5027
16195 #, no-wrap
16196 msgid ""
16197 " int\n"
16198 " guestfs_mount_ro (guestfs_h *g,\n"
16199 "                   const char *device,\n"
16200 "                   const char *mountpoint);\n"
16201 "\n"
16202 msgstr ""
16203
16204 # type: textblock
16205 #. type: textblock
16206 #: ../src/guestfs-actions.pod:5032
16207 msgid ""
16208 "This is the same as the C<guestfs_mount> command, but it mounts the "
16209 "filesystem with the read-only (I<-o ro>) flag."
16210 msgstr ""
16211
16212 # type: =head2
16213 #. type: =head2
16214 #: ../src/guestfs-actions.pod:5039
16215 msgid "guestfs_mount_vfs"
16216 msgstr ""
16217
16218 # type: verbatim
16219 #. type: verbatim
16220 #: ../src/guestfs-actions.pod:5041
16221 #, no-wrap
16222 msgid ""
16223 " int\n"
16224 " guestfs_mount_vfs (guestfs_h *g,\n"
16225 "                    const char *options,\n"
16226 "                    const char *vfstype,\n"
16227 "                    const char *device,\n"
16228 "                    const char *mountpoint);\n"
16229 "\n"
16230 msgstr ""
16231
16232 # type: textblock
16233 #. type: textblock
16234 #: ../src/guestfs-actions.pod:5048
16235 msgid ""
16236 "This is the same as the C<guestfs_mount> command, but it allows you to set "
16237 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
16238 "t> flags."
16239 msgstr ""
16240
16241 # type: =head2
16242 #. type: =head2
16243 #: ../src/guestfs-actions.pod:5056
16244 msgid "guestfs_mountpoints"
16245 msgstr ""
16246
16247 # type: verbatim
16248 #. type: verbatim
16249 #: ../src/guestfs-actions.pod:5058
16250 #, no-wrap
16251 msgid ""
16252 " char **\n"
16253 " guestfs_mountpoints (guestfs_h *g);\n"
16254 "\n"
16255 msgstr ""
16256
16257 # type: textblock
16258 #. type: textblock
16259 #: ../src/guestfs-actions.pod:5061
16260 msgid ""
16261 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
16262 "devices.  This one returns a hash table (map) of device name to directory "
16263 "where the device is mounted."
16264 msgstr ""
16265
16266 # type: =head2
16267 #. type: =head2
16268 #: ../src/guestfs-actions.pod:5073
16269 msgid "guestfs_mounts"
16270 msgstr ""
16271
16272 # type: verbatim
16273 #. type: verbatim
16274 #: ../src/guestfs-actions.pod:5075
16275 #, no-wrap
16276 msgid ""
16277 " char **\n"
16278 " guestfs_mounts (guestfs_h *g);\n"
16279 "\n"
16280 msgstr ""
16281
16282 # type: textblock
16283 #. type: textblock
16284 #: ../src/guestfs-actions.pod:5078 ../fish/guestfish-actions.pod:3350
16285 msgid ""
16286 "This returns the list of currently mounted filesystems.  It returns the list "
16287 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
16288 msgstr ""
16289
16290 # type: textblock
16291 #. type: textblock
16292 #: ../src/guestfs-actions.pod:5081 ../fish/guestfish-actions.pod:3353
16293 msgid "Some internal mounts are not shown."
16294 msgstr ""
16295
16296 # type: textblock
16297 #. type: textblock
16298 #: ../src/guestfs-actions.pod:5083
16299 msgid "See also: C<guestfs_mountpoints>"
16300 msgstr ""
16301
16302 # type: =head2
16303 #. type: =head2
16304 #: ../src/guestfs-actions.pod:5091
16305 msgid "guestfs_mv"
16306 msgstr ""
16307
16308 # type: verbatim
16309 #. type: verbatim
16310 #: ../src/guestfs-actions.pod:5093
16311 #, no-wrap
16312 msgid ""
16313 " int\n"
16314 " guestfs_mv (guestfs_h *g,\n"
16315 "             const char *src,\n"
16316 "             const char *dest);\n"
16317 "\n"
16318 msgstr ""
16319
16320 # type: textblock
16321 #. type: textblock
16322 #: ../src/guestfs-actions.pod:5098 ../fish/guestfish-actions.pod:3361
16323 msgid ""
16324 "This moves a file from C<src> to C<dest> where C<dest> is either a "
16325 "destination filename or destination directory."
16326 msgstr ""
16327
16328 # type: =head2
16329 #. type: =head2
16330 #: ../src/guestfs-actions.pod:5105
16331 msgid "guestfs_ntfs_3g_probe"
16332 msgstr ""
16333
16334 # type: verbatim
16335 #. type: verbatim
16336 #: ../src/guestfs-actions.pod:5107
16337 #, no-wrap
16338 msgid ""
16339 " int\n"
16340 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
16341 "                        int rw,\n"
16342 "                        const char *device);\n"
16343 "\n"
16344 msgstr ""
16345
16346 # type: textblock
16347 #. type: textblock
16348 #: ../src/guestfs-actions.pod:5112 ../fish/guestfish-actions.pod:3368
16349 msgid ""
16350 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
16351 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
16352 "write, and some cannot be mounted at all)."
16353 msgstr ""
16354
16355 # type: textblock
16356 #. type: textblock
16357 #: ../src/guestfs-actions.pod:5116 ../fish/guestfish-actions.pod:3372
16358 msgid ""
16359 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
16360 "can be mounted read-write.  Set it to false if you want to test if the "
16361 "volume can be mounted read-only."
16362 msgstr ""
16363
16364 # type: textblock
16365 #. type: textblock
16366 #: ../src/guestfs-actions.pod:5120 ../fish/guestfish-actions.pod:3376
16367 msgid ""
16368 "The return value is an integer which C<0> if the operation would succeed, or "
16369 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
16370 msgstr ""
16371
16372 # type: textblock
16373 #. type: textblock
16374 #: ../src/guestfs-actions.pod:5126
16375 msgid "(Added in 1.0.43)"
16376 msgstr ""
16377
16378 # type: =head2
16379 #. type: =head2
16380 #: ../src/guestfs-actions.pod:5128
16381 msgid "guestfs_ntfsresize"
16382 msgstr ""
16383
16384 # type: verbatim
16385 #. type: verbatim
16386 #: ../src/guestfs-actions.pod:5130
16387 #, no-wrap
16388 msgid ""
16389 " int\n"
16390 " guestfs_ntfsresize (guestfs_h *g,\n"
16391 "                     const char *device);\n"
16392 "\n"
16393 msgstr ""
16394
16395 #. type: textblock
16396 #: ../src/guestfs-actions.pod:5134 ../src/guestfs-actions.pod:5173
16397 #: ../fish/guestfish-actions.pod:3384 ../fish/guestfish-actions.pod:3408
16398 msgid ""
16399 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
16400 "size of the underlying device."
16401 msgstr ""
16402
16403 #. type: textblock
16404 #: ../src/guestfs-actions.pod:5137 ../fish/guestfish-actions.pod:3387
16405 msgid ""
16406 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
16407 "consistency check (for safety).  You have to boot into Windows to perform "
16408 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
16409 "resize filesystems which have been marked in this way.  So in effect it is "
16410 "not possible to call ntfsresize multiple times on a single filesystem "
16411 "without booting into Windows between each resize."
16412 msgstr ""
16413
16414 #. type: textblock
16415 #: ../src/guestfs-actions.pod:5145 ../src/guestfs-actions.pod:5199
16416 #: ../fish/guestfish-actions.pod:3395 ../fish/guestfish-actions.pod:3434
16417 msgid "See also L<ntfsresize(8)>."
16418 msgstr ""
16419
16420 #. type: textblock
16421 #: ../src/guestfs-actions.pod:5149 ../src/guestfs-actions.pod:5239
16422 #: ../fish/guestfish-actions.pod:3397 ../fish/guestfish-actions.pod:3445
16423 msgid ""
16424 "This function is deprecated.  In new code, use the C<ntfsresize_opts> call "
16425 "instead."
16426 msgstr ""
16427
16428 #. type: =head2
16429 #: ../src/guestfs-actions.pod:5158
16430 msgid "guestfs_ntfsresize_opts"
16431 msgstr ""
16432
16433 #. type: verbatim
16434 #: ../src/guestfs-actions.pod:5160
16435 #, no-wrap
16436 msgid ""
16437 " int\n"
16438 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
16439 "                          const char *device,\n"
16440 "                          ...);\n"
16441 "\n"
16442 msgstr ""
16443
16444 #. type: verbatim
16445 #: ../src/guestfs-actions.pod:5170
16446 #, no-wrap
16447 msgid ""
16448 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
16449 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
16450 "\n"
16451 msgstr ""
16452
16453 #. type: textblock
16454 #: ../src/guestfs-actions.pod:5182 ../fish/guestfish-actions.pod:3417
16455 msgid ""
16456 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
16457 "resized to fit the container (eg. partition)."
16458 msgstr ""
16459
16460 #. type: =item
16461 #: ../src/guestfs-actions.pod:5185 ../fish/guestfish-actions.pod:3420
16462 msgid "C<force>"
16463 msgstr ""
16464
16465 #. type: textblock
16466 #: ../src/guestfs-actions.pod:5187 ../fish/guestfish-actions.pod:3422
16467 msgid ""
16468 "If this option is true, then force the resize of the filesystem even if the "
16469 "filesystem is marked as requiring a consistency check."
16470 msgstr ""
16471
16472 #. type: textblock
16473 #: ../src/guestfs-actions.pod:5190
16474 msgid ""
16475 "After the resize operation, the filesystem is always marked as requiring a "
16476 "consistency check (for safety).  You have to boot into Windows to perform "
16477 "this check and clear this condition.  If you I<don't> set the C<force> "
16478 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
16479 "times on a single filesystem without booting into Windows between each "
16480 "resize."
16481 msgstr ""
16482
16483 #. type: =head2
16484 #: ../src/guestfs-actions.pod:5205
16485 msgid "guestfs_ntfsresize_opts_va"
16486 msgstr ""
16487
16488 #. type: verbatim
16489 #: ../src/guestfs-actions.pod:5207
16490 #, no-wrap
16491 msgid ""
16492 " int\n"
16493 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
16494 "                             const char *device,\n"
16495 "                             va_list args);\n"
16496 "\n"
16497 msgstr ""
16498
16499 #. type: textblock
16500 #: ../src/guestfs-actions.pod:5212
16501 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
16502 msgstr ""
16503
16504 #. type: =head2
16505 #: ../src/guestfs-actions.pod:5216
16506 msgid "guestfs_ntfsresize_opts_argv"
16507 msgstr ""
16508
16509 #. type: verbatim
16510 #: ../src/guestfs-actions.pod:5218
16511 #, no-wrap
16512 msgid ""
16513 " int\n"
16514 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
16515 "                               const char *device,\n"
16516 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
16517 "\n"
16518 msgstr ""
16519
16520 #. type: textblock
16521 #: ../src/guestfs-actions.pod:5223
16522 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
16523 msgstr ""
16524
16525 # type: =head2
16526 #. type: =head2
16527 #: ../src/guestfs-actions.pod:5227
16528 msgid "guestfs_ntfsresize_size"
16529 msgstr ""
16530
16531 # type: verbatim
16532 #. type: verbatim
16533 #: ../src/guestfs-actions.pod:5229
16534 #, no-wrap
16535 msgid ""
16536 " int\n"
16537 " guestfs_ntfsresize_size (guestfs_h *g,\n"
16538 "                          const char *device,\n"
16539 "                          int64_t size);\n"
16540 "\n"
16541 msgstr ""
16542
16543 # type: textblock
16544 #. type: textblock
16545 #: ../src/guestfs-actions.pod:5234
16546 msgid ""
16547 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
16548 "to specify the new size (in bytes) explicitly."
16549 msgstr ""
16550
16551 # type: textblock
16552 #. type: textblock
16553 #: ../src/guestfs-actions.pod:5246 ../src/guestfs-actions.pod:5682
16554 #: ../src/guestfs-actions.pod:5755 ../src/guestfs-actions.pod:6023
16555 #: ../src/guestfs-actions.pod:7625
16556 msgid "(Added in 1.3.14)"
16557 msgstr ""
16558
16559 # type: =head2
16560 #. type: =head2
16561 #: ../src/guestfs-actions.pod:5248
16562 msgid "guestfs_part_add"
16563 msgstr ""
16564
16565 # type: verbatim
16566 #. type: verbatim
16567 #: ../src/guestfs-actions.pod:5250
16568 #, no-wrap
16569 msgid ""
16570 " int\n"
16571 " guestfs_part_add (guestfs_h *g,\n"
16572 "                   const char *device,\n"
16573 "                   const char *prlogex,\n"
16574 "                   int64_t startsect,\n"
16575 "                   int64_t endsect);\n"
16576 "\n"
16577 msgstr ""
16578
16579 # type: textblock
16580 #. type: textblock
16581 #: ../src/guestfs-actions.pod:5257
16582 msgid ""
16583 "This command adds a partition to C<device>.  If there is no partition table "
16584 "on the device, call C<guestfs_part_init> first."
16585 msgstr ""
16586
16587 # type: textblock
16588 #. type: textblock
16589 #: ../src/guestfs-actions.pod:5260 ../fish/guestfish-actions.pod:3459
16590 msgid ""
16591 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
16592 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
16593 "C<logical>) and C<e> (or C<extended>) partition types."
16594 msgstr ""
16595
16596 # type: textblock
16597 #. type: textblock
16598 #: ../src/guestfs-actions.pod:5265 ../fish/guestfish-actions.pod:3464
16599 msgid ""
16600 "C<startsect> and C<endsect> are the start and end of the partition in "
16601 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
16602 "from the end of the disk (C<-1> is the last sector)."
16603 msgstr ""
16604
16605 # type: textblock
16606 #. type: textblock
16607 #: ../src/guestfs-actions.pod:5269
16608 msgid ""
16609 "Creating a partition which covers the whole disk is not so easy.  Use "
16610 "C<guestfs_part_disk> to do that."
16611 msgstr ""
16612
16613 # type: textblock
16614 #. type: textblock
16615 #: ../src/guestfs-actions.pod:5274 ../src/guestfs-actions.pod:5312
16616 #: ../src/guestfs-actions.pod:5365 ../src/guestfs-actions.pod:5443
16617 #: ../src/guestfs-actions.pod:5481 ../src/guestfs-actions.pod:5500
16618 #: ../src/guestfs-actions.pod:5540
16619 msgid "(Added in 1.0.78)"
16620 msgstr ""
16621
16622 # type: =head2
16623 #. type: =head2
16624 #: ../src/guestfs-actions.pod:5276
16625 msgid "guestfs_part_del"
16626 msgstr ""
16627
16628 # type: verbatim
16629 #. type: verbatim
16630 #: ../src/guestfs-actions.pod:5278
16631 #, no-wrap
16632 msgid ""
16633 " int\n"
16634 " guestfs_part_del (guestfs_h *g,\n"
16635 "                   const char *device,\n"
16636 "                   int partnum);\n"
16637 "\n"
16638 msgstr ""
16639
16640 # type: textblock
16641 #. type: textblock
16642 #: ../src/guestfs-actions.pod:5283 ../fish/guestfish-actions.pod:3475
16643 msgid "This command deletes the partition numbered C<partnum> on C<device>."
16644 msgstr ""
16645
16646 # type: textblock
16647 #. type: textblock
16648 #: ../src/guestfs-actions.pod:5285 ../fish/guestfish-actions.pod:3477
16649 msgid ""
16650 "Note that in the case of MBR partitioning, deleting an extended partition "
16651 "also deletes any logical partitions it contains."
16652 msgstr ""
16653
16654 # type: =head2
16655 #. type: =head2
16656 #: ../src/guestfs-actions.pod:5293
16657 msgid "guestfs_part_disk"
16658 msgstr ""
16659
16660 # type: verbatim
16661 #. type: verbatim
16662 #: ../src/guestfs-actions.pod:5295
16663 #, no-wrap
16664 msgid ""
16665 " int\n"
16666 " guestfs_part_disk (guestfs_h *g,\n"
16667 "                    const char *device,\n"
16668 "                    const char *parttype);\n"
16669 "\n"
16670 msgstr ""
16671
16672 # type: textblock
16673 #. type: textblock
16674 #: ../src/guestfs-actions.pod:5300
16675 msgid ""
16676 "This command is simply a combination of C<guestfs_part_init> followed by "
16677 "C<guestfs_part_add> to create a single primary partition covering the whole "
16678 "disk."
16679 msgstr ""
16680
16681 # type: textblock
16682 #. type: textblock
16683 #: ../src/guestfs-actions.pod:5304
16684 msgid ""
16685 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
16686 "possible values are described in C<guestfs_part_init>."
16687 msgstr ""
16688
16689 # type: =head2
16690 #. type: =head2
16691 #: ../src/guestfs-actions.pod:5314
16692 msgid "guestfs_part_get_bootable"
16693 msgstr ""
16694
16695 # type: verbatim
16696 #. type: verbatim
16697 #: ../src/guestfs-actions.pod:5316
16698 #, no-wrap
16699 msgid ""
16700 " int\n"
16701 " guestfs_part_get_bootable (guestfs_h *g,\n"
16702 "                            const char *device,\n"
16703 "                            int partnum);\n"
16704 "\n"
16705 msgstr ""
16706
16707 # type: textblock
16708 #. type: textblock
16709 #: ../src/guestfs-actions.pod:5321 ../fish/guestfish-actions.pod:3499
16710 msgid ""
16711 "This command returns true if the partition C<partnum> on C<device> has the "
16712 "bootable flag set."
16713 msgstr ""
16714
16715 # type: textblock
16716 #. type: textblock
16717 #: ../src/guestfs-actions.pod:5324
16718 msgid "See also C<guestfs_part_set_bootable>."
16719 msgstr ""
16720
16721 # type: =head2
16722 #. type: =head2
16723 #: ../src/guestfs-actions.pod:5330
16724 msgid "guestfs_part_get_mbr_id"
16725 msgstr ""
16726
16727 # type: verbatim
16728 #. type: verbatim
16729 #: ../src/guestfs-actions.pod:5332
16730 #, no-wrap
16731 msgid ""
16732 " int\n"
16733 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
16734 "                          const char *device,\n"
16735 "                          int partnum);\n"
16736 "\n"
16737 msgstr ""
16738
16739 # type: textblock
16740 #. type: textblock
16741 #: ../src/guestfs-actions.pod:5337 ../fish/guestfish-actions.pod:3508
16742 msgid ""
16743 "Returns the MBR type byte (also known as the ID byte) from the numbered "
16744 "partition C<partnum>."
16745 msgstr ""
16746
16747 # type: textblock
16748 #. type: textblock
16749 #: ../src/guestfs-actions.pod:5340 ../src/guestfs-actions.pod:5516
16750 msgid ""
16751 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
16752 "undefined results for other partition table types (see "
16753 "C<guestfs_part_get_parttype>)."
16754 msgstr ""
16755
16756 # type: =head2
16757 #. type: =head2
16758 #: ../src/guestfs-actions.pod:5348
16759 msgid "guestfs_part_get_parttype"
16760 msgstr ""
16761
16762 # type: verbatim
16763 #. type: verbatim
16764 #: ../src/guestfs-actions.pod:5350
16765 #, no-wrap
16766 msgid ""
16767 " char *\n"
16768 " guestfs_part_get_parttype (guestfs_h *g,\n"
16769 "                            const char *device);\n"
16770 "\n"
16771 msgstr ""
16772
16773 # type: textblock
16774 #. type: textblock
16775 #: ../src/guestfs-actions.pod:5354 ../fish/guestfish-actions.pod:3519
16776 msgid ""
16777 "This command examines the partition table on C<device> and returns the "
16778 "partition table type (format) being used."
16779 msgstr ""
16780
16781 # type: textblock
16782 #. type: textblock
16783 #: ../src/guestfs-actions.pod:5357
16784 msgid ""
16785 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
16786 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
16787 "possible, although unusual.  See C<guestfs_part_init> for a full list."
16788 msgstr ""
16789
16790 # type: =head2
16791 #. type: =head2
16792 #: ../src/guestfs-actions.pod:5367
16793 msgid "guestfs_part_init"
16794 msgstr ""
16795
16796 # type: verbatim
16797 #. type: verbatim
16798 #: ../src/guestfs-actions.pod:5369
16799 #, no-wrap
16800 msgid ""
16801 " int\n"
16802 " guestfs_part_init (guestfs_h *g,\n"
16803 "                    const char *device,\n"
16804 "                    const char *parttype);\n"
16805 "\n"
16806 msgstr ""
16807
16808 # type: textblock
16809 #. type: textblock
16810 #: ../src/guestfs-actions.pod:5374 ../fish/guestfish-actions.pod:3531
16811 msgid ""
16812 "This creates an empty partition table on C<device> of one of the partition "
16813 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
16814 "(for large disks)."
16815 msgstr ""
16816
16817 # type: textblock
16818 #. type: textblock
16819 #: ../src/guestfs-actions.pod:5378
16820 msgid ""
16821 "Initially there are no partitions.  Following this, you should call "
16822 "C<guestfs_part_add> for each partition required."
16823 msgstr ""
16824
16825 # type: textblock
16826 #. type: textblock
16827 #: ../src/guestfs-actions.pod:5381 ../fish/guestfish-actions.pod:3538
16828 msgid "Possible values for C<parttype> are:"
16829 msgstr ""
16830
16831 # type: =item
16832 #. type: =item
16833 #: ../src/guestfs-actions.pod:5385 ../fish/guestfish-actions.pod:3542
16834 msgid "B<efi> | B<gpt>"
16835 msgstr ""
16836
16837 # type: textblock
16838 #. type: textblock
16839 #: ../src/guestfs-actions.pod:5387 ../fish/guestfish-actions.pod:3544
16840 msgid "Intel EFI / GPT partition table."
16841 msgstr ""
16842
16843 # type: textblock
16844 #. type: textblock
16845 #: ../src/guestfs-actions.pod:5389 ../fish/guestfish-actions.pod:3546
16846 msgid ""
16847 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
16848 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
16849 "the C<mbr> format."
16850 msgstr ""
16851
16852 # type: =item
16853 #. type: =item
16854 #: ../src/guestfs-actions.pod:5393 ../fish/guestfish-actions.pod:3550
16855 msgid "B<mbr> | B<msdos>"
16856 msgstr ""
16857
16858 # type: textblock
16859 #. type: textblock
16860 #: ../src/guestfs-actions.pod:5395 ../fish/guestfish-actions.pod:3552
16861 msgid ""
16862 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
16863 "Windows.  This partition type will B<only> work for device sizes up to 2 "
16864 "TB.  For large disks we recommend using C<gpt>."
16865 msgstr ""
16866
16867 # type: textblock
16868 #. type: textblock
16869 #: ../src/guestfs-actions.pod:5402 ../fish/guestfish-actions.pod:3559
16870 msgid ""
16871 "Other partition table types that may work but are not supported include:"
16872 msgstr ""
16873
16874 # type: =item
16875 #. type: =item
16876 #: ../src/guestfs-actions.pod:5407 ../fish/guestfish-actions.pod:3564
16877 msgid "B<aix>"
16878 msgstr ""
16879
16880 # type: textblock
16881 #. type: textblock
16882 #: ../src/guestfs-actions.pod:5409 ../fish/guestfish-actions.pod:3566
16883 msgid "AIX disk labels."
16884 msgstr ""
16885
16886 # type: =item
16887 #. type: =item
16888 #: ../src/guestfs-actions.pod:5411 ../fish/guestfish-actions.pod:3568
16889 msgid "B<amiga> | B<rdb>"
16890 msgstr ""
16891
16892 # type: textblock
16893 #. type: textblock
16894 #: ../src/guestfs-actions.pod:5413 ../fish/guestfish-actions.pod:3570
16895 msgid "Amiga \"Rigid Disk Block\" format."
16896 msgstr ""
16897
16898 # type: =item
16899 #. type: =item
16900 #: ../src/guestfs-actions.pod:5415 ../fish/guestfish-actions.pod:3572
16901 msgid "B<bsd>"
16902 msgstr ""
16903
16904 # type: textblock
16905 #. type: textblock
16906 #: ../src/guestfs-actions.pod:5417 ../fish/guestfish-actions.pod:3574
16907 msgid "BSD disk labels."
16908 msgstr ""
16909
16910 # type: =item
16911 #. type: =item
16912 #: ../src/guestfs-actions.pod:5419 ../fish/guestfish-actions.pod:3576
16913 msgid "B<dasd>"
16914 msgstr ""
16915
16916 # type: textblock
16917 #. type: textblock
16918 #: ../src/guestfs-actions.pod:5421 ../fish/guestfish-actions.pod:3578
16919 msgid "DASD, used on IBM mainframes."
16920 msgstr ""
16921
16922 # type: =item
16923 #. type: =item
16924 #: ../src/guestfs-actions.pod:5423 ../fish/guestfish-actions.pod:3580
16925 msgid "B<dvh>"
16926 msgstr ""
16927
16928 # type: textblock
16929 #. type: textblock
16930 #: ../src/guestfs-actions.pod:5425 ../fish/guestfish-actions.pod:3582
16931 msgid "MIPS/SGI volumes."
16932 msgstr ""
16933
16934 # type: =item
16935 #. type: =item
16936 #: ../src/guestfs-actions.pod:5427 ../fish/guestfish-actions.pod:3584
16937 msgid "B<mac>"
16938 msgstr ""
16939
16940 # type: textblock
16941 #. type: textblock
16942 #: ../src/guestfs-actions.pod:5429 ../fish/guestfish-actions.pod:3586
16943 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
16944 msgstr ""
16945
16946 # type: =item
16947 #. type: =item
16948 #: ../src/guestfs-actions.pod:5431 ../fish/guestfish-actions.pod:3588
16949 msgid "B<pc98>"
16950 msgstr ""
16951
16952 # type: textblock
16953 #. type: textblock
16954 #: ../src/guestfs-actions.pod:5433 ../fish/guestfish-actions.pod:3590
16955 msgid "NEC PC-98 format, common in Japan apparently."
16956 msgstr ""
16957
16958 # type: =item
16959 #. type: =item
16960 #: ../src/guestfs-actions.pod:5435 ../fish/guestfish-actions.pod:3592
16961 msgid "B<sun>"
16962 msgstr ""
16963
16964 # type: textblock
16965 #. type: textblock
16966 #: ../src/guestfs-actions.pod:5437 ../fish/guestfish-actions.pod:3594
16967 msgid "Sun disk labels."
16968 msgstr ""
16969
16970 # type: =head2
16971 #. type: =head2
16972 #: ../src/guestfs-actions.pod:5445
16973 msgid "guestfs_part_list"
16974 msgstr ""
16975
16976 # type: verbatim
16977 #. type: verbatim
16978 #: ../src/guestfs-actions.pod:5447
16979 #, no-wrap
16980 msgid ""
16981 " struct guestfs_partition_list *\n"
16982 " guestfs_part_list (guestfs_h *g,\n"
16983 "                    const char *device);\n"
16984 "\n"
16985 msgstr ""
16986
16987 # type: textblock
16988 #. type: textblock
16989 #: ../src/guestfs-actions.pod:5451 ../fish/guestfish-actions.pod:3602
16990 msgid ""
16991 "This command parses the partition table on C<device> and returns the list of "
16992 "partitions found."
16993 msgstr ""
16994
16995 # type: textblock
16996 #. type: textblock
16997 #: ../src/guestfs-actions.pod:5454 ../fish/guestfish-actions.pod:3605
16998 msgid "The fields in the returned structure are:"
16999 msgstr ""
17000
17001 # type: =item
17002 #. type: =item
17003 #: ../src/guestfs-actions.pod:5458 ../fish/guestfish-actions.pod:3609
17004 msgid "B<part_num>"
17005 msgstr ""
17006
17007 # type: textblock
17008 #. type: textblock
17009 #: ../src/guestfs-actions.pod:5460 ../fish/guestfish-actions.pod:3611
17010 msgid "Partition number, counting from 1."
17011 msgstr ""
17012
17013 # type: =item
17014 #. type: =item
17015 #: ../src/guestfs-actions.pod:5462 ../fish/guestfish-actions.pod:3613
17016 msgid "B<part_start>"
17017 msgstr ""
17018
17019 # type: textblock
17020 #. type: textblock
17021 #: ../src/guestfs-actions.pod:5464
17022 msgid ""
17023 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
17024 "the device's sector size, see C<guestfs_blockdev_getss>."
17025 msgstr ""
17026
17027 # type: =item
17028 #. type: =item
17029 #: ../src/guestfs-actions.pod:5467 ../fish/guestfish-actions.pod:3618
17030 msgid "B<part_end>"
17031 msgstr ""
17032
17033 # type: textblock
17034 #. type: textblock
17035 #: ../src/guestfs-actions.pod:5469 ../fish/guestfish-actions.pod:3620
17036 msgid "End of the partition in bytes."
17037 msgstr ""
17038
17039 # type: =item
17040 #. type: =item
17041 #: ../src/guestfs-actions.pod:5471 ../fish/guestfish-actions.pod:3622
17042 msgid "B<part_size>"
17043 msgstr ""
17044
17045 # type: textblock
17046 #. type: textblock
17047 #: ../src/guestfs-actions.pod:5473 ../fish/guestfish-actions.pod:3624
17048 msgid "Size of the partition in bytes."
17049 msgstr ""
17050
17051 # type: textblock
17052 #. type: textblock
17053 #: ../src/guestfs-actions.pod:5477
17054 msgid ""
17055 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
17056 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
17057 "use>."
17058 msgstr ""
17059
17060 # type: =head2
17061 #. type: =head2
17062 #: ../src/guestfs-actions.pod:5483
17063 msgid "guestfs_part_set_bootable"
17064 msgstr ""
17065
17066 # type: verbatim
17067 #. type: verbatim
17068 #: ../src/guestfs-actions.pod:5485
17069 #, no-wrap
17070 msgid ""
17071 " int\n"
17072 " guestfs_part_set_bootable (guestfs_h *g,\n"
17073 "                            const char *device,\n"
17074 "                            int partnum,\n"
17075 "                            int bootable);\n"
17076 "\n"
17077 msgstr ""
17078
17079 # type: textblock
17080 #. type: textblock
17081 #: ../src/guestfs-actions.pod:5491 ../fish/guestfish-actions.pod:3632
17082 msgid ""
17083 "This sets the bootable flag on partition numbered C<partnum> on device "
17084 "C<device>.  Note that partitions are numbered from 1."
17085 msgstr ""
17086
17087 # type: textblock
17088 #. type: textblock
17089 #: ../src/guestfs-actions.pod:5494 ../fish/guestfish-actions.pod:3635
17090 msgid ""
17091 "The bootable flag is used by some operating systems (notably Windows) to "
17092 "determine which partition to boot from.  It is by no means universally "
17093 "recognized."
17094 msgstr ""
17095
17096 # type: =head2
17097 #. type: =head2
17098 #: ../src/guestfs-actions.pod:5502
17099 msgid "guestfs_part_set_mbr_id"
17100 msgstr ""
17101
17102 # type: verbatim
17103 #. type: verbatim
17104 #: ../src/guestfs-actions.pod:5504
17105 #, no-wrap
17106 msgid ""
17107 " int\n"
17108 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
17109 "                          const char *device,\n"
17110 "                          int partnum,\n"
17111 "                          int idbyte);\n"
17112 "\n"
17113 msgstr ""
17114
17115 # type: textblock
17116 #. type: textblock
17117 #: ../src/guestfs-actions.pod:5510 ../fish/guestfish-actions.pod:3643
17118 msgid ""
17119 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
17120 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
17121 "documentation are in fact hexadecimal numbers, but usually documented "
17122 "without any leading \"0x\" which might be confusing."
17123 msgstr ""
17124
17125 # type: =head2
17126 #. type: =head2
17127 #: ../src/guestfs-actions.pod:5524
17128 msgid "guestfs_part_set_name"
17129 msgstr ""
17130
17131 # type: verbatim
17132 #. type: verbatim
17133 #: ../src/guestfs-actions.pod:5526
17134 #, no-wrap
17135 msgid ""
17136 " int\n"
17137 " guestfs_part_set_name (guestfs_h *g,\n"
17138 "                        const char *device,\n"
17139 "                        int partnum,\n"
17140 "                        const char *name);\n"
17141 "\n"
17142 msgstr ""
17143
17144 # type: textblock
17145 #. type: textblock
17146 #: ../src/guestfs-actions.pod:5532 ../fish/guestfish-actions.pod:3657
17147 msgid ""
17148 "This sets the partition name on partition numbered C<partnum> on device "
17149 "C<device>.  Note that partitions are numbered from 1."
17150 msgstr ""
17151
17152 # type: textblock
17153 #. type: textblock
17154 #: ../src/guestfs-actions.pod:5535 ../fish/guestfish-actions.pod:3660
17155 msgid ""
17156 "The partition name can only be set on certain types of partition table.  "
17157 "This works on C<gpt> but not on C<mbr> partitions."
17158 msgstr ""
17159
17160 # type: =head2
17161 #. type: =head2
17162 #: ../src/guestfs-actions.pod:5542
17163 msgid "guestfs_part_to_dev"
17164 msgstr ""
17165
17166 # type: verbatim
17167 #. type: verbatim
17168 #: ../src/guestfs-actions.pod:5544
17169 #, no-wrap
17170 msgid ""
17171 " char *\n"
17172 " guestfs_part_to_dev (guestfs_h *g,\n"
17173 "                      const char *partition);\n"
17174 "\n"
17175 msgstr ""
17176
17177 # type: textblock
17178 #. type: textblock
17179 #: ../src/guestfs-actions.pod:5548 ../fish/guestfish-actions.pod:3667
17180 msgid ""
17181 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
17182 "partition number, returning the device name (eg. \"/dev/sdb\")."
17183 msgstr ""
17184
17185 # type: textblock
17186 #. type: textblock
17187 #: ../src/guestfs-actions.pod:5552
17188 msgid ""
17189 "The named partition must exist, for example as a string returned from "
17190 "C<guestfs_list_partitions>."
17191 msgstr ""
17192
17193 # type: =head2
17194 #. type: =head2
17195 #: ../src/guestfs-actions.pod:5560
17196 msgid "guestfs_ping_daemon"
17197 msgstr ""
17198
17199 # type: verbatim
17200 #. type: verbatim
17201 #: ../src/guestfs-actions.pod:5562
17202 #, no-wrap
17203 msgid ""
17204 " int\n"
17205 " guestfs_ping_daemon (guestfs_h *g);\n"
17206 "\n"
17207 msgstr ""
17208
17209 # type: textblock
17210 #. type: textblock
17211 #: ../src/guestfs-actions.pod:5565 ../fish/guestfish-actions.pod:3678
17212 msgid ""
17213 "This is a test probe into the guestfs daemon running inside the qemu "
17214 "subprocess.  Calling this function checks that the daemon responds to the "
17215 "ping message, without affecting the daemon or attached block device(s) in "
17216 "any other way."
17217 msgstr ""
17218
17219 # type: =head2
17220 #. type: =head2
17221 #: ../src/guestfs-actions.pod:5574
17222 msgid "guestfs_pread"
17223 msgstr ""
17224
17225 # type: verbatim
17226 #. type: verbatim
17227 #: ../src/guestfs-actions.pod:5576
17228 #, no-wrap
17229 msgid ""
17230 " char *\n"
17231 " guestfs_pread (guestfs_h *g,\n"
17232 "                const char *path,\n"
17233 "                int count,\n"
17234 "                int64_t offset,\n"
17235 "                size_t *size_r);\n"
17236 "\n"
17237 msgstr ""
17238
17239 # type: textblock
17240 #. type: textblock
17241 #: ../src/guestfs-actions.pod:5583 ../fish/guestfish-actions.pod:3687
17242 msgid ""
17243 "This command lets you read part of a file.  It reads C<count> bytes of the "
17244 "file, starting at C<offset>, from file C<path>."
17245 msgstr ""
17246
17247 # type: textblock
17248 #. type: textblock
17249 #: ../src/guestfs-actions.pod:5586 ../src/guestfs-actions.pod:5612
17250 #: ../fish/guestfish-actions.pod:3690 ../fish/guestfish-actions.pod:3705
17251 msgid ""
17252 "This may read fewer bytes than requested.  For further details see the "
17253 "L<pread(2)> system call."
17254 msgstr ""
17255
17256 # type: textblock
17257 #. type: textblock
17258 #: ../src/guestfs-actions.pod:5589
17259 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
17260 msgstr ""
17261
17262 # type: =head2
17263 #. type: =head2
17264 #: ../src/guestfs-actions.pod:5600
17265 msgid "guestfs_pread_device"
17266 msgstr ""
17267
17268 # type: verbatim
17269 #. type: verbatim
17270 #: ../src/guestfs-actions.pod:5602
17271 #, no-wrap
17272 msgid ""
17273 " char *\n"
17274 " guestfs_pread_device (guestfs_h *g,\n"
17275 "                       const char *device,\n"
17276 "                       int count,\n"
17277 "                       int64_t offset,\n"
17278 "                       size_t *size_r);\n"
17279 "\n"
17280 msgstr ""
17281
17282 # type: textblock
17283 #. type: textblock
17284 #: ../src/guestfs-actions.pod:5609 ../fish/guestfish-actions.pod:3702
17285 msgid ""
17286 "This command lets you read part of a file.  It reads C<count> bytes of "
17287 "C<device>, starting at C<offset>."
17288 msgstr ""
17289
17290 # type: textblock
17291 #. type: textblock
17292 #: ../src/guestfs-actions.pod:5615
17293 msgid "See also C<guestfs_pread>."
17294 msgstr ""
17295
17296 # type: textblock
17297 #. type: textblock
17298 #: ../src/guestfs-actions.pod:5624
17299 msgid "(Added in 1.5.21)"
17300 msgstr ""
17301
17302 # type: =head2
17303 #. type: =head2
17304 #: ../src/guestfs-actions.pod:5626
17305 msgid "guestfs_pvcreate"
17306 msgstr ""
17307
17308 # type: verbatim
17309 #. type: verbatim
17310 #: ../src/guestfs-actions.pod:5628
17311 #, no-wrap
17312 msgid ""
17313 " int\n"
17314 " guestfs_pvcreate (guestfs_h *g,\n"
17315 "                   const char *device);\n"
17316 "\n"
17317 msgstr ""
17318
17319 # type: textblock
17320 #. type: textblock
17321 #: ../src/guestfs-actions.pod:5632 ../fish/guestfish-actions.pod:3717
17322 msgid ""
17323 "This creates an LVM physical volume on the named C<device>, where C<device> "
17324 "should usually be a partition name such as C</dev/sda1>."
17325 msgstr ""
17326
17327 # type: =head2
17328 #. type: =head2
17329 #: ../src/guestfs-actions.pod:5640
17330 msgid "guestfs_pvremove"
17331 msgstr ""
17332
17333 # type: verbatim
17334 #. type: verbatim
17335 #: ../src/guestfs-actions.pod:5642
17336 #, no-wrap
17337 msgid ""
17338 " int\n"
17339 " guestfs_pvremove (guestfs_h *g,\n"
17340 "                   const char *device);\n"
17341 "\n"
17342 msgstr ""
17343
17344 # type: textblock
17345 #. type: textblock
17346 #: ../src/guestfs-actions.pod:5646 ../fish/guestfish-actions.pod:3725
17347 msgid ""
17348 "This wipes a physical volume C<device> so that LVM will no longer recognise "
17349 "it."
17350 msgstr ""
17351
17352 # type: textblock
17353 #. type: textblock
17354 #: ../src/guestfs-actions.pod:5649 ../fish/guestfish-actions.pod:3728
17355 msgid ""
17356 "The implementation uses the C<pvremove> command which refuses to wipe "
17357 "physical volumes that contain any volume groups, so you have to remove those "
17358 "first."
17359 msgstr ""
17360
17361 # type: =head2
17362 #. type: =head2
17363 #: ../src/guestfs-actions.pod:5657
17364 msgid "guestfs_pvresize"
17365 msgstr ""
17366
17367 # type: verbatim
17368 #. type: verbatim
17369 #: ../src/guestfs-actions.pod:5659
17370 #, no-wrap
17371 msgid ""
17372 " int\n"
17373 " guestfs_pvresize (guestfs_h *g,\n"
17374 "                   const char *device);\n"
17375 "\n"
17376 msgstr ""
17377
17378 # type: textblock
17379 #. type: textblock
17380 #: ../src/guestfs-actions.pod:5663 ../fish/guestfish-actions.pod:3736
17381 msgid ""
17382 "This resizes (expands or shrinks) an existing LVM physical volume to match "
17383 "the new size of the underlying device."
17384 msgstr ""
17385
17386 # type: =head2
17387 #. type: =head2
17388 #: ../src/guestfs-actions.pod:5670
17389 msgid "guestfs_pvresize_size"
17390 msgstr ""
17391
17392 # type: verbatim
17393 #. type: verbatim
17394 #: ../src/guestfs-actions.pod:5672
17395 #, no-wrap
17396 msgid ""
17397 " int\n"
17398 " guestfs_pvresize_size (guestfs_h *g,\n"
17399 "                        const char *device,\n"
17400 "                        int64_t size);\n"
17401 "\n"
17402 msgstr ""
17403
17404 # type: textblock
17405 #. type: textblock
17406 #: ../src/guestfs-actions.pod:5677
17407 msgid ""
17408 "This command is the same as C<guestfs_pvresize> except that it allows you to "
17409 "specify the new size (in bytes) explicitly."
17410 msgstr ""
17411
17412 # type: =head2
17413 #. type: =head2
17414 #: ../src/guestfs-actions.pod:5684
17415 msgid "guestfs_pvs"
17416 msgstr ""
17417
17418 # type: verbatim
17419 #. type: verbatim
17420 #: ../src/guestfs-actions.pod:5686
17421 #, no-wrap
17422 msgid ""
17423 " char **\n"
17424 " guestfs_pvs (guestfs_h *g);\n"
17425 "\n"
17426 msgstr ""
17427
17428 # type: textblock
17429 #. type: textblock
17430 #: ../src/guestfs-actions.pod:5689 ../fish/guestfish-actions.pod:3750
17431 msgid ""
17432 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
17433 "(8)> command."
17434 msgstr ""
17435
17436 # type: textblock
17437 #. type: textblock
17438 #: ../src/guestfs-actions.pod:5692 ../fish/guestfish-actions.pod:3753
17439 msgid ""
17440 "This returns a list of just the device names that contain PVs (eg. C</dev/"
17441 "sda2>)."
17442 msgstr ""
17443
17444 # type: textblock
17445 #. type: textblock
17446 #: ../src/guestfs-actions.pod:5695
17447 msgid "See also C<guestfs_pvs_full>."
17448 msgstr ""
17449
17450 # type: =head2
17451 #. type: =head2
17452 #: ../src/guestfs-actions.pod:5703
17453 msgid "guestfs_pvs_full"
17454 msgstr ""
17455
17456 # type: verbatim
17457 #. type: verbatim
17458 #: ../src/guestfs-actions.pod:5705
17459 #, no-wrap
17460 msgid ""
17461 " struct guestfs_lvm_pv_list *\n"
17462 " guestfs_pvs_full (guestfs_h *g);\n"
17463 "\n"
17464 msgstr ""
17465
17466 # type: textblock
17467 #. type: textblock
17468 #: ../src/guestfs-actions.pod:5708 ../fish/guestfish-actions.pod:3762
17469 msgid ""
17470 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
17471 "(8)> command.  The \"full\" version includes all fields."
17472 msgstr ""
17473
17474 # type: textblock
17475 #. type: textblock
17476 #: ../src/guestfs-actions.pod:5711
17477 msgid ""
17478 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
17479 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
17480 msgstr ""
17481
17482 # type: =head2
17483 #. type: =head2
17484 #: ../src/guestfs-actions.pod:5717
17485 msgid "guestfs_pvuuid"
17486 msgstr ""
17487
17488 # type: verbatim
17489 #. type: verbatim
17490 #: ../src/guestfs-actions.pod:5719
17491 #, no-wrap
17492 msgid ""
17493 " char *\n"
17494 " guestfs_pvuuid (guestfs_h *g,\n"
17495 "                 const char *device);\n"
17496 "\n"
17497 msgstr ""
17498
17499 # type: textblock
17500 #. type: textblock
17501 #: ../src/guestfs-actions.pod:5723 ../fish/guestfish-actions.pod:3769
17502 msgid "This command returns the UUID of the LVM PV C<device>."
17503 msgstr ""
17504
17505 # type: =head2
17506 #. type: =head2
17507 #: ../src/guestfs-actions.pod:5730
17508 msgid "guestfs_pwrite"
17509 msgstr ""
17510
17511 # type: verbatim
17512 #. type: verbatim
17513 #: ../src/guestfs-actions.pod:5732
17514 #, no-wrap
17515 msgid ""
17516 " int\n"
17517 " guestfs_pwrite (guestfs_h *g,\n"
17518 "                 const char *path,\n"
17519 "                 const char *content,\n"
17520 "                 size_t content_size,\n"
17521 "                 int64_t offset);\n"
17522 "\n"
17523 msgstr ""
17524
17525 # type: textblock
17526 #. type: textblock
17527 #: ../src/guestfs-actions.pod:5739 ../fish/guestfish-actions.pod:3775
17528 msgid ""
17529 "This command writes to part of a file.  It writes the data buffer C<content> "
17530 "to the file C<path> starting at offset C<offset>."
17531 msgstr ""
17532
17533 # type: textblock
17534 #. type: textblock
17535 #: ../src/guestfs-actions.pod:5742 ../fish/guestfish-actions.pod:3778
17536 msgid ""
17537 "This command implements the L<pwrite(2)> system call, and like that system "
17538 "call it may not write the full data requested.  The return value is the "
17539 "number of bytes that were actually written to the file.  This could even be "
17540 "0, although short writes are unlikely for regular files in ordinary "
17541 "circumstances."
17542 msgstr ""
17543
17544 # type: textblock
17545 #. type: textblock
17546 #: ../src/guestfs-actions.pod:5748
17547 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
17548 msgstr ""
17549
17550 # type: =head2
17551 #. type: =head2
17552 #: ../src/guestfs-actions.pod:5757
17553 msgid "guestfs_pwrite_device"
17554 msgstr ""
17555
17556 # type: verbatim
17557 #. type: verbatim
17558 #: ../src/guestfs-actions.pod:5759
17559 #, no-wrap
17560 msgid ""
17561 " int\n"
17562 " guestfs_pwrite_device (guestfs_h *g,\n"
17563 "                        const char *device,\n"
17564 "                        const char *content,\n"
17565 "                        size_t content_size,\n"
17566 "                        int64_t offset);\n"
17567 "\n"
17568 msgstr ""
17569
17570 # type: textblock
17571 #. type: textblock
17572 #: ../src/guestfs-actions.pod:5766 ../fish/guestfish-actions.pod:3793
17573 msgid ""
17574 "This command writes to part of a device.  It writes the data buffer "
17575 "C<content> to C<device> starting at offset C<offset>."
17576 msgstr ""
17577
17578 # type: textblock
17579 #. type: textblock
17580 #: ../src/guestfs-actions.pod:5769 ../fish/guestfish-actions.pod:3796
17581 msgid ""
17582 "This command implements the L<pwrite(2)> system call, and like that system "
17583 "call it may not write the full data requested (although short writes to disk "
17584 "devices and partitions are probably impossible with standard Linux kernels)."
17585 msgstr ""
17586
17587 # type: textblock
17588 #. type: textblock
17589 #: ../src/guestfs-actions.pod:5774
17590 msgid "See also C<guestfs_pwrite>."
17591 msgstr ""
17592
17593 # type: textblock
17594 #. type: textblock
17595 #: ../src/guestfs-actions.pod:5781
17596 msgid "(Added in 1.5.20)"
17597 msgstr ""
17598
17599 # type: =head2
17600 #. type: =head2
17601 #: ../src/guestfs-actions.pod:5783
17602 msgid "guestfs_read_file"
17603 msgstr ""
17604
17605 # type: verbatim
17606 #. type: verbatim
17607 #: ../src/guestfs-actions.pod:5785
17608 #, no-wrap
17609 msgid ""
17610 " char *\n"
17611 " guestfs_read_file (guestfs_h *g,\n"
17612 "                    const char *path,\n"
17613 "                    size_t *size_r);\n"
17614 "\n"
17615 msgstr ""
17616
17617 # type: textblock
17618 #. type: textblock
17619 #: ../src/guestfs-actions.pod:5790 ../fish/guestfish-actions.pod:3810
17620 msgid "This calls returns the contents of the file C<path> as a buffer."
17621 msgstr ""
17622
17623 # type: textblock
17624 #. type: textblock
17625 #: ../src/guestfs-actions.pod:5793
17626 msgid ""
17627 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
17628 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
17629 "function is limited in the total size of file that can be handled."
17630 msgstr ""
17631
17632 # type: textblock
17633 #. type: textblock
17634 #: ../src/guestfs-actions.pod:5805
17635 msgid "(Added in 1.0.63)"
17636 msgstr ""
17637
17638 # type: =head2
17639 #. type: =head2
17640 #: ../src/guestfs-actions.pod:5807
17641 msgid "guestfs_read_lines"
17642 msgstr ""
17643
17644 # type: verbatim
17645 #. type: verbatim
17646 #: ../src/guestfs-actions.pod:5809
17647 #, no-wrap
17648 msgid ""
17649 " char **\n"
17650 " guestfs_read_lines (guestfs_h *g,\n"
17651 "                     const char *path);\n"
17652 "\n"
17653 msgstr ""
17654
17655 # type: textblock
17656 #. type: textblock
17657 #: ../src/guestfs-actions.pod:5815 ../fish/guestfish-actions.pod:3827
17658 msgid ""
17659 "The file contents are returned as a list of lines.  Trailing C<LF> and "
17660 "C<CRLF> character sequences are I<not> returned."
17661 msgstr ""
17662
17663 # type: textblock
17664 #. type: textblock
17665 #: ../src/guestfs-actions.pod:5818
17666 msgid ""
17667 "Note that this function cannot correctly handle binary files (specifically, "
17668 "files containing C<\\0> character which is treated as end of line).  For "
17669 "those you need to use the C<guestfs_read_file> function which has a more "
17670 "complex interface."
17671 msgstr ""
17672
17673 # type: =head2
17674 #. type: =head2
17675 #: ../src/guestfs-actions.pod:5829
17676 msgid "guestfs_readdir"
17677 msgstr ""
17678
17679 # type: verbatim
17680 #. type: verbatim
17681 #: ../src/guestfs-actions.pod:5831
17682 #, no-wrap
17683 msgid ""
17684 " struct guestfs_dirent_list *\n"
17685 " guestfs_readdir (guestfs_h *g,\n"
17686 "                  const char *dir);\n"
17687 "\n"
17688 msgstr ""
17689
17690 # type: textblock
17691 #. type: textblock
17692 #: ../src/guestfs-actions.pod:5835 ../fish/guestfish-actions.pod:3839
17693 msgid "This returns the list of directory entries in directory C<dir>."
17694 msgstr ""
17695
17696 # type: textblock
17697 #. type: textblock
17698 #: ../src/guestfs-actions.pod:5837 ../fish/guestfish-actions.pod:3841
17699 msgid ""
17700 "All entries in the directory are returned, including C<.> and C<..>.  The "
17701 "entries are I<not> sorted, but returned in the same order as the underlying "
17702 "filesystem."
17703 msgstr ""
17704
17705 # type: textblock
17706 #. type: textblock
17707 #: ../src/guestfs-actions.pod:5841 ../fish/guestfish-actions.pod:3845
17708 msgid ""
17709 "Also this call returns basic file type information about each file.  The "
17710 "C<ftyp> field will contain one of the following characters:"
17711 msgstr ""
17712
17713 # type: =item
17714 #. type: =item
17715 #: ../src/guestfs-actions.pod:5846 ../fish/guestfish-actions.pod:3850
17716 msgid "'b'"
17717 msgstr ""
17718
17719 # type: textblock
17720 #. type: textblock
17721 #: ../src/guestfs-actions.pod:5848 ../fish/guestfish-actions.pod:3852
17722 msgid "Block special"
17723 msgstr ""
17724
17725 # type: =item
17726 #. type: =item
17727 #: ../src/guestfs-actions.pod:5850 ../fish/guestfish-actions.pod:3854
17728 msgid "'c'"
17729 msgstr ""
17730
17731 # type: textblock
17732 #. type: textblock
17733 #: ../src/guestfs-actions.pod:5852 ../fish/guestfish-actions.pod:3856
17734 msgid "Char special"
17735 msgstr ""
17736
17737 # type: =item
17738 #. type: =item
17739 #: ../src/guestfs-actions.pod:5854 ../fish/guestfish-actions.pod:3858
17740 msgid "'d'"
17741 msgstr ""
17742
17743 # type: textblock
17744 #. type: textblock
17745 #: ../src/guestfs-actions.pod:5856 ../fish/guestfish-actions.pod:3860
17746 msgid "Directory"
17747 msgstr ""
17748
17749 # type: =item
17750 #. type: =item
17751 #: ../src/guestfs-actions.pod:5858 ../fish/guestfish-actions.pod:3862
17752 msgid "'f'"
17753 msgstr ""
17754
17755 # type: textblock
17756 #. type: textblock
17757 #: ../src/guestfs-actions.pod:5860 ../fish/guestfish-actions.pod:3864
17758 msgid "FIFO (named pipe)"
17759 msgstr ""
17760
17761 # type: =item
17762 #. type: =item
17763 #: ../src/guestfs-actions.pod:5862 ../fish/guestfish-actions.pod:3866
17764 msgid "'l'"
17765 msgstr ""
17766
17767 # type: textblock
17768 #. type: textblock
17769 #: ../src/guestfs-actions.pod:5864 ../fish/guestfish-actions.pod:3868
17770 msgid "Symbolic link"
17771 msgstr ""
17772
17773 # type: =item
17774 #. type: =item
17775 #: ../src/guestfs-actions.pod:5866 ../fish/guestfish-actions.pod:3870
17776 msgid "'r'"
17777 msgstr ""
17778
17779 # type: textblock
17780 #. type: textblock
17781 #: ../src/guestfs-actions.pod:5868 ../fish/guestfish-actions.pod:3872
17782 msgid "Regular file"
17783 msgstr ""
17784
17785 # type: =item
17786 #. type: =item
17787 #: ../src/guestfs-actions.pod:5870 ../fish/guestfish-actions.pod:3874
17788 msgid "'s'"
17789 msgstr ""
17790
17791 # type: textblock
17792 #. type: textblock
17793 #: ../src/guestfs-actions.pod:5872 ../fish/guestfish-actions.pod:3876
17794 msgid "Socket"
17795 msgstr ""
17796
17797 # type: =item
17798 #. type: =item
17799 #: ../src/guestfs-actions.pod:5874 ../fish/guestfish-actions.pod:3878
17800 msgid "'u'"
17801 msgstr ""
17802
17803 # type: textblock
17804 #. type: textblock
17805 #: ../src/guestfs-actions.pod:5876 ../fish/guestfish-actions.pod:3880
17806 msgid "Unknown file type"
17807 msgstr ""
17808
17809 # type: =item
17810 #. type: =item
17811 #: ../src/guestfs-actions.pod:5878 ../fish/guestfish-actions.pod:3882
17812 msgid "'?'"
17813 msgstr ""
17814
17815 # type: textblock
17816 #. type: textblock
17817 #: ../src/guestfs-actions.pod:5880 ../fish/guestfish-actions.pod:3884
17818 msgid ""
17819 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
17820 msgstr ""
17821
17822 # type: textblock
17823 #. type: textblock
17824 #: ../src/guestfs-actions.pod:5885
17825 msgid ""
17826 "This function is primarily intended for use by programs.  To get a simple "
17827 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
17828 "consumption, use C<guestfs_ll>."
17829 msgstr ""
17830
17831 # type: textblock
17832 #. type: textblock
17833 #: ../src/guestfs-actions.pod:5889
17834 msgid ""
17835 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
17836 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
17837 msgstr ""
17838
17839 # type: =head2
17840 #. type: =head2
17841 #: ../src/guestfs-actions.pod:5895
17842 msgid "guestfs_readlink"
17843 msgstr ""
17844
17845 # type: verbatim
17846 #. type: verbatim
17847 #: ../src/guestfs-actions.pod:5897
17848 #, no-wrap
17849 msgid ""
17850 " char *\n"
17851 " guestfs_readlink (guestfs_h *g,\n"
17852 "                   const char *path);\n"
17853 "\n"
17854 msgstr ""
17855
17856 # type: textblock
17857 #. type: textblock
17858 #: ../src/guestfs-actions.pod:5901 ../fish/guestfish-actions.pod:3897
17859 msgid "This command reads the target of a symbolic link."
17860 msgstr ""
17861
17862 # type: =head2
17863 #. type: =head2
17864 #: ../src/guestfs-actions.pod:5908
17865 msgid "guestfs_readlinklist"
17866 msgstr ""
17867
17868 # type: verbatim
17869 #. type: verbatim
17870 #: ../src/guestfs-actions.pod:5910
17871 #, no-wrap
17872 msgid ""
17873 " char **\n"
17874 " guestfs_readlinklist (guestfs_h *g,\n"
17875 "                       const char *path,\n"
17876 "                       char *const *names);\n"
17877 "\n"
17878 msgstr ""
17879
17880 # type: textblock
17881 #. type: textblock
17882 #: ../src/guestfs-actions.pod:5915 ../fish/guestfish-actions.pod:3903
17883 msgid ""
17884 "This call allows you to do a C<readlink> operation on multiple files, where "
17885 "all files are in the directory C<path>.  C<names> is the list of files from "
17886 "this directory."
17887 msgstr ""
17888
17889 # type: textblock
17890 #. type: textblock
17891 #: ../src/guestfs-actions.pod:5919 ../fish/guestfish-actions.pod:3907
17892 msgid ""
17893 "On return you get a list of strings, with a one-to-one correspondence to the "
17894 "C<names> list.  Each string is the value of the symbolic link."
17895 msgstr ""
17896
17897 # type: textblock
17898 #. type: textblock
17899 #: ../src/guestfs-actions.pod:5923 ../fish/guestfish-actions.pod:3911
17900 msgid ""
17901 "If the C<readlink(2)> operation fails on any name, then the corresponding "
17902 "result string is the empty string C<\"\">.  However the whole operation is "
17903 "completed even if there were C<readlink(2)> errors, and so you can call this "
17904 "function with names where you don't know if they are symbolic links already "
17905 "(albeit slightly less efficient)."
17906 msgstr ""
17907
17908 # type: textblock
17909 #. type: textblock
17910 #: ../src/guestfs-actions.pod:5930 ../fish/guestfish-actions.pod:3918
17911 msgid ""
17912 "This call is intended for programs that want to efficiently list a directory "
17913 "contents without making many round-trips.  Very long directory listings "
17914 "might cause the protocol message size to be exceeded, causing this call to "
17915 "fail.  The caller must split up such requests into smaller groups of names."
17916 msgstr ""
17917
17918 # type: =head2
17919 #. type: =head2
17920 #: ../src/guestfs-actions.pod:5943
17921 msgid "guestfs_realpath"
17922 msgstr ""
17923
17924 # type: verbatim
17925 #. type: verbatim
17926 #: ../src/guestfs-actions.pod:5945
17927 #, no-wrap
17928 msgid ""
17929 " char *\n"
17930 " guestfs_realpath (guestfs_h *g,\n"
17931 "                   const char *path);\n"
17932 "\n"
17933 msgstr ""
17934
17935 # type: textblock
17936 #. type: textblock
17937 #: ../src/guestfs-actions.pod:5949 ../fish/guestfish-actions.pod:3929
17938 msgid ""
17939 "Return the canonicalized absolute pathname of C<path>.  The returned path "
17940 "has no C<.>, C<..> or symbolic link path elements."
17941 msgstr ""
17942
17943 # type: =head2
17944 #. type: =head2
17945 #: ../src/guestfs-actions.pod:5957
17946 msgid "guestfs_removexattr"
17947 msgstr ""
17948
17949 # type: verbatim
17950 #. type: verbatim
17951 #: ../src/guestfs-actions.pod:5959
17952 #, no-wrap
17953 msgid ""
17954 " int\n"
17955 " guestfs_removexattr (guestfs_h *g,\n"
17956 "                      const char *xattr,\n"
17957 "                      const char *path);\n"
17958 "\n"
17959 msgstr ""
17960
17961 # type: textblock
17962 #. type: textblock
17963 #: ../src/guestfs-actions.pod:5964 ../fish/guestfish-actions.pod:3936
17964 msgid ""
17965 "This call removes the extended attribute named C<xattr> of the file C<path>."
17966 msgstr ""
17967
17968 # type: textblock
17969 #. type: textblock
17970 #: ../src/guestfs-actions.pod:5967
17971 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
17972 msgstr ""
17973
17974 # type: =head2
17975 #. type: =head2
17976 #: ../src/guestfs-actions.pod:5973
17977 msgid "guestfs_resize2fs"
17978 msgstr ""
17979
17980 # type: verbatim
17981 #. type: verbatim
17982 #: ../src/guestfs-actions.pod:5975
17983 #, no-wrap
17984 msgid ""
17985 " int\n"
17986 " guestfs_resize2fs (guestfs_h *g,\n"
17987 "                    const char *device);\n"
17988 "\n"
17989 msgstr ""
17990
17991 # type: textblock
17992 #. type: textblock
17993 #: ../src/guestfs-actions.pod:5979 ../fish/guestfish-actions.pod:3945
17994 msgid ""
17995 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
17996 "underlying device."
17997 msgstr ""
17998
17999 # type: textblock
18000 #. type: textblock
18001 #: ../src/guestfs-actions.pod:5982
18002 msgid ""
18003 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
18004 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
18005 "sometimes gives an error about this and sometimes not.  In any case, it is "
18006 "always safe to call C<guestfs_e2fsck_f> before calling this function."
18007 msgstr ""
18008
18009 #. type: =head2
18010 #: ../src/guestfs-actions.pod:5992
18011 msgid "guestfs_resize2fs_M"
18012 msgstr ""
18013
18014 #. type: verbatim
18015 #: ../src/guestfs-actions.pod:5994
18016 #, no-wrap
18017 msgid ""
18018 " int\n"
18019 " guestfs_resize2fs_M (guestfs_h *g,\n"
18020 "                      const char *device);\n"
18021 "\n"
18022 msgstr ""
18023
18024 #. type: textblock
18025 #: ../src/guestfs-actions.pod:5998
18026 msgid ""
18027 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
18028 "resized to its minimum size.  This works like the I<-M> option to the "
18029 "C<resize2fs> command."
18030 msgstr ""
18031
18032 #. type: textblock
18033 #: ../src/guestfs-actions.pod:6002
18034 msgid ""
18035 "To get the resulting size of the filesystem you should call "
18036 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
18037 "These two numbers, multiplied together, give the resulting size of the "
18038 "minimal filesystem in bytes."
18039 msgstr ""
18040
18041 # type: =head2
18042 #. type: =head2
18043 #: ../src/guestfs-actions.pod:6011
18044 msgid "guestfs_resize2fs_size"
18045 msgstr ""
18046
18047 # type: verbatim
18048 #. type: verbatim
18049 #: ../src/guestfs-actions.pod:6013
18050 #, no-wrap
18051 msgid ""
18052 " int\n"
18053 " guestfs_resize2fs_size (guestfs_h *g,\n"
18054 "                         const char *device,\n"
18055 "                         int64_t size);\n"
18056 "\n"
18057 msgstr ""
18058
18059 # type: textblock
18060 #. type: textblock
18061 #: ../src/guestfs-actions.pod:6018
18062 msgid ""
18063 "This command is the same as C<guestfs_resize2fs> except that it allows you "
18064 "to specify the new size (in bytes) explicitly."
18065 msgstr ""
18066
18067 # type: =head2
18068 #. type: =head2
18069 #: ../src/guestfs-actions.pod:6025
18070 msgid "guestfs_rm"
18071 msgstr ""
18072
18073 # type: verbatim
18074 #. type: verbatim
18075 #: ../src/guestfs-actions.pod:6027
18076 #, no-wrap
18077 msgid ""
18078 " int\n"
18079 " guestfs_rm (guestfs_h *g,\n"
18080 "             const char *path);\n"
18081 "\n"
18082 msgstr ""
18083
18084 # type: textblock
18085 #. type: textblock
18086 #: ../src/guestfs-actions.pod:6031 ../fish/guestfish-actions.pod:3978
18087 msgid "Remove the single file C<path>."
18088 msgstr ""
18089
18090 # type: =head2
18091 #. type: =head2
18092 #: ../src/guestfs-actions.pod:6037
18093 msgid "guestfs_rm_rf"
18094 msgstr ""
18095
18096 # type: verbatim
18097 #. type: verbatim
18098 #: ../src/guestfs-actions.pod:6039
18099 #, no-wrap
18100 msgid ""
18101 " int\n"
18102 " guestfs_rm_rf (guestfs_h *g,\n"
18103 "                const char *path);\n"
18104 "\n"
18105 msgstr ""
18106
18107 # type: textblock
18108 #. type: textblock
18109 #: ../src/guestfs-actions.pod:6043 ../fish/guestfish-actions.pod:3984
18110 msgid ""
18111 "Remove the file or directory C<path>, recursively removing the contents if "
18112 "its a directory.  This is like the C<rm -rf> shell command."
18113 msgstr ""
18114
18115 # type: =head2
18116 #. type: =head2
18117 #: ../src/guestfs-actions.pod:6051
18118 msgid "guestfs_rmdir"
18119 msgstr ""
18120
18121 # type: verbatim
18122 #. type: verbatim
18123 #: ../src/guestfs-actions.pod:6053
18124 #, no-wrap
18125 msgid ""
18126 " int\n"
18127 " guestfs_rmdir (guestfs_h *g,\n"
18128 "                const char *path);\n"
18129 "\n"
18130 msgstr ""
18131
18132 # type: textblock
18133 #. type: textblock
18134 #: ../src/guestfs-actions.pod:6057 ../fish/guestfish-actions.pod:3992
18135 msgid "Remove the single directory C<path>."
18136 msgstr ""
18137
18138 # type: =head2
18139 #. type: =head2
18140 #: ../src/guestfs-actions.pod:6063
18141 msgid "guestfs_rmmountpoint"
18142 msgstr ""
18143
18144 # type: verbatim
18145 #. type: verbatim
18146 #: ../src/guestfs-actions.pod:6065
18147 #, no-wrap
18148 msgid ""
18149 " int\n"
18150 " guestfs_rmmountpoint (guestfs_h *g,\n"
18151 "                       const char *exemptpath);\n"
18152 "\n"
18153 msgstr ""
18154
18155 # type: textblock
18156 #. type: textblock
18157 #: ../src/guestfs-actions.pod:6069
18158 msgid ""
18159 "This calls removes a mountpoint that was previously created with "
18160 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
18161 msgstr ""
18162
18163 # type: =head2
18164 #. type: =head2
18165 #: ../src/guestfs-actions.pod:6077
18166 msgid "guestfs_scrub_device"
18167 msgstr ""
18168
18169 # type: verbatim
18170 #. type: verbatim
18171 #: ../src/guestfs-actions.pod:6079
18172 #, no-wrap
18173 msgid ""
18174 " int\n"
18175 " guestfs_scrub_device (guestfs_h *g,\n"
18176 "                       const char *device);\n"
18177 "\n"
18178 msgstr ""
18179
18180 # type: textblock
18181 #. type: textblock
18182 #: ../src/guestfs-actions.pod:6083 ../fish/guestfish-actions.pod:4006
18183 msgid ""
18184 "This command writes patterns over C<device> to make data retrieval more "
18185 "difficult."
18186 msgstr ""
18187
18188 # type: textblock
18189 #. type: textblock
18190 #: ../src/guestfs-actions.pod:6086 ../src/guestfs-actions.pod:6107
18191 #: ../src/guestfs-actions.pod:6126 ../fish/guestfish-actions.pod:4009
18192 #: ../fish/guestfish-actions.pod:4024 ../fish/guestfish-actions.pod:4037
18193 msgid ""
18194 "It is an interface to the L<scrub(1)> program.  See that manual page for "
18195 "more details."
18196 msgstr ""
18197
18198 # type: textblock
18199 #. type: textblock
18200 #: ../src/guestfs-actions.pod:6094 ../src/guestfs-actions.pod:6112
18201 #: ../src/guestfs-actions.pod:6131
18202 msgid "(Added in 1.0.52)"
18203 msgstr ""
18204
18205 # type: =head2
18206 #. type: =head2
18207 #: ../src/guestfs-actions.pod:6096
18208 msgid "guestfs_scrub_file"
18209 msgstr ""
18210
18211 # type: verbatim
18212 #. type: verbatim
18213 #: ../src/guestfs-actions.pod:6098
18214 #, no-wrap
18215 msgid ""
18216 " int\n"
18217 " guestfs_scrub_file (guestfs_h *g,\n"
18218 "                     const char *file);\n"
18219 "\n"
18220 msgstr ""
18221
18222 # type: textblock
18223 #. type: textblock
18224 #: ../src/guestfs-actions.pod:6102 ../fish/guestfish-actions.pod:4019
18225 msgid ""
18226 "This command writes patterns over a file to make data retrieval more "
18227 "difficult."
18228 msgstr ""
18229
18230 # type: textblock
18231 #. type: textblock
18232 #: ../src/guestfs-actions.pod:6105 ../fish/guestfish-actions.pod:4022
18233 msgid "The file is I<removed> after scrubbing."
18234 msgstr ""
18235
18236 # type: =head2
18237 #. type: =head2
18238 #: ../src/guestfs-actions.pod:6114
18239 msgid "guestfs_scrub_freespace"
18240 msgstr ""
18241
18242 # type: verbatim
18243 #. type: verbatim
18244 #: ../src/guestfs-actions.pod:6116
18245 #, no-wrap
18246 msgid ""
18247 " int\n"
18248 " guestfs_scrub_freespace (guestfs_h *g,\n"
18249 "                          const char *dir);\n"
18250 "\n"
18251 msgstr ""
18252
18253 # type: textblock
18254 #. type: textblock
18255 #: ../src/guestfs-actions.pod:6120
18256 msgid ""
18257 "This command creates the directory C<dir> and then fills it with files until "
18258 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
18259 "and deletes them.  The intention is to scrub any free space on the partition "
18260 "containing C<dir>."
18261 msgstr ""
18262
18263 # type: =head2
18264 #. type: =head2
18265 #: ../src/guestfs-actions.pod:6133
18266 msgid "guestfs_set_append"
18267 msgstr ""
18268
18269 # type: verbatim
18270 #. type: verbatim
18271 #: ../src/guestfs-actions.pod:6135
18272 #, no-wrap
18273 msgid ""
18274 " int\n"
18275 " guestfs_set_append (guestfs_h *g,\n"
18276 "                     const char *append);\n"
18277 "\n"
18278 msgstr ""
18279
18280 # type: textblock
18281 #. type: textblock
18282 #: ../src/guestfs-actions.pod:6139 ../fish/guestfish-actions.pod:4046
18283 msgid ""
18284 "This function is used to add additional options to the guest kernel command "
18285 "line."
18286 msgstr ""
18287
18288 # type: textblock
18289 #. type: textblock
18290 #: ../src/guestfs-actions.pod:6142 ../fish/guestfish-actions.pod:4049
18291 msgid ""
18292 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
18293 "environment variable."
18294 msgstr ""
18295
18296 # type: textblock
18297 #. type: textblock
18298 #: ../src/guestfs-actions.pod:6145 ../fish/guestfish-actions.pod:4052
18299 msgid ""
18300 "Setting C<append> to C<NULL> means I<no> additional options are passed "
18301 "(libguestfs always adds a few of its own)."
18302 msgstr ""
18303
18304 #. type: =head2
18305 #: ../src/guestfs-actions.pod:6152
18306 msgid "guestfs_set_attach_method"
18307 msgstr ""
18308
18309 #. type: verbatim
18310 #: ../src/guestfs-actions.pod:6154
18311 #, no-wrap
18312 msgid ""
18313 " int\n"
18314 " guestfs_set_attach_method (guestfs_h *g,\n"
18315 "                            const char *attachmethod);\n"
18316 "\n"
18317 msgstr ""
18318
18319 #. type: textblock
18320 #: ../src/guestfs-actions.pod:6158 ../fish/guestfish-actions.pod:4061
18321 msgid ""
18322 "Set the method that libguestfs uses to connect to the back end guestfsd "
18323 "daemon.  Possible methods are:"
18324 msgstr ""
18325
18326 #. type: textblock
18327 #: ../src/guestfs-actions.pod:6165 ../fish/guestfish-actions.pod:4068
18328 msgid ""
18329 "Launch an appliance and connect to it.  This is the ordinary method and the "
18330 "default."
18331 msgstr ""
18332
18333 #. type: =item
18334 #: ../src/guestfs-actions.pod:6168 ../fish/guestfish-actions.pod:4071
18335 msgid "C<unix:I<path>>"
18336 msgstr ""
18337
18338 #. type: textblock
18339 #: ../src/guestfs-actions.pod:6170 ../fish/guestfish-actions.pod:4073
18340 msgid "Connect to the Unix domain socket I<path>."
18341 msgstr ""
18342
18343 #. type: textblock
18344 #: ../src/guestfs-actions.pod:6172 ../fish/guestfish-actions.pod:4075
18345 msgid ""
18346 "This method lets you connect to an existing daemon or (using virtio-serial) "
18347 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
18348 "RUNNING DAEMONS>."
18349 msgstr ""
18350
18351 # type: =head2
18352 #. type: =head2
18353 #: ../src/guestfs-actions.pod:6182
18354 msgid "guestfs_set_autosync"
18355 msgstr ""
18356
18357 # type: verbatim
18358 #. type: verbatim
18359 #: ../src/guestfs-actions.pod:6184
18360 #, no-wrap
18361 msgid ""
18362 " int\n"
18363 " guestfs_set_autosync (guestfs_h *g,\n"
18364 "                       int autosync);\n"
18365 "\n"
18366 msgstr ""
18367
18368 #. type: textblock
18369 #: ../src/guestfs-actions.pod:6188 ../fish/guestfish-actions.pod:4087
18370 msgid ""
18371 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
18372 "effort attempt to make filesystems consistent and synchronized when the "
18373 "handle is closed (also if the program exits without closing handles)."
18374 msgstr ""
18375
18376 # type: textblock
18377 #. type: textblock
18378 #: ../src/guestfs-actions.pod:6193 ../fish/guestfish-actions.pod:4092
18379 msgid ""
18380 "This is enabled by default (since libguestfs 1.5.24, previously it was "
18381 "disabled by default)."
18382 msgstr ""
18383
18384 # type: =head2
18385 #. type: =head2
18386 #: ../src/guestfs-actions.pod:6200
18387 msgid "guestfs_set_direct"
18388 msgstr ""
18389
18390 # type: verbatim
18391 #. type: verbatim
18392 #: ../src/guestfs-actions.pod:6202
18393 #, no-wrap
18394 msgid ""
18395 " int\n"
18396 " guestfs_set_direct (guestfs_h *g,\n"
18397 "                     int direct);\n"
18398 "\n"
18399 msgstr ""
18400
18401 # type: textblock
18402 #. type: textblock
18403 #: ../src/guestfs-actions.pod:6206 ../fish/guestfish-actions.pod:4101
18404 msgid ""
18405 "If the direct appliance mode flag is enabled, then stdin and stdout are "
18406 "passed directly through to the appliance once it is launched."
18407 msgstr ""
18408
18409 # type: textblock
18410 #. type: textblock
18411 #: ../src/guestfs-actions.pod:6210
18412 msgid ""
18413 "One consequence of this is that log messages aren't caught by the library "
18414 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
18415 "stdout."
18416 msgstr ""
18417
18418 # type: textblock
18419 #. type: textblock
18420 #: ../src/guestfs-actions.pod:6214 ../fish/guestfish-actions.pod:4109
18421 msgid "You probably don't want to use this unless you know what you are doing."
18422 msgstr ""
18423
18424 # type: textblock
18425 #. type: textblock
18426 #: ../src/guestfs-actions.pod:6217 ../fish/guestfish-actions.pod:4112
18427 msgid "The default is disabled."
18428 msgstr ""
18429
18430 # type: =head2
18431 #. type: =head2
18432 #: ../src/guestfs-actions.pod:6223
18433 msgid "guestfs_set_e2label"
18434 msgstr ""
18435
18436 # type: verbatim
18437 #. type: verbatim
18438 #: ../src/guestfs-actions.pod:6225
18439 #, no-wrap
18440 msgid ""
18441 " int\n"
18442 " guestfs_set_e2label (guestfs_h *g,\n"
18443 "                      const char *device,\n"
18444 "                      const char *label);\n"
18445 "\n"
18446 msgstr ""
18447
18448 # type: textblock
18449 #. type: textblock
18450 #: ../src/guestfs-actions.pod:6230 ../fish/guestfish-actions.pod:4118
18451 msgid ""
18452 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
18453 "C<label>.  Filesystem labels are limited to 16 characters."
18454 msgstr ""
18455
18456 # type: textblock
18457 #. type: textblock
18458 #: ../src/guestfs-actions.pod:6234
18459 msgid ""
18460 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
18461 "the existing label on a filesystem."
18462 msgstr ""
18463
18464 # type: =head2
18465 #. type: =head2
18466 #: ../src/guestfs-actions.pod:6241
18467 msgid "guestfs_set_e2uuid"
18468 msgstr ""
18469
18470 # type: verbatim
18471 #. type: verbatim
18472 #: ../src/guestfs-actions.pod:6243
18473 #, no-wrap
18474 msgid ""
18475 " int\n"
18476 " guestfs_set_e2uuid (guestfs_h *g,\n"
18477 "                     const char *device,\n"
18478 "                     const char *uuid);\n"
18479 "\n"
18480 msgstr ""
18481
18482 # type: textblock
18483 #. type: textblock
18484 #: ../src/guestfs-actions.pod:6248 ../fish/guestfish-actions.pod:4129
18485 msgid ""
18486 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
18487 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
18488 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
18489 msgstr ""
18490
18491 # type: textblock
18492 #. type: textblock
18493 #: ../src/guestfs-actions.pod:6253
18494 msgid ""
18495 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
18496 "the existing UUID of a filesystem."
18497 msgstr ""
18498
18499 # type: =head2
18500 #. type: =head2
18501 #: ../src/guestfs-actions.pod:6260
18502 msgid "guestfs_set_memsize"
18503 msgstr ""
18504
18505 # type: verbatim
18506 #. type: verbatim
18507 #: ../src/guestfs-actions.pod:6262
18508 #, no-wrap
18509 msgid ""
18510 " int\n"
18511 " guestfs_set_memsize (guestfs_h *g,\n"
18512 "                      int memsize);\n"
18513 "\n"
18514 msgstr ""
18515
18516 # type: textblock
18517 #. type: textblock
18518 #: ../src/guestfs-actions.pod:6266
18519 msgid ""
18520 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
18521 "This only has any effect if called before C<guestfs_launch>."
18522 msgstr ""
18523
18524 # type: textblock
18525 #. type: textblock
18526 #: ../src/guestfs-actions.pod:6270 ../fish/guestfish-actions.pod:4147
18527 msgid ""
18528 "You can also change this by setting the environment variable "
18529 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
18530 msgstr ""
18531
18532 # type: =head2
18533 #. type: =head2
18534 #: ../src/guestfs-actions.pod:6281
18535 msgid "guestfs_set_network"
18536 msgstr ""
18537
18538 # type: verbatim
18539 #. type: verbatim
18540 #: ../src/guestfs-actions.pod:6283
18541 #, no-wrap
18542 msgid ""
18543 " int\n"
18544 " guestfs_set_network (guestfs_h *g,\n"
18545 "                      int network);\n"
18546 "\n"
18547 msgstr ""
18548
18549 # type: textblock
18550 #. type: textblock
18551 #: ../src/guestfs-actions.pod:6287 ../fish/guestfish-actions.pod:4160
18552 msgid ""
18553 "If C<network> is true, then the network is enabled in the libguestfs "
18554 "appliance.  The default is false."
18555 msgstr ""
18556
18557 # type: textblock
18558 #. type: textblock
18559 #: ../src/guestfs-actions.pod:6290 ../fish/guestfish-actions.pod:4163
18560 msgid ""
18561 "This affects whether commands are able to access the network (see L<guestfs"
18562 "(3)/RUNNING COMMANDS>)."
18563 msgstr ""
18564
18565 # type: textblock
18566 #. type: textblock
18567 #: ../src/guestfs-actions.pod:6293
18568 msgid ""
18569 "You must call this before calling C<guestfs_launch>, otherwise it has no "
18570 "effect."
18571 msgstr ""
18572
18573 # type: =head2
18574 #. type: =head2
18575 #: ../src/guestfs-actions.pod:6300
18576 msgid "guestfs_set_path"
18577 msgstr ""
18578
18579 # type: verbatim
18580 #. type: verbatim
18581 #: ../src/guestfs-actions.pod:6302
18582 #, no-wrap
18583 msgid ""
18584 " int\n"
18585 " guestfs_set_path (guestfs_h *g,\n"
18586 "                   const char *searchpath);\n"
18587 "\n"
18588 msgstr ""
18589
18590 # type: textblock
18591 #. type: textblock
18592 #: ../src/guestfs-actions.pod:6306 ../fish/guestfish-actions.pod:4175
18593 msgid "Set the path that libguestfs searches for kernel and initrd.img."
18594 msgstr ""
18595
18596 # type: textblock
18597 #. type: textblock
18598 #: ../src/guestfs-actions.pod:6308 ../fish/guestfish-actions.pod:4177
18599 msgid ""
18600 "The default is C<$libdir/guestfs> unless overridden by setting "
18601 "C<LIBGUESTFS_PATH> environment variable."
18602 msgstr ""
18603
18604 # type: textblock
18605 #. type: textblock
18606 #: ../src/guestfs-actions.pod:6311 ../fish/guestfish-actions.pod:4180
18607 msgid "Setting C<path> to C<NULL> restores the default path."
18608 msgstr ""
18609
18610 # type: =head2
18611 #. type: =head2
18612 #: ../src/guestfs-actions.pod:6317
18613 msgid "guestfs_set_qemu"
18614 msgstr ""
18615
18616 # type: verbatim
18617 #. type: verbatim
18618 #: ../src/guestfs-actions.pod:6319
18619 #, no-wrap
18620 msgid ""
18621 " int\n"
18622 " guestfs_set_qemu (guestfs_h *g,\n"
18623 "                   const char *qemu);\n"
18624 "\n"
18625 msgstr ""
18626
18627 # type: textblock
18628 #. type: textblock
18629 #: ../src/guestfs-actions.pod:6323 ../fish/guestfish-actions.pod:4188
18630 msgid "Set the qemu binary that we will use."
18631 msgstr ""
18632
18633 # type: textblock
18634 #. type: textblock
18635 #: ../src/guestfs-actions.pod:6325 ../fish/guestfish-actions.pod:4190
18636 msgid ""
18637 "The default is chosen when the library was compiled by the configure script."
18638 msgstr ""
18639
18640 # type: textblock
18641 #. type: textblock
18642 #: ../src/guestfs-actions.pod:6328 ../fish/guestfish-actions.pod:4193
18643 msgid ""
18644 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
18645 "variable."
18646 msgstr ""
18647
18648 # type: textblock
18649 #. type: textblock
18650 #: ../src/guestfs-actions.pod:6331 ../fish/guestfish-actions.pod:4196
18651 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
18652 msgstr ""
18653
18654 # type: textblock
18655 #. type: textblock
18656 #: ../src/guestfs-actions.pod:6333 ../fish/guestfish-actions.pod:4198
18657 msgid ""
18658 "Note that you should call this function as early as possible after creating "
18659 "the handle.  This is because some pre-launch operations depend on testing "
18660 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
18661 "don't retest features, and so you might see inconsistent results.  Using the "
18662 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
18663 "the qemu binary at the same time as the handle is created."
18664 msgstr ""
18665
18666 # type: =head2
18667 #. type: =head2
18668 #: ../src/guestfs-actions.pod:6345
18669 msgid "guestfs_set_recovery_proc"
18670 msgstr ""
18671
18672 # type: verbatim
18673 #. type: verbatim
18674 #: ../src/guestfs-actions.pod:6347
18675 #, no-wrap
18676 msgid ""
18677 " int\n"
18678 " guestfs_set_recovery_proc (guestfs_h *g,\n"
18679 "                            int recoveryproc);\n"
18680 "\n"
18681 msgstr ""
18682
18683 # type: textblock
18684 #. type: textblock
18685 #: ../src/guestfs-actions.pod:6351
18686 msgid ""
18687 "If this is called with the parameter C<false> then C<guestfs_launch> does "
18688 "not create a recovery process.  The purpose of the recovery process is to "
18689 "stop runaway qemu processes in the case where the main program aborts "
18690 "abruptly."
18691 msgstr ""
18692
18693 # type: textblock
18694 #. type: textblock
18695 #: ../src/guestfs-actions.pod:6356
18696 msgid ""
18697 "This only has any effect if called before C<guestfs_launch>, and the default "
18698 "is true."
18699 msgstr ""
18700
18701 # type: textblock
18702 #. type: textblock
18703 #: ../src/guestfs-actions.pod:6359 ../fish/guestfish-actions.pod:4220
18704 msgid ""
18705 "About the only time when you would want to disable this is if the main "
18706 "process will fork itself into the background (\"daemonize\" itself).  In "
18707 "this case the recovery process thinks that the main program has disappeared "
18708 "and so kills qemu, which is not very helpful."
18709 msgstr ""
18710
18711 # type: =head2
18712 #. type: =head2
18713 #: ../src/guestfs-actions.pod:6369
18714 msgid "guestfs_set_selinux"
18715 msgstr ""
18716
18717 # type: verbatim
18718 #. type: verbatim
18719 #: ../src/guestfs-actions.pod:6371
18720 #, no-wrap
18721 msgid ""
18722 " int\n"
18723 " guestfs_set_selinux (guestfs_h *g,\n"
18724 "                      int selinux);\n"
18725 "\n"
18726 msgstr ""
18727
18728 # type: textblock
18729 #. type: textblock
18730 #: ../src/guestfs-actions.pod:6375 ../fish/guestfish-actions.pod:4232
18731 msgid ""
18732 "This sets the selinux flag that is passed to the appliance at boot time.  "
18733 "The default is C<selinux=0> (disabled)."
18734 msgstr ""
18735
18736 # type: textblock
18737 #. type: textblock
18738 #: ../src/guestfs-actions.pod:6378 ../fish/guestfish-actions.pod:4235
18739 msgid ""
18740 "Note that if SELinux is enabled, it is always in Permissive mode "
18741 "(C<enforcing=0>)."
18742 msgstr ""
18743
18744 # type: =head2
18745 #. type: =head2
18746 #: ../src/guestfs-actions.pod:6388
18747 msgid "guestfs_set_trace"
18748 msgstr ""
18749
18750 # type: verbatim
18751 #. type: verbatim
18752 #: ../src/guestfs-actions.pod:6390
18753 #, no-wrap
18754 msgid ""
18755 " int\n"
18756 " guestfs_set_trace (guestfs_h *g,\n"
18757 "                    int trace);\n"
18758 "\n"
18759 msgstr ""
18760
18761 #. type: textblock
18762 #: ../src/guestfs-actions.pod:6394 ../fish/guestfish-actions.pod:4247
18763 msgid ""
18764 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
18765 "return values are traced."
18766 msgstr ""
18767
18768 # type: textblock
18769 #. type: textblock
18770 #: ../src/guestfs-actions.pod:6397 ../fish/guestfish-actions.pod:4250
18771 msgid ""
18772 "If you want to trace C API calls into libguestfs (and other libraries) then "
18773 "possibly a better way is to use the external ltrace(1) command."
18774 msgstr ""
18775
18776 # type: textblock
18777 #. type: textblock
18778 #: ../src/guestfs-actions.pod:6401 ../fish/guestfish-actions.pod:4254
18779 msgid ""
18780 "Command traces are disabled unless the environment variable "
18781 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
18782 msgstr ""
18783
18784 #. type: textblock
18785 #: ../src/guestfs-actions.pod:6404
18786 msgid ""
18787 "Trace messages are normally sent to C<stderr>, unless you register a "
18788 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
18789 msgstr ""
18790
18791 # type: =head2
18792 #. type: =head2
18793 #: ../src/guestfs-actions.pod:6412
18794 msgid "guestfs_set_verbose"
18795 msgstr ""
18796
18797 # type: verbatim
18798 #. type: verbatim
18799 #: ../src/guestfs-actions.pod:6414
18800 #, no-wrap
18801 msgid ""
18802 " int\n"
18803 " guestfs_set_verbose (guestfs_h *g,\n"
18804 "                      int verbose);\n"
18805 "\n"
18806 msgstr ""
18807
18808 #. type: textblock
18809 #: ../src/guestfs-actions.pod:6418 ../fish/guestfish-actions.pod:4267
18810 msgid "If C<verbose> is true, this turns on verbose messages."
18811 msgstr ""
18812
18813 # type: textblock
18814 #. type: textblock
18815 #: ../src/guestfs-actions.pod:6420 ../fish/guestfish-actions.pod:4269
18816 msgid ""
18817 "Verbose messages are disabled unless the environment variable "
18818 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
18819 msgstr ""
18820
18821 #. type: textblock
18822 #: ../src/guestfs-actions.pod:6423
18823 msgid ""
18824 "Verbose messages are normally sent to C<stderr>, unless you register a "
18825 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
18826 msgstr ""
18827
18828 # type: =head2
18829 #. type: =head2
18830 #: ../src/guestfs-actions.pod:6431
18831 msgid "guestfs_setcon"
18832 msgstr ""
18833
18834 # type: verbatim
18835 #. type: verbatim
18836 #: ../src/guestfs-actions.pod:6433
18837 #, no-wrap
18838 msgid ""
18839 " int\n"
18840 " guestfs_setcon (guestfs_h *g,\n"
18841 "                 const char *context);\n"
18842 "\n"
18843 msgstr ""
18844
18845 # type: textblock
18846 #. type: textblock
18847 #: ../src/guestfs-actions.pod:6437 ../fish/guestfish-actions.pod:4280
18848 msgid ""
18849 "This sets the SELinux security context of the daemon to the string "
18850 "C<context>."
18851 msgstr ""
18852
18853 # type: textblock
18854 #. type: textblock
18855 #: ../src/guestfs-actions.pod:6440 ../fish/guestfish-actions.pod:4283
18856 msgid "See the documentation about SELINUX in L<guestfs(3)>."
18857 msgstr ""
18858
18859 # type: =head2
18860 #. type: =head2
18861 #: ../src/guestfs-actions.pod:6446
18862 msgid "guestfs_setxattr"
18863 msgstr ""
18864
18865 # type: verbatim
18866 #. type: verbatim
18867 #: ../src/guestfs-actions.pod:6448
18868 #, no-wrap
18869 msgid ""
18870 " int\n"
18871 " guestfs_setxattr (guestfs_h *g,\n"
18872 "                   const char *xattr,\n"
18873 "                   const char *val,\n"
18874 "                   int vallen,\n"
18875 "                   const char *path);\n"
18876 "\n"
18877 msgstr ""
18878
18879 # type: textblock
18880 #. type: textblock
18881 #: ../src/guestfs-actions.pod:6455 ../fish/guestfish-actions.pod:4289
18882 msgid ""
18883 "This call sets the extended attribute named C<xattr> of the file C<path> to "
18884 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
18885 msgstr ""
18886
18887 # type: textblock
18888 #. type: textblock
18889 #: ../src/guestfs-actions.pod:6459
18890 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
18891 msgstr ""
18892
18893 # type: =head2
18894 #. type: =head2
18895 #: ../src/guestfs-actions.pod:6465
18896 msgid "guestfs_sfdisk"
18897 msgstr ""
18898
18899 # type: verbatim
18900 #. type: verbatim
18901 #: ../src/guestfs-actions.pod:6467
18902 #, no-wrap
18903 msgid ""
18904 " int\n"
18905 " guestfs_sfdisk (guestfs_h *g,\n"
18906 "                 const char *device,\n"
18907 "                 int cyls,\n"
18908 "                 int heads,\n"
18909 "                 int sectors,\n"
18910 "                 char *const *lines);\n"
18911 "\n"
18912 msgstr ""
18913
18914 # type: textblock
18915 #. type: textblock
18916 #: ../src/guestfs-actions.pod:6475 ../fish/guestfish-actions.pod:4299
18917 msgid ""
18918 "This is a direct interface to the L<sfdisk(8)> program for creating "
18919 "partitions on block devices."
18920 msgstr ""
18921
18922 # type: textblock
18923 #. type: textblock
18924 #: ../src/guestfs-actions.pod:6478 ../fish/guestfish-actions.pod:4302
18925 msgid "C<device> should be a block device, for example C</dev/sda>."
18926 msgstr ""
18927
18928 # type: textblock
18929 #. type: textblock
18930 #: ../src/guestfs-actions.pod:6480 ../fish/guestfish-actions.pod:4304
18931 msgid ""
18932 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
18933 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
18934 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
18935 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
18936 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
18937 "the kernel) cannot work out the right geometry and you will need to tell it."
18938 msgstr ""
18939
18940 # type: textblock
18941 #. type: textblock
18942 #: ../src/guestfs-actions.pod:6488 ../fish/guestfish-actions.pod:4312
18943 msgid ""
18944 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
18945 "refer to the L<sfdisk(8)> manpage."
18946 msgstr ""
18947
18948 # type: textblock
18949 #. type: textblock
18950 #: ../src/guestfs-actions.pod:6491 ../fish/guestfish-actions.pod:4315
18951 msgid ""
18952 "To create a single partition occupying the whole disk, you would pass "
18953 "C<lines> as a single element list, when the single element being the string "
18954 "C<,> (comma)."
18955 msgstr ""
18956
18957 # type: textblock
18958 #. type: textblock
18959 #: ../src/guestfs-actions.pod:6495
18960 msgid ""
18961 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
18962 msgstr ""
18963
18964 #. type: textblock
18965 #: ../src/guestfs-actions.pod:6503 ../src/guestfs-actions.pod:6533
18966 #: ../src/guestfs-actions.pod:6566 ../fish/guestfish-actions.pod:4325
18967 #: ../fish/guestfish-actions.pod:4348 ../fish/guestfish-actions.pod:4370
18968 msgid ""
18969 "This function is deprecated.  In new code, use the C<part_add> call instead."
18970 msgstr ""
18971
18972 # type: =head2
18973 #. type: =head2
18974 #: ../src/guestfs-actions.pod:6512
18975 msgid "guestfs_sfdiskM"
18976 msgstr ""
18977
18978 # type: verbatim
18979 #. type: verbatim
18980 #: ../src/guestfs-actions.pod:6514
18981 #, no-wrap
18982 msgid ""
18983 " int\n"
18984 " guestfs_sfdiskM (guestfs_h *g,\n"
18985 "                  const char *device,\n"
18986 "                  char *const *lines);\n"
18987 "\n"
18988 msgstr ""
18989
18990 # type: textblock
18991 #. type: textblock
18992 #: ../src/guestfs-actions.pod:6519
18993 msgid ""
18994 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
18995 "partition sizes are specified in megabytes only (rounded to the nearest "
18996 "cylinder) and you don't need to specify the cyls, heads and sectors "
18997 "parameters which were rarely if ever used anyway."
18998 msgstr ""
18999
19000 # type: textblock
19001 #. type: textblock
19002 #: ../src/guestfs-actions.pod:6525
19003 msgid ""
19004 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
19005 "C<guestfs_part_disk>"
19006 msgstr ""
19007
19008 # type: =head2
19009 #. type: =head2
19010 #: ../src/guestfs-actions.pod:6542
19011 msgid "guestfs_sfdisk_N"
19012 msgstr ""
19013
19014 # type: verbatim
19015 #. type: verbatim
19016 #: ../src/guestfs-actions.pod:6544
19017 #, no-wrap
19018 msgid ""
19019 " int\n"
19020 " guestfs_sfdisk_N (guestfs_h *g,\n"
19021 "                   const char *device,\n"
19022 "                   int partnum,\n"
19023 "                   int cyls,\n"
19024 "                   int heads,\n"
19025 "                   int sectors,\n"
19026 "                   const char *line);\n"
19027 "\n"
19028 msgstr ""
19029
19030 # type: textblock
19031 #. type: textblock
19032 #: ../src/guestfs-actions.pod:6553 ../fish/guestfish-actions.pod:4359
19033 msgid ""
19034 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
19035 "(note: C<n> counts from 1)."
19036 msgstr ""
19037
19038 # type: textblock
19039 #. type: textblock
19040 #: ../src/guestfs-actions.pod:6556
19041 msgid ""
19042 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
19043 "for the cyls/heads/sectors parameters."
19044 msgstr ""
19045
19046 # type: textblock
19047 #. type: textblock
19048 #: ../src/guestfs-actions.pod:6559
19049 msgid "See also: C<guestfs_part_add>"
19050 msgstr ""
19051
19052 # type: =head2
19053 #. type: =head2
19054 #: ../src/guestfs-actions.pod:6575
19055 msgid "guestfs_sfdisk_disk_geometry"
19056 msgstr ""
19057
19058 # type: verbatim
19059 #. type: verbatim
19060 #: ../src/guestfs-actions.pod:6577
19061 #, no-wrap
19062 msgid ""
19063 " char *\n"
19064 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
19065 "                               const char *device);\n"
19066 "\n"
19067 msgstr ""
19068
19069 # type: textblock
19070 #. type: textblock
19071 #: ../src/guestfs-actions.pod:6581
19072 msgid ""
19073 "This displays the disk geometry of C<device> read from the partition table.  "
19074 "Especially in the case where the underlying block device has been resized, "
19075 "this can be different from the kernel's idea of the geometry (see "
19076 "C<guestfs_sfdisk_kernel_geometry>)."
19077 msgstr ""
19078
19079 # type: textblock
19080 #. type: textblock
19081 #: ../src/guestfs-actions.pod:6586 ../src/guestfs-actions.pod:6602
19082 #: ../fish/guestfish-actions.pod:4386 ../fish/guestfish-actions.pod:4395
19083 msgid "The result is in human-readable format, and not designed to be parsed."
19084 msgstr ""
19085
19086 # type: =head2
19087 #. type: =head2
19088 #: ../src/guestfs-actions.pod:6594
19089 msgid "guestfs_sfdisk_kernel_geometry"
19090 msgstr ""
19091
19092 # type: verbatim
19093 #. type: verbatim
19094 #: ../src/guestfs-actions.pod:6596
19095 #, no-wrap
19096 msgid ""
19097 " char *\n"
19098 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
19099 "                                 const char *device);\n"
19100 "\n"
19101 msgstr ""
19102
19103 # type: textblock
19104 #. type: textblock
19105 #: ../src/guestfs-actions.pod:6600 ../fish/guestfish-actions.pod:4393
19106 msgid "This displays the kernel's idea of the geometry of C<device>."
19107 msgstr ""
19108
19109 # type: =head2
19110 #. type: =head2
19111 #: ../src/guestfs-actions.pod:6610
19112 msgid "guestfs_sfdisk_l"
19113 msgstr ""
19114
19115 # type: verbatim
19116 #. type: verbatim
19117 #: ../src/guestfs-actions.pod:6612
19118 #, no-wrap
19119 msgid ""
19120 " char *\n"
19121 " guestfs_sfdisk_l (guestfs_h *g,\n"
19122 "                   const char *device);\n"
19123 "\n"
19124 msgstr ""
19125
19126 # type: textblock
19127 #. type: textblock
19128 #: ../src/guestfs-actions.pod:6616 ../fish/guestfish-actions.pod:4402
19129 msgid ""
19130 "This displays the partition table on C<device>, in the human-readable output "
19131 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
19132 msgstr ""
19133
19134 # type: textblock
19135 #. type: textblock
19136 #: ../src/guestfs-actions.pod:6620
19137 msgid "See also: C<guestfs_part_list>"
19138 msgstr ""
19139
19140 #. type: textblock
19141 #: ../src/guestfs-actions.pod:6625 ../fish/guestfish-actions.pod:4408
19142 msgid ""
19143 "This function is deprecated.  In new code, use the C<part_list> call instead."
19144 msgstr ""
19145
19146 # type: =head2
19147 #. type: =head2
19148 #: ../src/guestfs-actions.pod:6634
19149 msgid "guestfs_sh"
19150 msgstr ""
19151
19152 # type: verbatim
19153 #. type: verbatim
19154 #: ../src/guestfs-actions.pod:6636
19155 #, no-wrap
19156 msgid ""
19157 " char *\n"
19158 " guestfs_sh (guestfs_h *g,\n"
19159 "             const char *command);\n"
19160 "\n"
19161 msgstr ""
19162
19163 # type: textblock
19164 #. type: textblock
19165 #: ../src/guestfs-actions.pod:6640 ../fish/guestfish-actions.pod:4419
19166 msgid ""
19167 "This call runs a command from the guest filesystem via the guest's C</bin/"
19168 "sh>."
19169 msgstr ""
19170
19171 # type: textblock
19172 #. type: textblock
19173 #: ../src/guestfs-actions.pod:6643
19174 msgid "This is like C<guestfs_command>, but passes the command to:"
19175 msgstr ""
19176
19177 # type: verbatim
19178 #. type: verbatim
19179 #: ../src/guestfs-actions.pod:6645 ../fish/guestfish-actions.pod:4424
19180 #, no-wrap
19181 msgid ""
19182 " /bin/sh -c \"command\"\n"
19183 "\n"
19184 msgstr ""
19185
19186 # type: textblock
19187 #. type: textblock
19188 #: ../src/guestfs-actions.pod:6647 ../fish/guestfish-actions.pod:4426
19189 msgid ""
19190 "Depending on the guest's shell, this usually results in wildcards being "
19191 "expanded, shell expressions being interpolated and so on."
19192 msgstr ""
19193
19194 # type: textblock
19195 #. type: textblock
19196 #: ../src/guestfs-actions.pod:6651
19197 msgid "All the provisos about C<guestfs_command> apply to this call."
19198 msgstr ""
19199
19200 # type: =head2
19201 #. type: =head2
19202 #: ../src/guestfs-actions.pod:6658
19203 msgid "guestfs_sh_lines"
19204 msgstr ""
19205
19206 # type: verbatim
19207 #. type: verbatim
19208 #: ../src/guestfs-actions.pod:6660
19209 #, no-wrap
19210 msgid ""
19211 " char **\n"
19212 " guestfs_sh_lines (guestfs_h *g,\n"
19213 "                   const char *command);\n"
19214 "\n"
19215 msgstr ""
19216
19217 # type: textblock
19218 #. type: textblock
19219 #: ../src/guestfs-actions.pod:6664
19220 msgid ""
19221 "This is the same as C<guestfs_sh>, but splits the result into a list of "
19222 "lines."
19223 msgstr ""
19224
19225 # type: textblock
19226 #. type: textblock
19227 #: ../src/guestfs-actions.pod:6667
19228 msgid "See also: C<guestfs_command_lines>"
19229 msgstr ""
19230
19231 # type: =head2
19232 #. type: =head2
19233 #: ../src/guestfs-actions.pod:6675
19234 msgid "guestfs_sleep"
19235 msgstr ""
19236
19237 # type: verbatim
19238 #. type: verbatim
19239 #: ../src/guestfs-actions.pod:6677
19240 #, no-wrap
19241 msgid ""
19242 " int\n"
19243 " guestfs_sleep (guestfs_h *g,\n"
19244 "                int secs);\n"
19245 "\n"
19246 msgstr ""
19247
19248 # type: textblock
19249 #. type: textblock
19250 #: ../src/guestfs-actions.pod:6681 ../fish/guestfish-actions.pod:4445
19251 msgid "Sleep for C<secs> seconds."
19252 msgstr ""
19253
19254 # type: textblock
19255 #. type: textblock
19256 #: ../src/guestfs-actions.pod:6685
19257 msgid "(Added in 1.0.41)"
19258 msgstr ""
19259
19260 # type: =head2
19261 #. type: =head2
19262 #: ../src/guestfs-actions.pod:6687 ../src/guestfs-structs.pod:109
19263 msgid "guestfs_stat"
19264 msgstr ""
19265
19266 # type: verbatim
19267 #. type: verbatim
19268 #: ../src/guestfs-actions.pod:6689
19269 #, no-wrap
19270 msgid ""
19271 " struct guestfs_stat *\n"
19272 " guestfs_stat (guestfs_h *g,\n"
19273 "               const char *path);\n"
19274 "\n"
19275 msgstr ""
19276
19277 # type: textblock
19278 #. type: textblock
19279 #: ../src/guestfs-actions.pod:6695 ../fish/guestfish-actions.pod:4453
19280 msgid "This is the same as the C<stat(2)> system call."
19281 msgstr ""
19282
19283 # type: =head2
19284 #. type: =head2
19285 #: ../src/guestfs-actions.pod:6703 ../src/guestfs-structs.pod:135
19286 msgid "guestfs_statvfs"
19287 msgstr ""
19288
19289 # type: verbatim
19290 #. type: verbatim
19291 #: ../src/guestfs-actions.pod:6705
19292 #, no-wrap
19293 msgid ""
19294 " struct guestfs_statvfs *\n"
19295 " guestfs_statvfs (guestfs_h *g,\n"
19296 "                  const char *path);\n"
19297 "\n"
19298 msgstr ""
19299
19300 # type: textblock
19301 #. type: textblock
19302 #: ../src/guestfs-actions.pod:6709 ../fish/guestfish-actions.pod:4459
19303 msgid ""
19304 "Returns file system statistics for any mounted file system.  C<path> should "
19305 "be a file or directory in the mounted file system (typically it is the mount "
19306 "point itself, but it doesn't need to be)."
19307 msgstr ""
19308
19309 # type: textblock
19310 #. type: textblock
19311 #: ../src/guestfs-actions.pod:6713 ../fish/guestfish-actions.pod:4463
19312 msgid "This is the same as the C<statvfs(2)> system call."
19313 msgstr ""
19314
19315 # type: textblock
19316 #. type: textblock
19317 #: ../src/guestfs-actions.pod:6715
19318 msgid ""
19319 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
19320 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
19321 msgstr ""
19322
19323 # type: =head2
19324 #. type: =head2
19325 #: ../src/guestfs-actions.pod:6721
19326 msgid "guestfs_strings"
19327 msgstr ""
19328
19329 # type: verbatim
19330 #. type: verbatim
19331 #: ../src/guestfs-actions.pod:6723
19332 #, no-wrap
19333 msgid ""
19334 " char **\n"
19335 " guestfs_strings (guestfs_h *g,\n"
19336 "                  const char *path);\n"
19337 "\n"
19338 msgstr ""
19339
19340 # type: textblock
19341 #. type: textblock
19342 #: ../src/guestfs-actions.pod:6727 ../fish/guestfish-actions.pod:4469
19343 msgid ""
19344 "This runs the L<strings(1)> command on a file and returns the list of "
19345 "printable strings found."
19346 msgstr ""
19347
19348 # type: =head2
19349 #. type: =head2
19350 #: ../src/guestfs-actions.pod:6739
19351 msgid "guestfs_strings_e"
19352 msgstr ""
19353
19354 # type: verbatim
19355 #. type: verbatim
19356 #: ../src/guestfs-actions.pod:6741
19357 #, no-wrap
19358 msgid ""
19359 " char **\n"
19360 " guestfs_strings_e (guestfs_h *g,\n"
19361 "                    const char *encoding,\n"
19362 "                    const char *path);\n"
19363 "\n"
19364 msgstr ""
19365
19366 # type: textblock
19367 #. type: textblock
19368 #: ../src/guestfs-actions.pod:6746
19369 msgid ""
19370 "This is like the C<guestfs_strings> command, but allows you to specify the "
19371 "encoding of strings that are looked for in the source file C<path>."
19372 msgstr ""
19373
19374 # type: textblock
19375 #. type: textblock
19376 #: ../src/guestfs-actions.pod:6750 ../fish/guestfish-actions.pod:4483
19377 msgid "Allowed encodings are:"
19378 msgstr ""
19379
19380 # type: =item
19381 #. type: =item
19382 #: ../src/guestfs-actions.pod:6754 ../fish/guestfish-actions.pod:4487
19383 msgid "s"
19384 msgstr ""
19385
19386 # type: textblock
19387 #. type: textblock
19388 #: ../src/guestfs-actions.pod:6756
19389 msgid ""
19390 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
19391 "ISO-8859-X (this is what C<guestfs_strings> uses)."
19392 msgstr ""
19393
19394 # type: =item
19395 #. type: =item
19396 #: ../src/guestfs-actions.pod:6759 ../fish/guestfish-actions.pod:4492
19397 msgid "S"
19398 msgstr ""
19399
19400 # type: textblock
19401 #. type: textblock
19402 #: ../src/guestfs-actions.pod:6761 ../fish/guestfish-actions.pod:4494
19403 msgid "Single 8-bit-byte characters."
19404 msgstr ""
19405
19406 # type: =item
19407 #. type: =item
19408 #: ../src/guestfs-actions.pod:6763 ../fish/guestfish-actions.pod:4496
19409 msgid "b"
19410 msgstr ""
19411
19412 # type: textblock
19413 #. type: textblock
19414 #: ../src/guestfs-actions.pod:6765 ../fish/guestfish-actions.pod:4498
19415 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
19416 msgstr ""
19417
19418 # type: =item
19419 #. type: =item
19420 #: ../src/guestfs-actions.pod:6768 ../fish/guestfish-actions.pod:4501
19421 msgid "l (lower case letter L)"
19422 msgstr ""
19423
19424 # type: textblock
19425 #. type: textblock
19426 #: ../src/guestfs-actions.pod:6770 ../fish/guestfish-actions.pod:4503
19427 msgid ""
19428 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
19429 "examining binaries in Windows guests."
19430 msgstr ""
19431
19432 # type: =item
19433 #. type: =item
19434 #: ../src/guestfs-actions.pod:6773 ../fish/guestfish-actions.pod:4506
19435 msgid "B"
19436 msgstr ""
19437
19438 # type: textblock
19439 #. type: textblock
19440 #: ../src/guestfs-actions.pod:6775 ../fish/guestfish-actions.pod:4508
19441 msgid "32-bit big endian such as UCS-4BE."
19442 msgstr ""
19443
19444 # type: =item
19445 #. type: =item
19446 #: ../src/guestfs-actions.pod:6777 ../fish/guestfish-actions.pod:4510
19447 msgid "L"
19448 msgstr ""
19449
19450 # type: textblock
19451 #. type: textblock
19452 #: ../src/guestfs-actions.pod:6779 ../fish/guestfish-actions.pod:4512
19453 msgid "32-bit little endian such as UCS-4LE."
19454 msgstr ""
19455
19456 # type: textblock
19457 #. type: textblock
19458 #: ../src/guestfs-actions.pod:6783 ../fish/guestfish-actions.pod:4516
19459 msgid "The returned strings are transcoded to UTF-8."
19460 msgstr ""
19461
19462 # type: =head2
19463 #. type: =head2
19464 #: ../src/guestfs-actions.pod:6794
19465 msgid "guestfs_swapoff_device"
19466 msgstr ""
19467
19468 # type: verbatim
19469 #. type: verbatim
19470 #: ../src/guestfs-actions.pod:6796
19471 #, no-wrap
19472 msgid ""
19473 " int\n"
19474 " guestfs_swapoff_device (guestfs_h *g,\n"
19475 "                         const char *device);\n"
19476 "\n"
19477 msgstr ""
19478
19479 # type: textblock
19480 #. type: textblock
19481 #: ../src/guestfs-actions.pod:6800
19482 msgid ""
19483 "This command disables the libguestfs appliance swap device or partition "
19484 "named C<device>.  See C<guestfs_swapon_device>."
19485 msgstr ""
19486
19487 # type: =head2
19488 #. type: =head2
19489 #: ../src/guestfs-actions.pod:6808
19490 msgid "guestfs_swapoff_file"
19491 msgstr ""
19492
19493 # type: verbatim
19494 #. type: verbatim
19495 #: ../src/guestfs-actions.pod:6810
19496 #, no-wrap
19497 msgid ""
19498 " int\n"
19499 " guestfs_swapoff_file (guestfs_h *g,\n"
19500 "                       const char *file);\n"
19501 "\n"
19502 msgstr ""
19503
19504 # type: textblock
19505 #. type: textblock
19506 #: ../src/guestfs-actions.pod:6814 ../fish/guestfish-actions.pod:4533
19507 msgid "This command disables the libguestfs appliance swap on file."
19508 msgstr ""
19509
19510 # type: =head2
19511 #. type: =head2
19512 #: ../src/guestfs-actions.pod:6820
19513 msgid "guestfs_swapoff_label"
19514 msgstr ""
19515
19516 # type: verbatim
19517 #. type: verbatim
19518 #: ../src/guestfs-actions.pod:6822
19519 #, no-wrap
19520 msgid ""
19521 " int\n"
19522 " guestfs_swapoff_label (guestfs_h *g,\n"
19523 "                        const char *label);\n"
19524 "\n"
19525 msgstr ""
19526
19527 # type: textblock
19528 #. type: textblock
19529 #: ../src/guestfs-actions.pod:6826 ../fish/guestfish-actions.pod:4539
19530 msgid ""
19531 "This command disables the libguestfs appliance swap on labeled swap "
19532 "partition."
19533 msgstr ""
19534
19535 # type: =head2
19536 #. type: =head2
19537 #: ../src/guestfs-actions.pod:6833
19538 msgid "guestfs_swapoff_uuid"
19539 msgstr ""
19540
19541 # type: verbatim
19542 #. type: verbatim
19543 #: ../src/guestfs-actions.pod:6835
19544 #, no-wrap
19545 msgid ""
19546 " int\n"
19547 " guestfs_swapoff_uuid (guestfs_h *g,\n"
19548 "                       const char *uuid);\n"
19549 "\n"
19550 msgstr ""
19551
19552 # type: textblock
19553 #. type: textblock
19554 #: ../src/guestfs-actions.pod:6839 ../fish/guestfish-actions.pod:4546
19555 msgid ""
19556 "This command disables the libguestfs appliance swap partition with the given "
19557 "UUID."
19558 msgstr ""
19559
19560 # type: =head2
19561 #. type: =head2
19562 #: ../src/guestfs-actions.pod:6846
19563 msgid "guestfs_swapon_device"
19564 msgstr ""
19565
19566 # type: verbatim
19567 #. type: verbatim
19568 #: ../src/guestfs-actions.pod:6848
19569 #, no-wrap
19570 msgid ""
19571 " int\n"
19572 " guestfs_swapon_device (guestfs_h *g,\n"
19573 "                        const char *device);\n"
19574 "\n"
19575 msgstr ""
19576
19577 # type: textblock
19578 #. type: textblock
19579 #: ../src/guestfs-actions.pod:6852
19580 msgid ""
19581 "This command enables the libguestfs appliance to use the swap device or "
19582 "partition named C<device>.  The increased memory is made available for all "
19583 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
19584 msgstr ""
19585
19586 # type: textblock
19587 #. type: textblock
19588 #: ../src/guestfs-actions.pod:6857 ../fish/guestfish-actions.pod:4558
19589 msgid ""
19590 "Note that you should not swap to existing guest swap partitions unless you "
19591 "know what you are doing.  They may contain hibernation information, or other "
19592 "information that the guest doesn't want you to trash.  You also risk leaking "
19593 "information about the host to the guest this way.  Instead, attach a new "
19594 "host device to the guest and swap on that."
19595 msgstr ""
19596
19597 # type: =head2
19598 #. type: =head2
19599 #: ../src/guestfs-actions.pod:6868
19600 msgid "guestfs_swapon_file"
19601 msgstr ""
19602
19603 # type: verbatim
19604 #. type: verbatim
19605 #: ../src/guestfs-actions.pod:6870
19606 #, no-wrap
19607 msgid ""
19608 " int\n"
19609 " guestfs_swapon_file (guestfs_h *g,\n"
19610 "                      const char *file);\n"
19611 "\n"
19612 msgstr ""
19613
19614 # type: textblock
19615 #. type: textblock
19616 #: ../src/guestfs-actions.pod:6874
19617 msgid ""
19618 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
19619 "notes."
19620 msgstr ""
19621
19622 # type: =head2
19623 #. type: =head2
19624 #: ../src/guestfs-actions.pod:6881
19625 msgid "guestfs_swapon_label"
19626 msgstr ""
19627
19628 # type: verbatim
19629 #. type: verbatim
19630 #: ../src/guestfs-actions.pod:6883
19631 #, no-wrap
19632 msgid ""
19633 " int\n"
19634 " guestfs_swapon_label (guestfs_h *g,\n"
19635 "                       const char *label);\n"
19636 "\n"
19637 msgstr ""
19638
19639 # type: textblock
19640 #. type: textblock
19641 #: ../src/guestfs-actions.pod:6887
19642 msgid ""
19643 "This command enables swap to a labeled swap partition.  See "
19644 "C<guestfs_swapon_device> for other notes."
19645 msgstr ""
19646
19647 # type: =head2
19648 #. type: =head2
19649 #: ../src/guestfs-actions.pod:6894
19650 msgid "guestfs_swapon_uuid"
19651 msgstr ""
19652
19653 # type: verbatim
19654 #. type: verbatim
19655 #: ../src/guestfs-actions.pod:6896
19656 #, no-wrap
19657 msgid ""
19658 " int\n"
19659 " guestfs_swapon_uuid (guestfs_h *g,\n"
19660 "                      const char *uuid);\n"
19661 "\n"
19662 msgstr ""
19663
19664 # type: textblock
19665 #. type: textblock
19666 #: ../src/guestfs-actions.pod:6900
19667 msgid ""
19668 "This command enables swap to a swap partition with the given UUID.  See "
19669 "C<guestfs_swapon_device> for other notes."
19670 msgstr ""
19671
19672 # type: =head2
19673 #. type: =head2
19674 #: ../src/guestfs-actions.pod:6907
19675 msgid "guestfs_sync"
19676 msgstr ""
19677
19678 # type: verbatim
19679 #. type: verbatim
19680 #: ../src/guestfs-actions.pod:6909
19681 #, no-wrap
19682 msgid ""
19683 " int\n"
19684 " guestfs_sync (guestfs_h *g);\n"
19685 "\n"
19686 msgstr ""
19687
19688 # type: textblock
19689 #. type: textblock
19690 #: ../src/guestfs-actions.pod:6912 ../fish/guestfish-actions.pod:4590
19691 msgid ""
19692 "This syncs the disk, so that any writes are flushed through to the "
19693 "underlying disk image."
19694 msgstr ""
19695
19696 # type: textblock
19697 #. type: textblock
19698 #: ../src/guestfs-actions.pod:6915 ../fish/guestfish-actions.pod:4593
19699 msgid ""
19700 "You should always call this if you have modified a disk image, before "
19701 "closing the handle."
19702 msgstr ""
19703
19704 # type: =head2
19705 #. type: =head2
19706 #: ../src/guestfs-actions.pod:6922
19707 msgid "guestfs_tail"
19708 msgstr ""
19709
19710 # type: verbatim
19711 #. type: verbatim
19712 #: ../src/guestfs-actions.pod:6924
19713 #, no-wrap
19714 msgid ""
19715 " char **\n"
19716 " guestfs_tail (guestfs_h *g,\n"
19717 "               const char *path);\n"
19718 "\n"
19719 msgstr ""
19720
19721 # type: textblock
19722 #. type: textblock
19723 #: ../src/guestfs-actions.pod:6928 ../fish/guestfish-actions.pod:4600
19724 msgid ""
19725 "This command returns up to the last 10 lines of a file as a list of strings."
19726 msgstr ""
19727
19728 # type: =head2
19729 #. type: =head2
19730 #: ../src/guestfs-actions.pod:6940
19731 msgid "guestfs_tail_n"
19732 msgstr ""
19733
19734 # type: verbatim
19735 #. type: verbatim
19736 #: ../src/guestfs-actions.pod:6942
19737 #, no-wrap
19738 msgid ""
19739 " char **\n"
19740 " guestfs_tail_n (guestfs_h *g,\n"
19741 "                 int nrlines,\n"
19742 "                 const char *path);\n"
19743 "\n"
19744 msgstr ""
19745
19746 # type: textblock
19747 #. type: textblock
19748 #: ../src/guestfs-actions.pod:6947 ../fish/guestfish-actions.pod:4610
19749 msgid ""
19750 "If the parameter C<nrlines> is a positive number, this returns the last "
19751 "C<nrlines> lines of the file C<path>."
19752 msgstr ""
19753
19754 # type: textblock
19755 #. type: textblock
19756 #: ../src/guestfs-actions.pod:6950 ../fish/guestfish-actions.pod:4613
19757 msgid ""
19758 "If the parameter C<nrlines> is a negative number, this returns lines from "
19759 "the file C<path>, starting with the C<-nrlines>th line."
19760 msgstr ""
19761
19762 # type: =head2
19763 #. type: =head2
19764 #: ../src/guestfs-actions.pod:6964
19765 msgid "guestfs_tar_in"
19766 msgstr ""
19767
19768 # type: verbatim
19769 #. type: verbatim
19770 #: ../src/guestfs-actions.pod:6966
19771 #, no-wrap
19772 msgid ""
19773 " int\n"
19774 " guestfs_tar_in (guestfs_h *g,\n"
19775 "                 const char *tarfile,\n"
19776 "                 const char *directory);\n"
19777 "\n"
19778 msgstr ""
19779
19780 # type: textblock
19781 #. type: textblock
19782 #: ../src/guestfs-actions.pod:6971 ../fish/guestfish-actions.pod:4625
19783 msgid ""
19784 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
19785 "tar file) into C<directory>."
19786 msgstr ""
19787
19788 # type: textblock
19789 #. type: textblock
19790 #: ../src/guestfs-actions.pod:6974
19791 msgid ""
19792 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
19793 msgstr ""
19794
19795 # type: textblock
19796 #. type: textblock
19797 #: ../src/guestfs-actions.pod:6979 ../src/guestfs-actions.pod:6996
19798 #: ../src/guestfs-actions.pod:7012 ../src/guestfs-actions.pod:7028
19799 msgid "(Added in 1.0.3)"
19800 msgstr ""
19801
19802 # type: =head2
19803 #. type: =head2
19804 #: ../src/guestfs-actions.pod:6981
19805 msgid "guestfs_tar_out"
19806 msgstr ""
19807
19808 # type: verbatim
19809 #. type: verbatim
19810 #: ../src/guestfs-actions.pod:6983
19811 #, no-wrap
19812 msgid ""
19813 " int\n"
19814 " guestfs_tar_out (guestfs_h *g,\n"
19815 "                  const char *directory,\n"
19816 "                  const char *tarfile);\n"
19817 "\n"
19818 msgstr ""
19819
19820 # type: textblock
19821 #. type: textblock
19822 #: ../src/guestfs-actions.pod:6988 ../fish/guestfish-actions.pod:4637
19823 msgid ""
19824 "This command packs the contents of C<directory> and downloads it to local "
19825 "file C<tarfile>."
19826 msgstr ""
19827
19828 # type: textblock
19829 #. type: textblock
19830 #: ../src/guestfs-actions.pod:6991
19831 msgid ""
19832 "To download a compressed tarball, use C<guestfs_tgz_out> or "
19833 "C<guestfs_txz_out>."
19834 msgstr ""
19835
19836 # type: =head2
19837 #. type: =head2
19838 #: ../src/guestfs-actions.pod:6998
19839 msgid "guestfs_tgz_in"
19840 msgstr ""
19841
19842 # type: verbatim
19843 #. type: verbatim
19844 #: ../src/guestfs-actions.pod:7000
19845 #, no-wrap
19846 msgid ""
19847 " int\n"
19848 " guestfs_tgz_in (guestfs_h *g,\n"
19849 "                 const char *tarball,\n"
19850 "                 const char *directory);\n"
19851 "\n"
19852 msgstr ""
19853
19854 # type: textblock
19855 #. type: textblock
19856 #: ../src/guestfs-actions.pod:7005 ../fish/guestfish-actions.pod:4649
19857 msgid ""
19858 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
19859 "tar file) into C<directory>."
19860 msgstr ""
19861
19862 # type: textblock
19863 #. type: textblock
19864 #: ../src/guestfs-actions.pod:7008
19865 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
19866 msgstr ""
19867
19868 # type: =head2
19869 #. type: =head2
19870 #: ../src/guestfs-actions.pod:7014
19871 msgid "guestfs_tgz_out"
19872 msgstr ""
19873
19874 # type: verbatim
19875 #. type: verbatim
19876 #: ../src/guestfs-actions.pod:7016
19877 #, no-wrap
19878 msgid ""
19879 " int\n"
19880 " guestfs_tgz_out (guestfs_h *g,\n"
19881 "                  const char *directory,\n"
19882 "                  const char *tarball);\n"
19883 "\n"
19884 msgstr ""
19885
19886 # type: textblock
19887 #. type: textblock
19888 #: ../src/guestfs-actions.pod:7021 ../fish/guestfish-actions.pod:4660
19889 msgid ""
19890 "This command packs the contents of C<directory> and downloads it to local "
19891 "file C<tarball>."
19892 msgstr ""
19893
19894 # type: textblock
19895 #. type: textblock
19896 #: ../src/guestfs-actions.pod:7024
19897 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
19898 msgstr ""
19899
19900 # type: =head2
19901 #. type: =head2
19902 #: ../src/guestfs-actions.pod:7030
19903 msgid "guestfs_touch"
19904 msgstr ""
19905
19906 # type: verbatim
19907 #. type: verbatim
19908 #: ../src/guestfs-actions.pod:7032
19909 #, no-wrap
19910 msgid ""
19911 " int\n"
19912 " guestfs_touch (guestfs_h *g,\n"
19913 "                const char *path);\n"
19914 "\n"
19915 msgstr ""
19916
19917 # type: textblock
19918 #. type: textblock
19919 #: ../src/guestfs-actions.pod:7036 ../fish/guestfish-actions.pod:4671
19920 msgid ""
19921 "Touch acts like the L<touch(1)> command.  It can be used to update the "
19922 "timestamps on a file, or, if the file does not exist, to create a new zero-"
19923 "length file."
19924 msgstr ""
19925
19926 # type: textblock
19927 #. type: textblock
19928 #: ../src/guestfs-actions.pod:7040 ../fish/guestfish-actions.pod:4675
19929 msgid ""
19930 "This command only works on regular files, and will fail on other file types "
19931 "such as directories, symbolic links, block special etc."
19932 msgstr ""
19933
19934 # type: =head2
19935 #. type: =head2
19936 #: ../src/guestfs-actions.pod:7047
19937 msgid "guestfs_truncate"
19938 msgstr ""
19939
19940 # type: verbatim
19941 #. type: verbatim
19942 #: ../src/guestfs-actions.pod:7049
19943 #, no-wrap
19944 msgid ""
19945 " int\n"
19946 " guestfs_truncate (guestfs_h *g,\n"
19947 "                   const char *path);\n"
19948 "\n"
19949 msgstr ""
19950
19951 # type: textblock
19952 #. type: textblock
19953 #: ../src/guestfs-actions.pod:7053 ../fish/guestfish-actions.pod:4682
19954 msgid ""
19955 "This command truncates C<path> to a zero-length file.  The file must exist "
19956 "already."
19957 msgstr ""
19958
19959 # type: =head2
19960 #. type: =head2
19961 #: ../src/guestfs-actions.pod:7060
19962 msgid "guestfs_truncate_size"
19963 msgstr ""
19964
19965 # type: verbatim
19966 #. type: verbatim
19967 #: ../src/guestfs-actions.pod:7062
19968 #, no-wrap
19969 msgid ""
19970 " int\n"
19971 " guestfs_truncate_size (guestfs_h *g,\n"
19972 "                        const char *path,\n"
19973 "                        int64_t size);\n"
19974 "\n"
19975 msgstr ""
19976
19977 # type: textblock
19978 #. type: textblock
19979 #: ../src/guestfs-actions.pod:7067 ../fish/guestfish-actions.pod:4689
19980 msgid ""
19981 "This command truncates C<path> to size C<size> bytes.  The file must exist "
19982 "already."
19983 msgstr ""
19984
19985 # type: textblock
19986 #. type: textblock
19987 #: ../src/guestfs-actions.pod:7070
19988 msgid ""
19989 "If the current file size is less than C<size> then the file is extended to "
19990 "the required size with zero bytes.  This creates a sparse file (ie. disk "
19991 "blocks are not allocated for the file until you write to it).  To create a "
19992 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
19993 msgstr ""
19994
19995 # type: =head2
19996 #. type: =head2
19997 #: ../src/guestfs-actions.pod:7080
19998 msgid "guestfs_tune2fs_l"
19999 msgstr ""
20000
20001 # type: verbatim
20002 #. type: verbatim
20003 #: ../src/guestfs-actions.pod:7082
20004 #, no-wrap
20005 msgid ""
20006 " char **\n"
20007 " guestfs_tune2fs_l (guestfs_h *g,\n"
20008 "                    const char *device);\n"
20009 "\n"
20010 msgstr ""
20011
20012 # type: textblock
20013 #. type: textblock
20014 #: ../src/guestfs-actions.pod:7086 ../fish/guestfish-actions.pod:4702
20015 msgid ""
20016 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
20017 "C<device>."
20018 msgstr ""
20019
20020 # type: textblock
20021 #. type: textblock
20022 #: ../src/guestfs-actions.pod:7089 ../fish/guestfish-actions.pod:4705
20023 msgid ""
20024 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
20025 "for more details.  The list of fields returned isn't clearly defined, and "
20026 "depends on both the version of C<tune2fs> that libguestfs was built against, "
20027 "and the filesystem itself."
20028 msgstr ""
20029
20030 # type: =head2
20031 #. type: =head2
20032 #: ../src/guestfs-actions.pod:7102
20033 msgid "guestfs_txz_in"
20034 msgstr ""
20035
20036 # type: verbatim
20037 #. type: verbatim
20038 #: ../src/guestfs-actions.pod:7104
20039 #, no-wrap
20040 msgid ""
20041 " int\n"
20042 " guestfs_txz_in (guestfs_h *g,\n"
20043 "                 const char *tarball,\n"
20044 "                 const char *directory);\n"
20045 "\n"
20046 msgstr ""
20047
20048 # type: textblock
20049 #. type: textblock
20050 #: ../src/guestfs-actions.pod:7109 ../fish/guestfish-actions.pod:4714
20051 msgid ""
20052 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
20053 "tar file) into C<directory>."
20054 msgstr ""
20055
20056 # type: =head2
20057 #. type: =head2
20058 #: ../src/guestfs-actions.pod:7116
20059 msgid "guestfs_txz_out"
20060 msgstr ""
20061
20062 # type: verbatim
20063 #. type: verbatim
20064 #: ../src/guestfs-actions.pod:7118
20065 #, no-wrap
20066 msgid ""
20067 " int\n"
20068 " guestfs_txz_out (guestfs_h *g,\n"
20069 "                  const char *directory,\n"
20070 "                  const char *tarball);\n"
20071 "\n"
20072 msgstr ""
20073
20074 # type: textblock
20075 #. type: textblock
20076 #: ../src/guestfs-actions.pod:7123 ../fish/guestfish-actions.pod:4723
20077 msgid ""
20078 "This command packs the contents of C<directory> and downloads it to local "
20079 "file C<tarball> (as an xz compressed tar archive)."
20080 msgstr ""
20081
20082 # type: =head2
20083 #. type: =head2
20084 #: ../src/guestfs-actions.pod:7130
20085 msgid "guestfs_umask"
20086 msgstr ""
20087
20088 # type: verbatim
20089 #. type: verbatim
20090 #: ../src/guestfs-actions.pod:7132
20091 #, no-wrap
20092 msgid ""
20093 " int\n"
20094 " guestfs_umask (guestfs_h *g,\n"
20095 "                int mask);\n"
20096 "\n"
20097 msgstr ""
20098
20099 # type: textblock
20100 #. type: textblock
20101 #: ../src/guestfs-actions.pod:7136 ../fish/guestfish-actions.pod:4732
20102 msgid ""
20103 "This function sets the mask used for creating new files and device nodes to "
20104 "C<mask & 0777>."
20105 msgstr ""
20106
20107 # type: textblock
20108 #. type: textblock
20109 #: ../src/guestfs-actions.pod:7139 ../fish/guestfish-actions.pod:4735
20110 msgid ""
20111 "Typical umask values would be C<022> which creates new files with "
20112 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
20113 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
20114 msgstr ""
20115
20116 # type: textblock
20117 #. type: textblock
20118 #: ../src/guestfs-actions.pod:7144 ../fish/guestfish-actions.pod:4740
20119 msgid ""
20120 "The default umask is C<022>.  This is important because it means that "
20121 "directories and device nodes will be created with C<0644> or C<0755> mode "
20122 "even if you specify C<0777>."
20123 msgstr ""
20124
20125 # type: textblock
20126 #. type: textblock
20127 #: ../src/guestfs-actions.pod:7148
20128 msgid ""
20129 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
20130 "C<guestfs_mkdir>."
20131 msgstr ""
20132
20133 # type: textblock
20134 #. type: textblock
20135 #: ../src/guestfs-actions.pod:7151 ../fish/guestfish-actions.pod:4747
20136 msgid "This call returns the previous umask."
20137 msgstr ""
20138
20139 # type: =head2
20140 #. type: =head2
20141 #: ../src/guestfs-actions.pod:7157
20142 msgid "guestfs_umount"
20143 msgstr ""
20144
20145 # type: verbatim
20146 #. type: verbatim
20147 #: ../src/guestfs-actions.pod:7159
20148 #, no-wrap
20149 msgid ""
20150 " int\n"
20151 " guestfs_umount (guestfs_h *g,\n"
20152 "                 const char *pathordevice);\n"
20153 "\n"
20154 msgstr ""
20155
20156 # type: textblock
20157 #. type: textblock
20158 #: ../src/guestfs-actions.pod:7163 ../fish/guestfish-actions.pod:4755
20159 msgid ""
20160 "This unmounts the given filesystem.  The filesystem may be specified either "
20161 "by its mountpoint (path) or the device which contains the filesystem."
20162 msgstr ""
20163
20164 # type: =head2
20165 #. type: =head2
20166 #: ../src/guestfs-actions.pod:7171
20167 msgid "guestfs_umount_all"
20168 msgstr ""
20169
20170 # type: verbatim
20171 #. type: verbatim
20172 #: ../src/guestfs-actions.pod:7173
20173 #, no-wrap
20174 msgid ""
20175 " int\n"
20176 " guestfs_umount_all (guestfs_h *g);\n"
20177 "\n"
20178 msgstr ""
20179
20180 # type: textblock
20181 #. type: textblock
20182 #: ../src/guestfs-actions.pod:7176 ../fish/guestfish-actions.pod:4765
20183 msgid "This unmounts all mounted filesystems."
20184 msgstr ""
20185
20186 # type: textblock
20187 #. type: textblock
20188 #: ../src/guestfs-actions.pod:7178 ../fish/guestfish-actions.pod:4767
20189 msgid "Some internal mounts are not unmounted by this call."
20190 msgstr ""
20191
20192 # type: =head2
20193 #. type: =head2
20194 #: ../src/guestfs-actions.pod:7184
20195 msgid "guestfs_upload"
20196 msgstr ""
20197
20198 # type: verbatim
20199 #. type: verbatim
20200 #: ../src/guestfs-actions.pod:7186
20201 #, no-wrap
20202 msgid ""
20203 " int\n"
20204 " guestfs_upload (guestfs_h *g,\n"
20205 "                 const char *filename,\n"
20206 "                 const char *remotefilename);\n"
20207 "\n"
20208 msgstr ""
20209
20210 # type: textblock
20211 #. type: textblock
20212 #: ../src/guestfs-actions.pod:7191 ../src/guestfs-actions.pod:7215
20213 #: ../fish/guestfish-actions.pod:4773 ../fish/guestfish-actions.pod:4786
20214 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
20215 msgstr ""
20216
20217 # type: textblock
20218 #. type: textblock
20219 #: ../src/guestfs-actions.pod:7196
20220 msgid "See also C<guestfs_download>."
20221 msgstr ""
20222
20223 # type: =head2
20224 #. type: =head2
20225 #: ../src/guestfs-actions.pod:7207
20226 msgid "guestfs_upload_offset"
20227 msgstr ""
20228
20229 # type: verbatim
20230 #. type: verbatim
20231 #: ../src/guestfs-actions.pod:7209
20232 #, no-wrap
20233 msgid ""
20234 " int\n"
20235 " guestfs_upload_offset (guestfs_h *g,\n"
20236 "                        const char *filename,\n"
20237 "                        const char *remotefilename,\n"
20238 "                        int64_t offset);\n"
20239 "\n"
20240 msgstr ""
20241
20242 # type: textblock
20243 #. type: textblock
20244 #: ../src/guestfs-actions.pod:7218 ../fish/guestfish-actions.pod:4789
20245 msgid ""
20246 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
20247 "The intention is to overwrite parts of existing files or devices, although "
20248 "if a non-existant file is specified then it is created with a \"hole\" "
20249 "before C<offset>.  The size of the data written is implicit in the size of "
20250 "the source C<filename>."
20251 msgstr ""
20252
20253 # type: textblock
20254 #. type: textblock
20255 #: ../src/guestfs-actions.pod:7225
20256 msgid ""
20257 "Note that there is no limit on the amount of data that can be uploaded with "
20258 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
20259 "full amount unless an error occurs."
20260 msgstr ""
20261
20262 # type: textblock
20263 #. type: textblock
20264 #: ../src/guestfs-actions.pod:7230
20265 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
20266 msgstr ""
20267
20268 # type: =head2
20269 #. type: =head2
20270 #: ../src/guestfs-actions.pod:7241
20271 msgid "guestfs_utimens"
20272 msgstr ""
20273
20274 # type: verbatim
20275 #. type: verbatim
20276 #: ../src/guestfs-actions.pod:7243
20277 #, no-wrap
20278 msgid ""
20279 " int\n"
20280 " guestfs_utimens (guestfs_h *g,\n"
20281 "                  const char *path,\n"
20282 "                  int64_t atsecs,\n"
20283 "                  int64_t atnsecs,\n"
20284 "                  int64_t mtsecs,\n"
20285 "                  int64_t mtnsecs);\n"
20286 "\n"
20287 msgstr ""
20288
20289 # type: textblock
20290 #. type: textblock
20291 #: ../src/guestfs-actions.pod:7251 ../fish/guestfish-actions.pod:4809
20292 msgid "This command sets the timestamps of a file with nanosecond precision."
20293 msgstr ""
20294
20295 # type: textblock
20296 #. type: textblock
20297 #: ../src/guestfs-actions.pod:7254 ../fish/guestfish-actions.pod:4812
20298 msgid ""
20299 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
20300 "from the epoch."
20301 msgstr ""
20302
20303 # type: textblock
20304 #. type: textblock
20305 #: ../src/guestfs-actions.pod:7257 ../fish/guestfish-actions.pod:4815
20306 msgid ""
20307 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
20308 "nanoseconds from the epoch."
20309 msgstr ""
20310
20311 # type: textblock
20312 #. type: textblock
20313 #: ../src/guestfs-actions.pod:7260 ../fish/guestfish-actions.pod:4818
20314 msgid ""
20315 "If the C<*nsecs> field contains the special value C<-1> then the "
20316 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
20317 "ignored in this case)."
20318 msgstr ""
20319
20320 # type: textblock
20321 #. type: textblock
20322 #: ../src/guestfs-actions.pod:7264 ../fish/guestfish-actions.pod:4822
20323 msgid ""
20324 "If the C<*nsecs> field contains the special value C<-2> then the "
20325 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
20326 "in this case)."
20327 msgstr ""
20328
20329 # type: =head2
20330 #. type: =head2
20331 #: ../src/guestfs-actions.pod:7272 ../src/guestfs-structs.pod:175
20332 msgid "guestfs_version"
20333 msgstr ""
20334
20335 # type: verbatim
20336 #. type: verbatim
20337 #: ../src/guestfs-actions.pod:7274
20338 #, no-wrap
20339 msgid ""
20340 " struct guestfs_version *\n"
20341 " guestfs_version (guestfs_h *g);\n"
20342 "\n"
20343 msgstr ""
20344
20345 # type: textblock
20346 #. type: textblock
20347 #: ../src/guestfs-actions.pod:7277 ../fish/guestfish-actions.pod:4830
20348 msgid ""
20349 "Return the libguestfs version number that the program is linked against."
20350 msgstr ""
20351
20352 # type: textblock
20353 #. type: textblock
20354 #: ../src/guestfs-actions.pod:7280 ../fish/guestfish-actions.pod:4833
20355 msgid ""
20356 "Note that because of dynamic linking this is not necessarily the version of "
20357 "libguestfs that you compiled against.  You can compile the program, and then "
20358 "at runtime dynamically link against a completely different C<libguestfs.so> "
20359 "library."
20360 msgstr ""
20361
20362 # type: textblock
20363 #. type: textblock
20364 #: ../src/guestfs-actions.pod:7285 ../fish/guestfish-actions.pod:4838
20365 msgid ""
20366 "This call was added in version C<1.0.58>.  In previous versions of "
20367 "libguestfs there was no way to get the version number.  From C code you can "
20368 "use dynamic linker functions to find out if this symbol exists (if it "
20369 "doesn't, then it's an earlier version)."
20370 msgstr ""
20371
20372 # type: textblock
20373 #. type: textblock
20374 #: ../src/guestfs-actions.pod:7291 ../fish/guestfish-actions.pod:4844
20375 msgid ""
20376 "The call returns a structure with four elements.  The first three (C<major>, "
20377 "C<minor> and C<release>) are numbers and correspond to the usual version "
20378 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
20379 "but may be used for distro-specific information."
20380 msgstr ""
20381
20382 # type: textblock
20383 #. type: textblock
20384 #: ../src/guestfs-actions.pod:7297 ../fish/guestfish-actions.pod:4850
20385 msgid ""
20386 "To construct the original version string: C<$major.$minor.$release$extra>"
20387 msgstr ""
20388
20389 # type: textblock
20390 #. type: textblock
20391 #: ../src/guestfs-actions.pod:7300 ../fish/guestfish-actions.pod:4853
20392 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
20393 msgstr ""
20394
20395 # type: textblock
20396 #. type: textblock
20397 #: ../src/guestfs-actions.pod:7302
20398 msgid ""
20399 "I<Note:> Don't use this call to test for availability of features.  In "
20400 "enterprise distributions we backport features from later versions into "
20401 "earlier versions, making this an unreliable way to test for features.  Use "
20402 "C<guestfs_available> instead."
20403 msgstr ""
20404
20405 # type: textblock
20406 #. type: textblock
20407 #: ../src/guestfs-actions.pod:7308
20408 msgid ""
20409 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
20410 "error.  I<The caller must call C<guestfs_free_version> after use>."
20411 msgstr ""
20412
20413 # type: textblock
20414 #. type: textblock
20415 #: ../src/guestfs-actions.pod:7312
20416 msgid "(Added in 1.0.58)"
20417 msgstr ""
20418
20419 # type: =head2
20420 #. type: =head2
20421 #: ../src/guestfs-actions.pod:7314
20422 msgid "guestfs_vfs_label"
20423 msgstr ""
20424
20425 # type: verbatim
20426 #. type: verbatim
20427 #: ../src/guestfs-actions.pod:7316
20428 #, no-wrap
20429 msgid ""
20430 " char *\n"
20431 " guestfs_vfs_label (guestfs_h *g,\n"
20432 "                    const char *device);\n"
20433 "\n"
20434 msgstr ""
20435
20436 # type: textblock
20437 #. type: textblock
20438 #: ../src/guestfs-actions.pod:7320 ../fish/guestfish-actions.pod:4865
20439 msgid "This returns the filesystem label of the filesystem on C<device>."
20440 msgstr ""
20441
20442 # type: textblock
20443 #. type: textblock
20444 #: ../src/guestfs-actions.pod:7323 ../fish/guestfish-actions.pod:4868
20445 msgid "If the filesystem is unlabeled, this returns the empty string."
20446 msgstr ""
20447
20448 # type: textblock
20449 #. type: textblock
20450 #: ../src/guestfs-actions.pod:7325
20451 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
20452 msgstr ""
20453
20454 # type: textblock
20455 #. type: textblock
20456 #: ../src/guestfs-actions.pod:7330 ../src/guestfs-actions.pod:7367
20457 msgid "(Added in 1.3.18)"
20458 msgstr ""
20459
20460 # type: =head2
20461 #. type: =head2
20462 #: ../src/guestfs-actions.pod:7332
20463 msgid "guestfs_vfs_type"
20464 msgstr ""
20465
20466 # type: verbatim
20467 #. type: verbatim
20468 #: ../src/guestfs-actions.pod:7334
20469 #, no-wrap
20470 msgid ""
20471 " char *\n"
20472 " guestfs_vfs_type (guestfs_h *g,\n"
20473 "                   const char *device);\n"
20474 "\n"
20475 msgstr ""
20476
20477 # type: textblock
20478 #. type: textblock
20479 #: ../src/guestfs-actions.pod:7338 ../fish/guestfish-actions.pod:4876
20480 msgid ""
20481 "This command gets the filesystem type corresponding to the filesystem on "
20482 "C<device>."
20483 msgstr ""
20484
20485 # type: textblock
20486 #. type: textblock
20487 #: ../src/guestfs-actions.pod:7341 ../fish/guestfish-actions.pod:4879
20488 msgid ""
20489 "For most filesystems, the result is the name of the Linux VFS module which "
20490 "would be used to mount this filesystem if you mounted it without specifying "
20491 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
20492 msgstr ""
20493
20494 # type: =head2
20495 #. type: =head2
20496 #: ../src/guestfs-actions.pod:7351
20497 msgid "guestfs_vfs_uuid"
20498 msgstr ""
20499
20500 # type: verbatim
20501 #. type: verbatim
20502 #: ../src/guestfs-actions.pod:7353
20503 #, no-wrap
20504 msgid ""
20505 " char *\n"
20506 " guestfs_vfs_uuid (guestfs_h *g,\n"
20507 "                   const char *device);\n"
20508 "\n"
20509 msgstr ""
20510
20511 # type: textblock
20512 #. type: textblock
20513 #: ../src/guestfs-actions.pod:7357 ../fish/guestfish-actions.pod:4888
20514 msgid "This returns the filesystem UUID of the filesystem on C<device>."
20515 msgstr ""
20516
20517 # type: textblock
20518 #. type: textblock
20519 #: ../src/guestfs-actions.pod:7360 ../fish/guestfish-actions.pod:4891
20520 msgid "If the filesystem does not have a UUID, this returns the empty string."
20521 msgstr ""
20522
20523 # type: textblock
20524 #. type: textblock
20525 #: ../src/guestfs-actions.pod:7362
20526 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
20527 msgstr ""
20528
20529 # type: =head2
20530 #. type: =head2
20531 #: ../src/guestfs-actions.pod:7369
20532 msgid "guestfs_vg_activate"
20533 msgstr ""
20534
20535 # type: verbatim
20536 #. type: verbatim
20537 #: ../src/guestfs-actions.pod:7371
20538 #, no-wrap
20539 msgid ""
20540 " int\n"
20541 " guestfs_vg_activate (guestfs_h *g,\n"
20542 "                      int activate,\n"
20543 "                      char *const *volgroups);\n"
20544 "\n"
20545 msgstr ""
20546
20547 #. type: textblock
20548 #: ../src/guestfs-actions.pod:7376 ../fish/guestfish-actions.pod:4899
20549 msgid ""
20550 "This command activates or (if C<activate> is false) deactivates all logical "
20551 "volumes in the listed volume groups C<volgroups>."
20552 msgstr ""
20553
20554 # type: textblock
20555 #. type: textblock
20556 #: ../src/guestfs-actions.pod:7379 ../fish/guestfish-actions.pod:4902
20557 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
20558 msgstr ""
20559
20560 # type: textblock
20561 #. type: textblock
20562 #: ../src/guestfs-actions.pod:7381 ../fish/guestfish-actions.pod:4904
20563 msgid ""
20564 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
20565 "activated or deactivated."
20566 msgstr ""
20567
20568 # type: =head2
20569 #. type: =head2
20570 #: ../src/guestfs-actions.pod:7388
20571 msgid "guestfs_vg_activate_all"
20572 msgstr ""
20573
20574 # type: verbatim
20575 #. type: verbatim
20576 #: ../src/guestfs-actions.pod:7390
20577 #, no-wrap
20578 msgid ""
20579 " int\n"
20580 " guestfs_vg_activate_all (guestfs_h *g,\n"
20581 "                          int activate);\n"
20582 "\n"
20583 msgstr ""
20584
20585 #. type: textblock
20586 #: ../src/guestfs-actions.pod:7394 ../fish/guestfish-actions.pod:4911
20587 msgid ""
20588 "This command activates or (if C<activate> is false) deactivates all logical "
20589 "volumes in all volume groups."
20590 msgstr ""
20591
20592 # type: textblock
20593 #. type: textblock
20594 #: ../src/guestfs-actions.pod:7397 ../fish/guestfish-actions.pod:4914
20595 msgid "This command is the same as running C<vgchange -a y|n>"
20596 msgstr ""
20597
20598 # type: =head2
20599 #. type: =head2
20600 #: ../src/guestfs-actions.pod:7403
20601 msgid "guestfs_vgcreate"
20602 msgstr ""
20603
20604 # type: verbatim
20605 #. type: verbatim
20606 #: ../src/guestfs-actions.pod:7405
20607 #, no-wrap
20608 msgid ""
20609 " int\n"
20610 " guestfs_vgcreate (guestfs_h *g,\n"
20611 "                   const char *volgroup,\n"
20612 "                   char *const *physvols);\n"
20613 "\n"
20614 msgstr ""
20615
20616 # type: textblock
20617 #. type: textblock
20618 #: ../src/guestfs-actions.pod:7410 ../fish/guestfish-actions.pod:4920
20619 msgid ""
20620 "This creates an LVM volume group called C<volgroup> from the non-empty list "
20621 "of physical volumes C<physvols>."
20622 msgstr ""
20623
20624 # type: =head2
20625 #. type: =head2
20626 #: ../src/guestfs-actions.pod:7417
20627 msgid "guestfs_vglvuuids"
20628 msgstr ""
20629
20630 # type: verbatim
20631 #. type: verbatim
20632 #: ../src/guestfs-actions.pod:7419
20633 #, no-wrap
20634 msgid ""
20635 " char **\n"
20636 " guestfs_vglvuuids (guestfs_h *g,\n"
20637 "                    const char *vgname);\n"
20638 "\n"
20639 msgstr ""
20640
20641 # type: textblock
20642 #. type: textblock
20643 #: ../src/guestfs-actions.pod:7423 ../fish/guestfish-actions.pod:4927
20644 msgid ""
20645 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
20646 "volumes created in this volume group."
20647 msgstr ""
20648
20649 # type: textblock
20650 #. type: textblock
20651 #: ../src/guestfs-actions.pod:7426
20652 msgid ""
20653 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
20654 "associate logical volumes and volume groups."
20655 msgstr ""
20656
20657 # type: textblock
20658 #. type: textblock
20659 #: ../src/guestfs-actions.pod:7429
20660 msgid "See also C<guestfs_vgpvuuids>."
20661 msgstr ""
20662
20663 # type: =head2
20664 #. type: =head2
20665 #: ../src/guestfs-actions.pod:7437
20666 msgid "guestfs_vgpvuuids"
20667 msgstr ""
20668
20669 # type: verbatim
20670 #. type: verbatim
20671 #: ../src/guestfs-actions.pod:7439
20672 #, no-wrap
20673 msgid ""
20674 " char **\n"
20675 " guestfs_vgpvuuids (guestfs_h *g,\n"
20676 "                    const char *vgname);\n"
20677 "\n"
20678 msgstr ""
20679
20680 # type: textblock
20681 #. type: textblock
20682 #: ../src/guestfs-actions.pod:7443 ../fish/guestfish-actions.pod:4939
20683 msgid ""
20684 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
20685 "volumes that this volume group resides on."
20686 msgstr ""
20687
20688 # type: textblock
20689 #. type: textblock
20690 #: ../src/guestfs-actions.pod:7446
20691 msgid ""
20692 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
20693 "associate physical volumes and volume groups."
20694 msgstr ""
20695
20696 # type: textblock
20697 #. type: textblock
20698 #: ../src/guestfs-actions.pod:7449
20699 msgid "See also C<guestfs_vglvuuids>."
20700 msgstr ""
20701
20702 # type: =head2
20703 #. type: =head2
20704 #: ../src/guestfs-actions.pod:7457
20705 msgid "guestfs_vgremove"
20706 msgstr ""
20707
20708 # type: verbatim
20709 #. type: verbatim
20710 #: ../src/guestfs-actions.pod:7459
20711 #, no-wrap
20712 msgid ""
20713 " int\n"
20714 " guestfs_vgremove (guestfs_h *g,\n"
20715 "                   const char *vgname);\n"
20716 "\n"
20717 msgstr ""
20718
20719 # type: textblock
20720 #. type: textblock
20721 #: ../src/guestfs-actions.pod:7463 ../fish/guestfish-actions.pod:4951
20722 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
20723 msgstr ""
20724
20725 # type: textblock
20726 #. type: textblock
20727 #: ../src/guestfs-actions.pod:7465 ../fish/guestfish-actions.pod:4953
20728 msgid ""
20729 "This also forcibly removes all logical volumes in the volume group (if any)."
20730 msgstr ""
20731
20732 # type: =head2
20733 #. type: =head2
20734 #: ../src/guestfs-actions.pod:7472
20735 msgid "guestfs_vgrename"
20736 msgstr ""
20737
20738 # type: verbatim
20739 #. type: verbatim
20740 #: ../src/guestfs-actions.pod:7474
20741 #, no-wrap
20742 msgid ""
20743 " int\n"
20744 " guestfs_vgrename (guestfs_h *g,\n"
20745 "                   const char *volgroup,\n"
20746 "                   const char *newvolgroup);\n"
20747 "\n"
20748 msgstr ""
20749
20750 # type: textblock
20751 #. type: textblock
20752 #: ../src/guestfs-actions.pod:7479 ../fish/guestfish-actions.pod:4960
20753 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
20754 msgstr ""
20755
20756 # type: =head2
20757 #. type: =head2
20758 #: ../src/guestfs-actions.pod:7485
20759 msgid "guestfs_vgs"
20760 msgstr ""
20761
20762 # type: verbatim
20763 #. type: verbatim
20764 #: ../src/guestfs-actions.pod:7487
20765 #, no-wrap
20766 msgid ""
20767 " char **\n"
20768 " guestfs_vgs (guestfs_h *g);\n"
20769 "\n"
20770 msgstr ""
20771
20772 # type: textblock
20773 #. type: textblock
20774 #: ../src/guestfs-actions.pod:7490 ../fish/guestfish-actions.pod:4966
20775 msgid ""
20776 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
20777 "> command."
20778 msgstr ""
20779
20780 # type: textblock
20781 #. type: textblock
20782 #: ../src/guestfs-actions.pod:7493 ../fish/guestfish-actions.pod:4969
20783 msgid ""
20784 "This returns a list of just the volume group names that were detected (eg. "
20785 "C<VolGroup00>)."
20786 msgstr ""
20787
20788 # type: textblock
20789 #. type: textblock
20790 #: ../src/guestfs-actions.pod:7496
20791 msgid "See also C<guestfs_vgs_full>."
20792 msgstr ""
20793
20794 # type: =head2
20795 #. type: =head2
20796 #: ../src/guestfs-actions.pod:7504
20797 msgid "guestfs_vgs_full"
20798 msgstr ""
20799
20800 # type: verbatim
20801 #. type: verbatim
20802 #: ../src/guestfs-actions.pod:7506
20803 #, no-wrap
20804 msgid ""
20805 " struct guestfs_lvm_vg_list *\n"
20806 " guestfs_vgs_full (guestfs_h *g);\n"
20807 "\n"
20808 msgstr ""
20809
20810 # type: textblock
20811 #. type: textblock
20812 #: ../src/guestfs-actions.pod:7509 ../fish/guestfish-actions.pod:4978
20813 msgid ""
20814 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
20815 "> command.  The \"full\" version includes all fields."
20816 msgstr ""
20817
20818 # type: textblock
20819 #. type: textblock
20820 #: ../src/guestfs-actions.pod:7512
20821 msgid ""
20822 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
20823 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
20824 msgstr ""
20825
20826 # type: =head2
20827 #. type: =head2
20828 #: ../src/guestfs-actions.pod:7518
20829 msgid "guestfs_vgscan"
20830 msgstr ""
20831
20832 # type: verbatim
20833 #. type: verbatim
20834 #: ../src/guestfs-actions.pod:7520
20835 #, no-wrap
20836 msgid ""
20837 " int\n"
20838 " guestfs_vgscan (guestfs_h *g);\n"
20839 "\n"
20840 msgstr ""
20841
20842 # type: textblock
20843 #. type: textblock
20844 #: ../src/guestfs-actions.pod:7523 ../fish/guestfish-actions.pod:4985
20845 msgid ""
20846 "This rescans all block devices and rebuilds the list of LVM physical "
20847 "volumes, volume groups and logical volumes."
20848 msgstr ""
20849
20850 # type: =head2
20851 #. type: =head2
20852 #: ../src/guestfs-actions.pod:7530
20853 msgid "guestfs_vguuid"
20854 msgstr ""
20855
20856 # type: verbatim
20857 #. type: verbatim
20858 #: ../src/guestfs-actions.pod:7532
20859 #, no-wrap
20860 msgid ""
20861 " char *\n"
20862 " guestfs_vguuid (guestfs_h *g,\n"
20863 "                 const char *vgname);\n"
20864 "\n"
20865 msgstr ""
20866
20867 # type: textblock
20868 #. type: textblock
20869 #: ../src/guestfs-actions.pod:7536 ../fish/guestfish-actions.pod:4992
20870 msgid "This command returns the UUID of the LVM VG named C<vgname>."
20871 msgstr ""
20872
20873 # type: =head2
20874 #. type: =head2
20875 #: ../src/guestfs-actions.pod:7543
20876 msgid "guestfs_wait_ready"
20877 msgstr ""
20878
20879 # type: verbatim
20880 #. type: verbatim
20881 #: ../src/guestfs-actions.pod:7545
20882 #, no-wrap
20883 msgid ""
20884 " int\n"
20885 " guestfs_wait_ready (guestfs_h *g);\n"
20886 "\n"
20887 msgstr ""
20888
20889 # type: textblock
20890 #. type: textblock
20891 #: ../src/guestfs-actions.pod:7548
20892 msgid "This function is a no op."
20893 msgstr ""
20894
20895 # type: textblock
20896 #. type: textblock
20897 #: ../src/guestfs-actions.pod:7550
20898 msgid ""
20899 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
20900 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
20901 "is no longer necessary because C<guestfs_launch> now does the waiting."
20902 msgstr ""
20903
20904 # type: textblock
20905 #. type: textblock
20906 #: ../src/guestfs-actions.pod:7555
20907 msgid ""
20908 "If you see any calls to this function in code then you can just remove them, "
20909 "unless you want to retain compatibility with older versions of the API."
20910 msgstr ""
20911
20912 #. type: textblock
20913 #: ../src/guestfs-actions.pod:7561
20914 msgid ""
20915 "This function is deprecated.  In new code, use the C<launch> call instead."
20916 msgstr ""
20917
20918 # type: =head2
20919 #. type: =head2
20920 #: ../src/guestfs-actions.pod:7570
20921 msgid "guestfs_wc_c"
20922 msgstr ""
20923
20924 # type: verbatim
20925 #. type: verbatim
20926 #: ../src/guestfs-actions.pod:7572
20927 #, no-wrap
20928 msgid ""
20929 " int\n"
20930 " guestfs_wc_c (guestfs_h *g,\n"
20931 "               const char *path);\n"
20932 "\n"
20933 msgstr ""
20934
20935 # type: textblock
20936 #. type: textblock
20937 #: ../src/guestfs-actions.pod:7576 ../fish/guestfish-actions.pod:4998
20938 msgid ""
20939 "This command counts the characters in a file, using the C<wc -c> external "
20940 "command."
20941 msgstr ""
20942
20943 # type: =head2
20944 #. type: =head2
20945 #: ../src/guestfs-actions.pod:7583
20946 msgid "guestfs_wc_l"
20947 msgstr ""
20948
20949 # type: verbatim
20950 #. type: verbatim
20951 #: ../src/guestfs-actions.pod:7585
20952 #, no-wrap
20953 msgid ""
20954 " int\n"
20955 " guestfs_wc_l (guestfs_h *g,\n"
20956 "               const char *path);\n"
20957 "\n"
20958 msgstr ""
20959
20960 # type: textblock
20961 #. type: textblock
20962 #: ../src/guestfs-actions.pod:7589 ../fish/guestfish-actions.pod:5005
20963 msgid ""
20964 "This command counts the lines in a file, using the C<wc -l> external command."
20965 msgstr ""
20966
20967 # type: =head2
20968 #. type: =head2
20969 #: ../src/guestfs-actions.pod:7596
20970 msgid "guestfs_wc_w"
20971 msgstr ""
20972
20973 # type: verbatim
20974 #. type: verbatim
20975 #: ../src/guestfs-actions.pod:7598
20976 #, no-wrap
20977 msgid ""
20978 " int\n"
20979 " guestfs_wc_w (guestfs_h *g,\n"
20980 "               const char *path);\n"
20981 "\n"
20982 msgstr ""
20983
20984 # type: textblock
20985 #. type: textblock
20986 #: ../src/guestfs-actions.pod:7602 ../fish/guestfish-actions.pod:5012
20987 msgid ""
20988 "This command counts the words in a file, using the C<wc -w> external command."
20989 msgstr ""
20990
20991 # type: =head2
20992 #. type: =head2
20993 #: ../src/guestfs-actions.pod:7609
20994 msgid "guestfs_write"
20995 msgstr ""
20996
20997 # type: verbatim
20998 #. type: verbatim
20999 #: ../src/guestfs-actions.pod:7611
21000 #, no-wrap
21001 msgid ""
21002 " int\n"
21003 " guestfs_write (guestfs_h *g,\n"
21004 "                const char *path,\n"
21005 "                const char *content,\n"
21006 "                size_t content_size);\n"
21007 "\n"
21008 msgstr ""
21009
21010 # type: textblock
21011 #. type: textblock
21012 #: ../src/guestfs-actions.pod:7617 ../fish/guestfish-actions.pod:5019
21013 msgid ""
21014 "This call creates a file called C<path>.  The content of the file is the "
21015 "string C<content> (which can contain any 8 bit data)."
21016 msgstr ""
21017
21018 # type: =head2
21019 #. type: =head2
21020 #: ../src/guestfs-actions.pod:7627
21021 msgid "guestfs_write_file"
21022 msgstr ""
21023
21024 # type: verbatim
21025 #. type: verbatim
21026 #: ../src/guestfs-actions.pod:7629
21027 #, no-wrap
21028 msgid ""
21029 " int\n"
21030 " guestfs_write_file (guestfs_h *g,\n"
21031 "                     const char *path,\n"
21032 "                     const char *content,\n"
21033 "                     int size);\n"
21034 "\n"
21035 msgstr ""
21036
21037 # type: textblock
21038 #. type: textblock
21039 #: ../src/guestfs-actions.pod:7635 ../fish/guestfish-actions.pod:5029
21040 msgid ""
21041 "This call creates a file called C<path>.  The contents of the file is the "
21042 "string C<content> (which can contain any 8 bit data), with length C<size>."
21043 msgstr ""
21044
21045 # type: textblock
21046 #. type: textblock
21047 #: ../src/guestfs-actions.pod:7639 ../fish/guestfish-actions.pod:5033
21048 msgid ""
21049 "As a special case, if C<size> is C<0> then the length is calculated using "
21050 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
21051 msgstr ""
21052
21053 # type: textblock
21054 #. type: textblock
21055 #: ../src/guestfs-actions.pod:7643 ../fish/guestfish-actions.pod:5037
21056 msgid ""
21057 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
21058 "I<not> work, even if the length is specified."
21059 msgstr ""
21060
21061 # type: textblock
21062 #. type: textblock
21063 #: ../src/guestfs-actions.pod:7651 ../fish/guestfish-actions.pod:5043
21064 msgid ""
21065 "This function is deprecated.  In new code, use the C<write> call instead."
21066 msgstr ""
21067
21068 # type: =head2
21069 #. type: =head2
21070 #: ../src/guestfs-actions.pod:7660
21071 msgid "guestfs_zegrep"
21072 msgstr ""
21073
21074 # type: verbatim
21075 #. type: verbatim
21076 #: ../src/guestfs-actions.pod:7662
21077 #, no-wrap
21078 msgid ""
21079 " char **\n"
21080 " guestfs_zegrep (guestfs_h *g,\n"
21081 "                 const char *regex,\n"
21082 "                 const char *path);\n"
21083 "\n"
21084 msgstr ""
21085
21086 # type: textblock
21087 #. type: textblock
21088 #: ../src/guestfs-actions.pod:7667 ../fish/guestfish-actions.pod:5054
21089 msgid ""
21090 "This calls the external C<zegrep> program and returns the matching lines."
21091 msgstr ""
21092
21093 # type: =head2
21094 #. type: =head2
21095 #: ../src/guestfs-actions.pod:7679
21096 msgid "guestfs_zegrepi"
21097 msgstr ""
21098
21099 # type: verbatim
21100 #. type: verbatim
21101 #: ../src/guestfs-actions.pod:7681
21102 #, no-wrap
21103 msgid ""
21104 " char **\n"
21105 " guestfs_zegrepi (guestfs_h *g,\n"
21106 "                  const char *regex,\n"
21107 "                  const char *path);\n"
21108 "\n"
21109 msgstr ""
21110
21111 # type: textblock
21112 #. type: textblock
21113 #: ../src/guestfs-actions.pod:7686 ../fish/guestfish-actions.pod:5064
21114 msgid ""
21115 "This calls the external C<zegrep -i> program and returns the matching lines."
21116 msgstr ""
21117
21118 # type: =head2
21119 #. type: =head2
21120 #: ../src/guestfs-actions.pod:7698
21121 msgid "guestfs_zero"
21122 msgstr ""
21123
21124 # type: verbatim
21125 #. type: verbatim
21126 #: ../src/guestfs-actions.pod:7700
21127 #, no-wrap
21128 msgid ""
21129 " int\n"
21130 " guestfs_zero (guestfs_h *g,\n"
21131 "               const char *device);\n"
21132 "\n"
21133 msgstr ""
21134
21135 # type: textblock
21136 #. type: textblock
21137 #: ../src/guestfs-actions.pod:7704 ../fish/guestfish-actions.pod:5074
21138 msgid "This command writes zeroes over the first few blocks of C<device>."
21139 msgstr ""
21140
21141 # type: textblock
21142 #. type: textblock
21143 #: ../src/guestfs-actions.pod:7706 ../fish/guestfish-actions.pod:5076
21144 msgid ""
21145 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
21146 "securely wipe the device).  It should be sufficient to remove any partition "
21147 "tables, filesystem superblocks and so on."
21148 msgstr ""
21149
21150 #. type: textblock
21151 #: ../src/guestfs-actions.pod:7710
21152 msgid ""
21153 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
21154 "C<guestfs_is_zero_device>"
21155 msgstr ""
21156
21157 # type: =head2
21158 #. type: =head2
21159 #: ../src/guestfs-actions.pod:7722
21160 msgid "guestfs_zero_device"
21161 msgstr ""
21162
21163 # type: verbatim
21164 #. type: verbatim
21165 #: ../src/guestfs-actions.pod:7724
21166 #, no-wrap
21167 msgid ""
21168 " int\n"
21169 " guestfs_zero_device (guestfs_h *g,\n"
21170 "                      const char *device);\n"
21171 "\n"
21172 msgstr ""
21173
21174 # type: textblock
21175 #. type: textblock
21176 #: ../src/guestfs-actions.pod:7728
21177 msgid ""
21178 "This command writes zeroes over the entire C<device>.  Compare with "
21179 "C<guestfs_zero> which just zeroes the first few blocks of a device."
21180 msgstr ""
21181
21182 # type: textblock
21183 #. type: textblock
21184 #: ../src/guestfs-actions.pod:7742
21185 msgid "(Added in 1.3.1)"
21186 msgstr ""
21187
21188 # type: =head2
21189 #. type: =head2
21190 #: ../src/guestfs-actions.pod:7744
21191 msgid "guestfs_zerofree"
21192 msgstr ""
21193
21194 # type: verbatim
21195 #. type: verbatim
21196 #: ../src/guestfs-actions.pod:7746
21197 #, no-wrap
21198 msgid ""
21199 " int\n"
21200 " guestfs_zerofree (guestfs_h *g,\n"
21201 "                   const char *device);\n"
21202 "\n"
21203 msgstr ""
21204
21205 # type: textblock
21206 #. type: textblock
21207 #: ../src/guestfs-actions.pod:7750 ../fish/guestfish-actions.pod:5098
21208 msgid ""
21209 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
21210 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
21211 "possible to compress the filesystem more effectively."
21212 msgstr ""
21213
21214 # type: textblock
21215 #. type: textblock
21216 #: ../src/guestfs-actions.pod:7755 ../fish/guestfish-actions.pod:5103
21217 msgid "You should B<not> run this program if the filesystem is mounted."
21218 msgstr ""
21219
21220 # type: textblock
21221 #. type: textblock
21222 #: ../src/guestfs-actions.pod:7758 ../fish/guestfish-actions.pod:5106
21223 msgid ""
21224 "It is possible that using this program can damage the filesystem or data on "
21225 "the filesystem."
21226 msgstr ""
21227
21228 # type: =head2
21229 #. type: =head2
21230 #: ../src/guestfs-actions.pod:7765
21231 msgid "guestfs_zfgrep"
21232 msgstr ""
21233
21234 # type: verbatim
21235 #. type: verbatim
21236 #: ../src/guestfs-actions.pod:7767
21237 #, no-wrap
21238 msgid ""
21239 " char **\n"
21240 " guestfs_zfgrep (guestfs_h *g,\n"
21241 "                 const char *pattern,\n"
21242 "                 const char *path);\n"
21243 "\n"
21244 msgstr ""
21245
21246 # type: textblock
21247 #. type: textblock
21248 #: ../src/guestfs-actions.pod:7772 ../fish/guestfish-actions.pod:5113
21249 msgid ""
21250 "This calls the external C<zfgrep> program and returns the matching lines."
21251 msgstr ""
21252
21253 # type: =head2
21254 #. type: =head2
21255 #: ../src/guestfs-actions.pod:7784
21256 msgid "guestfs_zfgrepi"
21257 msgstr ""
21258
21259 # type: verbatim
21260 #. type: verbatim
21261 #: ../src/guestfs-actions.pod:7786
21262 #, no-wrap
21263 msgid ""
21264 " char **\n"
21265 " guestfs_zfgrepi (guestfs_h *g,\n"
21266 "                  const char *pattern,\n"
21267 "                  const char *path);\n"
21268 "\n"
21269 msgstr ""
21270
21271 # type: textblock
21272 #. type: textblock
21273 #: ../src/guestfs-actions.pod:7791 ../fish/guestfish-actions.pod:5123
21274 msgid ""
21275 "This calls the external C<zfgrep -i> program and returns the matching lines."
21276 msgstr ""
21277
21278 # type: =head2
21279 #. type: =head2
21280 #: ../src/guestfs-actions.pod:7803
21281 msgid "guestfs_zfile"
21282 msgstr ""
21283
21284 # type: verbatim
21285 #. type: verbatim
21286 #: ../src/guestfs-actions.pod:7805
21287 #, no-wrap
21288 msgid ""
21289 " char *\n"
21290 " guestfs_zfile (guestfs_h *g,\n"
21291 "                const char *meth,\n"
21292 "                const char *path);\n"
21293 "\n"
21294 msgstr ""
21295
21296 # type: textblock
21297 #. type: textblock
21298 #: ../src/guestfs-actions.pod:7810 ../fish/guestfish-actions.pod:5133
21299 msgid ""
21300 "This command runs C<file> after first decompressing C<path> using C<method>."
21301 msgstr ""
21302
21303 # type: textblock
21304 #. type: textblock
21305 #: ../src/guestfs-actions.pod:7813 ../fish/guestfish-actions.pod:5136
21306 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
21307 msgstr ""
21308
21309 # type: textblock
21310 #. type: textblock
21311 #: ../src/guestfs-actions.pod:7815
21312 msgid ""
21313 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
21314 "files."
21315 msgstr ""
21316
21317 # type: textblock
21318 #. type: textblock
21319 #: ../src/guestfs-actions.pod:7821 ../fish/guestfish-actions.pod:5141
21320 msgid ""
21321 "This function is deprecated.  In new code, use the C<file> call instead."
21322 msgstr ""
21323
21324 # type: =head2
21325 #. type: =head2
21326 #: ../src/guestfs-actions.pod:7830
21327 msgid "guestfs_zgrep"
21328 msgstr ""
21329
21330 # type: verbatim
21331 #. type: verbatim
21332 #: ../src/guestfs-actions.pod:7832
21333 #, no-wrap
21334 msgid ""
21335 " char **\n"
21336 " guestfs_zgrep (guestfs_h *g,\n"
21337 "                const char *regex,\n"
21338 "                const char *path);\n"
21339 "\n"
21340 msgstr ""
21341
21342 # type: textblock
21343 #. type: textblock
21344 #: ../src/guestfs-actions.pod:7837 ../fish/guestfish-actions.pod:5152
21345 msgid ""
21346 "This calls the external C<zgrep> program and returns the matching lines."
21347 msgstr ""
21348
21349 # type: =head2
21350 #. type: =head2
21351 #: ../src/guestfs-actions.pod:7849
21352 msgid "guestfs_zgrepi"
21353 msgstr ""
21354
21355 # type: verbatim
21356 #. type: verbatim
21357 #: ../src/guestfs-actions.pod:7851
21358 #, no-wrap
21359 msgid ""
21360 " char **\n"
21361 " guestfs_zgrepi (guestfs_h *g,\n"
21362 "                 const char *regex,\n"
21363 "                 const char *path);\n"
21364 "\n"
21365 msgstr ""
21366
21367 # type: textblock
21368 #. type: textblock
21369 #: ../src/guestfs-actions.pod:7856 ../fish/guestfish-actions.pod:5162
21370 msgid ""
21371 "This calls the external C<zgrep -i> program and returns the matching lines."
21372 msgstr ""
21373
21374 # type: =item
21375 #. type: =item
21376 #: ../src/guestfs-availability.pod:3
21377 msgid "B<augeas>"
21378 msgstr ""
21379
21380 # type: textblock
21381 #. type: textblock
21382 #: ../src/guestfs-availability.pod:5
21383 msgid ""
21384 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
21385 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
21386 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
21387 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
21388 "L</guestfs_aug_save> L</guestfs_aug_set>"
21389 msgstr ""
21390
21391 #. type: =item
21392 #: ../src/guestfs-availability.pod:21
21393 msgid "B<btrfs>"
21394 msgstr ""
21395
21396 #. type: textblock
21397 #: ../src/guestfs-availability.pod:23
21398 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
21399 msgstr ""
21400
21401 # type: =item
21402 #. type: =item
21403 #: ../src/guestfs-availability.pod:26
21404 msgid "B<inotify>"
21405 msgstr ""
21406
21407 # type: textblock
21408 #. type: textblock
21409 #: ../src/guestfs-availability.pod:28
21410 msgid ""
21411 "The following functions: L</guestfs_inotify_add_watch> L</"
21412 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
21413 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
21414 msgstr ""
21415
21416 # type: =item
21417 #. type: =item
21418 #: ../src/guestfs-availability.pod:36
21419 msgid "B<linuxfsuuid>"
21420 msgstr ""
21421
21422 # type: textblock
21423 #. type: textblock
21424 #: ../src/guestfs-availability.pod:38
21425 msgid ""
21426 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
21427 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
21428 msgstr ""
21429
21430 # type: =item
21431 #. type: =item
21432 #: ../src/guestfs-availability.pod:45
21433 msgid "B<linuxmodules>"
21434 msgstr ""
21435
21436 # type: textblock
21437 #. type: textblock
21438 #: ../src/guestfs-availability.pod:47
21439 msgid "The following functions: L</guestfs_modprobe>"
21440 msgstr ""
21441
21442 # type: =item
21443 #. type: =item
21444 #: ../src/guestfs-availability.pod:50
21445 msgid "B<linuxxattrs>"
21446 msgstr ""
21447
21448 # type: textblock
21449 #. type: textblock
21450 #: ../src/guestfs-availability.pod:52
21451 msgid ""
21452 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
21453 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
21454 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
21455 "guestfs_setxattr>"
21456 msgstr ""
21457
21458 # type: =item
21459 #. type: =item
21460 #: ../src/guestfs-availability.pod:63
21461 msgid "B<luks>"
21462 msgstr ""
21463
21464 # type: textblock
21465 #. type: textblock
21466 #: ../src/guestfs-availability.pod:65
21467 msgid ""
21468 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
21469 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
21470 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
21471 msgstr ""
21472
21473 # type: =item
21474 #. type: =item
21475 #: ../src/guestfs-availability.pod:74
21476 msgid "B<lvm2>"
21477 msgstr ""
21478
21479 # type: textblock
21480 #. type: textblock
21481 #: ../src/guestfs-availability.pod:76
21482 msgid ""
21483 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
21484 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
21485 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
21486 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
21487 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
21488 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
21489 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
21490 msgstr ""
21491
21492 # type: =item
21493 #. type: =item
21494 #: ../src/guestfs-availability.pod:99
21495 msgid "B<mknod>"
21496 msgstr ""
21497
21498 # type: textblock
21499 #. type: textblock
21500 #: ../src/guestfs-availability.pod:101
21501 msgid ""
21502 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
21503 "guestfs_mknod_b> L</guestfs_mknod_c>"
21504 msgstr ""
21505
21506 # type: =item
21507 #. type: =item
21508 #: ../src/guestfs-availability.pod:107
21509 msgid "B<ntfs3g>"
21510 msgstr ""
21511
21512 # type: textblock
21513 #. type: textblock
21514 #: ../src/guestfs-availability.pod:109
21515 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
21516 msgstr ""
21517
21518 # type: =item
21519 #. type: =item
21520 #: ../src/guestfs-availability.pod:112
21521 msgid "B<ntfsprogs>"
21522 msgstr ""
21523
21524 #. type: textblock
21525 #: ../src/guestfs-availability.pod:114
21526 msgid ""
21527 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
21528 "L</guestfs_ntfsresize_size>"
21529 msgstr ""
21530
21531 # type: =item
21532 #. type: =item
21533 #: ../src/guestfs-availability.pod:119
21534 msgid "B<realpath>"
21535 msgstr ""
21536
21537 # type: textblock
21538 #. type: textblock
21539 #: ../src/guestfs-availability.pod:121
21540 msgid "The following functions: L</guestfs_realpath>"
21541 msgstr ""
21542
21543 # type: =item
21544 #. type: =item
21545 #: ../src/guestfs-availability.pod:124
21546 msgid "B<scrub>"
21547 msgstr ""
21548
21549 # type: textblock
21550 #. type: textblock
21551 #: ../src/guestfs-availability.pod:126
21552 msgid ""
21553 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
21554 "guestfs_scrub_freespace>"
21555 msgstr ""
21556
21557 # type: =item
21558 #. type: =item
21559 #: ../src/guestfs-availability.pod:131
21560 msgid "B<selinux>"
21561 msgstr ""
21562
21563 # type: textblock
21564 #. type: textblock
21565 #: ../src/guestfs-availability.pod:133
21566 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
21567 msgstr ""
21568
21569 # type: =item
21570 #. type: =item
21571 #: ../src/guestfs-availability.pod:137
21572 msgid "B<xz>"
21573 msgstr ""
21574
21575 # type: textblock
21576 #. type: textblock
21577 #: ../src/guestfs-availability.pod:139
21578 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
21579 msgstr ""
21580
21581 # type: =item
21582 #. type: =item
21583 #: ../src/guestfs-availability.pod:143
21584 msgid "B<zerofree>"
21585 msgstr ""
21586
21587 # type: textblock
21588 #. type: textblock
21589 #: ../src/guestfs-availability.pod:145
21590 msgid "The following functions: L</guestfs_zerofree>"
21591 msgstr ""
21592
21593 # type: =head2
21594 #. type: =head2
21595 #: ../src/guestfs-structs.pod:1
21596 msgid "guestfs_int_bool"
21597 msgstr ""
21598
21599 # type: verbatim
21600 #. type: verbatim
21601 #: ../src/guestfs-structs.pod:3
21602 #, no-wrap
21603 msgid ""
21604 " struct guestfs_int_bool {\n"
21605 "   int32_t i;\n"
21606 "   int32_t b;\n"
21607 " };\n"
21608 " \n"
21609 msgstr ""
21610
21611 # type: verbatim
21612 #. type: verbatim
21613 #: ../src/guestfs-structs.pod:8
21614 #, no-wrap
21615 msgid ""
21616 " struct guestfs_int_bool_list {\n"
21617 "   uint32_t len; /* Number of elements in list. */\n"
21618 "   struct guestfs_int_bool *val; /* Elements. */\n"
21619 " };\n"
21620 " \n"
21621 msgstr ""
21622
21623 # type: verbatim
21624 #. type: verbatim
21625 #: ../src/guestfs-structs.pod:13
21626 #, no-wrap
21627 msgid ""
21628 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
21629 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
21630 "\n"
21631 msgstr ""
21632
21633 # type: =head2
21634 #. type: =head2
21635 #: ../src/guestfs-structs.pod:16
21636 msgid "guestfs_lvm_pv"
21637 msgstr ""
21638
21639 # type: verbatim
21640 #. type: verbatim
21641 #: ../src/guestfs-structs.pod:18
21642 #, no-wrap
21643 msgid ""
21644 " struct guestfs_lvm_pv {\n"
21645 "   char *pv_name;\n"
21646 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
21647 "   char pv_uuid[32];\n"
21648 "   char *pv_fmt;\n"
21649 "   uint64_t pv_size;\n"
21650 "   uint64_t dev_size;\n"
21651 "   uint64_t pv_free;\n"
21652 "   uint64_t pv_used;\n"
21653 "   char *pv_attr;\n"
21654 "   int64_t pv_pe_count;\n"
21655 "   int64_t pv_pe_alloc_count;\n"
21656 "   char *pv_tags;\n"
21657 "   uint64_t pe_start;\n"
21658 "   int64_t pv_mda_count;\n"
21659 "   uint64_t pv_mda_free;\n"
21660 " };\n"
21661 " \n"
21662 msgstr ""
21663
21664 # type: verbatim
21665 #. type: verbatim
21666 #: ../src/guestfs-structs.pod:36
21667 #, no-wrap
21668 msgid ""
21669 " struct guestfs_lvm_pv_list {\n"
21670 "   uint32_t len; /* Number of elements in list. */\n"
21671 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
21672 " };\n"
21673 " \n"
21674 msgstr ""
21675
21676 # type: verbatim
21677 #. type: verbatim
21678 #: ../src/guestfs-structs.pod:41
21679 #, no-wrap
21680 msgid ""
21681 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
21682 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
21683 "\n"
21684 msgstr ""
21685
21686 # type: =head2
21687 #. type: =head2
21688 #: ../src/guestfs-structs.pod:44
21689 msgid "guestfs_lvm_vg"
21690 msgstr ""
21691
21692 # type: verbatim
21693 #. type: verbatim
21694 #: ../src/guestfs-structs.pod:46
21695 #, no-wrap
21696 msgid ""
21697 " struct guestfs_lvm_vg {\n"
21698 "   char *vg_name;\n"
21699 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
21700 "   char vg_uuid[32];\n"
21701 "   char *vg_fmt;\n"
21702 "   char *vg_attr;\n"
21703 "   uint64_t vg_size;\n"
21704 "   uint64_t vg_free;\n"
21705 "   char *vg_sysid;\n"
21706 "   uint64_t vg_extent_size;\n"
21707 "   int64_t vg_extent_count;\n"
21708 "   int64_t vg_free_count;\n"
21709 "   int64_t max_lv;\n"
21710 "   int64_t max_pv;\n"
21711 "   int64_t pv_count;\n"
21712 "   int64_t lv_count;\n"
21713 "   int64_t snap_count;\n"
21714 "   int64_t vg_seqno;\n"
21715 "   char *vg_tags;\n"
21716 "   int64_t vg_mda_count;\n"
21717 "   uint64_t vg_mda_free;\n"
21718 " };\n"
21719 " \n"
21720 msgstr ""
21721
21722 # type: verbatim
21723 #. type: verbatim
21724 #: ../src/guestfs-structs.pod:69
21725 #, no-wrap
21726 msgid ""
21727 " struct guestfs_lvm_vg_list {\n"
21728 "   uint32_t len; /* Number of elements in list. */\n"
21729 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
21730 " };\n"
21731 " \n"
21732 msgstr ""
21733
21734 # type: verbatim
21735 #. type: verbatim
21736 #: ../src/guestfs-structs.pod:74
21737 #, no-wrap
21738 msgid ""
21739 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
21740 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
21741 "\n"
21742 msgstr ""
21743
21744 # type: =head2
21745 #. type: =head2
21746 #: ../src/guestfs-structs.pod:77
21747 msgid "guestfs_lvm_lv"
21748 msgstr ""
21749
21750 # type: verbatim
21751 #. type: verbatim
21752 #: ../src/guestfs-structs.pod:79
21753 #, no-wrap
21754 msgid ""
21755 " struct guestfs_lvm_lv {\n"
21756 "   char *lv_name;\n"
21757 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
21758 "   char lv_uuid[32];\n"
21759 "   char *lv_attr;\n"
21760 "   int64_t lv_major;\n"
21761 "   int64_t lv_minor;\n"
21762 "   int64_t lv_kernel_major;\n"
21763 "   int64_t lv_kernel_minor;\n"
21764 "   uint64_t lv_size;\n"
21765 "   int64_t seg_count;\n"
21766 "   char *origin;\n"
21767 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
21768 "   float snap_percent;\n"
21769 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
21770 "   float copy_percent;\n"
21771 "   char *move_pv;\n"
21772 "   char *lv_tags;\n"
21773 "   char *mirror_log;\n"
21774 "   char *modules;\n"
21775 " };\n"
21776 " \n"
21777 msgstr ""
21778
21779 # type: verbatim
21780 #. type: verbatim
21781 #: ../src/guestfs-structs.pod:101
21782 #, no-wrap
21783 msgid ""
21784 " struct guestfs_lvm_lv_list {\n"
21785 "   uint32_t len; /* Number of elements in list. */\n"
21786 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
21787 " };\n"
21788 " \n"
21789 msgstr ""
21790
21791 # type: verbatim
21792 #. type: verbatim
21793 #: ../src/guestfs-structs.pod:106
21794 #, no-wrap
21795 msgid ""
21796 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
21797 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
21798 "\n"
21799 msgstr ""
21800
21801 # type: verbatim
21802 #. type: verbatim
21803 #: ../src/guestfs-structs.pod:111
21804 #, no-wrap
21805 msgid ""
21806 " struct guestfs_stat {\n"
21807 "   int64_t dev;\n"
21808 "   int64_t ino;\n"
21809 "   int64_t mode;\n"
21810 "   int64_t nlink;\n"
21811 "   int64_t uid;\n"
21812 "   int64_t gid;\n"
21813 "   int64_t rdev;\n"
21814 "   int64_t size;\n"
21815 "   int64_t blksize;\n"
21816 "   int64_t blocks;\n"
21817 "   int64_t atime;\n"
21818 "   int64_t mtime;\n"
21819 "   int64_t ctime;\n"
21820 " };\n"
21821 " \n"
21822 msgstr ""
21823
21824 # type: verbatim
21825 #. type: verbatim
21826 #: ../src/guestfs-structs.pod:127
21827 #, no-wrap
21828 msgid ""
21829 " struct guestfs_stat_list {\n"
21830 "   uint32_t len; /* Number of elements in list. */\n"
21831 "   struct guestfs_stat *val; /* Elements. */\n"
21832 " };\n"
21833 " \n"
21834 msgstr ""
21835
21836 # type: verbatim
21837 #. type: verbatim
21838 #: ../src/guestfs-structs.pod:132
21839 #, no-wrap
21840 msgid ""
21841 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
21842 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
21843 "\n"
21844 msgstr ""
21845
21846 # type: verbatim
21847 #. type: verbatim
21848 #: ../src/guestfs-structs.pod:137
21849 #, no-wrap
21850 msgid ""
21851 " struct guestfs_statvfs {\n"
21852 "   int64_t bsize;\n"
21853 "   int64_t frsize;\n"
21854 "   int64_t blocks;\n"
21855 "   int64_t bfree;\n"
21856 "   int64_t bavail;\n"
21857 "   int64_t files;\n"
21858 "   int64_t ffree;\n"
21859 "   int64_t favail;\n"
21860 "   int64_t fsid;\n"
21861 "   int64_t flag;\n"
21862 "   int64_t namemax;\n"
21863 " };\n"
21864 " \n"
21865 msgstr ""
21866
21867 # type: verbatim
21868 #. type: verbatim
21869 #: ../src/guestfs-structs.pod:151
21870 #, no-wrap
21871 msgid ""
21872 " struct guestfs_statvfs_list {\n"
21873 "   uint32_t len; /* Number of elements in list. */\n"
21874 "   struct guestfs_statvfs *val; /* Elements. */\n"
21875 " };\n"
21876 " \n"
21877 msgstr ""
21878
21879 # type: verbatim
21880 #. type: verbatim
21881 #: ../src/guestfs-structs.pod:156
21882 #, no-wrap
21883 msgid ""
21884 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
21885 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
21886 "\n"
21887 msgstr ""
21888
21889 # type: =head2
21890 #. type: =head2
21891 #: ../src/guestfs-structs.pod:159
21892 msgid "guestfs_dirent"
21893 msgstr ""
21894
21895 # type: verbatim
21896 #. type: verbatim
21897 #: ../src/guestfs-structs.pod:161
21898 #, no-wrap
21899 msgid ""
21900 " struct guestfs_dirent {\n"
21901 "   int64_t ino;\n"
21902 "   char ftyp;\n"
21903 "   char *name;\n"
21904 " };\n"
21905 " \n"
21906 msgstr ""
21907
21908 # type: verbatim
21909 #. type: verbatim
21910 #: ../src/guestfs-structs.pod:167
21911 #, no-wrap
21912 msgid ""
21913 " struct guestfs_dirent_list {\n"
21914 "   uint32_t len; /* Number of elements in list. */\n"
21915 "   struct guestfs_dirent *val; /* Elements. */\n"
21916 " };\n"
21917 " \n"
21918 msgstr ""
21919
21920 # type: verbatim
21921 #. type: verbatim
21922 #: ../src/guestfs-structs.pod:172
21923 #, no-wrap
21924 msgid ""
21925 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
21926 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
21927 "\n"
21928 msgstr ""
21929
21930 # type: verbatim
21931 #. type: verbatim
21932 #: ../src/guestfs-structs.pod:177
21933 #, no-wrap
21934 msgid ""
21935 " struct guestfs_version {\n"
21936 "   int64_t major;\n"
21937 "   int64_t minor;\n"
21938 "   int64_t release;\n"
21939 "   char *extra;\n"
21940 " };\n"
21941 " \n"
21942 msgstr ""
21943
21944 # type: verbatim
21945 #. type: verbatim
21946 #: ../src/guestfs-structs.pod:184
21947 #, no-wrap
21948 msgid ""
21949 " struct guestfs_version_list {\n"
21950 "   uint32_t len; /* Number of elements in list. */\n"
21951 "   struct guestfs_version *val; /* Elements. */\n"
21952 " };\n"
21953 " \n"
21954 msgstr ""
21955
21956 # type: verbatim
21957 #. type: verbatim
21958 #: ../src/guestfs-structs.pod:189
21959 #, no-wrap
21960 msgid ""
21961 " void guestfs_free_version (struct guestfs_free_version *);\n"
21962 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
21963 "\n"
21964 msgstr ""
21965
21966 # type: =head2
21967 #. type: =head2
21968 #: ../src/guestfs-structs.pod:192
21969 msgid "guestfs_xattr"
21970 msgstr ""
21971
21972 # type: verbatim
21973 #. type: verbatim
21974 #: ../src/guestfs-structs.pod:194
21975 #, no-wrap
21976 msgid ""
21977 " struct guestfs_xattr {\n"
21978 "   char *attrname;\n"
21979 "   /* The next two fields describe a byte array. */\n"
21980 "   uint32_t attrval_len;\n"
21981 "   char *attrval;\n"
21982 " };\n"
21983 " \n"
21984 msgstr ""
21985
21986 # type: verbatim
21987 #. type: verbatim
21988 #: ../src/guestfs-structs.pod:201
21989 #, no-wrap
21990 msgid ""
21991 " struct guestfs_xattr_list {\n"
21992 "   uint32_t len; /* Number of elements in list. */\n"
21993 "   struct guestfs_xattr *val; /* Elements. */\n"
21994 " };\n"
21995 " \n"
21996 msgstr ""
21997
21998 # type: verbatim
21999 #. type: verbatim
22000 #: ../src/guestfs-structs.pod:206
22001 #, no-wrap
22002 msgid ""
22003 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
22004 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
22005 "\n"
22006 msgstr ""
22007
22008 # type: =head2
22009 #. type: =head2
22010 #: ../src/guestfs-structs.pod:209
22011 msgid "guestfs_inotify_event"
22012 msgstr ""
22013
22014 # type: verbatim
22015 #. type: verbatim
22016 #: ../src/guestfs-structs.pod:211
22017 #, no-wrap
22018 msgid ""
22019 " struct guestfs_inotify_event {\n"
22020 "   int64_t in_wd;\n"
22021 "   uint32_t in_mask;\n"
22022 "   uint32_t in_cookie;\n"
22023 "   char *in_name;\n"
22024 " };\n"
22025 " \n"
22026 msgstr ""
22027
22028 # type: verbatim
22029 #. type: verbatim
22030 #: ../src/guestfs-structs.pod:218
22031 #, no-wrap
22032 msgid ""
22033 " struct guestfs_inotify_event_list {\n"
22034 "   uint32_t len; /* Number of elements in list. */\n"
22035 "   struct guestfs_inotify_event *val; /* Elements. */\n"
22036 " };\n"
22037 " \n"
22038 msgstr ""
22039
22040 # type: verbatim
22041 #. type: verbatim
22042 #: ../src/guestfs-structs.pod:223
22043 #, no-wrap
22044 msgid ""
22045 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
22046 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
22047 "\n"
22048 msgstr ""
22049
22050 # type: =head2
22051 #. type: =head2
22052 #: ../src/guestfs-structs.pod:226
22053 msgid "guestfs_partition"
22054 msgstr ""
22055
22056 # type: verbatim
22057 #. type: verbatim
22058 #: ../src/guestfs-structs.pod:228
22059 #, no-wrap
22060 msgid ""
22061 " struct guestfs_partition {\n"
22062 "   int32_t part_num;\n"
22063 "   uint64_t part_start;\n"
22064 "   uint64_t part_end;\n"
22065 "   uint64_t part_size;\n"
22066 " };\n"
22067 " \n"
22068 msgstr ""
22069
22070 # type: verbatim
22071 #. type: verbatim
22072 #: ../src/guestfs-structs.pod:235
22073 #, no-wrap
22074 msgid ""
22075 " struct guestfs_partition_list {\n"
22076 "   uint32_t len; /* Number of elements in list. */\n"
22077 "   struct guestfs_partition *val; /* Elements. */\n"
22078 " };\n"
22079 " \n"
22080 msgstr ""
22081
22082 # type: verbatim
22083 #. type: verbatim
22084 #: ../src/guestfs-structs.pod:240
22085 #, no-wrap
22086 msgid ""
22087 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
22088 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
22089 "\n"
22090 msgstr ""
22091
22092 # type: =head2
22093 #. type: =head2
22094 #: ../src/guestfs-structs.pod:243
22095 msgid "guestfs_application"
22096 msgstr ""
22097
22098 # type: verbatim
22099 #. type: verbatim
22100 #: ../src/guestfs-structs.pod:245
22101 #, no-wrap
22102 msgid ""
22103 " struct guestfs_application {\n"
22104 "   char *app_name;\n"
22105 "   char *app_display_name;\n"
22106 "   int32_t app_epoch;\n"
22107 "   char *app_version;\n"
22108 "   char *app_release;\n"
22109 "   char *app_install_path;\n"
22110 "   char *app_trans_path;\n"
22111 "   char *app_publisher;\n"
22112 "   char *app_url;\n"
22113 "   char *app_source_package;\n"
22114 "   char *app_summary;\n"
22115 "   char *app_description;\n"
22116 " };\n"
22117 " \n"
22118 msgstr ""
22119
22120 # type: verbatim
22121 #. type: verbatim
22122 #: ../src/guestfs-structs.pod:260
22123 #, no-wrap
22124 msgid ""
22125 " struct guestfs_application_list {\n"
22126 "   uint32_t len; /* Number of elements in list. */\n"
22127 "   struct guestfs_application *val; /* Elements. */\n"
22128 " };\n"
22129 " \n"
22130 msgstr ""
22131
22132 # type: verbatim
22133 #. type: verbatim
22134 #: ../src/guestfs-structs.pod:265
22135 #, no-wrap
22136 msgid ""
22137 " void guestfs_free_application (struct guestfs_free_application *);\n"
22138 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
22139 "\n"
22140 msgstr ""
22141
22142 # type: textblock
22143 #. type: textblock
22144 #: ../fish/guestfish.pod:5
22145 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
22146 msgstr ""
22147
22148 # type: verbatim
22149 #. type: verbatim
22150 #: ../fish/guestfish.pod:9
22151 #, no-wrap
22152 msgid ""
22153 " guestfish [--options] [commands]\n"
22154 "\n"
22155 msgstr ""
22156
22157 # type: verbatim
22158 #. type: verbatim
22159 #: ../fish/guestfish.pod:11
22160 #, no-wrap
22161 msgid ""
22162 " guestfish\n"
22163 "\n"
22164 msgstr ""
22165
22166 # type: verbatim
22167 #. type: verbatim
22168 #: ../fish/guestfish.pod:13
22169 #, no-wrap
22170 msgid ""
22171 " guestfish [--ro|--rw] -a disk.img\n"
22172 "\n"
22173 msgstr ""
22174
22175 # type: verbatim
22176 #. type: verbatim
22177 #: ../fish/guestfish.pod:15
22178 #, no-wrap
22179 msgid ""
22180 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
22181 "\n"
22182 msgstr ""
22183
22184 # type: verbatim
22185 #. type: verbatim
22186 #: ../fish/guestfish.pod:17
22187 #, no-wrap
22188 msgid ""
22189 " guestfish -d libvirt-domain\n"
22190 "\n"
22191 msgstr ""
22192
22193 # type: verbatim
22194 #. type: verbatim
22195 #: ../fish/guestfish.pod:19
22196 #, no-wrap
22197 msgid ""
22198 " guestfish [--ro|--rw] -a disk.img -i\n"
22199 "\n"
22200 msgstr ""
22201
22202 # type: verbatim
22203 #. type: verbatim
22204 #: ../fish/guestfish.pod:21
22205 #, no-wrap
22206 msgid ""
22207 " guestfish -d libvirt-domain -i\n"
22208 "\n"
22209 msgstr ""
22210
22211 # type: =head1
22212 #. type: =head1
22213 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15
22214 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:64
22215 msgid "WARNING"
22216 msgstr ""
22217
22218 # type: textblock
22219 #. type: textblock
22220 #: ../fish/guestfish.pod:25
22221 msgid ""
22222 "Using guestfish in read/write mode on live virtual machines can be "
22223 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
22224 "option to use guestfish safely if the disk image or virtual machine might be "
22225 "live."
22226 msgstr ""
22227
22228 # type: textblock
22229 #. type: textblock
22230 #: ../fish/guestfish.pod:32
22231 msgid ""
22232 "Guestfish is a shell and command-line tool for examining and modifying "
22233 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
22234 "functionality of the guestfs API, see L<guestfs(3)>."
22235 msgstr ""
22236
22237 # type: textblock
22238 #. type: textblock
22239 #: ../fish/guestfish.pod:36
22240 msgid ""
22241 "Guestfish gives you structured access to the libguestfs API, from shell "
22242 "scripts or the command line or interactively.  If you want to rescue a "
22243 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
22244 "command."
22245 msgstr ""
22246
22247 # type: =head1
22248 #. type: =head1
22249 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:949
22250 #: ../fuse/guestmount.pod:39 ../tools/virt-tar.pl:50
22251 msgid "EXAMPLES"
22252 msgstr ""
22253
22254 # type: =head2
22255 #. type: =head2
22256 #: ../fish/guestfish.pod:43
22257 msgid "As an interactive shell"
22258 msgstr ""
22259
22260 # type: verbatim
22261 #. type: verbatim
22262 #: ../fish/guestfish.pod:45
22263 #, no-wrap
22264 msgid ""
22265 " $ guestfish\n"
22266 " \n"
22267 msgstr ""
22268
22269 # type: verbatim
22270 #. type: verbatim
22271 #: ../fish/guestfish.pod:47
22272 #, no-wrap
22273 msgid ""
22274 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
22275 " editing virtual machine filesystems.\n"
22276 " \n"
22277 msgstr ""
22278
22279 # type: verbatim
22280 #. type: verbatim
22281 #: ../fish/guestfish.pod:50
22282 #, no-wrap
22283 msgid ""
22284 " Type: 'help' for a list of commands\n"
22285 "       'man' to read the manual\n"
22286 "       'quit' to quit the shell\n"
22287 " \n"
22288 msgstr ""
22289
22290 # type: verbatim
22291 #. type: verbatim
22292 #: ../fish/guestfish.pod:54
22293 #, no-wrap
22294 msgid ""
22295 " ><fs> add-ro disk.img\n"
22296 " ><fs> run\n"
22297 " ><fs> list-filesystems\n"
22298 " /dev/sda1: ext4\n"
22299 " /dev/vg_guest/lv_root: ext4\n"
22300 " /dev/vg_guest/lv_swap: swap\n"
22301 " ><fs> mount /dev/vg_guest/lv_root /\n"
22302 " ><fs> cat /etc/fstab\n"
22303 " # /etc/fstab\n"
22304 " # Created by anaconda\n"
22305 " [...]\n"
22306 " ><fs> exit\n"
22307 "\n"
22308 msgstr ""
22309
22310 # type: =head2
22311 #. type: =head2
22312 #: ../fish/guestfish.pod:67
22313 msgid "From shell scripts"
22314 msgstr ""
22315
22316 # type: textblock
22317 #. type: textblock
22318 #: ../fish/guestfish.pod:69
22319 msgid "Create a new C</etc/motd> file in a guest or disk image:"
22320 msgstr ""
22321
22322 # type: verbatim
22323 #. type: verbatim
22324 #: ../fish/guestfish.pod:71
22325 #, no-wrap
22326 msgid ""
22327 " guestfish <<_EOF_\n"
22328 " add disk.img\n"
22329 " run\n"
22330 " mount /dev/vg_guest/lv_root /\n"
22331 " write /etc/motd \"Welcome, new users\"\n"
22332 " _EOF_\n"
22333 "\n"
22334 msgstr ""
22335
22336 # type: textblock
22337 #. type: textblock
22338 #: ../fish/guestfish.pod:78
22339 msgid "List the LVM logical volumes in a disk image:"
22340 msgstr ""
22341
22342 # type: verbatim
22343 #. type: verbatim
22344 #: ../fish/guestfish.pod:80
22345 #, no-wrap
22346 msgid ""
22347 " guestfish -a disk.img --ro <<_EOF_\n"
22348 " run\n"
22349 " lvs\n"
22350 " _EOF_\n"
22351 "\n"
22352 msgstr ""
22353
22354 # type: textblock
22355 #. type: textblock
22356 #: ../fish/guestfish.pod:85
22357 msgid "List all the filesystems in a disk image:"
22358 msgstr ""
22359
22360 # type: verbatim
22361 #. type: verbatim
22362 #: ../fish/guestfish.pod:87
22363 #, no-wrap
22364 msgid ""
22365 " guestfish -a disk.img --ro <<_EOF_\n"
22366 " run\n"
22367 " list-filesystems\n"
22368 " _EOF_\n"
22369 "\n"
22370 msgstr ""
22371
22372 # type: =head2
22373 #. type: =head2
22374 #: ../fish/guestfish.pod:92
22375 msgid "On one command line"
22376 msgstr ""
22377
22378 # type: textblock
22379 #. type: textblock
22380 #: ../fish/guestfish.pod:94
22381 msgid "Update C</etc/resolv.conf> in a guest:"
22382 msgstr ""
22383
22384 # type: verbatim
22385 #. type: verbatim
22386 #: ../fish/guestfish.pod:96
22387 #, no-wrap
22388 msgid ""
22389 " guestfish \\\n"
22390 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
22391 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
22392 "\n"
22393 msgstr ""
22394
22395 # type: textblock
22396 #. type: textblock
22397 #: ../fish/guestfish.pod:100
22398 msgid "Edit C</boot/grub/grub.conf> interactively:"
22399 msgstr ""
22400
22401 # type: verbatim
22402 #. type: verbatim
22403 #: ../fish/guestfish.pod:102
22404 #, no-wrap
22405 msgid ""
22406 " guestfish --rw --add disk.img \\\n"
22407 "   --mount /dev/vg_guest/lv_root \\\n"
22408 "   --mount /dev/sda1:/boot \\\n"
22409 "   edit /boot/grub/grub.conf\n"
22410 "\n"
22411 msgstr ""
22412
22413 # type: =head2
22414 #. type: =head2
22415 #: ../fish/guestfish.pod:107
22416 msgid "Mount disks automatically"
22417 msgstr ""
22418
22419 # type: textblock
22420 #. type: textblock
22421 #: ../fish/guestfish.pod:109
22422 msgid ""
22423 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
22424 msgstr ""
22425
22426 # type: verbatim
22427 #. type: verbatim
22428 #: ../fish/guestfish.pod:112
22429 #, no-wrap
22430 msgid ""
22431 " guestfish --ro -a disk.img -i cat /etc/group\n"
22432 "\n"
22433 msgstr ""
22434
22435 # type: verbatim
22436 #. type: verbatim
22437 #: ../fish/guestfish.pod:114
22438 #, no-wrap
22439 msgid ""
22440 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
22441 "\n"
22442 msgstr ""
22443
22444 # type: textblock
22445 #. type: textblock
22446 #: ../fish/guestfish.pod:116
22447 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
22448 msgstr ""
22449
22450 # type: verbatim
22451 #. type: verbatim
22452 #: ../fish/guestfish.pod:118
22453 #, no-wrap
22454 msgid ""
22455 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
22456 "\n"
22457 msgstr ""
22458
22459 # type: =head2
22460 #. type: =head2
22461 #: ../fish/guestfish.pod:120
22462 msgid "As a script interpreter"
22463 msgstr ""
22464
22465 # type: textblock
22466 #. type: textblock
22467 #: ../fish/guestfish.pod:122
22468 msgid "Create a 100MB disk containing an ext2-formatted partition:"
22469 msgstr ""
22470
22471 # type: verbatim
22472 #. type: verbatim
22473 #: ../fish/guestfish.pod:124
22474 #, no-wrap
22475 msgid ""
22476 " #!/usr/bin/guestfish -f\n"
22477 " sparse test1.img 100M\n"
22478 " run\n"
22479 " part-disk /dev/sda mbr\n"
22480 " mkfs ext2 /dev/sda1\n"
22481 "\n"
22482 msgstr ""
22483
22484 # type: =head2
22485 #. type: =head2
22486 #: ../fish/guestfish.pod:130
22487 msgid "Start with a prepared disk"
22488 msgstr ""
22489
22490 # type: textblock
22491 #. type: textblock
22492 #: ../fish/guestfish.pod:132
22493 msgid ""
22494 "An alternate way to create a 100MB disk called C<test1.img> containing a "
22495 "single ext2-formatted partition:"
22496 msgstr ""
22497
22498 # type: verbatim
22499 #. type: verbatim
22500 #: ../fish/guestfish.pod:135
22501 #, no-wrap
22502 msgid ""
22503 " guestfish -N fs\n"
22504 "\n"
22505 msgstr ""
22506
22507 # type: textblock
22508 #. type: textblock
22509 #: ../fish/guestfish.pod:137
22510 msgid "To list what is available do:"
22511 msgstr ""
22512
22513 # type: verbatim
22514 #. type: verbatim
22515 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:940
22516 #, no-wrap
22517 msgid ""
22518 " guestfish -N help | less\n"
22519 "\n"
22520 msgstr ""
22521
22522 # type: =head2
22523 #. type: =head2
22524 #: ../fish/guestfish.pod:141
22525 msgid "Remote control"
22526 msgstr ""
22527
22528 # type: verbatim
22529 #. type: verbatim
22530 #: ../fish/guestfish.pod:143
22531 #, no-wrap
22532 msgid ""
22533 " eval \"`guestfish --listen`\"\n"
22534 " guestfish --remote add-ro disk.img\n"
22535 " guestfish --remote run\n"
22536 " guestfish --remote lvs\n"
22537 "\n"
22538 msgstr ""
22539
22540 # type: =head1
22541 #. type: =head1
22542 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
22543 #: ../fuse/guestmount.pod:83 ../tools/virt-win-reg.pl:96
22544 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:103
22545 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
22546 msgid "OPTIONS"
22547 msgstr ""
22548
22549 # type: =item
22550 #. type: =item
22551 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:143
22552 #: ../tools/virt-win-reg.pl:104 ../tools/virt-list-filesystems.pl:61
22553 #: ../tools/virt-tar.pl:111 ../tools/virt-make-fs.pl:161
22554 #: ../tools/virt-list-partitions.pl:62
22555 msgid "B<--help>"
22556 msgstr ""
22557
22558 # type: textblock
22559 #. type: textblock
22560 #: ../fish/guestfish.pod:154
22561 msgid "Displays general help on options."
22562 msgstr ""
22563
22564 # type: =item
22565 #. type: =item
22566 #: ../fish/guestfish.pod:156
22567 msgid "B<-h>"
22568 msgstr ""
22569
22570 # type: =item
22571 #. type: =item
22572 #: ../fish/guestfish.pod:158
22573 msgid "B<--cmd-help>"
22574 msgstr ""
22575
22576 # type: textblock
22577 #. type: textblock
22578 #: ../fish/guestfish.pod:160
22579 msgid "Lists all available guestfish commands."
22580 msgstr ""
22581
22582 # type: =item
22583 #. type: =item
22584 #: ../fish/guestfish.pod:162
22585 msgid "B<-h cmd>"
22586 msgstr ""
22587
22588 # type: =item
22589 #. type: =item
22590 #: ../fish/guestfish.pod:164
22591 msgid "B<--cmd-help cmd>"
22592 msgstr ""
22593
22594 # type: textblock
22595 #. type: textblock
22596 #: ../fish/guestfish.pod:166
22597 msgid "Displays detailed help on a single command C<cmd>."
22598 msgstr ""
22599
22600 # type: =item
22601 #. type: =item
22602 #: ../fish/guestfish.pod:168
22603 msgid "B<-a image>"
22604 msgstr ""
22605
22606 # type: =item
22607 #. type: =item
22608 #: ../fish/guestfish.pod:170
22609 msgid "B<--add image>"
22610 msgstr ""
22611
22612 # type: textblock
22613 #. type: textblock
22614 #: ../fish/guestfish.pod:172
22615 msgid "Add a block device or virtual machine image to the shell."
22616 msgstr ""
22617
22618 # type: textblock
22619 #. type: textblock
22620 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:91
22621 msgid ""
22622 "The format of the disk image is auto-detected.  To override this and force a "
22623 "particular format use the I<--format=..> option."
22624 msgstr ""
22625
22626 #. type: textblock
22627 #: ../fish/guestfish.pod:177
22628 msgid ""
22629 "Using this flag is mostly equivalent to using the C<add> command, with "
22630 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
22631 "the I<--format=...> flag was given."
22632 msgstr ""
22633
22634 # type: =item
22635 #. type: =item
22636 #: ../fish/guestfish.pod:181
22637 msgid "B<-c URI>"
22638 msgstr ""
22639
22640 # type: =item
22641 #. type: =item
22642 #: ../fish/guestfish.pod:183
22643 msgid "B<--connect URI>"
22644 msgstr ""
22645
22646 # type: textblock
22647 #. type: textblock
22648 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:96
22649 msgid ""
22650 "When used in conjunction with the I<-d> option, this specifies the libvirt "
22651 "URI to use.  The default is to use the default libvirt connection."
22652 msgstr ""
22653
22654 # type: =item
22655 #. type: =item
22656 #: ../fish/guestfish.pod:189
22657 msgid "B<--csh>"
22658 msgstr ""
22659
22660 # type: textblock
22661 #. type: textblock
22662 #: ../fish/guestfish.pod:191
22663 msgid ""
22664 "If using the I<--listen> option and a csh-like shell, use this option.  See "
22665 "section L</REMOTE CONTROL AND CSH> below."
22666 msgstr ""
22667
22668 # type: =item
22669 #. type: =item
22670 #: ../fish/guestfish.pod:194
22671 msgid "B<-d libvirt-domain>"
22672 msgstr ""
22673
22674 # type: =item
22675 #. type: =item
22676 #: ../fish/guestfish.pod:196
22677 msgid "B<--domain libvirt-domain>"
22678 msgstr ""
22679
22680 # type: textblock
22681 #. type: textblock
22682 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:102
22683 msgid ""
22684 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
22685 "used, then any libvirt domain can be used.  However in write mode, only "
22686 "libvirt domains which are shut down can be named here."
22687 msgstr ""
22688
22689 #. type: textblock
22690 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:106
22691 msgid "Domain UUIDs can be used instead of names."
22692 msgstr ""
22693
22694 # type: textblock
22695 #. type: textblock
22696 #: ../fish/guestfish.pod:204
22697 msgid ""
22698 "Using this flag is mostly equivalent to using the C<add-domain> command, "
22699 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
22700 "if the I<--format:...> flag was given."
22701 msgstr ""
22702
22703 # type: =item
22704 #. type: =item
22705 #: ../fish/guestfish.pod:208
22706 msgid "B<-D>"
22707 msgstr ""
22708
22709 # type: =item
22710 #. type: =item
22711 #: ../fish/guestfish.pod:210
22712 msgid "B<--no-dest-paths>"
22713 msgstr ""
22714
22715 # type: textblock
22716 #. type: textblock
22717 #: ../fish/guestfish.pod:212
22718 msgid ""
22719 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
22720 "to hit the tab key to complete paths on the guest filesystem, but this "
22721 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
22722 "allow this feature to be disabled."
22723 msgstr ""
22724
22725 # type: =item
22726 #. type: =item
22727 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:120
22728 msgid "B<--echo-keys>"
22729 msgstr ""
22730
22731 # type: textblock
22732 #. type: textblock
22733 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:122
22734 msgid ""
22735 "When prompting for keys and passphrases, guestfish normally turns echoing "
22736 "off so you cannot see what you are typing.  If you are not worried about "
22737 "Tempest attacks and there is no one else in the room you can specify this "
22738 "flag to see what you are typing."
22739 msgstr ""
22740
22741 # type: =item
22742 #. type: =item
22743 #: ../fish/guestfish.pod:224
22744 msgid "B<-f file>"
22745 msgstr ""
22746
22747 # type: =item
22748 #. type: =item
22749 #: ../fish/guestfish.pod:226
22750 msgid "B<--file file>"
22751 msgstr ""
22752
22753 # type: textblock
22754 #. type: textblock
22755 #: ../fish/guestfish.pod:228
22756 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
22757 msgstr ""
22758
22759 # type: verbatim
22760 #. type: verbatim
22761 #: ../fish/guestfish.pod:231
22762 #, no-wrap
22763 msgid ""
22764 " #!/usr/bin/guestfish -f\n"
22765 "\n"
22766 msgstr ""
22767
22768 # type: =item
22769 #. type: =item
22770 #: ../fish/guestfish.pod:233
22771 msgid "B<--format=raw|qcow2|..>"
22772 msgstr ""
22773
22774 # type: =item
22775 #. type: =item
22776 #: ../fish/guestfish.pod:235
22777 msgid "B<--format>"
22778 msgstr ""
22779
22780 # type: textblock
22781 #. type: textblock
22782 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:129
22783 msgid ""
22784 "The default for the I<-a> option is to auto-detect the format of the disk "
22785 "image.  Using this forces the disk format for I<-a> options which follow on "
22786 "the command line.  Using I<--format> with no argument switches back to auto-"
22787 "detection for subsequent I<-a> options."
22788 msgstr ""
22789
22790 # type: verbatim
22791 #. type: verbatim
22792 #: ../fish/guestfish.pod:244
22793 #, no-wrap
22794 msgid ""
22795 " guestfish --format=raw -a disk.img\n"
22796 "\n"
22797 msgstr ""
22798
22799 # type: textblock
22800 #. type: textblock
22801 #: ../fish/guestfish.pod:246
22802 msgid "forces raw format (no auto-detection) for C<disk.img>."
22803 msgstr ""
22804
22805 # type: verbatim
22806 #. type: verbatim
22807 #: ../fish/guestfish.pod:248
22808 #, no-wrap
22809 msgid ""
22810 " guestfish --format=raw -a disk.img --format -a another.img\n"
22811 "\n"
22812 msgstr ""
22813
22814 # type: textblock
22815 #. type: textblock
22816 #: ../fish/guestfish.pod:250
22817 msgid ""
22818 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
22819 "detection for C<another.img>."
22820 msgstr ""
22821
22822 # type: textblock
22823 #. type: textblock
22824 #: ../fish/guestfish.pod:253
22825 msgid ""
22826 "If you have untrusted raw-format guest disk images, you should use this "
22827 "option to specify the disk format.  This avoids a possible security problem "
22828 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
22829 msgstr ""
22830
22831 # type: =item
22832 #. type: =item
22833 #: ../fish/guestfish.pod:258
22834 msgid "B<-i>"
22835 msgstr ""
22836
22837 # type: =item
22838 #. type: =item
22839 #: ../fish/guestfish.pod:260
22840 msgid "B<--inspector>"
22841 msgstr ""
22842
22843 # type: textblock
22844 #. type: textblock
22845 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:149
22846 msgid ""
22847 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
22848 "system and mount filesystems as they would be mounted on the real virtual "
22849 "machine."
22850 msgstr ""
22851
22852 # type: textblock
22853 #. type: textblock
22854 #: ../fish/guestfish.pod:266
22855 msgid "Typical usage is either:"
22856 msgstr ""
22857
22858 # type: verbatim
22859 #. type: verbatim
22860 #: ../fish/guestfish.pod:268
22861 #, no-wrap
22862 msgid ""
22863 " guestfish -d myguest -i\n"
22864 "\n"
22865 msgstr ""
22866
22867 # type: textblock
22868 #. type: textblock
22869 #: ../fish/guestfish.pod:270
22870 msgid "(for an inactive libvirt domain called I<myguest>), or:"
22871 msgstr ""
22872
22873 # type: verbatim
22874 #. type: verbatim
22875 #: ../fish/guestfish.pod:272
22876 #, no-wrap
22877 msgid ""
22878 " guestfish --ro -d myguest -i\n"
22879 "\n"
22880 msgstr ""
22881
22882 # type: textblock
22883 #. type: textblock
22884 #: ../fish/guestfish.pod:274
22885 msgid "(for active domains, readonly), or specify the block device directly:"
22886 msgstr ""
22887
22888 # type: verbatim
22889 #. type: verbatim
22890 #: ../fish/guestfish.pod:276
22891 #, no-wrap
22892 msgid ""
22893 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
22894 "\n"
22895 msgstr ""
22896
22897 # type: textblock
22898 #. type: textblock
22899 #: ../fish/guestfish.pod:278
22900 msgid ""
22901 "Note that the command line syntax changed slightly over older versions of "
22902 "guestfish.  You can still use the old syntax:"
22903 msgstr ""
22904
22905 # type: verbatim
22906 #. type: verbatim
22907 #: ../fish/guestfish.pod:281
22908 #, no-wrap
22909 msgid ""
22910 " guestfish [--ro] -i disk.img\n"
22911 "\n"
22912 msgstr ""
22913
22914 # type: verbatim
22915 #. type: verbatim
22916 #: ../fish/guestfish.pod:283
22917 #, no-wrap
22918 msgid ""
22919 " guestfish [--ro] -i libvirt-domain\n"
22920 "\n"
22921 msgstr ""
22922
22923 # type: textblock
22924 #. type: textblock
22925 #: ../fish/guestfish.pod:285
22926 msgid ""
22927 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
22928 "then using other commands to mount the filesystems that were found."
22929 msgstr ""
22930
22931 # type: =item
22932 #. type: =item
22933 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:153
22934 msgid "B<--keys-from-stdin>"
22935 msgstr ""
22936
22937 # type: textblock
22938 #. type: textblock
22939 #: ../fish/guestfish.pod:291 ../fuse/guestmount.pod:155
22940 msgid ""
22941 "Read key or passphrase parameters from stdin.  The default is to try to read "
22942 "passphrases from the user by opening C</dev/tty>."
22943 msgstr ""
22944
22945 # type: =item
22946 #. type: =item
22947 #: ../fish/guestfish.pod:294
22948 msgid "B<--listen>"
22949 msgstr ""
22950
22951 # type: textblock
22952 #. type: textblock
22953 #: ../fish/guestfish.pod:296
22954 msgid ""
22955 "Fork into the background and listen for remote commands.  See section L</"
22956 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
22957 msgstr ""
22958
22959 #. type: =item
22960 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:158
22961 msgid "B<--live>"
22962 msgstr ""
22963
22964 #. type: textblock
22965 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:160
22966 msgid ""
22967 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
22968 "ATTACHING TO RUNNING DAEMONS>)."
22969 msgstr ""
22970
22971 #. type: =item
22972 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:163
22973 msgid "B<-m dev[:mountpoint[:options]]>"
22974 msgstr ""
22975
22976 #. type: =item
22977 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:165
22978 msgid "B<--mount dev[:mountpoint[:options]]>"
22979 msgstr ""
22980
22981 # type: textblock
22982 #. type: textblock
22983 #: ../fish/guestfish.pod:308
22984 msgid "Mount the named partition or logical volume on the given mountpoint."
22985 msgstr ""
22986
22987 # type: textblock
22988 #. type: textblock
22989 #: ../fish/guestfish.pod:310
22990 msgid "If the mountpoint is omitted, it defaults to C</>."
22991 msgstr ""
22992
22993 # type: textblock
22994 #. type: textblock
22995 #: ../fish/guestfish.pod:312
22996 msgid "You have to mount something on C</> before most commands will work."
22997 msgstr ""
22998
22999 # type: textblock
23000 #. type: textblock
23001 #: ../fish/guestfish.pod:314
23002 msgid ""
23003 "If any I<-m> or I<--mount> options are given, the guest is automatically "
23004 "launched."
23005 msgstr ""
23006
23007 # type: textblock
23008 #. type: textblock
23009 #: ../fish/guestfish.pod:317
23010 msgid ""
23011 "If you don't know what filesystems a disk image contains, you can either run "
23012 "guestfish without this option, then list the partitions, filesystems and LVs "
23013 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
23014 "commands), or you can use the L<virt-filesystems(1)> program."
23015 msgstr ""
23016
23017 #. type: textblock
23018 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:173
23019 msgid ""
23020 "The third (and rarely used) part of the mount parameter is the list of mount "
23021 "options used to mount the underlying filesystem.  If this is not given, then "
23022 "the mount options are either the empty string or C<ro> (the latter if the "
23023 "I<--ro> flag is used).  By specifying the mount options, you override this "
23024 "default choice.  Probably the only time you would use this is to enable ACLs "
23025 "and/or extended attributes if the filesystem can support them:"
23026 msgstr ""
23027
23028 #. type: verbatim
23029 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:181
23030 #, no-wrap
23031 msgid ""
23032 " -m /dev/sda1:/:acl,user_xattr\n"
23033 "\n"
23034 msgstr ""
23035
23036 #. type: textblock
23037 #: ../fish/guestfish.pod:333
23038 msgid "Using this flag is equivalent to using the C<mount-options> command."
23039 msgstr ""
23040
23041 # type: =item
23042 #. type: =item
23043 #: ../fish/guestfish.pod:335
23044 msgid "B<-n>"
23045 msgstr ""
23046
23047 # type: =item
23048 #. type: =item
23049 #: ../fish/guestfish.pod:337
23050 msgid "B<--no-sync>"
23051 msgstr ""
23052
23053 # type: textblock
23054 #. type: textblock
23055 #: ../fish/guestfish.pod:339
23056 msgid ""
23057 "Disable autosync.  This is enabled by default.  See the discussion of "
23058 "autosync in the L<guestfs(3)> manpage."
23059 msgstr ""
23060
23061 # type: =item
23062 #. type: =item
23063 #: ../fish/guestfish.pod:342
23064 msgid "B<-N type>"
23065 msgstr ""
23066
23067 # type: =item
23068 #. type: =item
23069 #: ../fish/guestfish.pod:344
23070 msgid "B<--new type>"
23071 msgstr ""
23072
23073 # type: =item
23074 #. type: =item
23075 #: ../fish/guestfish.pod:346
23076 msgid "B<-N help>"
23077 msgstr ""
23078
23079 # type: textblock
23080 #. type: textblock
23081 #: ../fish/guestfish.pod:348
23082 msgid ""
23083 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
23084 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
23085 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
23086 "IMAGES> below."
23087 msgstr ""
23088
23089 # type: =item
23090 #. type: =item
23091 #: ../fish/guestfish.pod:353
23092 msgid "B<--progress-bars>"
23093 msgstr ""
23094
23095 # type: textblock
23096 #. type: textblock
23097 #: ../fish/guestfish.pod:355
23098 msgid "Enable progress bars, even when guestfish is used non-interactively."
23099 msgstr ""
23100
23101 # type: textblock
23102 #. type: textblock
23103 #: ../fish/guestfish.pod:357
23104 msgid ""
23105 "Progress bars are enabled by default when guestfish is used as an "
23106 "interactive shell."
23107 msgstr ""
23108
23109 # type: =item
23110 #. type: =item
23111 #: ../fish/guestfish.pod:360
23112 msgid "B<--no-progress-bars>"
23113 msgstr ""
23114
23115 # type: textblock
23116 #. type: textblock
23117 #: ../fish/guestfish.pod:362
23118 msgid "Disable progress bars."
23119 msgstr ""
23120
23121 # type: =item
23122 #. type: =item
23123 #: ../fish/guestfish.pod:364
23124 msgid "B<--remote[=pid]>"
23125 msgstr ""
23126
23127 # type: textblock
23128 #. type: textblock
23129 #: ../fish/guestfish.pod:366
23130 msgid ""
23131 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
23132 "CONTROL GUESTFISH OVER A SOCKET> below."
23133 msgstr ""
23134
23135 # type: =item
23136 #. type: =item
23137 #: ../fish/guestfish.pod:369
23138 msgid "B<-r>"
23139 msgstr ""
23140
23141 # type: =item
23142 #. type: =item
23143 #: ../fish/guestfish.pod:371
23144 msgid "B<--ro>"
23145 msgstr ""
23146
23147 # type: textblock
23148 #. type: textblock
23149 #: ../fish/guestfish.pod:373
23150 msgid ""
23151 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
23152 "mounts are done read-only."
23153 msgstr ""
23154
23155 # type: textblock
23156 #. type: textblock
23157 #: ../fish/guestfish.pod:376
23158 msgid ""
23159 "The option must always be used if the disk image or virtual machine might be "
23160 "running, and is generally recommended in cases where you don't need write "
23161 "access to the disk."
23162 msgstr ""
23163
23164 # type: textblock
23165 #. type: textblock
23166 #: ../fish/guestfish.pod:380
23167 msgid ""
23168 "Note that prepared disk images created with I<-N> are not affected by this "
23169 "option.  Also commands like C<add> are not affected - you have to specify "
23170 "the C<readonly:true> option explicitly if you need it."
23171 msgstr ""
23172
23173 # type: textblock
23174 #. type: textblock
23175 #: ../fish/guestfish.pod:384
23176 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
23177 msgstr ""
23178
23179 # type: =item
23180 #. type: =item
23181 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:237
23182 msgid "B<--selinux>"
23183 msgstr ""
23184
23185 # type: textblock
23186 #. type: textblock
23187 #: ../fish/guestfish.pod:388
23188 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
23189 msgstr ""
23190
23191 # type: =item
23192 #. type: =item
23193 #: ../fish/guestfish.pod:390
23194 msgid "B<-v>"
23195 msgstr ""
23196
23197 # type: =item
23198 #. type: =item
23199 #: ../fish/guestfish.pod:392
23200 msgid "B<--verbose>"
23201 msgstr ""
23202
23203 # type: textblock
23204 #. type: textblock
23205 #: ../fish/guestfish.pod:394
23206 msgid ""
23207 "Enable very verbose messages.  This is particularly useful if you find a bug."
23208 msgstr ""
23209
23210 # type: =item
23211 #. type: =item
23212 #: ../fish/guestfish.pod:397
23213 msgid "B<-V>"
23214 msgstr ""
23215
23216 # type: =item
23217 #. type: =item
23218 #: ../fish/guestfish.pod:399 ../tools/virt-win-reg.pl:112
23219 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:119
23220 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
23221 msgid "B<--version>"
23222 msgstr ""
23223
23224 # type: textblock
23225 #. type: textblock
23226 #: ../fish/guestfish.pod:401
23227 msgid "Display the guestfish / libguestfs version number and exit."
23228 msgstr ""
23229
23230 # type: =item
23231 #. type: =item
23232 #: ../fish/guestfish.pod:403
23233 msgid "B<-w>"
23234 msgstr ""
23235
23236 # type: =item
23237 #. type: =item
23238 #: ../fish/guestfish.pod:405
23239 msgid "B<--rw>"
23240 msgstr ""
23241
23242 #. type: textblock
23243 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:251
23244 msgid ""
23245 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
23246 "mounts are done read-write."
23247 msgstr ""
23248
23249 #. type: textblock
23250 #: ../fish/guestfish.pod:410
23251 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
23252 msgstr ""
23253
23254 # type: =item
23255 #. type: =item
23256 #: ../fish/guestfish.pod:412
23257 msgid "B<-x>"
23258 msgstr ""
23259
23260 # type: textblock
23261 #. type: textblock
23262 #: ../fish/guestfish.pod:414
23263 msgid "Echo each command before executing it."
23264 msgstr ""
23265
23266 # type: =head1
23267 #. type: =head1
23268 #: ../fish/guestfish.pod:418
23269 msgid "COMMANDS ON COMMAND LINE"
23270 msgstr ""
23271
23272 # type: textblock
23273 #. type: textblock
23274 #: ../fish/guestfish.pod:420
23275 msgid ""
23276 "Any additional (non-option) arguments are treated as commands to execute."
23277 msgstr ""
23278
23279 # type: textblock
23280 #. type: textblock
23281 #: ../fish/guestfish.pod:423
23282 msgid ""
23283 "Commands to execute should be separated by a colon (C<:>), where the colon "
23284 "is a separate parameter.  Thus:"
23285 msgstr ""
23286
23287 # type: verbatim
23288 #. type: verbatim
23289 #: ../fish/guestfish.pod:426
23290 #, no-wrap
23291 msgid ""
23292 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
23293 "\n"
23294 msgstr ""
23295
23296 # type: textblock
23297 #. type: textblock
23298 #: ../fish/guestfish.pod:428
23299 msgid ""
23300 "If there are no additional arguments, then we enter a shell, either an "
23301 "interactive shell with a prompt (if the input is a terminal) or a non-"
23302 "interactive shell."
23303 msgstr ""
23304
23305 # type: textblock
23306 #. type: textblock
23307 #: ../fish/guestfish.pod:432
23308 msgid ""
23309 "In either command line mode or non-interactive shell, the first command that "
23310 "gives an error causes the whole shell to exit.  In interactive mode (with a "
23311 "prompt) if a command fails, you can continue to enter commands."
23312 msgstr ""
23313
23314 # type: =head1
23315 #. type: =head1
23316 #: ../fish/guestfish.pod:437
23317 msgid "USING launch (OR run)"
23318 msgstr ""
23319
23320 # type: textblock
23321 #. type: textblock
23322 #: ../fish/guestfish.pod:439
23323 msgid ""
23324 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
23325 "then launch it, then mount any disks you need, and finally issue actions/"
23326 "commands.  So the general order of the day is:"
23327 msgstr ""
23328
23329 # type: textblock
23330 #. type: textblock
23331 #: ../fish/guestfish.pod:447
23332 msgid "add or -a/--add"
23333 msgstr ""
23334
23335 # type: textblock
23336 #. type: textblock
23337 #: ../fish/guestfish.pod:451
23338 msgid "launch (aka run)"
23339 msgstr ""
23340
23341 # type: textblock
23342 #. type: textblock
23343 #: ../fish/guestfish.pod:455
23344 msgid "mount or -m/--mount"
23345 msgstr ""
23346
23347 # type: textblock
23348 #. type: textblock
23349 #: ../fish/guestfish.pod:459
23350 msgid "any other commands"
23351 msgstr ""
23352
23353 # type: textblock
23354 #. type: textblock
23355 #: ../fish/guestfish.pod:463
23356 msgid ""
23357 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
23358 "guest before mounting or performing any other commands."
23359 msgstr ""
23360
23361 # type: textblock
23362 #. type: textblock
23363 #: ../fish/guestfish.pod:466
23364 msgid ""
23365 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
23366 "I<--new> options were given then C<run> is done automatically, simply "
23367 "because guestfish can't perform the action you asked for without doing this."
23368 msgstr ""
23369
23370 # type: =head1
23371 #. type: =head1
23372 #: ../fish/guestfish.pod:471
23373 msgid "OPENING DISKS FOR READ AND WRITE"
23374 msgstr ""
23375
23376 #. type: textblock
23377 #: ../fish/guestfish.pod:473
23378 msgid ""
23379 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
23380 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
23381 "I<-i> and I<-m> open disk images read-only or for writing."
23382 msgstr ""
23383
23384 #. type: textblock
23385 #: ../fish/guestfish.pod:478
23386 msgid ""
23387 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
23388 "opening disk images supplied on the command line for write.  To open a disk "
23389 "image read-only you have to do I<-a image --ro>."
23390 msgstr ""
23391
23392 # type: textblock
23393 #. type: textblock
23394 #: ../fish/guestfish.pod:482
23395 msgid ""
23396 "This matters: If you accidentally open a live VM disk image writable then "
23397 "you will cause irreversible disk corruption."
23398 msgstr ""
23399
23400 #. type: textblock
23401 #: ../fish/guestfish.pod:485
23402 msgid ""
23403 "By libguestfs 1.12 we intend to change the default the other way.  Disk "
23404 "images will be opened read-only.  You will have to either specify "
23405 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
23406 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
23407 "access for disk images specified by those other command line options."
23408 msgstr ""
23409
23410 #. type: textblock
23411 #: ../fish/guestfish.pod:492
23412 msgid ""
23413 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
23414 "which does nothing (it is already the default).  However it is highly "
23415 "recommended that you use this option to indicate that you need write access, "
23416 "and prepare your scripts for the day when this option will be required for "
23417 "write access."
23418 msgstr ""
23419
23420 # type: textblock
23421 #. type: textblock
23422 #: ../fish/guestfish.pod:498
23423 msgid ""
23424 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
23425 "other libguestfs program apart from guestfish and guestmount."
23426 msgstr ""
23427
23428 # type: =head1
23429 #. type: =head1
23430 #: ../fish/guestfish.pod:501
23431 msgid "QUOTING"
23432 msgstr ""
23433
23434 # type: textblock
23435 #. type: textblock
23436 #: ../fish/guestfish.pod:503
23437 msgid ""
23438 "You can quote ordinary parameters using either single or double quotes.  For "
23439 "example:"
23440 msgstr ""
23441
23442 # type: verbatim
23443 #. type: verbatim
23444 #: ../fish/guestfish.pod:506
23445 #, no-wrap
23446 msgid ""
23447 " add \"file with a space.img\"\n"
23448 "\n"
23449 msgstr ""
23450
23451 # type: verbatim
23452 #. type: verbatim
23453 #: ../fish/guestfish.pod:508
23454 #, no-wrap
23455 msgid ""
23456 " rm '/file name'\n"
23457 "\n"
23458 msgstr ""
23459
23460 # type: verbatim
23461 #. type: verbatim
23462 #: ../fish/guestfish.pod:510
23463 #, no-wrap
23464 msgid ""
23465 " rm '/\"'\n"
23466 "\n"
23467 msgstr ""
23468
23469 # type: textblock
23470 #. type: textblock
23471 #: ../fish/guestfish.pod:512
23472 msgid ""
23473 "A few commands require a list of strings to be passed.  For these, use a "
23474 "whitespace-separated list, enclosed in quotes.  Strings containing "
23475 "whitespace to be passed through must be enclosed in single quotes.  A "
23476 "literal single quote must be escaped with a backslash."
23477 msgstr ""
23478
23479 # type: verbatim
23480 #. type: verbatim
23481 #: ../fish/guestfish.pod:517
23482 #, no-wrap
23483 msgid ""
23484 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
23485 " command \"/bin/echo 'foo      bar'\"\n"
23486 " command \"/bin/echo \\'foo\\'\"\n"
23487 "\n"
23488 msgstr ""
23489
23490 # type: =head1
23491 #. type: =head1
23492 #: ../fish/guestfish.pod:521
23493 msgid "OPTIONAL ARGUMENTS"
23494 msgstr ""
23495
23496 # type: textblock
23497 #. type: textblock
23498 #: ../fish/guestfish.pod:523
23499 msgid ""
23500 "Some commands take optional arguments.  These arguments appear in this "
23501 "documentation as C<[argname:..]>.  You can use them as in these examples:"
23502 msgstr ""
23503
23504 # type: verbatim
23505 #. type: verbatim
23506 #: ../fish/guestfish.pod:527
23507 #, no-wrap
23508 msgid ""
23509 " add-drive-opts filename\n"
23510 "\n"
23511 msgstr ""
23512
23513 # type: verbatim
23514 #. type: verbatim
23515 #: ../fish/guestfish.pod:529
23516 #, no-wrap
23517 msgid ""
23518 " add-drive-opts filename readonly:true\n"
23519 "\n"
23520 msgstr ""
23521
23522 # type: verbatim
23523 #. type: verbatim
23524 #: ../fish/guestfish.pod:531
23525 #, no-wrap
23526 msgid ""
23527 " add-drive-opts filename format:qcow2 readonly:false\n"
23528 "\n"
23529 msgstr ""
23530
23531 # type: textblock
23532 #. type: textblock
23533 #: ../fish/guestfish.pod:533
23534 msgid ""
23535 "Each optional argument can appear at most once.  All optional arguments must "
23536 "appear after the required ones."
23537 msgstr ""
23538
23539 # type: =head1
23540 #. type: =head1
23541 #: ../fish/guestfish.pod:536
23542 msgid "NUMBERS"
23543 msgstr ""
23544
23545 # type: textblock
23546 #. type: textblock
23547 #: ../fish/guestfish.pod:538
23548 msgid ""
23549 "This section applies to all commands which can take integers as parameters."
23550 msgstr ""
23551
23552 # type: =head2
23553 #. type: =head2
23554 #: ../fish/guestfish.pod:541
23555 msgid "SIZE SUFFIX"
23556 msgstr ""
23557
23558 # type: textblock
23559 #. type: textblock
23560 #: ../fish/guestfish.pod:543
23561 msgid ""
23562 "When the command takes a parameter measured in bytes, you can use one of the "
23563 "following suffixes to specify kilobytes, megabytes and larger sizes:"
23564 msgstr ""
23565
23566 # type: =item
23567 #. type: =item
23568 #: ../fish/guestfish.pod:549
23569 msgid "B<k> or B<K> or B<KiB>"
23570 msgstr ""
23571
23572 # type: textblock
23573 #. type: textblock
23574 #: ../fish/guestfish.pod:551
23575 msgid "The size in kilobytes (multiplied by 1024)."
23576 msgstr ""
23577
23578 # type: =item
23579 #. type: =item
23580 #: ../fish/guestfish.pod:553
23581 msgid "B<KB>"
23582 msgstr ""
23583
23584 # type: textblock
23585 #. type: textblock
23586 #: ../fish/guestfish.pod:555
23587 msgid "The size in SI 1000 byte units."
23588 msgstr ""
23589
23590 # type: =item
23591 #. type: =item
23592 #: ../fish/guestfish.pod:557
23593 msgid "B<M> or B<MiB>"
23594 msgstr ""
23595
23596 # type: textblock
23597 #. type: textblock
23598 #: ../fish/guestfish.pod:559
23599 msgid "The size in megabytes (multiplied by 1048576)."
23600 msgstr ""
23601
23602 # type: =item
23603 #. type: =item
23604 #: ../fish/guestfish.pod:561
23605 msgid "B<MB>"
23606 msgstr ""
23607
23608 # type: textblock
23609 #. type: textblock
23610 #: ../fish/guestfish.pod:563
23611 msgid "The size in SI 1000000 byte units."
23612 msgstr ""
23613
23614 # type: =item
23615 #. type: =item
23616 #: ../fish/guestfish.pod:565
23617 msgid "B<G> or B<GiB>"
23618 msgstr ""
23619
23620 # type: textblock
23621 #. type: textblock
23622 #: ../fish/guestfish.pod:567
23623 msgid "The size in gigabytes (multiplied by 2**30)."
23624 msgstr ""
23625
23626 # type: =item
23627 #. type: =item
23628 #: ../fish/guestfish.pod:569
23629 msgid "B<GB>"
23630 msgstr ""
23631
23632 # type: textblock
23633 #. type: textblock
23634 #: ../fish/guestfish.pod:571
23635 msgid "The size in SI 10**9 byte units."
23636 msgstr ""
23637
23638 # type: =item
23639 #. type: =item
23640 #: ../fish/guestfish.pod:573
23641 msgid "B<T> or B<TiB>"
23642 msgstr ""
23643
23644 # type: textblock
23645 #. type: textblock
23646 #: ../fish/guestfish.pod:575
23647 msgid "The size in terabytes (multiplied by 2**40)."
23648 msgstr ""
23649
23650 # type: =item
23651 #. type: =item
23652 #: ../fish/guestfish.pod:577
23653 msgid "B<TB>"
23654 msgstr ""
23655
23656 # type: textblock
23657 #. type: textblock
23658 #: ../fish/guestfish.pod:579
23659 msgid "The size in SI 10**12 byte units."
23660 msgstr ""
23661
23662 # type: =item
23663 #. type: =item
23664 #: ../fish/guestfish.pod:581
23665 msgid "B<P> or B<PiB>"
23666 msgstr ""
23667
23668 # type: textblock
23669 #. type: textblock
23670 #: ../fish/guestfish.pod:583
23671 msgid "The size in petabytes (multiplied by 2**50)."
23672 msgstr ""
23673
23674 # type: =item
23675 #. type: =item
23676 #: ../fish/guestfish.pod:585
23677 msgid "B<PB>"
23678 msgstr ""
23679
23680 # type: textblock
23681 #. type: textblock
23682 #: ../fish/guestfish.pod:587
23683 msgid "The size in SI 10**15 byte units."
23684 msgstr ""
23685
23686 # type: =item
23687 #. type: =item
23688 #: ../fish/guestfish.pod:589
23689 msgid "B<E> or B<EiB>"
23690 msgstr ""
23691
23692 # type: textblock
23693 #. type: textblock
23694 #: ../fish/guestfish.pod:591
23695 msgid "The size in exabytes (multiplied by 2**60)."
23696 msgstr ""
23697
23698 # type: =item
23699 #. type: =item
23700 #: ../fish/guestfish.pod:593
23701 msgid "B<EB>"
23702 msgstr ""
23703
23704 # type: textblock
23705 #. type: textblock
23706 #: ../fish/guestfish.pod:595
23707 msgid "The size in SI 10**18 byte units."
23708 msgstr ""
23709
23710 # type: =item
23711 #. type: =item
23712 #: ../fish/guestfish.pod:597
23713 msgid "B<Z> or B<ZiB>"
23714 msgstr ""
23715
23716 # type: textblock
23717 #. type: textblock
23718 #: ../fish/guestfish.pod:599
23719 msgid "The size in zettabytes (multiplied by 2**70)."
23720 msgstr ""
23721
23722 # type: =item
23723 #. type: =item
23724 #: ../fish/guestfish.pod:601
23725 msgid "B<ZB>"
23726 msgstr ""
23727
23728 # type: textblock
23729 #. type: textblock
23730 #: ../fish/guestfish.pod:603
23731 msgid "The size in SI 10**21 byte units."
23732 msgstr ""
23733
23734 # type: =item
23735 #. type: =item
23736 #: ../fish/guestfish.pod:605
23737 msgid "B<Y> or B<YiB>"
23738 msgstr ""
23739
23740 # type: textblock
23741 #. type: textblock
23742 #: ../fish/guestfish.pod:607
23743 msgid "The size in yottabytes (multiplied by 2**80)."
23744 msgstr ""
23745
23746 # type: =item
23747 #. type: =item
23748 #: ../fish/guestfish.pod:609
23749 msgid "B<YB>"
23750 msgstr ""
23751
23752 # type: textblock
23753 #. type: textblock
23754 #: ../fish/guestfish.pod:611
23755 msgid "The size in SI 10**24 byte units."
23756 msgstr ""
23757
23758 # type: verbatim
23759 #. type: verbatim
23760 #: ../fish/guestfish.pod:617
23761 #, no-wrap
23762 msgid ""
23763 " truncate-size /file 1G\n"
23764 "\n"
23765 msgstr ""
23766
23767 # type: textblock
23768 #. type: textblock
23769 #: ../fish/guestfish.pod:619
23770 msgid "would truncate the file to 1 gigabyte."
23771 msgstr ""
23772
23773 # type: textblock
23774 #. type: textblock
23775 #: ../fish/guestfish.pod:621
23776 msgid ""
23777 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
23778 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
23779 "suffix will probably not do what you expect."
23780 msgstr ""
23781
23782 # type: =head2
23783 #. type: =head2
23784 #: ../fish/guestfish.pod:625
23785 msgid "OCTAL AND HEXADECIMAL NUMBERS"
23786 msgstr ""
23787
23788 # type: textblock
23789 #. type: textblock
23790 #: ../fish/guestfish.pod:627
23791 msgid ""
23792 "For specifying the radix (base) use the C convention: C<0> to prefix an "
23793 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
23794 msgstr ""
23795
23796 # type: verbatim
23797 #. type: verbatim
23798 #: ../fish/guestfish.pod:630
23799 #, no-wrap
23800 msgid ""
23801 " 1234      decimal number 1234\n"
23802 " 02322     octal number, equivalent to decimal 1234\n"
23803 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
23804 "\n"
23805 msgstr ""
23806
23807 # type: textblock
23808 #. type: textblock
23809 #: ../fish/guestfish.pod:634
23810 msgid ""
23811 "When using the C<chmod> command, you almost always want to specify an octal "
23812 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
23813 "L<chmod(1)> program):"
23814 msgstr ""
23815
23816 # type: verbatim
23817 #. type: verbatim
23818 #: ../fish/guestfish.pod:638
23819 #, no-wrap
23820 msgid ""
23821 " chmod 0777 /public  # OK\n"
23822 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
23823 "\n"
23824 msgstr ""
23825
23826 # type: textblock
23827 #. type: textblock
23828 #: ../fish/guestfish.pod:641
23829 msgid ""
23830 "Commands that return numbers usually print them in decimal, but some "
23831 "commands print numbers in other radices (eg. C<umask> prints the mode in "
23832 "octal, preceeded by C<0>)."
23833 msgstr ""
23834
23835 # type: =head1
23836 #. type: =head1
23837 #: ../fish/guestfish.pod:645
23838 msgid "WILDCARDS AND GLOBBING"
23839 msgstr ""
23840
23841 # type: textblock
23842 #. type: textblock
23843 #: ../fish/guestfish.pod:647
23844 msgid ""
23845 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
23846 "(globbing) by default.  So for example the following will not do what you "
23847 "expect:"
23848 msgstr ""
23849
23850 # type: verbatim
23851 #. type: verbatim
23852 #: ../fish/guestfish.pod:651
23853 #, no-wrap
23854 msgid ""
23855 " rm-rf /home/*\n"
23856 "\n"
23857 msgstr ""
23858
23859 # type: textblock
23860 #. type: textblock
23861 #: ../fish/guestfish.pod:653
23862 msgid ""
23863 "Assuming you don't have a directory called literally C</home/*> then the "
23864 "above command will return an error."
23865 msgstr ""
23866
23867 # type: textblock
23868 #. type: textblock
23869 #: ../fish/guestfish.pod:656
23870 msgid "To perform wildcard expansion, use the C<glob> command."
23871 msgstr ""
23872
23873 # type: verbatim
23874 #. type: verbatim
23875 #: ../fish/guestfish.pod:658
23876 #, no-wrap
23877 msgid ""
23878 " glob rm-rf /home/*\n"
23879 "\n"
23880 msgstr ""
23881
23882 # type: textblock
23883 #. type: textblock
23884 #: ../fish/guestfish.pod:660
23885 msgid ""
23886 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
23887 "many times), equivalent to:"
23888 msgstr ""
23889
23890 # type: verbatim
23891 #. type: verbatim
23892 #: ../fish/guestfish.pod:663
23893 #, no-wrap
23894 msgid ""
23895 " rm-rf /home/jim\n"
23896 " rm-rf /home/joe\n"
23897 " rm-rf /home/mary\n"
23898 "\n"
23899 msgstr ""
23900
23901 # type: textblock
23902 #. type: textblock
23903 #: ../fish/guestfish.pod:667
23904 msgid "C<glob> only works on simple guest paths and not on device names."
23905 msgstr ""
23906
23907 # type: textblock
23908 #. type: textblock
23909 #: ../fish/guestfish.pod:669
23910 msgid ""
23911 "If you have several parameters, each containing a wildcard, then glob will "
23912 "perform a Cartesian product."
23913 msgstr ""
23914
23915 # type: =head1
23916 #. type: =head1
23917 #: ../fish/guestfish.pod:672
23918 msgid "COMMENTS"
23919 msgstr ""
23920
23921 # type: textblock
23922 #. type: textblock
23923 #: ../fish/guestfish.pod:674
23924 msgid ""
23925 "Any line which starts with a I<#> character is treated as a comment and "
23926 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
23927 "a command.  For example:"
23928 msgstr ""
23929
23930 # type: verbatim
23931 #. type: verbatim
23932 #: ../fish/guestfish.pod:678
23933 #, no-wrap
23934 msgid ""
23935 " # this is a comment\n"
23936 "         # this is a comment\n"
23937 " foo # NOT a comment\n"
23938 "\n"
23939 msgstr ""
23940
23941 # type: textblock
23942 #. type: textblock
23943 #: ../fish/guestfish.pod:682
23944 msgid "Blank lines are also ignored."
23945 msgstr ""
23946
23947 # type: =head1
23948 #. type: =head1
23949 #: ../fish/guestfish.pod:684
23950 msgid "RUNNING COMMANDS LOCALLY"
23951 msgstr ""
23952
23953 # type: textblock
23954 #. type: textblock
23955 #: ../fish/guestfish.pod:686
23956 msgid ""
23957 "Any line which starts with a I<!> character is treated as a command sent to "
23958 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
23959 msgstr ""
23960
23961 # type: verbatim
23962 #. type: verbatim
23963 #: ../fish/guestfish.pod:690
23964 #, no-wrap
23965 msgid ""
23966 " !mkdir local\n"
23967 " tgz-out /remote local/remote-data.tar.gz\n"
23968 "\n"
23969 msgstr ""
23970
23971 # type: textblock
23972 #. type: textblock
23973 #: ../fish/guestfish.pod:693
23974 msgid ""
23975 "will create a directory C<local> on the host, and then export the contents "
23976 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
23977 "(See C<tgz-out>)."
23978 msgstr ""
23979
23980 # type: textblock
23981 #. type: textblock
23982 #: ../fish/guestfish.pod:697
23983 msgid ""
23984 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
23985 "effect, due to the way that subprocesses work in Unix."
23986 msgstr ""
23987
23988 #. type: =head2
23989 #: ../fish/guestfish.pod:700
23990 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
23991 msgstr ""
23992
23993 #. type: textblock
23994 #: ../fish/guestfish.pod:702
23995 msgid ""
23996 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
23997 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
23998 "and executed as guestfish commands."
23999 msgstr ""
24000
24001 #. type: textblock
24002 #: ../fish/guestfish.pod:706
24003 msgid ""
24004 "Thus you can use shell script to construct arbitrary guestfish commands "
24005 "which are then parsed by guestfish."
24006 msgstr ""
24007
24008 #. type: textblock
24009 #: ../fish/guestfish.pod:709
24010 msgid ""
24011 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
24012 "through C</foo.100>) using guestfish commands alone.  However this is simple "
24013 "if we use a shell script to create the guestfish commands for us:"
24014 msgstr ""
24015
24016 #. type: verbatim
24017 #: ../fish/guestfish.pod:714
24018 #, no-wrap
24019 msgid ""
24020 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
24021 "\n"
24022 msgstr ""
24023
24024 #. type: textblock
24025 #: ../fish/guestfish.pod:716
24026 msgid "or with names like C</foo.001>:"
24027 msgstr ""
24028
24029 #. type: verbatim
24030 #: ../fish/guestfish.pod:718
24031 #, no-wrap
24032 msgid ""
24033 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
24034 "\n"
24035 msgstr ""
24036
24037 #. type: textblock
24038 #: ../fish/guestfish.pod:720
24039 msgid ""
24040 "When using guestfish interactively it can be helpful to just run the shell "
24041 "script first (ie. remove the initial C<E<lt>> character so it is just an "
24042 "ordinary I<!> local command), see what guestfish commands it would run, and "
24043 "when you are happy with those prepend the C<E<lt>> character to run the "
24044 "guestfish commands for real."
24045 msgstr ""
24046
24047 # type: =head1
24048 #. type: =head1
24049 #: ../fish/guestfish.pod:726
24050 msgid "PIPES"
24051 msgstr ""
24052
24053 # type: textblock
24054 #. type: textblock
24055 #: ../fish/guestfish.pod:728
24056 msgid ""
24057 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
24058 "command (a guestfish command) to the second command (any host command).  For "
24059 "example:"
24060 msgstr ""
24061
24062 # type: verbatim
24063 #. type: verbatim
24064 #: ../fish/guestfish.pod:732
24065 #, no-wrap
24066 msgid ""
24067 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
24068 "\n"
24069 msgstr ""
24070
24071 # type: textblock
24072 #. type: textblock
24073 #: ../fish/guestfish.pod:734
24074 msgid ""
24075 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
24076 "program).  The above command would list all accounts in the guest filesystem "
24077 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
24078 msgstr ""
24079
24080 # type: verbatim
24081 #. type: verbatim
24082 #: ../fish/guestfish.pod:739
24083 #, no-wrap
24084 msgid ""
24085 " hexdump /bin/ls | head\n"
24086 " list-devices | tail -1\n"
24087 " tgz-out / - | tar ztf -\n"
24088 "\n"
24089 msgstr ""
24090
24091 # type: textblock
24092 #. type: textblock
24093 #: ../fish/guestfish.pod:743
24094 msgid ""
24095 "The space before the pipe symbol is required, any space after the pipe "
24096 "symbol is optional.  Everything after the pipe symbol is just passed "
24097 "straight to the host shell, so it can contain redirections, globs and "
24098 "anything else that makes sense on the host side."
24099 msgstr ""
24100
24101 # type: textblock
24102 #. type: textblock
24103 #: ../fish/guestfish.pod:748
24104 msgid ""
24105 "To use a literal argument which begins with a pipe symbol, you have to quote "
24106 "it, eg:"
24107 msgstr ""
24108
24109 # type: verbatim
24110 #. type: verbatim
24111 #: ../fish/guestfish.pod:751
24112 #, no-wrap
24113 msgid ""
24114 " echo \"|\"\n"
24115 "\n"
24116 msgstr ""
24117
24118 # type: =head1
24119 #. type: =head1
24120 #: ../fish/guestfish.pod:753
24121 msgid "HOME DIRECTORIES"
24122 msgstr ""
24123
24124 # type: textblock
24125 #. type: textblock
24126 #: ../fish/guestfish.pod:755
24127 msgid ""
24128 "If a parameter starts with the character C<~> then the tilde may be expanded "
24129 "as a home directory path (either C<~> for the current user's home directory, "
24130 "or C<~user> for another user)."
24131 msgstr ""
24132
24133 # type: textblock
24134 #. type: textblock
24135 #: ../fish/guestfish.pod:759
24136 msgid ""
24137 "Note that home directory expansion happens for users known I<on the host>, "
24138 "not in the guest filesystem."
24139 msgstr ""
24140
24141 # type: textblock
24142 #. type: textblock
24143 #: ../fish/guestfish.pod:762
24144 msgid ""
24145 "To use a literal argument which begins with a tilde, you have to quote it, "
24146 "eg:"
24147 msgstr ""
24148
24149 # type: verbatim
24150 #. type: verbatim
24151 #: ../fish/guestfish.pod:765
24152 #, no-wrap
24153 msgid ""
24154 " echo \"~\"\n"
24155 "\n"
24156 msgstr ""
24157
24158 # type: textblock
24159 #. type: textblock
24160 #: ../fish/guestfish.pod:769
24161 msgid ""
24162 "Libguestfs has some support for Linux guests encrypted according to the "
24163 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
24164 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
24165 "LUKS is supported."
24166 msgstr ""
24167
24168 # type: textblock
24169 #. type: textblock
24170 #: ../fish/guestfish.pod:774
24171 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
24172 msgstr ""
24173
24174 # type: verbatim
24175 #. type: verbatim
24176 #: ../fish/guestfish.pod:776
24177 #, no-wrap
24178 msgid ""
24179 " ><fs> vfs-type /dev/sda2\n"
24180 " crypto_LUKS\n"
24181 "\n"
24182 msgstr ""
24183
24184 # type: textblock
24185 #. type: textblock
24186 #: ../fish/guestfish.pod:779
24187 msgid ""
24188 "Then open those devices using L</luks-open>.  This creates a device-mapper "
24189 "device called C</dev/mapper/luksdev>."
24190 msgstr ""
24191
24192 # type: verbatim
24193 #. type: verbatim
24194 #: ../fish/guestfish.pod:782
24195 #, no-wrap
24196 msgid ""
24197 " ><fs> luks-open /dev/sda2 luksdev\n"
24198 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
24199 "\n"
24200 msgstr ""
24201
24202 # type: textblock
24203 #. type: textblock
24204 #: ../fish/guestfish.pod:785
24205 msgid ""
24206 "Finally you have to tell LVM to scan for volume groups on the newly created "
24207 "mapper device:"
24208 msgstr ""
24209
24210 # type: verbatim
24211 #. type: verbatim
24212 #: ../fish/guestfish.pod:788
24213 #, no-wrap
24214 msgid ""
24215 " vgscan\n"
24216 " vg-activate-all true\n"
24217 "\n"
24218 msgstr ""
24219
24220 # type: textblock
24221 #. type: textblock
24222 #: ../fish/guestfish.pod:791
24223 msgid "The logical volume(s) can now be mounted in the usual way."
24224 msgstr ""
24225
24226 # type: textblock
24227 #. type: textblock
24228 #: ../fish/guestfish.pod:793
24229 msgid ""
24230 "Before closing a LUKS device you must unmount any logical volumes on it and "
24231 "deactivate the volume groups by calling C<vg-activate false VG> on each "
24232 "one.  Then you can close the mapper device:"
24233 msgstr ""
24234
24235 # type: verbatim
24236 #. type: verbatim
24237 #: ../fish/guestfish.pod:797
24238 #, no-wrap
24239 msgid ""
24240 " vg-activate false /dev/VG\n"
24241 " luks-close /dev/mapper/luksdev\n"
24242 "\n"
24243 msgstr ""
24244
24245 # type: =head1
24246 #. type: =head1
24247 #: ../fish/guestfish.pod:800
24248 msgid "WINDOWS PATHS"
24249 msgstr ""
24250
24251 #. type: textblock
24252 #: ../fish/guestfish.pod:802
24253 msgid ""
24254 "If a path is prefixed with C<win:> then you can use Windows-style drive "
24255 "letters and paths (with some limitations).  The following commands are "
24256 "equivalent:"
24257 msgstr ""
24258
24259 # type: verbatim
24260 #. type: verbatim
24261 #: ../fish/guestfish.pod:806
24262 #, no-wrap
24263 msgid ""
24264 " file /WINDOWS/system32/config/system.LOG\n"
24265 "\n"
24266 msgstr ""
24267
24268 # type: verbatim
24269 #. type: verbatim
24270 #: ../fish/guestfish.pod:808
24271 #, no-wrap
24272 msgid ""
24273 " file win:\\windows\\system32\\config\\system.log\n"
24274 "\n"
24275 msgstr ""
24276
24277 #. type: verbatim
24278 #: ../fish/guestfish.pod:810
24279 #, no-wrap
24280 msgid ""
24281 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
24282 "\n"
24283 msgstr ""
24284
24285 #. type: textblock
24286 #: ../fish/guestfish.pod:812
24287 msgid ""
24288 "The parameter is rewritten \"behind the scenes\" by looking up the position "
24289 "where the drive is mounted, prepending that to the path, changing all "
24290 "backslash characters to forward slash, then resolving the result using L</"
24291 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
24292 "the parameter might be rewritten like this:"
24293 msgstr ""
24294
24295 #. type: verbatim
24296 #: ../fish/guestfish.pod:818
24297 #, no-wrap
24298 msgid ""
24299 " win:e:\\foo\\bar => /e/FOO/bar\n"
24300 "\n"
24301 msgstr ""
24302
24303 #. type: textblock
24304 #: ../fish/guestfish.pod:820
24305 msgid "This only works in argument positions that expect a path."
24306 msgstr ""
24307
24308 # type: =head1
24309 #. type: =head1
24310 #: ../fish/guestfish.pod:822
24311 msgid "UPLOADING AND DOWNLOADING FILES"
24312 msgstr ""
24313
24314 # type: textblock
24315 #. type: textblock
24316 #: ../fish/guestfish.pod:824
24317 msgid ""
24318 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
24319 "others which upload from or download to a local file, you can use the "
24320 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
24321 msgstr ""
24322
24323 # type: verbatim
24324 #. type: verbatim
24325 #: ../fish/guestfish.pod:828
24326 #, no-wrap
24327 msgid ""
24328 " upload - /foo\n"
24329 "\n"
24330 msgstr ""
24331
24332 # type: textblock
24333 #. type: textblock
24334 #: ../fish/guestfish.pod:830
24335 msgid ""
24336 "reads stdin and creates from that a file C</foo> in the disk image, and:"
24337 msgstr ""
24338
24339 # type: verbatim
24340 #. type: verbatim
24341 #: ../fish/guestfish.pod:833
24342 #, no-wrap
24343 msgid ""
24344 " tar-out /etc - | tar tf -\n"
24345 "\n"
24346 msgstr ""
24347
24348 # type: textblock
24349 #. type: textblock
24350 #: ../fish/guestfish.pod:835
24351 msgid ""
24352 "writes the tarball to stdout and then pipes that into the external \"tar\" "
24353 "command (see L</PIPES>)."
24354 msgstr ""
24355
24356 # type: textblock
24357 #. type: textblock
24358 #: ../fish/guestfish.pod:838
24359 msgid ""
24360 "When using C<-> to read from stdin, the input is read up to the end of "
24361 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
24362 "some arbitrary end marker:"
24363 msgstr ""
24364
24365 # type: verbatim
24366 #. type: verbatim
24367 #: ../fish/guestfish.pod:842
24368 #, no-wrap
24369 msgid ""
24370 " upload -<<END /foo\n"
24371 " input line 1\n"
24372 " input line 2\n"
24373 " input line 3\n"
24374 " END\n"
24375 "\n"
24376 msgstr ""
24377
24378 # type: textblock
24379 #. type: textblock
24380 #: ../fish/guestfish.pod:848
24381 msgid ""
24382 "Any string of characters can be used instead of C<END>.  The end marker must "
24383 "appear on a line of its own, without any preceeding or following characters "
24384 "(not even spaces)."
24385 msgstr ""
24386
24387 # type: textblock
24388 #. type: textblock
24389 #: ../fish/guestfish.pod:852
24390 msgid ""
24391 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
24392 "upload local files (so-called \"FileIn\" parameters in the generator)."
24393 msgstr ""
24394
24395 # type: =head1
24396 #. type: =head1
24397 #: ../fish/guestfish.pod:855
24398 msgid "EXIT ON ERROR BEHAVIOUR"
24399 msgstr ""
24400
24401 # type: textblock
24402 #. type: textblock
24403 #: ../fish/guestfish.pod:857
24404 msgid ""
24405 "By default, guestfish will ignore any errors when in interactive mode (ie. "
24406 "taking commands from a human over a tty), and will exit on the first error "
24407 "in non-interactive mode (scripts, commands given on the command line)."
24408 msgstr ""
24409
24410 # type: textblock
24411 #. type: textblock
24412 #: ../fish/guestfish.pod:862
24413 msgid ""
24414 "If you prefix a command with a I<-> character, then that command will not "
24415 "cause guestfish to exit, even if that (one) command returns an error."
24416 msgstr ""
24417
24418 # type: =head1
24419 #. type: =head1
24420 #: ../fish/guestfish.pod:866
24421 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
24422 msgstr ""
24423
24424 # type: textblock
24425 #. type: textblock
24426 #: ../fish/guestfish.pod:868
24427 msgid ""
24428 "Guestfish can be remote-controlled over a socket.  This is useful "
24429 "particularly in shell scripts where you want to make several different "
24430 "changes to a filesystem, but you don't want the overhead of starting up a "
24431 "guestfish process each time."
24432 msgstr ""
24433
24434 # type: textblock
24435 #. type: textblock
24436 #: ../fish/guestfish.pod:873
24437 msgid "Start a guestfish server process using:"
24438 msgstr ""
24439
24440 # type: verbatim
24441 #. type: verbatim
24442 #: ../fish/guestfish.pod:875
24443 #, no-wrap
24444 msgid ""
24445 " eval \"`guestfish --listen`\"\n"
24446 "\n"
24447 msgstr ""
24448
24449 # type: textblock
24450 #. type: textblock
24451 #: ../fish/guestfish.pod:877
24452 msgid "and then send it commands by doing:"
24453 msgstr ""
24454
24455 # type: verbatim
24456 #. type: verbatim
24457 #: ../fish/guestfish.pod:879
24458 #, no-wrap
24459 msgid ""
24460 " guestfish --remote cmd [...]\n"
24461 "\n"
24462 msgstr ""
24463
24464 # type: textblock
24465 #. type: textblock
24466 #: ../fish/guestfish.pod:881
24467 msgid "To cause the server to exit, send it the exit command:"
24468 msgstr ""
24469
24470 # type: verbatim
24471 #. type: verbatim
24472 #: ../fish/guestfish.pod:883
24473 #, no-wrap
24474 msgid ""
24475 " guestfish --remote exit\n"
24476 "\n"
24477 msgstr ""
24478
24479 # type: textblock
24480 #. type: textblock
24481 #: ../fish/guestfish.pod:885
24482 msgid ""
24483 "Note that the server will normally exit if there is an error in a command.  "
24484 "You can change this in the usual way.  See section L</EXIT ON ERROR "
24485 "BEHAVIOUR>."
24486 msgstr ""
24487
24488 # type: =head2
24489 #. type: =head2
24490 #: ../fish/guestfish.pod:889
24491 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
24492 msgstr ""
24493
24494 # type: textblock
24495 #. type: textblock
24496 #: ../fish/guestfish.pod:891
24497 msgid ""
24498 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
24499 "is how the I<--remote> option knows where to send the commands.  You can "
24500 "have several guestfish listener processes running using:"
24501 msgstr ""
24502
24503 # type: verbatim
24504 #. type: verbatim
24505 #: ../fish/guestfish.pod:895
24506 #, no-wrap
24507 msgid ""
24508 " eval \"`guestfish --listen`\"\n"
24509 " pid1=$GUESTFISH_PID\n"
24510 " eval \"`guestfish --listen`\"\n"
24511 " pid2=$GUESTFISH_PID\n"
24512 " ...\n"
24513 " guestfish --remote=$pid1 cmd\n"
24514 " guestfish --remote=$pid2 cmd\n"
24515 "\n"
24516 msgstr ""
24517
24518 # type: =head2
24519 #. type: =head2
24520 #: ../fish/guestfish.pod:903
24521 msgid "REMOTE CONTROL AND CSH"
24522 msgstr ""
24523
24524 # type: textblock
24525 #. type: textblock
24526 #: ../fish/guestfish.pod:905
24527 msgid ""
24528 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
24529 "option:"
24530 msgstr ""
24531
24532 # type: verbatim
24533 #. type: verbatim
24534 #: ../fish/guestfish.pod:908
24535 #, no-wrap
24536 msgid ""
24537 " eval \"`guestfish --listen --csh`\"\n"
24538 "\n"
24539 msgstr ""
24540
24541 # type: =head2
24542 #. type: =head2
24543 #: ../fish/guestfish.pod:910
24544 msgid "REMOTE CONTROL DETAILS"
24545 msgstr ""
24546
24547 # type: textblock
24548 #. type: textblock
24549 #: ../fish/guestfish.pod:912
24550 msgid ""
24551 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
24552 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
24553 "and C<$PID> is the process ID of the server."
24554 msgstr ""
24555
24556 # type: textblock
24557 #. type: textblock
24558 #: ../fish/guestfish.pod:916
24559 msgid "Guestfish client and server versions must match exactly."
24560 msgstr ""
24561
24562 # type: =head1
24563 #. type: =head1
24564 #: ../fish/guestfish.pod:918
24565 msgid "PREPARED DISK IMAGES"
24566 msgstr ""
24567
24568 # type: textblock
24569 #. type: textblock
24570 #: ../fish/guestfish.pod:920
24571 msgid ""
24572 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
24573 "preformatted disk images that guestfish can make for you to save typing.  "
24574 "This is particularly useful for testing purposes.  This option is used "
24575 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
24576 "can be mixed with I<-a>)."
24577 msgstr ""
24578
24579 # type: textblock
24580 #. type: textblock
24581 #: ../fish/guestfish.pod:926
24582 msgid ""
24583 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
24584 "the second and so on.  Existing files in the current directory are "
24585 "I<overwritten>."
24586 msgstr ""
24587
24588 # type: textblock
24589 #. type: textblock
24590 #: ../fish/guestfish.pod:930
24591 msgid ""
24592 "The type briefly describes how the disk should be sized, partitioned, how "
24593 "filesystem(s) should be created, and how content should be added.  "
24594 "Optionally the type can be followed by extra parameters, separated by C<:> "
24595 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
24596 "allocated disk, containing a single partition, with the partition formatted "
24597 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
24598 "disk instead."
24599 msgstr ""
24600
24601 # type: textblock
24602 #. type: textblock
24603 #: ../fish/guestfish.pod:938
24604 msgid "To list the available types and any extra parameters they take, run:"
24605 msgstr ""
24606
24607 # type: textblock
24608 #. type: textblock
24609 #: ../fish/guestfish.pod:942
24610 msgid ""
24611 "Note that the prepared filesystem is not mounted.  You would usually have to "
24612 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
24613 msgstr ""
24614
24615 # type: textblock
24616 #. type: textblock
24617 #: ../fish/guestfish.pod:946
24618 msgid ""
24619 "If any I<-N> or I<--new> options are given, the guest is automatically "
24620 "launched."
24621 msgstr ""
24622
24623 # type: textblock
24624 #. type: textblock
24625 #: ../fish/guestfish.pod:951
24626 msgid "Create a 100MB disk with an ext4-formatted partition:"
24627 msgstr ""
24628
24629 # type: verbatim
24630 #. type: verbatim
24631 #: ../fish/guestfish.pod:953
24632 #, no-wrap
24633 msgid ""
24634 " guestfish -N fs:ext4\n"
24635 "\n"
24636 msgstr ""
24637
24638 # type: textblock
24639 #. type: textblock
24640 #: ../fish/guestfish.pod:955
24641 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
24642 msgstr ""
24643
24644 # type: verbatim
24645 #. type: verbatim
24646 #: ../fish/guestfish.pod:957
24647 #, no-wrap
24648 msgid ""
24649 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
24650 "\n"
24651 msgstr ""
24652
24653 # type: textblock
24654 #. type: textblock
24655 #: ../fish/guestfish.pod:959
24656 msgid "Create a blank 200MB disk:"
24657 msgstr ""
24658
24659 # type: verbatim
24660 #. type: verbatim
24661 #: ../fish/guestfish.pod:961
24662 #, no-wrap
24663 msgid ""
24664 " guestfish -N disk:200M\n"
24665 "\n"
24666 msgstr ""
24667
24668 # type: =head1
24669 #. type: =head1
24670 #: ../fish/guestfish.pod:963
24671 msgid "PROGRESS BARS"
24672 msgstr ""
24673
24674 # type: textblock
24675 #. type: textblock
24676 #: ../fish/guestfish.pod:965
24677 msgid ""
24678 "Some (not all) long-running commands send progress notification messages as "
24679 "they are running.  Guestfish turns these messages into progress bars."
24680 msgstr ""
24681
24682 # type: textblock
24683 #. type: textblock
24684 #: ../fish/guestfish.pod:969
24685 msgid ""
24686 "When a command that supports progress bars takes longer than two seconds to "
24687 "run, and if progress bars are enabled, then you will see one appearing below "
24688 "the command:"
24689 msgstr ""
24690
24691 # type: verbatim
24692 #. type: verbatim
24693 #: ../fish/guestfish.pod:973
24694 #, no-wrap
24695 msgid ""
24696 " ><fs> copy-size /large-file /another-file 2048M\n"
24697 " / 10% [#####-----------------------------------------] 00:30\n"
24698 "\n"
24699 msgstr ""
24700
24701 # type: textblock
24702 #. type: textblock
24703 #: ../fish/guestfish.pod:976
24704 msgid ""
24705 "The spinner on the left hand side moves round once for every progress "
24706 "notification received from the backend.  This is a (reasonably) golden "
24707 "assurance that the command is \"doing something\" even if the progress bar "
24708 "is not moving, because the command is able to send the progress "
24709 "notifications.  When the bar reaches 100% and the command finishes, the "
24710 "spinner disappears."
24711 msgstr ""
24712
24713 # type: textblock
24714 #. type: textblock
24715 #: ../fish/guestfish.pod:983
24716 msgid ""
24717 "Progress bars are enabled by default when guestfish is used interactively.  "
24718 "You can enable them even for non-interactive modes using I<--progress-bars>, "
24719 "and you can disable them completely using I<--no-progress-bars>."
24720 msgstr ""
24721
24722 # type: =head1
24723 #. type: =head1
24724 #: ../fish/guestfish.pod:988
24725 msgid "GUESTFISH COMMANDS"
24726 msgstr ""
24727
24728 # type: textblock
24729 #. type: textblock
24730 #: ../fish/guestfish.pod:990
24731 msgid ""
24732 "The commands in this section are guestfish convenience commands, in other "
24733 "words, they are not part of the L<guestfs(3)> API."
24734 msgstr ""
24735
24736 # type: =head2
24737 #. type: =head2
24738 #: ../fish/guestfish.pod:993
24739 msgid "help"
24740 msgstr ""
24741
24742 # type: verbatim
24743 #. type: verbatim
24744 #: ../fish/guestfish.pod:995
24745 #, no-wrap
24746 msgid ""
24747 " help\n"
24748 " help cmd\n"
24749 "\n"
24750 msgstr ""
24751
24752 # type: textblock
24753 #. type: textblock
24754 #: ../fish/guestfish.pod:998
24755 msgid "Without any parameter, this provides general help."
24756 msgstr ""
24757
24758 # type: textblock
24759 #. type: textblock
24760 #: ../fish/guestfish.pod:1000
24761 msgid "With a C<cmd> parameter, this displays detailed help for that command."
24762 msgstr ""
24763
24764 # type: =head2
24765 #. type: =head2
24766 #: ../fish/guestfish.pod:1002
24767 msgid "quit | exit"
24768 msgstr ""
24769
24770 # type: textblock
24771 #. type: textblock
24772 #: ../fish/guestfish.pod:1004
24773 msgid "This exits guestfish.  You can also use C<^D> key."
24774 msgstr ""
24775
24776 # type: textblock
24777 #. type: textblock
24778 #: ../fish/guestfish.pod:1006
24779 msgid "@FISH_COMMANDS@"
24780 msgstr ""
24781
24782 # type: =head1
24783 #. type: =head1
24784 #: ../fish/guestfish.pod:1008
24785 msgid "COMMANDS"
24786 msgstr ""
24787
24788 # type: =head1
24789 #. type: =head1
24790 #: ../fish/guestfish.pod:1012 ../test-tool/libguestfs-test-tool.pod:77
24791 msgid "EXIT CODE"
24792 msgstr ""
24793
24794 # type: textblock
24795 #. type: textblock
24796 #: ../fish/guestfish.pod:1014
24797 msgid ""
24798 "guestfish returns 0 if the commands completed without error, or 1 if there "
24799 "was an error."
24800 msgstr ""
24801
24802 # type: =item
24803 #. type: =item
24804 #: ../fish/guestfish.pod:1021
24805 msgid "EDITOR"
24806 msgstr ""
24807
24808 # type: textblock
24809 #. type: textblock
24810 #: ../fish/guestfish.pod:1023
24811 msgid ""
24812 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
24813 "C<vi>."
24814 msgstr ""
24815
24816 #. type: =item
24817 #: ../fish/guestfish.pod:1026
24818 msgid "GUESTFISH_DISPLAY_IMAGE"
24819 msgstr ""
24820
24821 #. type: textblock
24822 #: ../fish/guestfish.pod:1028
24823 msgid ""
24824 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
24825 "If not set, it uses L<display(1)>."
24826 msgstr ""
24827
24828 # type: =item
24829 #. type: =item
24830 #: ../fish/guestfish.pod:1031
24831 msgid "GUESTFISH_PID"
24832 msgstr ""
24833
24834 # type: textblock
24835 #. type: textblock
24836 #: ../fish/guestfish.pod:1033
24837 msgid ""
24838 "Used with the I<--remote> option to specify the remote guestfish process to "
24839 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
24840 msgstr ""
24841
24842 # type: =item
24843 #. type: =item
24844 #: ../fish/guestfish.pod:1037
24845 msgid "HEXEDITOR"
24846 msgstr ""
24847
24848 # type: textblock
24849 #. type: textblock
24850 #: ../fish/guestfish.pod:1039
24851 msgid ""
24852 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
24853 "not specified, the external L<hexedit(1)> program is used."
24854 msgstr ""
24855
24856 # type: =item
24857 #. type: =item
24858 #: ../fish/guestfish.pod:1043
24859 msgid "HOME"
24860 msgstr ""
24861
24862 # type: textblock
24863 #. type: textblock
24864 #: ../fish/guestfish.pod:1045
24865 msgid ""
24866 "If compiled with GNU readline support, various files in the home directory "
24867 "can be used.  See L</FILES>."
24868 msgstr ""
24869
24870 # type: textblock
24871 #. type: textblock
24872 #: ../fish/guestfish.pod:1054
24873 msgid ""
24874 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
24875 "effect as using the B<-v> option."
24876 msgstr ""
24877
24878 # type: textblock
24879 #. type: textblock
24880 #: ../fish/guestfish.pod:1066
24881 msgid ""
24882 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
24883 "the discussion of paths in L<guestfs(3)>."
24884 msgstr ""
24885
24886 # type: textblock
24887 #. type: textblock
24888 #: ../fish/guestfish.pod:1077
24889 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
24890 msgstr ""
24891
24892 # type: =item
24893 #. type: =item
24894 #: ../fish/guestfish.pod:1079
24895 msgid "PAGER"
24896 msgstr ""
24897
24898 # type: textblock
24899 #. type: textblock
24900 #: ../fish/guestfish.pod:1081
24901 msgid ""
24902 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
24903 "C<more>."
24904 msgstr ""
24905
24906 # type: =head1
24907 #. type: =head1
24908 #: ../fish/guestfish.pod:1097 ../fuse/guestmount.pod:264
24909 msgid "FILES"
24910 msgstr ""
24911
24912 #. type: =item
24913 #: ../fish/guestfish.pod:1101 ../fuse/guestmount.pod:268
24914 msgid "$HOME/.libguestfs-tools.rc"
24915 msgstr ""
24916
24917 #. type: =item
24918 #: ../fish/guestfish.pod:1103 ../fuse/guestmount.pod:270
24919 msgid "/etc/libguestfs-tools.conf"
24920 msgstr ""
24921
24922 #. type: textblock
24923 #: ../fish/guestfish.pod:1105 ../fuse/guestmount.pod:272
24924 msgid ""
24925 "This configuration file controls the default read-only or read-write mode "
24926 "(I<--ro> or I<--rw>)."
24927 msgstr ""
24928
24929 #. type: textblock
24930 #: ../fish/guestfish.pod:1108
24931 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
24932 msgstr ""
24933
24934 # type: =item
24935 #. type: =item
24936 #: ../fish/guestfish.pod:1110
24937 msgid "$HOME/.guestfish"
24938 msgstr ""
24939
24940 # type: textblock
24941 #. type: textblock
24942 #: ../fish/guestfish.pod:1112
24943 msgid ""
24944 "If compiled with GNU readline support, then the command history is saved in "
24945 "this file."
24946 msgstr ""
24947
24948 # type: =item
24949 #. type: =item
24950 #: ../fish/guestfish.pod:1115
24951 msgid "$HOME/.inputrc"
24952 msgstr ""
24953
24954 # type: =item
24955 #. type: =item
24956 #: ../fish/guestfish.pod:1117
24957 msgid "/etc/inputrc"
24958 msgstr ""
24959
24960 # type: textblock
24961 #. type: textblock
24962 #: ../fish/guestfish.pod:1119
24963 msgid ""
24964 "If compiled with GNU readline support, then these files can be used to "
24965 "configure readline.  For further information, please see L<readline(3)/"
24966 "INITIALIZATION FILE>."
24967 msgstr ""
24968
24969 # type: textblock
24970 #. type: textblock
24971 #: ../fish/guestfish.pod:1123
24972 msgid "To write rules which only apply to guestfish, use:"
24973 msgstr ""
24974
24975 # type: verbatim
24976 #. type: verbatim
24977 #: ../fish/guestfish.pod:1125
24978 #, no-wrap
24979 msgid ""
24980 " $if guestfish\n"
24981 " ...\n"
24982 " $endif\n"
24983 "\n"
24984 msgstr ""
24985
24986 # type: textblock
24987 #. type: textblock
24988 #: ../fish/guestfish.pod:1129
24989 msgid ""
24990 "Variables that you can set in inputrc that change the behaviour of guestfish "
24991 "in useful ways include:"
24992 msgstr ""
24993
24994 # type: =item
24995 #. type: =item
24996 #: ../fish/guestfish.pod:1134
24997 msgid "completion-ignore-case (default: on)"
24998 msgstr ""
24999
25000 # type: textblock
25001 #. type: textblock
25002 #: ../fish/guestfish.pod:1136
25003 msgid ""
25004 "By default, guestfish will ignore case when tab-completing paths on the "
25005 "disk.  Use:"
25006 msgstr ""
25007
25008 # type: verbatim
25009 #. type: verbatim
25010 #: ../fish/guestfish.pod:1139
25011 #, no-wrap
25012 msgid ""
25013 " set completion-ignore-case off\n"
25014 "\n"
25015 msgstr ""
25016
25017 # type: textblock
25018 #. type: textblock
25019 #: ../fish/guestfish.pod:1141
25020 msgid "to make guestfish case sensitive."
25021 msgstr ""
25022
25023 # type: =item
25024 #. type: =item
25025 #: ../fish/guestfish.pod:1145
25026 msgid "test1.img"
25027 msgstr ""
25028
25029 # type: =item
25030 #. type: =item
25031 #: ../fish/guestfish.pod:1147
25032 msgid "test2.img (etc)"
25033 msgstr ""
25034
25035 #. type: textblock
25036 #: ../fish/guestfish.pod:1149
25037 msgid ""
25038 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
25039 "will be created in the file C<test1.img> in the current directory.  The "
25040 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
25041 "the same name will be overwritten."
25042 msgstr ""
25043
25044 #. type: textblock
25045 #: ../fish/guestfish.pod:1158
25046 msgid ""
25047 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
25048 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
25049 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
25050 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
25051 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
25052 ">, L<display(1)>, L<hexedit(1)>."
25053 msgstr ""
25054
25055 # type: textblock
25056 #. type: textblock
25057 #: ../fish/guestfish.pod:1189 ../test-tool/libguestfs-test-tool.pod:102
25058 #: ../fuse/guestmount.pod:299 ../tools/virt-win-reg.pl:778
25059 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:309
25060 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:277
25061 msgid ""
25062 "This program is free software; you can redistribute it and/or modify it "
25063 "under the terms of the GNU General Public License as published by the Free "
25064 "Software Foundation; either version 2 of the License, or (at your option) "
25065 "any later version."
25066 msgstr ""
25067
25068 # type: textblock
25069 #. type: textblock
25070 #: ../fish/guestfish.pod:1194 ../test-tool/libguestfs-test-tool.pod:107
25071 #: ../fuse/guestmount.pod:304 ../tools/virt-win-reg.pl:783
25072 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:314
25073 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:282
25074 msgid ""
25075 "This program is distributed in the hope that it will be useful, but WITHOUT "
25076 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
25077 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
25078 "more details."
25079 msgstr ""
25080
25081 # type: textblock
25082 #. type: textblock
25083 #: ../fish/guestfish.pod:1199 ../test-tool/libguestfs-test-tool.pod:112
25084 #: ../fuse/guestmount.pod:309 ../tools/virt-win-reg.pl:788
25085 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:319
25086 #: ../tools/virt-make-fs.pl:582 ../tools/virt-list-partitions.pl:287
25087 msgid ""
25088 "You should have received a copy of the GNU General Public License along with "
25089 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
25090 "Ave, Cambridge, MA 02139, USA."
25091 msgstr ""
25092
25093 # type: =head2
25094 #. type: =head2
25095 #: ../fish/guestfish-actions.pod:1
25096 msgid "add-cdrom"
25097 msgstr ""
25098
25099 # type: verbatim
25100 #. type: verbatim
25101 #: ../fish/guestfish-actions.pod:3
25102 #, no-wrap
25103 msgid ""
25104 " add-cdrom filename\n"
25105 "\n"
25106 msgstr ""
25107
25108 # type: textblock
25109 #. type: textblock
25110 #: ../fish/guestfish-actions.pod:15
25111 msgid ""
25112 "This call checks for the existence of C<filename>.  This stops you from "
25113 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25114 "and C<http:> URLs.  To specify those, use the general L</config> call "
25115 "instead."
25116 msgstr ""
25117
25118 # type: textblock
25119 #. type: textblock
25120 #: ../fish/guestfish-actions.pod:22
25121 msgid ""
25122 "If you just want to add an ISO file (often you use this as an efficient way "
25123 "to transfer large files into the guest), then you should probably use L</add-"
25124 "drive-ro> instead."
25125 msgstr ""
25126
25127 # type: =head2
25128 #. type: =head2
25129 #: ../fish/guestfish-actions.pod:35
25130 msgid "add-domain"
25131 msgstr ""
25132
25133 # type: =head2
25134 #. type: =head2
25135 #: ../fish/guestfish-actions.pod:37
25136 msgid "domain"
25137 msgstr ""
25138
25139 #. type: verbatim
25140 #: ../fish/guestfish-actions.pod:39
25141 #, no-wrap
25142 msgid ""
25143 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
25144 "\n"
25145 msgstr ""
25146
25147 # type: textblock
25148 #. type: textblock
25149 #: ../fish/guestfish-actions.pod:41
25150 msgid ""
25151 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
25152 "It works by connecting to libvirt, requesting the domain and domain XML from "
25153 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
25154 msgstr ""
25155
25156 # type: textblock
25157 #. type: textblock
25158 #: ../fish/guestfish-actions.pod:76
25159 msgid ""
25160 "The other optional parameters are passed directly through to L</add-drive-"
25161 "opts>."
25162 msgstr ""
25163
25164 # type: textblock
25165 #. type: textblock
25166 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
25167 #: ../fish/guestfish-actions.pod:568 ../fish/guestfish-actions.pod:1962
25168 #: ../fish/guestfish-actions.pod:3128 ../fish/guestfish-actions.pod:3301
25169 #: ../fish/guestfish-actions.pod:3436
25170 msgid ""
25171 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
25172 msgstr ""
25173
25174 # type: =head2
25175 #. type: =head2
25176 #: ../fish/guestfish-actions.pod:81
25177 msgid "add-drive"
25178 msgstr ""
25179
25180 # type: verbatim
25181 #. type: verbatim
25182 #: ../fish/guestfish-actions.pod:83
25183 #, no-wrap
25184 msgid ""
25185 " add-drive filename\n"
25186 "\n"
25187 msgstr ""
25188
25189 # type: textblock
25190 #. type: textblock
25191 #: ../fish/guestfish-actions.pod:85
25192 msgid ""
25193 "This function is the equivalent of calling L</add-drive-opts> with no "
25194 "optional parameters, so the disk is added writable, with the format being "
25195 "detected automatically."
25196 msgstr ""
25197
25198 # type: textblock
25199 #. type: textblock
25200 #: ../fish/guestfish-actions.pod:89
25201 msgid ""
25202 "Automatic detection of the format opens you up to a potential security hole "
25203 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
25204 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
25205 "you should think about replacing calls to this function with calls to L</add-"
25206 "drive-opts>, and specifying the format."
25207 msgstr ""
25208
25209 # type: =head2
25210 #. type: =head2
25211 #: ../fish/guestfish-actions.pod:96
25212 msgid "add-drive-opts"
25213 msgstr ""
25214
25215 # type: =head2
25216 #. type: =head2
25217 #: ../fish/guestfish-actions.pod:98
25218 msgid "add"
25219 msgstr ""
25220
25221 # type: verbatim
25222 #. type: verbatim
25223 #: ../fish/guestfish-actions.pod:100
25224 #, no-wrap
25225 msgid ""
25226 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
25227 "\n"
25228 msgstr ""
25229
25230 # type: textblock
25231 #. type: textblock
25232 #: ../fish/guestfish-actions.pod:127
25233 msgid ""
25234 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
25235 "add-drive-ro>) then the format is automatically detected.  Possible formats "
25236 "include C<raw> and C<qcow2>."
25237 msgstr ""
25238
25239 # type: textblock
25240 #. type: textblock
25241 #: ../fish/guestfish-actions.pod:138
25242 msgid ""
25243 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
25244 "add-drive-with-if> call (q.v.)"
25245 msgstr ""
25246
25247 # type: =head2
25248 #. type: =head2
25249 #: ../fish/guestfish-actions.pod:145
25250 msgid "add-drive-ro"
25251 msgstr ""
25252
25253 # type: =head2
25254 #. type: =head2
25255 #: ../fish/guestfish-actions.pod:147
25256 msgid "add-ro"
25257 msgstr ""
25258
25259 # type: verbatim
25260 #. type: verbatim
25261 #: ../fish/guestfish-actions.pod:149
25262 #, no-wrap
25263 msgid ""
25264 " add-drive-ro filename\n"
25265 "\n"
25266 msgstr ""
25267
25268 # type: textblock
25269 #. type: textblock
25270 #: ../fish/guestfish-actions.pod:151
25271 msgid ""
25272 "This function is the equivalent of calling L</add-drive-opts> with the "
25273 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
25274 "is added read-only, with the format being detected automatically."
25275 msgstr ""
25276
25277 # type: =head2
25278 #. type: =head2
25279 #: ../fish/guestfish-actions.pod:156
25280 msgid "add-drive-ro-with-if"
25281 msgstr ""
25282
25283 # type: verbatim
25284 #. type: verbatim
25285 #: ../fish/guestfish-actions.pod:158
25286 #, no-wrap
25287 msgid ""
25288 " add-drive-ro-with-if filename iface\n"
25289 "\n"
25290 msgstr ""
25291
25292 # type: textblock
25293 #. type: textblock
25294 #: ../fish/guestfish-actions.pod:160
25295 msgid ""
25296 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
25297 "interface emulation to use at run time."
25298 msgstr ""
25299
25300 # type: =head2
25301 #. type: =head2
25302 #: ../fish/guestfish-actions.pod:170
25303 msgid "add-drive-with-if"
25304 msgstr ""
25305
25306 # type: verbatim
25307 #. type: verbatim
25308 #: ../fish/guestfish-actions.pod:172
25309 #, no-wrap
25310 msgid ""
25311 " add-drive-with-if filename iface\n"
25312 "\n"
25313 msgstr ""
25314
25315 # type: textblock
25316 #. type: textblock
25317 #: ../fish/guestfish-actions.pod:174
25318 msgid ""
25319 "This is the same as L</add-drive> but it allows you to specify the QEMU "
25320 "interface emulation to use at run time."
25321 msgstr ""
25322
25323 # type: =head2
25324 #. type: =head2
25325 #: ../fish/guestfish-actions.pod:184
25326 msgid "aug-clear"
25327 msgstr ""
25328
25329 # type: verbatim
25330 #. type: verbatim
25331 #: ../fish/guestfish-actions.pod:186
25332 #, no-wrap
25333 msgid ""
25334 " aug-clear augpath\n"
25335 "\n"
25336 msgstr ""
25337
25338 # type: =head2
25339 #. type: =head2
25340 #: ../fish/guestfish-actions.pod:191
25341 msgid "aug-close"
25342 msgstr ""
25343
25344 # type: verbatim
25345 #. type: verbatim
25346 #: ../fish/guestfish-actions.pod:193
25347 #, no-wrap
25348 msgid ""
25349 " aug-close\n"
25350 "\n"
25351 msgstr ""
25352
25353 # type: textblock
25354 #. type: textblock
25355 #: ../fish/guestfish-actions.pod:195
25356 msgid ""
25357 "Close the current Augeas handle and free up any resources used by it.  After "
25358 "calling this, you have to call L</aug-init> again before you can use any "
25359 "other Augeas functions."
25360 msgstr ""
25361
25362 # type: =head2
25363 #. type: =head2
25364 #: ../fish/guestfish-actions.pod:200
25365 msgid "aug-defnode"
25366 msgstr ""
25367
25368 # type: verbatim
25369 #. type: verbatim
25370 #: ../fish/guestfish-actions.pod:202
25371 #, no-wrap
25372 msgid ""
25373 " aug-defnode name expr val\n"
25374 "\n"
25375 msgstr ""
25376
25377 # type: textblock
25378 #. type: textblock
25379 #: ../fish/guestfish-actions.pod:207
25380 msgid ""
25381 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25382 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
25383 "containing that single node."
25384 msgstr ""
25385
25386 # type: =head2
25387 #. type: =head2
25388 #: ../fish/guestfish-actions.pod:215
25389 msgid "aug-defvar"
25390 msgstr ""
25391
25392 # type: verbatim
25393 #. type: verbatim
25394 #: ../fish/guestfish-actions.pod:217
25395 #, no-wrap
25396 msgid ""
25397 " aug-defvar name expr\n"
25398 "\n"
25399 msgstr ""
25400
25401 # type: =head2
25402 #. type: =head2
25403 #: ../fish/guestfish-actions.pod:226
25404 msgid "aug-get"
25405 msgstr ""
25406
25407 # type: verbatim
25408 #. type: verbatim
25409 #: ../fish/guestfish-actions.pod:228
25410 #, no-wrap
25411 msgid ""
25412 " aug-get augpath\n"
25413 "\n"
25414 msgstr ""
25415
25416 # type: =head2
25417 #. type: =head2
25418 #: ../fish/guestfish-actions.pod:233
25419 msgid "aug-init"
25420 msgstr ""
25421
25422 # type: verbatim
25423 #. type: verbatim
25424 #: ../fish/guestfish-actions.pod:235
25425 #, no-wrap
25426 msgid ""
25427 " aug-init root flags\n"
25428 "\n"
25429 msgstr ""
25430
25431 # type: textblock
25432 #. type: textblock
25433 #: ../fish/guestfish-actions.pod:241
25434 msgid "You must call this before using any other L</aug-*> commands."
25435 msgstr ""
25436
25437 # type: textblock
25438 #. type: textblock
25439 #: ../fish/guestfish-actions.pod:276
25440 msgid "Do not load the tree in L</aug-init>."
25441 msgstr ""
25442
25443 # type: textblock
25444 #. type: textblock
25445 #: ../fish/guestfish-actions.pod:280
25446 msgid "To close the handle, you can call L</aug-close>."
25447 msgstr ""
25448
25449 # type: =head2
25450 #. type: =head2
25451 #: ../fish/guestfish-actions.pod:284
25452 msgid "aug-insert"
25453 msgstr ""
25454
25455 # type: verbatim
25456 #. type: verbatim
25457 #: ../fish/guestfish-actions.pod:286
25458 #, no-wrap
25459 msgid ""
25460 " aug-insert augpath label true|false\n"
25461 "\n"
25462 msgstr ""
25463
25464 # type: =head2
25465 #. type: =head2
25466 #: ../fish/guestfish-actions.pod:296
25467 msgid "aug-load"
25468 msgstr ""
25469
25470 # type: verbatim
25471 #. type: verbatim
25472 #: ../fish/guestfish-actions.pod:298
25473 #, no-wrap
25474 msgid ""
25475 " aug-load\n"
25476 "\n"
25477 msgstr ""
25478
25479 # type: =head2
25480 #. type: =head2
25481 #: ../fish/guestfish-actions.pod:305
25482 msgid "aug-ls"
25483 msgstr ""
25484
25485 # type: verbatim
25486 #. type: verbatim
25487 #: ../fish/guestfish-actions.pod:307
25488 #, no-wrap
25489 msgid ""
25490 " aug-ls augpath\n"
25491 "\n"
25492 msgstr ""
25493
25494 # type: textblock
25495 #. type: textblock
25496 #: ../fish/guestfish-actions.pod:309
25497 msgid ""
25498 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
25499 "resulting nodes into alphabetical order."
25500 msgstr ""
25501
25502 # type: =head2
25503 #. type: =head2
25504 #: ../fish/guestfish-actions.pod:312
25505 msgid "aug-match"
25506 msgstr ""
25507
25508 # type: verbatim
25509 #. type: verbatim
25510 #: ../fish/guestfish-actions.pod:314
25511 #, no-wrap
25512 msgid ""
25513 " aug-match augpath\n"
25514 "\n"
25515 msgstr ""
25516
25517 # type: =head2
25518 #. type: =head2
25519 #: ../fish/guestfish-actions.pod:320
25520 msgid "aug-mv"
25521 msgstr ""
25522
25523 # type: verbatim
25524 #. type: verbatim
25525 #: ../fish/guestfish-actions.pod:322
25526 #, no-wrap
25527 msgid ""
25528 " aug-mv src dest\n"
25529 "\n"
25530 msgstr ""
25531
25532 # type: =head2
25533 #. type: =head2
25534 #: ../fish/guestfish-actions.pod:327
25535 msgid "aug-rm"
25536 msgstr ""
25537
25538 # type: verbatim
25539 #. type: verbatim
25540 #: ../fish/guestfish-actions.pod:329
25541 #, no-wrap
25542 msgid ""
25543 " aug-rm augpath\n"
25544 "\n"
25545 msgstr ""
25546
25547 # type: =head2
25548 #. type: =head2
25549 #: ../fish/guestfish-actions.pod:335
25550 msgid "aug-save"
25551 msgstr ""
25552
25553 # type: verbatim
25554 #. type: verbatim
25555 #: ../fish/guestfish-actions.pod:337
25556 #, no-wrap
25557 msgid ""
25558 " aug-save\n"
25559 "\n"
25560 msgstr ""
25561
25562 # type: textblock
25563 #. type: textblock
25564 #: ../fish/guestfish-actions.pod:341
25565 msgid ""
25566 "The flags which were passed to L</aug-init> affect exactly how files are "
25567 "saved."
25568 msgstr ""
25569
25570 # type: =head2
25571 #. type: =head2
25572 #: ../fish/guestfish-actions.pod:344
25573 msgid "aug-set"
25574 msgstr ""
25575
25576 # type: verbatim
25577 #. type: verbatim
25578 #: ../fish/guestfish-actions.pod:346
25579 #, no-wrap
25580 msgid ""
25581 " aug-set augpath val\n"
25582 "\n"
25583 msgstr ""
25584
25585 # type: textblock
25586 #. type: textblock
25587 #: ../fish/guestfish-actions.pod:350
25588 msgid ""
25589 "In the Augeas API, it is possible to clear a node by setting the value to "
25590 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
25591 "this call.  Instead you must use the L</aug-clear> call."
25592 msgstr ""
25593
25594 # type: =head2
25595 #. type: =head2
25596 #: ../fish/guestfish-actions.pod:355
25597 msgid "available"
25598 msgstr ""
25599
25600 # type: verbatim
25601 #. type: verbatim
25602 #: ../fish/guestfish-actions.pod:357
25603 #, no-wrap
25604 msgid ""
25605 " available 'groups ...'\n"
25606 "\n"
25607 msgstr ""
25608
25609 # type: textblock
25610 #. type: textblock
25611 #: ../fish/guestfish-actions.pod:363
25612 msgid ""
25613 "The libguestfs groups, and the functions that those groups correspond to, "
25614 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25615 "runtime by calling L</available-all-groups>."
25616 msgstr ""
25617
25618 # type: textblock
25619 #. type: textblock
25620 #: ../fish/guestfish-actions.pod:387
25621 msgid "You must call L</launch> before calling this function."
25622 msgstr ""
25623
25624 # type: textblock
25625 #. type: textblock
25626 #: ../fish/guestfish-actions.pod:409
25627 msgid ""
25628 "This call was added in version C<1.0.80>.  In previous versions of "
25629 "libguestfs all you could do would be to speculatively execute a command to "
25630 "find out if the daemon implemented it.  See also L</version>."
25631 msgstr ""
25632
25633 # type: =head2
25634 #. type: =head2
25635 #: ../fish/guestfish-actions.pod:416
25636 msgid "available-all-groups"
25637 msgstr ""
25638
25639 # type: verbatim
25640 #. type: verbatim
25641 #: ../fish/guestfish-actions.pod:418
25642 #, no-wrap
25643 msgid ""
25644 " available-all-groups\n"
25645 "\n"
25646 msgstr ""
25647
25648 # type: textblock
25649 #. type: textblock
25650 #: ../fish/guestfish-actions.pod:420
25651 msgid ""
25652 "This command returns a list of all optional groups that this daemon knows "
25653 "about.  Note this returns both supported and unsupported groups.  To find "
25654 "out which ones the daemon can actually support you have to call L</"
25655 "available> on each member of the returned list."
25656 msgstr ""
25657
25658 # type: textblock
25659 #. type: textblock
25660 #: ../fish/guestfish-actions.pod:426
25661 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
25662 msgstr ""
25663
25664 # type: =head2
25665 #. type: =head2
25666 #: ../fish/guestfish-actions.pod:428
25667 msgid "base64-in"
25668 msgstr ""
25669
25670 # type: verbatim
25671 #. type: verbatim
25672 #: ../fish/guestfish-actions.pod:430
25673 #, no-wrap
25674 msgid ""
25675 " base64-in (base64file|-) filename\n"
25676 "\n"
25677 msgstr ""
25678
25679 # type: textblock
25680 #. type: textblock
25681 #: ../fish/guestfish-actions.pod:435 ../fish/guestfish-actions.pod:444
25682 #: ../fish/guestfish-actions.pod:693 ../fish/guestfish-actions.pod:862
25683 #: ../fish/guestfish-actions.pod:881 ../fish/guestfish-actions.pod:1255
25684 #: ../fish/guestfish-actions.pod:4631 ../fish/guestfish-actions.pod:4643
25685 #: ../fish/guestfish-actions.pod:4654 ../fish/guestfish-actions.pod:4665
25686 #: ../fish/guestfish-actions.pod:4717 ../fish/guestfish-actions.pod:4726
25687 #: ../fish/guestfish-actions.pod:4780 ../fish/guestfish-actions.pod:4803
25688 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
25689 msgstr ""
25690
25691 # type: =head2
25692 #. type: =head2
25693 #: ../fish/guestfish-actions.pod:437
25694 msgid "base64-out"
25695 msgstr ""
25696
25697 # type: verbatim
25698 #. type: verbatim
25699 #: ../fish/guestfish-actions.pod:439
25700 #, no-wrap
25701 msgid ""
25702 " base64-out filename (base64file|-)\n"
25703 "\n"
25704 msgstr ""
25705
25706 # type: =head2
25707 #. type: =head2
25708 #: ../fish/guestfish-actions.pod:446
25709 msgid "blockdev-flushbufs"
25710 msgstr ""
25711
25712 # type: verbatim
25713 #. type: verbatim
25714 #: ../fish/guestfish-actions.pod:448
25715 #, no-wrap
25716 msgid ""
25717 " blockdev-flushbufs device\n"
25718 "\n"
25719 msgstr ""
25720
25721 # type: =head2
25722 #. type: =head2
25723 #: ../fish/guestfish-actions.pod:455
25724 msgid "blockdev-getbsz"
25725 msgstr ""
25726
25727 # type: verbatim
25728 #. type: verbatim
25729 #: ../fish/guestfish-actions.pod:457
25730 #, no-wrap
25731 msgid ""
25732 " blockdev-getbsz device\n"
25733 "\n"
25734 msgstr ""
25735
25736 # type: =head2
25737 #. type: =head2
25738 #: ../fish/guestfish-actions.pod:466
25739 msgid "blockdev-getro"
25740 msgstr ""
25741
25742 # type: verbatim
25743 #. type: verbatim
25744 #: ../fish/guestfish-actions.pod:468
25745 #, no-wrap
25746 msgid ""
25747 " blockdev-getro device\n"
25748 "\n"
25749 msgstr ""
25750
25751 # type: =head2
25752 #. type: =head2
25753 #: ../fish/guestfish-actions.pod:475
25754 msgid "blockdev-getsize64"
25755 msgstr ""
25756
25757 # type: verbatim
25758 #. type: verbatim
25759 #: ../fish/guestfish-actions.pod:477
25760 #, no-wrap
25761 msgid ""
25762 " blockdev-getsize64 device\n"
25763 "\n"
25764 msgstr ""
25765
25766 # type: textblock
25767 #. type: textblock
25768 #: ../fish/guestfish-actions.pod:481
25769 msgid "See also L</blockdev-getsz>."
25770 msgstr ""
25771
25772 # type: =head2
25773 #. type: =head2
25774 #: ../fish/guestfish-actions.pod:485
25775 msgid "blockdev-getss"
25776 msgstr ""
25777
25778 # type: verbatim
25779 #. type: verbatim
25780 #: ../fish/guestfish-actions.pod:487
25781 #, no-wrap
25782 msgid ""
25783 " blockdev-getss device\n"
25784 "\n"
25785 msgstr ""
25786
25787 # type: textblock
25788 #. type: textblock
25789 #: ../fish/guestfish-actions.pod:492
25790 msgid ""
25791 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
25792 msgstr ""
25793
25794 # type: =head2
25795 #. type: =head2
25796 #: ../fish/guestfish-actions.pod:497
25797 msgid "blockdev-getsz"
25798 msgstr ""
25799
25800 # type: verbatim
25801 #. type: verbatim
25802 #: ../fish/guestfish-actions.pod:499
25803 #, no-wrap
25804 msgid ""
25805 " blockdev-getsz device\n"
25806 "\n"
25807 msgstr ""
25808
25809 # type: textblock
25810 #. type: textblock
25811 #: ../fish/guestfish-actions.pod:504
25812 msgid ""
25813 "See also L</blockdev-getss> for the real sector size of the device, and L</"
25814 "blockdev-getsize64> for the more useful I<size in bytes>."
25815 msgstr ""
25816
25817 # type: =head2
25818 #. type: =head2
25819 #: ../fish/guestfish-actions.pod:510
25820 msgid "blockdev-rereadpt"
25821 msgstr ""
25822
25823 # type: verbatim
25824 #. type: verbatim
25825 #: ../fish/guestfish-actions.pod:512
25826 #, no-wrap
25827 msgid ""
25828 " blockdev-rereadpt device\n"
25829 "\n"
25830 msgstr ""
25831
25832 # type: =head2
25833 #. type: =head2
25834 #: ../fish/guestfish-actions.pod:518
25835 msgid "blockdev-setbsz"
25836 msgstr ""
25837
25838 # type: verbatim
25839 #. type: verbatim
25840 #: ../fish/guestfish-actions.pod:520
25841 #, no-wrap
25842 msgid ""
25843 " blockdev-setbsz device blocksize\n"
25844 "\n"
25845 msgstr ""
25846
25847 # type: =head2
25848 #. type: =head2
25849 #: ../fish/guestfish-actions.pod:529
25850 msgid "blockdev-setro"
25851 msgstr ""
25852
25853 # type: verbatim
25854 #. type: verbatim
25855 #: ../fish/guestfish-actions.pod:531
25856 #, no-wrap
25857 msgid ""
25858 " blockdev-setro device\n"
25859 "\n"
25860 msgstr ""
25861
25862 # type: =head2
25863 #. type: =head2
25864 #: ../fish/guestfish-actions.pod:537
25865 msgid "blockdev-setrw"
25866 msgstr ""
25867
25868 # type: verbatim
25869 #. type: verbatim
25870 #: ../fish/guestfish-actions.pod:539
25871 #, no-wrap
25872 msgid ""
25873 " blockdev-setrw device\n"
25874 "\n"
25875 msgstr ""
25876
25877 #. type: =head2
25878 #: ../fish/guestfish-actions.pod:545
25879 msgid "btrfs-filesystem-resize"
25880 msgstr ""
25881
25882 #. type: verbatim
25883 #: ../fish/guestfish-actions.pod:547
25884 #, no-wrap
25885 msgid ""
25886 " btrfs-filesystem-resize mountpoint [size:..]\n"
25887 "\n"
25888 msgstr ""
25889
25890 # type: =head2
25891 #. type: =head2
25892 #: ../fish/guestfish-actions.pod:570
25893 msgid "case-sensitive-path"
25894 msgstr ""
25895
25896 # type: verbatim
25897 #. type: verbatim
25898 #: ../fish/guestfish-actions.pod:572
25899 #, no-wrap
25900 msgid ""
25901 " case-sensitive-path path\n"
25902 "\n"
25903 msgstr ""
25904
25905 # type: textblock
25906 #. type: textblock
25907 #: ../fish/guestfish-actions.pod:596
25908 msgid ""
25909 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
25910 "WINDOWS/system32\"> (the exact return value would depend on details of how "
25911 "the directories were originally created under Windows)."
25912 msgstr ""
25913
25914 # type: textblock
25915 #. type: textblock
25916 #: ../fish/guestfish-actions.pod:604
25917 msgid "See also L</realpath>."
25918 msgstr ""
25919
25920 # type: =head2
25921 #. type: =head2
25922 #: ../fish/guestfish-actions.pod:606
25923 msgid "cat"
25924 msgstr ""
25925
25926 # type: verbatim
25927 #. type: verbatim
25928 #: ../fish/guestfish-actions.pod:608
25929 #, no-wrap
25930 msgid ""
25931 " cat path\n"
25932 "\n"
25933 msgstr ""
25934
25935 # type: textblock
25936 #. type: textblock
25937 #: ../fish/guestfish-actions.pod:612
25938 msgid ""
25939 "Note that this function cannot correctly handle binary files (specifically, "
25940 "files containing C<\\0> character which is treated as end of string).  For "
25941 "those you need to use the L</read-file> or L</download> functions which have "
25942 "a more complex interface."
25943 msgstr ""
25944
25945 # type: =head2
25946 #. type: =head2
25947 #: ../fish/guestfish-actions.pod:620
25948 msgid "checksum"
25949 msgstr ""
25950
25951 # type: verbatim
25952 #. type: verbatim
25953 #: ../fish/guestfish-actions.pod:622
25954 #, no-wrap
25955 msgid ""
25956 " checksum csumtype path\n"
25957 "\n"
25958 msgstr ""
25959
25960 # type: textblock
25961 #. type: textblock
25962 #: ../fish/guestfish-actions.pod:665
25963 msgid "To get the checksum for a device, use L</checksum-device>."
25964 msgstr ""
25965
25966 # type: textblock
25967 #. type: textblock
25968 #: ../fish/guestfish-actions.pod:667
25969 msgid "To get the checksums for many files, use L</checksums-out>."
25970 msgstr ""
25971
25972 # type: =head2
25973 #. type: =head2
25974 #: ../fish/guestfish-actions.pod:669
25975 msgid "checksum-device"
25976 msgstr ""
25977
25978 # type: verbatim
25979 #. type: verbatim
25980 #: ../fish/guestfish-actions.pod:671
25981 #, no-wrap
25982 msgid ""
25983 " checksum-device csumtype device\n"
25984 "\n"
25985 msgstr ""
25986
25987 # type: textblock
25988 #. type: textblock
25989 #: ../fish/guestfish-actions.pod:673
25990 msgid ""
25991 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
25992 "device named C<device>.  For the types of checksums supported see the L</"
25993 "checksum> command."
25994 msgstr ""
25995
25996 # type: =head2
25997 #. type: =head2
25998 #: ../fish/guestfish-actions.pod:677
25999 msgid "checksums-out"
26000 msgstr ""
26001
26002 # type: verbatim
26003 #. type: verbatim
26004 #: ../fish/guestfish-actions.pod:679
26005 #, no-wrap
26006 msgid ""
26007 " checksums-out csumtype directory (sumsfile|-)\n"
26008 "\n"
26009 msgstr ""
26010
26011 # type: =head2
26012 #. type: =head2
26013 #: ../fish/guestfish-actions.pod:695
26014 msgid "chmod"
26015 msgstr ""
26016
26017 # type: verbatim
26018 #. type: verbatim
26019 #: ../fish/guestfish-actions.pod:697
26020 #, no-wrap
26021 msgid ""
26022 " chmod mode path\n"
26023 "\n"
26024 msgstr ""
26025
26026 # type: =head2
26027 #. type: =head2
26028 #: ../fish/guestfish-actions.pod:708
26029 msgid "chown"
26030 msgstr ""
26031
26032 # type: verbatim
26033 #. type: verbatim
26034 #: ../fish/guestfish-actions.pod:710
26035 #, no-wrap
26036 msgid ""
26037 " chown owner group path\n"
26038 "\n"
26039 msgstr ""
26040
26041 # type: =head2
26042 #. type: =head2
26043 #: ../fish/guestfish-actions.pod:718
26044 msgid "command"
26045 msgstr ""
26046
26047 # type: verbatim
26048 #. type: verbatim
26049 #: ../fish/guestfish-actions.pod:720
26050 #, no-wrap
26051 msgid ""
26052 " command 'arguments ...'\n"
26053 "\n"
26054 msgstr ""
26055
26056 # type: textblock
26057 #. type: textblock
26058 #: ../fish/guestfish-actions.pod:727
26059 msgid ""
26060 "The single parameter is an argv-style list of arguments.  The first element "
26061 "is the name of the program to run.  Subsequent elements are parameters.  The "
26062 "list must be non-empty (ie. must contain a program name).  Note that the "
26063 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
26064 msgstr ""
26065
26066 # type: =head2
26067 #. type: =head2
26068 #: ../fish/guestfish-actions.pod:755
26069 msgid "command-lines"
26070 msgstr ""
26071
26072 # type: verbatim
26073 #. type: verbatim
26074 #: ../fish/guestfish-actions.pod:757
26075 #, no-wrap
26076 msgid ""
26077 " command-lines 'arguments ...'\n"
26078 "\n"
26079 msgstr ""
26080
26081 # type: textblock
26082 #. type: textblock
26083 #: ../fish/guestfish-actions.pod:759
26084 msgid ""
26085 "This is the same as L</command>, but splits the result into a list of lines."
26086 msgstr ""
26087
26088 # type: textblock
26089 #. type: textblock
26090 #: ../fish/guestfish-actions.pod:762
26091 msgid "See also: L</sh-lines>"
26092 msgstr ""
26093
26094 # type: =head2
26095 #. type: =head2
26096 #: ../fish/guestfish-actions.pod:767
26097 msgid "config"
26098 msgstr ""
26099
26100 # type: verbatim
26101 #. type: verbatim
26102 #: ../fish/guestfish-actions.pod:769
26103 #, no-wrap
26104 msgid ""
26105 " config qemuparam qemuvalue\n"
26106 "\n"
26107 msgstr ""
26108
26109 # type: =head2
26110 #. type: =head2
26111 #: ../fish/guestfish-actions.pod:780
26112 msgid "copy-size"
26113 msgstr ""
26114
26115 # type: verbatim
26116 #. type: verbatim
26117 #: ../fish/guestfish-actions.pod:782
26118 #, no-wrap
26119 msgid ""
26120 " copy-size src dest size\n"
26121 "\n"
26122 msgstr ""
26123
26124 # type: =head2
26125 #. type: =head2
26126 #: ../fish/guestfish-actions.pod:790
26127 msgid "cp"
26128 msgstr ""
26129
26130 # type: verbatim
26131 #. type: verbatim
26132 #: ../fish/guestfish-actions.pod:792
26133 #, no-wrap
26134 msgid ""
26135 " cp src dest\n"
26136 "\n"
26137 msgstr ""
26138
26139 # type: =head2
26140 #. type: =head2
26141 #: ../fish/guestfish-actions.pod:797
26142 msgid "cp-a"
26143 msgstr ""
26144
26145 # type: verbatim
26146 #. type: verbatim
26147 #: ../fish/guestfish-actions.pod:799
26148 #, no-wrap
26149 msgid ""
26150 " cp-a src dest\n"
26151 "\n"
26152 msgstr ""
26153
26154 # type: =head2
26155 #. type: =head2
26156 #: ../fish/guestfish-actions.pod:804
26157 msgid "dd"
26158 msgstr ""
26159
26160 # type: verbatim
26161 #. type: verbatim
26162 #: ../fish/guestfish-actions.pod:806
26163 #, no-wrap
26164 msgid ""
26165 " dd src dest\n"
26166 "\n"
26167 msgstr ""
26168
26169 # type: textblock
26170 #. type: textblock
26171 #: ../fish/guestfish-actions.pod:813
26172 msgid ""
26173 "If the destination is a device, it must be as large or larger than the "
26174 "source file or device, otherwise the copy will fail.  This command cannot do "
26175 "partial copies (see L</copy-size>)."
26176 msgstr ""
26177
26178 # type: =head2
26179 #. type: =head2
26180 #: ../fish/guestfish-actions.pod:817
26181 msgid "df"
26182 msgstr ""
26183
26184 # type: verbatim
26185 #. type: verbatim
26186 #: ../fish/guestfish-actions.pod:819
26187 #, no-wrap
26188 msgid ""
26189 " df\n"
26190 "\n"
26191 msgstr ""
26192
26193 # type: textblock
26194 #. type: textblock
26195 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:834
26196 msgid ""
26197 "This command is mostly useful for interactive sessions.  It is I<not> "
26198 "intended that you try to parse the output string.  Use L</statvfs> from "
26199 "programs."
26200 msgstr ""
26201
26202 # type: =head2
26203 #. type: =head2
26204 #: ../fish/guestfish-actions.pod:827
26205 msgid "df-h"
26206 msgstr ""
26207
26208 # type: verbatim
26209 #. type: verbatim
26210 #: ../fish/guestfish-actions.pod:829
26211 #, no-wrap
26212 msgid ""
26213 " df-h\n"
26214 "\n"
26215 msgstr ""
26216
26217 # type: =head2
26218 #. type: =head2
26219 #: ../fish/guestfish-actions.pod:838
26220 msgid "dmesg"
26221 msgstr ""
26222
26223 # type: verbatim
26224 #. type: verbatim
26225 #: ../fish/guestfish-actions.pod:840
26226 #, no-wrap
26227 msgid ""
26228 " dmesg\n"
26229 "\n"
26230 msgstr ""
26231
26232 # type: textblock
26233 #. type: textblock
26234 #: ../fish/guestfish-actions.pod:846
26235 msgid ""
26236 "Another way to get the same information is to enable verbose messages with "
26237 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
26238 "before running the program."
26239 msgstr ""
26240
26241 # type: =head2
26242 #. type: =head2
26243 #: ../fish/guestfish-actions.pod:851
26244 msgid "download"
26245 msgstr ""
26246
26247 # type: verbatim
26248 #. type: verbatim
26249 #: ../fish/guestfish-actions.pod:853
26250 #, no-wrap
26251 msgid ""
26252 " download remotefilename (filename|-)\n"
26253 "\n"
26254 msgstr ""
26255
26256 # type: textblock
26257 #. type: textblock
26258 #: ../fish/guestfish-actions.pod:860
26259 msgid "See also L</upload>, L</cat>."
26260 msgstr ""
26261
26262 # type: =head2
26263 #. type: =head2
26264 #: ../fish/guestfish-actions.pod:864
26265 msgid "download-offset"
26266 msgstr ""
26267
26268 # type: verbatim
26269 #. type: verbatim
26270 #: ../fish/guestfish-actions.pod:866
26271 #, no-wrap
26272 msgid ""
26273 " download-offset remotefilename (filename|-) offset size\n"
26274 "\n"
26275 msgstr ""
26276
26277 # type: textblock
26278 #. type: textblock
26279 #: ../fish/guestfish-actions.pod:874
26280 msgid ""
26281 "Note that there is no limit on the amount of data that can be downloaded "
26282 "with this call, unlike with L</pread>, and this call always reads the full "
26283 "amount unless an error occurs."
26284 msgstr ""
26285
26286 # type: textblock
26287 #. type: textblock
26288 #: ../fish/guestfish-actions.pod:879
26289 msgid "See also L</download>, L</pread>."
26290 msgstr ""
26291
26292 # type: =head2
26293 #. type: =head2
26294 #: ../fish/guestfish-actions.pod:883
26295 msgid "drop-caches"
26296 msgstr ""
26297
26298 # type: verbatim
26299 #. type: verbatim
26300 #: ../fish/guestfish-actions.pod:885
26301 #, no-wrap
26302 msgid ""
26303 " drop-caches whattodrop\n"
26304 "\n"
26305 msgstr ""
26306
26307 # type: =head2
26308 #. type: =head2
26309 #: ../fish/guestfish-actions.pod:897
26310 msgid "du"
26311 msgstr ""
26312
26313 # type: verbatim
26314 #. type: verbatim
26315 #: ../fish/guestfish-actions.pod:899
26316 #, no-wrap
26317 msgid ""
26318 " du path\n"
26319 "\n"
26320 msgstr ""
26321
26322 # type: =head2
26323 #. type: =head2
26324 #: ../fish/guestfish-actions.pod:911
26325 msgid "e2fsck-f"
26326 msgstr ""
26327
26328 # type: verbatim
26329 #. type: verbatim
26330 #: ../fish/guestfish-actions.pod:913
26331 #, no-wrap
26332 msgid ""
26333 " e2fsck-f device\n"
26334 "\n"
26335 msgstr ""
26336
26337 # type: textblock
26338 #. type: textblock
26339 #: ../fish/guestfish-actions.pod:919
26340 msgid ""
26341 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
26342 "should use L</fsck>."
26343 msgstr ""
26344
26345 # type: =head2
26346 #. type: =head2
26347 #: ../fish/guestfish-actions.pod:922
26348 msgid "echo-daemon"
26349 msgstr ""
26350
26351 # type: verbatim
26352 #. type: verbatim
26353 #: ../fish/guestfish-actions.pod:924
26354 #, no-wrap
26355 msgid ""
26356 " echo-daemon 'words ...'\n"
26357 "\n"
26358 msgstr ""
26359
26360 # type: textblock
26361 #. type: textblock
26362 #: ../fish/guestfish-actions.pod:931
26363 msgid "See also L</ping-daemon>."
26364 msgstr ""
26365
26366 # type: =head2
26367 #. type: =head2
26368 #: ../fish/guestfish-actions.pod:933
26369 msgid "egrep"
26370 msgstr ""
26371
26372 # type: verbatim
26373 #. type: verbatim
26374 #: ../fish/guestfish-actions.pod:935
26375 #, no-wrap
26376 msgid ""
26377 " egrep regex path\n"
26378 "\n"
26379 msgstr ""
26380
26381 # type: =head2
26382 #. type: =head2
26383 #: ../fish/guestfish-actions.pod:943
26384 msgid "egrepi"
26385 msgstr ""
26386
26387 # type: verbatim
26388 #. type: verbatim
26389 #: ../fish/guestfish-actions.pod:945
26390 #, no-wrap
26391 msgid ""
26392 " egrepi regex path\n"
26393 "\n"
26394 msgstr ""
26395
26396 # type: =head2
26397 #. type: =head2
26398 #: ../fish/guestfish-actions.pod:953
26399 msgid "equal"
26400 msgstr ""
26401
26402 # type: verbatim
26403 #. type: verbatim
26404 #: ../fish/guestfish-actions.pod:955
26405 #, no-wrap
26406 msgid ""
26407 " equal file1 file2\n"
26408 "\n"
26409 msgstr ""
26410
26411 # type: =head2
26412 #. type: =head2
26413 #: ../fish/guestfish-actions.pod:962
26414 msgid "exists"
26415 msgstr ""
26416
26417 # type: verbatim
26418 #. type: verbatim
26419 #: ../fish/guestfish-actions.pod:964
26420 #, no-wrap
26421 msgid ""
26422 " exists path\n"
26423 "\n"
26424 msgstr ""
26425
26426 # type: textblock
26427 #. type: textblock
26428 #: ../fish/guestfish-actions.pod:969
26429 msgid "See also L</is-file>, L</is-dir>, L</stat>."
26430 msgstr ""
26431
26432 # type: =head2
26433 #. type: =head2
26434 #: ../fish/guestfish-actions.pod:971
26435 msgid "fallocate"
26436 msgstr ""
26437
26438 # type: verbatim
26439 #. type: verbatim
26440 #: ../fish/guestfish-actions.pod:973
26441 #, no-wrap
26442 msgid ""
26443 " fallocate path len\n"
26444 "\n"
26445 msgstr ""
26446
26447 # type: =head2
26448 #. type: =head2
26449 #: ../fish/guestfish-actions.pod:990
26450 msgid "fallocate64"
26451 msgstr ""
26452
26453 # type: verbatim
26454 #. type: verbatim
26455 #: ../fish/guestfish-actions.pod:992
26456 #, no-wrap
26457 msgid ""
26458 " fallocate64 path len\n"
26459 "\n"
26460 msgstr ""
26461
26462 # type: textblock
26463 #. type: textblock
26464 #: ../fish/guestfish-actions.pod:998
26465 msgid ""
26466 "Note that this call allocates disk blocks for the file.  To create a sparse "
26467 "file use L</truncate-size> instead."
26468 msgstr ""
26469
26470 # type: textblock
26471 #. type: textblock
26472 #: ../fish/guestfish-actions.pod:1001
26473 msgid ""
26474 "The deprecated call L</fallocate> does the same, but owing to an oversight "
26475 "it only allowed 30 bit lengths to be specified, effectively limiting the "
26476 "maximum size of files created through that call to 1GB."
26477 msgstr ""
26478
26479 # type: =head2
26480 #. type: =head2
26481 #: ../fish/guestfish-actions.pod:1010
26482 msgid "fgrep"
26483 msgstr ""
26484
26485 # type: verbatim
26486 #. type: verbatim
26487 #: ../fish/guestfish-actions.pod:1012
26488 #, no-wrap
26489 msgid ""
26490 " fgrep pattern path\n"
26491 "\n"
26492 msgstr ""
26493
26494 # type: =head2
26495 #. type: =head2
26496 #: ../fish/guestfish-actions.pod:1020
26497 msgid "fgrepi"
26498 msgstr ""
26499
26500 # type: verbatim
26501 #. type: verbatim
26502 #: ../fish/guestfish-actions.pod:1022
26503 #, no-wrap
26504 msgid ""
26505 " fgrepi pattern path\n"
26506 "\n"
26507 msgstr ""
26508
26509 # type: =head2
26510 #. type: =head2
26511 #: ../fish/guestfish-actions.pod:1030
26512 msgid "file"
26513 msgstr ""
26514
26515 # type: verbatim
26516 #. type: verbatim
26517 #: ../fish/guestfish-actions.pod:1032
26518 #, no-wrap
26519 msgid ""
26520 " file path\n"
26521 "\n"
26522 msgstr ""
26523
26524 #. type: textblock
26525 #: ../fish/guestfish-actions.pod:1048
26526 msgid ""
26527 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
26528 "(etc), L</is-zero>."
26529 msgstr ""
26530
26531 # type: =head2
26532 #. type: =head2
26533 #: ../fish/guestfish-actions.pod:1051
26534 msgid "file-architecture"
26535 msgstr ""
26536
26537 # type: verbatim
26538 #. type: verbatim
26539 #: ../fish/guestfish-actions.pod:1053
26540 #, no-wrap
26541 msgid ""
26542 " file-architecture filename\n"
26543 "\n"
26544 msgstr ""
26545
26546 # type: =head2
26547 #. type: =head2
26548 #: ../fish/guestfish-actions.pod:1156
26549 msgid "filesize"
26550 msgstr ""
26551
26552 # type: verbatim
26553 #. type: verbatim
26554 #: ../fish/guestfish-actions.pod:1158
26555 #, no-wrap
26556 msgid ""
26557 " filesize file\n"
26558 "\n"
26559 msgstr ""
26560
26561 # type: textblock
26562 #. type: textblock
26563 #: ../fish/guestfish-actions.pod:1162
26564 msgid ""
26565 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
26566 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
26567 msgstr ""
26568
26569 # type: =head2
26570 #. type: =head2
26571 #: ../fish/guestfish-actions.pod:1166
26572 msgid "fill"
26573 msgstr ""
26574
26575 # type: verbatim
26576 #. type: verbatim
26577 #: ../fish/guestfish-actions.pod:1168
26578 #, no-wrap
26579 msgid ""
26580 " fill c len path\n"
26581 "\n"
26582 msgstr ""
26583
26584 # type: textblock
26585 #. type: textblock
26586 #: ../fish/guestfish-actions.pod:1174
26587 msgid ""
26588 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
26589 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
26590 "L</fill-pattern>."
26591 msgstr ""
26592
26593 # type: =head2
26594 #. type: =head2
26595 #: ../fish/guestfish-actions.pod:1179
26596 msgid "fill-pattern"
26597 msgstr ""
26598
26599 # type: verbatim
26600 #. type: verbatim
26601 #: ../fish/guestfish-actions.pod:1181
26602 #, no-wrap
26603 msgid ""
26604 " fill-pattern pattern len path\n"
26605 "\n"
26606 msgstr ""
26607
26608 # type: textblock
26609 #. type: textblock
26610 #: ../fish/guestfish-actions.pod:1183
26611 msgid ""
26612 "This function is like L</fill> except that it creates a new file of length "
26613 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
26614 "is truncated if necessary to ensure the length of the file is exactly C<len> "
26615 "bytes."
26616 msgstr ""
26617
26618 # type: =head2
26619 #. type: =head2
26620 #: ../fish/guestfish-actions.pod:1188
26621 msgid "find"
26622 msgstr ""
26623
26624 # type: verbatim
26625 #. type: verbatim
26626 #: ../fish/guestfish-actions.pod:1190
26627 #, no-wrap
26628 msgid ""
26629 " find directory\n"
26630 "\n"
26631 msgstr ""
26632
26633 # type: textblock
26634 #. type: textblock
26635 #: ../fish/guestfish-actions.pod:1204
26636 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
26637 msgstr ""
26638
26639 # type: textblock
26640 #. type: textblock
26641 #: ../fish/guestfish-actions.pod:1217
26642 msgid "See also L</find0>."
26643 msgstr ""
26644
26645 # type: =head2
26646 #. type: =head2
26647 #: ../fish/guestfish-actions.pod:1222
26648 msgid "find0"
26649 msgstr ""
26650
26651 # type: verbatim
26652 #. type: verbatim
26653 #: ../fish/guestfish-actions.pod:1224
26654 #, no-wrap
26655 msgid ""
26656 " find0 directory (files|-)\n"
26657 "\n"
26658 msgstr ""
26659
26660 # type: textblock
26661 #. type: textblock
26662 #: ../fish/guestfish-actions.pod:1230
26663 msgid ""
26664 "This command works the same way as L</find> with the following exceptions:"
26665 msgstr ""
26666
26667 # type: =head2
26668 #. type: =head2
26669 #: ../fish/guestfish-actions.pod:1257
26670 msgid "findfs-label"
26671 msgstr ""
26672
26673 # type: verbatim
26674 #. type: verbatim
26675 #: ../fish/guestfish-actions.pod:1259
26676 #, no-wrap
26677 msgid ""
26678 " findfs-label label\n"
26679 "\n"
26680 msgstr ""
26681
26682 # type: textblock
26683 #. type: textblock
26684 #: ../fish/guestfish-actions.pod:1265
26685 msgid "To find the label of a filesystem, use L</vfs-label>."
26686 msgstr ""
26687
26688 # type: =head2
26689 #. type: =head2
26690 #: ../fish/guestfish-actions.pod:1267
26691 msgid "findfs-uuid"
26692 msgstr ""
26693
26694 # type: verbatim
26695 #. type: verbatim
26696 #: ../fish/guestfish-actions.pod:1269
26697 #, no-wrap
26698 msgid ""
26699 " findfs-uuid uuid\n"
26700 "\n"
26701 msgstr ""
26702
26703 # type: textblock
26704 #. type: textblock
26705 #: ../fish/guestfish-actions.pod:1275
26706 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
26707 msgstr ""
26708
26709 # type: =head2
26710 #. type: =head2
26711 #: ../fish/guestfish-actions.pod:1277
26712 msgid "fsck"
26713 msgstr ""
26714
26715 # type: verbatim
26716 #. type: verbatim
26717 #: ../fish/guestfish-actions.pod:1279
26718 #, no-wrap
26719 msgid ""
26720 " fsck fstype device\n"
26721 "\n"
26722 msgstr ""
26723
26724 # type: =head2
26725 #. type: =head2
26726 #: ../fish/guestfish-actions.pod:1309
26727 msgid "get-append"
26728 msgstr ""
26729
26730 # type: verbatim
26731 #. type: verbatim
26732 #: ../fish/guestfish-actions.pod:1311
26733 #, no-wrap
26734 msgid ""
26735 " get-append\n"
26736 "\n"
26737 msgstr ""
26738
26739 #. type: =head2
26740 #: ../fish/guestfish-actions.pod:1318
26741 msgid "get-attach-method"
26742 msgstr ""
26743
26744 #. type: verbatim
26745 #: ../fish/guestfish-actions.pod:1320
26746 #, no-wrap
26747 msgid ""
26748 " get-attach-method\n"
26749 "\n"
26750 msgstr ""
26751
26752 #. type: textblock
26753 #: ../fish/guestfish-actions.pod:1322
26754 msgid "Return the current attach method.  See L</set-attach-method>."
26755 msgstr ""
26756
26757 # type: =head2
26758 #. type: =head2
26759 #: ../fish/guestfish-actions.pod:1324
26760 msgid "get-autosync"
26761 msgstr ""
26762
26763 # type: verbatim
26764 #. type: verbatim
26765 #: ../fish/guestfish-actions.pod:1326
26766 #, no-wrap
26767 msgid ""
26768 " get-autosync\n"
26769 "\n"
26770 msgstr ""
26771
26772 # type: =head2
26773 #. type: =head2
26774 #: ../fish/guestfish-actions.pod:1330
26775 msgid "get-direct"
26776 msgstr ""
26777
26778 # type: verbatim
26779 #. type: verbatim
26780 #: ../fish/guestfish-actions.pod:1332
26781 #, no-wrap
26782 msgid ""
26783 " get-direct\n"
26784 "\n"
26785 msgstr ""
26786
26787 # type: =head2
26788 #. type: =head2
26789 #: ../fish/guestfish-actions.pod:1336
26790 msgid "get-e2label"
26791 msgstr ""
26792
26793 # type: verbatim
26794 #. type: verbatim
26795 #: ../fish/guestfish-actions.pod:1338
26796 #, no-wrap
26797 msgid ""
26798 " get-e2label device\n"
26799 "\n"
26800 msgstr ""
26801
26802 # type: =head2
26803 #. type: =head2
26804 #: ../fish/guestfish-actions.pod:1350
26805 msgid "get-e2uuid"
26806 msgstr ""
26807
26808 # type: verbatim
26809 #. type: verbatim
26810 #: ../fish/guestfish-actions.pod:1352
26811 #, no-wrap
26812 msgid ""
26813 " get-e2uuid device\n"
26814 "\n"
26815 msgstr ""
26816
26817 # type: =head2
26818 #. type: =head2
26819 #: ../fish/guestfish-actions.pod:1364
26820 msgid "get-memsize"
26821 msgstr ""
26822
26823 # type: verbatim
26824 #. type: verbatim
26825 #: ../fish/guestfish-actions.pod:1366
26826 #, no-wrap
26827 msgid ""
26828 " get-memsize\n"
26829 "\n"
26830 msgstr ""
26831
26832 # type: textblock
26833 #. type: textblock
26834 #: ../fish/guestfish-actions.pod:1371
26835 msgid ""
26836 "If L</set-memsize> was not called on this handle, and if "
26837 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
26838 "value for memsize."
26839 msgstr ""
26840
26841 # type: =head2
26842 #. type: =head2
26843 #: ../fish/guestfish-actions.pod:1378
26844 msgid "get-network"
26845 msgstr ""
26846
26847 # type: verbatim
26848 #. type: verbatim
26849 #: ../fish/guestfish-actions.pod:1380
26850 #, no-wrap
26851 msgid ""
26852 " get-network\n"
26853 "\n"
26854 msgstr ""
26855
26856 # type: =head2
26857 #. type: =head2
26858 #: ../fish/guestfish-actions.pod:1384
26859 msgid "get-path"
26860 msgstr ""
26861
26862 # type: verbatim
26863 #. type: verbatim
26864 #: ../fish/guestfish-actions.pod:1386
26865 #, no-wrap
26866 msgid ""
26867 " get-path\n"
26868 "\n"
26869 msgstr ""
26870
26871 # type: =head2
26872 #. type: =head2
26873 #: ../fish/guestfish-actions.pod:1393
26874 msgid "get-pid"
26875 msgstr ""
26876
26877 # type: =head2
26878 #. type: =head2
26879 #: ../fish/guestfish-actions.pod:1395
26880 msgid "pid"
26881 msgstr ""
26882
26883 # type: verbatim
26884 #. type: verbatim
26885 #: ../fish/guestfish-actions.pod:1397
26886 #, no-wrap
26887 msgid ""
26888 " get-pid\n"
26889 "\n"
26890 msgstr ""
26891
26892 # type: =head2
26893 #. type: =head2
26894 #: ../fish/guestfish-actions.pod:1404
26895 msgid "get-qemu"
26896 msgstr ""
26897
26898 # type: verbatim
26899 #. type: verbatim
26900 #: ../fish/guestfish-actions.pod:1406
26901 #, no-wrap
26902 msgid ""
26903 " get-qemu\n"
26904 "\n"
26905 msgstr ""
26906
26907 # type: =head2
26908 #. type: =head2
26909 #: ../fish/guestfish-actions.pod:1413
26910 msgid "get-recovery-proc"
26911 msgstr ""
26912
26913 # type: verbatim
26914 #. type: verbatim
26915 #: ../fish/guestfish-actions.pod:1415
26916 #, no-wrap
26917 msgid ""
26918 " get-recovery-proc\n"
26919 "\n"
26920 msgstr ""
26921
26922 # type: =head2
26923 #. type: =head2
26924 #: ../fish/guestfish-actions.pod:1419
26925 msgid "get-selinux"
26926 msgstr ""
26927
26928 # type: verbatim
26929 #. type: verbatim
26930 #: ../fish/guestfish-actions.pod:1421
26931 #, no-wrap
26932 msgid ""
26933 " get-selinux\n"
26934 "\n"
26935 msgstr ""
26936
26937 # type: textblock
26938 #. type: textblock
26939 #: ../fish/guestfish-actions.pod:1423
26940 msgid ""
26941 "This returns the current setting of the selinux flag which is passed to the "
26942 "appliance at boot time.  See L</set-selinux>."
26943 msgstr ""
26944
26945 # type: =head2
26946 #. type: =head2
26947 #: ../fish/guestfish-actions.pod:1429
26948 msgid "get-state"
26949 msgstr ""
26950
26951 # type: verbatim
26952 #. type: verbatim
26953 #: ../fish/guestfish-actions.pod:1431
26954 #, no-wrap
26955 msgid ""
26956 " get-state\n"
26957 "\n"
26958 msgstr ""
26959
26960 # type: =head2
26961 #. type: =head2
26962 #: ../fish/guestfish-actions.pod:1438
26963 msgid "get-trace"
26964 msgstr ""
26965
26966 # type: verbatim
26967 #. type: verbatim
26968 #: ../fish/guestfish-actions.pod:1440
26969 #, no-wrap
26970 msgid ""
26971 " get-trace\n"
26972 "\n"
26973 msgstr ""
26974
26975 # type: =head2
26976 #. type: =head2
26977 #: ../fish/guestfish-actions.pod:1444
26978 msgid "get-umask"
26979 msgstr ""
26980
26981 # type: verbatim
26982 #. type: verbatim
26983 #: ../fish/guestfish-actions.pod:1446
26984 #, no-wrap
26985 msgid ""
26986 " get-umask\n"
26987 "\n"
26988 msgstr ""
26989
26990 # type: textblock
26991 #. type: textblock
26992 #: ../fish/guestfish-actions.pod:1448
26993 msgid ""
26994 "Return the current umask.  By default the umask is C<022> unless it has been "
26995 "set by calling L</umask>."
26996 msgstr ""
26997
26998 # type: =head2
26999 #. type: =head2
27000 #: ../fish/guestfish-actions.pod:1451
27001 msgid "get-verbose"
27002 msgstr ""
27003
27004 # type: verbatim
27005 #. type: verbatim
27006 #: ../fish/guestfish-actions.pod:1453
27007 #, no-wrap
27008 msgid ""
27009 " get-verbose\n"
27010 "\n"
27011 msgstr ""
27012
27013 # type: =head2
27014 #. type: =head2
27015 #: ../fish/guestfish-actions.pod:1457
27016 msgid "getcon"
27017 msgstr ""
27018
27019 # type: verbatim
27020 #. type: verbatim
27021 #: ../fish/guestfish-actions.pod:1459
27022 #, no-wrap
27023 msgid ""
27024 " getcon\n"
27025 "\n"
27026 msgstr ""
27027
27028 # type: textblock
27029 #. type: textblock
27030 #: ../fish/guestfish-actions.pod:1463
27031 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
27032 msgstr ""
27033
27034 # type: =head2
27035 #. type: =head2
27036 #: ../fish/guestfish-actions.pod:1466
27037 msgid "getxattr"
27038 msgstr ""
27039
27040 # type: verbatim
27041 #. type: verbatim
27042 #: ../fish/guestfish-actions.pod:1468
27043 #, no-wrap
27044 msgid ""
27045 " getxattr path name\n"
27046 "\n"
27047 msgstr ""
27048
27049 # type: textblock
27050 #. type: textblock
27051 #: ../fish/guestfish-actions.pod:1470
27052 msgid ""
27053 "Get a single extended attribute from file C<path> named C<name>.  This call "
27054 "follows symlinks.  If you want to lookup an extended attribute for the "
27055 "symlink itself, use L</lgetxattr>."
27056 msgstr ""
27057
27058 # type: textblock
27059 #. type: textblock
27060 #: ../fish/guestfish-actions.pod:1474 ../fish/guestfish-actions.pod:2501
27061 msgid ""
27062 "Normally it is better to get all extended attributes from a file in one go "
27063 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
27064 "buggy and do not provide a way to list out attributes.  For these "
27065 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
27066 "attributes you want in advance and call this function."
27067 msgstr ""
27068
27069 # type: textblock
27070 #. type: textblock
27071 #: ../fish/guestfish-actions.pod:1484
27072 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
27073 msgstr ""
27074
27075 # type: =head2
27076 #. type: =head2
27077 #: ../fish/guestfish-actions.pod:1486
27078 msgid "getxattrs"
27079 msgstr ""
27080
27081 # type: verbatim
27082 #. type: verbatim
27083 #: ../fish/guestfish-actions.pod:1488
27084 #, no-wrap
27085 msgid ""
27086 " getxattrs path\n"
27087 "\n"
27088 msgstr ""
27089
27090 # type: textblock
27091 #. type: textblock
27092 #: ../fish/guestfish-actions.pod:1496
27093 msgid "See also: L</lgetxattrs>, L<attr(5)>."
27094 msgstr ""
27095
27096 # type: =head2
27097 #. type: =head2
27098 #: ../fish/guestfish-actions.pod:1498
27099 msgid "glob-expand"
27100 msgstr ""
27101
27102 # type: verbatim
27103 #. type: verbatim
27104 #: ../fish/guestfish-actions.pod:1500
27105 #, no-wrap
27106 msgid ""
27107 " glob-expand pattern\n"
27108 "\n"
27109 msgstr ""
27110
27111 # type: =head2
27112 #. type: =head2
27113 #: ../fish/guestfish-actions.pod:1513
27114 msgid "grep"
27115 msgstr ""
27116
27117 # type: verbatim
27118 #. type: verbatim
27119 #: ../fish/guestfish-actions.pod:1515
27120 #, no-wrap
27121 msgid ""
27122 " grep regex path\n"
27123 "\n"
27124 msgstr ""
27125
27126 # type: =head2
27127 #. type: =head2
27128 #: ../fish/guestfish-actions.pod:1523
27129 msgid "grepi"
27130 msgstr ""
27131
27132 # type: verbatim
27133 #. type: verbatim
27134 #: ../fish/guestfish-actions.pod:1525
27135 #, no-wrap
27136 msgid ""
27137 " grepi regex path\n"
27138 "\n"
27139 msgstr ""
27140
27141 # type: =head2
27142 #. type: =head2
27143 #: ../fish/guestfish-actions.pod:1533
27144 msgid "grub-install"
27145 msgstr ""
27146
27147 # type: verbatim
27148 #. type: verbatim
27149 #: ../fish/guestfish-actions.pod:1535
27150 #, no-wrap
27151 msgid ""
27152 " grub-install root device\n"
27153 "\n"
27154 msgstr ""
27155
27156 # type: =head2
27157 #. type: =head2
27158 #: ../fish/guestfish-actions.pod:1551
27159 msgid "head"
27160 msgstr ""
27161
27162 # type: verbatim
27163 #. type: verbatim
27164 #: ../fish/guestfish-actions.pod:1553
27165 #, no-wrap
27166 msgid ""
27167 " head path\n"
27168 "\n"
27169 msgstr ""
27170
27171 # type: =head2
27172 #. type: =head2
27173 #: ../fish/guestfish-actions.pod:1561
27174 msgid "head-n"
27175 msgstr ""
27176
27177 # type: verbatim
27178 #. type: verbatim
27179 #: ../fish/guestfish-actions.pod:1563
27180 #, no-wrap
27181 msgid ""
27182 " head-n nrlines path\n"
27183 "\n"
27184 msgstr ""
27185
27186 # type: =head2
27187 #. type: =head2
27188 #: ../fish/guestfish-actions.pod:1576
27189 msgid "hexdump"
27190 msgstr ""
27191
27192 # type: verbatim
27193 #. type: verbatim
27194 #: ../fish/guestfish-actions.pod:1578
27195 #, no-wrap
27196 msgid ""
27197 " hexdump path\n"
27198 "\n"
27199 msgstr ""
27200
27201 # type: =head2
27202 #. type: =head2
27203 #: ../fish/guestfish-actions.pod:1586
27204 msgid "initrd-cat"
27205 msgstr ""
27206
27207 # type: verbatim
27208 #. type: verbatim
27209 #: ../fish/guestfish-actions.pod:1588
27210 #, no-wrap
27211 msgid ""
27212 " initrd-cat initrdpath filename\n"
27213 "\n"
27214 msgstr ""
27215
27216 # type: textblock
27217 #. type: textblock
27218 #: ../fish/guestfish-actions.pod:1600
27219 msgid "See also L</initrd-list>."
27220 msgstr ""
27221
27222 # type: =head2
27223 #. type: =head2
27224 #: ../fish/guestfish-actions.pod:1605
27225 msgid "initrd-list"
27226 msgstr ""
27227
27228 # type: verbatim
27229 #. type: verbatim
27230 #: ../fish/guestfish-actions.pod:1607
27231 #, no-wrap
27232 msgid ""
27233 " initrd-list path\n"
27234 "\n"
27235 msgstr ""
27236
27237 # type: =head2
27238 #. type: =head2
27239 #: ../fish/guestfish-actions.pod:1619
27240 msgid "inotify-add-watch"
27241 msgstr ""
27242
27243 # type: verbatim
27244 #. type: verbatim
27245 #: ../fish/guestfish-actions.pod:1621
27246 #, no-wrap
27247 msgid ""
27248 " inotify-add-watch path mask\n"
27249 "\n"
27250 msgstr ""
27251
27252 # type: =head2
27253 #. type: =head2
27254 #: ../fish/guestfish-actions.pod:1633
27255 msgid "inotify-close"
27256 msgstr ""
27257
27258 # type: verbatim
27259 #. type: verbatim
27260 #: ../fish/guestfish-actions.pod:1635
27261 #, no-wrap
27262 msgid ""
27263 " inotify-close\n"
27264 "\n"
27265 msgstr ""
27266
27267 # type: =head2
27268 #. type: =head2
27269 #: ../fish/guestfish-actions.pod:1641
27270 msgid "inotify-files"
27271 msgstr ""
27272
27273 # type: verbatim
27274 #. type: verbatim
27275 #: ../fish/guestfish-actions.pod:1643
27276 #, no-wrap
27277 msgid ""
27278 " inotify-files\n"
27279 "\n"
27280 msgstr ""
27281
27282 # type: textblock
27283 #. type: textblock
27284 #: ../fish/guestfish-actions.pod:1645
27285 msgid ""
27286 "This function is a helpful wrapper around L</inotify-read> which just "
27287 "returns a list of pathnames of objects that were touched.  The returned "
27288 "pathnames are sorted and deduplicated."
27289 msgstr ""
27290
27291 # type: =head2
27292 #. type: =head2
27293 #: ../fish/guestfish-actions.pod:1649
27294 msgid "inotify-init"
27295 msgstr ""
27296
27297 # type: verbatim
27298 #. type: verbatim
27299 #: ../fish/guestfish-actions.pod:1651
27300 #, no-wrap
27301 msgid ""
27302 " inotify-init maxevents\n"
27303 "\n"
27304 msgstr ""
27305
27306 # type: textblock
27307 #. type: textblock
27308 #: ../fish/guestfish-actions.pod:1657
27309 msgid ""
27310 "C<maxevents> is the maximum number of events which will be queued up between "
27311 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
27312 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
27313 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
27314 "but records the fact that it threw them away by setting a flag "
27315 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
27316 msgstr ""
27317
27318 # type: textblock
27319 #. type: textblock
27320 #: ../fish/guestfish-actions.pod:1667
27321 msgid ""
27322 "Before any events are generated, you have to add some watches to the "
27323 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
27324 "L</inotify-watch-all>."
27325 msgstr ""
27326
27327 # type: textblock
27328 #. type: textblock
27329 #: ../fish/guestfish-actions.pod:1673
27330 msgid ""
27331 "Queued up events should be read periodically by calling L</inotify-read> (or "
27332 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
27333 "If you don't read the events out often enough then you risk the internal "
27334 "queue overflowing."
27335 msgstr ""
27336
27337 # type: textblock
27338 #. type: textblock
27339 #: ../fish/guestfish-actions.pod:1680
27340 msgid ""
27341 "The handle should be closed after use by calling L</inotify-close>.  This "
27342 "also removes any watches automatically."
27343 msgstr ""
27344
27345 # type: =head2
27346 #. type: =head2
27347 #: ../fish/guestfish-actions.pod:1689
27348 msgid "inotify-read"
27349 msgstr ""
27350
27351 # type: verbatim
27352 #. type: verbatim
27353 #: ../fish/guestfish-actions.pod:1691
27354 #, no-wrap
27355 msgid ""
27356 " inotify-read\n"
27357 "\n"
27358 msgstr ""
27359
27360 # type: =head2
27361 #. type: =head2
27362 #: ../fish/guestfish-actions.pod:1704
27363 msgid "inotify-rm-watch"
27364 msgstr ""
27365
27366 # type: verbatim
27367 #. type: verbatim
27368 #: ../fish/guestfish-actions.pod:1706
27369 #, no-wrap
27370 msgid ""
27371 " inotify-rm-watch wd\n"
27372 "\n"
27373 msgstr ""
27374
27375 # type: textblock
27376 #. type: textblock
27377 #: ../fish/guestfish-actions.pod:1708
27378 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
27379 msgstr ""
27380
27381 # type: =head2
27382 #. type: =head2
27383 #: ../fish/guestfish-actions.pod:1711
27384 msgid "inspect-get-arch"
27385 msgstr ""
27386
27387 # type: verbatim
27388 #. type: verbatim
27389 #: ../fish/guestfish-actions.pod:1713
27390 #, no-wrap
27391 msgid ""
27392 " inspect-get-arch root\n"
27393 "\n"
27394 msgstr ""
27395
27396 # type: textblock
27397 #. type: textblock
27398 #: ../fish/guestfish-actions.pod:1715
27399 msgid ""
27400 "This returns the architecture of the inspected operating system.  The "
27401 "possible return values are listed under L</file-architecture>."
27402 msgstr ""
27403
27404 # type: =head2
27405 #. type: =head2
27406 #: ../fish/guestfish-actions.pod:1724
27407 msgid "inspect-get-distro"
27408 msgstr ""
27409
27410 # type: verbatim
27411 #. type: verbatim
27412 #: ../fish/guestfish-actions.pod:1726
27413 #, no-wrap
27414 msgid ""
27415 " inspect-get-distro root\n"
27416 "\n"
27417 msgstr ""
27418
27419 #. type: =head2
27420 #: ../fish/guestfish-actions.pod:1807
27421 msgid "inspect-get-drive-mappings"
27422 msgstr ""
27423
27424 #. type: verbatim
27425 #: ../fish/guestfish-actions.pod:1809
27426 #, no-wrap
27427 msgid ""
27428 " inspect-get-drive-mappings root\n"
27429 "\n"
27430 msgstr ""
27431
27432 #. type: textblock
27433 #: ../fish/guestfish-actions.pod:1836
27434 msgid ""
27435 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
27436 "get-mountpoints>, L</inspect-get-filesystems>."
27437 msgstr ""
27438
27439 # type: =head2
27440 #. type: =head2
27441 #: ../fish/guestfish-actions.pod:1840
27442 msgid "inspect-get-filesystems"
27443 msgstr ""
27444
27445 # type: verbatim
27446 #. type: verbatim
27447 #: ../fish/guestfish-actions.pod:1842
27448 #, no-wrap
27449 msgid ""
27450 " inspect-get-filesystems root\n"
27451 "\n"
27452 msgstr ""
27453
27454 # type: textblock
27455 #. type: textblock
27456 #: ../fish/guestfish-actions.pod:1852
27457 msgid ""
27458 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
27459 "get-mountpoints>."
27460 msgstr ""
27461
27462 #. type: =head2
27463 #: ../fish/guestfish-actions.pod:1855
27464 msgid "inspect-get-format"
27465 msgstr ""
27466
27467 #. type: verbatim
27468 #: ../fish/guestfish-actions.pod:1857
27469 #, no-wrap
27470 msgid ""
27471 " inspect-get-format root\n"
27472 "\n"
27473 msgstr ""
27474
27475 # type: =head2
27476 #. type: =head2
27477 #: ../fish/guestfish-actions.pod:1886
27478 msgid "inspect-get-hostname"
27479 msgstr ""
27480
27481 # type: verbatim
27482 #. type: verbatim
27483 #: ../fish/guestfish-actions.pod:1888
27484 #, no-wrap
27485 msgid ""
27486 " inspect-get-hostname root\n"
27487 "\n"
27488 msgstr ""
27489
27490 #. type: =head2
27491 #: ../fish/guestfish-actions.pod:1898
27492 msgid "inspect-get-icon"
27493 msgstr ""
27494
27495 #. type: verbatim
27496 #: ../fish/guestfish-actions.pod:1900
27497 #, no-wrap
27498 msgid ""
27499 " inspect-get-icon root [favicon:..] [highquality:..]\n"
27500 "\n"
27501 msgstr ""
27502
27503 # type: =head2
27504 #. type: =head2
27505 #: ../fish/guestfish-actions.pod:1964
27506 msgid "inspect-get-major-version"
27507 msgstr ""
27508
27509 # type: verbatim
27510 #. type: verbatim
27511 #: ../fish/guestfish-actions.pod:1966
27512 #, no-wrap
27513 msgid ""
27514 " inspect-get-major-version root\n"
27515 "\n"
27516 msgstr ""
27517
27518 # type: =head2
27519 #. type: =head2
27520 #: ../fish/guestfish-actions.pod:1982
27521 msgid "inspect-get-minor-version"
27522 msgstr ""
27523
27524 # type: verbatim
27525 #. type: verbatim
27526 #: ../fish/guestfish-actions.pod:1984
27527 #, no-wrap
27528 msgid ""
27529 " inspect-get-minor-version root\n"
27530 "\n"
27531 msgstr ""
27532
27533 # type: textblock
27534 #. type: textblock
27535 #: ../fish/guestfish-actions.pod:1991
27536 msgid ""
27537 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
27538 "get-major-version>."
27539 msgstr ""
27540
27541 # type: =head2
27542 #. type: =head2
27543 #: ../fish/guestfish-actions.pod:1994
27544 msgid "inspect-get-mountpoints"
27545 msgstr ""
27546
27547 # type: verbatim
27548 #. type: verbatim
27549 #: ../fish/guestfish-actions.pod:1996
27550 #, no-wrap
27551 msgid ""
27552 " inspect-get-mountpoints root\n"
27553 "\n"
27554 msgstr ""
27555
27556 #. type: textblock
27557 #: ../fish/guestfish-actions.pod:2015
27558 msgid ""
27559 "For operating systems like Windows which still use drive letters, this call "
27560 "will only return an entry for the first drive \"mounted on\" C</>.  For "
27561 "information about the mapping of drive letters to partitions, see L</inspect-"
27562 "get-drive-mappings>."
27563 msgstr ""
27564
27565 # type: textblock
27566 #. type: textblock
27567 #: ../fish/guestfish-actions.pod:2021
27568 msgid ""
27569 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
27570 "get-filesystems>."
27571 msgstr ""
27572
27573 # type: =head2
27574 #. type: =head2
27575 #: ../fish/guestfish-actions.pod:2024
27576 msgid "inspect-get-package-format"
27577 msgstr ""
27578
27579 # type: verbatim
27580 #. type: verbatim
27581 #: ../fish/guestfish-actions.pod:2026
27582 #, no-wrap
27583 msgid ""
27584 " inspect-get-package-format root\n"
27585 "\n"
27586 msgstr ""
27587
27588 # type: textblock
27589 #. type: textblock
27590 #: ../fish/guestfish-actions.pod:2028
27591 msgid ""
27592 "This function and L</inspect-get-package-management> return the package "
27593 "format and package management tool used by the inspected operating system.  "
27594 "For example for Fedora these functions would return C<rpm> (package format) "
27595 "and C<yum> (package management)."
27596 msgstr ""
27597
27598 # type: =head2
27599 #. type: =head2
27600 #: ../fish/guestfish-actions.pod:2043
27601 msgid "inspect-get-package-management"
27602 msgstr ""
27603
27604 # type: verbatim
27605 #. type: verbatim
27606 #: ../fish/guestfish-actions.pod:2045
27607 #, no-wrap
27608 msgid ""
27609 " inspect-get-package-management root\n"
27610 "\n"
27611 msgstr ""
27612
27613 # type: textblock
27614 #. type: textblock
27615 #: ../fish/guestfish-actions.pod:2047
27616 msgid ""
27617 "L</inspect-get-package-format> and this function return the package format "
27618 "and package management tool used by the inspected operating system.  For "
27619 "example for Fedora these functions would return C<rpm> (package format) and "
27620 "C<yum> (package management)."
27621 msgstr ""
27622
27623 # type: =head2
27624 #. type: =head2
27625 #: ../fish/guestfish-actions.pod:2064
27626 msgid "inspect-get-product-name"
27627 msgstr ""
27628
27629 # type: verbatim
27630 #. type: verbatim
27631 #: ../fish/guestfish-actions.pod:2066
27632 #, no-wrap
27633 msgid ""
27634 " inspect-get-product-name root\n"
27635 "\n"
27636 msgstr ""
27637
27638 #. type: =head2
27639 #: ../fish/guestfish-actions.pod:2078
27640 msgid "inspect-get-product-variant"
27641 msgstr ""
27642
27643 #. type: verbatim
27644 #: ../fish/guestfish-actions.pod:2080
27645 #, no-wrap
27646 msgid ""
27647 " inspect-get-product-variant root\n"
27648 "\n"
27649 msgstr ""
27650
27651 #. type: textblock
27652 #: ../fish/guestfish-actions.pod:2101
27653 msgid ""
27654 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
27655 "get-product-name>, L</inspect-get-major-version>."
27656 msgstr ""
27657
27658 # type: =head2
27659 #. type: =head2
27660 #: ../fish/guestfish-actions.pod:2105
27661 msgid "inspect-get-roots"
27662 msgstr ""
27663
27664 # type: verbatim
27665 #. type: verbatim
27666 #: ../fish/guestfish-actions.pod:2107
27667 #, no-wrap
27668 msgid ""
27669 " inspect-get-roots\n"
27670 "\n"
27671 msgstr ""
27672
27673 # type: textblock
27674 #. type: textblock
27675 #: ../fish/guestfish-actions.pod:2109
27676 msgid ""
27677 "This function is a convenient way to get the list of root devices, as "
27678 "returned from a previous call to L</inspect-os>, but without redoing the "
27679 "whole inspection process."
27680 msgstr ""
27681
27682 # type: textblock
27683 #. type: textblock
27684 #: ../fish/guestfish-actions.pod:2113
27685 msgid ""
27686 "This returns an empty list if either no root devices were found or the "
27687 "caller has not called L</inspect-os>."
27688 msgstr ""
27689
27690 # type: =head2
27691 #. type: =head2
27692 #: ../fish/guestfish-actions.pod:2118
27693 msgid "inspect-get-type"
27694 msgstr ""
27695
27696 # type: verbatim
27697 #. type: verbatim
27698 #: ../fish/guestfish-actions.pod:2120
27699 #, no-wrap
27700 msgid ""
27701 " inspect-get-type root\n"
27702 "\n"
27703 msgstr ""
27704
27705 #. type: =head2
27706 #: ../fish/guestfish-actions.pod:2150
27707 msgid "inspect-get-windows-current-control-set"
27708 msgstr ""
27709
27710 #. type: verbatim
27711 #: ../fish/guestfish-actions.pod:2152
27712 #, no-wrap
27713 msgid ""
27714 " inspect-get-windows-current-control-set root\n"
27715 "\n"
27716 msgstr ""
27717
27718 # type: =head2
27719 #. type: =head2
27720 #: ../fish/guestfish-actions.pod:2163
27721 msgid "inspect-get-windows-systemroot"
27722 msgstr ""
27723
27724 # type: verbatim
27725 #. type: verbatim
27726 #: ../fish/guestfish-actions.pod:2165
27727 #, no-wrap
27728 msgid ""
27729 " inspect-get-windows-systemroot root\n"
27730 "\n"
27731 msgstr ""
27732
27733 #. type: =head2
27734 #: ../fish/guestfish-actions.pod:2176
27735 msgid "inspect-is-live"
27736 msgstr ""
27737
27738 #. type: verbatim
27739 #: ../fish/guestfish-actions.pod:2178
27740 #, no-wrap
27741 msgid ""
27742 " inspect-is-live root\n"
27743 "\n"
27744 msgstr ""
27745
27746 #. type: textblock
27747 #: ../fish/guestfish-actions.pod:2180
27748 msgid ""
27749 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
27750 "then this returns true if a live image was detected on the disk."
27751 msgstr ""
27752
27753 #. type: =head2
27754 #: ../fish/guestfish-actions.pod:2186
27755 msgid "inspect-is-multipart"
27756 msgstr ""
27757
27758 #. type: verbatim
27759 #: ../fish/guestfish-actions.pod:2188
27760 #, no-wrap
27761 msgid ""
27762 " inspect-is-multipart root\n"
27763 "\n"
27764 msgstr ""
27765
27766 #. type: textblock
27767 #: ../fish/guestfish-actions.pod:2190
27768 msgid ""
27769 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
27770 "then this returns true if the disk is part of a set."
27771 msgstr ""
27772
27773 #. type: =head2
27774 #: ../fish/guestfish-actions.pod:2196
27775 msgid "inspect-is-netinst"
27776 msgstr ""
27777
27778 #. type: verbatim
27779 #: ../fish/guestfish-actions.pod:2198
27780 #, no-wrap
27781 msgid ""
27782 " inspect-is-netinst root\n"
27783 "\n"
27784 msgstr ""
27785
27786 #. type: textblock
27787 #: ../fish/guestfish-actions.pod:2200
27788 msgid ""
27789 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
27790 "then this returns true if the disk is a network installer, ie. not a self-"
27791 "contained install CD but one which is likely to require network access to "
27792 "complete the install."
27793 msgstr ""
27794
27795 # type: =head2
27796 #. type: =head2
27797 #: ../fish/guestfish-actions.pod:2208
27798 msgid "inspect-list-applications"
27799 msgstr ""
27800
27801 # type: verbatim
27802 #. type: verbatim
27803 #: ../fish/guestfish-actions.pod:2210
27804 #, no-wrap
27805 msgid ""
27806 " inspect-list-applications root\n"
27807 "\n"
27808 msgstr ""
27809
27810 # type: textblock
27811 #. type: textblock
27812 #: ../fish/guestfish-actions.pod:2214
27813 msgid ""
27814 "I<Note:> This call works differently from other parts of the inspection "
27815 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
27816 "then mount up the disks, before calling this.  Listing applications is a "
27817 "significantly more difficult operation which requires access to the full "
27818 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
27819 "are just returning data cached in the libguestfs handle, this call actually "
27820 "reads parts of the mounted filesystems during the call."
27821 msgstr ""
27822
27823 # type: =head2
27824 #. type: =head2
27825 #: ../fish/guestfish-actions.pod:2304
27826 msgid "inspect-os"
27827 msgstr ""
27828
27829 # type: verbatim
27830 #. type: verbatim
27831 #: ../fish/guestfish-actions.pod:2306
27832 #, no-wrap
27833 msgid ""
27834 " inspect-os\n"
27835 "\n"
27836 msgstr ""
27837
27838 # type: textblock
27839 #. type: textblock
27840 #: ../fish/guestfish-actions.pod:2321
27841 msgid ""
27842 "You can pass the root string(s) returned to other L</inspect-get-*> "
27843 "functions in order to query further information about each operating system, "
27844 "such as the name and version."
27845 msgstr ""
27846
27847 # type: textblock
27848 #. type: textblock
27849 #: ../fish/guestfish-actions.pod:2326
27850 msgid ""
27851 "This function uses other libguestfs features such as L</mount-ro> and L</"
27852 "umount-all> in order to mount and unmount filesystems and look at the "
27853 "contents.  This should be called with no disks currently mounted.  The "
27854 "function may also use Augeas, so any existing Augeas handle will be closed."
27855 msgstr ""
27856
27857 # type: textblock
27858 #. type: textblock
27859 #: ../fish/guestfish-actions.pod:2338 ../fish/guestfish-actions.pod:2536
27860 #: ../fish/guestfish-actions.pod:2595
27861 msgid "See also L</list-filesystems>."
27862 msgstr ""
27863
27864 # type: =head2
27865 #. type: =head2
27866 #: ../fish/guestfish-actions.pod:2340
27867 msgid "is-blockdev"
27868 msgstr ""
27869
27870 # type: verbatim
27871 #. type: verbatim
27872 #: ../fish/guestfish-actions.pod:2342
27873 #, no-wrap
27874 msgid ""
27875 " is-blockdev path\n"
27876 "\n"
27877 msgstr ""
27878
27879 # type: textblock
27880 #. type: textblock
27881 #: ../fish/guestfish-actions.pod:2347 ../fish/guestfish-actions.pod:2365
27882 #: ../fish/guestfish-actions.pod:2384 ../fish/guestfish-actions.pod:2393
27883 #: ../fish/guestfish-actions.pod:2403 ../fish/guestfish-actions.pod:2437
27884 #: ../fish/guestfish-actions.pod:2446
27885 msgid "See also L</stat>."
27886 msgstr ""
27887
27888 # type: =head2
27889 #. type: =head2
27890 #: ../fish/guestfish-actions.pod:2349
27891 msgid "is-busy"
27892 msgstr ""
27893
27894 # type: verbatim
27895 #. type: verbatim
27896 #: ../fish/guestfish-actions.pod:2351
27897 #, no-wrap
27898 msgid ""
27899 " is-busy\n"
27900 "\n"
27901 msgstr ""
27902
27903 # type: =head2
27904 #. type: =head2
27905 #: ../fish/guestfish-actions.pod:2358
27906 msgid "is-chardev"
27907 msgstr ""
27908
27909 # type: verbatim
27910 #. type: verbatim
27911 #: ../fish/guestfish-actions.pod:2360
27912 #, no-wrap
27913 msgid ""
27914 " is-chardev path\n"
27915 "\n"
27916 msgstr ""
27917
27918 # type: =head2
27919 #. type: =head2
27920 #: ../fish/guestfish-actions.pod:2367
27921 msgid "is-config"
27922 msgstr ""
27923
27924 # type: verbatim
27925 #. type: verbatim
27926 #: ../fish/guestfish-actions.pod:2369
27927 #, no-wrap
27928 msgid ""
27929 " is-config\n"
27930 "\n"
27931 msgstr ""
27932
27933 # type: =head2
27934 #. type: =head2
27935 #: ../fish/guestfish-actions.pod:2376
27936 msgid "is-dir"
27937 msgstr ""
27938
27939 # type: verbatim
27940 #. type: verbatim
27941 #: ../fish/guestfish-actions.pod:2378
27942 #, no-wrap
27943 msgid ""
27944 " is-dir path\n"
27945 "\n"
27946 msgstr ""
27947
27948 # type: =head2
27949 #. type: =head2
27950 #: ../fish/guestfish-actions.pod:2386
27951 msgid "is-fifo"
27952 msgstr ""
27953
27954 # type: verbatim
27955 #. type: verbatim
27956 #: ../fish/guestfish-actions.pod:2388
27957 #, no-wrap
27958 msgid ""
27959 " is-fifo path\n"
27960 "\n"
27961 msgstr ""
27962
27963 # type: =head2
27964 #. type: =head2
27965 #: ../fish/guestfish-actions.pod:2395
27966 msgid "is-file"
27967 msgstr ""
27968
27969 # type: verbatim
27970 #. type: verbatim
27971 #: ../fish/guestfish-actions.pod:2397
27972 #, no-wrap
27973 msgid ""
27974 " is-file path\n"
27975 "\n"
27976 msgstr ""
27977
27978 # type: =head2
27979 #. type: =head2
27980 #: ../fish/guestfish-actions.pod:2405
27981 msgid "is-launching"
27982 msgstr ""
27983
27984 # type: verbatim
27985 #. type: verbatim
27986 #: ../fish/guestfish-actions.pod:2407
27987 #, no-wrap
27988 msgid ""
27989 " is-launching\n"
27990 "\n"
27991 msgstr ""
27992
27993 # type: =head2
27994 #. type: =head2
27995 #: ../fish/guestfish-actions.pod:2414
27996 msgid "is-lv"
27997 msgstr ""
27998
27999 # type: verbatim
28000 #. type: verbatim
28001 #: ../fish/guestfish-actions.pod:2416
28002 #, no-wrap
28003 msgid ""
28004 " is-lv device\n"
28005 "\n"
28006 msgstr ""
28007
28008 # type: =head2
28009 #. type: =head2
28010 #: ../fish/guestfish-actions.pod:2421
28011 msgid "is-ready"
28012 msgstr ""
28013
28014 # type: verbatim
28015 #. type: verbatim
28016 #: ../fish/guestfish-actions.pod:2423
28017 #, no-wrap
28018 msgid ""
28019 " is-ready\n"
28020 "\n"
28021 msgstr ""
28022
28023 # type: =head2
28024 #. type: =head2
28025 #: ../fish/guestfish-actions.pod:2430
28026 msgid "is-socket"
28027 msgstr ""
28028
28029 # type: verbatim
28030 #. type: verbatim
28031 #: ../fish/guestfish-actions.pod:2432
28032 #, no-wrap
28033 msgid ""
28034 " is-socket path\n"
28035 "\n"
28036 msgstr ""
28037
28038 # type: =head2
28039 #. type: =head2
28040 #: ../fish/guestfish-actions.pod:2439
28041 msgid "is-symlink"
28042 msgstr ""
28043
28044 # type: verbatim
28045 #. type: verbatim
28046 #: ../fish/guestfish-actions.pod:2441
28047 #, no-wrap
28048 msgid ""
28049 " is-symlink path\n"
28050 "\n"
28051 msgstr ""
28052
28053 #. type: =head2
28054 #: ../fish/guestfish-actions.pod:2448
28055 msgid "is-zero"
28056 msgstr ""
28057
28058 #. type: verbatim
28059 #: ../fish/guestfish-actions.pod:2450
28060 #, no-wrap
28061 msgid ""
28062 " is-zero path\n"
28063 "\n"
28064 msgstr ""
28065
28066 #. type: =head2
28067 #: ../fish/guestfish-actions.pod:2455
28068 msgid "is-zero-device"
28069 msgstr ""
28070
28071 #. type: verbatim
28072 #: ../fish/guestfish-actions.pod:2457
28073 #, no-wrap
28074 msgid ""
28075 " is-zero-device device\n"
28076 "\n"
28077 msgstr ""
28078
28079 # type: =head2
28080 #. type: =head2
28081 #: ../fish/guestfish-actions.pod:2463
28082 msgid "kill-subprocess"
28083 msgstr ""
28084
28085 # type: verbatim
28086 #. type: verbatim
28087 #: ../fish/guestfish-actions.pod:2465
28088 #, no-wrap
28089 msgid ""
28090 " kill-subprocess\n"
28091 "\n"
28092 msgstr ""
28093
28094 # type: =head2
28095 #. type: =head2
28096 #: ../fish/guestfish-actions.pod:2469
28097 msgid "launch"
28098 msgstr ""
28099
28100 # type: =head2
28101 #. type: =head2
28102 #: ../fish/guestfish-actions.pod:2471
28103 msgid "run"
28104 msgstr ""
28105
28106 # type: verbatim
28107 #. type: verbatim
28108 #: ../fish/guestfish-actions.pod:2473
28109 #, no-wrap
28110 msgid ""
28111 " launch\n"
28112 "\n"
28113 msgstr ""
28114
28115 # type: =head2
28116 #. type: =head2
28117 #: ../fish/guestfish-actions.pod:2481
28118 msgid "lchown"
28119 msgstr ""
28120
28121 # type: verbatim
28122 #. type: verbatim
28123 #: ../fish/guestfish-actions.pod:2483
28124 #, no-wrap
28125 msgid ""
28126 " lchown owner group path\n"
28127 "\n"
28128 msgstr ""
28129
28130 # type: textblock
28131 #. type: textblock
28132 #: ../fish/guestfish-actions.pod:2485
28133 msgid ""
28134 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
28135 "chown> but if C<path> is a symlink then the link itself is changed, not the "
28136 "target."
28137 msgstr ""
28138
28139 # type: =head2
28140 #. type: =head2
28141 #: ../fish/guestfish-actions.pod:2493
28142 msgid "lgetxattr"
28143 msgstr ""
28144
28145 # type: verbatim
28146 #. type: verbatim
28147 #: ../fish/guestfish-actions.pod:2495
28148 #, no-wrap
28149 msgid ""
28150 " lgetxattr path name\n"
28151 "\n"
28152 msgstr ""
28153
28154 # type: textblock
28155 #. type: textblock
28156 #: ../fish/guestfish-actions.pod:2511
28157 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
28158 msgstr ""
28159
28160 # type: =head2
28161 #. type: =head2
28162 #: ../fish/guestfish-actions.pod:2513
28163 msgid "lgetxattrs"
28164 msgstr ""
28165
28166 # type: verbatim
28167 #. type: verbatim
28168 #: ../fish/guestfish-actions.pod:2515
28169 #, no-wrap
28170 msgid ""
28171 " lgetxattrs path\n"
28172 "\n"
28173 msgstr ""
28174
28175 # type: textblock
28176 #. type: textblock
28177 #: ../fish/guestfish-actions.pod:2517
28178 msgid ""
28179 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
28180 "it returns the extended attributes of the link itself."
28181 msgstr ""
28182
28183 #. type: =head2
28184 #: ../fish/guestfish-actions.pod:2521
28185 msgid "list-9p"
28186 msgstr ""
28187
28188 #. type: verbatim
28189 #: ../fish/guestfish-actions.pod:2523
28190 #, no-wrap
28191 msgid ""
28192 " list-9p\n"
28193 "\n"
28194 msgstr ""
28195
28196 # type: =head2
28197 #. type: =head2
28198 #: ../fish/guestfish-actions.pod:2528
28199 msgid "list-devices"
28200 msgstr ""
28201
28202 # type: verbatim
28203 #. type: verbatim
28204 #: ../fish/guestfish-actions.pod:2530
28205 #, no-wrap
28206 msgid ""
28207 " list-devices\n"
28208 "\n"
28209 msgstr ""
28210
28211 #. type: =head2
28212 #: ../fish/guestfish-actions.pod:2538
28213 msgid "list-dm-devices"
28214 msgstr ""
28215
28216 #. type: verbatim
28217 #: ../fish/guestfish-actions.pod:2540
28218 #, no-wrap
28219 msgid ""
28220 " list-dm-devices\n"
28221 "\n"
28222 msgstr ""
28223
28224 #. type: textblock
28225 #: ../fish/guestfish-actions.pod:2544
28226 msgid ""
28227 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
28228 "previous call to L</luks-open>."
28229 msgstr ""
28230
28231 #. type: textblock
28232 #: ../fish/guestfish-actions.pod:2547
28233 msgid ""
28234 "Device mapper devices which correspond to logical volumes are I<not> "
28235 "returned in this list.  Call L</lvs> if you want to list logical volumes."
28236 msgstr ""
28237
28238 # type: =head2
28239 #. type: =head2
28240 #: ../fish/guestfish-actions.pod:2551
28241 msgid "list-filesystems"
28242 msgstr ""
28243
28244 # type: verbatim
28245 #. type: verbatim
28246 #: ../fish/guestfish-actions.pod:2553
28247 #, no-wrap
28248 msgid ""
28249 " list-filesystems\n"
28250 "\n"
28251 msgstr ""
28252
28253 # type: textblock
28254 #. type: textblock
28255 #: ../fish/guestfish-actions.pod:2572
28256 msgid ""
28257 "This command runs other libguestfs commands, which might include L</mount> "
28258 "and L</umount>, and therefore you should use this soon after launch and only "
28259 "when nothing is mounted."
28260 msgstr ""
28261
28262 # type: textblock
28263 #. type: textblock
28264 #: ../fish/guestfish-actions.pod:2576
28265 msgid ""
28266 "Not all of the filesystems returned will be mountable.  In particular, swap "
28267 "partitions are returned in the list.  Also this command does not check that "
28268 "each filesystem found is valid and mountable, and some filesystems might be "
28269 "mountable but require special options.  Filesystems may not all belong to a "
28270 "single logical operating system (use L</inspect-os> to look for OSes)."
28271 msgstr ""
28272
28273 # type: =head2
28274 #. type: =head2
28275 #: ../fish/guestfish-actions.pod:2584
28276 msgid "list-partitions"
28277 msgstr ""
28278
28279 # type: verbatim
28280 #. type: verbatim
28281 #: ../fish/guestfish-actions.pod:2586
28282 #, no-wrap
28283 msgid ""
28284 " list-partitions\n"
28285 "\n"
28286 msgstr ""
28287
28288 # type: textblock
28289 #. type: textblock
28290 #: ../fish/guestfish-actions.pod:2592
28291 msgid ""
28292 "This does not return logical volumes.  For that you will need to call L</"
28293 "lvs>."
28294 msgstr ""
28295
28296 # type: =head2
28297 #. type: =head2
28298 #: ../fish/guestfish-actions.pod:2597
28299 msgid "ll"
28300 msgstr ""
28301
28302 # type: verbatim
28303 #. type: verbatim
28304 #: ../fish/guestfish-actions.pod:2599
28305 #, no-wrap
28306 msgid ""
28307 " ll directory\n"
28308 "\n"
28309 msgstr ""
28310
28311 # type: =head2
28312 #. type: =head2
28313 #: ../fish/guestfish-actions.pod:2607
28314 msgid "ln"
28315 msgstr ""
28316
28317 # type: verbatim
28318 #. type: verbatim
28319 #: ../fish/guestfish-actions.pod:2609
28320 #, no-wrap
28321 msgid ""
28322 " ln target linkname\n"
28323 "\n"
28324 msgstr ""
28325
28326 # type: =head2
28327 #. type: =head2
28328 #: ../fish/guestfish-actions.pod:2613
28329 msgid "ln-f"
28330 msgstr ""
28331
28332 # type: verbatim
28333 #. type: verbatim
28334 #: ../fish/guestfish-actions.pod:2615
28335 #, no-wrap
28336 msgid ""
28337 " ln-f target linkname\n"
28338 "\n"
28339 msgstr ""
28340
28341 # type: =head2
28342 #. type: =head2
28343 #: ../fish/guestfish-actions.pod:2620
28344 msgid "ln-s"
28345 msgstr ""
28346
28347 # type: verbatim
28348 #. type: verbatim
28349 #: ../fish/guestfish-actions.pod:2622
28350 #, no-wrap
28351 msgid ""
28352 " ln-s target linkname\n"
28353 "\n"
28354 msgstr ""
28355
28356 # type: =head2
28357 #. type: =head2
28358 #: ../fish/guestfish-actions.pod:2626
28359 msgid "ln-sf"
28360 msgstr ""
28361
28362 # type: verbatim
28363 #. type: verbatim
28364 #: ../fish/guestfish-actions.pod:2628
28365 #, no-wrap
28366 msgid ""
28367 " ln-sf target linkname\n"
28368 "\n"
28369 msgstr ""
28370
28371 # type: =head2
28372 #. type: =head2
28373 #: ../fish/guestfish-actions.pod:2633
28374 msgid "lremovexattr"
28375 msgstr ""
28376
28377 # type: verbatim
28378 #. type: verbatim
28379 #: ../fish/guestfish-actions.pod:2635
28380 #, no-wrap
28381 msgid ""
28382 " lremovexattr xattr path\n"
28383 "\n"
28384 msgstr ""
28385
28386 # type: textblock
28387 #. type: textblock
28388 #: ../fish/guestfish-actions.pod:2637
28389 msgid ""
28390 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
28391 "it removes an extended attribute of the link itself."
28392 msgstr ""
28393
28394 # type: =head2
28395 #. type: =head2
28396 #: ../fish/guestfish-actions.pod:2641
28397 msgid "ls"
28398 msgstr ""
28399
28400 # type: verbatim
28401 #. type: verbatim
28402 #: ../fish/guestfish-actions.pod:2643
28403 #, no-wrap
28404 msgid ""
28405 " ls directory\n"
28406 "\n"
28407 msgstr ""
28408
28409 # type: textblock
28410 #. type: textblock
28411 #: ../fish/guestfish-actions.pod:2649
28412 msgid ""
28413 "This command is mostly useful for interactive sessions.  Programs should "
28414 "probably use L</readdir> instead."
28415 msgstr ""
28416
28417 # type: =head2
28418 #. type: =head2
28419 #: ../fish/guestfish-actions.pod:2652
28420 msgid "lsetxattr"
28421 msgstr ""
28422
28423 # type: verbatim
28424 #. type: verbatim
28425 #: ../fish/guestfish-actions.pod:2654
28426 #, no-wrap
28427 msgid ""
28428 " lsetxattr xattr val vallen path\n"
28429 "\n"
28430 msgstr ""
28431
28432 # type: textblock
28433 #. type: textblock
28434 #: ../fish/guestfish-actions.pod:2656
28435 msgid ""
28436 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
28437 "sets an extended attribute of the link itself."
28438 msgstr ""
28439
28440 # type: =head2
28441 #. type: =head2
28442 #: ../fish/guestfish-actions.pod:2660
28443 msgid "lstat"
28444 msgstr ""
28445
28446 # type: verbatim
28447 #. type: verbatim
28448 #: ../fish/guestfish-actions.pod:2662
28449 #, no-wrap
28450 msgid ""
28451 " lstat path\n"
28452 "\n"
28453 msgstr ""
28454
28455 # type: textblock
28456 #. type: textblock
28457 #: ../fish/guestfish-actions.pod:2666
28458 msgid ""
28459 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
28460 "the link is stat-ed, not the file it refers to."
28461 msgstr ""
28462
28463 # type: =head2
28464 #. type: =head2
28465 #: ../fish/guestfish-actions.pod:2672
28466 msgid "lstatlist"
28467 msgstr ""
28468
28469 # type: verbatim
28470 #. type: verbatim
28471 #: ../fish/guestfish-actions.pod:2674
28472 #, no-wrap
28473 msgid ""
28474 " lstatlist path 'names ...'\n"
28475 "\n"
28476 msgstr ""
28477
28478 # type: textblock
28479 #. type: textblock
28480 #: ../fish/guestfish-actions.pod:2676
28481 msgid ""
28482 "This call allows you to perform the L</lstat> operation on multiple files, "
28483 "where all files are in the directory C<path>.  C<names> is the list of files "
28484 "from this directory."
28485 msgstr ""
28486
28487 # type: textblock
28488 #. type: textblock
28489 #: ../fish/guestfish-actions.pod:2685
28490 msgid ""
28491 "This call is intended for programs that want to efficiently list a directory "
28492 "contents without making many round-trips.  See also L</lxattrlist> for a "
28493 "similarly efficient call for getting extended attributes.  Very long "
28494 "directory listings might cause the protocol message size to be exceeded, "
28495 "causing this call to fail.  The caller must split up such requests into "
28496 "smaller groups of names."
28497 msgstr ""
28498
28499 # type: =head2
28500 #. type: =head2
28501 #: ../fish/guestfish-actions.pod:2693
28502 msgid "luks-add-key"
28503 msgstr ""
28504
28505 # type: verbatim
28506 #. type: verbatim
28507 #: ../fish/guestfish-actions.pod:2695
28508 #, no-wrap
28509 msgid ""
28510 " luks-add-key device keyslot\n"
28511 "\n"
28512 msgstr ""
28513
28514 # type: textblock
28515 #. type: textblock
28516 #: ../fish/guestfish-actions.pod:2702
28517 msgid ""
28518 "Note that if C<keyslot> already contains a key, then this command will "
28519 "fail.  You have to use L</luks-kill-slot> first to remove that key."
28520 msgstr ""
28521
28522 # type: textblock
28523 #. type: textblock
28524 #: ../fish/guestfish-actions.pod:2706 ../fish/guestfish-actions.pod:2728
28525 #: ../fish/guestfish-actions.pod:2741 ../fish/guestfish-actions.pod:2755
28526 #: ../fish/guestfish-actions.pod:2781 ../fish/guestfish-actions.pod:2791
28527 msgid ""
28528 "This command has one or more key or passphrase parameters.  Guestfish will "
28529 "prompt for these separately."
28530 msgstr ""
28531
28532 # type: =head2
28533 #. type: =head2
28534 #: ../fish/guestfish-actions.pod:2709
28535 msgid "luks-close"
28536 msgstr ""
28537
28538 # type: verbatim
28539 #. type: verbatim
28540 #: ../fish/guestfish-actions.pod:2711
28541 #, no-wrap
28542 msgid ""
28543 " luks-close device\n"
28544 "\n"
28545 msgstr ""
28546
28547 # type: textblock
28548 #. type: textblock
28549 #: ../fish/guestfish-actions.pod:2713
28550 msgid ""
28551 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
28552 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
28553 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
28554 "block device."
28555 msgstr ""
28556
28557 # type: =head2
28558 #. type: =head2
28559 #: ../fish/guestfish-actions.pod:2719
28560 msgid "luks-format"
28561 msgstr ""
28562
28563 # type: verbatim
28564 #. type: verbatim
28565 #: ../fish/guestfish-actions.pod:2721
28566 #, no-wrap
28567 msgid ""
28568 " luks-format device keyslot\n"
28569 "\n"
28570 msgstr ""
28571
28572 # type: =head2
28573 #. type: =head2
28574 #: ../fish/guestfish-actions.pod:2734
28575 msgid "luks-format-cipher"
28576 msgstr ""
28577
28578 # type: verbatim
28579 #. type: verbatim
28580 #: ../fish/guestfish-actions.pod:2736
28581 #, no-wrap
28582 msgid ""
28583 " luks-format-cipher device keyslot cipher\n"
28584 "\n"
28585 msgstr ""
28586
28587 # type: textblock
28588 #. type: textblock
28589 #: ../fish/guestfish-actions.pod:2738
28590 msgid ""
28591 "This command is the same as L</luks-format> but it also allows you to set "
28592 "the C<cipher> used."
28593 msgstr ""
28594
28595 # type: =head2
28596 #. type: =head2
28597 #: ../fish/guestfish-actions.pod:2747
28598 msgid "luks-kill-slot"
28599 msgstr ""
28600
28601 # type: verbatim
28602 #. type: verbatim
28603 #: ../fish/guestfish-actions.pod:2749
28604 #, no-wrap
28605 msgid ""
28606 " luks-kill-slot device keyslot\n"
28607 "\n"
28608 msgstr ""
28609
28610 # type: =head2
28611 #. type: =head2
28612 #: ../fish/guestfish-actions.pod:2758
28613 msgid "luks-open"
28614 msgstr ""
28615
28616 # type: verbatim
28617 #. type: verbatim
28618 #: ../fish/guestfish-actions.pod:2760
28619 #, no-wrap
28620 msgid ""
28621 " luks-open device mapname\n"
28622 "\n"
28623 msgstr ""
28624
28625 # type: textblock
28626 #. type: textblock
28627 #: ../fish/guestfish-actions.pod:2774
28628 msgid ""
28629 "If this block device contains LVM volume groups, then calling L</vgscan> "
28630 "followed by L</vg-activate-all> will make them visible."
28631 msgstr ""
28632
28633 #. type: textblock
28634 #: ../fish/guestfish-actions.pod:2778
28635 msgid "Use L</list-dm-devices> to list all device mapper devices."
28636 msgstr ""
28637
28638 # type: =head2
28639 #. type: =head2
28640 #: ../fish/guestfish-actions.pod:2784
28641 msgid "luks-open-ro"
28642 msgstr ""
28643
28644 # type: verbatim
28645 #. type: verbatim
28646 #: ../fish/guestfish-actions.pod:2786
28647 #, no-wrap
28648 msgid ""
28649 " luks-open-ro device mapname\n"
28650 "\n"
28651 msgstr ""
28652
28653 # type: textblock
28654 #. type: textblock
28655 #: ../fish/guestfish-actions.pod:2788
28656 msgid ""
28657 "This is the same as L</luks-open> except that a read-only mapping is created."
28658 msgstr ""
28659
28660 # type: =head2
28661 #. type: =head2
28662 #: ../fish/guestfish-actions.pod:2794
28663 msgid "lvcreate"
28664 msgstr ""
28665
28666 # type: verbatim
28667 #. type: verbatim
28668 #: ../fish/guestfish-actions.pod:2796
28669 #, no-wrap
28670 msgid ""
28671 " lvcreate logvol volgroup mbytes\n"
28672 "\n"
28673 msgstr ""
28674
28675 # type: =head2
28676 #. type: =head2
28677 #: ../fish/guestfish-actions.pod:2801
28678 msgid "lvm-canonical-lv-name"
28679 msgstr ""
28680
28681 # type: verbatim
28682 #. type: verbatim
28683 #: ../fish/guestfish-actions.pod:2803
28684 #, no-wrap
28685 msgid ""
28686 " lvm-canonical-lv-name lvname\n"
28687 "\n"
28688 msgstr ""
28689
28690 # type: textblock
28691 #. type: textblock
28692 #: ../fish/guestfish-actions.pod:2812
28693 msgid "See also L</is-lv>."
28694 msgstr ""
28695
28696 # type: =head2
28697 #. type: =head2
28698 #: ../fish/guestfish-actions.pod:2814
28699 msgid "lvm-clear-filter"
28700 msgstr ""
28701
28702 # type: verbatim
28703 #. type: verbatim
28704 #: ../fish/guestfish-actions.pod:2816
28705 #, no-wrap
28706 msgid ""
28707 " lvm-clear-filter\n"
28708 "\n"
28709 msgstr ""
28710
28711 # type: textblock
28712 #. type: textblock
28713 #: ../fish/guestfish-actions.pod:2818
28714 msgid ""
28715 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
28716 "block device."
28717 msgstr ""
28718
28719 # type: =head2
28720 #. type: =head2
28721 #: ../fish/guestfish-actions.pod:2824
28722 msgid "lvm-remove-all"
28723 msgstr ""
28724
28725 # type: verbatim
28726 #. type: verbatim
28727 #: ../fish/guestfish-actions.pod:2826
28728 #, no-wrap
28729 msgid ""
28730 " lvm-remove-all\n"
28731 "\n"
28732 msgstr ""
28733
28734 # type: =head2
28735 #. type: =head2
28736 #: ../fish/guestfish-actions.pod:2834
28737 msgid "lvm-set-filter"
28738 msgstr ""
28739
28740 # type: verbatim
28741 #. type: verbatim
28742 #: ../fish/guestfish-actions.pod:2836
28743 #, no-wrap
28744 msgid ""
28745 " lvm-set-filter 'devices ...'\n"
28746 "\n"
28747 msgstr ""
28748
28749 # type: =head2
28750 #. type: =head2
28751 #: ../fish/guestfish-actions.pod:2861
28752 msgid "lvremove"
28753 msgstr ""
28754
28755 # type: verbatim
28756 #. type: verbatim
28757 #: ../fish/guestfish-actions.pod:2863
28758 #, no-wrap
28759 msgid ""
28760 " lvremove device\n"
28761 "\n"
28762 msgstr ""
28763
28764 # type: =head2
28765 #. type: =head2
28766 #: ../fish/guestfish-actions.pod:2871
28767 msgid "lvrename"
28768 msgstr ""
28769
28770 # type: verbatim
28771 #. type: verbatim
28772 #: ../fish/guestfish-actions.pod:2873
28773 #, no-wrap
28774 msgid ""
28775 " lvrename logvol newlogvol\n"
28776 "\n"
28777 msgstr ""
28778
28779 # type: =head2
28780 #. type: =head2
28781 #: ../fish/guestfish-actions.pod:2877
28782 msgid "lvresize"
28783 msgstr ""
28784
28785 # type: verbatim
28786 #. type: verbatim
28787 #: ../fish/guestfish-actions.pod:2879
28788 #, no-wrap
28789 msgid ""
28790 " lvresize device mbytes\n"
28791 "\n"
28792 msgstr ""
28793
28794 # type: =head2
28795 #. type: =head2
28796 #: ../fish/guestfish-actions.pod:2885
28797 msgid "lvresize-free"
28798 msgstr ""
28799
28800 # type: verbatim
28801 #. type: verbatim
28802 #: ../fish/guestfish-actions.pod:2887
28803 #, no-wrap
28804 msgid ""
28805 " lvresize-free lv percent\n"
28806 "\n"
28807 msgstr ""
28808
28809 # type: =head2
28810 #. type: =head2
28811 #: ../fish/guestfish-actions.pod:2895
28812 msgid "lvs"
28813 msgstr ""
28814
28815 # type: verbatim
28816 #. type: verbatim
28817 #: ../fish/guestfish-actions.pod:2897
28818 #, no-wrap
28819 msgid ""
28820 " lvs\n"
28821 "\n"
28822 msgstr ""
28823
28824 # type: textblock
28825 #. type: textblock
28826 #: ../fish/guestfish-actions.pod:2905
28827 msgid "See also L</lvs-full>, L</list-filesystems>."
28828 msgstr ""
28829
28830 # type: =head2
28831 #. type: =head2
28832 #: ../fish/guestfish-actions.pod:2907
28833 msgid "lvs-full"
28834 msgstr ""
28835
28836 # type: verbatim
28837 #. type: verbatim
28838 #: ../fish/guestfish-actions.pod:2909
28839 #, no-wrap
28840 msgid ""
28841 " lvs-full\n"
28842 "\n"
28843 msgstr ""
28844
28845 # type: =head2
28846 #. type: =head2
28847 #: ../fish/guestfish-actions.pod:2914
28848 msgid "lvuuid"
28849 msgstr ""
28850
28851 # type: verbatim
28852 #. type: verbatim
28853 #: ../fish/guestfish-actions.pod:2916
28854 #, no-wrap
28855 msgid ""
28856 " lvuuid device\n"
28857 "\n"
28858 msgstr ""
28859
28860 # type: =head2
28861 #. type: =head2
28862 #: ../fish/guestfish-actions.pod:2920
28863 msgid "lxattrlist"
28864 msgstr ""
28865
28866 # type: verbatim
28867 #. type: verbatim
28868 #: ../fish/guestfish-actions.pod:2922
28869 #, no-wrap
28870 msgid ""
28871 " lxattrlist path 'names ...'\n"
28872 "\n"
28873 msgstr ""
28874
28875 # type: textblock
28876 #. type: textblock
28877 #: ../fish/guestfish-actions.pod:2938
28878 msgid ""
28879 "This call is intended for programs that want to efficiently list a directory "
28880 "contents without making many round-trips.  See also L</lstatlist> for a "
28881 "similarly efficient call for getting standard stats.  Very long directory "
28882 "listings might cause the protocol message size to be exceeded, causing this "
28883 "call to fail.  The caller must split up such requests into smaller groups of "
28884 "names."
28885 msgstr ""
28886
28887 # type: =head2
28888 #. type: =head2
28889 #: ../fish/guestfish-actions.pod:2946
28890 msgid "mkdir"
28891 msgstr ""
28892
28893 # type: verbatim
28894 #. type: verbatim
28895 #: ../fish/guestfish-actions.pod:2948
28896 #, no-wrap
28897 msgid ""
28898 " mkdir path\n"
28899 "\n"
28900 msgstr ""
28901
28902 # type: =head2
28903 #. type: =head2
28904 #: ../fish/guestfish-actions.pod:2952
28905 msgid "mkdir-mode"
28906 msgstr ""
28907
28908 # type: verbatim
28909 #. type: verbatim
28910 #: ../fish/guestfish-actions.pod:2954
28911 #, no-wrap
28912 msgid ""
28913 " mkdir-mode path mode\n"
28914 "\n"
28915 msgstr ""
28916
28917 # type: textblock
28918 #. type: textblock
28919 #: ../fish/guestfish-actions.pod:2963
28920 msgid "See also L</mkdir>, L</umask>"
28921 msgstr ""
28922
28923 # type: =head2
28924 #. type: =head2
28925 #: ../fish/guestfish-actions.pod:2965
28926 msgid "mkdir-p"
28927 msgstr ""
28928
28929 # type: verbatim
28930 #. type: verbatim
28931 #: ../fish/guestfish-actions.pod:2967
28932 #, no-wrap
28933 msgid ""
28934 " mkdir-p path\n"
28935 "\n"
28936 msgstr ""
28937
28938 # type: =head2
28939 #. type: =head2
28940 #: ../fish/guestfish-actions.pod:2972
28941 msgid "mkdtemp"
28942 msgstr ""
28943
28944 # type: verbatim
28945 #. type: verbatim
28946 #: ../fish/guestfish-actions.pod:2974
28947 #, no-wrap
28948 msgid ""
28949 " mkdtemp template\n"
28950 "\n"
28951 msgstr ""
28952
28953 # type: =head2
28954 #. type: =head2
28955 #: ../fish/guestfish-actions.pod:2995
28956 msgid "mke2fs-J"
28957 msgstr ""
28958
28959 # type: verbatim
28960 #. type: verbatim
28961 #: ../fish/guestfish-actions.pod:2997
28962 #, no-wrap
28963 msgid ""
28964 " mke2fs-J fstype blocksize device journal\n"
28965 "\n"
28966 msgstr ""
28967
28968 # type: textblock
28969 #. type: textblock
28970 #: ../fish/guestfish-actions.pod:3005
28971 msgid "See also L</mke2journal>."
28972 msgstr ""
28973
28974 # type: =head2
28975 #. type: =head2
28976 #: ../fish/guestfish-actions.pod:3007
28977 msgid "mke2fs-JL"
28978 msgstr ""
28979
28980 # type: verbatim
28981 #. type: verbatim
28982 #: ../fish/guestfish-actions.pod:3009
28983 #, no-wrap
28984 msgid ""
28985 " mke2fs-JL fstype blocksize device label\n"
28986 "\n"
28987 msgstr ""
28988
28989 # type: textblock
28990 #. type: textblock
28991 #: ../fish/guestfish-actions.pod:3014
28992 msgid "See also L</mke2journal-L>."
28993 msgstr ""
28994
28995 # type: =head2
28996 #. type: =head2
28997 #: ../fish/guestfish-actions.pod:3016
28998 msgid "mke2fs-JU"
28999 msgstr ""
29000
29001 # type: verbatim
29002 #. type: verbatim
29003 #: ../fish/guestfish-actions.pod:3018
29004 #, no-wrap
29005 msgid ""
29006 " mke2fs-JU fstype blocksize device uuid\n"
29007 "\n"
29008 msgstr ""
29009
29010 # type: textblock
29011 #. type: textblock
29012 #: ../fish/guestfish-actions.pod:3023
29013 msgid "See also L</mke2journal-U>."
29014 msgstr ""
29015
29016 # type: =head2
29017 #. type: =head2
29018 #: ../fish/guestfish-actions.pod:3025
29019 msgid "mke2journal"
29020 msgstr ""
29021
29022 # type: verbatim
29023 #. type: verbatim
29024 #: ../fish/guestfish-actions.pod:3027
29025 #, no-wrap
29026 msgid ""
29027 " mke2journal blocksize device\n"
29028 "\n"
29029 msgstr ""
29030
29031 # type: =head2
29032 #. type: =head2
29033 #: ../fish/guestfish-actions.pod:3034
29034 msgid "mke2journal-L"
29035 msgstr ""
29036
29037 # type: verbatim
29038 #. type: verbatim
29039 #: ../fish/guestfish-actions.pod:3036
29040 #, no-wrap
29041 msgid ""
29042 " mke2journal-L blocksize label device\n"
29043 "\n"
29044 msgstr ""
29045
29046 # type: =head2
29047 #. type: =head2
29048 #: ../fish/guestfish-actions.pod:3040
29049 msgid "mke2journal-U"
29050 msgstr ""
29051
29052 # type: verbatim
29053 #. type: verbatim
29054 #: ../fish/guestfish-actions.pod:3042
29055 #, no-wrap
29056 msgid ""
29057 " mke2journal-U blocksize uuid device\n"
29058 "\n"
29059 msgstr ""
29060
29061 # type: =head2
29062 #. type: =head2
29063 #: ../fish/guestfish-actions.pod:3046
29064 msgid "mkfifo"
29065 msgstr ""
29066
29067 # type: verbatim
29068 #. type: verbatim
29069 #: ../fish/guestfish-actions.pod:3048
29070 #, no-wrap
29071 msgid ""
29072 " mkfifo mode path\n"
29073 "\n"
29074 msgstr ""
29075
29076 # type: textblock
29077 #. type: textblock
29078 #: ../fish/guestfish-actions.pod:3050
29079 msgid ""
29080 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
29081 "is just a convenient wrapper around L</mknod>."
29082 msgstr ""
29083
29084 # type: =head2
29085 #. type: =head2
29086 #: ../fish/guestfish-actions.pod:3056
29087 msgid "mkfs"
29088 msgstr ""
29089
29090 # type: verbatim
29091 #. type: verbatim
29092 #: ../fish/guestfish-actions.pod:3058
29093 #, no-wrap
29094 msgid ""
29095 " mkfs fstype device\n"
29096 "\n"
29097 msgstr ""
29098
29099 # type: =head2
29100 #. type: =head2
29101 #: ../fish/guestfish-actions.pod:3064
29102 msgid "mkfs-b"
29103 msgstr ""
29104
29105 # type: verbatim
29106 #. type: verbatim
29107 #: ../fish/guestfish-actions.pod:3066
29108 #, no-wrap
29109 msgid ""
29110 " mkfs-b fstype blocksize device\n"
29111 "\n"
29112 msgstr ""
29113
29114 # type: textblock
29115 #. type: textblock
29116 #: ../fish/guestfish-actions.pod:3068
29117 msgid ""
29118 "This call is similar to L</mkfs>, but it allows you to control the block "
29119 "size of the resulting filesystem.  Supported block sizes depend on the "
29120 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
29121 msgstr ""
29122
29123 # type: =head2
29124 #. type: =head2
29125 #: ../fish/guestfish-actions.pod:3083
29126 msgid "mkfs-opts"
29127 msgstr ""
29128
29129 #. type: verbatim
29130 #: ../fish/guestfish-actions.pod:3085
29131 #, no-wrap
29132 msgid ""
29133 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
29134 "\n"
29135 msgstr ""
29136
29137 # type: =head2
29138 #. type: =head2
29139 #: ../fish/guestfish-actions.pod:3130
29140 msgid "mkmountpoint"
29141 msgstr ""
29142
29143 # type: verbatim
29144 #. type: verbatim
29145 #: ../fish/guestfish-actions.pod:3132
29146 #, no-wrap
29147 msgid ""
29148 " mkmountpoint exemptpath\n"
29149 "\n"
29150 msgstr ""
29151
29152 # type: textblock
29153 #. type: textblock
29154 #: ../fish/guestfish-actions.pod:3134
29155 msgid ""
29156 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
29157 "to create extra mountpoints before mounting the first filesystem."
29158 msgstr ""
29159
29160 # type: textblock
29161 #. type: textblock
29162 #: ../fish/guestfish-actions.pod:3158
29163 msgid ""
29164 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
29165 "unexpected errors if you try to mix these calls.  It is safest to manually "
29166 "unmount filesystems and remove mountpoints after use."
29167 msgstr ""
29168
29169 # type: textblock
29170 #. type: textblock
29171 #: ../fish/guestfish-actions.pod:3162
29172 msgid ""
29173 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
29174 "for this to work for manual mountpoints, you must ensure that the innermost "
29175 "mountpoints have the longest pathnames, as in the example code above."
29176 msgstr ""
29177
29178 #. type: textblock
29179 #: ../fish/guestfish-actions.pod:3169
29180 msgid ""
29181 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
29182 "L</umount-all> to be called when the handle is closed which can also trigger "
29183 "these issues."
29184 msgstr ""
29185
29186 # type: =head2
29187 #. type: =head2
29188 #: ../fish/guestfish-actions.pod:3173
29189 msgid "mknod"
29190 msgstr ""
29191
29192 # type: verbatim
29193 #. type: verbatim
29194 #: ../fish/guestfish-actions.pod:3175
29195 #, no-wrap
29196 msgid ""
29197 " mknod mode devmajor devminor path\n"
29198 "\n"
29199 msgstr ""
29200
29201 # type: textblock
29202 #. type: textblock
29203 #: ../fish/guestfish-actions.pod:3185
29204 msgid ""
29205 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
29206 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
29207 "regular file).  These constants are available in the standard Linux header "
29208 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
29209 "wrappers around this command which bitwise OR in the appropriate constant "
29210 "for you."
29211 msgstr ""
29212
29213 # type: =head2
29214 #. type: =head2
29215 #: ../fish/guestfish-actions.pod:3195
29216 msgid "mknod-b"
29217 msgstr ""
29218
29219 # type: verbatim
29220 #. type: verbatim
29221 #: ../fish/guestfish-actions.pod:3197
29222 #, no-wrap
29223 msgid ""
29224 " mknod-b mode devmajor devminor path\n"
29225 "\n"
29226 msgstr ""
29227
29228 # type: textblock
29229 #. type: textblock
29230 #: ../fish/guestfish-actions.pod:3199
29231 msgid ""
29232 "This call creates a block device node called C<path> with mode C<mode> and "
29233 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
29234 "wrapper around L</mknod>."
29235 msgstr ""
29236
29237 # type: =head2
29238 #. type: =head2
29239 #: ../fish/guestfish-actions.pod:3205
29240 msgid "mknod-c"
29241 msgstr ""
29242
29243 # type: verbatim
29244 #. type: verbatim
29245 #: ../fish/guestfish-actions.pod:3207
29246 #, no-wrap
29247 msgid ""
29248 " mknod-c mode devmajor devminor path\n"
29249 "\n"
29250 msgstr ""
29251
29252 # type: textblock
29253 #. type: textblock
29254 #: ../fish/guestfish-actions.pod:3209
29255 msgid ""
29256 "This call creates a char device node called C<path> with mode C<mode> and "
29257 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
29258 "wrapper around L</mknod>."
29259 msgstr ""
29260
29261 # type: =head2
29262 #. type: =head2
29263 #: ../fish/guestfish-actions.pod:3215
29264 msgid "mkswap"
29265 msgstr ""
29266
29267 # type: verbatim
29268 #. type: verbatim
29269 #: ../fish/guestfish-actions.pod:3217
29270 #, no-wrap
29271 msgid ""
29272 " mkswap device\n"
29273 "\n"
29274 msgstr ""
29275
29276 # type: =head2
29277 #. type: =head2
29278 #: ../fish/guestfish-actions.pod:3221
29279 msgid "mkswap-L"
29280 msgstr ""
29281
29282 # type: verbatim
29283 #. type: verbatim
29284 #: ../fish/guestfish-actions.pod:3223
29285 #, no-wrap
29286 msgid ""
29287 " mkswap-L label device\n"
29288 "\n"
29289 msgstr ""
29290
29291 # type: =head2
29292 #. type: =head2
29293 #: ../fish/guestfish-actions.pod:3231
29294 msgid "mkswap-U"
29295 msgstr ""
29296
29297 # type: verbatim
29298 #. type: verbatim
29299 #: ../fish/guestfish-actions.pod:3233
29300 #, no-wrap
29301 msgid ""
29302 " mkswap-U uuid device\n"
29303 "\n"
29304 msgstr ""
29305
29306 # type: =head2
29307 #. type: =head2
29308 #: ../fish/guestfish-actions.pod:3237
29309 msgid "mkswap-file"
29310 msgstr ""
29311
29312 # type: verbatim
29313 #. type: verbatim
29314 #: ../fish/guestfish-actions.pod:3239
29315 #, no-wrap
29316 msgid ""
29317 " mkswap-file path\n"
29318 "\n"
29319 msgstr ""
29320
29321 # type: textblock
29322 #. type: textblock
29323 #: ../fish/guestfish-actions.pod:3243
29324 msgid ""
29325 "This command just writes a swap file signature to an existing file.  To "
29326 "create the file itself, use something like L</fallocate>."
29327 msgstr ""
29328
29329 # type: =head2
29330 #. type: =head2
29331 #: ../fish/guestfish-actions.pod:3246
29332 msgid "modprobe"
29333 msgstr ""
29334
29335 # type: verbatim
29336 #. type: verbatim
29337 #: ../fish/guestfish-actions.pod:3248
29338 #, no-wrap
29339 msgid ""
29340 " modprobe modulename\n"
29341 "\n"
29342 msgstr ""
29343
29344 # type: =head2
29345 #. type: =head2
29346 #: ../fish/guestfish-actions.pod:3255
29347 msgid "mount"
29348 msgstr ""
29349
29350 # type: verbatim
29351 #. type: verbatim
29352 #: ../fish/guestfish-actions.pod:3257
29353 #, no-wrap
29354 msgid ""
29355 " mount device mountpoint\n"
29356 "\n"
29357 msgstr ""
29358
29359 # type: textblock
29360 #. type: textblock
29361 #: ../fish/guestfish-actions.pod:3273
29362 msgid ""
29363 "B<Important note:> When you use this call, the filesystem options C<sync> "
29364 "and C<noatime> are set implicitly.  This was originally done because we "
29365 "thought it would improve reliability, but it turns out that I<-o sync> has a "
29366 "very large negative performance impact and negligible effect on "
29367 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
29368 "code that needs performance, and instead use L</mount-options> (use an empty "
29369 "string for the first parameter if you don't want any options)."
29370 msgstr ""
29371
29372 #. type: =head2
29373 #: ../fish/guestfish-actions.pod:3290
29374 msgid "mount-9p"
29375 msgstr ""
29376
29377 #. type: verbatim
29378 #: ../fish/guestfish-actions.pod:3292
29379 #, no-wrap
29380 msgid ""
29381 " mount-9p mounttag mountpoint [options:..]\n"
29382 "\n"
29383 msgstr ""
29384
29385 # type: =head2
29386 #. type: =head2
29387 #: ../fish/guestfish-actions.pod:3303
29388 msgid "mount-loop"
29389 msgstr ""
29390
29391 # type: verbatim
29392 #. type: verbatim
29393 #: ../fish/guestfish-actions.pod:3305
29394 #, no-wrap
29395 msgid ""
29396 " mount-loop file mountpoint\n"
29397 "\n"
29398 msgstr ""
29399
29400 # type: =head2
29401 #. type: =head2
29402 #: ../fish/guestfish-actions.pod:3311
29403 msgid "mount-options"
29404 msgstr ""
29405
29406 # type: verbatim
29407 #. type: verbatim
29408 #: ../fish/guestfish-actions.pod:3313
29409 #, no-wrap
29410 msgid ""
29411 " mount-options options device mountpoint\n"
29412 "\n"
29413 msgstr ""
29414
29415 # type: textblock
29416 #. type: textblock
29417 #: ../fish/guestfish-actions.pod:3315
29418 msgid ""
29419 "This is the same as the L</mount> command, but it allows you to set the "
29420 "mount options as for the L<mount(8)> I<-o> flag."
29421 msgstr ""
29422
29423 # type: =head2
29424 #. type: =head2
29425 #: ../fish/guestfish-actions.pod:3323
29426 msgid "mount-ro"
29427 msgstr ""
29428
29429 # type: verbatim
29430 #. type: verbatim
29431 #: ../fish/guestfish-actions.pod:3325
29432 #, no-wrap
29433 msgid ""
29434 " mount-ro device mountpoint\n"
29435 "\n"
29436 msgstr ""
29437
29438 # type: textblock
29439 #. type: textblock
29440 #: ../fish/guestfish-actions.pod:3327
29441 msgid ""
29442 "This is the same as the L</mount> command, but it mounts the filesystem with "
29443 "the read-only (I<-o ro>) flag."
29444 msgstr ""
29445
29446 # type: =head2
29447 #. type: =head2
29448 #: ../fish/guestfish-actions.pod:3330
29449 msgid "mount-vfs"
29450 msgstr ""
29451
29452 # type: verbatim
29453 #. type: verbatim
29454 #: ../fish/guestfish-actions.pod:3332
29455 #, no-wrap
29456 msgid ""
29457 " mount-vfs options vfstype device mountpoint\n"
29458 "\n"
29459 msgstr ""
29460
29461 # type: textblock
29462 #. type: textblock
29463 #: ../fish/guestfish-actions.pod:3334
29464 msgid ""
29465 "This is the same as the L</mount> command, but it allows you to set both the "
29466 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
29467 msgstr ""
29468
29469 # type: =head2
29470 #. type: =head2
29471 #: ../fish/guestfish-actions.pod:3338
29472 msgid "mountpoints"
29473 msgstr ""
29474
29475 # type: verbatim
29476 #. type: verbatim
29477 #: ../fish/guestfish-actions.pod:3340
29478 #, no-wrap
29479 msgid ""
29480 " mountpoints\n"
29481 "\n"
29482 msgstr ""
29483
29484 # type: textblock
29485 #. type: textblock
29486 #: ../fish/guestfish-actions.pod:3342
29487 msgid ""
29488 "This call is similar to L</mounts>.  That call returns a list of devices.  "
29489 "This one returns a hash table (map) of device name to directory where the "
29490 "device is mounted."
29491 msgstr ""
29492
29493 # type: =head2
29494 #. type: =head2
29495 #: ../fish/guestfish-actions.pod:3346
29496 msgid "mounts"
29497 msgstr ""
29498
29499 # type: verbatim
29500 #. type: verbatim
29501 #: ../fish/guestfish-actions.pod:3348
29502 #, no-wrap
29503 msgid ""
29504 " mounts\n"
29505 "\n"
29506 msgstr ""
29507
29508 # type: textblock
29509 #. type: textblock
29510 #: ../fish/guestfish-actions.pod:3355
29511 msgid "See also: L</mountpoints>"
29512 msgstr ""
29513
29514 # type: =head2
29515 #. type: =head2
29516 #: ../fish/guestfish-actions.pod:3357
29517 msgid "mv"
29518 msgstr ""
29519
29520 # type: verbatim
29521 #. type: verbatim
29522 #: ../fish/guestfish-actions.pod:3359
29523 #, no-wrap
29524 msgid ""
29525 " mv src dest\n"
29526 "\n"
29527 msgstr ""
29528
29529 # type: =head2
29530 #. type: =head2
29531 #: ../fish/guestfish-actions.pod:3364
29532 msgid "ntfs-3g-probe"
29533 msgstr ""
29534
29535 # type: verbatim
29536 #. type: verbatim
29537 #: ../fish/guestfish-actions.pod:3366
29538 #, no-wrap
29539 msgid ""
29540 " ntfs-3g-probe true|false device\n"
29541 "\n"
29542 msgstr ""
29543
29544 # type: =head2
29545 #. type: =head2
29546 #: ../fish/guestfish-actions.pod:3380
29547 msgid "ntfsresize"
29548 msgstr ""
29549
29550 # type: verbatim
29551 #. type: verbatim
29552 #: ../fish/guestfish-actions.pod:3382
29553 #, no-wrap
29554 msgid ""
29555 " ntfsresize device\n"
29556 "\n"
29557 msgstr ""
29558
29559 #. type: =head2
29560 #: ../fish/guestfish-actions.pod:3404
29561 msgid "ntfsresize-opts"
29562 msgstr ""
29563
29564 #. type: verbatim
29565 #: ../fish/guestfish-actions.pod:3406
29566 #, no-wrap
29567 msgid ""
29568 " ntfsresize-opts device [size:..] [force:..]\n"
29569 "\n"
29570 msgstr ""
29571
29572 #. type: textblock
29573 #: ../fish/guestfish-actions.pod:3425
29574 msgid ""
29575 "After the resize operation, the filesystem is always marked as requiring a "
29576 "consistency check (for safety).  You have to boot into Windows to perform "
29577 "this check and clear this condition.  If you I<don't> set the C<force> "
29578 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
29579 "a single filesystem without booting into Windows between each resize."
29580 msgstr ""
29581
29582 # type: =head2
29583 #. type: =head2
29584 #: ../fish/guestfish-actions.pod:3438
29585 msgid "ntfsresize-size"
29586 msgstr ""
29587
29588 # type: verbatim
29589 #. type: verbatim
29590 #: ../fish/guestfish-actions.pod:3440
29591 #, no-wrap
29592 msgid ""
29593 " ntfsresize-size device size\n"
29594 "\n"
29595 msgstr ""
29596
29597 # type: textblock
29598 #. type: textblock
29599 #: ../fish/guestfish-actions.pod:3442
29600 msgid ""
29601 "This command is the same as L</ntfsresize> except that it allows you to "
29602 "specify the new size (in bytes) explicitly."
29603 msgstr ""
29604
29605 # type: =head2
29606 #. type: =head2
29607 #: ../fish/guestfish-actions.pod:3452
29608 msgid "part-add"
29609 msgstr ""
29610
29611 # type: verbatim
29612 #. type: verbatim
29613 #: ../fish/guestfish-actions.pod:3454
29614 #, no-wrap
29615 msgid ""
29616 " part-add device prlogex startsect endsect\n"
29617 "\n"
29618 msgstr ""
29619
29620 # type: textblock
29621 #. type: textblock
29622 #: ../fish/guestfish-actions.pod:3456
29623 msgid ""
29624 "This command adds a partition to C<device>.  If there is no partition table "
29625 "on the device, call L</part-init> first."
29626 msgstr ""
29627
29628 # type: textblock
29629 #. type: textblock
29630 #: ../fish/guestfish-actions.pod:3468
29631 msgid ""
29632 "Creating a partition which covers the whole disk is not so easy.  Use L</"
29633 "part-disk> to do that."
29634 msgstr ""
29635
29636 # type: =head2
29637 #. type: =head2
29638 #: ../fish/guestfish-actions.pod:3471
29639 msgid "part-del"
29640 msgstr ""
29641
29642 # type: verbatim
29643 #. type: verbatim
29644 #: ../fish/guestfish-actions.pod:3473
29645 #, no-wrap
29646 msgid ""
29647 " part-del device partnum\n"
29648 "\n"
29649 msgstr ""
29650
29651 # type: =head2
29652 #. type: =head2
29653 #: ../fish/guestfish-actions.pod:3481
29654 msgid "part-disk"
29655 msgstr ""
29656
29657 # type: verbatim
29658 #. type: verbatim
29659 #: ../fish/guestfish-actions.pod:3483
29660 #, no-wrap
29661 msgid ""
29662 " part-disk device parttype\n"
29663 "\n"
29664 msgstr ""
29665
29666 # type: textblock
29667 #. type: textblock
29668 #: ../fish/guestfish-actions.pod:3485
29669 msgid ""
29670 "This command is simply a combination of L</part-init> followed by L</part-"
29671 "add> to create a single primary partition covering the whole disk."
29672 msgstr ""
29673
29674 # type: textblock
29675 #. type: textblock
29676 #: ../fish/guestfish-actions.pod:3489
29677 msgid ""
29678 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
29679 "possible values are described in L</part-init>."
29680 msgstr ""
29681
29682 # type: =head2
29683 #. type: =head2
29684 #: ../fish/guestfish-actions.pod:3495
29685 msgid "part-get-bootable"
29686 msgstr ""
29687
29688 # type: verbatim
29689 #. type: verbatim
29690 #: ../fish/guestfish-actions.pod:3497
29691 #, no-wrap
29692 msgid ""
29693 " part-get-bootable device partnum\n"
29694 "\n"
29695 msgstr ""
29696
29697 # type: textblock
29698 #. type: textblock
29699 #: ../fish/guestfish-actions.pod:3502
29700 msgid "See also L</part-set-bootable>."
29701 msgstr ""
29702
29703 # type: =head2
29704 #. type: =head2
29705 #: ../fish/guestfish-actions.pod:3504
29706 msgid "part-get-mbr-id"
29707 msgstr ""
29708
29709 # type: verbatim
29710 #. type: verbatim
29711 #: ../fish/guestfish-actions.pod:3506
29712 #, no-wrap
29713 msgid ""
29714 " part-get-mbr-id device partnum\n"
29715 "\n"
29716 msgstr ""
29717
29718 # type: textblock
29719 #. type: textblock
29720 #: ../fish/guestfish-actions.pod:3511 ../fish/guestfish-actions.pod:3649
29721 msgid ""
29722 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
29723 "undefined results for other partition table types (see L</part-get-"
29724 "parttype>)."
29725 msgstr ""
29726
29727 # type: =head2
29728 #. type: =head2
29729 #: ../fish/guestfish-actions.pod:3515
29730 msgid "part-get-parttype"
29731 msgstr ""
29732
29733 # type: verbatim
29734 #. type: verbatim
29735 #: ../fish/guestfish-actions.pod:3517
29736 #, no-wrap
29737 msgid ""
29738 " part-get-parttype device\n"
29739 "\n"
29740 msgstr ""
29741
29742 # type: textblock
29743 #. type: textblock
29744 #: ../fish/guestfish-actions.pod:3522
29745 msgid ""
29746 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29747 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
29748 "possible, although unusual.  See L</part-init> for a full list."
29749 msgstr ""
29750
29751 # type: =head2
29752 #. type: =head2
29753 #: ../fish/guestfish-actions.pod:3527
29754 msgid "part-init"
29755 msgstr ""
29756
29757 # type: verbatim
29758 #. type: verbatim
29759 #: ../fish/guestfish-actions.pod:3529
29760 #, no-wrap
29761 msgid ""
29762 " part-init device parttype\n"
29763 "\n"
29764 msgstr ""
29765
29766 # type: textblock
29767 #. type: textblock
29768 #: ../fish/guestfish-actions.pod:3535
29769 msgid ""
29770 "Initially there are no partitions.  Following this, you should call L</part-"
29771 "add> for each partition required."
29772 msgstr ""
29773
29774 # type: =head2
29775 #. type: =head2
29776 #: ../fish/guestfish-actions.pod:3598
29777 msgid "part-list"
29778 msgstr ""
29779
29780 # type: verbatim
29781 #. type: verbatim
29782 #: ../fish/guestfish-actions.pod:3600
29783 #, no-wrap
29784 msgid ""
29785 " part-list device\n"
29786 "\n"
29787 msgstr ""
29788
29789 # type: textblock
29790 #. type: textblock
29791 #: ../fish/guestfish-actions.pod:3615
29792 msgid ""
29793 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
29794 "the device's sector size, see L</blockdev-getss>."
29795 msgstr ""
29796
29797 # type: =head2
29798 #. type: =head2
29799 #: ../fish/guestfish-actions.pod:3628
29800 msgid "part-set-bootable"
29801 msgstr ""
29802
29803 # type: verbatim
29804 #. type: verbatim
29805 #: ../fish/guestfish-actions.pod:3630
29806 #, no-wrap
29807 msgid ""
29808 " part-set-bootable device partnum true|false\n"
29809 "\n"
29810 msgstr ""
29811
29812 # type: =head2
29813 #. type: =head2
29814 #: ../fish/guestfish-actions.pod:3639
29815 msgid "part-set-mbr-id"
29816 msgstr ""
29817
29818 # type: verbatim
29819 #. type: verbatim
29820 #: ../fish/guestfish-actions.pod:3641
29821 #, no-wrap
29822 msgid ""
29823 " part-set-mbr-id device partnum idbyte\n"
29824 "\n"
29825 msgstr ""
29826
29827 # type: =head2
29828 #. type: =head2
29829 #: ../fish/guestfish-actions.pod:3653
29830 msgid "part-set-name"
29831 msgstr ""
29832
29833 # type: verbatim
29834 #. type: verbatim
29835 #: ../fish/guestfish-actions.pod:3655
29836 #, no-wrap
29837 msgid ""
29838 " part-set-name device partnum name\n"
29839 "\n"
29840 msgstr ""
29841
29842 # type: =head2
29843 #. type: =head2
29844 #: ../fish/guestfish-actions.pod:3663
29845 msgid "part-to-dev"
29846 msgstr ""
29847
29848 # type: verbatim
29849 #. type: verbatim
29850 #: ../fish/guestfish-actions.pod:3665
29851 #, no-wrap
29852 msgid ""
29853 " part-to-dev partition\n"
29854 "\n"
29855 msgstr ""
29856
29857 # type: textblock
29858 #. type: textblock
29859 #: ../fish/guestfish-actions.pod:3671
29860 msgid ""
29861 "The named partition must exist, for example as a string returned from L</"
29862 "list-partitions>."
29863 msgstr ""
29864
29865 # type: =head2
29866 #. type: =head2
29867 #: ../fish/guestfish-actions.pod:3674
29868 msgid "ping-daemon"
29869 msgstr ""
29870
29871 # type: verbatim
29872 #. type: verbatim
29873 #: ../fish/guestfish-actions.pod:3676
29874 #, no-wrap
29875 msgid ""
29876 " ping-daemon\n"
29877 "\n"
29878 msgstr ""
29879
29880 # type: =head2
29881 #. type: =head2
29882 #: ../fish/guestfish-actions.pod:3683
29883 msgid "pread"
29884 msgstr ""
29885
29886 # type: verbatim
29887 #. type: verbatim
29888 #: ../fish/guestfish-actions.pod:3685
29889 #, no-wrap
29890 msgid ""
29891 " pread path count offset\n"
29892 "\n"
29893 msgstr ""
29894
29895 # type: textblock
29896 #. type: textblock
29897 #: ../fish/guestfish-actions.pod:3693
29898 msgid "See also L</pwrite>, L</pread-device>."
29899 msgstr ""
29900
29901 # type: =head2
29902 #. type: =head2
29903 #: ../fish/guestfish-actions.pod:3698
29904 msgid "pread-device"
29905 msgstr ""
29906
29907 # type: verbatim
29908 #. type: verbatim
29909 #: ../fish/guestfish-actions.pod:3700
29910 #, no-wrap
29911 msgid ""
29912 " pread-device device count offset\n"
29913 "\n"
29914 msgstr ""
29915
29916 # type: textblock
29917 #. type: textblock
29918 #: ../fish/guestfish-actions.pod:3708
29919 msgid "See also L</pread>."
29920 msgstr ""
29921
29922 # type: =head2
29923 #. type: =head2
29924 #: ../fish/guestfish-actions.pod:3713
29925 msgid "pvcreate"
29926 msgstr ""
29927
29928 # type: verbatim
29929 #. type: verbatim
29930 #: ../fish/guestfish-actions.pod:3715
29931 #, no-wrap
29932 msgid ""
29933 " pvcreate device\n"
29934 "\n"
29935 msgstr ""
29936
29937 # type: =head2
29938 #. type: =head2
29939 #: ../fish/guestfish-actions.pod:3721
29940 msgid "pvremove"
29941 msgstr ""
29942
29943 # type: verbatim
29944 #. type: verbatim
29945 #: ../fish/guestfish-actions.pod:3723
29946 #, no-wrap
29947 msgid ""
29948 " pvremove device\n"
29949 "\n"
29950 msgstr ""
29951
29952 # type: =head2
29953 #. type: =head2
29954 #: ../fish/guestfish-actions.pod:3732
29955 msgid "pvresize"
29956 msgstr ""
29957
29958 # type: verbatim
29959 #. type: verbatim
29960 #: ../fish/guestfish-actions.pod:3734
29961 #, no-wrap
29962 msgid ""
29963 " pvresize device\n"
29964 "\n"
29965 msgstr ""
29966
29967 # type: =head2
29968 #. type: =head2
29969 #: ../fish/guestfish-actions.pod:3739
29970 msgid "pvresize-size"
29971 msgstr ""
29972
29973 # type: verbatim
29974 #. type: verbatim
29975 #: ../fish/guestfish-actions.pod:3741
29976 #, no-wrap
29977 msgid ""
29978 " pvresize-size device size\n"
29979 "\n"
29980 msgstr ""
29981
29982 # type: textblock
29983 #. type: textblock
29984 #: ../fish/guestfish-actions.pod:3743
29985 msgid ""
29986 "This command is the same as L</pvresize> except that it allows you to "
29987 "specify the new size (in bytes) explicitly."
29988 msgstr ""
29989
29990 # type: =head2
29991 #. type: =head2
29992 #: ../fish/guestfish-actions.pod:3746
29993 msgid "pvs"
29994 msgstr ""
29995
29996 # type: verbatim
29997 #. type: verbatim
29998 #: ../fish/guestfish-actions.pod:3748
29999 #, no-wrap
30000 msgid ""
30001 " pvs\n"
30002 "\n"
30003 msgstr ""
30004
30005 # type: textblock
30006 #. type: textblock
30007 #: ../fish/guestfish-actions.pod:3756
30008 msgid "See also L</pvs-full>."
30009 msgstr ""
30010
30011 # type: =head2
30012 #. type: =head2
30013 #: ../fish/guestfish-actions.pod:3758
30014 msgid "pvs-full"
30015 msgstr ""
30016
30017 # type: verbatim
30018 #. type: verbatim
30019 #: ../fish/guestfish-actions.pod:3760
30020 #, no-wrap
30021 msgid ""
30022 " pvs-full\n"
30023 "\n"
30024 msgstr ""
30025
30026 # type: =head2
30027 #. type: =head2
30028 #: ../fish/guestfish-actions.pod:3765
30029 msgid "pvuuid"
30030 msgstr ""
30031
30032 # type: verbatim
30033 #. type: verbatim
30034 #: ../fish/guestfish-actions.pod:3767
30035 #, no-wrap
30036 msgid ""
30037 " pvuuid device\n"
30038 "\n"
30039 msgstr ""
30040
30041 # type: =head2
30042 #. type: =head2
30043 #: ../fish/guestfish-actions.pod:3771
30044 msgid "pwrite"
30045 msgstr ""
30046
30047 # type: verbatim
30048 #. type: verbatim
30049 #: ../fish/guestfish-actions.pod:3773
30050 #, no-wrap
30051 msgid ""
30052 " pwrite path content offset\n"
30053 "\n"
30054 msgstr ""
30055
30056 # type: textblock
30057 #. type: textblock
30058 #: ../fish/guestfish-actions.pod:3784
30059 msgid "See also L</pread>, L</pwrite-device>."
30060 msgstr ""
30061
30062 # type: =head2
30063 #. type: =head2
30064 #: ../fish/guestfish-actions.pod:3789
30065 msgid "pwrite-device"
30066 msgstr ""
30067
30068 # type: verbatim
30069 #. type: verbatim
30070 #: ../fish/guestfish-actions.pod:3791
30071 #, no-wrap
30072 msgid ""
30073 " pwrite-device device content offset\n"
30074 "\n"
30075 msgstr ""
30076
30077 # type: textblock
30078 #. type: textblock
30079 #: ../fish/guestfish-actions.pod:3801
30080 msgid "See also L</pwrite>."
30081 msgstr ""
30082
30083 # type: =head2
30084 #. type: =head2
30085 #: ../fish/guestfish-actions.pod:3806
30086 msgid "read-file"
30087 msgstr ""
30088
30089 # type: verbatim
30090 #. type: verbatim
30091 #: ../fish/guestfish-actions.pod:3808
30092 #, no-wrap
30093 msgid ""
30094 " read-file path\n"
30095 "\n"
30096 msgstr ""
30097
30098 # type: textblock
30099 #. type: textblock
30100 #: ../fish/guestfish-actions.pod:3813
30101 msgid ""
30102 "Unlike L</cat>, this function can correctly handle files that contain "
30103 "embedded ASCII NUL characters.  However unlike L</download>, this function "
30104 "is limited in the total size of file that can be handled."
30105 msgstr ""
30106
30107 # type: =head2
30108 #. type: =head2
30109 #: ../fish/guestfish-actions.pod:3821
30110 msgid "read-lines"
30111 msgstr ""
30112
30113 # type: verbatim
30114 #. type: verbatim
30115 #: ../fish/guestfish-actions.pod:3823
30116 #, no-wrap
30117 msgid ""
30118 " read-lines path\n"
30119 "\n"
30120 msgstr ""
30121
30122 # type: textblock
30123 #. type: textblock
30124 #: ../fish/guestfish-actions.pod:3830
30125 msgid ""
30126 "Note that this function cannot correctly handle binary files (specifically, "
30127 "files containing C<\\0> character which is treated as end of line).  For "
30128 "those you need to use the L</read-file> function which has a more complex "
30129 "interface."
30130 msgstr ""
30131
30132 # type: =head2
30133 #. type: =head2
30134 #: ../fish/guestfish-actions.pod:3835
30135 msgid "readdir"
30136 msgstr ""
30137
30138 # type: verbatim
30139 #. type: verbatim
30140 #: ../fish/guestfish-actions.pod:3837
30141 #, no-wrap
30142 msgid ""
30143 " readdir dir\n"
30144 "\n"
30145 msgstr ""
30146
30147 # type: textblock
30148 #. type: textblock
30149 #: ../fish/guestfish-actions.pod:3889
30150 msgid ""
30151 "This function is primarily intended for use by programs.  To get a simple "
30152 "list of names, use L</ls>.  To get a printable directory for human "
30153 "consumption, use L</ll>."
30154 msgstr ""
30155
30156 # type: =head2
30157 #. type: =head2
30158 #: ../fish/guestfish-actions.pod:3893
30159 msgid "readlink"
30160 msgstr ""
30161
30162 # type: verbatim
30163 #. type: verbatim
30164 #: ../fish/guestfish-actions.pod:3895
30165 #, no-wrap
30166 msgid ""
30167 " readlink path\n"
30168 "\n"
30169 msgstr ""
30170
30171 # type: =head2
30172 #. type: =head2
30173 #: ../fish/guestfish-actions.pod:3899
30174 msgid "readlinklist"
30175 msgstr ""
30176
30177 # type: verbatim
30178 #. type: verbatim
30179 #: ../fish/guestfish-actions.pod:3901
30180 #, no-wrap
30181 msgid ""
30182 " readlinklist path 'names ...'\n"
30183 "\n"
30184 msgstr ""
30185
30186 # type: =head2
30187 #. type: =head2
30188 #: ../fish/guestfish-actions.pod:3925
30189 msgid "realpath"
30190 msgstr ""
30191
30192 # type: verbatim
30193 #. type: verbatim
30194 #: ../fish/guestfish-actions.pod:3927
30195 #, no-wrap
30196 msgid ""
30197 " realpath path\n"
30198 "\n"
30199 msgstr ""
30200
30201 # type: =head2
30202 #. type: =head2
30203 #: ../fish/guestfish-actions.pod:3932
30204 msgid "removexattr"
30205 msgstr ""
30206
30207 # type: verbatim
30208 #. type: verbatim
30209 #: ../fish/guestfish-actions.pod:3934
30210 #, no-wrap
30211 msgid ""
30212 " removexattr xattr path\n"
30213 "\n"
30214 msgstr ""
30215
30216 # type: textblock
30217 #. type: textblock
30218 #: ../fish/guestfish-actions.pod:3939
30219 msgid "See also: L</lremovexattr>, L<attr(5)>."
30220 msgstr ""
30221
30222 # type: =head2
30223 #. type: =head2
30224 #: ../fish/guestfish-actions.pod:3941
30225 msgid "resize2fs"
30226 msgstr ""
30227
30228 # type: verbatim
30229 #. type: verbatim
30230 #: ../fish/guestfish-actions.pod:3943
30231 #, no-wrap
30232 msgid ""
30233 " resize2fs device\n"
30234 "\n"
30235 msgstr ""
30236
30237 # type: textblock
30238 #. type: textblock
30239 #: ../fish/guestfish-actions.pod:3948
30240 msgid ""
30241 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
30242 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
30243 "gives an error about this and sometimes not.  In any case, it is always safe "
30244 "to call L</e2fsck-f> before calling this function."
30245 msgstr ""
30246
30247 #. type: =head2
30248 #: ../fish/guestfish-actions.pod:3954
30249 msgid "resize2fs-M"
30250 msgstr ""
30251
30252 #. type: verbatim
30253 #: ../fish/guestfish-actions.pod:3956
30254 #, no-wrap
30255 msgid ""
30256 " resize2fs-M device\n"
30257 "\n"
30258 msgstr ""
30259
30260 #. type: textblock
30261 #: ../fish/guestfish-actions.pod:3958
30262 msgid ""
30263 "This command is the same as L</resize2fs>, but the filesystem is resized to "
30264 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
30265 "command."
30266 msgstr ""
30267
30268 #. type: textblock
30269 #: ../fish/guestfish-actions.pod:3962
30270 msgid ""
30271 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
30272 "and read the C<Block size> and C<Block count> values.  These two numbers, "
30273 "multiplied together, give the resulting size of the minimal filesystem in "
30274 "bytes."
30275 msgstr ""
30276
30277 # type: =head2
30278 #. type: =head2
30279 #: ../fish/guestfish-actions.pod:3967
30280 msgid "resize2fs-size"
30281 msgstr ""
30282
30283 # type: verbatim
30284 #. type: verbatim
30285 #: ../fish/guestfish-actions.pod:3969
30286 #, no-wrap
30287 msgid ""
30288 " resize2fs-size device size\n"
30289 "\n"
30290 msgstr ""
30291
30292 # type: textblock
30293 #. type: textblock
30294 #: ../fish/guestfish-actions.pod:3971
30295 msgid ""
30296 "This command is the same as L</resize2fs> except that it allows you to "
30297 "specify the new size (in bytes) explicitly."
30298 msgstr ""
30299
30300 # type: =head2
30301 #. type: =head2
30302 #: ../fish/guestfish-actions.pod:3974
30303 msgid "rm"
30304 msgstr ""
30305
30306 # type: verbatim
30307 #. type: verbatim
30308 #: ../fish/guestfish-actions.pod:3976
30309 #, no-wrap
30310 msgid ""
30311 " rm path\n"
30312 "\n"
30313 msgstr ""
30314
30315 # type: =head2
30316 #. type: =head2
30317 #: ../fish/guestfish-actions.pod:3980
30318 msgid "rm-rf"
30319 msgstr ""
30320
30321 # type: verbatim
30322 #. type: verbatim
30323 #: ../fish/guestfish-actions.pod:3982
30324 #, no-wrap
30325 msgid ""
30326 " rm-rf path\n"
30327 "\n"
30328 msgstr ""
30329
30330 # type: =head2
30331 #. type: =head2
30332 #: ../fish/guestfish-actions.pod:3988
30333 msgid "rmdir"
30334 msgstr ""
30335
30336 # type: verbatim
30337 #. type: verbatim
30338 #: ../fish/guestfish-actions.pod:3990
30339 #, no-wrap
30340 msgid ""
30341 " rmdir path\n"
30342 "\n"
30343 msgstr ""
30344
30345 # type: =head2
30346 #. type: =head2
30347 #: ../fish/guestfish-actions.pod:3994
30348 msgid "rmmountpoint"
30349 msgstr ""
30350
30351 # type: verbatim
30352 #. type: verbatim
30353 #: ../fish/guestfish-actions.pod:3996
30354 #, no-wrap
30355 msgid ""
30356 " rmmountpoint exemptpath\n"
30357 "\n"
30358 msgstr ""
30359
30360 # type: textblock
30361 #. type: textblock
30362 #: ../fish/guestfish-actions.pod:3998
30363 msgid ""
30364 "This calls removes a mountpoint that was previously created with L</"
30365 "mkmountpoint>.  See L</mkmountpoint> for full details."
30366 msgstr ""
30367
30368 # type: =head2
30369 #. type: =head2
30370 #: ../fish/guestfish-actions.pod:4002
30371 msgid "scrub-device"
30372 msgstr ""
30373
30374 # type: verbatim
30375 #. type: verbatim
30376 #: ../fish/guestfish-actions.pod:4004
30377 #, no-wrap
30378 msgid ""
30379 " scrub-device device\n"
30380 "\n"
30381 msgstr ""
30382
30383 # type: =head2
30384 #. type: =head2
30385 #: ../fish/guestfish-actions.pod:4015
30386 msgid "scrub-file"
30387 msgstr ""
30388
30389 # type: verbatim
30390 #. type: verbatim
30391 #: ../fish/guestfish-actions.pod:4017
30392 #, no-wrap
30393 msgid ""
30394 " scrub-file file\n"
30395 "\n"
30396 msgstr ""
30397
30398 # type: =head2
30399 #. type: =head2
30400 #: ../fish/guestfish-actions.pod:4027
30401 msgid "scrub-freespace"
30402 msgstr ""
30403
30404 # type: verbatim
30405 #. type: verbatim
30406 #: ../fish/guestfish-actions.pod:4029
30407 #, no-wrap
30408 msgid ""
30409 " scrub-freespace dir\n"
30410 "\n"
30411 msgstr ""
30412
30413 # type: textblock
30414 #. type: textblock
30415 #: ../fish/guestfish-actions.pod:4031
30416 msgid ""
30417 "This command creates the directory C<dir> and then fills it with files until "
30418 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
30419 "deletes them.  The intention is to scrub any free space on the partition "
30420 "containing C<dir>."
30421 msgstr ""
30422
30423 # type: =head2
30424 #. type: =head2
30425 #: ../fish/guestfish-actions.pod:4040
30426 msgid "set-append"
30427 msgstr ""
30428
30429 # type: =head2
30430 #. type: =head2
30431 #: ../fish/guestfish-actions.pod:4042
30432 msgid "append"
30433 msgstr ""
30434
30435 # type: verbatim
30436 #. type: verbatim
30437 #: ../fish/guestfish-actions.pod:4044
30438 #, no-wrap
30439 msgid ""
30440 " set-append append\n"
30441 "\n"
30442 msgstr ""
30443
30444 #. type: =head2
30445 #: ../fish/guestfish-actions.pod:4055
30446 msgid "set-attach-method"
30447 msgstr ""
30448
30449 #. type: =head2
30450 #: ../fish/guestfish-actions.pod:4057
30451 msgid "attach-method"
30452 msgstr ""
30453
30454 #. type: verbatim
30455 #: ../fish/guestfish-actions.pod:4059
30456 #, no-wrap
30457 msgid ""
30458 " set-attach-method attachmethod\n"
30459 "\n"
30460 msgstr ""
30461
30462 # type: =head2
30463 #. type: =head2
30464 #: ../fish/guestfish-actions.pod:4081
30465 msgid "set-autosync"
30466 msgstr ""
30467
30468 # type: =head2
30469 #. type: =head2
30470 #: ../fish/guestfish-actions.pod:4083
30471 msgid "autosync"
30472 msgstr ""
30473
30474 # type: verbatim
30475 #. type: verbatim
30476 #: ../fish/guestfish-actions.pod:4085
30477 #, no-wrap
30478 msgid ""
30479 " set-autosync true|false\n"
30480 "\n"
30481 msgstr ""
30482
30483 # type: =head2
30484 #. type: =head2
30485 #: ../fish/guestfish-actions.pod:4095
30486 msgid "set-direct"
30487 msgstr ""
30488
30489 # type: =head2
30490 #. type: =head2
30491 #: ../fish/guestfish-actions.pod:4097
30492 msgid "direct"
30493 msgstr ""
30494
30495 # type: verbatim
30496 #. type: verbatim
30497 #: ../fish/guestfish-actions.pod:4099
30498 #, no-wrap
30499 msgid ""
30500 " set-direct true|false\n"
30501 "\n"
30502 msgstr ""
30503
30504 # type: textblock
30505 #. type: textblock
30506 #: ../fish/guestfish-actions.pod:4105
30507 msgid ""
30508 "One consequence of this is that log messages aren't caught by the library "
30509 "and handled by L</set-log-message-callback>, but go straight to stdout."
30510 msgstr ""
30511
30512 # type: =head2
30513 #. type: =head2
30514 #: ../fish/guestfish-actions.pod:4114
30515 msgid "set-e2label"
30516 msgstr ""
30517
30518 # type: verbatim
30519 #. type: verbatim
30520 #: ../fish/guestfish-actions.pod:4116
30521 #, no-wrap
30522 msgid ""
30523 " set-e2label device label\n"
30524 "\n"
30525 msgstr ""
30526
30527 # type: textblock
30528 #. type: textblock
30529 #: ../fish/guestfish-actions.pod:4122
30530 msgid ""
30531 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
30532 "label on a filesystem."
30533 msgstr ""
30534
30535 # type: =head2
30536 #. type: =head2
30537 #: ../fish/guestfish-actions.pod:4125
30538 msgid "set-e2uuid"
30539 msgstr ""
30540
30541 # type: verbatim
30542 #. type: verbatim
30543 #: ../fish/guestfish-actions.pod:4127
30544 #, no-wrap
30545 msgid ""
30546 " set-e2uuid device uuid\n"
30547 "\n"
30548 msgstr ""
30549
30550 # type: textblock
30551 #. type: textblock
30552 #: ../fish/guestfish-actions.pod:4134
30553 msgid ""
30554 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
30555 "UUID of a filesystem."
30556 msgstr ""
30557
30558 # type: =head2
30559 #. type: =head2
30560 #: ../fish/guestfish-actions.pod:4137
30561 msgid "set-memsize"
30562 msgstr ""
30563
30564 # type: =head2
30565 #. type: =head2
30566 #: ../fish/guestfish-actions.pod:4139
30567 msgid "memsize"
30568 msgstr ""
30569
30570 # type: verbatim
30571 #. type: verbatim
30572 #: ../fish/guestfish-actions.pod:4141
30573 #, no-wrap
30574 msgid ""
30575 " set-memsize memsize\n"
30576 "\n"
30577 msgstr ""
30578
30579 # type: textblock
30580 #. type: textblock
30581 #: ../fish/guestfish-actions.pod:4143
30582 msgid ""
30583 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
30584 "This only has any effect if called before L</launch>."
30585 msgstr ""
30586
30587 # type: =head2
30588 #. type: =head2
30589 #: ../fish/guestfish-actions.pod:4154
30590 msgid "set-network"
30591 msgstr ""
30592
30593 # type: =head2
30594 #. type: =head2
30595 #: ../fish/guestfish-actions.pod:4156
30596 msgid "network"
30597 msgstr ""
30598
30599 # type: verbatim
30600 #. type: verbatim
30601 #: ../fish/guestfish-actions.pod:4158
30602 #, no-wrap
30603 msgid ""
30604 " set-network true|false\n"
30605 "\n"
30606 msgstr ""
30607
30608 # type: textblock
30609 #. type: textblock
30610 #: ../fish/guestfish-actions.pod:4166
30611 msgid ""
30612 "You must call this before calling L</launch>, otherwise it has no effect."
30613 msgstr ""
30614
30615 # type: =head2
30616 #. type: =head2
30617 #: ../fish/guestfish-actions.pod:4169
30618 msgid "set-path"
30619 msgstr ""
30620
30621 # type: =head2
30622 #. type: =head2
30623 #: ../fish/guestfish-actions.pod:4171
30624 msgid "path"
30625 msgstr ""
30626
30627 # type: verbatim
30628 #. type: verbatim
30629 #: ../fish/guestfish-actions.pod:4173
30630 #, no-wrap
30631 msgid ""
30632 " set-path searchpath\n"
30633 "\n"
30634 msgstr ""
30635
30636 # type: =head2
30637 #. type: =head2
30638 #: ../fish/guestfish-actions.pod:4182
30639 msgid "set-qemu"
30640 msgstr ""
30641
30642 # type: =head2
30643 #. type: =head2
30644 #: ../fish/guestfish-actions.pod:4184
30645 msgid "qemu"
30646 msgstr ""
30647
30648 # type: verbatim
30649 #. type: verbatim
30650 #: ../fish/guestfish-actions.pod:4186
30651 #, no-wrap
30652 msgid ""
30653 " set-qemu qemu\n"
30654 "\n"
30655 msgstr ""
30656
30657 # type: =head2
30658 #. type: =head2
30659 #: ../fish/guestfish-actions.pod:4206
30660 msgid "set-recovery-proc"
30661 msgstr ""
30662
30663 # type: =head2
30664 #. type: =head2
30665 #: ../fish/guestfish-actions.pod:4208
30666 msgid "recovery-proc"
30667 msgstr ""
30668
30669 # type: verbatim
30670 #. type: verbatim
30671 #: ../fish/guestfish-actions.pod:4210
30672 #, no-wrap
30673 msgid ""
30674 " set-recovery-proc true|false\n"
30675 "\n"
30676 msgstr ""
30677
30678 # type: textblock
30679 #. type: textblock
30680 #: ../fish/guestfish-actions.pod:4212
30681 msgid ""
30682 "If this is called with the parameter C<false> then L</launch> does not "
30683 "create a recovery process.  The purpose of the recovery process is to stop "
30684 "runaway qemu processes in the case where the main program aborts abruptly."
30685 msgstr ""
30686
30687 # type: textblock
30688 #. type: textblock
30689 #: ../fish/guestfish-actions.pod:4217
30690 msgid ""
30691 "This only has any effect if called before L</launch>, and the default is "
30692 "true."
30693 msgstr ""
30694
30695 # type: =head2
30696 #. type: =head2
30697 #: ../fish/guestfish-actions.pod:4226
30698 msgid "set-selinux"
30699 msgstr ""
30700
30701 # type: =head2
30702 #. type: =head2
30703 #: ../fish/guestfish-actions.pod:4228
30704 msgid "selinux"
30705 msgstr ""
30706
30707 # type: verbatim
30708 #. type: verbatim
30709 #: ../fish/guestfish-actions.pod:4230
30710 #, no-wrap
30711 msgid ""
30712 " set-selinux true|false\n"
30713 "\n"
30714 msgstr ""
30715
30716 # type: =head2
30717 #. type: =head2
30718 #: ../fish/guestfish-actions.pod:4241
30719 msgid "set-trace"
30720 msgstr ""
30721
30722 # type: =head2
30723 #. type: =head2
30724 #: ../fish/guestfish-actions.pod:4243
30725 msgid "trace"
30726 msgstr ""
30727
30728 # type: verbatim
30729 #. type: verbatim
30730 #: ../fish/guestfish-actions.pod:4245
30731 #, no-wrap
30732 msgid ""
30733 " set-trace true|false\n"
30734 "\n"
30735 msgstr ""
30736
30737 #. type: textblock
30738 #: ../fish/guestfish-actions.pod:4257
30739 msgid ""
30740 "Trace messages are normally sent to C<stderr>, unless you register a "
30741 "callback to send them somewhere else (see L</set-event-callback>)."
30742 msgstr ""
30743
30744 # type: =head2
30745 #. type: =head2
30746 #: ../fish/guestfish-actions.pod:4261
30747 msgid "set-verbose"
30748 msgstr ""
30749
30750 # type: =head2
30751 #. type: =head2
30752 #: ../fish/guestfish-actions.pod:4263
30753 msgid "verbose"
30754 msgstr ""
30755
30756 # type: verbatim
30757 #. type: verbatim
30758 #: ../fish/guestfish-actions.pod:4265
30759 #, no-wrap
30760 msgid ""
30761 " set-verbose true|false\n"
30762 "\n"
30763 msgstr ""
30764
30765 #. type: textblock
30766 #: ../fish/guestfish-actions.pod:4272
30767 msgid ""
30768 "Verbose messages are normally sent to C<stderr>, unless you register a "
30769 "callback to send them somewhere else (see L</set-event-callback>)."
30770 msgstr ""
30771
30772 # type: =head2
30773 #. type: =head2
30774 #: ../fish/guestfish-actions.pod:4276
30775 msgid "setcon"
30776 msgstr ""
30777
30778 # type: verbatim
30779 #. type: verbatim
30780 #: ../fish/guestfish-actions.pod:4278
30781 #, no-wrap
30782 msgid ""
30783 " setcon context\n"
30784 "\n"
30785 msgstr ""
30786
30787 # type: =head2
30788 #. type: =head2
30789 #: ../fish/guestfish-actions.pod:4285
30790 msgid "setxattr"
30791 msgstr ""
30792
30793 # type: verbatim
30794 #. type: verbatim
30795 #: ../fish/guestfish-actions.pod:4287
30796 #, no-wrap
30797 msgid ""
30798 " setxattr xattr val vallen path\n"
30799 "\n"
30800 msgstr ""
30801
30802 # type: textblock
30803 #. type: textblock
30804 #: ../fish/guestfish-actions.pod:4293
30805 msgid "See also: L</lsetxattr>, L<attr(5)>."
30806 msgstr ""
30807
30808 # type: =head2
30809 #. type: =head2
30810 #: ../fish/guestfish-actions.pod:4295
30811 msgid "sfdisk"
30812 msgstr ""
30813
30814 # type: verbatim
30815 #. type: verbatim
30816 #: ../fish/guestfish-actions.pod:4297
30817 #, no-wrap
30818 msgid ""
30819 " sfdisk device cyls heads sectors 'lines ...'\n"
30820 "\n"
30821 msgstr ""
30822
30823 # type: textblock
30824 #. type: textblock
30825 #: ../fish/guestfish-actions.pod:4319
30826 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
30827 msgstr ""
30828
30829 # type: =head2
30830 #. type: =head2
30831 #: ../fish/guestfish-actions.pod:4332
30832 msgid "sfdiskM"
30833 msgstr ""
30834
30835 # type: verbatim
30836 #. type: verbatim
30837 #: ../fish/guestfish-actions.pod:4334
30838 #, no-wrap
30839 msgid ""
30840 " sfdiskM device 'lines ...'\n"
30841 "\n"
30842 msgstr ""
30843
30844 # type: textblock
30845 #. type: textblock
30846 #: ../fish/guestfish-actions.pod:4336
30847 msgid ""
30848 "This is a simplified interface to the L</sfdisk> command, where partition "
30849 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
30850 "you don't need to specify the cyls, heads and sectors parameters which were "
30851 "rarely if ever used anyway."
30852 msgstr ""
30853
30854 # type: textblock
30855 #. type: textblock
30856 #: ../fish/guestfish-actions.pod:4342
30857 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
30858 msgstr ""
30859
30860 # type: =head2
30861 #. type: =head2
30862 #: ../fish/guestfish-actions.pod:4355
30863 msgid "sfdisk-N"
30864 msgstr ""
30865
30866 # type: verbatim
30867 #. type: verbatim
30868 #: ../fish/guestfish-actions.pod:4357
30869 #, no-wrap
30870 msgid ""
30871 " sfdisk-N device partnum cyls heads sectors line\n"
30872 "\n"
30873 msgstr ""
30874
30875 # type: textblock
30876 #. type: textblock
30877 #: ../fish/guestfish-actions.pod:4362
30878 msgid ""
30879 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
30880 "cyls/heads/sectors parameters."
30881 msgstr ""
30882
30883 # type: textblock
30884 #. type: textblock
30885 #: ../fish/guestfish-actions.pod:4365
30886 msgid "See also: L</part-add>"
30887 msgstr ""
30888
30889 # type: =head2
30890 #. type: =head2
30891 #: ../fish/guestfish-actions.pod:4377
30892 msgid "sfdisk-disk-geometry"
30893 msgstr ""
30894
30895 # type: verbatim
30896 #. type: verbatim
30897 #: ../fish/guestfish-actions.pod:4379
30898 #, no-wrap
30899 msgid ""
30900 " sfdisk-disk-geometry device\n"
30901 "\n"
30902 msgstr ""
30903
30904 # type: textblock
30905 #. type: textblock
30906 #: ../fish/guestfish-actions.pod:4381
30907 msgid ""
30908 "This displays the disk geometry of C<device> read from the partition table.  "
30909 "Especially in the case where the underlying block device has been resized, "
30910 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
30911 "kernel-geometry>)."
30912 msgstr ""
30913
30914 # type: =head2
30915 #. type: =head2
30916 #: ../fish/guestfish-actions.pod:4389
30917 msgid "sfdisk-kernel-geometry"
30918 msgstr ""
30919
30920 # type: verbatim
30921 #. type: verbatim
30922 #: ../fish/guestfish-actions.pod:4391
30923 #, no-wrap
30924 msgid ""
30925 " sfdisk-kernel-geometry device\n"
30926 "\n"
30927 msgstr ""
30928
30929 # type: =head2
30930 #. type: =head2
30931 #: ../fish/guestfish-actions.pod:4398
30932 msgid "sfdisk-l"
30933 msgstr ""
30934
30935 # type: verbatim
30936 #. type: verbatim
30937 #: ../fish/guestfish-actions.pod:4400
30938 #, no-wrap
30939 msgid ""
30940 " sfdisk-l device\n"
30941 "\n"
30942 msgstr ""
30943
30944 # type: textblock
30945 #. type: textblock
30946 #: ../fish/guestfish-actions.pod:4406
30947 msgid "See also: L</part-list>"
30948 msgstr ""
30949
30950 # type: =head2
30951 #. type: =head2
30952 #: ../fish/guestfish-actions.pod:4415
30953 msgid "sh"
30954 msgstr ""
30955
30956 # type: verbatim
30957 #. type: verbatim
30958 #: ../fish/guestfish-actions.pod:4417
30959 #, no-wrap
30960 msgid ""
30961 " sh command\n"
30962 "\n"
30963 msgstr ""
30964
30965 # type: textblock
30966 #. type: textblock
30967 #: ../fish/guestfish-actions.pod:4422
30968 msgid "This is like L</command>, but passes the command to:"
30969 msgstr ""
30970
30971 # type: textblock
30972 #. type: textblock
30973 #: ../fish/guestfish-actions.pod:4430
30974 msgid "All the provisos about L</command> apply to this call."
30975 msgstr ""
30976
30977 # type: =head2
30978 #. type: =head2
30979 #: ../fish/guestfish-actions.pod:4432
30980 msgid "sh-lines"
30981 msgstr ""
30982
30983 # type: verbatim
30984 #. type: verbatim
30985 #: ../fish/guestfish-actions.pod:4434
30986 #, no-wrap
30987 msgid ""
30988 " sh-lines command\n"
30989 "\n"
30990 msgstr ""
30991
30992 # type: textblock
30993 #. type: textblock
30994 #: ../fish/guestfish-actions.pod:4436
30995 msgid "This is the same as L</sh>, but splits the result into a list of lines."
30996 msgstr ""
30997
30998 # type: textblock
30999 #. type: textblock
31000 #: ../fish/guestfish-actions.pod:4439
31001 msgid "See also: L</command-lines>"
31002 msgstr ""
31003
31004 # type: =head2
31005 #. type: =head2
31006 #: ../fish/guestfish-actions.pod:4441
31007 msgid "sleep"
31008 msgstr ""
31009
31010 # type: verbatim
31011 #. type: verbatim
31012 #: ../fish/guestfish-actions.pod:4443
31013 #, no-wrap
31014 msgid ""
31015 " sleep secs\n"
31016 "\n"
31017 msgstr ""
31018
31019 # type: =head2
31020 #. type: =head2
31021 #: ../fish/guestfish-actions.pod:4447
31022 msgid "stat"
31023 msgstr ""
31024
31025 # type: verbatim
31026 #. type: verbatim
31027 #: ../fish/guestfish-actions.pod:4449
31028 #, no-wrap
31029 msgid ""
31030 " stat path\n"
31031 "\n"
31032 msgstr ""
31033
31034 # type: =head2
31035 #. type: =head2
31036 #: ../fish/guestfish-actions.pod:4455
31037 msgid "statvfs"
31038 msgstr ""
31039
31040 # type: verbatim
31041 #. type: verbatim
31042 #: ../fish/guestfish-actions.pod:4457
31043 #, no-wrap
31044 msgid ""
31045 " statvfs path\n"
31046 "\n"
31047 msgstr ""
31048
31049 # type: =head2
31050 #. type: =head2
31051 #: ../fish/guestfish-actions.pod:4465
31052 msgid "strings"
31053 msgstr ""
31054
31055 # type: verbatim
31056 #. type: verbatim
31057 #: ../fish/guestfish-actions.pod:4467
31058 #, no-wrap
31059 msgid ""
31060 " strings path\n"
31061 "\n"
31062 msgstr ""
31063
31064 # type: =head2
31065 #. type: =head2
31066 #: ../fish/guestfish-actions.pod:4475
31067 msgid "strings-e"
31068 msgstr ""
31069
31070 # type: verbatim
31071 #. type: verbatim
31072 #: ../fish/guestfish-actions.pod:4477
31073 #, no-wrap
31074 msgid ""
31075 " strings-e encoding path\n"
31076 "\n"
31077 msgstr ""
31078
31079 # type: textblock
31080 #. type: textblock
31081 #: ../fish/guestfish-actions.pod:4479
31082 msgid ""
31083 "This is like the L</strings> command, but allows you to specify the encoding "
31084 "of strings that are looked for in the source file C<path>."
31085 msgstr ""
31086
31087 # type: textblock
31088 #. type: textblock
31089 #: ../fish/guestfish-actions.pod:4489
31090 msgid ""
31091 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
31092 "ISO-8859-X (this is what L</strings> uses)."
31093 msgstr ""
31094
31095 # type: =head2
31096 #. type: =head2
31097 #: ../fish/guestfish-actions.pod:4521
31098 msgid "swapoff-device"
31099 msgstr ""
31100
31101 # type: verbatim
31102 #. type: verbatim
31103 #: ../fish/guestfish-actions.pod:4523
31104 #, no-wrap
31105 msgid ""
31106 " swapoff-device device\n"
31107 "\n"
31108 msgstr ""
31109
31110 # type: textblock
31111 #. type: textblock
31112 #: ../fish/guestfish-actions.pod:4525
31113 msgid ""
31114 "This command disables the libguestfs appliance swap device or partition "
31115 "named C<device>.  See L</swapon-device>."
31116 msgstr ""
31117
31118 # type: =head2
31119 #. type: =head2
31120 #: ../fish/guestfish-actions.pod:4529
31121 msgid "swapoff-file"
31122 msgstr ""
31123
31124 # type: verbatim
31125 #. type: verbatim
31126 #: ../fish/guestfish-actions.pod:4531
31127 #, no-wrap
31128 msgid ""
31129 " swapoff-file file\n"
31130 "\n"
31131 msgstr ""
31132
31133 # type: =head2
31134 #. type: =head2
31135 #: ../fish/guestfish-actions.pod:4535
31136 msgid "swapoff-label"
31137 msgstr ""
31138
31139 # type: verbatim
31140 #. type: verbatim
31141 #: ../fish/guestfish-actions.pod:4537
31142 #, no-wrap
31143 msgid ""
31144 " swapoff-label label\n"
31145 "\n"
31146 msgstr ""
31147
31148 # type: =head2
31149 #. type: =head2
31150 #: ../fish/guestfish-actions.pod:4542
31151 msgid "swapoff-uuid"
31152 msgstr ""
31153
31154 # type: verbatim
31155 #. type: verbatim
31156 #: ../fish/guestfish-actions.pod:4544
31157 #, no-wrap
31158 msgid ""
31159 " swapoff-uuid uuid\n"
31160 "\n"
31161 msgstr ""
31162
31163 # type: =head2
31164 #. type: =head2
31165 #: ../fish/guestfish-actions.pod:4549
31166 msgid "swapon-device"
31167 msgstr ""
31168
31169 # type: verbatim
31170 #. type: verbatim
31171 #: ../fish/guestfish-actions.pod:4551
31172 #, no-wrap
31173 msgid ""
31174 " swapon-device device\n"
31175 "\n"
31176 msgstr ""
31177
31178 # type: textblock
31179 #. type: textblock
31180 #: ../fish/guestfish-actions.pod:4553
31181 msgid ""
31182 "This command enables the libguestfs appliance to use the swap device or "
31183 "partition named C<device>.  The increased memory is made available for all "
31184 "commands, for example those run using L</command> or L</sh>."
31185 msgstr ""
31186
31187 # type: =head2
31188 #. type: =head2
31189 #: ../fish/guestfish-actions.pod:4565
31190 msgid "swapon-file"
31191 msgstr ""
31192
31193 # type: verbatim
31194 #. type: verbatim
31195 #: ../fish/guestfish-actions.pod:4567
31196 #, no-wrap
31197 msgid ""
31198 " swapon-file file\n"
31199 "\n"
31200 msgstr ""
31201
31202 # type: textblock
31203 #. type: textblock
31204 #: ../fish/guestfish-actions.pod:4569
31205 msgid ""
31206 "This command enables swap to a file.  See L</swapon-device> for other notes."
31207 msgstr ""
31208
31209 # type: =head2
31210 #. type: =head2
31211 #: ../fish/guestfish-actions.pod:4572
31212 msgid "swapon-label"
31213 msgstr ""
31214
31215 # type: verbatim
31216 #. type: verbatim
31217 #: ../fish/guestfish-actions.pod:4574
31218 #, no-wrap
31219 msgid ""
31220 " swapon-label label\n"
31221 "\n"
31222 msgstr ""
31223
31224 # type: textblock
31225 #. type: textblock
31226 #: ../fish/guestfish-actions.pod:4576
31227 msgid ""
31228 "This command enables swap to a labeled swap partition.  See L</swapon-"
31229 "device> for other notes."
31230 msgstr ""
31231
31232 # type: =head2
31233 #. type: =head2
31234 #: ../fish/guestfish-actions.pod:4579
31235 msgid "swapon-uuid"
31236 msgstr ""
31237
31238 # type: verbatim
31239 #. type: verbatim
31240 #: ../fish/guestfish-actions.pod:4581
31241 #, no-wrap
31242 msgid ""
31243 " swapon-uuid uuid\n"
31244 "\n"
31245 msgstr ""
31246
31247 # type: textblock
31248 #. type: textblock
31249 #: ../fish/guestfish-actions.pod:4583
31250 msgid ""
31251 "This command enables swap to a swap partition with the given UUID.  See L</"
31252 "swapon-device> for other notes."
31253 msgstr ""
31254
31255 # type: =head2
31256 #. type: =head2
31257 #: ../fish/guestfish-actions.pod:4586
31258 msgid "sync"
31259 msgstr ""
31260
31261 # type: verbatim
31262 #. type: verbatim
31263 #: ../fish/guestfish-actions.pod:4588
31264 #, no-wrap
31265 msgid ""
31266 " sync\n"
31267 "\n"
31268 msgstr ""
31269
31270 # type: =head2
31271 #. type: =head2
31272 #: ../fish/guestfish-actions.pod:4596
31273 msgid "tail"
31274 msgstr ""
31275
31276 # type: verbatim
31277 #. type: verbatim
31278 #: ../fish/guestfish-actions.pod:4598
31279 #, no-wrap
31280 msgid ""
31281 " tail path\n"
31282 "\n"
31283 msgstr ""
31284
31285 # type: =head2
31286 #. type: =head2
31287 #: ../fish/guestfish-actions.pod:4606
31288 msgid "tail-n"
31289 msgstr ""
31290
31291 # type: verbatim
31292 #. type: verbatim
31293 #: ../fish/guestfish-actions.pod:4608
31294 #, no-wrap
31295 msgid ""
31296 " tail-n nrlines path\n"
31297 "\n"
31298 msgstr ""
31299
31300 # type: =head2
31301 #. type: =head2
31302 #: ../fish/guestfish-actions.pod:4621
31303 msgid "tar-in"
31304 msgstr ""
31305
31306 # type: verbatim
31307 #. type: verbatim
31308 #: ../fish/guestfish-actions.pod:4623
31309 #, no-wrap
31310 msgid ""
31311 " tar-in (tarfile|-) directory\n"
31312 "\n"
31313 msgstr ""
31314
31315 # type: textblock
31316 #. type: textblock
31317 #: ../fish/guestfish-actions.pod:4628
31318 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
31319 msgstr ""
31320
31321 # type: =head2
31322 #. type: =head2
31323 #: ../fish/guestfish-actions.pod:4633
31324 msgid "tar-out"
31325 msgstr ""
31326
31327 # type: verbatim
31328 #. type: verbatim
31329 #: ../fish/guestfish-actions.pod:4635
31330 #, no-wrap
31331 msgid ""
31332 " tar-out directory (tarfile|-)\n"
31333 "\n"
31334 msgstr ""
31335
31336 # type: textblock
31337 #. type: textblock
31338 #: ../fish/guestfish-actions.pod:4640
31339 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
31340 msgstr ""
31341
31342 # type: =head2
31343 #. type: =head2
31344 #: ../fish/guestfish-actions.pod:4645
31345 msgid "tgz-in"
31346 msgstr ""
31347
31348 # type: verbatim
31349 #. type: verbatim
31350 #: ../fish/guestfish-actions.pod:4647
31351 #, no-wrap
31352 msgid ""
31353 " tgz-in (tarball|-) directory\n"
31354 "\n"
31355 msgstr ""
31356
31357 # type: textblock
31358 #. type: textblock
31359 #: ../fish/guestfish-actions.pod:4652
31360 msgid "To upload an uncompressed tarball, use L</tar-in>."
31361 msgstr ""
31362
31363 # type: =head2
31364 #. type: =head2
31365 #: ../fish/guestfish-actions.pod:4656
31366 msgid "tgz-out"
31367 msgstr ""
31368
31369 # type: verbatim
31370 #. type: verbatim
31371 #: ../fish/guestfish-actions.pod:4658
31372 #, no-wrap
31373 msgid ""
31374 " tgz-out directory (tarball|-)\n"
31375 "\n"
31376 msgstr ""
31377
31378 # type: textblock
31379 #. type: textblock
31380 #: ../fish/guestfish-actions.pod:4663
31381 msgid "To download an uncompressed tarball, use L</tar-out>."
31382 msgstr ""
31383
31384 # type: =head2
31385 #. type: =head2
31386 #: ../fish/guestfish-actions.pod:4667
31387 msgid "touch"
31388 msgstr ""
31389
31390 # type: verbatim
31391 #. type: verbatim
31392 #: ../fish/guestfish-actions.pod:4669
31393 #, no-wrap
31394 msgid ""
31395 " touch path\n"
31396 "\n"
31397 msgstr ""
31398
31399 # type: =head2
31400 #. type: =head2
31401 #: ../fish/guestfish-actions.pod:4678
31402 msgid "truncate"
31403 msgstr ""
31404
31405 # type: verbatim
31406 #. type: verbatim
31407 #: ../fish/guestfish-actions.pod:4680
31408 #, no-wrap
31409 msgid ""
31410 " truncate path\n"
31411 "\n"
31412 msgstr ""
31413
31414 # type: =head2
31415 #. type: =head2
31416 #: ../fish/guestfish-actions.pod:4685
31417 msgid "truncate-size"
31418 msgstr ""
31419
31420 # type: verbatim
31421 #. type: verbatim
31422 #: ../fish/guestfish-actions.pod:4687
31423 #, no-wrap
31424 msgid ""
31425 " truncate-size path size\n"
31426 "\n"
31427 msgstr ""
31428
31429 # type: textblock
31430 #. type: textblock
31431 #: ../fish/guestfish-actions.pod:4692
31432 msgid ""
31433 "If the current file size is less than C<size> then the file is extended to "
31434 "the required size with zero bytes.  This creates a sparse file (ie. disk "
31435 "blocks are not allocated for the file until you write to it).  To create a "
31436 "non-sparse file of zeroes, use L</fallocate64> instead."
31437 msgstr ""
31438
31439 # type: =head2
31440 #. type: =head2
31441 #: ../fish/guestfish-actions.pod:4698
31442 msgid "tune2fs-l"
31443 msgstr ""
31444
31445 # type: verbatim
31446 #. type: verbatim
31447 #: ../fish/guestfish-actions.pod:4700
31448 #, no-wrap
31449 msgid ""
31450 " tune2fs-l device\n"
31451 "\n"
31452 msgstr ""
31453
31454 # type: =head2
31455 #. type: =head2
31456 #: ../fish/guestfish-actions.pod:4710
31457 msgid "txz-in"
31458 msgstr ""
31459
31460 # type: verbatim
31461 #. type: verbatim
31462 #: ../fish/guestfish-actions.pod:4712
31463 #, no-wrap
31464 msgid ""
31465 " txz-in (tarball|-) directory\n"
31466 "\n"
31467 msgstr ""
31468
31469 # type: =head2
31470 #. type: =head2
31471 #: ../fish/guestfish-actions.pod:4719
31472 msgid "txz-out"
31473 msgstr ""
31474
31475 # type: verbatim
31476 #. type: verbatim
31477 #: ../fish/guestfish-actions.pod:4721
31478 #, no-wrap
31479 msgid ""
31480 " txz-out directory (tarball|-)\n"
31481 "\n"
31482 msgstr ""
31483
31484 # type: =head2
31485 #. type: =head2
31486 #: ../fish/guestfish-actions.pod:4728
31487 msgid "umask"
31488 msgstr ""
31489
31490 # type: verbatim
31491 #. type: verbatim
31492 #: ../fish/guestfish-actions.pod:4730
31493 #, no-wrap
31494 msgid ""
31495 " umask mask\n"
31496 "\n"
31497 msgstr ""
31498
31499 # type: textblock
31500 #. type: textblock
31501 #: ../fish/guestfish-actions.pod:4744
31502 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
31503 msgstr ""
31504
31505 # type: =head2
31506 #. type: =head2
31507 #: ../fish/guestfish-actions.pod:4749
31508 msgid "umount"
31509 msgstr ""
31510
31511 # type: =head2
31512 #. type: =head2
31513 #: ../fish/guestfish-actions.pod:4751
31514 msgid "unmount"
31515 msgstr ""
31516
31517 # type: verbatim
31518 #. type: verbatim
31519 #: ../fish/guestfish-actions.pod:4753
31520 #, no-wrap
31521 msgid ""
31522 " umount pathordevice\n"
31523 "\n"
31524 msgstr ""
31525
31526 # type: =head2
31527 #. type: =head2
31528 #: ../fish/guestfish-actions.pod:4759
31529 msgid "umount-all"
31530 msgstr ""
31531
31532 # type: =head2
31533 #. type: =head2
31534 #: ../fish/guestfish-actions.pod:4761
31535 msgid "unmount-all"
31536 msgstr ""
31537
31538 # type: verbatim
31539 #. type: verbatim
31540 #: ../fish/guestfish-actions.pod:4763
31541 #, no-wrap
31542 msgid ""
31543 " umount-all\n"
31544 "\n"
31545 msgstr ""
31546
31547 # type: =head2
31548 #. type: =head2
31549 #: ../fish/guestfish-actions.pod:4769
31550 msgid "upload"
31551 msgstr ""
31552
31553 # type: verbatim
31554 #. type: verbatim
31555 #: ../fish/guestfish-actions.pod:4771
31556 #, no-wrap
31557 msgid ""
31558 " upload (filename|-) remotefilename\n"
31559 "\n"
31560 msgstr ""
31561
31562 # type: textblock
31563 #. type: textblock
31564 #: ../fish/guestfish-actions.pod:4778
31565 msgid "See also L</download>."
31566 msgstr ""
31567
31568 # type: =head2
31569 #. type: =head2
31570 #: ../fish/guestfish-actions.pod:4782
31571 msgid "upload-offset"
31572 msgstr ""
31573
31574 # type: verbatim
31575 #. type: verbatim
31576 #: ../fish/guestfish-actions.pod:4784
31577 #, no-wrap
31578 msgid ""
31579 " upload-offset (filename|-) remotefilename offset\n"
31580 "\n"
31581 msgstr ""
31582
31583 # type: textblock
31584 #. type: textblock
31585 #: ../fish/guestfish-actions.pod:4796
31586 msgid ""
31587 "Note that there is no limit on the amount of data that can be uploaded with "
31588 "this call, unlike with L</pwrite>, and this call always writes the full "
31589 "amount unless an error occurs."
31590 msgstr ""
31591
31592 # type: textblock
31593 #. type: textblock
31594 #: ../fish/guestfish-actions.pod:4801
31595 msgid "See also L</upload>, L</pwrite>."
31596 msgstr ""
31597
31598 # type: =head2
31599 #. type: =head2
31600 #: ../fish/guestfish-actions.pod:4805
31601 msgid "utimens"
31602 msgstr ""
31603
31604 # type: verbatim
31605 #. type: verbatim
31606 #: ../fish/guestfish-actions.pod:4807
31607 #, no-wrap
31608 msgid ""
31609 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
31610 "\n"
31611 msgstr ""
31612
31613 # type: =head2
31614 #. type: =head2
31615 #: ../fish/guestfish-actions.pod:4826
31616 msgid "version"
31617 msgstr ""
31618
31619 # type: verbatim
31620 #. type: verbatim
31621 #: ../fish/guestfish-actions.pod:4828
31622 #, no-wrap
31623 msgid ""
31624 " version\n"
31625 "\n"
31626 msgstr ""
31627
31628 # type: textblock
31629 #. type: textblock
31630 #: ../fish/guestfish-actions.pod:4855
31631 msgid ""
31632 "I<Note:> Don't use this call to test for availability of features.  In "
31633 "enterprise distributions we backport features from later versions into "
31634 "earlier versions, making this an unreliable way to test for features.  Use "
31635 "L</available> instead."
31636 msgstr ""
31637
31638 # type: =head2
31639 #. type: =head2
31640 #: ../fish/guestfish-actions.pod:4861
31641 msgid "vfs-label"
31642 msgstr ""
31643
31644 # type: verbatim
31645 #. type: verbatim
31646 #: ../fish/guestfish-actions.pod:4863
31647 #, no-wrap
31648 msgid ""
31649 " vfs-label device\n"
31650 "\n"
31651 msgstr ""
31652
31653 # type: textblock
31654 #. type: textblock
31655 #: ../fish/guestfish-actions.pod:4870
31656 msgid "To find a filesystem from the label, use L</findfs-label>."
31657 msgstr ""
31658
31659 # type: =head2
31660 #. type: =head2
31661 #: ../fish/guestfish-actions.pod:4872
31662 msgid "vfs-type"
31663 msgstr ""
31664
31665 # type: verbatim
31666 #. type: verbatim
31667 #: ../fish/guestfish-actions.pod:4874
31668 #, no-wrap
31669 msgid ""
31670 " vfs-type device\n"
31671 "\n"
31672 msgstr ""
31673
31674 # type: =head2
31675 #. type: =head2
31676 #: ../fish/guestfish-actions.pod:4884
31677 msgid "vfs-uuid"
31678 msgstr ""
31679
31680 # type: verbatim
31681 #. type: verbatim
31682 #: ../fish/guestfish-actions.pod:4886
31683 #, no-wrap
31684 msgid ""
31685 " vfs-uuid device\n"
31686 "\n"
31687 msgstr ""
31688
31689 # type: textblock
31690 #. type: textblock
31691 #: ../fish/guestfish-actions.pod:4893
31692 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
31693 msgstr ""
31694
31695 # type: =head2
31696 #. type: =head2
31697 #: ../fish/guestfish-actions.pod:4895
31698 msgid "vg-activate"
31699 msgstr ""
31700
31701 # type: verbatim
31702 #. type: verbatim
31703 #: ../fish/guestfish-actions.pod:4897
31704 #, no-wrap
31705 msgid ""
31706 " vg-activate true|false 'volgroups ...'\n"
31707 "\n"
31708 msgstr ""
31709
31710 # type: =head2
31711 #. type: =head2
31712 #: ../fish/guestfish-actions.pod:4907
31713 msgid "vg-activate-all"
31714 msgstr ""
31715
31716 # type: verbatim
31717 #. type: verbatim
31718 #: ../fish/guestfish-actions.pod:4909
31719 #, no-wrap
31720 msgid ""
31721 " vg-activate-all true|false\n"
31722 "\n"
31723 msgstr ""
31724
31725 # type: =head2
31726 #. type: =head2
31727 #: ../fish/guestfish-actions.pod:4916
31728 msgid "vgcreate"
31729 msgstr ""
31730
31731 # type: verbatim
31732 #. type: verbatim
31733 #: ../fish/guestfish-actions.pod:4918
31734 #, no-wrap
31735 msgid ""
31736 " vgcreate volgroup 'physvols ...'\n"
31737 "\n"
31738 msgstr ""
31739
31740 # type: =head2
31741 #. type: =head2
31742 #: ../fish/guestfish-actions.pod:4923
31743 msgid "vglvuuids"
31744 msgstr ""
31745
31746 # type: verbatim
31747 #. type: verbatim
31748 #: ../fish/guestfish-actions.pod:4925
31749 #, no-wrap
31750 msgid ""
31751 " vglvuuids vgname\n"
31752 "\n"
31753 msgstr ""
31754
31755 # type: textblock
31756 #. type: textblock
31757 #: ../fish/guestfish-actions.pod:4930
31758 msgid ""
31759 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
31760 "logical volumes and volume groups."
31761 msgstr ""
31762
31763 # type: textblock
31764 #. type: textblock
31765 #: ../fish/guestfish-actions.pod:4933
31766 msgid "See also L</vgpvuuids>."
31767 msgstr ""
31768
31769 # type: =head2
31770 #. type: =head2
31771 #: ../fish/guestfish-actions.pod:4935
31772 msgid "vgpvuuids"
31773 msgstr ""
31774
31775 # type: verbatim
31776 #. type: verbatim
31777 #: ../fish/guestfish-actions.pod:4937
31778 #, no-wrap
31779 msgid ""
31780 " vgpvuuids vgname\n"
31781 "\n"
31782 msgstr ""
31783
31784 # type: textblock
31785 #. type: textblock
31786 #: ../fish/guestfish-actions.pod:4942
31787 msgid ""
31788 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
31789 "physical volumes and volume groups."
31790 msgstr ""
31791
31792 # type: textblock
31793 #. type: textblock
31794 #: ../fish/guestfish-actions.pod:4945
31795 msgid "See also L</vglvuuids>."
31796 msgstr ""
31797
31798 # type: =head2
31799 #. type: =head2
31800 #: ../fish/guestfish-actions.pod:4947
31801 msgid "vgremove"
31802 msgstr ""
31803
31804 # type: verbatim
31805 #. type: verbatim
31806 #: ../fish/guestfish-actions.pod:4949
31807 #, no-wrap
31808 msgid ""
31809 " vgremove vgname\n"
31810 "\n"
31811 msgstr ""
31812
31813 # type: =head2
31814 #. type: =head2
31815 #: ../fish/guestfish-actions.pod:4956
31816 msgid "vgrename"
31817 msgstr ""
31818
31819 # type: verbatim
31820 #. type: verbatim
31821 #: ../fish/guestfish-actions.pod:4958
31822 #, no-wrap
31823 msgid ""
31824 " vgrename volgroup newvolgroup\n"
31825 "\n"
31826 msgstr ""
31827
31828 # type: =head2
31829 #. type: =head2
31830 #: ../fish/guestfish-actions.pod:4962
31831 msgid "vgs"
31832 msgstr ""
31833
31834 # type: verbatim
31835 #. type: verbatim
31836 #: ../fish/guestfish-actions.pod:4964
31837 #, no-wrap
31838 msgid ""
31839 " vgs\n"
31840 "\n"
31841 msgstr ""
31842
31843 # type: textblock
31844 #. type: textblock
31845 #: ../fish/guestfish-actions.pod:4972
31846 msgid "See also L</vgs-full>."
31847 msgstr ""
31848
31849 # type: =head2
31850 #. type: =head2
31851 #: ../fish/guestfish-actions.pod:4974
31852 msgid "vgs-full"
31853 msgstr ""
31854
31855 # type: verbatim
31856 #. type: verbatim
31857 #: ../fish/guestfish-actions.pod:4976
31858 #, no-wrap
31859 msgid ""
31860 " vgs-full\n"
31861 "\n"
31862 msgstr ""
31863
31864 # type: =head2
31865 #. type: =head2
31866 #: ../fish/guestfish-actions.pod:4981
31867 msgid "vgscan"
31868 msgstr ""
31869
31870 # type: verbatim
31871 #. type: verbatim
31872 #: ../fish/guestfish-actions.pod:4983
31873 #, no-wrap
31874 msgid ""
31875 " vgscan\n"
31876 "\n"
31877 msgstr ""
31878
31879 # type: =head2
31880 #. type: =head2
31881 #: ../fish/guestfish-actions.pod:4988
31882 msgid "vguuid"
31883 msgstr ""
31884
31885 # type: verbatim
31886 #. type: verbatim
31887 #: ../fish/guestfish-actions.pod:4990
31888 #, no-wrap
31889 msgid ""
31890 " vguuid vgname\n"
31891 "\n"
31892 msgstr ""
31893
31894 # type: =head2
31895 #. type: =head2
31896 #: ../fish/guestfish-actions.pod:4994
31897 msgid "wc-c"
31898 msgstr ""
31899
31900 # type: verbatim
31901 #. type: verbatim
31902 #: ../fish/guestfish-actions.pod:4996
31903 #, no-wrap
31904 msgid ""
31905 " wc-c path\n"
31906 "\n"
31907 msgstr ""
31908
31909 # type: =head2
31910 #. type: =head2
31911 #: ../fish/guestfish-actions.pod:5001
31912 msgid "wc-l"
31913 msgstr ""
31914
31915 # type: verbatim
31916 #. type: verbatim
31917 #: ../fish/guestfish-actions.pod:5003
31918 #, no-wrap
31919 msgid ""
31920 " wc-l path\n"
31921 "\n"
31922 msgstr ""
31923
31924 # type: =head2
31925 #. type: =head2
31926 #: ../fish/guestfish-actions.pod:5008
31927 msgid "wc-w"
31928 msgstr ""
31929
31930 # type: verbatim
31931 #. type: verbatim
31932 #: ../fish/guestfish-actions.pod:5010
31933 #, no-wrap
31934 msgid ""
31935 " wc-w path\n"
31936 "\n"
31937 msgstr ""
31938
31939 # type: =head2
31940 #. type: =head2
31941 #: ../fish/guestfish-actions.pod:5015
31942 msgid "write"
31943 msgstr ""
31944
31945 # type: verbatim
31946 #. type: verbatim
31947 #: ../fish/guestfish-actions.pod:5017
31948 #, no-wrap
31949 msgid ""
31950 " write path content\n"
31951 "\n"
31952 msgstr ""
31953
31954 # type: =head2
31955 #. type: =head2
31956 #: ../fish/guestfish-actions.pod:5025
31957 msgid "write-file"
31958 msgstr ""
31959
31960 # type: verbatim
31961 #. type: verbatim
31962 #: ../fish/guestfish-actions.pod:5027
31963 #, no-wrap
31964 msgid ""
31965 " write-file path content size\n"
31966 "\n"
31967 msgstr ""
31968
31969 # type: =head2
31970 #. type: =head2
31971 #: ../fish/guestfish-actions.pod:5050
31972 msgid "zegrep"
31973 msgstr ""
31974
31975 # type: verbatim
31976 #. type: verbatim
31977 #: ../fish/guestfish-actions.pod:5052
31978 #, no-wrap
31979 msgid ""
31980 " zegrep regex path\n"
31981 "\n"
31982 msgstr ""
31983
31984 # type: =head2
31985 #. type: =head2
31986 #: ../fish/guestfish-actions.pod:5060
31987 msgid "zegrepi"
31988 msgstr ""
31989
31990 # type: verbatim
31991 #. type: verbatim
31992 #: ../fish/guestfish-actions.pod:5062
31993 #, no-wrap
31994 msgid ""
31995 " zegrepi regex path\n"
31996 "\n"
31997 msgstr ""
31998
31999 # type: =head2
32000 #. type: =head2
32001 #: ../fish/guestfish-actions.pod:5070
32002 msgid "zero"
32003 msgstr ""
32004
32005 # type: verbatim
32006 #. type: verbatim
32007 #: ../fish/guestfish-actions.pod:5072
32008 #, no-wrap
32009 msgid ""
32010 " zero device\n"
32011 "\n"
32012 msgstr ""
32013
32014 #. type: textblock
32015 #: ../fish/guestfish-actions.pod:5080
32016 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
32017 msgstr ""
32018
32019 # type: =head2
32020 #. type: =head2
32021 #: ../fish/guestfish-actions.pod:5083
32022 msgid "zero-device"
32023 msgstr ""
32024
32025 # type: verbatim
32026 #. type: verbatim
32027 #: ../fish/guestfish-actions.pod:5085
32028 #, no-wrap
32029 msgid ""
32030 " zero-device device\n"
32031 "\n"
32032 msgstr ""
32033
32034 # type: textblock
32035 #. type: textblock
32036 #: ../fish/guestfish-actions.pod:5087
32037 msgid ""
32038 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
32039 "which just zeroes the first few blocks of a device."
32040 msgstr ""
32041
32042 # type: =head2
32043 #. type: =head2
32044 #: ../fish/guestfish-actions.pod:5094
32045 msgid "zerofree"
32046 msgstr ""
32047
32048 # type: verbatim
32049 #. type: verbatim
32050 #: ../fish/guestfish-actions.pod:5096
32051 #, no-wrap
32052 msgid ""
32053 " zerofree device\n"
32054 "\n"
32055 msgstr ""
32056
32057 # type: =head2
32058 #. type: =head2
32059 #: ../fish/guestfish-actions.pod:5109
32060 msgid "zfgrep"
32061 msgstr ""
32062
32063 # type: verbatim
32064 #. type: verbatim
32065 #: ../fish/guestfish-actions.pod:5111
32066 #, no-wrap
32067 msgid ""
32068 " zfgrep pattern path\n"
32069 "\n"
32070 msgstr ""
32071
32072 # type: =head2
32073 #. type: =head2
32074 #: ../fish/guestfish-actions.pod:5119
32075 msgid "zfgrepi"
32076 msgstr ""
32077
32078 # type: verbatim
32079 #. type: verbatim
32080 #: ../fish/guestfish-actions.pod:5121
32081 #, no-wrap
32082 msgid ""
32083 " zfgrepi pattern path\n"
32084 "\n"
32085 msgstr ""
32086
32087 # type: =head2
32088 #. type: =head2
32089 #: ../fish/guestfish-actions.pod:5129
32090 msgid "zfile"
32091 msgstr ""
32092
32093 # type: verbatim
32094 #. type: verbatim
32095 #: ../fish/guestfish-actions.pod:5131
32096 #, no-wrap
32097 msgid ""
32098 " zfile meth path\n"
32099 "\n"
32100 msgstr ""
32101
32102 # type: textblock
32103 #. type: textblock
32104 #: ../fish/guestfish-actions.pod:5138
32105 msgid ""
32106 "Since 1.0.63, use L</file> instead which can now process compressed files."
32107 msgstr ""
32108
32109 # type: =head2
32110 #. type: =head2
32111 #: ../fish/guestfish-actions.pod:5148
32112 msgid "zgrep"
32113 msgstr ""
32114
32115 # type: verbatim
32116 #. type: verbatim
32117 #: ../fish/guestfish-actions.pod:5150
32118 #, no-wrap
32119 msgid ""
32120 " zgrep regex path\n"
32121 "\n"
32122 msgstr ""
32123
32124 # type: =head2
32125 #. type: =head2
32126 #: ../fish/guestfish-actions.pod:5158
32127 msgid "zgrepi"
32128 msgstr ""
32129
32130 # type: verbatim
32131 #. type: verbatim
32132 #: ../fish/guestfish-actions.pod:5160
32133 #, no-wrap
32134 msgid ""
32135 " zgrepi regex path\n"
32136 "\n"
32137 msgstr ""
32138
32139 # type: =head2
32140 #. type: =head2
32141 #: ../fish/guestfish-commands.pod:1
32142 msgid "alloc"
32143 msgstr ""
32144
32145 # type: =head2
32146 #. type: =head2
32147 #: ../fish/guestfish-commands.pod:3
32148 msgid "allocate"
32149 msgstr ""
32150
32151 # type: verbatim
32152 #. type: verbatim
32153 #: ../fish/guestfish-commands.pod:5
32154 #, no-wrap
32155 msgid ""
32156 " alloc filename size\n"
32157 "\n"
32158 msgstr ""
32159
32160 # type: textblock
32161 #. type: textblock
32162 #: ../fish/guestfish-commands.pod:7
32163 msgid ""
32164 "This creates an empty (zeroed) file of the given size, and then adds so it "
32165 "can be further examined."
32166 msgstr ""
32167
32168 # type: textblock
32169 #. type: textblock
32170 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:182
32171 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
32172 msgstr ""
32173
32174 # type: textblock
32175 #. type: textblock
32176 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:184
32177 msgid "Size can be specified using standard suffixes, eg. C<1M>."
32178 msgstr ""
32179
32180 # type: textblock
32181 #. type: textblock
32182 #: ../fish/guestfish-commands.pod:14
32183 msgid ""
32184 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
32185 "image, see L</PREPARED DISK IMAGES>."
32186 msgstr ""
32187
32188 # type: =head2
32189 #. type: =head2
32190 #: ../fish/guestfish-commands.pod:17
32191 msgid "copy-in"
32192 msgstr ""
32193
32194 # type: verbatim
32195 #. type: verbatim
32196 #: ../fish/guestfish-commands.pod:19
32197 #, no-wrap
32198 msgid ""
32199 " copy-in local [local ...] /remotedir\n"
32200 "\n"
32201 msgstr ""
32202
32203 # type: textblock
32204 #. type: textblock
32205 #: ../fish/guestfish-commands.pod:21
32206 msgid ""
32207 "C<copy-in> copies local files or directories recursively into the disk "
32208 "image, placing them in the directory called C</remotedir> (which must "
32209 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
32210 "other commands as necessary."
32211 msgstr ""
32212
32213 # type: textblock
32214 #. type: textblock
32215 #: ../fish/guestfish-commands.pod:26
32216 msgid ""
32217 "Multiple local files and directories can be specified, but the last "
32218 "parameter must always be a remote directory.  Wildcards cannot be used."
32219 msgstr ""
32220
32221 # type: =head2
32222 #. type: =head2
32223 #: ../fish/guestfish-commands.pod:30
32224 msgid "copy-out"
32225 msgstr ""
32226
32227 # type: verbatim
32228 #. type: verbatim
32229 #: ../fish/guestfish-commands.pod:32
32230 #, no-wrap
32231 msgid ""
32232 " copy-out remote [remote ...] localdir\n"
32233 "\n"
32234 msgstr ""
32235
32236 # type: textblock
32237 #. type: textblock
32238 #: ../fish/guestfish-commands.pod:34
32239 msgid ""
32240 "C<copy-out> copies remote files or directories recursively out of the disk "
32241 "image, placing them on the host disk in a local directory called C<localdir> "
32242 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
32243 "download>, L</tar-out> and other commands as necessary."
32244 msgstr ""
32245
32246 # type: textblock
32247 #. type: textblock
32248 #: ../fish/guestfish-commands.pod:40
32249 msgid ""
32250 "Multiple remote files and directories can be specified, but the last "
32251 "parameter must always be a local directory.  To download to the current "
32252 "directory, use C<.> as in:"
32253 msgstr ""
32254
32255 # type: verbatim
32256 #. type: verbatim
32257 #: ../fish/guestfish-commands.pod:44
32258 #, no-wrap
32259 msgid ""
32260 " copy-out /home .\n"
32261 "\n"
32262 msgstr ""
32263
32264 # type: textblock
32265 #. type: textblock
32266 #: ../fish/guestfish-commands.pod:46
32267 msgid ""
32268 "Wildcards cannot be used in the ordinary command, but you can use them with "
32269 "the help of L</glob> like this:"
32270 msgstr ""
32271
32272 # type: verbatim
32273 #. type: verbatim
32274 #: ../fish/guestfish-commands.pod:49
32275 #, no-wrap
32276 msgid ""
32277 " glob copy-out /home/* .\n"
32278 "\n"
32279 msgstr ""
32280
32281 #. type: =head2
32282 #: ../fish/guestfish-commands.pod:51
32283 msgid "display"
32284 msgstr ""
32285
32286 #. type: verbatim
32287 #: ../fish/guestfish-commands.pod:53
32288 #, no-wrap
32289 msgid ""
32290 " display filename\n"
32291 "\n"
32292 msgstr ""
32293
32294 #. type: textblock
32295 #: ../fish/guestfish-commands.pod:55
32296 msgid ""
32297 "Use C<display> (a graphical display program) to display an image file.  It "
32298 "downloads the file, and runs C<display> on it."
32299 msgstr ""
32300
32301 #. type: textblock
32302 #: ../fish/guestfish-commands.pod:58
32303 msgid ""
32304 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
32305 "environment variable.  For example to use the GNOME display program:"
32306 msgstr ""
32307
32308 #. type: verbatim
32309 #: ../fish/guestfish-commands.pod:61
32310 #, no-wrap
32311 msgid ""
32312 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
32313 "\n"
32314 msgstr ""
32315
32316 #. type: textblock
32317 #: ../fish/guestfish-commands.pod:63
32318 msgid "See also L<display(1)>."
32319 msgstr ""
32320
32321 # type: =head2
32322 #. type: =head2
32323 #: ../fish/guestfish-commands.pod:65
32324 msgid "echo"
32325 msgstr ""
32326
32327 # type: verbatim
32328 #. type: verbatim
32329 #: ../fish/guestfish-commands.pod:67
32330 #, no-wrap
32331 msgid ""
32332 " echo [params ...]\n"
32333 "\n"
32334 msgstr ""
32335
32336 # type: textblock
32337 #. type: textblock
32338 #: ../fish/guestfish-commands.pod:69
32339 msgid "This echos the parameters to the terminal."
32340 msgstr ""
32341
32342 # type: =head2
32343 #. type: =head2
32344 #: ../fish/guestfish-commands.pod:71
32345 msgid "edit"
32346 msgstr ""
32347
32348 # type: =head2
32349 #. type: =head2
32350 #: ../fish/guestfish-commands.pod:73
32351 msgid "vi"
32352 msgstr ""
32353
32354 # type: =head2
32355 #. type: =head2
32356 #: ../fish/guestfish-commands.pod:75
32357 msgid "emacs"
32358 msgstr ""
32359
32360 # type: verbatim
32361 #. type: verbatim
32362 #: ../fish/guestfish-commands.pod:77
32363 #, no-wrap
32364 msgid ""
32365 " edit filename\n"
32366 "\n"
32367 msgstr ""
32368
32369 # type: textblock
32370 #. type: textblock
32371 #: ../fish/guestfish-commands.pod:79
32372 msgid ""
32373 "This is used to edit a file.  It downloads the file, edits it locally using "
32374 "your editor, then uploads the result."
32375 msgstr ""
32376
32377 # type: textblock
32378 #. type: textblock
32379 #: ../fish/guestfish-commands.pod:82
32380 msgid ""
32381 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
32382 "or C<emacs> you will get those corresponding editors."
32383 msgstr ""
32384
32385 # type: =head2
32386 #. type: =head2
32387 #: ../fish/guestfish-commands.pod:86
32388 msgid "glob"
32389 msgstr ""
32390
32391 # type: verbatim
32392 #. type: verbatim
32393 #: ../fish/guestfish-commands.pod:88
32394 #, no-wrap
32395 msgid ""
32396 " glob command args...\n"
32397 "\n"
32398 msgstr ""
32399
32400 # type: textblock
32401 #. type: textblock
32402 #: ../fish/guestfish-commands.pod:90
32403 msgid ""
32404 "Expand wildcards in any paths in the args list, and run C<command> "
32405 "repeatedly on each matching path."
32406 msgstr ""
32407
32408 # type: textblock
32409 #. type: textblock
32410 #: ../fish/guestfish-commands.pod:93
32411 msgid "See L</WILDCARDS AND GLOBBING>."
32412 msgstr ""
32413
32414 # type: =head2
32415 #. type: =head2
32416 #: ../fish/guestfish-commands.pod:95
32417 msgid "hexedit"
32418 msgstr ""
32419
32420 # type: verbatim
32421 #. type: verbatim
32422 #: ../fish/guestfish-commands.pod:97
32423 #, no-wrap
32424 msgid ""
32425 " hexedit <filename|device>\n"
32426 " hexedit <filename|device> <max>\n"
32427 " hexedit <filename|device> <start> <max>\n"
32428 "\n"
32429 msgstr ""
32430
32431 # type: textblock
32432 #. type: textblock
32433 #: ../fish/guestfish-commands.pod:101
32434 msgid ""
32435 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
32436 "device."
32437 msgstr ""
32438
32439 # type: textblock
32440 #. type: textblock
32441 #: ../fish/guestfish-commands.pod:104
32442 msgid ""
32443 "This command works by downloading potentially the whole file or device, "
32444 "editing it locally, then uploading it.  If the file or device is large, you "
32445 "have to specify which part you wish to edit by using C<max> and/or C<start> "
32446 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
32447 "usual modifiers allowed such as C<1M> (1 megabyte)."
32448 msgstr ""
32449
32450 # type: textblock
32451 #. type: textblock
32452 #: ../fish/guestfish-commands.pod:111
32453 msgid "For example to edit the first few sectors of a disk you might do:"
32454 msgstr ""
32455
32456 # type: verbatim
32457 #. type: verbatim
32458 #: ../fish/guestfish-commands.pod:114
32459 #, no-wrap
32460 msgid ""
32461 " hexedit /dev/sda 1M\n"
32462 "\n"
32463 msgstr ""
32464
32465 # type: textblock
32466 #. type: textblock
32467 #: ../fish/guestfish-commands.pod:116
32468 msgid ""
32469 "which would allow you to edit anywhere within the first megabyte of the disk."
32470 msgstr ""
32471
32472 # type: textblock
32473 #. type: textblock
32474 #: ../fish/guestfish-commands.pod:119
32475 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
32476 msgstr ""
32477
32478 # type: verbatim
32479 #. type: verbatim
32480 #: ../fish/guestfish-commands.pod:121
32481 #, no-wrap
32482 msgid ""
32483 " hexedit /dev/sda1 0x400 0x400\n"
32484 "\n"
32485 msgstr ""
32486
32487 # type: textblock
32488 #. type: textblock
32489 #: ../fish/guestfish-commands.pod:123
32490 msgid "(assuming the superblock is in the standard location)."
32491 msgstr ""
32492
32493 # type: textblock
32494 #. type: textblock
32495 #: ../fish/guestfish-commands.pod:125
32496 msgid ""
32497 "This command requires the external L<hexedit(1)> program.  You can specify "
32498 "another program to use by setting the C<HEXEDITOR> environment variable."
32499 msgstr ""
32500
32501 # type: textblock
32502 #. type: textblock
32503 #: ../fish/guestfish-commands.pod:129
32504 msgid "See also L</hexdump>."
32505 msgstr ""
32506
32507 # type: =head2
32508 #. type: =head2
32509 #: ../fish/guestfish-commands.pod:131
32510 msgid "lcd"
32511 msgstr ""
32512
32513 # type: verbatim
32514 #. type: verbatim
32515 #: ../fish/guestfish-commands.pod:133
32516 #, no-wrap
32517 msgid ""
32518 " lcd directory\n"
32519 "\n"
32520 msgstr ""
32521
32522 # type: textblock
32523 #. type: textblock
32524 #: ../fish/guestfish-commands.pod:135
32525 msgid ""
32526 "Change the local directory, ie. the current directory of guestfish itself."
32527 msgstr ""
32528
32529 # type: textblock
32530 #. type: textblock
32531 #: ../fish/guestfish-commands.pod:138
32532 msgid "Note that C<!cd> won't do what you might expect."
32533 msgstr ""
32534
32535 # type: =head2
32536 #. type: =head2
32537 #: ../fish/guestfish-commands.pod:140
32538 msgid "man"
32539 msgstr ""
32540
32541 # type: =head2
32542 #. type: =head2
32543 #: ../fish/guestfish-commands.pod:142
32544 msgid "manual"
32545 msgstr ""
32546
32547 # type: verbatim
32548 #. type: verbatim
32549 #: ../fish/guestfish-commands.pod:144
32550 #, no-wrap
32551 msgid ""
32552 "  man\n"
32553 "\n"
32554 msgstr ""
32555
32556 # type: textblock
32557 #. type: textblock
32558 #: ../fish/guestfish-commands.pod:146
32559 msgid "Opens the manual page for guestfish."
32560 msgstr ""
32561
32562 # type: =head2
32563 #. type: =head2
32564 #: ../fish/guestfish-commands.pod:148
32565 msgid "more"
32566 msgstr ""
32567
32568 # type: =head2
32569 #. type: =head2
32570 #: ../fish/guestfish-commands.pod:150
32571 msgid "less"
32572 msgstr ""
32573
32574 # type: verbatim
32575 #. type: verbatim
32576 #: ../fish/guestfish-commands.pod:152
32577 #, no-wrap
32578 msgid ""
32579 " more filename\n"
32580 "\n"
32581 msgstr ""
32582
32583 # type: verbatim
32584 #. type: verbatim
32585 #: ../fish/guestfish-commands.pod:154
32586 #, no-wrap
32587 msgid ""
32588 " less filename\n"
32589 "\n"
32590 msgstr ""
32591
32592 # type: textblock
32593 #. type: textblock
32594 #: ../fish/guestfish-commands.pod:156
32595 msgid "This is used to view a file."
32596 msgstr ""
32597
32598 # type: textblock
32599 #. type: textblock
32600 #: ../fish/guestfish-commands.pod:158
32601 msgid ""
32602 "The default viewer is C<$PAGER>.  However if you use the alternate command "
32603 "C<less> you will get the C<less> command specifically."
32604 msgstr ""
32605
32606 # type: =head2
32607 #. type: =head2
32608 #: ../fish/guestfish-commands.pod:161
32609 msgid "reopen"
32610 msgstr ""
32611
32612 # type: verbatim
32613 #. type: verbatim
32614 #: ../fish/guestfish-commands.pod:163
32615 #, no-wrap
32616 msgid ""
32617 "  reopen\n"
32618 "\n"
32619 msgstr ""
32620
32621 # type: textblock
32622 #. type: textblock
32623 #: ../fish/guestfish-commands.pod:165
32624 msgid ""
32625 "Close and reopen the libguestfs handle.  It is not necessary to use this "
32626 "normally, because the handle is closed properly when guestfish exits.  "
32627 "However this is occasionally useful for testing."
32628 msgstr ""
32629
32630 # type: =head2
32631 #. type: =head2
32632 #: ../fish/guestfish-commands.pod:169
32633 msgid "sparse"
32634 msgstr ""
32635
32636 # type: verbatim
32637 #. type: verbatim
32638 #: ../fish/guestfish-commands.pod:171
32639 #, no-wrap
32640 msgid ""
32641 " sparse filename size\n"
32642 "\n"
32643 msgstr ""
32644
32645 # type: textblock
32646 #. type: textblock
32647 #: ../fish/guestfish-commands.pod:173
32648 msgid ""
32649 "This creates an empty sparse file of the given size, and then adds so it can "
32650 "be further examined."
32651 msgstr ""
32652
32653 # type: textblock
32654 #. type: textblock
32655 #: ../fish/guestfish-commands.pod:176
32656 msgid ""
32657 "In all respects it works the same as the L</alloc> command, except that the "
32658 "image file is allocated sparsely, which means that disk blocks are not "
32659 "assigned to the file until they are needed.  Sparse disk files only use "
32660 "space when written to, but they are slower and there is a danger you could "
32661 "run out of real disk space during a write operation."
32662 msgstr ""
32663
32664 # type: =head2
32665 #. type: =head2
32666 #: ../fish/guestfish-commands.pod:186
32667 msgid "supported"
32668 msgstr ""
32669
32670 # type: verbatim
32671 #. type: verbatim
32672 #: ../fish/guestfish-commands.pod:188
32673 #, no-wrap
32674 msgid ""
32675 " supported\n"
32676 "\n"
32677 msgstr ""
32678
32679 # type: textblock
32680 #. type: textblock
32681 #: ../fish/guestfish-commands.pod:190
32682 msgid ""
32683 "This command returns a list of the optional groups known to the daemon, and "
32684 "indicates which ones are supported by this build of the libguestfs appliance."
32685 msgstr ""
32686
32687 # type: textblock
32688 #. type: textblock
32689 #: ../fish/guestfish-commands.pod:194
32690 msgid "See also L<guestfs(3)/AVAILABILITY>."
32691 msgstr ""
32692
32693 # type: =head2
32694 #. type: =head2
32695 #: ../fish/guestfish-commands.pod:196
32696 msgid "time"
32697 msgstr ""
32698
32699 # type: verbatim
32700 #. type: verbatim
32701 #: ../fish/guestfish-commands.pod:198
32702 #, no-wrap
32703 msgid ""
32704 " time command args...\n"
32705 "\n"
32706 msgstr ""
32707
32708 # type: textblock
32709 #. type: textblock
32710 #: ../fish/guestfish-commands.pod:200
32711 msgid ""
32712 "Run the command as usual, but print the elapsed time afterwards.  This can "
32713 "be useful for benchmarking operations."
32714 msgstr ""
32715
32716 # type: textblock
32717 #. type: textblock
32718 #: ../test-tool/libguestfs-test-tool.pod:5
32719 msgid "libguestfs-test-tool - End user tests for libguestfs"
32720 msgstr ""
32721
32722 # type: verbatim
32723 #. type: verbatim
32724 #: ../test-tool/libguestfs-test-tool.pod:9
32725 #, no-wrap
32726 msgid ""
32727 " libguestfs-test-tool [--options]\n"
32728 "\n"
32729 msgstr ""
32730
32731 # type: textblock
32732 #. type: textblock
32733 #: ../test-tool/libguestfs-test-tool.pod:13
32734 msgid ""
32735 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
32736 "and developers, to allow them to check basic libguestfs functionality is "
32737 "working.  This is needed because libguestfs occasionally breaks for reasons "
32738 "beyond our control: usually because of changes in the underlying qemu or "
32739 "kernel packages, or the host environment."
32740 msgstr ""
32741
32742 # type: textblock
32743 #. type: textblock
32744 #: ../test-tool/libguestfs-test-tool.pod:20
32745 msgid "If you suspect a problem in libguestfs, then just run:"
32746 msgstr ""
32747
32748 # type: verbatim
32749 #. type: verbatim
32750 #: ../test-tool/libguestfs-test-tool.pod:22
32751 #, no-wrap
32752 msgid ""
32753 " libguestfs-test-tool\n"
32754 "\n"
32755 msgstr ""
32756
32757 # type: textblock
32758 #. type: textblock
32759 #: ../test-tool/libguestfs-test-tool.pod:24
32760 msgid "It will print lots of diagnostic messages."
32761 msgstr ""
32762
32763 # type: textblock
32764 #. type: textblock
32765 #: ../test-tool/libguestfs-test-tool.pod:26
32766 msgid "If it runs to completion successfully, you will see this near the end:"
32767 msgstr ""
32768
32769 # type: verbatim
32770 #. type: verbatim
32771 #: ../test-tool/libguestfs-test-tool.pod:28
32772 #, no-wrap
32773 msgid ""
32774 " ===== TEST FINISHED OK =====\n"
32775 "\n"
32776 msgstr ""
32777
32778 # type: textblock
32779 #. type: textblock
32780 #: ../test-tool/libguestfs-test-tool.pod:30
32781 msgid "and the test tool will exit with code 0."
32782 msgstr ""
32783
32784 # type: textblock
32785 #. type: textblock
32786 #: ../test-tool/libguestfs-test-tool.pod:32
32787 msgid ""
32788 "If it fails (and/or exits with non-zero error code), please paste the "
32789 "B<complete, unedited> output of the test tool into a bug report.  More "
32790 "information about reporting bugs can be found on the L<http://libguestfs.org/"
32791 "> website."
32792 msgstr ""
32793
32794 # type: =item
32795 #. type: =item
32796 #: ../test-tool/libguestfs-test-tool.pod:41
32797 msgid "I<--help>"
32798 msgstr ""
32799
32800 # type: textblock
32801 #. type: textblock
32802 #: ../test-tool/libguestfs-test-tool.pod:43
32803 msgid "Display short usage information and exit."
32804 msgstr ""
32805
32806 # type: =item
32807 #. type: =item
32808 #: ../test-tool/libguestfs-test-tool.pod:45
32809 msgid "I<--qemu qemu_binary>"
32810 msgstr ""
32811
32812 # type: textblock
32813 #. type: textblock
32814 #: ../test-tool/libguestfs-test-tool.pod:47
32815 msgid ""
32816 "If you have downloaded another qemu binary, point this option at the full "
32817 "path of the binary to try it."
32818 msgstr ""
32819
32820 # type: =item
32821 #. type: =item
32822 #: ../test-tool/libguestfs-test-tool.pod:50
32823 msgid "I<--qemudir qemu_source_dir>"
32824 msgstr ""
32825
32826 # type: textblock
32827 #. type: textblock
32828 #: ../test-tool/libguestfs-test-tool.pod:52
32829 msgid ""
32830 "If you have compiled qemu from source, point this option at the source "
32831 "directory to try it."
32832 msgstr ""
32833
32834 # type: =item
32835 #. type: =item
32836 #: ../test-tool/libguestfs-test-tool.pod:55
32837 msgid "I<--timeout N>"
32838 msgstr ""
32839
32840 # type: textblock
32841 #. type: textblock
32842 #: ../test-tool/libguestfs-test-tool.pod:57
32843 msgid ""
32844 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
32845 "does not usually need to be adjusted unless your machine is very slow."
32846 msgstr ""
32847
32848 # type: =head1
32849 #. type: =head1
32850 #: ../test-tool/libguestfs-test-tool.pod:63
32851 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
32852 msgstr ""
32853
32854 # type: textblock
32855 #. type: textblock
32856 #: ../test-tool/libguestfs-test-tool.pod:65
32857 msgid ""
32858 "If you have compiled another version of qemu from source and would like to "
32859 "try that, then you can use the I<--qemudir> option to point to the qemu "
32860 "source directory."
32861 msgstr ""
32862
32863 # type: textblock
32864 #. type: textblock
32865 #: ../test-tool/libguestfs-test-tool.pod:69
32866 msgid ""
32867 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
32868 "option to point to the binary."
32869 msgstr ""
32870
32871 # type: textblock
32872 #. type: textblock
32873 #: ../test-tool/libguestfs-test-tool.pod:72
32874 msgid ""
32875 "When using an alternate qemu with libguestfs, usually you would need to "
32876 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
32877 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
32878 "use either of the I<--qemudir> or I<--qemu> options."
32879 msgstr ""
32880
32881 # type: textblock
32882 #. type: textblock
32883 #: ../test-tool/libguestfs-test-tool.pod:79
32884 msgid ""
32885 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
32886 "I<1> if there was an error."
32887 msgstr ""
32888
32889 # type: textblock
32890 #. type: textblock
32891 #: ../test-tool/libguestfs-test-tool.pod:84
32892 msgid ""
32893 "For the full list of environment variables which may affect libguestfs, "
32894 "please see the L<guestfs(3)> manual page."
32895 msgstr ""
32896
32897 # type: textblock
32898 #. type: textblock
32899 #: ../test-tool/libguestfs-test-tool.pod:89
32900 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
32901 msgstr ""
32902
32903 # type: textblock
32904 #. type: textblock
32905 #: ../fuse/guestmount.pod:5
32906 msgid ""
32907 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
32908 msgstr ""
32909
32910 # type: verbatim
32911 #. type: verbatim
32912 #: ../fuse/guestmount.pod:9
32913 #, no-wrap
32914 msgid ""
32915 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
32916 "\n"
32917 msgstr ""
32918
32919 # type: verbatim
32920 #. type: verbatim
32921 #: ../fuse/guestmount.pod:11
32922 #, no-wrap
32923 msgid ""
32924 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
32925 "\n"
32926 msgstr ""
32927
32928 # type: verbatim
32929 #. type: verbatim
32930 #: ../fuse/guestmount.pod:13
32931 #, no-wrap
32932 msgid ""
32933 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
32934 "\n"
32935 msgstr ""
32936
32937 # type: textblock
32938 #. type: textblock
32939 #: ../fuse/guestmount.pod:17
32940 msgid ""
32941 "You must I<not> use C<guestmount> in read-write mode on live virtual "
32942 "machines.  If you do this, you risk disk corruption in the VM."
32943 msgstr ""
32944
32945 # type: textblock
32946 #. type: textblock
32947 #: ../fuse/guestmount.pod:22
32948 msgid ""
32949 "The guestmount program can be used to mount virtual machine filesystems and "
32950 "other disk images on the host.  It uses libguestfs for access to the guest "
32951 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
32952 "a mountable device."
32953 msgstr ""
32954
32955 # type: textblock
32956 #. type: textblock
32957 #: ../fuse/guestmount.pod:27
32958 msgid ""
32959 "Along with other options, you have to give at least one device (I<-a> "
32960 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
32961 "option) or use the I<-i> inspection option.  How this works is better "
32962 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
32963 "below."
32964 msgstr ""
32965
32966 # type: textblock
32967 #. type: textblock
32968 #: ../fuse/guestmount.pod:33
32969 msgid ""
32970 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
32971 "by you, and the filesystem will not be visible to any other users unless you "
32972 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
32973 "the filesystem, use the C<fusermount -u> command."
32974 msgstr ""
32975
32976 # type: textblock
32977 #. type: textblock
32978 #: ../fuse/guestmount.pod:41
32979 msgid ""
32980 "For a typical Windows guest which has its main filesystem on the first "
32981 "partition:"
32982 msgstr ""
32983
32984 # type: verbatim
32985 #. type: verbatim
32986 #: ../fuse/guestmount.pod:44
32987 #, no-wrap
32988 msgid ""
32989 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
32990 "\n"
32991 msgstr ""
32992
32993 # type: textblock
32994 #. type: textblock
32995 #: ../fuse/guestmount.pod:46
32996 msgid ""
32997 "For a typical Linux guest which has a /boot filesystem on the first "
32998 "partition, and the root filesystem on a logical volume:"
32999 msgstr ""
33000
33001 # type: verbatim
33002 #. type: verbatim
33003 #: ../fuse/guestmount.pod:49
33004 #, no-wrap
33005 msgid ""
33006 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
33007 "\n"
33008 msgstr ""
33009
33010 # type: textblock
33011 #. type: textblock
33012 #: ../fuse/guestmount.pod:51
33013 msgid "To get libguestfs to detect guest mountpoints for you:"
33014 msgstr ""
33015
33016 # type: verbatim
33017 #. type: verbatim
33018 #: ../fuse/guestmount.pod:53
33019 #, no-wrap
33020 msgid ""
33021 " guestmount -a guest.img -i --ro /mnt\n"
33022 "\n"
33023 msgstr ""
33024
33025 # type: textblock
33026 #. type: textblock
33027 #: ../fuse/guestmount.pod:55
33028 msgid "For a libvirt guest called \"Guest\" you could do:"
33029 msgstr ""
33030
33031 # type: verbatim
33032 #. type: verbatim
33033 #: ../fuse/guestmount.pod:57
33034 #, no-wrap
33035 msgid ""
33036 " guestmount -d Guest -i --ro /mnt\n"
33037 "\n"
33038 msgstr ""
33039
33040 # type: textblock
33041 #. type: textblock
33042 #: ../fuse/guestmount.pod:59
33043 msgid ""
33044 "If you don't know what filesystems are contained in a guest or disk image, "
33045 "use L<virt-filesystems(1)> first:"
33046 msgstr ""
33047
33048 # type: verbatim
33049 #. type: verbatim
33050 #: ../fuse/guestmount.pod:62
33051 #, no-wrap
33052 msgid ""
33053 " virt-filesystems MyGuest\n"
33054 "\n"
33055 msgstr ""
33056
33057 # type: textblock
33058 #. type: textblock
33059 #: ../fuse/guestmount.pod:64
33060 msgid ""
33061 "If you want to trace the libguestfs calls but without excessive debugging "
33062 "information, we recommend:"
33063 msgstr ""
33064
33065 # type: verbatim
33066 #. type: verbatim
33067 #: ../fuse/guestmount.pod:67
33068 #, no-wrap
33069 msgid ""
33070 " guestmount [...] --trace /mnt\n"
33071 "\n"
33072 msgstr ""
33073
33074 # type: textblock
33075 #. type: textblock
33076 #: ../fuse/guestmount.pod:69
33077 msgid "If you want to debug the program, we recommend:"
33078 msgstr ""
33079
33080 # type: verbatim
33081 #. type: verbatim
33082 #: ../fuse/guestmount.pod:71
33083 #, no-wrap
33084 msgid ""
33085 " guestmount [...] --trace --verbose /mnt\n"
33086 "\n"
33087 msgstr ""
33088
33089 #. type: =head1
33090 #: ../fuse/guestmount.pod:73
33091 msgid "NOTES"
33092 msgstr ""
33093
33094 #. type: =head2
33095 #: ../fuse/guestmount.pod:75
33096 msgid "Other users cannot see the filesystem by default"
33097 msgstr ""
33098
33099 #. type: textblock
33100 #: ../fuse/guestmount.pod:77
33101 msgid ""
33102 "If you mount a filesystem as one user (eg. root), then other users will not "
33103 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
33104 "option when mounting:"
33105 msgstr ""
33106
33107 #. type: verbatim
33108 #: ../fuse/guestmount.pod:81
33109 #, no-wrap
33110 msgid ""
33111 " sudo guestmount [...] -o allow_other /mnt\n"
33112 "\n"
33113 msgstr ""
33114
33115 # type: =item
33116 #. type: =item
33117 #: ../fuse/guestmount.pod:87
33118 msgid "B<-a image> | B<--add image>"
33119 msgstr ""
33120
33121 # type: textblock
33122 #. type: textblock
33123 #: ../fuse/guestmount.pod:89
33124 msgid "Add a block device or virtual machine image."
33125 msgstr ""
33126
33127 # type: =item
33128 #. type: =item
33129 #: ../fuse/guestmount.pod:94
33130 msgid "B<-c URI> | B<--connect URI>"
33131 msgstr ""
33132
33133 # type: =item
33134 #. type: =item
33135 #: ../fuse/guestmount.pod:100
33136 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
33137 msgstr ""
33138
33139 # type: =item
33140 #. type: =item
33141 #: ../fuse/guestmount.pod:108
33142 msgid "B<--dir-cache-timeout N>"
33143 msgstr ""
33144
33145 # type: textblock
33146 #. type: textblock
33147 #: ../fuse/guestmount.pod:110
33148 msgid ""
33149 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
33150 "seconds.  The readdir cache [actually, there are several semi-independent "
33151 "caches] is populated after a readdir(2) call with the stat and extended "
33152 "attributes of the files in the directory, in anticipation that they will be "
33153 "requested soon after."
33154 msgstr ""
33155
33156 # type: textblock
33157 #. type: textblock
33158 #: ../fuse/guestmount.pod:116
33159 msgid ""
33160 "There is also a different attribute cache implemented by FUSE (see the FUSE "
33161 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
33162 "requests, only cache existing ones."
33163 msgstr ""
33164
33165 # type: =item
33166 #. type: =item
33167 #: ../fuse/guestmount.pod:127
33168 msgid "B<--format=raw|qcow2|..> | B<--format>"
33169 msgstr ""
33170
33171 # type: textblock
33172 #. type: textblock
33173 #: ../fuse/guestmount.pod:134
33174 msgid ""
33175 "If you have untrusted raw-format guest disk images, you should use this "
33176 "option to specify the disk format.  This avoids a possible security problem "
33177 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
33178 "guestfs_add_drive_opts>."
33179 msgstr ""
33180
33181 # type: =item
33182 #. type: =item
33183 #: ../fuse/guestmount.pod:139
33184 msgid "B<--fuse-help>"
33185 msgstr ""
33186
33187 # type: textblock
33188 #. type: textblock
33189 #: ../fuse/guestmount.pod:141
33190 msgid "Display help on special FUSE options (see I<-o> below)."
33191 msgstr ""
33192
33193 # type: textblock
33194 #. type: textblock
33195 #: ../fuse/guestmount.pod:145
33196 msgid "Display brief help and exit."
33197 msgstr ""
33198
33199 # type: =item
33200 #. type: =item
33201 #: ../fuse/guestmount.pod:147
33202 msgid "B<-i> | B<--inspector>"
33203 msgstr ""
33204
33205 # type: textblock
33206 #. type: textblock
33207 #: ../fuse/guestmount.pod:167
33208 msgid ""
33209 "Mount the named partition or logical volume on the given mountpoint B<in the "
33210 "guest> (this has nothing to do with mountpoints in the host)."
33211 msgstr ""
33212
33213 # type: textblock
33214 #. type: textblock
33215 #: ../fuse/guestmount.pod:170
33216 msgid ""
33217 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
33218 "something on C</>."
33219 msgstr ""
33220
33221 # type: =item
33222 #. type: =item
33223 #: ../fuse/guestmount.pod:183
33224 msgid "B<-n> | B<--no-sync>"
33225 msgstr ""
33226
33227 # type: textblock
33228 #. type: textblock
33229 #: ../fuse/guestmount.pod:185
33230 msgid ""
33231 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
33232 "unmounted.  If you specify this option, then we don't attempt to sync the "
33233 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
33234 msgstr ""
33235
33236 # type: =item
33237 #. type: =item
33238 #: ../fuse/guestmount.pod:190
33239 msgid "B<-o option> | B<--option option>"
33240 msgstr ""
33241
33242 # type: textblock
33243 #. type: textblock
33244 #: ../fuse/guestmount.pod:192
33245 msgid "Pass extra options to FUSE."
33246 msgstr ""
33247
33248 # type: textblock
33249 #. type: textblock
33250 #: ../fuse/guestmount.pod:194
33251 msgid ""
33252 "To get a list of all the extra options supported by FUSE, use the command "
33253 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
33254 "of them are a good idea."
33255 msgstr ""
33256
33257 # type: verbatim
33258 #. type: verbatim
33259 #: ../fuse/guestmount.pod:198
33260 #, no-wrap
33261 msgid ""
33262 " guestmount --fuse-help\n"
33263 "\n"
33264 msgstr ""
33265
33266 # type: textblock
33267 #. type: textblock
33268 #: ../fuse/guestmount.pod:200
33269 msgid "Some potentially useful FUSE options:"
33270 msgstr ""
33271
33272 # type: =item
33273 #. type: =item
33274 #: ../fuse/guestmount.pod:204
33275 msgid "B<-o allow_other>"
33276 msgstr ""
33277
33278 # type: textblock
33279 #. type: textblock
33280 #: ../fuse/guestmount.pod:206
33281 msgid "Allow other users to see the filesystem."
33282 msgstr ""
33283
33284 # type: =item
33285 #. type: =item
33286 #: ../fuse/guestmount.pod:208
33287 msgid "B<-o attr_timeout=N>"
33288 msgstr ""
33289
33290 # type: textblock
33291 #. type: textblock
33292 #: ../fuse/guestmount.pod:210
33293 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
33294 msgstr ""
33295
33296 # type: =item
33297 #. type: =item
33298 #: ../fuse/guestmount.pod:212
33299 msgid "B<-o kernel_cache>"
33300 msgstr ""
33301
33302 # type: textblock
33303 #. type: textblock
33304 #: ../fuse/guestmount.pod:214
33305 msgid ""
33306 "Allow the kernel to cache files (reduces the number of reads that have to go "
33307 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
33308 "afford the extra memory usage."
33309 msgstr ""
33310
33311 # type: =item
33312 #. type: =item
33313 #: ../fuse/guestmount.pod:218
33314 msgid "B<-o uid=N> B<-o gid=N>"
33315 msgstr ""
33316
33317 # type: textblock
33318 #. type: textblock
33319 #: ../fuse/guestmount.pod:220
33320 msgid ""
33321 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
33322 "the chosen values."
33323 msgstr ""
33324
33325 # type: =item
33326 #. type: =item
33327 #: ../fuse/guestmount.pod:225
33328 msgid "B<-r> | B<--ro>"
33329 msgstr ""
33330
33331 # type: textblock
33332 #. type: textblock
33333 #: ../fuse/guestmount.pod:227
33334 msgid ""
33335 "Add devices and mount everything read-only.  Also disallow writes and make "
33336 "the disk appear read-only to FUSE."
33337 msgstr ""
33338
33339 # type: textblock
33340 #. type: textblock
33341 #: ../fuse/guestmount.pod:230
33342 msgid ""
33343 "This is highly recommended if you are not going to edit the guest disk.  If "
33344 "the guest is running and this option is I<not> supplied, then there is a "
33345 "strong risk of disk corruption in the guest.  We try to prevent this from "
33346 "happening, but it is not always possible."
33347 msgstr ""
33348
33349 # type: textblock
33350 #. type: textblock
33351 #: ../fuse/guestmount.pod:235
33352 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
33353 msgstr ""
33354
33355 # type: textblock
33356 #. type: textblock
33357 #: ../fuse/guestmount.pod:239
33358 msgid "Enable SELinux support for the guest."
33359 msgstr ""
33360
33361 # type: =item
33362 #. type: =item
33363 #: ../fuse/guestmount.pod:241
33364 msgid "B<-v> | B<--verbose>"
33365 msgstr ""
33366
33367 # type: textblock
33368 #. type: textblock
33369 #: ../fuse/guestmount.pod:243
33370 msgid "Enable verbose messages from underlying libguestfs."
33371 msgstr ""
33372
33373 # type: =item
33374 #. type: =item
33375 #: ../fuse/guestmount.pod:245
33376 msgid "B<-V> | B<--version>"
33377 msgstr ""
33378
33379 # type: textblock
33380 #. type: textblock
33381 #: ../fuse/guestmount.pod:247
33382 msgid "Display the program version and exit."
33383 msgstr ""
33384
33385 # type: =item
33386 #. type: =item
33387 #: ../fuse/guestmount.pod:249
33388 msgid "B<-w> | B<--rw>"
33389 msgstr ""
33390
33391 #. type: textblock
33392 #: ../fuse/guestmount.pod:254 ../fuse/guestmount.pod:275
33393 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
33394 msgstr ""
33395
33396 # type: =item
33397 #. type: =item
33398 #: ../fuse/guestmount.pod:256
33399 msgid "B<-x> | B<--trace>"
33400 msgstr ""
33401
33402 # type: textblock
33403 #. type: textblock
33404 #: ../fuse/guestmount.pod:258
33405 msgid "Trace libguestfs calls and entry into each FUSE function."
33406 msgstr ""
33407
33408 # type: textblock
33409 #. type: textblock
33410 #: ../fuse/guestmount.pod:260
33411 msgid "This also stops the daemon from forking into the background."
33412 msgstr ""
33413
33414 # type: textblock
33415 #. type: textblock
33416 #: ../fuse/guestmount.pod:281
33417 msgid ""
33418 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
33419 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
33420 "net/>."
33421 msgstr ""
33422
33423 # type: textblock
33424 #. type: textblock
33425 #: ../fuse/guestmount.pod:296
33426 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
33427 msgstr ""
33428
33429 # type: textblock
33430 #. type: textblock
33431 #: ../tools/virt-win-reg.pl:37
33432 msgid ""
33433 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
33434 msgstr ""
33435
33436 # type: verbatim
33437 #. type: verbatim
33438 #: ../tools/virt-win-reg.pl:41
33439 #, no-wrap
33440 msgid ""
33441 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
33442 "\n"
33443 msgstr ""
33444
33445 # type: verbatim
33446 #. type: verbatim
33447 #: ../tools/virt-win-reg.pl:43
33448 #, no-wrap
33449 msgid ""
33450 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
33451 "\n"
33452 msgstr ""
33453
33454 # type: verbatim
33455 #. type: verbatim
33456 #: ../tools/virt-win-reg.pl:45
33457 #, no-wrap
33458 msgid ""
33459 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
33460 "\n"
33461 msgstr ""
33462
33463 # type: verbatim
33464 #. type: verbatim
33465 #: ../tools/virt-win-reg.pl:47
33466 #, no-wrap
33467 msgid ""
33468 " virt-win-reg --merge domname [input.reg ...]\n"
33469 "\n"
33470 msgstr ""
33471
33472 # type: verbatim
33473 #. type: verbatim
33474 #: ../tools/virt-win-reg.pl:49
33475 #, no-wrap
33476 msgid ""
33477 " virt-win-reg [--options] disk.img ... # instead of domname\n"
33478 "\n"
33479 msgstr ""
33480
33481 #. type: textblock
33482 #: ../tools/virt-win-reg.pl:53
33483 msgid ""
33484 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
33485 "virtual machines.  If you do this, you I<will> get irreversible disk "
33486 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
33487 "but doesn't catch all cases."
33488 msgstr ""
33489
33490 #. type: textblock
33491 #: ../tools/virt-win-reg.pl:58
33492 msgid ""
33493 "Modifying the Windows Registry is an inherently risky operation.  The format "
33494 "is deliberately obscure and undocumented, and Registry changes can leave the "
33495 "system unbootable.  Therefore when using the I<--merge> option, make sure "
33496 "you have a reliable backup first."
33497 msgstr ""
33498
33499 # type: textblock
33500 #. type: textblock
33501 #: ../tools/virt-win-reg.pl:65
33502 msgid ""
33503 "This program can export and merge Windows Registry entries from a Windows "
33504 "guest."
33505 msgstr ""
33506
33507 # type: textblock
33508 #. type: textblock
33509 #: ../tools/virt-win-reg.pl:68
33510 msgid ""
33511 "The first parameter is the libvirt guest name or the raw disk image of a "
33512 "Windows guest."
33513 msgstr ""
33514
33515 #. type: textblock
33516 #: ../tools/virt-win-reg.pl:71
33517 msgid ""
33518 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
33519 "exported (recursively).  For example:"
33520 msgstr ""
33521
33522 # type: verbatim
33523 #. type: verbatim
33524 #: ../tools/virt-win-reg.pl:74
33525 #, no-wrap
33526 msgid ""
33527 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
33528 "\n"
33529 msgstr ""
33530
33531 # type: textblock
33532 #. type: textblock
33533 #: ../tools/virt-win-reg.pl:76
33534 msgid ""
33535 "You can also display single values from within registry keys, for example:"
33536 msgstr ""
33537
33538 # type: verbatim
33539 #. type: verbatim
33540 #: ../tools/virt-win-reg.pl:79
33541 #, no-wrap
33542 msgid ""
33543 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
33544 " $ virt-win-reg Windows7 $cvkey ProductName\n"
33545 " Windows 7 Enterprise\n"
33546 "\n"
33547 msgstr ""
33548
33549 #. type: textblock
33550 #: ../tools/virt-win-reg.pl:83
33551 msgid ""
33552 "With I<--merge>, you can merge a textual regedit file into the Windows "
33553 "Registry:"
33554 msgstr ""
33555
33556 # type: verbatim
33557 #. type: verbatim
33558 #: ../tools/virt-win-reg.pl:86
33559 #, no-wrap
33560 msgid ""
33561 " $ virt-win-reg --merge Windows7 changes.reg\n"
33562 "\n"
33563 msgstr ""
33564
33565 # type: =head2
33566 #. type: =head1
33567 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
33568 msgid "NOTE"
33569 msgstr ""
33570
33571 # type: textblock
33572 #. type: textblock
33573 #: ../tools/virt-win-reg.pl:90
33574 msgid ""
33575 "This program is only meant for simple access to the registry.  If you want "
33576 "to do complicated things with the registry, we suggest you download the "
33577 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
33578 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
33579 "L<hivexregedit(1)>."
33580 msgstr ""
33581
33582 # type: textblock
33583 #. type: textblock
33584 #: ../tools/virt-win-reg.pl:106 ../tools/virt-list-filesystems.pl:63
33585 #: ../tools/virt-tar.pl:113 ../tools/virt-make-fs.pl:163
33586 #: ../tools/virt-list-partitions.pl:64
33587 msgid "Display brief help."
33588 msgstr ""
33589
33590 # type: textblock
33591 #. type: textblock
33592 #: ../tools/virt-win-reg.pl:114 ../tools/virt-list-filesystems.pl:71
33593 #: ../tools/virt-tar.pl:121 ../tools/virt-make-fs.pl:171
33594 #: ../tools/virt-list-partitions.pl:72
33595 msgid "Display version number and exit."
33596 msgstr ""
33597
33598 # type: =item
33599 #. type: =item
33600 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
33601 msgid "B<--debug>"
33602 msgstr ""
33603
33604 # type: textblock
33605 #. type: textblock
33606 #: ../tools/virt-win-reg.pl:122
33607 msgid "Enable debugging messages."
33608 msgstr ""
33609
33610 # type: =item
33611 #. type: =item
33612 #: ../tools/virt-win-reg.pl:128 ../tools/virt-list-filesystems.pl:77
33613 #: ../tools/virt-tar.pl:127 ../tools/virt-list-partitions.pl:78
33614 msgid "B<--connect URI> | B<-c URI>"
33615 msgstr ""
33616
33617 # type: textblock
33618 #. type: textblock
33619 #: ../tools/virt-win-reg.pl:130 ../tools/virt-list-filesystems.pl:79
33620 #: ../tools/virt-tar.pl:129 ../tools/virt-list-partitions.pl:80
33621 msgid ""
33622 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
33623 "to the default libvirt hypervisor."
33624 msgstr ""
33625
33626 # type: textblock
33627 #. type: textblock
33628 #: ../tools/virt-win-reg.pl:133 ../tools/virt-list-filesystems.pl:82
33629 #: ../tools/virt-tar.pl:132 ../tools/virt-list-partitions.pl:83
33630 msgid ""
33631 "If you specify guest block devices directly, then libvirt is not used at all."
33632 msgstr ""
33633
33634 # type: =item
33635 #. type: =item
33636 #: ../tools/virt-win-reg.pl:140 ../tools/virt-list-filesystems.pl:89
33637 #: ../tools/virt-tar.pl:139 ../tools/virt-list-partitions.pl:90
33638 msgid "B<--format> raw"
33639 msgstr ""
33640
33641 # type: textblock
33642 #. type: textblock
33643 #: ../tools/virt-win-reg.pl:142 ../tools/virt-list-filesystems.pl:91
33644 #: ../tools/virt-tar.pl:141 ../tools/virt-list-partitions.pl:92
33645 msgid ""
33646 "Specify the format of disk images given on the command line.  If this is "
33647 "omitted then the format is autodetected from the content of the disk image."
33648 msgstr ""
33649
33650 # type: textblock
33651 #. type: textblock
33652 #: ../tools/virt-win-reg.pl:146 ../tools/virt-list-filesystems.pl:95
33653 #: ../tools/virt-tar.pl:145 ../tools/virt-list-partitions.pl:96
33654 msgid ""
33655 "If disk images are requested from libvirt, then this program asks libvirt "
33656 "for this information.  In this case, the value of the format parameter is "
33657 "ignored."
33658 msgstr ""
33659
33660 # type: textblock
33661 #. type: textblock
33662 #: ../tools/virt-win-reg.pl:150 ../tools/virt-list-filesystems.pl:99
33663 #: ../tools/virt-tar.pl:149 ../tools/virt-list-partitions.pl:100
33664 msgid ""
33665 "If working with untrusted raw-format guest disk images, you should ensure "
33666 "the format is always specified."
33667 msgstr ""
33668
33669 # type: =item
33670 #. type: =item
33671 #: ../tools/virt-win-reg.pl:157
33672 msgid "B<--merge>"
33673 msgstr ""
33674
33675 # type: textblock
33676 #. type: textblock
33677 #: ../tools/virt-win-reg.pl:159
33678 msgid ""
33679 "In merge mode, this merges a textual regedit file into the Windows Registry "
33680 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
33681 "displays or exports Registry entries instead."
33682 msgstr ""
33683
33684 #. type: textblock
33685 #: ../tools/virt-win-reg.pl:163
33686 msgid ""
33687 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
33688 "result in disk corruption.  However exporting (without this flag)  is always "
33689 "safe."
33690 msgstr ""
33691
33692 # type: =item
33693 #. type: =item
33694 #: ../tools/virt-win-reg.pl:171
33695 msgid "B<--encoding> UTF-16LE|ASCII"
33696 msgstr ""
33697
33698 # type: textblock
33699 #. type: textblock
33700 #: ../tools/virt-win-reg.pl:173
33701 msgid ""
33702 "When merging (only), you may need to specify the encoding for strings to be "
33703 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
33704 "(3)/ENCODING STRINGS>."
33705 msgstr ""
33706
33707 # type: textblock
33708 #. type: textblock
33709 #: ../tools/virt-win-reg.pl:177
33710 msgid ""
33711 "The default is to use UTF-16LE, which should work with recent versions of "
33712 "Windows."
33713 msgstr ""
33714
33715 #. type: =item
33716 #: ../tools/virt-win-reg.pl:184
33717 msgid "B<--unsafe-printable-strings>"
33718 msgstr ""
33719
33720 #. type: textblock
33721 #: ../tools/virt-win-reg.pl:186
33722 msgid ""
33723 "When exporting (only), assume strings are UTF-16LE and print them as strings "
33724 "instead of hex sequences.  Remove the final zero codepoint from strings if "
33725 "present."
33726 msgstr ""
33727
33728 #. type: textblock
33729 #: ../tools/virt-win-reg.pl:190
33730 msgid ""
33731 "This is unsafe and does not preserve the fidelity of strings in the original "
33732 "Registry for various reasons:"
33733 msgstr ""
33734
33735 #. type: textblock
33736 #: ../tools/virt-win-reg.pl:197
33737 msgid ""
33738 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
33739 "other encodings will be corrupted by this transformation."
33740 msgstr ""
33741
33742 #. type: textblock
33743 #: ../tools/virt-win-reg.pl:202
33744 msgid ""
33745 "Assumes that everything which has type 1 or 2 is really a string and that "
33746 "everything else is not a string, but the type field in real Registries is "
33747 "not reliable."
33748 msgstr ""
33749
33750 #. type: textblock
33751 #: ../tools/virt-win-reg.pl:208
33752 msgid ""
33753 "Loses information about whether a zero codepoint followed the string in the "
33754 "Registry or not."
33755 msgstr ""
33756
33757 #. type: textblock
33758 #: ../tools/virt-win-reg.pl:213
33759 msgid ""
33760 "This all happens because the Registry itself contains no information about "
33761 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
33762 msgstr ""
33763
33764 #. type: textblock
33765 #: ../tools/virt-win-reg.pl:217
33766 msgid ""
33767 "You should only use this option for quick hacking and debugging of the "
33768 "Registry contents, and I<never> use it if the output is going to be passed "
33769 "into another program or stored in another Registry."
33770 msgstr ""
33771
33772 # type: =head2
33773 #. type: =head1
33774 #: ../tools/virt-win-reg.pl:554
33775 msgid "SUPPORTED SYSTEMS"
33776 msgstr ""
33777
33778 # type: textblock
33779 #. type: textblock
33780 #: ../tools/virt-win-reg.pl:556
33781 msgid ""
33782 "The program currently supports Windows NT-derived guests starting with "
33783 "Windows XP through to at least Windows 7."
33784 msgstr ""
33785
33786 #. type: textblock
33787 #: ../tools/virt-win-reg.pl:559
33788 msgid "The following Registry keys are supported:"
33789 msgstr ""
33790
33791 #. type: =item
33792 #: ../tools/virt-win-reg.pl:563
33793 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
33794 msgstr ""
33795
33796 #. type: =item
33797 #: ../tools/virt-win-reg.pl:565
33798 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
33799 msgstr ""
33800
33801 #. type: =item
33802 #: ../tools/virt-win-reg.pl:567
33803 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
33804 msgstr ""
33805
33806 #. type: =item
33807 #: ../tools/virt-win-reg.pl:569
33808 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
33809 msgstr ""
33810
33811 #. type: =item
33812 #: ../tools/virt-win-reg.pl:571
33813 msgid "C<HKEY_USERS\\.DEFAULT>"
33814 msgstr ""
33815
33816 #. type: =item
33817 #: ../tools/virt-win-reg.pl:573
33818 msgid "C<HKEY_USERS\\I<SID>>"
33819 msgstr ""
33820
33821 #. type: textblock
33822 #: ../tools/virt-win-reg.pl:575
33823 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
33824 msgstr ""
33825
33826 #. type: =item
33827 #: ../tools/virt-win-reg.pl:577
33828 msgid "C<HKEY_USERS\\I<username>>"
33829 msgstr ""
33830
33831 #. type: textblock
33832 #: ../tools/virt-win-reg.pl:579
33833 msgid ""
33834 "where I<username> is a local user name (this is a libguestfs extension)."
33835 msgstr ""
33836
33837 # type: textblock
33838 #. type: textblock
33839 #: ../tools/virt-win-reg.pl:583
33840 msgid ""
33841 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
33842 "C<HKEY_USERS>."
33843 msgstr ""
33844
33845 #. type: textblock
33846 #: ../tools/virt-win-reg.pl:586
33847 msgid ""
33848 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
33849 "supported (there is no \"current user\")."
33850 msgstr ""
33851
33852 # type: =head2
33853 #. type: =head1
33854 #: ../tools/virt-win-reg.pl:589
33855 msgid "ENCODING"
33856 msgstr ""
33857
33858 # type: textblock
33859 #. type: textblock
33860 #: ../tools/virt-win-reg.pl:591
33861 msgid ""
33862 "C<virt-win-reg> expects that regedit files have already been reencoded in "
33863 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
33864 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
33865 "Windows-style line endings, you may need to reencode the whole file before "
33866 "or after processing."
33867 msgstr ""
33868
33869 #. type: textblock
33870 #: ../tools/virt-win-reg.pl:597
33871 msgid ""
33872 "To reencode a file from Windows format to Linux (before processing it with "
33873 "the I<--merge> option), you would do something like this:"
33874 msgstr ""
33875
33876 # type: verbatim
33877 #. type: verbatim
33878 #: ../tools/virt-win-reg.pl:600
33879 #, no-wrap
33880 msgid ""
33881 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
33882 "\n"
33883 msgstr ""
33884
33885 # type: textblock
33886 #. type: textblock
33887 #: ../tools/virt-win-reg.pl:602
33888 msgid ""
33889 "To go in the opposite direction, after exporting and before sending the file "
33890 "to a Windows user, do something like this:"
33891 msgstr ""
33892
33893 # type: verbatim
33894 #. type: verbatim
33895 #: ../tools/virt-win-reg.pl:605
33896 #, no-wrap
33897 msgid ""
33898 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
33899 "\n"
33900 msgstr ""
33901
33902 # type: textblock
33903 #. type: textblock
33904 #: ../tools/virt-win-reg.pl:607
33905 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
33906 msgstr ""
33907
33908 # type: textblock
33909 #. type: textblock
33910 #: ../tools/virt-win-reg.pl:609
33911 msgid ""
33912 "If you are unsure about the current encoding, use the L<file(1)> command.  "
33913 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
33914 "style (CRLF) line endings, like this:"
33915 msgstr ""
33916
33917 # type: verbatim
33918 #. type: verbatim
33919 #: ../tools/virt-win-reg.pl:613
33920 #, no-wrap
33921 msgid ""
33922 " $ file software.reg\n"
33923 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
33924 " with CRLF line terminators\n"
33925 "\n"
33926 msgstr ""
33927
33928 #. type: textblock
33929 #: ../tools/virt-win-reg.pl:617
33930 msgid "This file would need conversion before you could I<--merge> it."
33931 msgstr ""
33932
33933 # type: =head2
33934 #. type: =head1
33935 #: ../tools/virt-win-reg.pl:619
33936 msgid "CurrentControlSet etc."
33937 msgstr ""
33938
33939 # type: textblock
33940 #. type: textblock
33941 #: ../tools/virt-win-reg.pl:621
33942 msgid ""
33943 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
33944 "Registry at the level of the hive file, and therefore you cannot modify "
33945 "these."
33946 msgstr ""
33947
33948 # type: textblock
33949 #. type: textblock
33950 #: ../tools/virt-win-reg.pl:625
33951 msgid ""
33952 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
33953 "circumstances it might refer to another control set.  The way to find out is "
33954 "to look at the C<HKLM\\SYSTEM\\Select> key:"
33955 msgstr ""
33956
33957 # type: verbatim
33958 #. type: verbatim
33959 #: ../tools/virt-win-reg.pl:629
33960 #, no-wrap
33961 msgid ""
33962 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
33963 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
33964 " \"Current\"=dword:00000001\n"
33965 " \"Default\"=dword:00000001\n"
33966 " \"Failed\"=dword:00000000\n"
33967 " \"LastKnownGood\"=dword:00000002\n"
33968 "\n"
33969 msgstr ""
33970
33971 # type: textblock
33972 #. type: textblock
33973 #: ../tools/virt-win-reg.pl:636
33974 msgid "\"Current\" is the one which Windows will choose when it boots."
33975 msgstr ""
33976
33977 # type: textblock
33978 #. type: textblock
33979 #: ../tools/virt-win-reg.pl:638
33980 msgid ""
33981 "Similarly, other C<Current...> keys in the path may need to be replaced."
33982 msgstr ""
33983
33984 # type: =head1
33985 #. type: =head1
33986 #: ../tools/virt-win-reg.pl:641
33987 msgid "WINDOWS TIPS"
33988 msgstr ""
33989
33990 # type: textblock
33991 #. type: textblock
33992 #: ../tools/virt-win-reg.pl:643
33993 msgid ""
33994 "Note that some of these tips modify the guest disk image.  The guest I<must> "
33995 "be shut off, else you will get disk corruption."
33996 msgstr ""
33997
33998 # type: =head2
33999 #. type: =head2
34000 #: ../tools/virt-win-reg.pl:646
34001 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
34002 msgstr ""
34003
34004 # type: textblock
34005 #. type: textblock
34006 #: ../tools/virt-win-reg.pl:648
34007 msgid ""
34008 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
34009 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
34010 "is uploaded into C<C:\\>:"
34011 msgstr ""
34012
34013 # type: verbatim
34014 #. type: verbatim
34015 #: ../tools/virt-win-reg.pl:652
34016 #, no-wrap
34017 msgid ""
34018 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
34019 "\n"
34020 msgstr ""
34021
34022 # type: textblock
34023 #. type: textblock
34024 #: ../tools/virt-win-reg.pl:654
34025 msgid "Prepare a regedit file containing the registry change:"
34026 msgstr ""
34027
34028 # type: verbatim
34029 #. type: verbatim
34030 #: ../tools/virt-win-reg.pl:656
34031 #, no-wrap
34032 msgid ""
34033 " cat > test.reg <<'EOF'\n"
34034 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
34035 " \"Test\"=\"c:\\\\test.bat\"\n"
34036 " EOF\n"
34037 "\n"
34038 msgstr ""
34039
34040 # type: textblock
34041 #. type: textblock
34042 #: ../tools/virt-win-reg.pl:661
34043 msgid ""
34044 "In this example we use the key C<RunOnce> which means that the script will "
34045 "run precisely once when the first user logs in.  If you want it to run every "
34046 "time a user logs in, replace C<RunOnce> with C<Run>."
34047 msgstr ""
34048
34049 # type: textblock
34050 #. type: textblock
34051 #: ../tools/virt-win-reg.pl:665
34052 msgid "Now update the registry:"
34053 msgstr ""
34054
34055 # type: verbatim
34056 #. type: verbatim
34057 #: ../tools/virt-win-reg.pl:667
34058 #, no-wrap
34059 msgid ""
34060 " virt-win-reg --merge WindowsGuest test.reg\n"
34061 "\n"
34062 msgstr ""
34063
34064 # type: =head2
34065 #. type: =head2
34066 #: ../tools/virt-win-reg.pl:669
34067 msgid "INSTALLING A SERVICE"
34068 msgstr ""
34069
34070 # type: textblock
34071 #. type: textblock
34072 #: ../tools/virt-win-reg.pl:671
34073 msgid ""
34074 "This section assumes you are familiar with Windows services, and you either "
34075 "have a program which handles the Windows Service Control Protocol directly "
34076 "or you want to run any program using a service wrapper like SrvAny or the "
34077 "free RHSrvAny."
34078 msgstr ""
34079
34080 # type: textblock
34081 #. type: textblock
34082 #: ../tools/virt-win-reg.pl:676
34083 msgid ""
34084 "First upload the program and optionally the service wrapper.  In this case "
34085 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
34086 msgstr ""
34087
34088 # type: verbatim
34089 #. type: verbatim
34090 #: ../tools/virt-win-reg.pl:680
34091 #, no-wrap
34092 msgid ""
34093 " guestfish -i -d WindowsGuest <<EOF\n"
34094 "   upload rhsrvany.exe /rhsrvany.exe\n"
34095 "   upload test.exe /test.exe\n"
34096 " EOF\n"
34097 "\n"
34098 msgstr ""
34099
34100 # type: textblock
34101 #. type: textblock
34102 #: ../tools/virt-win-reg.pl:685
34103 msgid ""
34104 "Prepare a regedit file containing the registry changes.  In this example, "
34105 "the first registry change is needed for the service itself or the service "
34106 "wrapper (if used).  The second registry change is only needed because I am "
34107 "using the RHSrvAny service wrapper."
34108 msgstr ""
34109
34110 # type: verbatim
34111 #. type: verbatim
34112 #: ../tools/virt-win-reg.pl:690
34113 #, no-wrap
34114 msgid ""
34115 " cat > service.reg <<'EOF'\n"
34116 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
34117 " \"Type\"=dword:00000010\n"
34118 " \"Start\"=dword:00000002\n"
34119 " \"ErrorControl\"=dword:00000001\n"
34120 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
34121 " \"DisplayName\"=\"RHSrvAny\"\n"
34122 " \"ObjectName\"=\"NetworkService\"\n"
34123 " \n"
34124 msgstr ""
34125
34126 # type: verbatim
34127 #. type: verbatim
34128 #: ../tools/virt-win-reg.pl:699
34129 #, no-wrap
34130 msgid ""
34131 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
34132 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
34133 " \"PWD\"=\"c:\\\\Temp\"\n"
34134 " EOF\n"
34135 "\n"
34136 msgstr ""
34137
34138 # type: textblock
34139 #. type: textblock
34140 #: ../tools/virt-win-reg.pl:710
34141 msgid ""
34142 "For use of C<ControlSet001> see the section above in this manual page.  You "
34143 "may need to adjust this according to the control set that is in use by the "
34144 "guest."
34145 msgstr ""
34146
34147 # type: textblock
34148 #. type: textblock
34149 #: ../tools/virt-win-reg.pl:716
34150 msgid ""
34151 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
34152 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
34153 "privileged account."
34154 msgstr ""
34155
34156 # type: textblock
34157 #. type: textblock
34158 #: ../tools/virt-win-reg.pl:722
34159 msgid ""
34160 "For the meaning of the magic numbers, see this Microsoft KB article: "
34161 "L<http://support.microsoft.com/kb/103000>."
34162 msgstr ""
34163
34164 # type: textblock
34165 #. type: textblock
34166 #: ../tools/virt-win-reg.pl:727
34167 msgid "Update the registry:"
34168 msgstr ""
34169
34170 # type: verbatim
34171 #. type: verbatim
34172 #: ../tools/virt-win-reg.pl:729
34173 #, no-wrap
34174 msgid ""
34175 " virt-win-reg --merge WindowsGuest service.reg\n"
34176 "\n"
34177 msgstr ""
34178
34179 # type: =head2
34180 #. type: =head1
34181 #: ../tools/virt-win-reg.pl:731 ../tools/virt-list-filesystems.pl:182
34182 #: ../tools/virt-tar.pl:279 ../tools/virt-make-fs.pl:532
34183 #: ../tools/virt-list-partitions.pl:250
34184 msgid "SHELL QUOTING"
34185 msgstr ""
34186
34187 # type: textblock
34188 #. type: textblock
34189 #: ../tools/virt-win-reg.pl:733
34190 msgid ""
34191 "Be careful when passing parameters containing C<\\> (backslash) in the "
34192 "shell.  Usually you will have to use 'single quotes' or double backslashes "
34193 "(but not both) to protect them from the shell."
34194 msgstr ""
34195
34196 # type: textblock
34197 #. type: textblock
34198 #: ../tools/virt-win-reg.pl:737
34199 msgid "Paths and value names are case-insensitive."
34200 msgstr ""
34201
34202 # type: textblock
34203 #. type: textblock
34204 #: ../tools/virt-win-reg.pl:739 ../tools/virt-list-filesystems.pl:184
34205 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534
34206 #: ../tools/virt-list-partitions.pl:252
34207 msgid ""
34208 "Libvirt guest names can contain arbitrary characters, some of which have "
34209 "meaning to the shell such as C<#> and space.  You may need to quote or "
34210 "escape these characters on the command line.  See the shell manual page L<sh"
34211 "(1)> for details."
34212 msgstr ""
34213
34214 # type: textblock
34215 #. type: textblock
34216 #: ../tools/virt-win-reg.pl:746
34217 msgid ""
34218 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
34219 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
34220 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
34221 msgstr ""
34222
34223 # type: textblock
34224 #. type: textblock
34225 #: ../tools/virt-win-reg.pl:761 ../tools/virt-make-fs.pl:555
34226 msgid ""
34227 "When reporting bugs, please enable debugging and capture the I<complete> "
34228 "output:"
34229 msgstr ""
34230
34231 # type: verbatim
34232 #. type: verbatim
34233 #: ../tools/virt-win-reg.pl:764
34234 #, no-wrap
34235 msgid ""
34236 " export LIBGUESTFS_DEBUG=1\n"
34237 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
34238 "\n"
34239 msgstr ""
34240
34241 # type: textblock
34242 #. type: textblock
34243 #: ../tools/virt-win-reg.pl:767
34244 msgid ""
34245 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
34246 "redhat.com/>"
34247 msgstr ""
34248
34249 # type: =head1
34250 #. type: =head1
34251 #: ../tools/virt-win-reg.pl:770 ../tools/virt-list-filesystems.pl:202
34252 #: ../tools/virt-tar.pl:301 ../tools/virt-make-fs.pl:564
34253 #: ../tools/virt-list-partitions.pl:269
34254 msgid "AUTHOR"
34255 msgstr ""
34256
34257 # type: textblock
34258 #. type: textblock
34259 #: ../tools/virt-win-reg.pl:772 ../tools/virt-list-filesystems.pl:204
34260 #: ../tools/virt-tar.pl:303 ../tools/virt-make-fs.pl:566
34261 #: ../tools/virt-list-partitions.pl:271
34262 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
34263 msgstr ""
34264
34265 # type: textblock
34266 #. type: textblock
34267 #: ../tools/virt-win-reg.pl:776 ../tools/virt-make-fs.pl:570
34268 msgid "Copyright (C) 2010 Red Hat Inc."
34269 msgstr ""
34270
34271 # type: textblock
34272 #. type: textblock
34273 #: ../tools/virt-list-filesystems.pl:32
34274 msgid ""
34275 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
34276 msgstr ""
34277
34278 # type: verbatim
34279 #. type: verbatim
34280 #: ../tools/virt-list-filesystems.pl:36
34281 #, no-wrap
34282 msgid ""
34283 " virt-list-filesystems [--options] domname\n"
34284 "\n"
34285 msgstr ""
34286
34287 # type: verbatim
34288 #. type: verbatim
34289 #: ../tools/virt-list-filesystems.pl:38
34290 #, no-wrap
34291 msgid ""
34292 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
34293 "\n"
34294 msgstr ""
34295
34296 # type: textblock
34297 #. type: textblock
34298 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
34299 msgid ""
34300 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
34301 "replacement."
34302 msgstr ""
34303
34304 # type: textblock
34305 #. type: textblock
34306 #: ../tools/virt-list-filesystems.pl:45
34307 msgid ""
34308 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
34309 "are contained in a virtual machine or disk image."
34310 msgstr ""
34311
34312 # type: textblock
34313 #. type: textblock
34314 #: ../tools/virt-list-filesystems.pl:49
34315 msgid ""
34316 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
34317 "functionality.  For more complex cases you should look at the L<guestfish(1)"
34318 "> tool."
34319 msgstr ""
34320
34321 # type: =item
34322 #. type: =item
34323 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
34324 msgid "B<-l> | B<--long>"
34325 msgstr ""
34326
34327 # type: textblock
34328 #. type: textblock
34329 #: ../tools/virt-list-filesystems.pl:108
34330 msgid ""
34331 "With this option, C<virt-list-filesystems> displays the type of each "
34332 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
34333 msgstr ""
34334
34335 # type: =item
34336 #. type: =item
34337 #: ../tools/virt-list-filesystems.pl:115
34338 msgid "B<-a> | B<--all>"
34339 msgstr ""
34340
34341 # type: textblock
34342 #. type: textblock
34343 #: ../tools/virt-list-filesystems.pl:117
34344 msgid ""
34345 "Normally we only show mountable filesystems.  If this option is given then "
34346 "swap devices are shown too."
34347 msgstr ""
34348
34349 # type: textblock
34350 #. type: textblock
34351 #: ../tools/virt-list-filesystems.pl:191
34352 msgid ""
34353 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
34354 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
34355 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
34356 msgstr ""
34357
34358 # type: textblock
34359 #. type: textblock
34360 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:307
34361 msgid "Copyright (C) 2009 Red Hat Inc."
34362 msgstr ""
34363
34364 # type: textblock
34365 #. type: textblock
34366 #: ../tools/virt-tar.pl:33
34367 msgid "virt-tar - Extract or upload files to a virtual machine"
34368 msgstr ""
34369
34370 # type: verbatim
34371 #. type: verbatim
34372 #: ../tools/virt-tar.pl:37
34373 #, no-wrap
34374 msgid ""
34375 " virt-tar [--options] -x domname directory tarball\n"
34376 "\n"
34377 msgstr ""
34378
34379 # type: verbatim
34380 #. type: verbatim
34381 #: ../tools/virt-tar.pl:39
34382 #, no-wrap
34383 msgid ""
34384 " virt-tar [--options] -u domname tarball directory\n"
34385 "\n"
34386 msgstr ""
34387
34388 # type: verbatim
34389 #. type: verbatim
34390 #: ../tools/virt-tar.pl:41
34391 #, no-wrap
34392 msgid ""
34393 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
34394 "\n"
34395 msgstr ""
34396
34397 # type: verbatim
34398 #. type: verbatim
34399 #: ../tools/virt-tar.pl:43
34400 #, no-wrap
34401 msgid ""
34402 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
34403 "\n"
34404 msgstr ""
34405
34406 #. type: textblock
34407 #: ../tools/virt-tar.pl:47
34408 msgid ""
34409 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
34410 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
34411 msgstr ""
34412
34413 # type: textblock
34414 #. type: textblock
34415 #: ../tools/virt-tar.pl:52
34416 msgid "Download C</home> from the VM into a local tarball:"
34417 msgstr ""
34418
34419 # type: verbatim
34420 #. type: verbatim
34421 #: ../tools/virt-tar.pl:54
34422 #, no-wrap
34423 msgid ""
34424 " virt-tar -x domname /home home.tar\n"
34425 "\n"
34426 msgstr ""
34427
34428 # type: verbatim
34429 #. type: verbatim
34430 #: ../tools/virt-tar.pl:56
34431 #, no-wrap
34432 msgid ""
34433 " virt-tar -zx domname /home home.tar.gz\n"
34434 "\n"
34435 msgstr ""
34436
34437 # type: textblock
34438 #. type: textblock
34439 #: ../tools/virt-tar.pl:58
34440 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
34441 msgstr ""
34442
34443 # type: verbatim
34444 #. type: verbatim
34445 #: ../tools/virt-tar.pl:60
34446 #, no-wrap
34447 msgid ""
34448 " virt-tar -u domname uploadstuff.tar /tmp\n"
34449 "\n"
34450 msgstr ""
34451
34452 # type: verbatim
34453 #. type: verbatim
34454 #: ../tools/virt-tar.pl:62
34455 #, no-wrap
34456 msgid ""
34457 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
34458 "\n"
34459 msgstr ""
34460
34461 #. type: textblock
34462 #: ../tools/virt-tar.pl:66
34463 msgid ""
34464 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
34465 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
34466 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
34467 msgstr ""
34468
34469 #. type: textblock
34470 #: ../tools/virt-tar.pl:71
34471 msgid ""
34472 "You can use I<-x> (extract) on live virtual machines, but you might get "
34473 "inconsistent results or errors if there is filesystem activity inside the "
34474 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
34475 "work, but the only way to guarantee consistent results is if the virtual "
34476 "machine is shut down."
34477 msgstr ""
34478
34479 # type: textblock
34480 #. type: textblock
34481 #: ../tools/virt-tar.pl:79
34482 msgid ""
34483 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
34484 "parts of a guest filesystem.  There are many possibilities: making backups, "
34485 "uploading data files, snooping on guest activity, fixing or customizing "
34486 "guests, etc."
34487 msgstr ""
34488
34489 # type: textblock
34490 #. type: textblock
34491 #: ../tools/virt-tar.pl:84
34492 msgid ""
34493 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
34494 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
34495 "should look at the L<guestfish(1)> tool."
34496 msgstr ""
34497
34498 #. type: textblock
34499 #: ../tools/virt-tar.pl:88
34500 msgid ""
34501 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
34502 "its contents (recursively) from the virtual machine into a local tarball.  "
34503 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
34504 "virtual machine.  You cannot use these two options together."
34505 msgstr ""
34506
34507 #. type: textblock
34508 #: ../tools/virt-tar.pl:94
34509 msgid ""
34510 "In addition, you may need to use the I<-z> (gZip) option to enable "
34511 "compression.  When uploading, you have to specify I<-z> if the upload file "
34512 "is compressed because virt-tar won't detect this on its own."
34513 msgstr ""
34514
34515 # type: textblock
34516 #. type: textblock
34517 #: ../tools/virt-tar.pl:98
34518 msgid ""
34519 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
34520 "example it cannot do PKZip files or bzip2 compression.  If you want that "
34521 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
34522 "the L<libguestfs(3)> API)."
34523 msgstr ""
34524
34525 # type: =item
34526 #. type: =item
34527 #: ../tools/virt-tar.pl:156
34528 msgid "B<-x> | B<--extract> | B<--download>"
34529 msgstr ""
34530
34531 # type: =item
34532 #. type: =item
34533 #: ../tools/virt-tar.pl:158
34534 msgid "B<-u> | B<--upload>"
34535 msgstr ""
34536
34537 #. type: textblock
34538 #: ../tools/virt-tar.pl:160
34539 msgid ""
34540 "Use I<-x> to extract (download) a directory from a virtual machine to a "
34541 "local tarball."
34542 msgstr ""
34543
34544 #. type: textblock
34545 #: ../tools/virt-tar.pl:163
34546 msgid ""
34547 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
34548 "Please read the L</WARNING> section above before using this option."
34549 msgstr ""
34550
34551 # type: textblock
34552 #. type: textblock
34553 #: ../tools/virt-tar.pl:167
34554 msgid "You must specify exactly one of these options."
34555 msgstr ""
34556
34557 # type: =item
34558 #. type: =item
34559 #: ../tools/virt-tar.pl:173
34560 msgid "B<-z> | B<--gzip>"
34561 msgstr ""
34562
34563 # type: textblock
34564 #. type: textblock
34565 #: ../tools/virt-tar.pl:175
34566 msgid "Specify that the input or output tarball is gzip-compressed."
34567 msgstr ""
34568
34569 #. type: textblock
34570 #: ../tools/virt-tar.pl:288
34571 msgid ""
34572 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
34573 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
34574 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
34575 "org/>."
34576 msgstr ""
34577
34578 # type: textblock
34579 #. type: textblock
34580 #: ../tools/virt-make-fs.pl:37
34581 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
34582 msgstr ""
34583
34584 # type: verbatim
34585 #. type: verbatim
34586 #: ../tools/virt-make-fs.pl:41
34587 #, no-wrap
34588 msgid ""
34589 " virt-make-fs [--options] input.tar output.img\n"
34590 "\n"
34591 msgstr ""
34592
34593 # type: verbatim
34594 #. type: verbatim
34595 #: ../tools/virt-make-fs.pl:43
34596 #, no-wrap
34597 msgid ""
34598 " virt-make-fs [--options] input.tar.gz output.img\n"
34599 "\n"
34600 msgstr ""
34601
34602 # type: verbatim
34603 #. type: verbatim
34604 #: ../tools/virt-make-fs.pl:45
34605 #, no-wrap
34606 msgid ""
34607 " virt-make-fs [--options] directory output.img\n"
34608 "\n"
34609 msgstr ""
34610
34611 # type: textblock
34612 #. type: textblock
34613 #: ../tools/virt-make-fs.pl:49
34614 msgid ""
34615 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
34616 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
34617 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
34618 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
34619 "you want to attach these filesystems to existing virtual machines (eg. to "
34620 "import large amounts of read-only data to a VM)."
34621 msgstr ""
34622
34623 # type: textblock
34624 #. type: textblock
34625 #: ../tools/virt-make-fs.pl:57
34626 msgid "Basic usage is:"
34627 msgstr ""
34628
34629 # type: verbatim
34630 #. type: verbatim
34631 #: ../tools/virt-make-fs.pl:59
34632 #, no-wrap
34633 msgid ""
34634 " virt-make-fs input output\n"
34635 "\n"
34636 msgstr ""
34637
34638 # type: textblock
34639 #. type: textblock
34640 #: ../tools/virt-make-fs.pl:61
34641 msgid ""
34642 "where C<input> is either a directory containing files that you want to add, "
34643 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
34644 "C<output> is a disk image.  The input type is detected automatically.  The "
34645 "output disk image defaults to a raw ext2 image unless you specify extra "
34646 "flags (see L</OPTIONS> below)."
34647 msgstr ""
34648
34649 # type: =head2
34650 #. type: =head2
34651 #: ../tools/virt-make-fs.pl:67
34652 msgid "EXTRA SPACE"
34653 msgstr ""
34654
34655 #. type: textblock
34656 #: ../tools/virt-make-fs.pl:69
34657 msgid ""
34658 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
34659 "the files that it contains, but might have extra space.  Depending on how "
34660 "you are going to use the output, you might think this extra space is wasted "
34661 "and want to minimize it, or you might want to leave space so that more files "
34662 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
34663 "but you can use the I<--size> flag to leave space in the filesystem if you "
34664 "want it."
34665 msgstr ""
34666
34667 #. type: textblock
34668 #: ../tools/virt-make-fs.pl:77
34669 msgid ""
34670 "An alternative way to leave extra space but not make the output image any "
34671 "bigger is to use an alternative disk image format (instead of the default "
34672 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
34673 "image format (check your hypervisor supports this before using it).  This "
34674 "allows you to choose a large I<--size> but the extra space won't actually be "
34675 "allocated in the image until you try to store something in it."
34676 msgstr ""
34677
34678 #. type: textblock
34679 #: ../tools/virt-make-fs.pl:85
34680 msgid ""
34681 "Don't forget that you can also use local commands including L<resize2fs(8)> "
34682 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
34683 "to build another image from scratch."
34684 msgstr ""
34685
34686 # type: =head3
34687 #. type: =head3
34688 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
34689 #: ../tools/virt-make-fs.pl:142
34690 msgid "EXAMPLE"
34691 msgstr ""
34692
34693 # type: verbatim
34694 #. type: verbatim
34695 #: ../tools/virt-make-fs.pl:91
34696 #, no-wrap
34697 msgid ""
34698 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
34699 "\n"
34700 msgstr ""
34701
34702 # type: =head2
34703 #. type: =head2
34704 #: ../tools/virt-make-fs.pl:93
34705 msgid "FILESYSTEM TYPE"
34706 msgstr ""
34707
34708 # type: textblock
34709 #. type: textblock
34710 #: ../tools/virt-make-fs.pl:95
34711 msgid ""
34712 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
34713 "libguestfs supports can be used (but I<not> read-only formats like "
34714 "ISO9660).  Here are some of the more common choices:"
34715 msgstr ""
34716
34717 # type: =item
34718 #. type: =item
34719 #: ../tools/virt-make-fs.pl:101
34720 msgid "I<ext3>"
34721 msgstr ""
34722
34723 # type: textblock
34724 #. type: textblock
34725 #: ../tools/virt-make-fs.pl:103
34726 msgid ""
34727 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
34728 "you are not going to use the filesystem in a way that requires the journal, "
34729 "then this is just wasted overhead."
34730 msgstr ""
34731
34732 # type: =item
34733 #. type: =item
34734 #: ../tools/virt-make-fs.pl:107
34735 msgid "I<ntfs> or I<vfat>"
34736 msgstr ""
34737
34738 # type: textblock
34739 #. type: textblock
34740 #: ../tools/virt-make-fs.pl:109
34741 msgid "Useful if exporting data to a Windows guest."
34742 msgstr ""
34743
34744 # type: textblock
34745 #. type: textblock
34746 #: ../tools/virt-make-fs.pl:111
34747 msgid ""
34748 "I<Note for vfat>: The tar archive or local directory must only contain files "
34749 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
34750 "program running within libguestfs is unable to change the ownership of non-"
34751 "root files, since vfat itself does not support this."
34752 msgstr ""
34753
34754 # type: =item
34755 #. type: =item
34756 #: ../tools/virt-make-fs.pl:116
34757 msgid "I<minix>"
34758 msgstr ""
34759
34760 # type: textblock
34761 #. type: textblock
34762 #: ../tools/virt-make-fs.pl:118
34763 msgid ""
34764 "Lower overhead than C<ext2>, but certain limitations on filename length and "
34765 "total filesystem size."
34766 msgstr ""
34767
34768 # type: verbatim
34769 #. type: verbatim
34770 #: ../tools/virt-make-fs.pl:125
34771 #, no-wrap
34772 msgid ""
34773 " virt-make-fs --type=minix input minixfs.img\n"
34774 "\n"
34775 msgstr ""
34776
34777 # type: =head2
34778 #. type: =head2
34779 #: ../tools/virt-make-fs.pl:127
34780 msgid "TO PARTITION OR NOT TO PARTITION"
34781 msgstr ""
34782
34783 # type: textblock
34784 #. type: textblock
34785 #: ../tools/virt-make-fs.pl:129
34786 msgid "Optionally virt-make-fs can add a partition table to the output disk."
34787 msgstr ""
34788
34789 # type: textblock
34790 #. type: textblock
34791 #: ../tools/virt-make-fs.pl:131
34792 msgid ""
34793 "Adding a partition can make the disk image more compatible with certain "
34794 "virtualized operating systems which don't expect to see a filesystem "
34795 "directly located on a block device (Linux doesn't care and will happily "
34796 "handle both types)."
34797 msgstr ""
34798
34799 # type: textblock
34800 #. type: textblock
34801 #: ../tools/virt-make-fs.pl:136
34802 msgid ""
34803 "On the other hand, if you have a partition table then the output image is no "
34804 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
34805 "directly on a partitioned disk image.  (However libguestfs tools such as "
34806 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
34807 msgstr ""
34808
34809 # type: textblock
34810 #. type: textblock
34811 #: ../tools/virt-make-fs.pl:144
34812 msgid "Add an MBR partition:"
34813 msgstr ""
34814
34815 # type: verbatim
34816 #. type: verbatim
34817 #: ../tools/virt-make-fs.pl:146
34818 #, no-wrap
34819 msgid ""
34820 " virt-make-fs --partition -- input disk.img\n"
34821 "\n"
34822 msgstr ""
34823
34824 # type: textblock
34825 #. type: textblock
34826 #: ../tools/virt-make-fs.pl:148
34827 msgid ""
34828 "If the output disk image could be terabyte-sized or larger, it's better to "
34829 "use an EFI/GPT-compatible partition table:"
34830 msgstr ""
34831
34832 # type: verbatim
34833 #. type: verbatim
34834 #: ../tools/virt-make-fs.pl:151
34835 #, no-wrap
34836 msgid ""
34837 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
34838 "\n"
34839 msgstr ""
34840
34841 # type: textblock
34842 #. type: textblock
34843 #: ../tools/virt-make-fs.pl:179
34844 msgid "Enable debugging information."
34845 msgstr ""
34846
34847 # type: =item
34848 #. type: =item
34849 #: ../tools/virt-make-fs.pl:185
34850 msgid "B<--size=E<lt>NE<gt>>"
34851 msgstr ""
34852
34853 # type: =item
34854 #. type: =item
34855 #: ../tools/virt-make-fs.pl:187
34856 msgid "B<--size=+E<lt>NE<gt>>"
34857 msgstr ""
34858
34859 # type: =item
34860 #. type: =item
34861 #: ../tools/virt-make-fs.pl:189
34862 msgid "B<-s E<lt>NE<gt>>"
34863 msgstr ""
34864
34865 # type: =item
34866 #. type: =item
34867 #: ../tools/virt-make-fs.pl:191
34868 msgid "B<-s +E<lt>NE<gt>>"
34869 msgstr ""
34870
34871 #. type: textblock
34872 #: ../tools/virt-make-fs.pl:193
34873 msgid ""
34874 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
34875 msgstr ""
34876
34877 # type: textblock
34878 #. type: textblock
34879 #: ../tools/virt-make-fs.pl:196
34880 msgid ""
34881 "If this option is I<not> given, then the output image will be just large "
34882 "enough to contain all the files, with not much wasted space."
34883 msgstr ""
34884
34885 # type: textblock
34886 #. type: textblock
34887 #: ../tools/virt-make-fs.pl:199
34888 msgid ""
34889 "To choose a fixed size output disk, specify an absolute number followed by b/"
34890 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
34891 "Petabytes or Exabytes.  This must be large enough to contain all the input "
34892 "files, else you will get an error."
34893 msgstr ""
34894
34895 #. type: textblock
34896 #: ../tools/virt-make-fs.pl:204
34897 msgid ""
34898 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
34899 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
34900 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
34901 "the input files, and (approximately) an extra 200 MB free space."
34902 msgstr ""
34903
34904 # type: textblock
34905 #. type: textblock
34906 #: ../tools/virt-make-fs.pl:210
34907 msgid ""
34908 "Note that virt-make-fs estimates free space, and therefore will not produce "
34909 "filesystems containing precisely the free space requested.  (It is much more "
34910 "expensive and time-consuming to produce a filesystem which has precisely the "
34911 "desired free space)."
34912 msgstr ""
34913
34914 # type: =item
34915 #. type: =item
34916 #: ../tools/virt-make-fs.pl:219
34917 msgid "B<--format=E<lt>fmtE<gt>>"
34918 msgstr ""
34919
34920 # type: =item
34921 #. type: =item
34922 #: ../tools/virt-make-fs.pl:221
34923 msgid "B<-F E<lt>fmtE<gt>>"
34924 msgstr ""
34925
34926 # type: textblock
34927 #. type: textblock
34928 #: ../tools/virt-make-fs.pl:223
34929 msgid "Choose the output disk image format."
34930 msgstr ""
34931
34932 # type: textblock
34933 #. type: textblock
34934 #: ../tools/virt-make-fs.pl:225
34935 msgid "The default is C<raw> (raw disk image)."
34936 msgstr ""
34937
34938 # type: textblock
34939 #. type: textblock
34940 #: ../tools/virt-make-fs.pl:227
34941 msgid ""
34942 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
34943 "that would really make sense here is C<qcow2>."
34944 msgstr ""
34945
34946 # type: =item
34947 #. type: =item
34948 #: ../tools/virt-make-fs.pl:234
34949 msgid "B<--type=E<lt>fsE<gt>>"
34950 msgstr ""
34951
34952 # type: =item
34953 #. type: =item
34954 #: ../tools/virt-make-fs.pl:236
34955 msgid "B<-t E<lt>fsE<gt>>"
34956 msgstr ""
34957
34958 # type: textblock
34959 #. type: textblock
34960 #: ../tools/virt-make-fs.pl:238
34961 msgid "Choose the output filesystem type."
34962 msgstr ""
34963
34964 # type: textblock
34965 #. type: textblock
34966 #: ../tools/virt-make-fs.pl:240
34967 msgid "The default is C<ext2>."
34968 msgstr ""
34969
34970 # type: textblock
34971 #. type: textblock
34972 #: ../tools/virt-make-fs.pl:242
34973 msgid ""
34974 "Any filesystem which is supported read-write by libguestfs can be used here."
34975 msgstr ""
34976
34977 # type: =item
34978 #. type: =item
34979 #: ../tools/virt-make-fs.pl:249
34980 msgid "B<--partition>"
34981 msgstr ""
34982
34983 # type: =item
34984 #. type: =item
34985 #: ../tools/virt-make-fs.pl:251
34986 msgid "B<--partition=E<lt>parttypeE<gt>>"
34987 msgstr ""
34988
34989 # type: textblock
34990 #. type: textblock
34991 #: ../tools/virt-make-fs.pl:253
34992 msgid ""
34993 "If specified, this flag adds an MBR partition table to the output disk image."
34994 msgstr ""
34995
34996 #. type: textblock
34997 #: ../tools/virt-make-fs.pl:256
34998 msgid ""
34999 "You can change the partition table type, eg. I<--partition=gpt> for large "
35000 "disks."
35001 msgstr ""
35002
35003 #. type: textblock
35004 #: ../tools/virt-make-fs.pl:259
35005 msgid ""
35006 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
35007 "might consider the next parameter to be the partition type.  For example:"
35008 msgstr ""
35009
35010 # type: verbatim
35011 #. type: verbatim
35012 #: ../tools/virt-make-fs.pl:263
35013 #, no-wrap
35014 msgid ""
35015 " virt-make-fs --partition input.tar ...\n"
35016 "\n"
35017 msgstr ""
35018
35019 #. type: textblock
35020 #: ../tools/virt-make-fs.pl:265
35021 msgid ""
35022 "would cause virt-make-fs to think you wanted to use a partition type of "
35023 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
35024 "dash) between options and the input file argument:"
35025 msgstr ""
35026
35027 # type: verbatim
35028 #. type: verbatim
35029 #: ../tools/virt-make-fs.pl:269
35030 #, no-wrap
35031 msgid ""
35032 " virt-make-fs --partition -- input.tar ...\n"
35033 "\n"
35034 msgstr ""
35035
35036 #. type: textblock
35037 #: ../tools/virt-make-fs.pl:541
35038 msgid ""
35039 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
35040 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
35041 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
35042 msgstr ""
35043
35044 # type: verbatim
35045 #. type: verbatim
35046 #: ../tools/virt-make-fs.pl:558
35047 #, no-wrap
35048 msgid ""
35049 " export LIBGUESTFS_DEBUG=1\n"
35050 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
35051 "\n"
35052 msgstr ""
35053
35054 # type: textblock
35055 #. type: textblock
35056 #: ../tools/virt-make-fs.pl:561
35057 msgid ""
35058 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
35059 "redhat.com/>"
35060 msgstr ""
35061
35062 # type: textblock
35063 #. type: textblock
35064 #: ../tools/virt-list-partitions.pl:32
35065 msgid ""
35066 "virt-list-partitions - List partitions in a virtual machine or disk image"
35067 msgstr ""
35068
35069 # type: verbatim
35070 #. type: verbatim
35071 #: ../tools/virt-list-partitions.pl:36
35072 #, no-wrap
35073 msgid ""
35074 " virt-list-partitions [--options] domname\n"
35075 "\n"
35076 msgstr ""
35077
35078 # type: verbatim
35079 #. type: verbatim
35080 #: ../tools/virt-list-partitions.pl:38
35081 #, no-wrap
35082 msgid ""
35083 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
35084 "\n"
35085 msgstr ""
35086
35087 # type: textblock
35088 #. type: textblock
35089 #: ../tools/virt-list-partitions.pl:45
35090 msgid ""
35091 "C<virt-list-partitions> is a command line tool to list the partitions that "
35092 "are contained in a virtual machine or disk image.  It is mainly useful as a "
35093 "first step to using L<virt-resize(1)>."
35094 msgstr ""
35095
35096 # type: textblock
35097 #. type: textblock
35098 #: ../tools/virt-list-partitions.pl:50
35099 msgid ""
35100 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
35101 "functionality.  For more complex cases you should look at the L<guestfish(1)"
35102 "> tool."
35103 msgstr ""
35104
35105 # type: =item
35106 #. type: =item
35107 #: ../tools/virt-list-partitions.pl:107
35108 msgid "B<-h> | B<--human-readable>"
35109 msgstr ""
35110
35111 # type: textblock
35112 #. type: textblock
35113 #: ../tools/virt-list-partitions.pl:109
35114 msgid "Show sizes in human-readable form (eg. \"1G\")."
35115 msgstr ""
35116
35117 # type: textblock
35118 #. type: textblock
35119 #: ../tools/virt-list-partitions.pl:117
35120 msgid ""
35121 "With this option, C<virt-list-partitions> displays the type and size of each "
35122 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
35123 msgstr ""
35124
35125 # type: =item
35126 #. type: =item
35127 #: ../tools/virt-list-partitions.pl:124
35128 msgid "B<-t> | B<--total>"
35129 msgstr ""
35130
35131 # type: textblock
35132 #. type: textblock
35133 #: ../tools/virt-list-partitions.pl:126
35134 msgid ""
35135 "Display the total size of each block device (as a separate row or rows)."
35136 msgstr ""
35137
35138 # type: textblock
35139 #. type: textblock
35140 #: ../tools/virt-list-partitions.pl:259
35141 msgid ""
35142 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
35143 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
35144 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
35145 msgstr ""
35146
35147 # type: textblock
35148 #. type: textblock
35149 #: ../tools/virt-list-partitions.pl:275
35150 msgid "Copyright (C) 2009-2010 Red Hat Inc."
35151 msgstr ""