Version 1.11.14.
[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-06 15:21+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:1603
931 #: ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1611
932 #: ../src/guestfs-actions.pod:1615 ../src/guestfs-actions.pod:1623
933 #: ../src/guestfs-actions.pod:1627 ../src/guestfs-actions.pod:1631
934 #: ../src/guestfs-actions.pod:1641 ../src/guestfs-actions.pod:1645
935 #: ../src/guestfs-actions.pod:1649 ../src/guestfs-actions.pod:1787
936 #: ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:1796
937 #: ../src/guestfs-actions.pod:1801 ../src/guestfs-actions.pod:1862
938 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:1871
939 #: ../src/guestfs-actions.pod:2789 ../src/guestfs-actions.pod:2795
940 #: ../src/guestfs-actions.pod:2803 ../src/guestfs-actions.pod:2810
941 #: ../src/guestfs-actions.pod:2817 ../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:1074
947 #: ../fish/guestfish-actions.pod:1078 ../fish/guestfish-actions.pod:1082
948 #: ../fish/guestfish-actions.pod:1086 ../fish/guestfish-actions.pod:1094
949 #: ../fish/guestfish-actions.pod:1098 ../fish/guestfish-actions.pod:1102
950 #: ../fish/guestfish-actions.pod:1112 ../fish/guestfish-actions.pod:1116
951 #: ../fish/guestfish-actions.pod:1120 ../fish/guestfish-actions.pod:1210
952 #: ../fish/guestfish-actions.pod:1214 ../fish/guestfish-actions.pod:1219
953 #: ../fish/guestfish-actions.pod:1224 ../fish/guestfish-actions.pod:1266
954 #: ../fish/guestfish-actions.pod:1270 ../fish/guestfish-actions.pod:1275
955 #: ../fish/guestfish-actions.pod:1902 ../fish/guestfish-actions.pod:1908
956 #: ../fish/guestfish-actions.pod:1916 ../fish/guestfish-actions.pod:1923
957 #: ../fish/guestfish-actions.pod:1930 ../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:1858 ../src/guestfs-actions.pod:2785
3666 #: ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1262
3667 #: ../fish/guestfish-actions.pod:1898 ../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:5991
5577 #: ../fish/guestfish-actions.pod:3968
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:982 ../src/guestfs-actions.pod:1002
6418 #: ../src/guestfs-actions.pod:1020 ../src/guestfs-actions.pod:1104
6419 #: ../src/guestfs-actions.pod:1122 ../src/guestfs-actions.pod:1141
6420 #: ../src/guestfs-actions.pod:1155 ../src/guestfs-actions.pod:1175
6421 #: ../src/guestfs-actions.pod:1245 ../src/guestfs-actions.pod:1276
6422 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1343
6423 #: ../src/guestfs-actions.pod:1449 ../src/guestfs-actions.pod:1483
6424 #: ../src/guestfs-actions.pod:1698 ../src/guestfs-actions.pod:1720
6425 #: ../src/guestfs-actions.pod:1807 ../src/guestfs-actions.pod:2271
6426 #: ../src/guestfs-actions.pod:2415 ../src/guestfs-actions.pod:2476
6427 #: ../src/guestfs-actions.pod:2511 ../src/guestfs-actions.pod:3551
6428 #: ../src/guestfs-actions.pod:3566 ../src/guestfs-actions.pod:3591
6429 #: ../src/guestfs-actions.pod:3760 ../src/guestfs-actions.pod:3774
6430 #: ../src/guestfs-actions.pod:3787 ../src/guestfs-actions.pod:3801
6431 #: ../src/guestfs-actions.pod:3816 ../src/guestfs-actions.pod:3852
6432 #: ../src/guestfs-actions.pod:3924 ../src/guestfs-actions.pod:3944
6433 #: ../src/guestfs-actions.pod:3961 ../src/guestfs-actions.pod:3984
6434 #: ../src/guestfs-actions.pod:4007 ../src/guestfs-actions.pod:4039
6435 #: ../src/guestfs-actions.pod:4058 ../src/guestfs-actions.pod:4077
6436 #: ../src/guestfs-actions.pod:4112 ../src/guestfs-actions.pod:4124
6437 #: ../src/guestfs-actions.pod:4160 ../src/guestfs-actions.pod:4176
6438 #: ../src/guestfs-actions.pod:4189 ../src/guestfs-actions.pod:4204
6439 #: ../src/guestfs-actions.pod:4221 ../src/guestfs-actions.pod:4314
6440 #: ../src/guestfs-actions.pod:4334 ../src/guestfs-actions.pod:4347
6441 #: ../src/guestfs-actions.pod:4398 ../src/guestfs-actions.pod:4416
6442 #: ../src/guestfs-actions.pod:4434 ../src/guestfs-actions.pod:4450
6443 #: ../src/guestfs-actions.pod:4464 ../src/guestfs-actions.pod:4478
6444 #: ../src/guestfs-actions.pod:4495 ../src/guestfs-actions.pod:4510
6445 #: ../src/guestfs-actions.pod:4530 ../src/guestfs-actions.pod:4600
6446 #: ../src/guestfs-actions.pod:4673 ../src/guestfs-actions.pod:4704
6447 #: ../src/guestfs-actions.pod:4723 ../src/guestfs-actions.pod:4742
6448 #: ../src/guestfs-actions.pod:4754 ../src/guestfs-actions.pod:4771
6449 #: ../src/guestfs-actions.pod:4784 ../src/guestfs-actions.pod:4799
6450 #: ../src/guestfs-actions.pod:4814 ../src/guestfs-actions.pod:4849
6451 #: ../src/guestfs-actions.pod:4882 ../src/guestfs-actions.pod:4921
6452 #: ../src/guestfs-actions.pod:4941 ../src/guestfs-actions.pod:4955
6453 #: ../src/guestfs-actions.pod:4972 ../src/guestfs-actions.pod:5021
6454 #: ../src/guestfs-actions.pod:5058 ../src/guestfs-actions.pod:5072
6455 #: ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5117
6456 #: ../src/guestfs-actions.pod:5135 ../src/guestfs-actions.pod:5269
6457 #: ../src/guestfs-actions.pod:5326 ../src/guestfs-actions.pod:5348
6458 #: ../src/guestfs-actions.pod:5366 ../src/guestfs-actions.pod:5398
6459 #: ../src/guestfs-actions.pod:5464 ../src/guestfs-actions.pod:5481
6460 #: ../src/guestfs-actions.pod:5494 ../src/guestfs-actions.pod:5508
6461 #: ../src/guestfs-actions.pod:5797 ../src/guestfs-actions.pod:5816
6462 #: ../src/guestfs-actions.pod:5835 ../src/guestfs-actions.pod:5849
6463 #: ../src/guestfs-actions.pod:5861 ../src/guestfs-actions.pod:5875
6464 #: ../src/guestfs-actions.pod:5887 ../src/guestfs-actions.pod:5901
6465 #: ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:5938
6466 #: ../src/guestfs-actions.pod:5957 ../src/guestfs-actions.pod:5976
6467 #: ../src/guestfs-actions.pod:6006 ../src/guestfs-actions.pod:6024
6468 #: ../src/guestfs-actions.pod:6047 ../src/guestfs-actions.pod:6065
6469 #: ../src/guestfs-actions.pod:6084 ../src/guestfs-actions.pod:6105
6470 #: ../src/guestfs-actions.pod:6124 ../src/guestfs-actions.pod:6141
6471 #: ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6193
6472 #: ../src/guestfs-actions.pod:6212 ../src/guestfs-actions.pod:6236
6473 #: ../src/guestfs-actions.pod:6255 ../src/guestfs-actions.pod:6270
6474 #: ../src/guestfs-actions.pod:6289 ../src/guestfs-actions.pod:6326
6475 #: ../src/guestfs-actions.pod:6356 ../src/guestfs-actions.pod:6389
6476 #: ../src/guestfs-actions.pod:6511 ../src/guestfs-actions.pod:6632
6477 #: ../src/guestfs-actions.pod:6644 ../src/guestfs-actions.pod:6657
6478 #: ../src/guestfs-actions.pod:6670 ../src/guestfs-actions.pod:6692
6479 #: ../src/guestfs-actions.pod:6705 ../src/guestfs-actions.pod:6718
6480 #: ../src/guestfs-actions.pod:6731 ../src/guestfs-actions.pod:6746
6481 #: ../src/guestfs-actions.pod:6805 ../src/guestfs-actions.pod:6822
6482 #: ../src/guestfs-actions.pod:6838 ../src/guestfs-actions.pod:6854
6483 #: ../src/guestfs-actions.pod:6871 ../src/guestfs-actions.pod:6884
6484 #: ../src/guestfs-actions.pod:6904 ../src/guestfs-actions.pod:6940
6485 #: ../src/guestfs-actions.pod:6954 ../src/guestfs-actions.pod:6995
6486 #: ../src/guestfs-actions.pod:7008 ../src/guestfs-actions.pod:7026
6487 #: ../src/guestfs-actions.pod:7060 ../src/guestfs-actions.pod:7096
6488 #: ../src/guestfs-actions.pod:7215 ../src/guestfs-actions.pod:7233
6489 #: ../src/guestfs-actions.pod:7247 ../src/guestfs-actions.pod:7302
6490 #: ../src/guestfs-actions.pod:7315 ../src/guestfs-actions.pod:7360
6491 #: ../src/guestfs-actions.pod:7393 ../src/guestfs-actions.pod:7454
6492 #: ../src/guestfs-actions.pod:7480 ../src/guestfs-actions.pod:7547
6493 #: ../src/guestfs-actions.pod:7566 ../src/guestfs-actions.pod:7595
6494 msgid "This function returns 0 on success or -1 on error."
6495 msgstr ""
6496
6497 # type: textblock
6498 #. type: textblock
6499 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:254
6500 #: ../src/guestfs-actions.pod:275 ../fish/guestfish-actions.pod:28
6501 #: ../fish/guestfish-actions.pod:163 ../fish/guestfish-actions.pod:177
6502 msgid ""
6503 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
6504 "instead."
6505 msgstr ""
6506
6507 # type: textblock
6508 #. type: textblock
6509 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257
6510 #: ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1454
6511 #: ../src/guestfs-actions.pod:1949 ../src/guestfs-actions.pod:1970
6512 #: ../src/guestfs-actions.pod:4535 ../src/guestfs-actions.pod:4854
6513 #: ../src/guestfs-actions.pod:6334 ../src/guestfs-actions.pod:6364
6514 #: ../src/guestfs-actions.pod:6397 ../src/guestfs-actions.pod:6456
6515 #: ../src/guestfs-actions.pod:7398 ../src/guestfs-actions.pod:7488
6516 #: ../src/guestfs-actions.pod:7658 ../fish/guestfish-actions.pod:31
6517 #: ../fish/guestfish-actions.pod:166 ../fish/guestfish-actions.pod:180
6518 #: ../fish/guestfish-actions.pod:961 ../fish/guestfish-actions.pod:1321
6519 #: ../fish/guestfish-actions.pod:1335 ../fish/guestfish-actions.pod:3038
6520 #: ../fish/guestfish-actions.pod:3245 ../fish/guestfish-actions.pod:4230
6521 #: ../fish/guestfish-actions.pod:4253 ../fish/guestfish-actions.pod:4275
6522 #: ../fish/guestfish-actions.pod:4313 ../fish/guestfish-actions.pod:4954
6523 #: ../fish/guestfish-actions.pod:5052
6524 msgid ""
6525 "Deprecated functions will not be removed from the API, but the fact that "
6526 "they are deprecated indicates that there are problems with correct use of "
6527 "these functions."
6528 msgstr ""
6529
6530 # type: textblock
6531 #. type: textblock
6532 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
6533 #: ../src/guestfs-actions.pod:1106 ../src/guestfs-actions.pod:1921
6534 #: ../src/guestfs-actions.pod:2019 ../src/guestfs-actions.pod:2122
6535 #: ../src/guestfs-actions.pod:3553 ../src/guestfs-actions.pod:3573
6536 #: ../src/guestfs-actions.pod:4858 ../src/guestfs-actions.pod:6026
6537 #: ../src/guestfs-actions.pod:6143 ../src/guestfs-actions.pod:6257
6538 #: ../src/guestfs-actions.pod:6748 ../src/guestfs-actions.pod:6873
6539 #: ../src/guestfs-actions.pod:7402
6540 msgid "(Added in 0.3)"
6541 msgstr ""
6542
6543 # type: =head2
6544 #. type: =head2
6545 #: ../src/guestfs-actions.pod:41
6546 msgid "guestfs_add_domain"
6547 msgstr ""
6548
6549 # type: verbatim
6550 #. type: verbatim
6551 #: ../src/guestfs-actions.pod:43
6552 #, no-wrap
6553 msgid ""
6554 " int\n"
6555 " guestfs_add_domain (guestfs_h *g,\n"
6556 "                     const char *dom,\n"
6557 "                     ...);\n"
6558 "\n"
6559 msgstr ""
6560
6561 # type: textblock
6562 #. type: textblock
6563 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
6564 #: ../src/guestfs-actions.pod:2756 ../src/guestfs-actions.pod:4549
6565 #: ../src/guestfs-actions.pod:4868
6566 msgid ""
6567 "You may supply a list of optional arguments to this call.  Use zero or more "
6568 "of the following pairs of parameters, and terminate the list with C<-1> on "
6569 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
6570 msgstr ""
6571
6572 #. type: verbatim
6573 #: ../src/guestfs-actions.pod:53
6574 #, no-wrap
6575 msgid ""
6576 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
6577 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
6578 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
6579 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
6580 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
6581 "\n"
6582 msgstr ""
6583
6584 # type: textblock
6585 #. type: textblock
6586 #: ../src/guestfs-actions.pod:59
6587 msgid ""
6588 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6589 "It works by connecting to libvirt, requesting the domain and domain XML from "
6590 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
6591 "one."
6592 msgstr ""
6593
6594 # type: textblock
6595 #. type: textblock
6596 #: ../src/guestfs-actions.pod:64 ../fish/guestfish-actions.pod:46
6597 msgid ""
6598 "The number of disks added is returned.  This operation is atomic: if an "
6599 "error is returned, then no disks are added."
6600 msgstr ""
6601
6602 # type: textblock
6603 #. type: textblock
6604 #: ../src/guestfs-actions.pod:67 ../fish/guestfish-actions.pod:49
6605 msgid ""
6606 "This function does some minimal checks to make sure the libvirt domain is "
6607 "not running (unless C<readonly> is true).  In a future version we will try "
6608 "to acquire the libvirt lock on each disk."
6609 msgstr ""
6610
6611 # type: textblock
6612 #. type: textblock
6613 #: ../src/guestfs-actions.pod:71 ../fish/guestfish-actions.pod:53
6614 msgid ""
6615 "Disks must be accessible locally.  This often means that adding disks from a "
6616 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6617 "unless those disks are accessible via the same device path locally too."
6618 msgstr ""
6619
6620 #. type: textblock
6621 #: ../src/guestfs-actions.pod:76 ../fish/guestfish-actions.pod:58
6622 msgid ""
6623 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6624 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
6625 "libvirt URI (or one set through an environment variable, see the libvirt "
6626 "documentation for full details)."
6627 msgstr ""
6628
6629 #. type: textblock
6630 #: ../src/guestfs-actions.pod:82 ../fish/guestfish-actions.pod:64
6631 msgid ""
6632 "The optional C<live> flag controls whether this call will try to connect to "
6633 "a running virtual machine C<guestfsd> process if it sees a suitable "
6634 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6635 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6636 "DAEMONS> for more information."
6637 msgstr ""
6638
6639 #. type: textblock
6640 #: ../src/guestfs-actions.pod:89 ../fish/guestfish-actions.pod:71
6641 msgid ""
6642 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6643 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6644 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6645 "as usual."
6646 msgstr ""
6647
6648 # type: textblock
6649 #. type: textblock
6650 #: ../src/guestfs-actions.pod:94
6651 msgid ""
6652 "The other optional parameters are passed directly through to "
6653 "C<guestfs_add_drive_opts>."
6654 msgstr ""
6655
6656 # type: textblock
6657 #. type: textblock
6658 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
6659 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:693
6660 #: ../src/guestfs-actions.pod:724 ../src/guestfs-actions.pod:742
6661 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:1321
6662 #: ../src/guestfs-actions.pod:1677 ../src/guestfs-actions.pod:1880
6663 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:2031
6664 #: ../src/guestfs-actions.pod:2086 ../src/guestfs-actions.pod:2109
6665 #: ../src/guestfs-actions.pod:2402 ../src/guestfs-actions.pod:2874
6666 #: ../src/guestfs-actions.pod:2892 ../src/guestfs-actions.pod:5044
6667 #: ../src/guestfs-actions.pod:5172 ../src/guestfs-actions.pod:5578
6668 #: ../src/guestfs-actions.pod:5604 ../src/guestfs-actions.pod:6981
6669 #: ../src/guestfs-actions.pod:7413 ../src/guestfs-actions.pod:7426
6670 #: ../src/guestfs-actions.pod:7439
6671 msgid "On error this function returns -1."
6672 msgstr ""
6673
6674 # type: textblock
6675 #. type: textblock
6676 #: ../src/guestfs-actions.pod:99
6677 msgid "(Added in 1.7.4)"
6678 msgstr ""
6679
6680 # type: =head2
6681 #. type: =head2
6682 #: ../src/guestfs-actions.pod:101
6683 msgid "guestfs_add_domain_va"
6684 msgstr ""
6685
6686 # type: verbatim
6687 #. type: verbatim
6688 #: ../src/guestfs-actions.pod:103
6689 #, no-wrap
6690 msgid ""
6691 " int\n"
6692 " guestfs_add_domain_va (guestfs_h *g,\n"
6693 "                        const char *dom,\n"
6694 "                        va_list args);\n"
6695 "\n"
6696 msgstr ""
6697
6698 # type: textblock
6699 #. type: textblock
6700 #: ../src/guestfs-actions.pod:108
6701 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
6702 msgstr ""
6703
6704 # type: textblock
6705 #. type: textblock
6706 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
6707 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
6708 #: ../src/guestfs-actions.pod:2840 ../src/guestfs-actions.pod:2852
6709 #: ../src/guestfs-actions.pod:4614 ../src/guestfs-actions.pod:4626
6710 #: ../src/guestfs-actions.pod:4896 ../src/guestfs-actions.pod:4908
6711 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
6712 msgstr ""
6713
6714 # type: =head2
6715 #. type: =head2
6716 #: ../src/guestfs-actions.pod:112
6717 msgid "guestfs_add_domain_argv"
6718 msgstr ""
6719
6720 # type: verbatim
6721 #. type: verbatim
6722 #: ../src/guestfs-actions.pod:114
6723 #, no-wrap
6724 msgid ""
6725 " int\n"
6726 " guestfs_add_domain_argv (guestfs_h *g,\n"
6727 "                          const char *dom,\n"
6728 "                          const struct guestfs_add_domain_argv *optargs);\n"
6729 "\n"
6730 msgstr ""
6731
6732 # type: textblock
6733 #. type: textblock
6734 #: ../src/guestfs-actions.pod:119
6735 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
6736 msgstr ""
6737
6738 # type: =head2
6739 #. type: =head2
6740 #: ../src/guestfs-actions.pod:123
6741 msgid "guestfs_add_drive"
6742 msgstr ""
6743
6744 # type: verbatim
6745 #. type: verbatim
6746 #: ../src/guestfs-actions.pod:125
6747 #, no-wrap
6748 msgid ""
6749 " int\n"
6750 " guestfs_add_drive (guestfs_h *g,\n"
6751 "                    const char *filename);\n"
6752 "\n"
6753 msgstr ""
6754
6755 # type: textblock
6756 #. type: textblock
6757 #: ../src/guestfs-actions.pod:129
6758 msgid ""
6759 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
6760 "optional parameters, so the disk is added writable, with the format being "
6761 "detected automatically."
6762 msgstr ""
6763
6764 # type: textblock
6765 #. type: textblock
6766 #: ../src/guestfs-actions.pod:133
6767 msgid ""
6768 "Automatic detection of the format opens you up to a potential security hole "
6769 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6770 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6771 "you should think about replacing calls to this function with calls to "
6772 "C<guestfs_add_drive_opts>, and specifying the format."
6773 msgstr ""
6774
6775 # type: =head2
6776 #. type: =head2
6777 #: ../src/guestfs-actions.pod:144
6778 msgid "guestfs_add_drive_opts"
6779 msgstr ""
6780
6781 # type: verbatim
6782 #. type: verbatim
6783 #: ../src/guestfs-actions.pod:146
6784 #, no-wrap
6785 msgid ""
6786 " int\n"
6787 " guestfs_add_drive_opts (guestfs_h *g,\n"
6788 "                         const char *filename,\n"
6789 "                         ...);\n"
6790 "\n"
6791 msgstr ""
6792
6793 # type: verbatim
6794 #. type: verbatim
6795 #: ../src/guestfs-actions.pod:156
6796 #, no-wrap
6797 msgid ""
6798 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
6799 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
6800 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
6801 "\n"
6802 msgstr ""
6803
6804 # type: textblock
6805 #. type: textblock
6806 #: ../src/guestfs-actions.pod:160 ../fish/guestfish-actions.pod:102
6807 msgid ""
6808 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6809 "The first time you call this function, the disk appears as C</dev/sda>, the "
6810 "second time as C</dev/sdb>, and so on."
6811 msgstr ""
6812
6813 # type: textblock
6814 #. type: textblock
6815 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:107
6816 msgid ""
6817 "You don't necessarily need to be root when using libguestfs.  However you "
6818 "obviously do need sufficient permissions to access the filename for whatever "
6819 "operations you want to perform (ie. read access if you just want to read the "
6820 "image or write access if you want to modify the image)."
6821 msgstr ""
6822
6823 # type: textblock
6824 #. type: textblock
6825 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:113
6826 msgid "This call checks that C<filename> exists."
6827 msgstr ""
6828
6829 # type: textblock
6830 #. type: textblock
6831 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4562
6832 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3049
6833 msgid "The optional arguments are:"
6834 msgstr ""
6835
6836 # type: =item
6837 #. type: =item
6838 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:119
6839 msgid "C<readonly>"
6840 msgstr ""
6841
6842 # type: textblock
6843 #. type: textblock
6844 #: ../src/guestfs-actions.pod:179 ../fish/guestfish-actions.pod:121
6845 msgid ""
6846 "If true then the image is treated as read-only.  Writes are still allowed, "
6847 "but they are stored in a temporary snapshot overlay which is discarded at "
6848 "the end.  The disk that you add is not modified."
6849 msgstr ""
6850
6851 # type: =item
6852 #. type: =item
6853 #: ../src/guestfs-actions.pod:183 ../fish/guestfish-actions.pod:125
6854 msgid "C<format>"
6855 msgstr ""
6856
6857 # type: textblock
6858 #. type: textblock
6859 #: ../src/guestfs-actions.pod:185
6860 msgid ""
6861 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
6862 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
6863 "Possible formats include C<raw> and C<qcow2>."
6864 msgstr ""
6865
6866 # type: textblock
6867 #. type: textblock
6868 #: ../src/guestfs-actions.pod:189 ../fish/guestfish-actions.pod:131
6869 msgid ""
6870 "Automatic detection of the format opens you up to a potential security hole "
6871 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6872 "RHBZ#642934.  Specifying the format closes this security hole."
6873 msgstr ""
6874
6875 # type: =item
6876 #. type: =item
6877 #: ../src/guestfs-actions.pod:194 ../fish/guestfish-actions.pod:136
6878 msgid "C<iface>"
6879 msgstr ""
6880
6881 # type: textblock
6882 #. type: textblock
6883 #: ../src/guestfs-actions.pod:196
6884 msgid ""
6885 "This rarely-used option lets you emulate the behaviour of the deprecated "
6886 "C<guestfs_add_drive_with_if> call (q.v.)"
6887 msgstr ""
6888
6889 # type: textblock
6890 #. type: textblock
6891 #: ../src/guestfs-actions.pod:203
6892 msgid "(Added in 1.5.23)"
6893 msgstr ""
6894
6895 # type: =head2
6896 #. type: =head2
6897 #: ../src/guestfs-actions.pod:205
6898 msgid "guestfs_add_drive_opts_va"
6899 msgstr ""
6900
6901 # type: verbatim
6902 #. type: verbatim
6903 #: ../src/guestfs-actions.pod:207
6904 #, no-wrap
6905 msgid ""
6906 " int\n"
6907 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
6908 "                            const char *filename,\n"
6909 "                            va_list args);\n"
6910 "\n"
6911 msgstr ""
6912
6913 # type: textblock
6914 #. type: textblock
6915 #: ../src/guestfs-actions.pod:212
6916 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
6917 msgstr ""
6918
6919 # type: =head2
6920 #. type: =head2
6921 #: ../src/guestfs-actions.pod:216
6922 msgid "guestfs_add_drive_opts_argv"
6923 msgstr ""
6924
6925 # type: verbatim
6926 #. type: verbatim
6927 #: ../src/guestfs-actions.pod:218
6928 #, no-wrap
6929 msgid ""
6930 " int\n"
6931 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
6932 "                              const char *filename,\n"
6933 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
6934 "\n"
6935 msgstr ""
6936
6937 # type: textblock
6938 #. type: textblock
6939 #: ../src/guestfs-actions.pod:223
6940 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
6941 msgstr ""
6942
6943 # type: =head2
6944 #. type: =head2
6945 #: ../src/guestfs-actions.pod:227
6946 msgid "guestfs_add_drive_ro"
6947 msgstr ""
6948
6949 # type: verbatim
6950 #. type: verbatim
6951 #: ../src/guestfs-actions.pod:229
6952 #, no-wrap
6953 msgid ""
6954 " int\n"
6955 " guestfs_add_drive_ro (guestfs_h *g,\n"
6956 "                       const char *filename);\n"
6957 "\n"
6958 msgstr ""
6959
6960 # type: textblock
6961 #. type: textblock
6962 #: ../src/guestfs-actions.pod:233
6963 msgid ""
6964 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
6965 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
6966 "disk is added read-only, with the format being detected automatically."
6967 msgstr ""
6968
6969 # type: textblock
6970 #. type: textblock
6971 #: ../src/guestfs-actions.pod:240
6972 msgid "(Added in 1.0.38)"
6973 msgstr ""
6974
6975 # type: =head2
6976 #. type: =head2
6977 #: ../src/guestfs-actions.pod:242
6978 msgid "guestfs_add_drive_ro_with_if"
6979 msgstr ""
6980
6981 # type: verbatim
6982 #. type: verbatim
6983 #: ../src/guestfs-actions.pod:244
6984 #, no-wrap
6985 msgid ""
6986 " int\n"
6987 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
6988 "                               const char *filename,\n"
6989 "                               const char *iface);\n"
6990 "\n"
6991 msgstr ""
6992
6993 # type: textblock
6994 #. type: textblock
6995 #: ../src/guestfs-actions.pod:249
6996 msgid ""
6997 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
6998 "QEMU interface emulation to use at run time."
6999 msgstr ""
7000
7001 # type: textblock
7002 #. type: textblock
7003 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
7004 #: ../src/guestfs-actions.pod:2361
7005 msgid "(Added in 1.0.84)"
7006 msgstr ""
7007
7008 # type: =head2
7009 #. type: =head2
7010 #: ../src/guestfs-actions.pod:263
7011 msgid "guestfs_add_drive_with_if"
7012 msgstr ""
7013
7014 # type: verbatim
7015 #. type: verbatim
7016 #: ../src/guestfs-actions.pod:265
7017 #, no-wrap
7018 msgid ""
7019 " int\n"
7020 " guestfs_add_drive_with_if (guestfs_h *g,\n"
7021 "                            const char *filename,\n"
7022 "                            const char *iface);\n"
7023 "\n"
7024 msgstr ""
7025
7026 # type: textblock
7027 #. type: textblock
7028 #: ../src/guestfs-actions.pod:270
7029 msgid ""
7030 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
7031 "QEMU interface emulation to use at run time."
7032 msgstr ""
7033
7034 # type: =head2
7035 #. type: =head2
7036 #: ../src/guestfs-actions.pod:284
7037 msgid "guestfs_aug_clear"
7038 msgstr ""
7039
7040 # type: verbatim
7041 #. type: verbatim
7042 #: ../src/guestfs-actions.pod:286
7043 #, no-wrap
7044 msgid ""
7045 " int\n"
7046 " guestfs_aug_clear (guestfs_h *g,\n"
7047 "                    const char *augpath);\n"
7048 "\n"
7049 msgstr ""
7050
7051 # type: textblock
7052 #. type: textblock
7053 #: ../src/guestfs-actions.pod:290 ../fish/guestfish-actions.pod:188
7054 msgid ""
7055 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
7056 "L<augtool(1)> C<clear> command."
7057 msgstr ""
7058
7059 # type: textblock
7060 #. type: textblock
7061 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2111
7062 msgid "(Added in 1.3.4)"
7063 msgstr ""
7064
7065 # type: =head2
7066 #. type: =head2
7067 #: ../src/guestfs-actions.pod:297
7068 msgid "guestfs_aug_close"
7069 msgstr ""
7070
7071 # type: verbatim
7072 #. type: verbatim
7073 #: ../src/guestfs-actions.pod:299
7074 #, no-wrap
7075 msgid ""
7076 " int\n"
7077 " guestfs_aug_close (guestfs_h *g);\n"
7078 "\n"
7079 msgstr ""
7080
7081 # type: textblock
7082 #. type: textblock
7083 #: ../src/guestfs-actions.pod:302
7084 msgid ""
7085 "Close the current Augeas handle and free up any resources used by it.  After "
7086 "calling this, you have to call C<guestfs_aug_init> again before you can use "
7087 "any other Augeas functions."
7088 msgstr ""
7089
7090 # type: textblock
7091 #. type: textblock
7092 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
7093 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
7094 #: ../src/guestfs-actions.pod:424 ../src/guestfs-actions.pod:444
7095 #: ../src/guestfs-actions.pod:458 ../src/guestfs-actions.pod:489
7096 #: ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:517
7097 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:549
7098 #: ../src/guestfs-actions.pod:5655
7099 msgid "(Added in 0.7)"
7100 msgstr ""
7101
7102 # type: =head2
7103 #. type: =head2
7104 #: ../src/guestfs-actions.pod:311
7105 msgid "guestfs_aug_defnode"
7106 msgstr ""
7107
7108 # type: verbatim
7109 #. type: verbatim
7110 #: ../src/guestfs-actions.pod:313
7111 #, no-wrap
7112 msgid ""
7113 " struct guestfs_int_bool *\n"
7114 " guestfs_aug_defnode (guestfs_h *g,\n"
7115 "                      const char *name,\n"
7116 "                      const char *expr,\n"
7117 "                      const char *val);\n"
7118 "\n"
7119 msgstr ""
7120
7121 # type: textblock
7122 #. type: textblock
7123 #: ../src/guestfs-actions.pod:319 ../fish/guestfish-actions.pod:204
7124 msgid ""
7125 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
7126 msgstr ""
7127
7128 # type: textblock
7129 #. type: textblock
7130 #: ../src/guestfs-actions.pod:322
7131 msgid ""
7132 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
7133 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
7134 "containing that single node."
7135 msgstr ""
7136
7137 # type: textblock
7138 #. type: textblock
7139 #: ../src/guestfs-actions.pod:326 ../fish/guestfish-actions.pod:211
7140 msgid ""
7141 "On success this returns a pair containing the number of nodes in the "
7142 "nodeset, and a boolean flag if a node was created."
7143 msgstr ""
7144
7145 # type: textblock
7146 #. type: textblock
7147 #: ../src/guestfs-actions.pod:330
7148 msgid ""
7149 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
7150 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
7151 msgstr ""
7152
7153 # type: =head2
7154 #. type: =head2
7155 #: ../src/guestfs-actions.pod:336
7156 msgid "guestfs_aug_defvar"
7157 msgstr ""
7158
7159 # type: verbatim
7160 #. type: verbatim
7161 #: ../src/guestfs-actions.pod:338
7162 #, no-wrap
7163 msgid ""
7164 " int\n"
7165 " guestfs_aug_defvar (guestfs_h *g,\n"
7166 "                     const char *name,\n"
7167 "                     const char *expr);\n"
7168 "\n"
7169 msgstr ""
7170
7171 # type: textblock
7172 #. type: textblock
7173 #: ../src/guestfs-actions.pod:343 ../fish/guestfish-actions.pod:219
7174 msgid ""
7175 "Defines an Augeas variable C<name> whose value is the result of evaluating "
7176 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
7177 msgstr ""
7178
7179 # type: textblock
7180 #. type: textblock
7181 #: ../src/guestfs-actions.pod:347 ../fish/guestfish-actions.pod:223
7182 msgid ""
7183 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
7184 "evaluates to something which is not a nodeset."
7185 msgstr ""
7186
7187 # type: =head2
7188 #. type: =head2
7189 #: ../src/guestfs-actions.pod:354
7190 msgid "guestfs_aug_get"
7191 msgstr ""
7192
7193 # type: verbatim
7194 #. type: verbatim
7195 #: ../src/guestfs-actions.pod:356
7196 #, no-wrap
7197 msgid ""
7198 " char *\n"
7199 " guestfs_aug_get (guestfs_h *g,\n"
7200 "                  const char *augpath);\n"
7201 "\n"
7202 msgstr ""
7203
7204 # type: textblock
7205 #. type: textblock
7206 #: ../src/guestfs-actions.pod:360 ../fish/guestfish-actions.pod:230
7207 msgid ""
7208 "Look up the value associated with C<path>.  If C<path> matches exactly one "
7209 "node, the C<value> is returned."
7210 msgstr ""
7211
7212 # type: textblock
7213 #. type: textblock
7214 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:863
7215 #: ../src/guestfs-actions.pod:881 ../src/guestfs-actions.pod:941
7216 #: ../src/guestfs-actions.pod:957 ../src/guestfs-actions.pod:1060
7217 #: ../src/guestfs-actions.pod:1190 ../src/guestfs-actions.pod:1207
7218 #: ../src/guestfs-actions.pod:1226 ../src/guestfs-actions.pod:1360
7219 #: ../src/guestfs-actions.pod:1548 ../src/guestfs-actions.pod:1660
7220 #: ../src/guestfs-actions.pod:1823 ../src/guestfs-actions.pod:1840
7221 #: ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:1943
7222 #: ../src/guestfs-actions.pod:1964 ../src/guestfs-actions.pod:2134
7223 #: ../src/guestfs-actions.pod:2326 ../src/guestfs-actions.pod:2530
7224 #: ../src/guestfs-actions.pod:2620 ../src/guestfs-actions.pod:2724
7225 #: ../src/guestfs-actions.pod:2743 ../src/guestfs-actions.pod:2957
7226 #: ../src/guestfs-actions.pod:2985 ../src/guestfs-actions.pod:3006
7227 #: ../src/guestfs-actions.pod:3040 ../src/guestfs-actions.pod:3099
7228 #: ../src/guestfs-actions.pod:3119 ../src/guestfs-actions.pod:3139
7229 #: ../src/guestfs-actions.pod:3746 ../src/guestfs-actions.pod:4096
7230 #: ../src/guestfs-actions.pod:4266 ../src/guestfs-actions.pod:4376
7231 #: ../src/guestfs-actions.pod:5190 ../src/guestfs-actions.pod:5383
7232 #: ../src/guestfs-actions.pod:5553 ../src/guestfs-actions.pod:5731
7233 #: ../src/guestfs-actions.pod:5780 ../src/guestfs-actions.pod:6417
7234 #: ../src/guestfs-actions.pod:6433 ../src/guestfs-actions.pod:6450
7235 #: ../src/guestfs-actions.pod:6481 ../src/guestfs-actions.pod:7155
7236 #: ../src/guestfs-actions.pod:7174 ../src/guestfs-actions.pod:7192
7237 #: ../src/guestfs-actions.pod:7372 ../src/guestfs-actions.pod:7652
7238 msgid ""
7239 "This function returns a string, or NULL on error.  I<The caller must free "
7240 "the returned string after use>."
7241 msgstr ""
7242
7243 # type: =head2
7244 #. type: =head2
7245 #: ../src/guestfs-actions.pod:368
7246 msgid "guestfs_aug_init"
7247 msgstr ""
7248
7249 # type: verbatim
7250 #. type: verbatim
7251 #: ../src/guestfs-actions.pod:370
7252 #, no-wrap
7253 msgid ""
7254 " int\n"
7255 " guestfs_aug_init (guestfs_h *g,\n"
7256 "                   const char *root,\n"
7257 "                   int flags);\n"
7258 "\n"
7259 msgstr ""
7260
7261 # type: textblock
7262 #. type: textblock
7263 #: ../src/guestfs-actions.pod:375 ../fish/guestfish-actions.pod:237
7264 msgid ""
7265 "Create a new Augeas handle for editing configuration files.  If there was "
7266 "any previous Augeas handle associated with this guestfs session, then it is "
7267 "closed."
7268 msgstr ""
7269
7270 # type: textblock
7271 #. type: textblock
7272 #: ../src/guestfs-actions.pod:379
7273 msgid "You must call this before using any other C<guestfs_aug_*> commands."
7274 msgstr ""
7275
7276 # type: textblock
7277 #. type: textblock
7278 #: ../src/guestfs-actions.pod:382 ../fish/guestfish-actions.pod:244
7279 msgid ""
7280 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
7281 msgstr ""
7282
7283 # type: textblock
7284 #. type: textblock
7285 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:247
7286 msgid ""
7287 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
7288 "logical I<or> of the following integers:"
7289 msgstr ""
7290
7291 # type: =item
7292 #. type: =item
7293 #: ../src/guestfs-actions.pod:391 ../fish/guestfish-actions.pod:253
7294 msgid "C<AUG_SAVE_BACKUP> = 1"
7295 msgstr ""
7296
7297 # type: textblock
7298 #. type: textblock
7299 #: ../src/guestfs-actions.pod:393 ../fish/guestfish-actions.pod:255
7300 msgid "Keep the original file with a C<.augsave> extension."
7301 msgstr ""
7302
7303 # type: =item
7304 #. type: =item
7305 #: ../src/guestfs-actions.pod:395 ../fish/guestfish-actions.pod:257
7306 msgid "C<AUG_SAVE_NEWFILE> = 2"
7307 msgstr ""
7308
7309 # type: textblock
7310 #. type: textblock
7311 #: ../src/guestfs-actions.pod:397 ../fish/guestfish-actions.pod:259
7312 msgid ""
7313 "Save changes into a file with extension C<.augnew>, and do not overwrite "
7314 "original.  Overrides C<AUG_SAVE_BACKUP>."
7315 msgstr ""
7316
7317 # type: =item
7318 #. type: =item
7319 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:262
7320 msgid "C<AUG_TYPE_CHECK> = 4"
7321 msgstr ""
7322
7323 # type: textblock
7324 #. type: textblock
7325 #: ../src/guestfs-actions.pod:402 ../fish/guestfish-actions.pod:264
7326 msgid "Typecheck lenses (can be expensive)."
7327 msgstr ""
7328
7329 # type: =item
7330 #. type: =item
7331 #: ../src/guestfs-actions.pod:404 ../fish/guestfish-actions.pod:266
7332 msgid "C<AUG_NO_STDINC> = 8"
7333 msgstr ""
7334
7335 # type: textblock
7336 #. type: textblock
7337 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:268
7338 msgid "Do not use standard load path for modules."
7339 msgstr ""
7340
7341 # type: =item
7342 #. type: =item
7343 #: ../src/guestfs-actions.pod:408 ../fish/guestfish-actions.pod:270
7344 msgid "C<AUG_SAVE_NOOP> = 16"
7345 msgstr ""
7346
7347 # type: textblock
7348 #. type: textblock
7349 #: ../src/guestfs-actions.pod:410 ../fish/guestfish-actions.pod:272
7350 msgid "Make save a no-op, just record what would have been changed."
7351 msgstr ""
7352
7353 # type: =item
7354 #. type: =item
7355 #: ../src/guestfs-actions.pod:412 ../fish/guestfish-actions.pod:274
7356 msgid "C<AUG_NO_LOAD> = 32"
7357 msgstr ""
7358
7359 # type: textblock
7360 #. type: textblock
7361 #: ../src/guestfs-actions.pod:414
7362 msgid "Do not load the tree in C<guestfs_aug_init>."
7363 msgstr ""
7364
7365 # type: textblock
7366 #. type: textblock
7367 #: ../src/guestfs-actions.pod:418
7368 msgid "To close the handle, you can call C<guestfs_aug_close>."
7369 msgstr ""
7370
7371 # type: textblock
7372 #. type: textblock
7373 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:282
7374 msgid "To find out more about Augeas, see L<http://augeas.net/>."
7375 msgstr ""
7376
7377 # type: =head2
7378 #. type: =head2
7379 #: ../src/guestfs-actions.pod:426
7380 msgid "guestfs_aug_insert"
7381 msgstr ""
7382
7383 # type: verbatim
7384 #. type: verbatim
7385 #: ../src/guestfs-actions.pod:428
7386 #, no-wrap
7387 msgid ""
7388 " int\n"
7389 " guestfs_aug_insert (guestfs_h *g,\n"
7390 "                     const char *augpath,\n"
7391 "                     const char *label,\n"
7392 "                     int before);\n"
7393 "\n"
7394 msgstr ""
7395
7396 # type: textblock
7397 #. type: textblock
7398 #: ../src/guestfs-actions.pod:434 ../fish/guestfish-actions.pod:288
7399 msgid ""
7400 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
7401 "or after C<path> (depending on the boolean flag C<before>)."
7402 msgstr ""
7403
7404 # type: textblock
7405 #. type: textblock
7406 #: ../src/guestfs-actions.pod:438 ../fish/guestfish-actions.pod:292
7407 msgid ""
7408 "C<path> must match exactly one existing node in the tree, and C<label> must "
7409 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
7410 msgstr ""
7411
7412 # type: =head2
7413 #. type: =head2
7414 #: ../src/guestfs-actions.pod:446
7415 msgid "guestfs_aug_load"
7416 msgstr ""
7417
7418 # type: verbatim
7419 #. type: verbatim
7420 #: ../src/guestfs-actions.pod:448
7421 #, no-wrap
7422 msgid ""
7423 " int\n"
7424 " guestfs_aug_load (guestfs_h *g);\n"
7425 "\n"
7426 msgstr ""
7427
7428 # type: textblock
7429 #. type: textblock
7430 #: ../src/guestfs-actions.pod:451 ../fish/guestfish-actions.pod:300
7431 msgid "Load files into the tree."
7432 msgstr ""
7433
7434 # type: textblock
7435 #. type: textblock
7436 #: ../src/guestfs-actions.pod:453 ../fish/guestfish-actions.pod:302
7437 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
7438 msgstr ""
7439
7440 # type: =head2
7441 #. type: =head2
7442 #: ../src/guestfs-actions.pod:460
7443 msgid "guestfs_aug_ls"
7444 msgstr ""
7445
7446 # type: verbatim
7447 #. type: verbatim
7448 #: ../src/guestfs-actions.pod:462
7449 #, no-wrap
7450 msgid ""
7451 " char **\n"
7452 " guestfs_aug_ls (guestfs_h *g,\n"
7453 "                 const char *augpath);\n"
7454 "\n"
7455 msgstr ""
7456
7457 # type: textblock
7458 #. type: textblock
7459 #: ../src/guestfs-actions.pod:466
7460 msgid ""
7461 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
7462 "sorting the resulting nodes into alphabetical order."
7463 msgstr ""
7464
7465 # type: textblock
7466 #. type: textblock
7467 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:485
7468 #: ../src/guestfs-actions.pod:631 ../src/guestfs-actions.pod:1079
7469 #: ../src/guestfs-actions.pod:1375 ../src/guestfs-actions.pod:1394
7470 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1516
7471 #: ../src/guestfs-actions.pod:1762 ../src/guestfs-actions.pod:2206
7472 #: ../src/guestfs-actions.pod:2222 ../src/guestfs-actions.pod:2241
7473 #: ../src/guestfs-actions.pod:2284 ../src/guestfs-actions.pod:2308
7474 #: ../src/guestfs-actions.pod:2379 ../src/guestfs-actions.pod:2428
7475 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:3059
7476 #: ../src/guestfs-actions.pod:3335 ../src/guestfs-actions.pod:3649
7477 #: ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:3728
7478 #: ../src/guestfs-actions.pod:3833 ../src/guestfs-actions.pod:4238
7479 #: ../src/guestfs-actions.pod:5005 ../src/guestfs-actions.pod:5525
7480 #: ../src/guestfs-actions.pod:5651 ../src/guestfs-actions.pod:5765
7481 #: ../src/guestfs-actions.pod:6497 ../src/guestfs-actions.pod:6558
7482 #: ../src/guestfs-actions.pod:6613 ../src/guestfs-actions.pod:6759
7483 #: ../src/guestfs-actions.pod:6783 ../src/guestfs-actions.pod:7265
7484 #: ../src/guestfs-actions.pod:7285 ../src/guestfs-actions.pod:7332
7485 #: ../src/guestfs-actions.pod:7504 ../src/guestfs-actions.pod:7523
7486 #: ../src/guestfs-actions.pod:7609 ../src/guestfs-actions.pod:7628
7487 #: ../src/guestfs-actions.pod:7674 ../src/guestfs-actions.pod:7693
7488 msgid ""
7489 "This function returns a NULL-terminated array of strings (like L<environ(3)"
7490 ">), or NULL if there was an error.  I<The caller must free the strings and "
7491 "the array after use>."
7492 msgstr ""
7493
7494 # type: textblock
7495 #. type: textblock
7496 #: ../src/guestfs-actions.pod:473 ../src/guestfs-actions.pod:1004
7497 #: ../src/guestfs-actions.pod:1022 ../src/guestfs-actions.pod:1432
7498 #: ../src/guestfs-actions.pod:3413 ../src/guestfs-actions.pod:3444
7499 #: ../src/guestfs-actions.pod:4079 ../src/guestfs-actions.pod:4129
7500 #: ../src/guestfs-actions.pod:4316 ../src/guestfs-actions.pod:4349
7501 #: ../src/guestfs-actions.pod:4512 ../src/guestfs-actions.pod:5009
7502 #: ../src/guestfs-actions.pod:5466 ../src/guestfs-actions.pod:5863
7503 #: ../src/guestfs-actions.pod:5877 ../src/guestfs-actions.pod:5889
7504 #: ../src/guestfs-actions.pod:6338 ../src/guestfs-actions.pod:6997
7505 #: ../src/guestfs-actions.pod:7010 ../src/guestfs-actions.pod:7249
7506 #: ../src/guestfs-actions.pod:7492
7507 msgid "(Added in 0.8)"
7508 msgstr ""
7509
7510 # type: =head2
7511 #. type: =head2
7512 #: ../src/guestfs-actions.pod:475
7513 msgid "guestfs_aug_match"
7514 msgstr ""
7515
7516 # type: verbatim
7517 #. type: verbatim
7518 #: ../src/guestfs-actions.pod:477
7519 #, no-wrap
7520 msgid ""
7521 " char **\n"
7522 " guestfs_aug_match (guestfs_h *g,\n"
7523 "                    const char *augpath);\n"
7524 "\n"
7525 msgstr ""
7526
7527 # type: textblock
7528 #. type: textblock
7529 #: ../src/guestfs-actions.pod:481 ../fish/guestfish-actions.pod:316
7530 msgid ""
7531 "Returns a list of paths which match the path expression C<path>.  The "
7532 "returned paths are sufficiently qualified so that they match exactly one "
7533 "node in the current tree."
7534 msgstr ""
7535
7536 # type: =head2
7537 #. type: =head2
7538 #: ../src/guestfs-actions.pod:491
7539 msgid "guestfs_aug_mv"
7540 msgstr ""
7541
7542 # type: verbatim
7543 #. type: verbatim
7544 #: ../src/guestfs-actions.pod:493
7545 #, no-wrap
7546 msgid ""
7547 " int\n"
7548 " guestfs_aug_mv (guestfs_h *g,\n"
7549 "                 const char *src,\n"
7550 "                 const char *dest);\n"
7551 "\n"
7552 msgstr ""
7553
7554 # type: textblock
7555 #. type: textblock
7556 #: ../src/guestfs-actions.pod:498 ../fish/guestfish-actions.pod:324
7557 msgid ""
7558 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
7559 "C<dest> is overwritten if it exists."
7560 msgstr ""
7561
7562 # type: =head2
7563 #. type: =head2
7564 #: ../src/guestfs-actions.pod:505
7565 msgid "guestfs_aug_rm"
7566 msgstr ""
7567
7568 # type: verbatim
7569 #. type: verbatim
7570 #: ../src/guestfs-actions.pod:507
7571 #, no-wrap
7572 msgid ""
7573 " int\n"
7574 " guestfs_aug_rm (guestfs_h *g,\n"
7575 "                 const char *augpath);\n"
7576 "\n"
7577 msgstr ""
7578
7579 # type: textblock
7580 #. type: textblock
7581 #: ../src/guestfs-actions.pod:511 ../fish/guestfish-actions.pod:331
7582 msgid "Remove C<path> and all of its children."
7583 msgstr ""
7584
7585 # type: textblock
7586 #. type: textblock
7587 #: ../src/guestfs-actions.pod:513 ../fish/guestfish-actions.pod:333
7588 msgid "On success this returns the number of entries which were removed."
7589 msgstr ""
7590
7591 # type: =head2
7592 #. type: =head2
7593 #: ../src/guestfs-actions.pod:519
7594 msgid "guestfs_aug_save"
7595 msgstr ""
7596
7597 # type: verbatim
7598 #. type: verbatim
7599 #: ../src/guestfs-actions.pod:521
7600 #, no-wrap
7601 msgid ""
7602 " int\n"
7603 " guestfs_aug_save (guestfs_h *g);\n"
7604 "\n"
7605 msgstr ""
7606
7607 # type: textblock
7608 #. type: textblock
7609 #: ../src/guestfs-actions.pod:524 ../fish/guestfish-actions.pod:339
7610 msgid "This writes all pending changes to disk."
7611 msgstr ""
7612
7613 # type: textblock
7614 #. type: textblock
7615 #: ../src/guestfs-actions.pod:526
7616 msgid ""
7617 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
7618 "are saved."
7619 msgstr ""
7620
7621 # type: =head2
7622 #. type: =head2
7623 #: ../src/guestfs-actions.pod:533
7624 msgid "guestfs_aug_set"
7625 msgstr ""
7626
7627 # type: verbatim
7628 #. type: verbatim
7629 #: ../src/guestfs-actions.pod:535
7630 #, no-wrap
7631 msgid ""
7632 " int\n"
7633 " guestfs_aug_set (guestfs_h *g,\n"
7634 "                  const char *augpath,\n"
7635 "                  const char *val);\n"
7636 "\n"
7637 msgstr ""
7638
7639 # type: textblock
7640 #. type: textblock
7641 #: ../src/guestfs-actions.pod:540 ../fish/guestfish-actions.pod:348
7642 msgid "Set the value associated with C<path> to C<val>."
7643 msgstr ""
7644
7645 # type: textblock
7646 #. type: textblock
7647 #: ../src/guestfs-actions.pod:542
7648 msgid ""
7649 "In the Augeas API, it is possible to clear a node by setting the value to "
7650 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
7651 "this call.  Instead you must use the C<guestfs_aug_clear> call."
7652 msgstr ""
7653
7654 # type: =head2
7655 #. type: =head2
7656 #: ../src/guestfs-actions.pod:551
7657 msgid "guestfs_available"
7658 msgstr ""
7659
7660 # type: verbatim
7661 #. type: verbatim
7662 #: ../src/guestfs-actions.pod:553
7663 #, no-wrap
7664 msgid ""
7665 " int\n"
7666 " guestfs_available (guestfs_h *g,\n"
7667 "                    char *const *groups);\n"
7668 "\n"
7669 msgstr ""
7670
7671 # type: textblock
7672 #. type: textblock
7673 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:359
7674 msgid ""
7675 "This command is used to check the availability of some groups of "
7676 "functionality in the appliance, which not all builds of the libguestfs "
7677 "appliance will be able to provide."
7678 msgstr ""
7679
7680 # type: textblock
7681 #. type: textblock
7682 #: ../src/guestfs-actions.pod:561
7683 msgid ""
7684 "The libguestfs groups, and the functions that those groups correspond to, "
7685 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
7686 "runtime by calling C<guestfs_available_all_groups>."
7687 msgstr ""
7688
7689 # type: textblock
7690 #. type: textblock
7691 #: ../src/guestfs-actions.pod:566 ../fish/guestfish-actions.pod:368
7692 msgid ""
7693 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
7694 "\"]> would check for the availability of the Linux inotify functions and "
7695 "Augeas (configuration file editing) functions."
7696 msgstr ""
7697
7698 # type: textblock
7699 #. type: textblock
7700 #: ../src/guestfs-actions.pod:571 ../fish/guestfish-actions.pod:373
7701 msgid "The command returns no error if I<all> requested groups are available."
7702 msgstr ""
7703
7704 # type: textblock
7705 #. type: textblock
7706 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:375
7707 msgid ""
7708 "It fails with an error if one or more of the requested groups is unavailable "
7709 "in the appliance."
7710 msgstr ""
7711
7712 # type: textblock
7713 #. type: textblock
7714 #: ../src/guestfs-actions.pod:576 ../fish/guestfish-actions.pod:378
7715 msgid ""
7716 "If an unknown group name is included in the list of groups then an error is "
7717 "always returned."
7718 msgstr ""
7719
7720 # type: textblock
7721 #. type: textblock
7722 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:381
7723 msgid "I<Notes:>"
7724 msgstr ""
7725
7726 # type: textblock
7727 #. type: textblock
7728 #: ../src/guestfs-actions.pod:585
7729 msgid "You must call C<guestfs_launch> before calling this function."
7730 msgstr ""
7731
7732 # type: textblock
7733 #. type: textblock
7734 #: ../src/guestfs-actions.pod:587 ../fish/guestfish-actions.pod:389
7735 msgid ""
7736 "The reason is because we don't know what groups are supported by the "
7737 "appliance/daemon until it is running and can be queried."
7738 msgstr ""
7739
7740 # type: textblock
7741 #. type: textblock
7742 #: ../src/guestfs-actions.pod:593 ../fish/guestfish-actions.pod:395
7743 msgid ""
7744 "If a group of functions is available, this does not necessarily mean that "
7745 "they will work.  You still have to check for errors when calling individual "
7746 "API functions even if they are available."
7747 msgstr ""
7748
7749 # type: textblock
7750 #. type: textblock
7751 #: ../src/guestfs-actions.pod:600 ../fish/guestfish-actions.pod:402
7752 msgid ""
7753 "It is usually the job of distro packagers to build complete functionality "
7754 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
7755 "with all requirements satisfied, will support everything."
7756 msgstr ""
7757
7758 # type: textblock
7759 #. type: textblock
7760 #: ../src/guestfs-actions.pod:607
7761 msgid ""
7762 "This call was added in version C<1.0.80>.  In previous versions of "
7763 "libguestfs all you could do would be to speculatively execute a command to "
7764 "find out if the daemon implemented it.  See also C<guestfs_version>."
7765 msgstr ""
7766
7767 # type: textblock
7768 #. type: textblock
7769 #: ../src/guestfs-actions.pod:616 ../src/guestfs-actions.pod:1177
7770 msgid "(Added in 1.0.80)"
7771 msgstr ""
7772
7773 # type: =head2
7774 #. type: =head2
7775 #: ../src/guestfs-actions.pod:618
7776 msgid "guestfs_available_all_groups"
7777 msgstr ""
7778
7779 # type: verbatim
7780 #. type: verbatim
7781 #: ../src/guestfs-actions.pod:620
7782 #, no-wrap
7783 msgid ""
7784 " char **\n"
7785 " guestfs_available_all_groups (guestfs_h *g);\n"
7786 "\n"
7787 msgstr ""
7788
7789 # type: textblock
7790 #. type: textblock
7791 #: ../src/guestfs-actions.pod:623
7792 msgid ""
7793 "This command returns a list of all optional groups that this daemon knows "
7794 "about.  Note this returns both supported and unsupported groups.  To find "
7795 "out which ones the daemon can actually support you have to call "
7796 "C<guestfs_available> on each member of the returned list."
7797 msgstr ""
7798
7799 # type: textblock
7800 #. type: textblock
7801 #: ../src/guestfs-actions.pod:629
7802 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
7803 msgstr ""
7804
7805 # type: textblock
7806 #. type: textblock
7807 #: ../src/guestfs-actions.pod:635
7808 msgid "(Added in 1.3.15)"
7809 msgstr ""
7810
7811 # type: =head2
7812 #. type: =head2
7813 #: ../src/guestfs-actions.pod:637
7814 msgid "guestfs_base64_in"
7815 msgstr ""
7816
7817 # type: verbatim
7818 #. type: verbatim
7819 #: ../src/guestfs-actions.pod:639
7820 #, no-wrap
7821 msgid ""
7822 " int\n"
7823 " guestfs_base64_in (guestfs_h *g,\n"
7824 "                    const char *base64file,\n"
7825 "                    const char *filename);\n"
7826 "\n"
7827 msgstr ""
7828
7829 # type: textblock
7830 #. type: textblock
7831 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:432
7832 msgid ""
7833 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7834 msgstr ""
7835
7836 # type: textblock
7837 #. type: textblock
7838 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:663
7839 msgid "(Added in 1.3.5)"
7840 msgstr ""
7841
7842 # type: =head2
7843 #. type: =head2
7844 #: ../src/guestfs-actions.pod:651
7845 msgid "guestfs_base64_out"
7846 msgstr ""
7847
7848 # type: verbatim
7849 #. type: verbatim
7850 #: ../src/guestfs-actions.pod:653
7851 #, no-wrap
7852 msgid ""
7853 " int\n"
7854 " guestfs_base64_out (guestfs_h *g,\n"
7855 "                     const char *filename,\n"
7856 "                     const char *base64file);\n"
7857 "\n"
7858 msgstr ""
7859
7860 # type: textblock
7861 #. type: textblock
7862 #: ../src/guestfs-actions.pod:658 ../fish/guestfish-actions.pod:441
7863 msgid ""
7864 "This command downloads the contents of C<filename>, writing it out to local "
7865 "file C<base64file> encoded as base64."
7866 msgstr ""
7867
7868 # type: =head2
7869 #. type: =head2
7870 #: ../src/guestfs-actions.pod:665
7871 msgid "guestfs_blockdev_flushbufs"
7872 msgstr ""
7873
7874 # type: verbatim
7875 #. type: verbatim
7876 #: ../src/guestfs-actions.pod:667
7877 #, no-wrap
7878 msgid ""
7879 " int\n"
7880 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
7881 "                             const char *device);\n"
7882 "\n"
7883 msgstr ""
7884
7885 # type: textblock
7886 #. type: textblock
7887 #: ../src/guestfs-actions.pod:671 ../fish/guestfish-actions.pod:450
7888 msgid ""
7889 "This tells the kernel to flush internal buffers associated with C<device>."
7890 msgstr ""
7891
7892 # type: textblock
7893 #. type: textblock
7894 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:691
7895 #: ../src/guestfs-actions.pod:706 ../src/guestfs-actions.pod:722
7896 #: ../src/guestfs-actions.pod:740 ../src/guestfs-actions.pod:759
7897 #: ../src/guestfs-actions.pod:773 ../src/guestfs-actions.pod:791
7898 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:819
7899 #: ../fish/guestfish-actions.pod:453 ../fish/guestfish-actions.pod:464
7900 #: ../fish/guestfish-actions.pod:473 ../fish/guestfish-actions.pod:483
7901 #: ../fish/guestfish-actions.pod:495 ../fish/guestfish-actions.pod:508
7902 #: ../fish/guestfish-actions.pod:516 ../fish/guestfish-actions.pod:527
7903 #: ../fish/guestfish-actions.pod:535 ../fish/guestfish-actions.pod:543
7904 msgid "This uses the L<blockdev(8)> command."
7905 msgstr ""
7906
7907 # type: textblock
7908 #. type: textblock
7909 #: ../src/guestfs-actions.pod:678 ../src/guestfs-actions.pod:695
7910 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:726
7911 #: ../src/guestfs-actions.pod:744 ../src/guestfs-actions.pod:763
7912 #: ../src/guestfs-actions.pod:777 ../src/guestfs-actions.pod:795
7913 #: ../src/guestfs-actions.pod:809 ../src/guestfs-actions.pod:823
7914 msgid "(Added in 0.9.3)"
7915 msgstr ""
7916
7917 # type: =head2
7918 #. type: =head2
7919 #: ../src/guestfs-actions.pod:680
7920 msgid "guestfs_blockdev_getbsz"
7921 msgstr ""
7922
7923 # type: verbatim
7924 #. type: verbatim
7925 #: ../src/guestfs-actions.pod:682
7926 #, no-wrap
7927 msgid ""
7928 " int\n"
7929 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
7930 "                          const char *device);\n"
7931 "\n"
7932 msgstr ""
7933
7934 # type: textblock
7935 #. type: textblock
7936 #: ../src/guestfs-actions.pod:686 ../fish/guestfish-actions.pod:459
7937 msgid "This returns the block size of a device."
7938 msgstr ""
7939
7940 # type: textblock
7941 #. type: textblock
7942 #: ../src/guestfs-actions.pod:688 ../src/guestfs-actions.pod:788
7943 #: ../fish/guestfish-actions.pod:461 ../fish/guestfish-actions.pod:524
7944 msgid ""
7945 "(Note this is different from both I<size in blocks> and I<filesystem block "
7946 "size>)."
7947 msgstr ""
7948
7949 # type: =head2
7950 #. type: =head2
7951 #: ../src/guestfs-actions.pod:697
7952 msgid "guestfs_blockdev_getro"
7953 msgstr ""
7954
7955 # type: verbatim
7956 #. type: verbatim
7957 #: ../src/guestfs-actions.pod:699
7958 #, no-wrap
7959 msgid ""
7960 " int\n"
7961 " guestfs_blockdev_getro (guestfs_h *g,\n"
7962 "                         const char *device);\n"
7963 "\n"
7964 msgstr ""
7965
7966 # type: textblock
7967 #. type: textblock
7968 #: ../src/guestfs-actions.pod:703 ../fish/guestfish-actions.pod:470
7969 msgid ""
7970 "Returns a boolean indicating if the block device is read-only (true if read-"
7971 "only, false if not)."
7972 msgstr ""
7973
7974 # type: textblock
7975 #. type: textblock
7976 #: ../src/guestfs-actions.pod:708 ../src/guestfs-actions.pod:1415
7977 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1919
7978 #: ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:2002
7979 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:2072
7980 #: ../src/guestfs-actions.pod:2097 ../src/guestfs-actions.pod:2120
7981 #: ../src/guestfs-actions.pod:3156 ../src/guestfs-actions.pod:3172
7982 #: ../src/guestfs-actions.pod:3190 ../src/guestfs-actions.pod:3352
7983 #: ../src/guestfs-actions.pod:3366 ../src/guestfs-actions.pod:3381
7984 #: ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:3411
7985 #: ../src/guestfs-actions.pod:3426 ../src/guestfs-actions.pod:3442
7986 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:3469
7987 #: ../src/guestfs-actions.pod:3483 ../src/guestfs-actions.pod:3498
7988 #: ../src/guestfs-actions.pod:3513 ../src/guestfs-actions.pod:3526
7989 #: ../src/guestfs-actions.pod:3540 ../src/guestfs-actions.pod:5154
7990 msgid "This function returns a C truth value on success or -1 on error."
7991 msgstr ""
7992
7993 # type: =head2
7994 #. type: =head2
7995 #: ../src/guestfs-actions.pod:712
7996 msgid "guestfs_blockdev_getsize64"
7997 msgstr ""
7998
7999 # type: verbatim
8000 #. type: verbatim
8001 #: ../src/guestfs-actions.pod:714
8002 #, no-wrap
8003 msgid ""
8004 " int64_t\n"
8005 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
8006 "                             const char *device);\n"
8007 "\n"
8008 msgstr ""
8009
8010 # type: textblock
8011 #. type: textblock
8012 #: ../src/guestfs-actions.pod:718 ../fish/guestfish-actions.pod:479
8013 msgid "This returns the size of the device in bytes."
8014 msgstr ""
8015
8016 # type: textblock
8017 #. type: textblock
8018 #: ../src/guestfs-actions.pod:720
8019 msgid "See also C<guestfs_blockdev_getsz>."
8020 msgstr ""
8021
8022 # type: =head2
8023 #. type: =head2
8024 #: ../src/guestfs-actions.pod:728
8025 msgid "guestfs_blockdev_getss"
8026 msgstr ""
8027
8028 # type: verbatim
8029 #. type: verbatim
8030 #: ../src/guestfs-actions.pod:730
8031 #, no-wrap
8032 msgid ""
8033 " int\n"
8034 " guestfs_blockdev_getss (guestfs_h *g,\n"
8035 "                         const char *device);\n"
8036 "\n"
8037 msgstr ""
8038
8039 # type: textblock
8040 #. type: textblock
8041 #: ../src/guestfs-actions.pod:734 ../fish/guestfish-actions.pod:489
8042 msgid ""
8043 "This returns the size of sectors on a block device.  Usually 512, but can be "
8044 "larger for modern devices."
8045 msgstr ""
8046
8047 # type: textblock
8048 #. type: textblock
8049 #: ../src/guestfs-actions.pod:737
8050 msgid ""
8051 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
8052 "that)."
8053 msgstr ""
8054
8055 # type: =head2
8056 #. type: =head2
8057 #: ../src/guestfs-actions.pod:746
8058 msgid "guestfs_blockdev_getsz"
8059 msgstr ""
8060
8061 # type: verbatim
8062 #. type: verbatim
8063 #: ../src/guestfs-actions.pod:748
8064 #, no-wrap
8065 msgid ""
8066 " int64_t\n"
8067 " guestfs_blockdev_getsz (guestfs_h *g,\n"
8068 "                         const char *device);\n"
8069 "\n"
8070 msgstr ""
8071
8072 # type: textblock
8073 #. type: textblock
8074 #: ../src/guestfs-actions.pod:752 ../fish/guestfish-actions.pod:501
8075 msgid ""
8076 "This returns the size of the device in units of 512-byte sectors (even if "
8077 "the sectorsize isn't 512 bytes ... weird)."
8078 msgstr ""
8079
8080 # type: textblock
8081 #. type: textblock
8082 #: ../src/guestfs-actions.pod:755
8083 msgid ""
8084 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
8085 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
8086 msgstr ""
8087
8088 # type: =head2
8089 #. type: =head2
8090 #: ../src/guestfs-actions.pod:765
8091 msgid "guestfs_blockdev_rereadpt"
8092 msgstr ""
8093
8094 # type: verbatim
8095 #. type: verbatim
8096 #: ../src/guestfs-actions.pod:767
8097 #, no-wrap
8098 msgid ""
8099 " int\n"
8100 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
8101 "                            const char *device);\n"
8102 "\n"
8103 msgstr ""
8104
8105 # type: textblock
8106 #. type: textblock
8107 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:514
8108 msgid "Reread the partition table on C<device>."
8109 msgstr ""
8110
8111 # type: =head2
8112 #. type: =head2
8113 #: ../src/guestfs-actions.pod:779
8114 msgid "guestfs_blockdev_setbsz"
8115 msgstr ""
8116
8117 # type: verbatim
8118 #. type: verbatim
8119 #: ../src/guestfs-actions.pod:781
8120 #, no-wrap
8121 msgid ""
8122 " int\n"
8123 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
8124 "                          const char *device,\n"
8125 "                          int blocksize);\n"
8126 "\n"
8127 msgstr ""
8128
8129 # type: textblock
8130 #. type: textblock
8131 #: ../src/guestfs-actions.pod:786 ../fish/guestfish-actions.pod:522
8132 msgid "This sets the block size of a device."
8133 msgstr ""
8134
8135 # type: =head2
8136 #. type: =head2
8137 #: ../src/guestfs-actions.pod:797
8138 msgid "guestfs_blockdev_setro"
8139 msgstr ""
8140
8141 # type: verbatim
8142 #. type: verbatim
8143 #: ../src/guestfs-actions.pod:799
8144 #, no-wrap
8145 msgid ""
8146 " int\n"
8147 " guestfs_blockdev_setro (guestfs_h *g,\n"
8148 "                         const char *device);\n"
8149 "\n"
8150 msgstr ""
8151
8152 # type: textblock
8153 #. type: textblock
8154 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:533
8155 msgid "Sets the block device named C<device> to read-only."
8156 msgstr ""
8157
8158 # type: =head2
8159 #. type: =head2
8160 #: ../src/guestfs-actions.pod:811
8161 msgid "guestfs_blockdev_setrw"
8162 msgstr ""
8163
8164 # type: verbatim
8165 #. type: verbatim
8166 #: ../src/guestfs-actions.pod:813
8167 #, no-wrap
8168 msgid ""
8169 " int\n"
8170 " guestfs_blockdev_setrw (guestfs_h *g,\n"
8171 "                         const char *device);\n"
8172 "\n"
8173 msgstr ""
8174
8175 # type: textblock
8176 #. type: textblock
8177 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:541
8178 msgid "Sets the block device named C<device> to read-write."
8179 msgstr ""
8180
8181 # type: =head2
8182 #. type: =head2
8183 #: ../src/guestfs-actions.pod:825
8184 msgid "guestfs_case_sensitive_path"
8185 msgstr ""
8186
8187 # type: verbatim
8188 #. type: verbatim
8189 #: ../src/guestfs-actions.pod:827
8190 #, no-wrap
8191 msgid ""
8192 " char *\n"
8193 " guestfs_case_sensitive_path (guestfs_h *g,\n"
8194 "                              const char *path);\n"
8195 "\n"
8196 msgstr ""
8197
8198 # type: textblock
8199 #. type: textblock
8200 #: ../src/guestfs-actions.pod:831 ../fish/guestfish-actions.pod:549
8201 msgid ""
8202 "This can be used to resolve case insensitive paths on a filesystem which is "
8203 "case sensitive.  The use case is to resolve paths which you have read from "
8204 "Windows configuration files or the Windows Registry, to the true path."
8205 msgstr ""
8206
8207 # type: textblock
8208 #. type: textblock
8209 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:554
8210 msgid ""
8211 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
8212 "(and probably others), which is that although the underlying filesystem is "
8213 "case-insensitive, the driver exports the filesystem to Linux as case-"
8214 "sensitive."
8215 msgstr ""
8216
8217 # type: textblock
8218 #. type: textblock
8219 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:559
8220 msgid ""
8221 "One consequence of this is that special directories such as C<c:\\windows> "
8222 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
8223 "precise details of how they were created.  In Windows itself this would not "
8224 "be a problem."
8225 msgstr ""
8226
8227 # type: textblock
8228 #. type: textblock
8229 #: ../src/guestfs-actions.pod:847 ../fish/guestfish-actions.pod:565
8230 msgid ""
8231 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
8232 "#posixfilenames1>"
8233 msgstr ""
8234
8235 # type: textblock
8236 #. type: textblock
8237 #: ../src/guestfs-actions.pod:850 ../fish/guestfish-actions.pod:568
8238 msgid ""
8239 "This function resolves the true case of each element in the path and returns "
8240 "the case-sensitive path."
8241 msgstr ""
8242
8243 # type: textblock
8244 #. type: textblock
8245 #: ../src/guestfs-actions.pod:853
8246 msgid ""
8247 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
8248 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
8249 "how the directories were originally created under Windows)."
8250 msgstr ""
8251
8252 # type: textblock
8253 #. type: textblock
8254 #: ../src/guestfs-actions.pod:858 ../fish/guestfish-actions.pod:576
8255 msgid "I<Note>: This function does not handle drive names, backslashes etc."
8256 msgstr ""
8257
8258 # type: textblock
8259 #. type: textblock
8260 #: ../src/guestfs-actions.pod:861
8261 msgid "See also C<guestfs_realpath>."
8262 msgstr ""
8263
8264 # type: textblock
8265 #. type: textblock
8266 #: ../src/guestfs-actions.pod:866 ../src/guestfs-actions.pod:7177
8267 msgid "(Added in 1.0.75)"
8268 msgstr ""
8269
8270 # type: =head2
8271 #. type: =head2
8272 #: ../src/guestfs-actions.pod:868
8273 msgid "guestfs_cat"
8274 msgstr ""
8275
8276 # type: verbatim
8277 #. type: verbatim
8278 #: ../src/guestfs-actions.pod:870
8279 #, no-wrap
8280 msgid ""
8281 " char *\n"
8282 " guestfs_cat (guestfs_h *g,\n"
8283 "              const char *path);\n"
8284 "\n"
8285 msgstr ""
8286
8287 # type: textblock
8288 #. type: textblock
8289 #: ../src/guestfs-actions.pod:874 ../src/guestfs-actions.pod:5641
8290 #: ../fish/guestfish-actions.pod:585 ../fish/guestfish-actions.pod:3727
8291 msgid "Return the contents of the file named C<path>."
8292 msgstr ""
8293
8294 # type: textblock
8295 #. type: textblock
8296 #: ../src/guestfs-actions.pod:876
8297 msgid ""
8298 "Note that this function cannot correctly handle binary files (specifically, "
8299 "files containing C<\\0> character which is treated as end of string).  For "
8300 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
8301 "functions which have a more complex interface."
8302 msgstr ""
8303
8304 # type: textblock
8305 #. type: textblock
8306 #: ../src/guestfs-actions.pod:884 ../src/guestfs-actions.pod:1063
8307 #: ../src/guestfs-actions.pod:1083 ../src/guestfs-actions.pod:1379
8308 #: ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:1501
8309 #: ../src/guestfs-actions.pod:1520 ../src/guestfs-actions.pod:1766
8310 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:2245
8311 #: ../src/guestfs-actions.pod:2288 ../src/guestfs-actions.pod:2312
8312 #: ../src/guestfs-actions.pod:2329 ../src/guestfs-actions.pod:2358
8313 #: ../src/guestfs-actions.pod:5423 ../src/guestfs-actions.pod:5449
8314 #: ../src/guestfs-actions.pod:5580 ../src/guestfs-actions.pod:5606
8315 #: ../src/guestfs-actions.pod:5630 ../src/guestfs-actions.pod:6562
8316 #: ../src/guestfs-actions.pod:6617 ../src/guestfs-actions.pod:6763
8317 #: ../src/guestfs-actions.pod:6787 ../src/guestfs-actions.pod:7456
8318 #: ../src/guestfs-actions.pod:7482 ../src/guestfs-actions.pod:7508
8319 #: ../src/guestfs-actions.pod:7527 ../src/guestfs-actions.pod:7613
8320 #: ../src/guestfs-actions.pod:7632 ../src/guestfs-actions.pod:7678
8321 #: ../src/guestfs-actions.pod:7697 ../fish/guestfish-actions.pod:592
8322 #: ../fish/guestfish-actions.pod:727 ../fish/guestfish-actions.pod:739
8323 #: ../fish/guestfish-actions.pod:915 ../fish/guestfish-actions.pod:925
8324 #: ../fish/guestfish-actions.pod:992 ../fish/guestfish-actions.pod:1002
8325 #: ../fish/guestfish-actions.pod:1194 ../fish/guestfish-actions.pod:1495
8326 #: ../fish/guestfish-actions.pod:1505 ../fish/guestfish-actions.pod:1533
8327 #: ../fish/guestfish-actions.pod:1548 ../fish/guestfish-actions.pod:1558
8328 #: ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:3597
8329 #: ../fish/guestfish-actions.pod:3612 ../fish/guestfish-actions.pod:3688
8330 #: ../fish/guestfish-actions.pod:3705 ../fish/guestfish-actions.pod:3720
8331 #: ../fish/guestfish-actions.pod:4374 ../fish/guestfish-actions.pod:4420
8332 #: ../fish/guestfish-actions.pod:4505 ../fish/guestfish-actions.pod:4520
8333 #: ../fish/guestfish-actions.pod:4930 ../fish/guestfish-actions.pod:4948
8334 #: ../fish/guestfish-actions.pod:4965 ../fish/guestfish-actions.pod:4975
8335 #: ../fish/guestfish-actions.pod:5024 ../fish/guestfish-actions.pod:5034
8336 #: ../fish/guestfish-actions.pod:5063 ../fish/guestfish-actions.pod:5073
8337 msgid ""
8338 "Because of the message protocol, there is a transfer limit of somewhere "
8339 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
8340 msgstr ""
8341
8342 # type: textblock
8343 #. type: textblock
8344 #: ../src/guestfs-actions.pod:887 ../src/guestfs-actions.pod:3670
8345 #: ../src/guestfs-actions.pod:3732 ../src/guestfs-actions.pod:3749
8346 #: ../src/guestfs-actions.pod:3837 ../src/guestfs-actions.pod:4242
8347 #: ../src/guestfs-actions.pod:4256 ../src/guestfs-actions.pod:5529
8348 #: ../src/guestfs-actions.pod:5543 ../src/guestfs-actions.pod:7336
8349 #: ../src/guestfs-actions.pod:7350
8350 msgid "(Added in 0.4)"
8351 msgstr ""
8352
8353 # type: =head2
8354 #. type: =head2
8355 #: ../src/guestfs-actions.pod:889
8356 msgid "guestfs_checksum"
8357 msgstr ""
8358
8359 # type: verbatim
8360 #. type: verbatim
8361 #: ../src/guestfs-actions.pod:891
8362 #, no-wrap
8363 msgid ""
8364 " char *\n"
8365 " guestfs_checksum (guestfs_h *g,\n"
8366 "                   const char *csumtype,\n"
8367 "                   const char *path);\n"
8368 "\n"
8369 msgstr ""
8370
8371 # type: textblock
8372 #. type: textblock
8373 #: ../src/guestfs-actions.pod:896 ../fish/guestfish-actions.pod:599
8374 msgid ""
8375 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
8376 msgstr ""
8377
8378 # type: textblock
8379 #. type: textblock
8380 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:602
8381 msgid ""
8382 "The type of checksum to compute is given by the C<csumtype> parameter which "
8383 "must have one of the following values:"
8384 msgstr ""
8385
8386 # type: =item
8387 #. type: =item
8388 #: ../src/guestfs-actions.pod:904 ../fish/guestfish-actions.pod:607
8389 msgid "C<crc>"
8390 msgstr ""
8391
8392 # type: textblock
8393 #. type: textblock
8394 #: ../src/guestfs-actions.pod:906 ../fish/guestfish-actions.pod:609
8395 msgid ""
8396 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
8397 "C<cksum> command."
8398 msgstr ""
8399
8400 # type: =item
8401 #. type: =item
8402 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:612
8403 msgid "C<md5>"
8404 msgstr ""
8405
8406 # type: textblock
8407 #. type: textblock
8408 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:614
8409 msgid "Compute the MD5 hash (using the C<md5sum> program)."
8410 msgstr ""
8411
8412 # type: =item
8413 #. type: =item
8414 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:616
8415 msgid "C<sha1>"
8416 msgstr ""
8417
8418 # type: textblock
8419 #. type: textblock
8420 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:618
8421 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
8422 msgstr ""
8423
8424 # type: =item
8425 #. type: =item
8426 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:620
8427 msgid "C<sha224>"
8428 msgstr ""
8429
8430 # type: textblock
8431 #. type: textblock
8432 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:622
8433 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
8434 msgstr ""
8435
8436 # type: =item
8437 #. type: =item
8438 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:624
8439 msgid "C<sha256>"
8440 msgstr ""
8441
8442 # type: textblock
8443 #. type: textblock
8444 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:626
8445 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
8446 msgstr ""
8447
8448 # type: =item
8449 #. type: =item
8450 #: ../src/guestfs-actions.pod:925 ../fish/guestfish-actions.pod:628
8451 msgid "C<sha384>"
8452 msgstr ""
8453
8454 # type: textblock
8455 #. type: textblock
8456 #: ../src/guestfs-actions.pod:927 ../fish/guestfish-actions.pod:630
8457 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
8458 msgstr ""
8459
8460 # type: =item
8461 #. type: =item
8462 #: ../src/guestfs-actions.pod:929 ../fish/guestfish-actions.pod:632
8463 msgid "C<sha512>"
8464 msgstr ""
8465
8466 # type: textblock
8467 #. type: textblock
8468 #: ../src/guestfs-actions.pod:931 ../fish/guestfish-actions.pod:634
8469 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
8470 msgstr ""
8471
8472 # type: textblock
8473 #. type: textblock
8474 #: ../src/guestfs-actions.pod:935 ../fish/guestfish-actions.pod:638
8475 msgid "The checksum is returned as a printable string."
8476 msgstr ""
8477
8478 # type: textblock
8479 #. type: textblock
8480 #: ../src/guestfs-actions.pod:937
8481 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
8482 msgstr ""
8483
8484 # type: textblock
8485 #. type: textblock
8486 #: ../src/guestfs-actions.pod:939
8487 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
8488 msgstr ""
8489
8490 # type: textblock
8491 #. type: textblock
8492 #: ../src/guestfs-actions.pod:944 ../src/guestfs-actions.pod:1252
8493 #: ../src/guestfs-actions.pod:2088 ../src/guestfs-actions.pod:3368
8494 #: ../src/guestfs-actions.pod:3397 ../src/guestfs-actions.pod:3458
8495 #: ../src/guestfs-actions.pod:3485 ../src/guestfs-actions.pod:7033
8496 msgid "(Added in 1.0.2)"
8497 msgstr ""
8498
8499 # type: =head2
8500 #. type: =head2
8501 #: ../src/guestfs-actions.pod:946
8502 msgid "guestfs_checksum_device"
8503 msgstr ""
8504
8505 # type: verbatim
8506 #. type: verbatim
8507 #: ../src/guestfs-actions.pod:948
8508 #, no-wrap
8509 msgid ""
8510 " char *\n"
8511 " guestfs_checksum_device (guestfs_h *g,\n"
8512 "                          const char *csumtype,\n"
8513 "                          const char *device);\n"
8514 "\n"
8515 msgstr ""
8516
8517 # type: textblock
8518 #. type: textblock
8519 #: ../src/guestfs-actions.pod:953
8520 msgid ""
8521 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
8522 "device named C<device>.  For the types of checksums supported see the "
8523 "C<guestfs_checksum> command."
8524 msgstr ""
8525
8526 # type: textblock
8527 #. type: textblock
8528 #: ../src/guestfs-actions.pod:960 ../src/guestfs-actions.pod:5060
8529 #: ../src/guestfs-actions.pod:5119 ../src/guestfs-actions.pod:5156
8530 #: ../src/guestfs-actions.pod:5174 ../src/guestfs-actions.pod:5350
8531 #: ../src/guestfs-actions.pod:6942 ../src/guestfs-actions.pod:6956
8532 #: ../src/guestfs-actions.pod:7362
8533 msgid "(Added in 1.3.2)"
8534 msgstr ""
8535
8536 # type: =head2
8537 #. type: =head2
8538 #: ../src/guestfs-actions.pod:962
8539 msgid "guestfs_checksums_out"
8540 msgstr ""
8541
8542 # type: verbatim
8543 #. type: verbatim
8544 #: ../src/guestfs-actions.pod:964
8545 #, no-wrap
8546 msgid ""
8547 " int\n"
8548 " guestfs_checksums_out (guestfs_h *g,\n"
8549 "                        const char *csumtype,\n"
8550 "                        const char *directory,\n"
8551 "                        const char *sumsfile);\n"
8552 "\n"
8553 msgstr ""
8554
8555 # type: textblock
8556 #. type: textblock
8557 #: ../src/guestfs-actions.pod:970 ../fish/guestfish-actions.pod:656
8558 msgid ""
8559 "This command computes the checksums of all regular files in C<directory> and "
8560 "then emits a list of those checksums to the local output file C<sumsfile>."
8561 msgstr ""
8562
8563 # type: textblock
8564 #. type: textblock
8565 #: ../src/guestfs-actions.pod:974 ../fish/guestfish-actions.pod:660
8566 msgid ""
8567 "This can be used for verifying the integrity of a virtual machine.  However "
8568 "to be properly secure you should pay attention to the output of the checksum "
8569 "command (it uses the ones from GNU coreutils).  In particular when the "
8570 "filename is not printable, coreutils uses a special backslash syntax.  For "
8571 "more information, see the GNU coreutils info file."
8572 msgstr ""
8573
8574 # type: textblock
8575 #. type: textblock
8576 #: ../src/guestfs-actions.pod:984
8577 msgid "(Added in 1.3.7)"
8578 msgstr ""
8579
8580 # type: =head2
8581 #. type: =head2
8582 #: ../src/guestfs-actions.pod:986
8583 msgid "guestfs_chmod"
8584 msgstr ""
8585
8586 # type: verbatim
8587 #. type: verbatim
8588 #: ../src/guestfs-actions.pod:988
8589 #, no-wrap
8590 msgid ""
8591 " int\n"
8592 " guestfs_chmod (guestfs_h *g,\n"
8593 "                int mode,\n"
8594 "                const char *path);\n"
8595 "\n"
8596 msgstr ""
8597
8598 # type: textblock
8599 #. type: textblock
8600 #: ../src/guestfs-actions.pod:993 ../fish/guestfish-actions.pod:674
8601 msgid ""
8602 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
8603 "supported."
8604 msgstr ""
8605
8606 # type: textblock
8607 #. type: textblock
8608 #: ../src/guestfs-actions.pod:996 ../fish/guestfish-actions.pod:677
8609 msgid ""
8610 "I<Note>: When using this command from guestfish, C<mode> by default would be "
8611 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
8612 "C<700>."
8613 msgstr ""
8614
8615 # type: textblock
8616 #. type: textblock
8617 #: ../src/guestfs-actions.pod:1000 ../src/guestfs-actions.pod:4493
8618 #: ../src/guestfs-actions.pod:4702 ../src/guestfs-actions.pod:4721
8619 #: ../src/guestfs-actions.pod:4740 ../fish/guestfish-actions.pod:681
8620 #: ../fish/guestfish-actions.pod:3013 ../fish/guestfish-actions.pod:3152
8621 #: ../fish/guestfish-actions.pod:3162 ../fish/guestfish-actions.pod:3172
8622 msgid "The mode actually set is affected by the umask."
8623 msgstr ""
8624
8625 # type: =head2
8626 #. type: =head2
8627 #: ../src/guestfs-actions.pod:1006
8628 msgid "guestfs_chown"
8629 msgstr ""
8630
8631 # type: verbatim
8632 #. type: verbatim
8633 #: ../src/guestfs-actions.pod:1008
8634 #, no-wrap
8635 msgid ""
8636 " int\n"
8637 " guestfs_chown (guestfs_h *g,\n"
8638 "                int owner,\n"
8639 "                int group,\n"
8640 "                const char *path);\n"
8641 "\n"
8642 msgstr ""
8643
8644 # type: textblock
8645 #. type: textblock
8646 #: ../src/guestfs-actions.pod:1014 ../fish/guestfish-actions.pod:687
8647 msgid "Change the file owner to C<owner> and group to C<group>."
8648 msgstr ""
8649
8650 # type: textblock
8651 #. type: textblock
8652 #: ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:3587
8653 #: ../fish/guestfish-actions.pod:689 ../fish/guestfish-actions.pod:2464
8654 msgid ""
8655 "Only numeric uid and gid are supported.  If you want to use names, you will "
8656 "need to locate and parse the password file yourself (Augeas support makes "
8657 "this relatively easy)."
8658 msgstr ""
8659
8660 # type: =head2
8661 #. type: =head2
8662 #: ../src/guestfs-actions.pod:1024
8663 msgid "guestfs_command"
8664 msgstr ""
8665
8666 # type: verbatim
8667 #. type: verbatim
8668 #: ../src/guestfs-actions.pod:1026
8669 #, no-wrap
8670 msgid ""
8671 " char *\n"
8672 " guestfs_command (guestfs_h *g,\n"
8673 "                  char *const *arguments);\n"
8674 "\n"
8675 msgstr ""
8676
8677 # type: textblock
8678 #. type: textblock
8679 #: ../src/guestfs-actions.pod:1030 ../fish/guestfish-actions.pod:697
8680 msgid ""
8681 "This call runs a command from the guest filesystem.  The filesystem must be "
8682 "mounted, and must contain a compatible operating system (ie. something "
8683 "Linux, with the same or compatible processor architecture)."
8684 msgstr ""
8685
8686 # type: textblock
8687 #. type: textblock
8688 #: ../src/guestfs-actions.pod:1035
8689 msgid ""
8690 "The single parameter is an argv-style list of arguments.  The first element "
8691 "is the name of the program to run.  Subsequent elements are parameters.  The "
8692 "list must be non-empty (ie. must contain a program name).  Note that the "
8693 "command runs directly, and is I<not> invoked via the shell (see "
8694 "C<guestfs_sh>)."
8695 msgstr ""
8696
8697 # type: textblock
8698 #. type: textblock
8699 #: ../src/guestfs-actions.pod:1042 ../fish/guestfish-actions.pod:709
8700 msgid "The return value is anything printed to I<stdout> by the command."
8701 msgstr ""
8702
8703 # type: textblock
8704 #. type: textblock
8705 #: ../src/guestfs-actions.pod:1045 ../fish/guestfish-actions.pod:712
8706 msgid ""
8707 "If the command returns a non-zero exit status, then this function returns an "
8708 "error message.  The error message string is the content of I<stderr> from "
8709 "the command."
8710 msgstr ""
8711
8712 # type: textblock
8713 #. type: textblock
8714 #: ../src/guestfs-actions.pod:1049 ../fish/guestfish-actions.pod:716
8715 msgid ""
8716 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
8717 "bin>.  If you require a program from another location, you should provide "
8718 "the full path in the first parameter."
8719 msgstr ""
8720
8721 # type: textblock
8722 #. type: textblock
8723 #: ../src/guestfs-actions.pod:1054 ../fish/guestfish-actions.pod:721
8724 msgid ""
8725 "Shared libraries and data files required by the program must be available on "
8726 "filesystems which are mounted in the correct places.  It is the caller's "
8727 "responsibility to ensure all filesystems that are needed are mounted at the "
8728 "right locations."
8729 msgstr ""
8730
8731 # type: textblock
8732 #. type: textblock
8733 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1086
8734 #: ../src/guestfs-actions.pod:1551
8735 msgid "(Added in 0.9.1)"
8736 msgstr ""
8737
8738 # type: =head2
8739 #. type: =head2
8740 #: ../src/guestfs-actions.pod:1068
8741 msgid "guestfs_command_lines"
8742 msgstr ""
8743
8744 # type: verbatim
8745 #. type: verbatim
8746 #: ../src/guestfs-actions.pod:1070
8747 #, no-wrap
8748 msgid ""
8749 " char **\n"
8750 " guestfs_command_lines (guestfs_h *g,\n"
8751 "                        char *const *arguments);\n"
8752 "\n"
8753 msgstr ""
8754
8755 # type: textblock
8756 #. type: textblock
8757 #: ../src/guestfs-actions.pod:1074
8758 msgid ""
8759 "This is the same as C<guestfs_command>, but splits the result into a list of "
8760 "lines."
8761 msgstr ""
8762
8763 # type: textblock
8764 #. type: textblock
8765 #: ../src/guestfs-actions.pod:1077
8766 msgid "See also: C<guestfs_sh_lines>"
8767 msgstr ""
8768
8769 # type: =head2
8770 #. type: =head2
8771 #: ../src/guestfs-actions.pod:1088
8772 msgid "guestfs_config"
8773 msgstr ""
8774
8775 # type: verbatim
8776 #. type: verbatim
8777 #: ../src/guestfs-actions.pod:1090
8778 #, no-wrap
8779 msgid ""
8780 " int\n"
8781 " guestfs_config (guestfs_h *g,\n"
8782 "                 const char *qemuparam,\n"
8783 "                 const char *qemuvalue);\n"
8784 "\n"
8785 msgstr ""
8786
8787 #. type: textblock
8788 #: ../src/guestfs-actions.pod:1095 ../fish/guestfish-actions.pod:746
8789 msgid ""
8790 "This can be used to add arbitrary qemu command line parameters of the form "
8791 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8792 "setting some parameters which would interfere with parameters that we use."
8793 msgstr ""
8794
8795 # type: textblock
8796 #. type: textblock
8797 #: ../src/guestfs-actions.pod:1100 ../fish/guestfish-actions.pod:751
8798 msgid "The first character of C<param> string must be a C<-> (dash)."
8799 msgstr ""
8800
8801 # type: textblock
8802 #. type: textblock
8803 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:753
8804 msgid "C<value> can be NULL."
8805 msgstr ""
8806
8807 # type: =head2
8808 #. type: =head2
8809 #: ../src/guestfs-actions.pod:1108
8810 msgid "guestfs_copy_size"
8811 msgstr ""
8812
8813 # type: verbatim
8814 #. type: verbatim
8815 #: ../src/guestfs-actions.pod:1110
8816 #, no-wrap
8817 msgid ""
8818 " int\n"
8819 " guestfs_copy_size (guestfs_h *g,\n"
8820 "                    const char *src,\n"
8821 "                    const char *dest,\n"
8822 "                    int64_t size);\n"
8823 "\n"
8824 msgstr ""
8825
8826 # type: textblock
8827 #. type: textblock
8828 #: ../src/guestfs-actions.pod:1116 ../fish/guestfish-actions.pod:759
8829 msgid ""
8830 "This command copies exactly C<size> bytes from one source device or file "
8831 "C<src> to another destination device or file C<dest>."
8832 msgstr ""
8833
8834 # type: textblock
8835 #. type: textblock
8836 #: ../src/guestfs-actions.pod:1119 ../fish/guestfish-actions.pod:762
8837 msgid ""
8838 "Note this will fail if the source is too short or if the destination is not "
8839 "large enough."
8840 msgstr ""
8841
8842 #. type: textblock
8843 #: ../src/guestfs-actions.pod:1124 ../src/guestfs-actions.pod:1247
8844 #: ../src/guestfs-actions.pod:1278 ../src/guestfs-actions.pod:1323
8845 #: ../src/guestfs-actions.pod:1700 ../src/guestfs-actions.pod:1722
8846 #: ../src/guestfs-actions.pod:3568 ../src/guestfs-actions.pod:7028
8847 #: ../src/guestfs-actions.pod:7062 ../src/guestfs-actions.pod:7549
8848 #: ../src/guestfs-actions.pod:7568
8849 msgid ""
8850 "This long-running command can generate progress notification messages so "
8851 "that the caller can display a progress bar or indicator.  To receive these "
8852 "messages, the caller must register a progress event callback.  See L<guestfs"
8853 "(3)/GUESTFS_EVENT_PROGRESS>."
8854 msgstr ""
8855
8856 # type: textblock
8857 #. type: textblock
8858 #: ../src/guestfs-actions.pod:1129 ../src/guestfs-actions.pod:4269
8859 #: ../src/guestfs-actions.pod:5556 ../src/guestfs-actions.pod:7269
8860 #: ../src/guestfs-actions.pod:7289 ../src/guestfs-actions.pod:7375
8861 msgid "(Added in 1.0.87)"
8862 msgstr ""
8863
8864 # type: =head2
8865 #. type: =head2
8866 #: ../src/guestfs-actions.pod:1131
8867 msgid "guestfs_cp"
8868 msgstr ""
8869
8870 # type: verbatim
8871 #. type: verbatim
8872 #: ../src/guestfs-actions.pod:1133
8873 #, no-wrap
8874 msgid ""
8875 " int\n"
8876 " guestfs_cp (guestfs_h *g,\n"
8877 "             const char *src,\n"
8878 "             const char *dest);\n"
8879 "\n"
8880 msgstr ""
8881
8882 # type: textblock
8883 #. type: textblock
8884 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:769
8885 msgid ""
8886 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8887 "destination filename or destination directory."
8888 msgstr ""
8889
8890 # type: textblock
8891 #. type: textblock
8892 #: ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1157
8893 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1303
8894 #: ../src/guestfs-actions.pod:1417 ../src/guestfs-actions.pod:5023
8895 #: ../src/guestfs-actions.pod:5400
8896 msgid "(Added in 1.0.18)"
8897 msgstr ""
8898
8899 # type: =head2
8900 #. type: =head2
8901 #: ../src/guestfs-actions.pod:1145
8902 msgid "guestfs_cp_a"
8903 msgstr ""
8904
8905 # type: verbatim
8906 #. type: verbatim
8907 #: ../src/guestfs-actions.pod:1147
8908 #, no-wrap
8909 msgid ""
8910 " int\n"
8911 " guestfs_cp_a (guestfs_h *g,\n"
8912 "               const char *src,\n"
8913 "               const char *dest);\n"
8914 "\n"
8915 msgstr ""
8916
8917 # type: textblock
8918 #. type: textblock
8919 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:776
8920 msgid ""
8921 "This copies a file or directory from C<src> to C<dest> recursively using the "
8922 "C<cp -a> command."
8923 msgstr ""
8924
8925 # type: =head2
8926 #. type: =head2
8927 #: ../src/guestfs-actions.pod:1159
8928 msgid "guestfs_dd"
8929 msgstr ""
8930
8931 # type: verbatim
8932 #. type: verbatim
8933 #: ../src/guestfs-actions.pod:1161
8934 #, no-wrap
8935 msgid ""
8936 " int\n"
8937 " guestfs_dd (guestfs_h *g,\n"
8938 "             const char *src,\n"
8939 "             const char *dest);\n"
8940 "\n"
8941 msgstr ""
8942
8943 # type: textblock
8944 #. type: textblock
8945 #: ../src/guestfs-actions.pod:1166 ../fish/guestfish-actions.pod:783
8946 msgid ""
8947 "This command copies from one source device or file C<src> to another "
8948 "destination device or file C<dest>.  Normally you would use this to copy to "
8949 "or from a device or partition, for example to duplicate a filesystem."
8950 msgstr ""
8951
8952 # type: textblock
8953 #. type: textblock
8954 #: ../src/guestfs-actions.pod:1171
8955 msgid ""
8956 "If the destination is a device, it must be as large or larger than the "
8957 "source file or device, otherwise the copy will fail.  This command cannot do "
8958 "partial copies (see C<guestfs_copy_size>)."
8959 msgstr ""
8960
8961 # type: =head2
8962 #. type: =head2
8963 #: ../src/guestfs-actions.pod:1179
8964 msgid "guestfs_df"
8965 msgstr ""
8966
8967 # type: verbatim
8968 #. type: verbatim
8969 #: ../src/guestfs-actions.pod:1181
8970 #, no-wrap
8971 msgid ""
8972 " char *\n"
8973 " guestfs_df (guestfs_h *g);\n"
8974 "\n"
8975 msgstr ""
8976
8977 # type: textblock
8978 #. type: textblock
8979 #: ../src/guestfs-actions.pod:1184 ../fish/guestfish-actions.pod:796
8980 msgid "This command runs the C<df> command to report disk space used."
8981 msgstr ""
8982
8983 # type: textblock
8984 #. type: textblock
8985 #: ../src/guestfs-actions.pod:1186 ../src/guestfs-actions.pod:1203
8986 msgid ""
8987 "This command is mostly useful for interactive sessions.  It is I<not> "
8988 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
8989 "from programs."
8990 msgstr ""
8991
8992 # type: textblock
8993 #. type: textblock
8994 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:1210
8995 #: ../src/guestfs-actions.pod:1328 ../src/guestfs-actions.pod:2291
8996 #: ../src/guestfs-actions.pod:2315 ../src/guestfs-actions.pod:2383
8997 #: ../src/guestfs-actions.pod:4379 ../src/guestfs-actions.pod:4923
8998 #: ../src/guestfs-actions.pod:6766 ../src/guestfs-actions.pod:6790
8999 #: ../src/guestfs-actions.pod:7415 ../src/guestfs-actions.pod:7428
9000 #: ../src/guestfs-actions.pod:7441
9001 msgid "(Added in 1.0.54)"
9002 msgstr ""
9003
9004 # type: =head2
9005 #. type: =head2
9006 #: ../src/guestfs-actions.pod:1195
9007 msgid "guestfs_df_h"
9008 msgstr ""
9009
9010 # type: verbatim
9011 #. type: verbatim
9012 #: ../src/guestfs-actions.pod:1197
9013 #, no-wrap
9014 msgid ""
9015 " char *\n"
9016 " guestfs_df_h (guestfs_h *g);\n"
9017 "\n"
9018 msgstr ""
9019
9020 # type: textblock
9021 #. type: textblock
9022 #: ../src/guestfs-actions.pod:1200 ../fish/guestfish-actions.pod:806
9023 msgid ""
9024 "This command runs the C<df -h> command to report disk space used in human-"
9025 "readable format."
9026 msgstr ""
9027
9028 # type: =head2
9029 #. type: =head2
9030 #: ../src/guestfs-actions.pod:1212
9031 msgid "guestfs_dmesg"
9032 msgstr ""
9033
9034 # type: verbatim
9035 #. type: verbatim
9036 #: ../src/guestfs-actions.pod:1214
9037 #, no-wrap
9038 msgid ""
9039 " char *\n"
9040 " guestfs_dmesg (guestfs_h *g);\n"
9041 "\n"
9042 msgstr ""
9043
9044 # type: textblock
9045 #. type: textblock
9046 #: ../src/guestfs-actions.pod:1217 ../fish/guestfish-actions.pod:817
9047 msgid ""
9048 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
9049 "This is sometimes useful for extended debugging of problems."
9050 msgstr ""
9051
9052 # type: textblock
9053 #. type: textblock
9054 #: ../src/guestfs-actions.pod:1221
9055 msgid ""
9056 "Another way to get the same information is to enable verbose messages with "
9057 "C<guestfs_set_verbose> or by setting the environment variable "
9058 "C<LIBGUESTFS_DEBUG=1> before running the program."
9059 msgstr ""
9060
9061 # type: =head2
9062 #. type: =head2
9063 #: ../src/guestfs-actions.pod:1231
9064 msgid "guestfs_download"
9065 msgstr ""
9066
9067 # type: verbatim
9068 #. type: verbatim
9069 #: ../src/guestfs-actions.pod:1233
9070 #, no-wrap
9071 msgid ""
9072 " int\n"
9073 " guestfs_download (guestfs_h *g,\n"
9074 "                   const char *remotefilename,\n"
9075 "                   const char *filename);\n"
9076 "\n"
9077 msgstr ""
9078
9079 # type: textblock
9080 #. type: textblock
9081 #: ../src/guestfs-actions.pod:1238 ../src/guestfs-actions.pod:1263
9082 #: ../fish/guestfish-actions.pod:830 ../fish/guestfish-actions.pod:843
9083 msgid ""
9084 "Download file C<remotefilename> and save it as C<filename> on the local "
9085 "machine."
9086 msgstr ""
9087
9088 # type: textblock
9089 #. type: textblock
9090 #: ../src/guestfs-actions.pod:1241 ../src/guestfs-actions.pod:7022
9091 #: ../fish/guestfish-actions.pod:833 ../fish/guestfish-actions.pod:4678
9092 msgid "C<filename> can also be a named pipe."
9093 msgstr ""
9094
9095 # type: textblock
9096 #. type: textblock
9097 #: ../src/guestfs-actions.pod:1243
9098 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
9099 msgstr ""
9100
9101 # type: =head2
9102 #. type: =head2
9103 #: ../src/guestfs-actions.pod:1254
9104 msgid "guestfs_download_offset"
9105 msgstr ""
9106
9107 # type: verbatim
9108 #. type: verbatim
9109 #: ../src/guestfs-actions.pod:1256
9110 #, no-wrap
9111 msgid ""
9112 " int\n"
9113 " guestfs_download_offset (guestfs_h *g,\n"
9114 "                          const char *remotefilename,\n"
9115 "                          const char *filename,\n"
9116 "                          int64_t offset,\n"
9117 "                          int64_t size);\n"
9118 "\n"
9119 msgstr ""
9120
9121 # type: textblock
9122 #. type: textblock
9123 #: ../src/guestfs-actions.pod:1266 ../fish/guestfish-actions.pod:846
9124 msgid ""
9125 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
9126 "region must be within the file or device)."
9127 msgstr ""
9128
9129 # type: textblock
9130 #. type: textblock
9131 #: ../src/guestfs-actions.pod:1269
9132 msgid ""
9133 "Note that there is no limit on the amount of data that can be downloaded "
9134 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
9135 "full amount unless an error occurs."
9136 msgstr ""
9137
9138 # type: textblock
9139 #. type: textblock
9140 #: ../src/guestfs-actions.pod:1274
9141 msgid "See also C<guestfs_download>, C<guestfs_pread>."
9142 msgstr ""
9143
9144 # type: textblock
9145 #. type: textblock
9146 #: ../src/guestfs-actions.pod:1283 ../src/guestfs-actions.pod:7067
9147 msgid "(Added in 1.5.17)"
9148 msgstr ""
9149
9150 # type: =head2
9151 #. type: =head2
9152 #: ../src/guestfs-actions.pod:1285
9153 msgid "guestfs_drop_caches"
9154 msgstr ""
9155
9156 # type: verbatim
9157 #. type: verbatim
9158 #: ../src/guestfs-actions.pod:1287
9159 #, no-wrap
9160 msgid ""
9161 " int\n"
9162 " guestfs_drop_caches (guestfs_h *g,\n"
9163 "                      int whattodrop);\n"
9164 "\n"
9165 msgstr ""
9166
9167 # type: textblock
9168 #. type: textblock
9169 #: ../src/guestfs-actions.pod:1291 ../fish/guestfish-actions.pod:862
9170 msgid ""
9171 "This instructs the guest kernel to drop its page cache, and/or dentries and "
9172 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
9173 "to drop, see L<http://linux-mm.org/Drop_Caches>"
9174 msgstr ""
9175
9176 # type: textblock
9177 #. type: textblock
9178 #: ../src/guestfs-actions.pod:1296 ../fish/guestfish-actions.pod:867
9179 msgid "Setting C<whattodrop> to 3 should drop everything."
9180 msgstr ""
9181
9182 # type: textblock
9183 #. type: textblock
9184 #: ../src/guestfs-actions.pod:1298 ../fish/guestfish-actions.pod:869
9185 msgid ""
9186 "This automatically calls L<sync(2)> before the operation, so that the "
9187 "maximum guest memory is freed."
9188 msgstr ""
9189
9190 # type: =head2
9191 #. type: =head2
9192 #: ../src/guestfs-actions.pod:1305
9193 msgid "guestfs_du"
9194 msgstr ""
9195
9196 # type: verbatim
9197 #. type: verbatim
9198 #: ../src/guestfs-actions.pod:1307
9199 #, no-wrap
9200 msgid ""
9201 " int64_t\n"
9202 " guestfs_du (guestfs_h *g,\n"
9203 "             const char *path);\n"
9204 "\n"
9205 msgstr ""
9206
9207 # type: textblock
9208 #. type: textblock
9209 #: ../src/guestfs-actions.pod:1311 ../fish/guestfish-actions.pod:876
9210 msgid ""
9211 "This command runs the C<du -s> command to estimate file space usage for "
9212 "C<path>."
9213 msgstr ""
9214
9215 # type: textblock
9216 #. type: textblock
9217 #: ../src/guestfs-actions.pod:1314 ../fish/guestfish-actions.pod:879
9218 msgid ""
9219 "C<path> can be a file or a directory.  If C<path> is a directory then the "
9220 "estimate includes the contents of the directory and all subdirectories "
9221 "(recursively)."
9222 msgstr ""
9223
9224 # type: textblock
9225 #. type: textblock
9226 #: ../src/guestfs-actions.pod:1318 ../fish/guestfish-actions.pod:883
9227 msgid ""
9228 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
9229 msgstr ""
9230
9231 # type: =head2
9232 #. type: =head2
9233 #: ../src/guestfs-actions.pod:1330
9234 msgid "guestfs_e2fsck_f"
9235 msgstr ""
9236
9237 # type: verbatim
9238 #. type: verbatim
9239 #: ../src/guestfs-actions.pod:1332
9240 #, no-wrap
9241 msgid ""
9242 " int\n"
9243 " guestfs_e2fsck_f (guestfs_h *g,\n"
9244 "                   const char *device);\n"
9245 "\n"
9246 msgstr ""
9247
9248 #. type: textblock
9249 #: ../src/guestfs-actions.pod:1336 ../fish/guestfish-actions.pod:890
9250 msgid ""
9251 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
9252 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
9253 "clean (I<-f>)."
9254 msgstr ""
9255
9256 # type: textblock
9257 #. type: textblock
9258 #: ../src/guestfs-actions.pod:1340
9259 msgid ""
9260 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
9261 "Normally you should use C<guestfs_fsck>."
9262 msgstr ""
9263
9264 # type: textblock
9265 #. type: textblock
9266 #: ../src/guestfs-actions.pod:1345
9267 msgid "(Added in 1.0.29)"
9268 msgstr ""
9269
9270 # type: =head2
9271 #. type: =head2
9272 #: ../src/guestfs-actions.pod:1347
9273 msgid "guestfs_echo_daemon"
9274 msgstr ""
9275
9276 # type: verbatim
9277 #. type: verbatim
9278 #: ../src/guestfs-actions.pod:1349
9279 #, no-wrap
9280 msgid ""
9281 " char *\n"
9282 " guestfs_echo_daemon (guestfs_h *g,\n"
9283 "                      char *const *words);\n"
9284 "\n"
9285 msgstr ""
9286
9287 # type: textblock
9288 #. type: textblock
9289 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:901
9290 msgid ""
9291 "This command concatenates the list of C<words> passed with single spaces "
9292 "between them and returns the resulting string."
9293 msgstr ""
9294
9295 # type: textblock
9296 #. type: textblock
9297 #: ../src/guestfs-actions.pod:1356 ../fish/guestfish-actions.pod:904
9298 msgid "You can use this command to test the connection through to the daemon."
9299 msgstr ""
9300
9301 # type: textblock
9302 #. type: textblock
9303 #: ../src/guestfs-actions.pod:1358
9304 msgid "See also C<guestfs_ping_daemon>."
9305 msgstr ""
9306
9307 # type: textblock
9308 #. type: textblock
9309 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:2099
9310 #: ../src/guestfs-actions.pod:6238
9311 msgid "(Added in 1.0.69)"
9312 msgstr ""
9313
9314 # type: =head2
9315 #. type: =head2
9316 #: ../src/guestfs-actions.pod:1365
9317 msgid "guestfs_egrep"
9318 msgstr ""
9319
9320 # type: verbatim
9321 #. type: verbatim
9322 #: ../src/guestfs-actions.pod:1367
9323 #, no-wrap
9324 msgid ""
9325 " char **\n"
9326 " guestfs_egrep (guestfs_h *g,\n"
9327 "                const char *regex,\n"
9328 "                const char *path);\n"
9329 "\n"
9330 msgstr ""
9331
9332 # type: textblock
9333 #. type: textblock
9334 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:912
9335 msgid ""
9336 "This calls the external C<egrep> program and returns the matching lines."
9337 msgstr ""
9338
9339 # type: textblock
9340 #. type: textblock
9341 #: ../src/guestfs-actions.pod:1382 ../src/guestfs-actions.pod:1401
9342 #: ../src/guestfs-actions.pod:1458 ../src/guestfs-actions.pod:1504
9343 #: ../src/guestfs-actions.pod:1523 ../src/guestfs-actions.pod:2229
9344 #: ../src/guestfs-actions.pod:2248 ../src/guestfs-actions.pod:2404
9345 #: ../src/guestfs-actions.pod:2417 ../src/guestfs-actions.pod:2432
9346 #: ../src/guestfs-actions.pod:2478 ../src/guestfs-actions.pod:2500
9347 #: ../src/guestfs-actions.pod:2513 ../src/guestfs-actions.pod:3762
9348 #: ../src/guestfs-actions.pod:3776 ../src/guestfs-actions.pod:3789
9349 #: ../src/guestfs-actions.pod:3803 ../src/guestfs-actions.pod:4801
9350 #: ../src/guestfs-actions.pod:5734 ../src/guestfs-actions.pod:5783
9351 #: ../src/guestfs-actions.pod:6634 ../src/guestfs-actions.pod:6646
9352 #: ../src/guestfs-actions.pod:6659 ../src/guestfs-actions.pod:6672
9353 #: ../src/guestfs-actions.pod:6694 ../src/guestfs-actions.pod:6707
9354 #: ../src/guestfs-actions.pod:6720 ../src/guestfs-actions.pod:6733
9355 #: ../src/guestfs-actions.pod:7511 ../src/guestfs-actions.pod:7530
9356 #: ../src/guestfs-actions.pod:7616 ../src/guestfs-actions.pod:7635
9357 #: ../src/guestfs-actions.pod:7681 ../src/guestfs-actions.pod:7700
9358 msgid "(Added in 1.0.66)"
9359 msgstr ""
9360
9361 # type: =head2
9362 #. type: =head2
9363 #: ../src/guestfs-actions.pod:1384
9364 msgid "guestfs_egrepi"
9365 msgstr ""
9366
9367 # type: verbatim
9368 #. type: verbatim
9369 #: ../src/guestfs-actions.pod:1386
9370 #, no-wrap
9371 msgid ""
9372 " char **\n"
9373 " guestfs_egrepi (guestfs_h *g,\n"
9374 "                 const char *regex,\n"
9375 "                 const char *path);\n"
9376 "\n"
9377 msgstr ""
9378
9379 # type: textblock
9380 #. type: textblock
9381 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:922
9382 msgid ""
9383 "This calls the external C<egrep -i> program and returns the matching lines."
9384 msgstr ""
9385
9386 # type: =head2
9387 #. type: =head2
9388 #: ../src/guestfs-actions.pod:1403
9389 msgid "guestfs_equal"
9390 msgstr ""
9391
9392 # type: verbatim
9393 #. type: verbatim
9394 #: ../src/guestfs-actions.pod:1405
9395 #, no-wrap
9396 msgid ""
9397 " int\n"
9398 " guestfs_equal (guestfs_h *g,\n"
9399 "                const char *file1,\n"
9400 "                const char *file2);\n"
9401 "\n"
9402 msgstr ""
9403
9404 # type: textblock
9405 #. type: textblock
9406 #: ../src/guestfs-actions.pod:1410 ../fish/guestfish-actions.pod:932
9407 msgid ""
9408 "This compares the two files C<file1> and C<file2> and returns true if their "
9409 "content is exactly equal, or false otherwise."
9410 msgstr ""
9411
9412 # type: textblock
9413 #. type: textblock
9414 #: ../src/guestfs-actions.pod:1413 ../fish/guestfish-actions.pod:935
9415 msgid "The external L<cmp(1)> program is used for the comparison."
9416 msgstr ""
9417
9418 # type: =head2
9419 #. type: =head2
9420 #: ../src/guestfs-actions.pod:1419
9421 msgid "guestfs_exists"
9422 msgstr ""
9423
9424 # type: verbatim
9425 #. type: verbatim
9426 #: ../src/guestfs-actions.pod:1421
9427 #, no-wrap
9428 msgid ""
9429 " int\n"
9430 " guestfs_exists (guestfs_h *g,\n"
9431 "                 const char *path);\n"
9432 "\n"
9433 msgstr ""
9434
9435 # type: textblock
9436 #. type: textblock
9437 #: ../src/guestfs-actions.pod:1425 ../fish/guestfish-actions.pod:941
9438 msgid ""
9439 "This returns C<true> if and only if there is a file, directory (or anything) "
9440 "with the given C<path> name."
9441 msgstr ""
9442
9443 # type: textblock
9444 #. type: textblock
9445 #: ../src/guestfs-actions.pod:1428
9446 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
9447 msgstr ""
9448
9449 # type: =head2
9450 #. type: =head2
9451 #: ../src/guestfs-actions.pod:1434
9452 msgid "guestfs_fallocate"
9453 msgstr ""
9454
9455 # type: verbatim
9456 #. type: verbatim
9457 #: ../src/guestfs-actions.pod:1436
9458 #, no-wrap
9459 msgid ""
9460 " int\n"
9461 " guestfs_fallocate (guestfs_h *g,\n"
9462 "                    const char *path,\n"
9463 "                    int len);\n"
9464 "\n"
9465 msgstr ""
9466
9467 # type: textblock
9468 #. type: textblock
9469 #: ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1467
9470 #: ../fish/guestfish-actions.pod:950 ../fish/guestfish-actions.pod:969
9471 msgid ""
9472 "This command preallocates a file (containing zero bytes) named C<path> of "
9473 "size C<len> bytes.  If the file exists already, it is overwritten."
9474 msgstr ""
9475
9476 # type: textblock
9477 #. type: textblock
9478 #: ../src/guestfs-actions.pod:1445 ../fish/guestfish-actions.pod:954
9479 msgid ""
9480 "Do not confuse this with the guestfish-specific C<alloc> command which "
9481 "allocates a file in the host and attaches it as a device."
9482 msgstr ""
9483
9484 # type: textblock
9485 #. type: textblock
9486 #: ../src/guestfs-actions.pod:1451 ../fish/guestfish-actions.pod:958
9487 msgid ""
9488 "This function is deprecated.  In new code, use the C<fallocate64> call "
9489 "instead."
9490 msgstr ""
9491
9492 # type: =head2
9493 #. type: =head2
9494 #: ../src/guestfs-actions.pod:1460
9495 msgid "guestfs_fallocate64"
9496 msgstr ""
9497
9498 # type: verbatim
9499 #. type: verbatim
9500 #: ../src/guestfs-actions.pod:1462
9501 #, no-wrap
9502 msgid ""
9503 " int\n"
9504 " guestfs_fallocate64 (guestfs_h *g,\n"
9505 "                      const char *path,\n"
9506 "                      int64_t len);\n"
9507 "\n"
9508 msgstr ""
9509
9510 # type: textblock
9511 #. type: textblock
9512 #: ../src/guestfs-actions.pod:1471
9513 msgid ""
9514 "Note that this call allocates disk blocks for the file.  To create a sparse "
9515 "file use C<guestfs_truncate_size> instead."
9516 msgstr ""
9517
9518 # type: textblock
9519 #. type: textblock
9520 #: ../src/guestfs-actions.pod:1474
9521 msgid ""
9522 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
9523 "oversight it only allowed 30 bit lengths to be specified, effectively "
9524 "limiting the maximum size of files created through that call to 1GB."
9525 msgstr ""
9526
9527 # type: textblock
9528 #. type: textblock
9529 #: ../src/guestfs-actions.pod:1479 ../fish/guestfish-actions.pod:981
9530 msgid ""
9531 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
9532 "commands which create a file in the host and attach it as a device."
9533 msgstr ""
9534
9535 # type: textblock
9536 #. type: textblock
9537 #: ../src/guestfs-actions.pod:1485
9538 msgid "(Added in 1.3.17)"
9539 msgstr ""
9540
9541 # type: =head2
9542 #. type: =head2
9543 #: ../src/guestfs-actions.pod:1487
9544 msgid "guestfs_fgrep"
9545 msgstr ""
9546
9547 # type: verbatim
9548 #. type: verbatim
9549 #: ../src/guestfs-actions.pod:1489
9550 #, no-wrap
9551 msgid ""
9552 " char **\n"
9553 " guestfs_fgrep (guestfs_h *g,\n"
9554 "                const char *pattern,\n"
9555 "                const char *path);\n"
9556 "\n"
9557 msgstr ""
9558
9559 # type: textblock
9560 #. type: textblock
9561 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:989
9562 msgid ""
9563 "This calls the external C<fgrep> program and returns the matching lines."
9564 msgstr ""
9565
9566 # type: =head2
9567 #. type: =head2
9568 #: ../src/guestfs-actions.pod:1506
9569 msgid "guestfs_fgrepi"
9570 msgstr ""
9571
9572 # type: verbatim
9573 #. type: verbatim
9574 #: ../src/guestfs-actions.pod:1508
9575 #, no-wrap
9576 msgid ""
9577 " char **\n"
9578 " guestfs_fgrepi (guestfs_h *g,\n"
9579 "                 const char *pattern,\n"
9580 "                 const char *path);\n"
9581 "\n"
9582 msgstr ""
9583
9584 # type: textblock
9585 #. type: textblock
9586 #: ../src/guestfs-actions.pod:1513 ../fish/guestfish-actions.pod:999
9587 msgid ""
9588 "This calls the external C<fgrep -i> program and returns the matching lines."
9589 msgstr ""
9590
9591 # type: =head2
9592 #. type: =head2
9593 #: ../src/guestfs-actions.pod:1525
9594 msgid "guestfs_file"
9595 msgstr ""
9596
9597 # type: verbatim
9598 #. type: verbatim
9599 #: ../src/guestfs-actions.pod:1527
9600 #, no-wrap
9601 msgid ""
9602 " char *\n"
9603 " guestfs_file (guestfs_h *g,\n"
9604 "               const char *path);\n"
9605 "\n"
9606 msgstr ""
9607
9608 # type: textblock
9609 #. type: textblock
9610 #: ../src/guestfs-actions.pod:1531 ../fish/guestfish-actions.pod:1009
9611 msgid ""
9612 "This call uses the standard L<file(1)> command to determine the type or "
9613 "contents of the file."
9614 msgstr ""
9615
9616 # type: textblock
9617 #. type: textblock
9618 #: ../src/guestfs-actions.pod:1534 ../fish/guestfish-actions.pod:1012
9619 msgid ""
9620 "This call will also transparently look inside various types of compressed "
9621 "file."
9622 msgstr ""
9623
9624 #. type: textblock
9625 #: ../src/guestfs-actions.pod:1537 ../fish/guestfish-actions.pod:1015
9626 msgid ""
9627 "The exact command which runs is C<file -zb path>.  Note in particular that "
9628 "the filename is not prepended to the output (the I<-b> option)."
9629 msgstr ""
9630
9631 #. type: textblock
9632 #: ../src/guestfs-actions.pod:1541 ../fish/guestfish-actions.pod:1019
9633 msgid ""
9634 "The output depends on the output of the underlying L<file(1)> command and it "
9635 "can change in future in ways beyond our control.  In other words, the output "
9636 "is not guaranteed by the ABI."
9637 msgstr ""
9638
9639 #. type: textblock
9640 #: ../src/guestfs-actions.pod:1545
9641 msgid ""
9642 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
9643 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
9644 msgstr ""
9645
9646 # type: =head2
9647 #. type: =head2
9648 #: ../src/guestfs-actions.pod:1553
9649 msgid "guestfs_file_architecture"
9650 msgstr ""
9651
9652 # type: verbatim
9653 #. type: verbatim
9654 #: ../src/guestfs-actions.pod:1555
9655 #, no-wrap
9656 msgid ""
9657 " char *\n"
9658 " guestfs_file_architecture (guestfs_h *g,\n"
9659 "                            const char *filename);\n"
9660 "\n"
9661 msgstr ""
9662
9663 # type: textblock
9664 #. type: textblock
9665 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1030
9666 msgid ""
9667 "This detects the architecture of the binary C<filename>, and returns it if "
9668 "known."
9669 msgstr ""
9670
9671 # type: textblock
9672 #. type: textblock
9673 #: ../src/guestfs-actions.pod:1562 ../fish/guestfish-actions.pod:1033
9674 msgid "Currently defined architectures are:"
9675 msgstr ""
9676
9677 # type: =item
9678 #. type: =item
9679 #: ../src/guestfs-actions.pod:1566 ../fish/guestfish-actions.pod:1037
9680 msgid "\"i386\""
9681 msgstr ""
9682
9683 # type: textblock
9684 #. type: textblock
9685 #: ../src/guestfs-actions.pod:1568 ../fish/guestfish-actions.pod:1039
9686 msgid ""
9687 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
9688 "irrespective of the precise processor requirements of the binary."
9689 msgstr ""
9690
9691 # type: =item
9692 #. type: =item
9693 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1042
9694 msgid "\"x86_64\""
9695 msgstr ""
9696
9697 # type: textblock
9698 #. type: textblock
9699 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1044
9700 msgid "64 bit x86-64."
9701 msgstr ""
9702
9703 # type: =item
9704 #. type: =item
9705 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1046
9706 msgid "\"sparc\""
9707 msgstr ""
9708
9709 # type: textblock
9710 #. type: textblock
9711 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1048
9712 msgid "32 bit SPARC."
9713 msgstr ""
9714
9715 # type: =item
9716 #. type: =item
9717 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1050
9718 msgid "\"sparc64\""
9719 msgstr ""
9720
9721 # type: textblock
9722 #. type: textblock
9723 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1052
9724 msgid "64 bit SPARC V9 and above."
9725 msgstr ""
9726
9727 # type: =item
9728 #. type: =item
9729 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1054
9730 msgid "\"ia64\""
9731 msgstr ""
9732
9733 # type: textblock
9734 #. type: textblock
9735 #: ../src/guestfs-actions.pod:1585 ../fish/guestfish-actions.pod:1056
9736 msgid "Intel Itanium."
9737 msgstr ""
9738
9739 # type: =item
9740 #. type: =item
9741 #: ../src/guestfs-actions.pod:1587 ../fish/guestfish-actions.pod:1058
9742 msgid "\"ppc\""
9743 msgstr ""
9744
9745 # type: textblock
9746 #. type: textblock
9747 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1060
9748 msgid "32 bit Power PC."
9749 msgstr ""
9750
9751 # type: =item
9752 #. type: =item
9753 #: ../src/guestfs-actions.pod:1591 ../fish/guestfish-actions.pod:1062
9754 msgid "\"ppc64\""
9755 msgstr ""
9756
9757 # type: textblock
9758 #. type: textblock
9759 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1064
9760 msgid "64 bit Power PC."
9761 msgstr ""
9762
9763 # type: textblock
9764 #. type: textblock
9765 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1068
9766 msgid "Libguestfs may return other architecture strings in future."
9767 msgstr ""
9768
9769 # type: textblock
9770 #. type: textblock
9771 #: ../src/guestfs-actions.pod:1599 ../fish/guestfish-actions.pod:1070
9772 msgid "The function works on at least the following types of files:"
9773 msgstr ""
9774
9775 # type: textblock
9776 #. type: textblock
9777 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1076
9778 msgid "many types of Un*x and Linux binary"
9779 msgstr ""
9780
9781 # type: textblock
9782 #. type: textblock
9783 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1080
9784 msgid "many types of Un*x and Linux shared library"
9785 msgstr ""
9786
9787 # type: textblock
9788 #. type: textblock
9789 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1084
9790 msgid "Windows Win32 and Win64 binaries"
9791 msgstr ""
9792
9793 # type: textblock
9794 #. type: textblock
9795 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1088
9796 msgid "Windows Win32 and Win64 DLLs"
9797 msgstr ""
9798
9799 # type: textblock
9800 #. type: textblock
9801 #: ../src/guestfs-actions.pod:1619 ../fish/guestfish-actions.pod:1090
9802 msgid "Win32 binaries and DLLs return C<i386>."
9803 msgstr ""
9804
9805 # type: textblock
9806 #. type: textblock
9807 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1092
9808 msgid "Win64 binaries and DLLs return C<x86_64>."
9809 msgstr ""
9810
9811 # type: textblock
9812 #. type: textblock
9813 #: ../src/guestfs-actions.pod:1625 ../fish/guestfish-actions.pod:1096
9814 msgid "Linux kernel modules"
9815 msgstr ""
9816
9817 # type: textblock
9818 #. type: textblock
9819 #: ../src/guestfs-actions.pod:1629 ../fish/guestfish-actions.pod:1100
9820 msgid "Linux new-style initrd images"
9821 msgstr ""
9822
9823 # type: textblock
9824 #. type: textblock
9825 #: ../src/guestfs-actions.pod:1633 ../fish/guestfish-actions.pod:1104
9826 msgid "some non-x86 Linux vmlinuz kernels"
9827 msgstr ""
9828
9829 # type: textblock
9830 #. type: textblock
9831 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1108
9832 msgid "What it can't do currently:"
9833 msgstr ""
9834
9835 # type: textblock
9836 #. type: textblock
9837 #: ../src/guestfs-actions.pod:1643 ../fish/guestfish-actions.pod:1114
9838 msgid "static libraries (libfoo.a)"
9839 msgstr ""
9840
9841 # type: textblock
9842 #. type: textblock
9843 #: ../src/guestfs-actions.pod:1647 ../fish/guestfish-actions.pod:1118
9844 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9845 msgstr ""
9846
9847 # type: textblock
9848 #. type: textblock
9849 #: ../src/guestfs-actions.pod:1651 ../fish/guestfish-actions.pod:1122
9850 msgid "x86 Linux vmlinuz kernels"
9851 msgstr ""
9852
9853 # type: textblock
9854 #. type: textblock
9855 #: ../src/guestfs-actions.pod:1653 ../fish/guestfish-actions.pod:1124
9856 msgid ""
9857 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
9858 "compressed code, and are horribly hard to unpack.  If you want to find the "
9859 "architecture of a kernel, use the architecture of the associated initrd or "
9860 "kernel module(s) instead."
9861 msgstr ""
9862
9863 # type: textblock
9864 #. type: textblock
9865 #: ../src/guestfs-actions.pod:1663 ../src/guestfs-actions.pod:1826
9866 #: ../src/guestfs-actions.pod:1843 ../src/guestfs-actions.pod:2533
9867 #: ../src/guestfs-actions.pod:2623 ../src/guestfs-actions.pod:2689
9868 #: ../src/guestfs-actions.pod:2876 ../src/guestfs-actions.pod:2894
9869 #: ../src/guestfs-actions.pod:2934 ../src/guestfs-actions.pod:3009
9870 #: ../src/guestfs-actions.pod:3102 ../src/guestfs-actions.pod:3339
9871 #: ../src/guestfs-actions.pod:3471
9872 msgid "(Added in 1.5.3)"
9873 msgstr ""
9874
9875 # type: =head2
9876 #. type: =head2
9877 #: ../src/guestfs-actions.pod:1665
9878 msgid "guestfs_filesize"
9879 msgstr ""
9880
9881 # type: verbatim
9882 #. type: verbatim
9883 #: ../src/guestfs-actions.pod:1667
9884 #, no-wrap
9885 msgid ""
9886 " int64_t\n"
9887 " guestfs_filesize (guestfs_h *g,\n"
9888 "                   const char *file);\n"
9889 "\n"
9890 msgstr ""
9891
9892 # type: textblock
9893 #. type: textblock
9894 #: ../src/guestfs-actions.pod:1671 ../fish/guestfish-actions.pod:1135
9895 msgid "This command returns the size of C<file> in bytes."
9896 msgstr ""
9897
9898 # type: textblock
9899 #. type: textblock
9900 #: ../src/guestfs-actions.pod:1673
9901 msgid ""
9902 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
9903 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
9904 "devices, use C<guestfs_blockdev_getsize64>."
9905 msgstr ""
9906
9907 # type: textblock
9908 #. type: textblock
9909 #: ../src/guestfs-actions.pod:1679
9910 msgid "(Added in 1.0.82)"
9911 msgstr ""
9912
9913 # type: =head2
9914 #. type: =head2
9915 #: ../src/guestfs-actions.pod:1681
9916 msgid "guestfs_fill"
9917 msgstr ""
9918
9919 # type: verbatim
9920 #. type: verbatim
9921 #: ../src/guestfs-actions.pod:1683
9922 #, no-wrap
9923 msgid ""
9924 " int\n"
9925 " guestfs_fill (guestfs_h *g,\n"
9926 "               int c,\n"
9927 "               int len,\n"
9928 "               const char *path);\n"
9929 "\n"
9930 msgstr ""
9931
9932 # type: textblock
9933 #. type: textblock
9934 #: ../src/guestfs-actions.pod:1689 ../fish/guestfish-actions.pod:1145
9935 msgid ""
9936 "This command creates a new file called C<path>.  The initial content of the "
9937 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9938 "[0..255]>."
9939 msgstr ""
9940
9941 # type: textblock
9942 #. type: textblock
9943 #: ../src/guestfs-actions.pod:1693
9944 msgid ""
9945 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9946 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
9947 "bytes use C<guestfs_fill_pattern>."
9948 msgstr ""
9949
9950 # type: textblock
9951 #. type: textblock
9952 #: ../src/guestfs-actions.pod:1705
9953 msgid "(Added in 1.0.79)"
9954 msgstr ""
9955
9956 # type: =head2
9957 #. type: =head2
9958 #: ../src/guestfs-actions.pod:1707
9959 msgid "guestfs_fill_pattern"
9960 msgstr ""
9961
9962 # type: verbatim
9963 #. type: verbatim
9964 #: ../src/guestfs-actions.pod:1709
9965 #, no-wrap
9966 msgid ""
9967 " int\n"
9968 " guestfs_fill_pattern (guestfs_h *g,\n"
9969 "                       const char *pattern,\n"
9970 "                       int len,\n"
9971 "                       const char *path);\n"
9972 "\n"
9973 msgstr ""
9974
9975 # type: textblock
9976 #. type: textblock
9977 #: ../src/guestfs-actions.pod:1715
9978 msgid ""
9979 "This function is like C<guestfs_fill> except that it creates a new file of "
9980 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
9981 "pattern is truncated if necessary to ensure the length of the file is "
9982 "exactly C<len> bytes."
9983 msgstr ""
9984
9985 # type: textblock
9986 #. type: textblock
9987 #: ../src/guestfs-actions.pod:1727
9988 msgid "(Added in 1.3.12)"
9989 msgstr ""
9990
9991 # type: =head2
9992 #. type: =head2
9993 #: ../src/guestfs-actions.pod:1729
9994 msgid "guestfs_find"
9995 msgstr ""
9996
9997 # type: verbatim
9998 #. type: verbatim
9999 #: ../src/guestfs-actions.pod:1731
10000 #, no-wrap
10001 msgid ""
10002 " char **\n"
10003 " guestfs_find (guestfs_h *g,\n"
10004 "               const char *directory);\n"
10005 "\n"
10006 msgstr ""
10007
10008 # type: textblock
10009 #. type: textblock
10010 #: ../src/guestfs-actions.pod:1735 ../fish/guestfish-actions.pod:1167
10011 msgid ""
10012 "This command lists out all files and directories, recursively, starting at "
10013 "C<directory>.  It is essentially equivalent to running the shell command "
10014 "C<find directory -print> but some post-processing happens on the output, "
10015 "described below."
10016 msgstr ""
10017
10018 # type: textblock
10019 #. type: textblock
10020 #: ../src/guestfs-actions.pod:1740 ../fish/guestfish-actions.pod:1172
10021 msgid ""
10022 "This returns a list of strings I<without any prefix>.  Thus if the directory "
10023 "structure was:"
10024 msgstr ""
10025
10026 # type: verbatim
10027 #. type: verbatim
10028 #: ../src/guestfs-actions.pod:1743 ../fish/guestfish-actions.pod:1175
10029 #, no-wrap
10030 msgid ""
10031 " /tmp/a\n"
10032 " /tmp/b\n"
10033 " /tmp/c/d\n"
10034 "\n"
10035 msgstr ""
10036
10037 # type: textblock
10038 #. type: textblock
10039 #: ../src/guestfs-actions.pod:1747
10040 msgid ""
10041 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
10042 msgstr ""
10043
10044 # type: verbatim
10045 #. type: verbatim
10046 #: ../src/guestfs-actions.pod:1750 ../fish/guestfish-actions.pod:1182
10047 #, no-wrap
10048 msgid ""
10049 " a\n"
10050 " b\n"
10051 " c\n"
10052 " c/d\n"
10053 "\n"
10054 msgstr ""
10055
10056 # type: textblock
10057 #. type: textblock
10058 #: ../src/guestfs-actions.pod:1755 ../fish/guestfish-actions.pod:1187
10059 msgid "If C<directory> is not a directory, then this command returns an error."
10060 msgstr ""
10061
10062 # type: textblock
10063 #. type: textblock
10064 #: ../src/guestfs-actions.pod:1758 ../fish/guestfish-actions.pod:1190
10065 msgid "The returned list is sorted."
10066 msgstr ""
10067
10068 # type: textblock
10069 #. type: textblock
10070 #: ../src/guestfs-actions.pod:1760
10071 msgid "See also C<guestfs_find0>."
10072 msgstr ""
10073
10074 # type: textblock
10075 #. type: textblock
10076 #: ../src/guestfs-actions.pod:1769 ../src/guestfs-actions.pod:4206
10077 #: ../src/guestfs-actions.pod:5818
10078 msgid "(Added in 1.0.27)"
10079 msgstr ""
10080
10081 # type: =head2
10082 #. type: =head2
10083 #: ../src/guestfs-actions.pod:1771
10084 msgid "guestfs_find0"
10085 msgstr ""
10086
10087 # type: verbatim
10088 #. type: verbatim
10089 #: ../src/guestfs-actions.pod:1773
10090 #, no-wrap
10091 msgid ""
10092 " int\n"
10093 " guestfs_find0 (guestfs_h *g,\n"
10094 "                const char *directory,\n"
10095 "                const char *files);\n"
10096 "\n"
10097 msgstr ""
10098
10099 # type: textblock
10100 #. type: textblock
10101 #: ../src/guestfs-actions.pod:1778 ../fish/guestfish-actions.pod:1201
10102 msgid ""
10103 "This command lists out all files and directories, recursively, starting at "
10104 "C<directory>, placing the resulting list in the external file called "
10105 "C<files>."
10106 msgstr ""
10107
10108 # type: textblock
10109 #. type: textblock
10110 #: ../src/guestfs-actions.pod:1782
10111 msgid ""
10112 "This command works the same way as C<guestfs_find> with the following "
10113 "exceptions:"
10114 msgstr ""
10115
10116 # type: textblock
10117 #. type: textblock
10118 #: ../src/guestfs-actions.pod:1789 ../fish/guestfish-actions.pod:1212
10119 msgid "The resulting list is written to an external file."
10120 msgstr ""
10121
10122 # type: textblock
10123 #. type: textblock
10124 #: ../src/guestfs-actions.pod:1793 ../fish/guestfish-actions.pod:1216
10125 msgid ""
10126 "Items (filenames) in the result are separated by C<\\0> characters.  See "
10127 "L<find(1)> option I<-print0>."
10128 msgstr ""
10129
10130 # type: textblock
10131 #. type: textblock
10132 #: ../src/guestfs-actions.pod:1798 ../fish/guestfish-actions.pod:1221
10133 msgid "This command is not limited in the number of names that it can return."
10134 msgstr ""
10135
10136 # type: textblock
10137 #. type: textblock
10138 #: ../src/guestfs-actions.pod:1803 ../fish/guestfish-actions.pod:1226
10139 msgid "The result list is not sorted."
10140 msgstr ""
10141
10142 # type: textblock
10143 #. type: textblock
10144 #: ../src/guestfs-actions.pod:1809
10145 msgid "(Added in 1.0.74)"
10146 msgstr ""
10147
10148 # type: =head2
10149 #. type: =head2
10150 #: ../src/guestfs-actions.pod:1811
10151 msgid "guestfs_findfs_label"
10152 msgstr ""
10153
10154 # type: verbatim
10155 #. type: verbatim
10156 #: ../src/guestfs-actions.pod:1813
10157 #, no-wrap
10158 msgid ""
10159 " char *\n"
10160 " guestfs_findfs_label (guestfs_h *g,\n"
10161 "                       const char *label);\n"
10162 "\n"
10163 msgstr ""
10164
10165 # type: textblock
10166 #. type: textblock
10167 #: ../src/guestfs-actions.pod:1817 ../fish/guestfish-actions.pod:1236
10168 msgid ""
10169 "This command searches the filesystems and returns the one which has the "
10170 "given label.  An error is returned if no such filesystem can be found."
10171 msgstr ""
10172
10173 # type: textblock
10174 #. type: textblock
10175 #: ../src/guestfs-actions.pod:1821
10176 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
10177 msgstr ""
10178
10179 # type: =head2
10180 #. type: =head2
10181 #: ../src/guestfs-actions.pod:1828
10182 msgid "guestfs_findfs_uuid"
10183 msgstr ""
10184
10185 # type: verbatim
10186 #. type: verbatim
10187 #: ../src/guestfs-actions.pod:1830
10188 #, no-wrap
10189 msgid ""
10190 " char *\n"
10191 " guestfs_findfs_uuid (guestfs_h *g,\n"
10192 "                      const char *uuid);\n"
10193 "\n"
10194 msgstr ""
10195
10196 # type: textblock
10197 #. type: textblock
10198 #: ../src/guestfs-actions.pod:1834 ../fish/guestfish-actions.pod:1246
10199 msgid ""
10200 "This command searches the filesystems and returns the one which has the "
10201 "given UUID.  An error is returned if no such filesystem can be found."
10202 msgstr ""
10203
10204 # type: textblock
10205 #. type: textblock
10206 #: ../src/guestfs-actions.pod:1838
10207 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
10208 msgstr ""
10209
10210 # type: =head2
10211 #. type: =head2
10212 #: ../src/guestfs-actions.pod:1845
10213 msgid "guestfs_fsck"
10214 msgstr ""
10215
10216 # type: verbatim
10217 #. type: verbatim
10218 #: ../src/guestfs-actions.pod:1847
10219 #, no-wrap
10220 msgid ""
10221 " int\n"
10222 " guestfs_fsck (guestfs_h *g,\n"
10223 "               const char *fstype,\n"
10224 "               const char *device);\n"
10225 "\n"
10226 msgstr ""
10227
10228 # type: textblock
10229 #. type: textblock
10230 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1256
10231 msgid ""
10232 "This runs the filesystem checker (fsck) on C<device> which should have "
10233 "filesystem type C<fstype>."
10234 msgstr ""
10235
10236 # type: textblock
10237 #. type: textblock
10238 #: ../src/guestfs-actions.pod:1855 ../fish/guestfish-actions.pod:1259
10239 msgid ""
10240 "The returned integer is the status.  See L<fsck(8)> for the list of status "
10241 "codes from C<fsck>."
10242 msgstr ""
10243
10244 # type: textblock
10245 #. type: textblock
10246 #: ../src/guestfs-actions.pod:1864 ../fish/guestfish-actions.pod:1268
10247 msgid "Multiple status codes can be summed together."
10248 msgstr ""
10249
10250 # type: textblock
10251 #. type: textblock
10252 #: ../src/guestfs-actions.pod:1868 ../fish/guestfish-actions.pod:1272
10253 msgid ""
10254 "A non-zero return code can mean \"success\", for example if errors have been "
10255 "corrected on the filesystem."
10256 msgstr ""
10257
10258 # type: textblock
10259 #. type: textblock
10260 #: ../src/guestfs-actions.pod:1873 ../fish/guestfish-actions.pod:1277
10261 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
10262 msgstr ""
10263
10264 # type: textblock
10265 #. type: textblock
10266 #: ../src/guestfs-actions.pod:1878 ../fish/guestfish-actions.pod:1282
10267 msgid ""
10268 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
10269 msgstr ""
10270
10271 # type: textblock
10272 #. type: textblock
10273 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:7554
10274 msgid "(Added in 1.0.16)"
10275 msgstr ""
10276
10277 # type: =head2
10278 #. type: =head2
10279 #: ../src/guestfs-actions.pod:1884
10280 msgid "guestfs_get_append"
10281 msgstr ""
10282
10283 # type: verbatim
10284 #. type: verbatim
10285 #: ../src/guestfs-actions.pod:1886
10286 #, no-wrap
10287 msgid ""
10288 " const char *\n"
10289 " guestfs_get_append (guestfs_h *g);\n"
10290 "\n"
10291 msgstr ""
10292
10293 # type: textblock
10294 #. type: textblock
10295 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1288
10296 msgid ""
10297 "Return the additional kernel options which are added to the guest kernel "
10298 "command line."
10299 msgstr ""
10300
10301 # type: textblock
10302 #. type: textblock
10303 #: ../src/guestfs-actions.pod:1892 ../fish/guestfish-actions.pod:1291
10304 msgid "If C<NULL> then no options are added."
10305 msgstr ""
10306
10307 # type: textblock
10308 #. type: textblock
10309 #: ../src/guestfs-actions.pod:1894
10310 msgid ""
10311 "This function returns a string which may be NULL.  There is no way to return "
10312 "an error from this function.  The string is owned by the guest handle and "
10313 "must I<not> be freed."
10314 msgstr ""
10315
10316 # type: textblock
10317 #. type: textblock
10318 #: ../src/guestfs-actions.pod:1898 ../src/guestfs-actions.pod:5496
10319 #: ../src/guestfs-actions.pod:5978 ../src/guestfs-actions.pod:6401
10320 #: ../src/guestfs-actions.pod:6420 ../src/guestfs-actions.pod:6436
10321 #: ../src/guestfs-actions.pod:6460 ../src/guestfs-actions.pod:7217
10322 #: ../src/guestfs-actions.pod:7235 ../src/guestfs-actions.pod:7597
10323 msgid "(Added in 1.0.26)"
10324 msgstr ""
10325
10326 #. type: =head2
10327 #: ../src/guestfs-actions.pod:1900
10328 msgid "guestfs_get_attach_method"
10329 msgstr ""
10330
10331 #. type: verbatim
10332 #: ../src/guestfs-actions.pod:1902
10333 #, no-wrap
10334 msgid ""
10335 " char *\n"
10336 " guestfs_get_attach_method (guestfs_h *g);\n"
10337 "\n"
10338 msgstr ""
10339
10340 #. type: textblock
10341 #: ../src/guestfs-actions.pod:1905
10342 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
10343 msgstr ""
10344
10345 #. type: textblock
10346 #: ../src/guestfs-actions.pod:1910 ../src/guestfs-actions.pod:6008
10347 msgid "(Added in 1.9.8)"
10348 msgstr ""
10349
10350 # type: =head2
10351 #. type: =head2
10352 #: ../src/guestfs-actions.pod:1912
10353 msgid "guestfs_get_autosync"
10354 msgstr ""
10355
10356 # type: verbatim
10357 #. type: verbatim
10358 #: ../src/guestfs-actions.pod:1914
10359 #, no-wrap
10360 msgid ""
10361 " int\n"
10362 " guestfs_get_autosync (guestfs_h *g);\n"
10363 "\n"
10364 msgstr ""
10365
10366 # type: textblock
10367 #. type: textblock
10368 #: ../src/guestfs-actions.pod:1917 ../fish/guestfish-actions.pod:1303
10369 msgid "Get the autosync flag."
10370 msgstr ""
10371
10372 # type: =head2
10373 #. type: =head2
10374 #: ../src/guestfs-actions.pod:1923
10375 msgid "guestfs_get_direct"
10376 msgstr ""
10377
10378 # type: verbatim
10379 #. type: verbatim
10380 #: ../src/guestfs-actions.pod:1925
10381 #, no-wrap
10382 msgid ""
10383 " int\n"
10384 " guestfs_get_direct (guestfs_h *g);\n"
10385 "\n"
10386 msgstr ""
10387
10388 # type: textblock
10389 #. type: textblock
10390 #: ../src/guestfs-actions.pod:1928 ../fish/guestfish-actions.pod:1309
10391 msgid "Return the direct appliance mode flag."
10392 msgstr ""
10393
10394 # type: textblock
10395 #. type: textblock
10396 #: ../src/guestfs-actions.pod:1932 ../src/guestfs-actions.pod:6049
10397 msgid "(Added in 1.0.72)"
10398 msgstr ""
10399
10400 # type: =head2
10401 #. type: =head2
10402 #: ../src/guestfs-actions.pod:1934
10403 msgid "guestfs_get_e2label"
10404 msgstr ""
10405
10406 # type: verbatim
10407 #. type: verbatim
10408 #: ../src/guestfs-actions.pod:1936
10409 #, no-wrap
10410 msgid ""
10411 " char *\n"
10412 " guestfs_get_e2label (guestfs_h *g,\n"
10413 "                      const char *device);\n"
10414 "\n"
10415 msgstr ""
10416
10417 # type: textblock
10418 #. type: textblock
10419 #: ../src/guestfs-actions.pod:1940 ../fish/guestfish-actions.pod:1315
10420 msgid ""
10421 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
10422 msgstr ""
10423
10424 # type: textblock
10425 #. type: textblock
10426 #: ../src/guestfs-actions.pod:1946 ../fish/guestfish-actions.pod:1318
10427 msgid ""
10428 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
10429 msgstr ""
10430
10431 # type: textblock
10432 #. type: textblock
10433 #: ../src/guestfs-actions.pod:1953 ../src/guestfs-actions.pod:1974
10434 #: ../src/guestfs-actions.pod:6067 ../src/guestfs-actions.pod:6086
10435 msgid "(Added in 1.0.15)"
10436 msgstr ""
10437
10438 # type: =head2
10439 #. type: =head2
10440 #: ../src/guestfs-actions.pod:1955
10441 msgid "guestfs_get_e2uuid"
10442 msgstr ""
10443
10444 # type: verbatim
10445 #. type: verbatim
10446 #: ../src/guestfs-actions.pod:1957
10447 #, no-wrap
10448 msgid ""
10449 " char *\n"
10450 " guestfs_get_e2uuid (guestfs_h *g,\n"
10451 "                     const char *device);\n"
10452 "\n"
10453 msgstr ""
10454
10455 # type: textblock
10456 #. type: textblock
10457 #: ../src/guestfs-actions.pod:1961 ../fish/guestfish-actions.pod:1329
10458 msgid ""
10459 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
10460 msgstr ""
10461
10462 # type: textblock
10463 #. type: textblock
10464 #: ../src/guestfs-actions.pod:1967 ../fish/guestfish-actions.pod:1332
10465 msgid ""
10466 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
10467 msgstr ""
10468
10469 # type: =head2
10470 #. type: =head2
10471 #: ../src/guestfs-actions.pod:1976
10472 msgid "guestfs_get_memsize"
10473 msgstr ""
10474
10475 # type: verbatim
10476 #. type: verbatim
10477 #: ../src/guestfs-actions.pod:1978
10478 #, no-wrap
10479 msgid ""
10480 " int\n"
10481 " guestfs_get_memsize (guestfs_h *g);\n"
10482 "\n"
10483 msgstr ""
10484
10485 # type: textblock
10486 #. type: textblock
10487 #: ../src/guestfs-actions.pod:1981 ../fish/guestfish-actions.pod:1343
10488 msgid ""
10489 "This gets the memory size in megabytes allocated to the qemu subprocess."
10490 msgstr ""
10491
10492 # type: textblock
10493 #. type: textblock
10494 #: ../src/guestfs-actions.pod:1984
10495 msgid ""
10496 "If C<guestfs_set_memsize> was not called on this handle, and if "
10497 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
10498 "value for memsize."
10499 msgstr ""
10500
10501 # type: textblock
10502 #. type: textblock
10503 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2069
10504 #: ../src/guestfs-actions.pod:6102 ../src/guestfs-actions.pod:6209
10505 #: ../fish/guestfish-actions.pod:1350 ../fish/guestfish-actions.pod:1401
10506 #: ../fish/guestfish-actions.pod:4053 ../fish/guestfish-actions.pod:4140
10507 msgid ""
10508 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
10509 msgstr ""
10510
10511 # type: textblock
10512 #. type: textblock
10513 #: ../src/guestfs-actions.pod:1993 ../src/guestfs-actions.pod:4497
10514 #: ../src/guestfs-actions.pod:4706 ../src/guestfs-actions.pod:4725
10515 #: ../src/guestfs-actions.pod:4744 ../src/guestfs-actions.pod:4756
10516 #: ../src/guestfs-actions.pod:4773 ../src/guestfs-actions.pod:4786
10517 #: ../src/guestfs-actions.pod:5721 ../src/guestfs-actions.pod:6107
10518 #: ../src/guestfs-actions.pod:6368 ../src/guestfs-actions.pod:6983
10519 msgid "(Added in 1.0.55)"
10520 msgstr ""
10521
10522 # type: =head2
10523 #. type: =head2
10524 #: ../src/guestfs-actions.pod:1995
10525 msgid "guestfs_get_network"
10526 msgstr ""
10527
10528 # type: verbatim
10529 #. type: verbatim
10530 #: ../src/guestfs-actions.pod:1997
10531 #, no-wrap
10532 msgid ""
10533 " int\n"
10534 " guestfs_get_network (guestfs_h *g);\n"
10535 "\n"
10536 msgstr ""
10537
10538 # type: textblock
10539 #. type: textblock
10540 #: ../src/guestfs-actions.pod:2000 ../fish/guestfish-actions.pod:1357
10541 msgid "This returns the enable network flag."
10542 msgstr ""
10543
10544 # type: textblock
10545 #. type: textblock
10546 #: ../src/guestfs-actions.pod:2004 ../src/guestfs-actions.pod:6126
10547 msgid "(Added in 1.5.4)"
10548 msgstr ""
10549
10550 # type: =head2
10551 #. type: =head2
10552 #: ../src/guestfs-actions.pod:2006
10553 msgid "guestfs_get_path"
10554 msgstr ""
10555
10556 # type: verbatim
10557 #. type: verbatim
10558 #: ../src/guestfs-actions.pod:2008
10559 #, no-wrap
10560 msgid ""
10561 " const char *\n"
10562 " guestfs_get_path (guestfs_h *g);\n"
10563 "\n"
10564 msgstr ""
10565
10566 # type: textblock
10567 #. type: textblock
10568 #: ../src/guestfs-actions.pod:2011 ../fish/guestfish-actions.pod:1363
10569 msgid "Return the current search path."
10570 msgstr ""
10571
10572 # type: textblock
10573 #. type: textblock
10574 #: ../src/guestfs-actions.pod:2013 ../fish/guestfish-actions.pod:1365
10575 msgid ""
10576 "This is always non-NULL.  If it wasn't set already, then this will return "
10577 "the default path."
10578 msgstr ""
10579
10580 # type: textblock
10581 #. type: textblock
10582 #: ../src/guestfs-actions.pod:2016 ../src/guestfs-actions.pod:2045
10583 msgid ""
10584 "This function returns a string, or NULL on error.  The string is owned by "
10585 "the guest handle and must I<not> be freed."
10586 msgstr ""
10587
10588 # type: =head2
10589 #. type: =head2
10590 #: ../src/guestfs-actions.pod:2021
10591 msgid "guestfs_get_pid"
10592 msgstr ""
10593
10594 # type: verbatim
10595 #. type: verbatim
10596 #: ../src/guestfs-actions.pod:2023
10597 #, no-wrap
10598 msgid ""
10599 " int\n"
10600 " guestfs_get_pid (guestfs_h *g);\n"
10601 "\n"
10602 msgstr ""
10603
10604 # type: textblock
10605 #. type: textblock
10606 #: ../src/guestfs-actions.pod:2026 ../fish/guestfish-actions.pod:1374
10607 msgid ""
10608 "Return the process ID of the qemu subprocess.  If there is no qemu "
10609 "subprocess, then this will return an error."
10610 msgstr ""
10611
10612 # type: textblock
10613 #. type: textblock
10614 #: ../src/guestfs-actions.pod:2029 ../fish/guestfish-actions.pod:1377
10615 msgid "This is an internal call used for debugging and testing."
10616 msgstr ""
10617
10618 # type: textblock
10619 #. type: textblock
10620 #: ../src/guestfs-actions.pod:2033
10621 msgid "(Added in 1.0.56)"
10622 msgstr ""
10623
10624 # type: =head2
10625 #. type: =head2
10626 #: ../src/guestfs-actions.pod:2035
10627 msgid "guestfs_get_qemu"
10628 msgstr ""
10629
10630 # type: verbatim
10631 #. type: verbatim
10632 #: ../src/guestfs-actions.pod:2037
10633 #, no-wrap
10634 msgid ""
10635 " const char *\n"
10636 " guestfs_get_qemu (guestfs_h *g);\n"
10637 "\n"
10638 msgstr ""
10639
10640 # type: textblock
10641 #. type: textblock
10642 #: ../src/guestfs-actions.pod:2040 ../fish/guestfish-actions.pod:1383
10643 msgid "Return the current qemu binary."
10644 msgstr ""
10645
10646 # type: textblock
10647 #. type: textblock
10648 #: ../src/guestfs-actions.pod:2042 ../fish/guestfish-actions.pod:1385
10649 msgid ""
10650 "This is always non-NULL.  If it wasn't set already, then this will return "
10651 "the default qemu binary name."
10652 msgstr ""
10653
10654 # type: textblock
10655 #. type: textblock
10656 #: ../src/guestfs-actions.pod:2048 ../src/guestfs-actions.pod:6171
10657 msgid "(Added in 1.0.6)"
10658 msgstr ""
10659
10660 # type: =head2
10661 #. type: =head2
10662 #: ../src/guestfs-actions.pod:2050
10663 msgid "guestfs_get_recovery_proc"
10664 msgstr ""
10665
10666 # type: verbatim
10667 #. type: verbatim
10668 #: ../src/guestfs-actions.pod:2052
10669 #, no-wrap
10670 msgid ""
10671 " int\n"
10672 " guestfs_get_recovery_proc (guestfs_h *g);\n"
10673 "\n"
10674 msgstr ""
10675
10676 # type: textblock
10677 #. type: textblock
10678 #: ../src/guestfs-actions.pod:2055 ../fish/guestfish-actions.pod:1392
10679 msgid "Return the recovery process enabled flag."
10680 msgstr ""
10681
10682 # type: textblock
10683 #. type: textblock
10684 #: ../src/guestfs-actions.pod:2059 ../src/guestfs-actions.pod:3593
10685 #: ../src/guestfs-actions.pod:3904 ../src/guestfs-actions.pod:4304
10686 #: ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:5426
10687 #: ../src/guestfs-actions.pod:5769 ../src/guestfs-actions.pod:6195
10688 #: ../src/guestfs-actions.pod:6886 ../src/guestfs-actions.pod:6906
10689 #: ../src/guestfs-actions.pod:7098
10690 msgid "(Added in 1.0.77)"
10691 msgstr ""
10692
10693 # type: =head2
10694 #. type: =head2
10695 #: ../src/guestfs-actions.pod:2061
10696 msgid "guestfs_get_selinux"
10697 msgstr ""
10698
10699 # type: verbatim
10700 #. type: verbatim
10701 #: ../src/guestfs-actions.pod:2063
10702 #, no-wrap
10703 msgid ""
10704 " int\n"
10705 " guestfs_get_selinux (guestfs_h *g);\n"
10706 "\n"
10707 msgstr ""
10708
10709 # type: textblock
10710 #. type: textblock
10711 #: ../src/guestfs-actions.pod:2066
10712 msgid ""
10713 "This returns the current setting of the selinux flag which is passed to the "
10714 "appliance at boot time.  See C<guestfs_set_selinux>."
10715 msgstr ""
10716
10717 # type: textblock
10718 #. type: textblock
10719 #: ../src/guestfs-actions.pod:2074 ../src/guestfs-actions.pod:2137
10720 #: ../src/guestfs-actions.pod:6214 ../src/guestfs-actions.pod:6272
10721 msgid "(Added in 1.0.67)"
10722 msgstr ""
10723
10724 # type: =head2
10725 #. type: =head2
10726 #: ../src/guestfs-actions.pod:2076
10727 msgid "guestfs_get_state"
10728 msgstr ""
10729
10730 # type: verbatim
10731 #. type: verbatim
10732 #: ../src/guestfs-actions.pod:2078
10733 #, no-wrap
10734 msgid ""
10735 " int\n"
10736 " guestfs_get_state (guestfs_h *g);\n"
10737 "\n"
10738 msgstr ""
10739
10740 # type: textblock
10741 #. type: textblock
10742 #: ../src/guestfs-actions.pod:2081 ../fish/guestfish-actions.pod:1408
10743 msgid ""
10744 "This returns the current state as an opaque integer.  This is only useful "
10745 "for printing debug and internal error messages."
10746 msgstr ""
10747
10748 # type: textblock
10749 #. type: textblock
10750 #: ../src/guestfs-actions.pod:2084 ../src/guestfs-actions.pod:3364
10751 #: ../src/guestfs-actions.pod:3393 ../src/guestfs-actions.pod:3454
10752 #: ../src/guestfs-actions.pod:3481 ../fish/guestfish-actions.pod:1411
10753 #: ../fish/guestfish-actions.pod:2331 ../fish/guestfish-actions.pod:2349
10754 #: ../fish/guestfish-actions.pod:2387 ../fish/guestfish-actions.pod:2403
10755 msgid "For more information on states, see L<guestfs(3)>."
10756 msgstr ""
10757
10758 # type: =head2
10759 #. type: =head2
10760 #: ../src/guestfs-actions.pod:2090
10761 msgid "guestfs_get_trace"
10762 msgstr ""
10763
10764 # type: verbatim
10765 #. type: verbatim
10766 #: ../src/guestfs-actions.pod:2092
10767 #, no-wrap
10768 msgid ""
10769 " int\n"
10770 " guestfs_get_trace (guestfs_h *g);\n"
10771 "\n"
10772 msgstr ""
10773
10774 # type: textblock
10775 #. type: textblock
10776 #: ../src/guestfs-actions.pod:2095 ../fish/guestfish-actions.pod:1417
10777 msgid "Return the command trace flag."
10778 msgstr ""
10779
10780 # type: =head2
10781 #. type: =head2
10782 #: ../src/guestfs-actions.pod:2101
10783 msgid "guestfs_get_umask"
10784 msgstr ""
10785
10786 # type: verbatim
10787 #. type: verbatim
10788 #: ../src/guestfs-actions.pod:2103
10789 #, no-wrap
10790 msgid ""
10791 " int\n"
10792 " guestfs_get_umask (guestfs_h *g);\n"
10793 "\n"
10794 msgstr ""
10795
10796 # type: textblock
10797 #. type: textblock
10798 #: ../src/guestfs-actions.pod:2106
10799 msgid ""
10800 "Return the current umask.  By default the umask is C<022> unless it has been "
10801 "set by calling C<guestfs_umask>."
10802 msgstr ""
10803
10804 # type: =head2
10805 #. type: =head2
10806 #: ../src/guestfs-actions.pod:2113
10807 msgid "guestfs_get_verbose"
10808 msgstr ""
10809
10810 # type: verbatim
10811 #. type: verbatim
10812 #: ../src/guestfs-actions.pod:2115
10813 #, no-wrap
10814 msgid ""
10815 " int\n"
10816 " guestfs_get_verbose (guestfs_h *g);\n"
10817 "\n"
10818 msgstr ""
10819
10820 # type: textblock
10821 #. type: textblock
10822 #: ../src/guestfs-actions.pod:2118 ../fish/guestfish-actions.pod:1430
10823 msgid "This returns the verbose messages flag."
10824 msgstr ""
10825
10826 # type: =head2
10827 #. type: =head2
10828 #: ../src/guestfs-actions.pod:2124
10829 msgid "guestfs_getcon"
10830 msgstr ""
10831
10832 # type: verbatim
10833 #. type: verbatim
10834 #: ../src/guestfs-actions.pod:2126
10835 #, no-wrap
10836 msgid ""
10837 " char *\n"
10838 " guestfs_getcon (guestfs_h *g);\n"
10839 "\n"
10840 msgstr ""
10841
10842 # type: textblock
10843 #. type: textblock
10844 #: ../src/guestfs-actions.pod:2129 ../fish/guestfish-actions.pod:1436
10845 msgid "This gets the SELinux security context of the daemon."
10846 msgstr ""
10847
10848 # type: textblock
10849 #. type: textblock
10850 #: ../src/guestfs-actions.pod:2131
10851 msgid ""
10852 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
10853 msgstr ""
10854
10855 # type: =head2
10856 #. type: =head2
10857 #: ../src/guestfs-actions.pod:2139
10858 msgid "guestfs_getxattr"
10859 msgstr ""
10860
10861 # type: verbatim
10862 #. type: verbatim
10863 #: ../src/guestfs-actions.pod:2141
10864 #, no-wrap
10865 msgid ""
10866 " char *\n"
10867 " guestfs_getxattr (guestfs_h *g,\n"
10868 "                   const char *path,\n"
10869 "                   const char *name,\n"
10870 "                   size_t *size_r);\n"
10871 "\n"
10872 msgstr ""
10873
10874 # type: textblock
10875 #. type: textblock
10876 #: ../src/guestfs-actions.pod:2147
10877 msgid ""
10878 "Get a single extended attribute from file C<path> named C<name>.  This call "
10879 "follows symlinks.  If you want to lookup an extended attribute for the "
10880 "symlink itself, use C<guestfs_lgetxattr>."
10881 msgstr ""
10882
10883 # type: textblock
10884 #. type: textblock
10885 #: ../src/guestfs-actions.pod:2151 ../src/guestfs-actions.pod:3607
10886 msgid ""
10887 "Normally it is better to get all extended attributes from a file in one go "
10888 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
10889 "implementations are buggy and do not provide a way to list out attributes.  "
10890 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
10891 "extended attributes you want in advance and call this function."
10892 msgstr ""
10893
10894 # type: textblock
10895 #. type: textblock
10896 #: ../src/guestfs-actions.pod:2158 ../src/guestfs-actions.pod:3614
10897 #: ../fish/guestfish-actions.pod:1456 ../fish/guestfish-actions.pod:2483
10898 msgid ""
10899 "Extended attribute values are blobs of binary data.  If there is no extended "
10900 "attribute named C<name>, this returns an error."
10901 msgstr ""
10902
10903 # type: textblock
10904 #. type: textblock
10905 #: ../src/guestfs-actions.pod:2161
10906 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
10907 msgstr ""
10908
10909 # type: textblock
10910 #. type: textblock
10911 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:2354
10912 #: ../src/guestfs-actions.pod:2824 ../src/guestfs-actions.pod:3619
10913 #: ../src/guestfs-actions.pod:5419 ../src/guestfs-actions.pod:5445
10914 #: ../src/guestfs-actions.pod:5626
10915 msgid ""
10916 "This function returns a buffer, or NULL on error.  The size of the returned "
10917 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
10918 "after use>."
10919 msgstr ""
10920
10921 #. type: textblock
10922 #: ../src/guestfs-actions.pod:2167 ../src/guestfs-actions.pod:3623
10923 msgid "(Added in 1.7.24)"
10924 msgstr ""
10925
10926 # type: =head2
10927 #. type: =head2
10928 #: ../src/guestfs-actions.pod:2169
10929 msgid "guestfs_getxattrs"
10930 msgstr ""
10931
10932 # type: verbatim
10933 #. type: verbatim
10934 #: ../src/guestfs-actions.pod:2171
10935 #, no-wrap
10936 msgid ""
10937 " struct guestfs_xattr_list *\n"
10938 " guestfs_getxattrs (guestfs_h *g,\n"
10939 "                    const char *path);\n"
10940 "\n"
10941 msgstr ""
10942
10943 # type: textblock
10944 #. type: textblock
10945 #: ../src/guestfs-actions.pod:2175 ../fish/guestfish-actions.pod:1465
10946 msgid ""
10947 "This call lists the extended attributes of the file or directory C<path>."
10948 msgstr ""
10949
10950 # type: textblock
10951 #. type: textblock
10952 #: ../src/guestfs-actions.pod:2178 ../fish/guestfish-actions.pod:1468
10953 msgid ""
10954 "At the system call level, this is a combination of the L<listxattr(2)> and "
10955 "L<getxattr(2)> calls."
10956 msgstr ""
10957
10958 # type: textblock
10959 #. type: textblock
10960 #: ../src/guestfs-actions.pod:2181
10961 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
10962 msgstr ""
10963
10964 # type: textblock
10965 #. type: textblock
10966 #: ../src/guestfs-actions.pod:2183 ../src/guestfs-actions.pod:3635
10967 #: ../src/guestfs-actions.pod:4300
10968 msgid ""
10969 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
10970 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
10971 msgstr ""
10972
10973 # type: textblock
10974 #. type: textblock
10975 #: ../src/guestfs-actions.pod:2187 ../src/guestfs-actions.pod:3639
10976 #: ../src/guestfs-actions.pod:3818 ../src/guestfs-actions.pod:3854
10977 #: ../src/guestfs-actions.pod:5799 ../src/guestfs-actions.pod:6291
10978 #: ../src/guestfs-actions.pod:7662
10979 msgid "(Added in 1.0.59)"
10980 msgstr ""
10981
10982 # type: =head2
10983 #. type: =head2
10984 #: ../src/guestfs-actions.pod:2189
10985 msgid "guestfs_glob_expand"
10986 msgstr ""
10987
10988 # type: verbatim
10989 #. type: verbatim
10990 #: ../src/guestfs-actions.pod:2191
10991 #, no-wrap
10992 msgid ""
10993 " char **\n"
10994 " guestfs_glob_expand (guestfs_h *g,\n"
10995 "                      const char *pattern);\n"
10996 "\n"
10997 msgstr ""
10998
10999 # type: textblock
11000 #. type: textblock
11001 #: ../src/guestfs-actions.pod:2195 ../fish/guestfish-actions.pod:1477
11002 msgid ""
11003 "This command searches for all the pathnames matching C<pattern> according to "
11004 "the wildcard expansion rules used by the shell."
11005 msgstr ""
11006
11007 # type: textblock
11008 #. type: textblock
11009 #: ../src/guestfs-actions.pod:2199 ../fish/guestfish-actions.pod:1481
11010 msgid ""
11011 "If no paths match, then this returns an empty list (note: not an error)."
11012 msgstr ""
11013
11014 # type: textblock
11015 #. type: textblock
11016 #: ../src/guestfs-actions.pod:2202 ../fish/guestfish-actions.pod:1484
11017 msgid ""
11018 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
11019 "GLOB_BRACE>.  See that manual page for more details."
11020 msgstr ""
11021
11022 # type: textblock
11023 #. type: textblock
11024 #: ../src/guestfs-actions.pod:2210 ../src/guestfs-actions.pod:6484
11025 #: ../src/guestfs-actions.pod:6501
11026 msgid "(Added in 1.0.50)"
11027 msgstr ""
11028
11029 # type: =head2
11030 #. type: =head2
11031 #: ../src/guestfs-actions.pod:2212
11032 msgid "guestfs_grep"
11033 msgstr ""
11034
11035 # type: verbatim
11036 #. type: verbatim
11037 #: ../src/guestfs-actions.pod:2214
11038 #, no-wrap
11039 msgid ""
11040 " char **\n"
11041 " guestfs_grep (guestfs_h *g,\n"
11042 "               const char *regex,\n"
11043 "               const char *path);\n"
11044 "\n"
11045 msgstr ""
11046
11047 # type: textblock
11048 #. type: textblock
11049 #: ../src/guestfs-actions.pod:2219 ../fish/guestfish-actions.pod:1492
11050 msgid "This calls the external C<grep> program and returns the matching lines."
11051 msgstr ""
11052
11053 # type: =head2
11054 #. type: =head2
11055 #: ../src/guestfs-actions.pod:2231
11056 msgid "guestfs_grepi"
11057 msgstr ""
11058
11059 # type: verbatim
11060 #. type: verbatim
11061 #: ../src/guestfs-actions.pod:2233
11062 #, no-wrap
11063 msgid ""
11064 " char **\n"
11065 " guestfs_grepi (guestfs_h *g,\n"
11066 "                const char *regex,\n"
11067 "                const char *path);\n"
11068 "\n"
11069 msgstr ""
11070
11071 # type: textblock
11072 #. type: textblock
11073 #: ../src/guestfs-actions.pod:2238 ../fish/guestfish-actions.pod:1502
11074 msgid ""
11075 "This calls the external C<grep -i> program and returns the matching lines."
11076 msgstr ""
11077
11078 # type: =head2
11079 #. type: =head2
11080 #: ../src/guestfs-actions.pod:2250
11081 msgid "guestfs_grub_install"
11082 msgstr ""
11083
11084 # type: verbatim
11085 #. type: verbatim
11086 #: ../src/guestfs-actions.pod:2252
11087 #, no-wrap
11088 msgid ""
11089 " int\n"
11090 " guestfs_grub_install (guestfs_h *g,\n"
11091 "                       const char *root,\n"
11092 "                       const char *device);\n"
11093 "\n"
11094 msgstr ""
11095
11096 # type: textblock
11097 #. type: textblock
11098 #: ../src/guestfs-actions.pod:2257 ../fish/guestfish-actions.pod:1512
11099 msgid ""
11100 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
11101 "the root directory being C<root>."
11102 msgstr ""
11103
11104 # type: textblock
11105 #. type: textblock
11106 #: ../src/guestfs-actions.pod:2260 ../fish/guestfish-actions.pod:1515
11107 msgid ""
11108 "Note: If grub-install reports the error \"No suitable drive was found in the "
11109 "generated device map.\" it may be that you need to create a C</boot/grub/"
11110 "device.map> file first that contains the mapping between grub device names "
11111 "and Linux device names.  It is usually sufficient to create a file "
11112 "containing:"
11113 msgstr ""
11114
11115 # type: verbatim
11116 #. type: verbatim
11117 #: ../src/guestfs-actions.pod:2267 ../fish/guestfish-actions.pod:1522
11118 #, no-wrap
11119 msgid ""
11120 " (hd0) /dev/vda\n"
11121 "\n"
11122 msgstr ""
11123
11124 # type: textblock
11125 #. type: textblock
11126 #: ../src/guestfs-actions.pod:2269 ../fish/guestfish-actions.pod:1524
11127 msgid "replacing C</dev/vda> with the name of the installation device."
11128 msgstr ""
11129
11130 # type: textblock
11131 #. type: textblock
11132 #: ../src/guestfs-actions.pod:2273
11133 msgid "(Added in 1.0.17)"
11134 msgstr ""
11135
11136 # type: =head2
11137 #. type: =head2
11138 #: ../src/guestfs-actions.pod:2275
11139 msgid "guestfs_head"
11140 msgstr ""
11141
11142 # type: verbatim
11143 #. type: verbatim
11144 #: ../src/guestfs-actions.pod:2277
11145 #, no-wrap
11146 msgid ""
11147 " char **\n"
11148 " guestfs_head (guestfs_h *g,\n"
11149 "               const char *path);\n"
11150 "\n"
11151 msgstr ""
11152
11153 # type: textblock
11154 #. type: textblock
11155 #: ../src/guestfs-actions.pod:2281 ../fish/guestfish-actions.pod:1530
11156 msgid ""
11157 "This command returns up to the first 10 lines of a file as a list of strings."
11158 msgstr ""
11159
11160 # type: =head2
11161 #. type: =head2
11162 #: ../src/guestfs-actions.pod:2293
11163 msgid "guestfs_head_n"
11164 msgstr ""
11165
11166 # type: verbatim
11167 #. type: verbatim
11168 #: ../src/guestfs-actions.pod:2295
11169 #, no-wrap
11170 msgid ""
11171 " char **\n"
11172 " guestfs_head_n (guestfs_h *g,\n"
11173 "                 int nrlines,\n"
11174 "                 const char *path);\n"
11175 "\n"
11176 msgstr ""
11177
11178 # type: textblock
11179 #. type: textblock
11180 #: ../src/guestfs-actions.pod:2300 ../fish/guestfish-actions.pod:1540
11181 msgid ""
11182 "If the parameter C<nrlines> is a positive number, this returns the first "
11183 "C<nrlines> lines of the file C<path>."
11184 msgstr ""
11185
11186 # type: textblock
11187 #. type: textblock
11188 #: ../src/guestfs-actions.pod:2303 ../fish/guestfish-actions.pod:1543
11189 msgid ""
11190 "If the parameter C<nrlines> is a negative number, this returns lines from "
11191 "the file C<path>, excluding the last C<nrlines> lines."
11192 msgstr ""
11193
11194 # type: textblock
11195 #. type: textblock
11196 #: ../src/guestfs-actions.pod:2306 ../src/guestfs-actions.pod:6781
11197 #: ../fish/guestfish-actions.pod:1546 ../fish/guestfish-actions.pod:4518
11198 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
11199 msgstr ""
11200
11201 # type: =head2
11202 #. type: =head2
11203 #: ../src/guestfs-actions.pod:2317
11204 msgid "guestfs_hexdump"
11205 msgstr ""
11206
11207 # type: verbatim
11208 #. type: verbatim
11209 #: ../src/guestfs-actions.pod:2319
11210 #, no-wrap
11211 msgid ""
11212 " char *\n"
11213 " guestfs_hexdump (guestfs_h *g,\n"
11214 "                  const char *path);\n"
11215 "\n"
11216 msgstr ""
11217
11218 # type: textblock
11219 #. type: textblock
11220 #: ../src/guestfs-actions.pod:2323 ../fish/guestfish-actions.pod:1555
11221 msgid ""
11222 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
11223 "readable, canonical hex dump of the file."
11224 msgstr ""
11225
11226 # type: textblock
11227 #. type: textblock
11228 #: ../src/guestfs-actions.pod:2332 ../src/guestfs-actions.pod:6565
11229 #: ../src/guestfs-actions.pod:6620
11230 msgid "(Added in 1.0.22)"
11231 msgstr ""
11232
11233 # type: =head2
11234 #. type: =head2
11235 #: ../src/guestfs-actions.pod:2334
11236 msgid "guestfs_initrd_cat"
11237 msgstr ""
11238
11239 # type: verbatim
11240 #. type: verbatim
11241 #: ../src/guestfs-actions.pod:2336
11242 #, no-wrap
11243 msgid ""
11244 " char *\n"
11245 " guestfs_initrd_cat (guestfs_h *g,\n"
11246 "                     const char *initrdpath,\n"
11247 "                     const char *filename,\n"
11248 "                     size_t *size_r);\n"
11249 "\n"
11250 msgstr ""
11251
11252 # type: textblock
11253 #. type: textblock
11254 #: ../src/guestfs-actions.pod:2342 ../fish/guestfish-actions.pod:1565
11255 msgid ""
11256 "This command unpacks the file C<filename> from the initrd file called "
11257 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
11258 "character."
11259 msgstr ""
11260
11261 # type: textblock
11262 #. type: textblock
11263 #: ../src/guestfs-actions.pod:2346 ../fish/guestfish-actions.pod:1569
11264 msgid ""
11265 "For example, in guestfish you could use the following command to examine the "
11266 "boot script (usually called C</init>)  contained in a Linux initrd or "
11267 "initramfs image:"
11268 msgstr ""
11269
11270 # type: verbatim
11271 #. type: verbatim
11272 #: ../src/guestfs-actions.pod:2350 ../fish/guestfish-actions.pod:1573
11273 #, no-wrap
11274 msgid ""
11275 " initrd-cat /boot/initrd-<version>.img init\n"
11276 "\n"
11277 msgstr ""
11278
11279 # type: textblock
11280 #. type: textblock
11281 #: ../src/guestfs-actions.pod:2352
11282 msgid "See also C<guestfs_initrd_list>."
11283 msgstr ""
11284
11285 # type: =head2
11286 #. type: =head2
11287 #: ../src/guestfs-actions.pod:2363
11288 msgid "guestfs_initrd_list"
11289 msgstr ""
11290
11291 # type: verbatim
11292 #. type: verbatim
11293 #: ../src/guestfs-actions.pod:2365
11294 #, no-wrap
11295 msgid ""
11296 " char **\n"
11297 " guestfs_initrd_list (guestfs_h *g,\n"
11298 "                      const char *path);\n"
11299 "\n"
11300 msgstr ""
11301
11302 # type: textblock
11303 #. type: textblock
11304 #: ../src/guestfs-actions.pod:2369 ../fish/guestfish-actions.pod:1584
11305 msgid "This command lists out files contained in an initrd."
11306 msgstr ""
11307
11308 # type: textblock
11309 #. type: textblock
11310 #: ../src/guestfs-actions.pod:2371 ../fish/guestfish-actions.pod:1586
11311 msgid ""
11312 "The files are listed without any initial C</> character.  The files are "
11313 "listed in the order they appear (not necessarily alphabetical).  Directory "
11314 "names are listed as separate items."
11315 msgstr ""
11316
11317 # type: textblock
11318 #. type: textblock
11319 #: ../src/guestfs-actions.pod:2375 ../fish/guestfish-actions.pod:1590
11320 msgid ""
11321 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
11322 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
11323 "files)."
11324 msgstr ""
11325
11326 # type: =head2
11327 #. type: =head2
11328 #: ../src/guestfs-actions.pod:2385
11329 msgid "guestfs_inotify_add_watch"
11330 msgstr ""
11331
11332 # type: verbatim
11333 #. type: verbatim
11334 #: ../src/guestfs-actions.pod:2387
11335 #, no-wrap
11336 msgid ""
11337 " int64_t\n"
11338 " guestfs_inotify_add_watch (guestfs_h *g,\n"
11339 "                            const char *path,\n"
11340 "                            int mask);\n"
11341 "\n"
11342 msgstr ""
11343
11344 # type: textblock
11345 #. type: textblock
11346 #: ../src/guestfs-actions.pod:2392 ../fish/guestfish-actions.pod:1598
11347 msgid "Watch C<path> for the events listed in C<mask>."
11348 msgstr ""
11349
11350 # type: textblock
11351 #. type: textblock
11352 #: ../src/guestfs-actions.pod:2394 ../fish/guestfish-actions.pod:1600
11353 msgid ""
11354 "Note that if C<path> is a directory then events within that directory are "
11355 "watched, but this does I<not> happen recursively (in subdirectories)."
11356 msgstr ""
11357
11358 # type: textblock
11359 #. type: textblock
11360 #: ../src/guestfs-actions.pod:2398 ../fish/guestfish-actions.pod:1604
11361 msgid ""
11362 "Note for non-C or non-Linux callers: the inotify events are defined by the "
11363 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
11364 msgstr ""
11365
11366 # type: =head2
11367 #. type: =head2
11368 #: ../src/guestfs-actions.pod:2406
11369 msgid "guestfs_inotify_close"
11370 msgstr ""
11371
11372 # type: verbatim
11373 #. type: verbatim
11374 #: ../src/guestfs-actions.pod:2408
11375 #, no-wrap
11376 msgid ""
11377 " int\n"
11378 " guestfs_inotify_close (guestfs_h *g);\n"
11379 "\n"
11380 msgstr ""
11381
11382 # type: textblock
11383 #. type: textblock
11384 #: ../src/guestfs-actions.pod:2411 ../fish/guestfish-actions.pod:1612
11385 msgid ""
11386 "This closes the inotify handle which was previously opened by inotify_init.  "
11387 "It removes all watches, throws away any pending events, and deallocates all "
11388 "resources."
11389 msgstr ""
11390
11391 # type: =head2
11392 #. type: =head2
11393 #: ../src/guestfs-actions.pod:2419
11394 msgid "guestfs_inotify_files"
11395 msgstr ""
11396
11397 # type: verbatim
11398 #. type: verbatim
11399 #: ../src/guestfs-actions.pod:2421
11400 #, no-wrap
11401 msgid ""
11402 " char **\n"
11403 " guestfs_inotify_files (guestfs_h *g);\n"
11404 "\n"
11405 msgstr ""
11406
11407 # type: textblock
11408 #. type: textblock
11409 #: ../src/guestfs-actions.pod:2424
11410 msgid ""
11411 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
11412 "returns a list of pathnames of objects that were touched.  The returned "
11413 "pathnames are sorted and deduplicated."
11414 msgstr ""
11415
11416 # type: =head2
11417 #. type: =head2
11418 #: ../src/guestfs-actions.pod:2434
11419 msgid "guestfs_inotify_init"
11420 msgstr ""
11421
11422 # type: verbatim
11423 #. type: verbatim
11424 #: ../src/guestfs-actions.pod:2436
11425 #, no-wrap
11426 msgid ""
11427 " int\n"
11428 " guestfs_inotify_init (guestfs_h *g,\n"
11429 "                       int maxevents);\n"
11430 "\n"
11431 msgstr ""
11432
11433 # type: textblock
11434 #. type: textblock
11435 #: ../src/guestfs-actions.pod:2440 ../fish/guestfish-actions.pod:1628
11436 msgid ""
11437 "This command creates a new inotify handle.  The inotify subsystem can be "
11438 "used to notify events which happen to objects in the guest filesystem."
11439 msgstr ""
11440
11441 # type: textblock
11442 #. type: textblock
11443 #: ../src/guestfs-actions.pod:2444
11444 msgid ""
11445 "C<maxevents> is the maximum number of events which will be queued up between "
11446 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
11447 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
11448 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
11449 "throws away events, but records the fact that it threw them away by setting "
11450 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
11451 "C<guestfs_inotify_read>)."
11452 msgstr ""
11453
11454 # type: textblock
11455 #. type: textblock
11456 #: ../src/guestfs-actions.pod:2454
11457 msgid ""
11458 "Before any events are generated, you have to add some watches to the "
11459 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
11460 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
11461 msgstr ""
11462
11463 # type: textblock
11464 #. type: textblock
11465 #: ../src/guestfs-actions.pod:2460
11466 msgid ""
11467 "Queued up events should be read periodically by calling "
11468 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
11469 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
11470 "often enough then you risk the internal queue overflowing."
11471 msgstr ""
11472
11473 # type: textblock
11474 #. type: textblock
11475 #: ../src/guestfs-actions.pod:2467
11476 msgid ""
11477 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
11478 "This also removes any watches automatically."
11479 msgstr ""
11480
11481 # type: textblock
11482 #. type: textblock
11483 #: ../src/guestfs-actions.pod:2471 ../fish/guestfish-actions.pod:1659
11484 msgid ""
11485 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
11486 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
11487 "that there is one global inotify handle per libguestfs instance."
11488 msgstr ""
11489
11490 # type: =head2
11491 #. type: =head2
11492 #: ../src/guestfs-actions.pod:2480
11493 msgid "guestfs_inotify_read"
11494 msgstr ""
11495
11496 # type: verbatim
11497 #. type: verbatim
11498 #: ../src/guestfs-actions.pod:2482
11499 #, no-wrap
11500 msgid ""
11501 " struct guestfs_inotify_event_list *\n"
11502 " guestfs_inotify_read (guestfs_h *g);\n"
11503 "\n"
11504 msgstr ""
11505
11506 # type: textblock
11507 #. type: textblock
11508 #: ../src/guestfs-actions.pod:2485 ../fish/guestfish-actions.pod:1668
11509 msgid ""
11510 "Return the complete queue of events that have happened since the previous "
11511 "read call."
11512 msgstr ""
11513
11514 # type: textblock
11515 #. type: textblock
11516 #: ../src/guestfs-actions.pod:2488 ../fish/guestfish-actions.pod:1671
11517 msgid "If no events have happened, this returns an empty list."
11518 msgstr ""
11519
11520 # type: textblock
11521 #. type: textblock
11522 #: ../src/guestfs-actions.pod:2490 ../fish/guestfish-actions.pod:1673
11523 msgid ""
11524 "I<Note>: In order to make sure that all events have been read, you must call "
11525 "this function repeatedly until it returns an empty list.  The reason is that "
11526 "the call will read events up to the maximum appliance-to-host message size "
11527 "and leave remaining events in the queue."
11528 msgstr ""
11529
11530 # type: textblock
11531 #. type: textblock
11532 #: ../src/guestfs-actions.pod:2496
11533 msgid ""
11534 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
11535 "there was an error.  I<The caller must call "
11536 "C<guestfs_free_inotify_event_list> after use>."
11537 msgstr ""
11538
11539 # type: =head2
11540 #. type: =head2
11541 #: ../src/guestfs-actions.pod:2502
11542 msgid "guestfs_inotify_rm_watch"
11543 msgstr ""
11544
11545 # type: verbatim
11546 #. type: verbatim
11547 #: ../src/guestfs-actions.pod:2504
11548 #, no-wrap
11549 msgid ""
11550 " int\n"
11551 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
11552 "                           int wd);\n"
11553 "\n"
11554 msgstr ""
11555
11556 # type: textblock
11557 #. type: textblock
11558 #: ../src/guestfs-actions.pod:2508
11559 msgid ""
11560 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
11561 msgstr ""
11562
11563 # type: =head2
11564 #. type: =head2
11565 #: ../src/guestfs-actions.pod:2515
11566 msgid "guestfs_inspect_get_arch"
11567 msgstr ""
11568
11569 # type: verbatim
11570 #. type: verbatim
11571 #: ../src/guestfs-actions.pod:2517
11572 #, no-wrap
11573 msgid ""
11574 " char *\n"
11575 " guestfs_inspect_get_arch (guestfs_h *g,\n"
11576 "                           const char *root);\n"
11577 "\n"
11578 msgstr ""
11579
11580 # type: textblock
11581 #. type: textblock
11582 #: ../src/guestfs-actions.pod:2521
11583 msgid ""
11584 "This returns the architecture of the inspected operating system.  The "
11585 "possible return values are listed under C<guestfs_file_architecture>."
11586 msgstr ""
11587
11588 # type: textblock
11589 #. type: textblock
11590 #: ../src/guestfs-actions.pod:2525 ../fish/guestfish-actions.pod:1694
11591 msgid ""
11592 "If the architecture could not be determined, then the string C<unknown> is "
11593 "returned."
11594 msgstr ""
11595
11596 # type: textblock
11597 #. type: textblock
11598 #: ../src/guestfs-actions.pod:2528 ../src/guestfs-actions.pod:2618
11599 #: ../src/guestfs-actions.pod:2722 ../src/guestfs-actions.pod:2741
11600 #: ../src/guestfs-actions.pod:2872 ../src/guestfs-actions.pod:2955
11601 #: ../src/guestfs-actions.pod:2983 ../src/guestfs-actions.pod:3004
11602 #: ../src/guestfs-actions.pod:3057 ../src/guestfs-actions.pod:3097
11603 #: ../src/guestfs-actions.pod:3117 ../src/guestfs-actions.pod:3137
11604 #: ../src/guestfs-actions.pod:3154 ../src/guestfs-actions.pod:3170
11605 #: ../src/guestfs-actions.pod:3188 ../src/guestfs-actions.pod:3290
11606 #: ../src/guestfs-actions.pod:3331 ../fish/guestfish-actions.pod:1697
11607 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1859
11608 #: ../fish/guestfish-actions.pod:1871 ../fish/guestfish-actions.pod:1955
11609 #: ../fish/guestfish-actions.pod:2016 ../fish/guestfish-actions.pod:2037
11610 #: ../fish/guestfish-actions.pod:2051 ../fish/guestfish-actions.pod:2091
11611 #: ../fish/guestfish-actions.pod:2123 ../fish/guestfish-actions.pod:2136
11612 #: ../fish/guestfish-actions.pod:2149 ../fish/guestfish-actions.pod:2159
11613 #: ../fish/guestfish-actions.pod:2169 ../fish/guestfish-actions.pod:2181
11614 #: ../fish/guestfish-actions.pod:2277 ../fish/guestfish-actions.pod:2311
11615 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
11616 msgstr ""
11617
11618 # type: =head2
11619 #. type: =head2
11620 #: ../src/guestfs-actions.pod:2535
11621 msgid "guestfs_inspect_get_distro"
11622 msgstr ""
11623
11624 # type: verbatim
11625 #. type: verbatim
11626 #: ../src/guestfs-actions.pod:2537
11627 #, no-wrap
11628 msgid ""
11629 " char *\n"
11630 " guestfs_inspect_get_distro (guestfs_h *g,\n"
11631 "                             const char *root);\n"
11632 "\n"
11633 msgstr ""
11634
11635 # type: textblock
11636 #. type: textblock
11637 #: ../src/guestfs-actions.pod:2541 ../fish/guestfish-actions.pod:1703
11638 msgid ""
11639 "This returns the distro (distribution) of the inspected operating system."
11640 msgstr ""
11641
11642 # type: textblock
11643 #. type: textblock
11644 #: ../src/guestfs-actions.pod:2544 ../fish/guestfish-actions.pod:1706
11645 msgid "Currently defined distros are:"
11646 msgstr ""
11647
11648 # type: =item
11649 #. type: =item
11650 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1710
11651 msgid "\"archlinux\""
11652 msgstr ""
11653
11654 # type: textblock
11655 #. type: textblock
11656 #: ../src/guestfs-actions.pod:2550 ../fish/guestfish-actions.pod:1712
11657 msgid "Arch Linux."
11658 msgstr ""
11659
11660 #. type: =item
11661 #: ../src/guestfs-actions.pod:2552 ../fish/guestfish-actions.pod:1714
11662 msgid "\"centos\""
11663 msgstr ""
11664
11665 #. type: textblock
11666 #: ../src/guestfs-actions.pod:2554 ../fish/guestfish-actions.pod:1716
11667 msgid "CentOS."
11668 msgstr ""
11669
11670 # type: =item
11671 #. type: =item
11672 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:1718
11673 msgid "\"debian\""
11674 msgstr ""
11675
11676 # type: textblock
11677 #. type: textblock
11678 #: ../src/guestfs-actions.pod:2558 ../fish/guestfish-actions.pod:1720
11679 msgid "Debian."
11680 msgstr ""
11681
11682 # type: =item
11683 #. type: =item
11684 #: ../src/guestfs-actions.pod:2560 ../fish/guestfish-actions.pod:1722
11685 msgid "\"fedora\""
11686 msgstr ""
11687
11688 # type: textblock
11689 #. type: textblock
11690 #: ../src/guestfs-actions.pod:2562 ../fish/guestfish-actions.pod:1724
11691 msgid "Fedora."
11692 msgstr ""
11693
11694 # type: =item
11695 #. type: =item
11696 #: ../src/guestfs-actions.pod:2564 ../fish/guestfish-actions.pod:1726
11697 msgid "\"gentoo\""
11698 msgstr ""
11699
11700 # type: textblock
11701 #. type: textblock
11702 #: ../src/guestfs-actions.pod:2566 ../fish/guestfish-actions.pod:1728
11703 msgid "Gentoo."
11704 msgstr ""
11705
11706 # type: =item
11707 #. type: =item
11708 #: ../src/guestfs-actions.pod:2568 ../fish/guestfish-actions.pod:1730
11709 msgid "\"linuxmint\""
11710 msgstr ""
11711
11712 # type: textblock
11713 #. type: textblock
11714 #: ../src/guestfs-actions.pod:2570 ../fish/guestfish-actions.pod:1732
11715 msgid "Linux Mint."
11716 msgstr ""
11717
11718 # type: =item
11719 #. type: =item
11720 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:1734
11721 msgid "\"mandriva\""
11722 msgstr ""
11723
11724 # type: textblock
11725 #. type: textblock
11726 #: ../src/guestfs-actions.pod:2574 ../fish/guestfish-actions.pod:1736
11727 msgid "Mandriva."
11728 msgstr ""
11729
11730 # type: =item
11731 #. type: =item
11732 #: ../src/guestfs-actions.pod:2576 ../fish/guestfish-actions.pod:1738
11733 msgid "\"meego\""
11734 msgstr ""
11735
11736 # type: textblock
11737 #. type: textblock
11738 #: ../src/guestfs-actions.pod:2578 ../fish/guestfish-actions.pod:1740
11739 msgid "MeeGo."
11740 msgstr ""
11741
11742 # type: =item
11743 #. type: =item
11744 #: ../src/guestfs-actions.pod:2580 ../fish/guestfish-actions.pod:1742
11745 msgid "\"pardus\""
11746 msgstr ""
11747
11748 # type: textblock
11749 #. type: textblock
11750 #: ../src/guestfs-actions.pod:2582 ../fish/guestfish-actions.pod:1744
11751 msgid "Pardus."
11752 msgstr ""
11753
11754 # type: =item
11755 #. type: =item
11756 #: ../src/guestfs-actions.pod:2584 ../fish/guestfish-actions.pod:1746
11757 msgid "\"redhat-based\""
11758 msgstr ""
11759
11760 # type: textblock
11761 #. type: textblock
11762 #: ../src/guestfs-actions.pod:2586 ../fish/guestfish-actions.pod:1748
11763 msgid "Some Red Hat-derived distro."
11764 msgstr ""
11765
11766 # type: =item
11767 #. type: =item
11768 #: ../src/guestfs-actions.pod:2588 ../fish/guestfish-actions.pod:1750
11769 msgid "\"rhel\""
11770 msgstr ""
11771
11772 #. type: textblock
11773 #: ../src/guestfs-actions.pod:2590 ../fish/guestfish-actions.pod:1752
11774 msgid "Red Hat Enterprise Linux."
11775 msgstr ""
11776
11777 #. type: =item
11778 #: ../src/guestfs-actions.pod:2592 ../fish/guestfish-actions.pod:1754
11779 msgid "\"scientificlinux\""
11780 msgstr ""
11781
11782 #. type: textblock
11783 #: ../src/guestfs-actions.pod:2594 ../fish/guestfish-actions.pod:1756
11784 msgid "Scientific Linux."
11785 msgstr ""
11786
11787 #. type: =item
11788 #: ../src/guestfs-actions.pod:2596 ../fish/guestfish-actions.pod:1758
11789 msgid "\"slackware\""
11790 msgstr ""
11791
11792 #. type: textblock
11793 #: ../src/guestfs-actions.pod:2598 ../fish/guestfish-actions.pod:1760
11794 msgid "Slackware."
11795 msgstr ""
11796
11797 # type: =item
11798 #. type: =item
11799 #: ../src/guestfs-actions.pod:2600 ../fish/guestfish-actions.pod:1762
11800 msgid "\"ubuntu\""
11801 msgstr ""
11802
11803 # type: textblock
11804 #. type: textblock
11805 #: ../src/guestfs-actions.pod:2602 ../fish/guestfish-actions.pod:1764
11806 msgid "Ubuntu."
11807 msgstr ""
11808
11809 # type: =item
11810 #. type: =item
11811 #: ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2713
11812 #: ../src/guestfs-actions.pod:3088 ../fish/guestfish-actions.pod:1766
11813 #: ../fish/guestfish-actions.pod:1850 ../fish/guestfish-actions.pod:2114
11814 msgid "\"unknown\""
11815 msgstr ""
11816
11817 # type: textblock
11818 #. type: textblock
11819 #: ../src/guestfs-actions.pod:2606 ../fish/guestfish-actions.pod:1768
11820 msgid "The distro could not be determined."
11821 msgstr ""
11822
11823 # type: =item
11824 #. type: =item
11825 #: ../src/guestfs-actions.pod:2608 ../src/guestfs-actions.pod:3080
11826 #: ../fish/guestfish-actions.pod:1770 ../fish/guestfish-actions.pod:2106
11827 msgid "\"windows\""
11828 msgstr ""
11829
11830 # type: textblock
11831 #. type: textblock
11832 #: ../src/guestfs-actions.pod:2610 ../fish/guestfish-actions.pod:1772
11833 msgid ""
11834 "Windows does not have distributions.  This string is returned if the OS type "
11835 "is Windows."
11836 msgstr ""
11837
11838 # type: textblock
11839 #. type: textblock
11840 #: ../src/guestfs-actions.pod:2615 ../src/guestfs-actions.pod:2719
11841 #: ../src/guestfs-actions.pod:3094 ../fish/guestfish-actions.pod:1777
11842 #: ../fish/guestfish-actions.pod:1856 ../fish/guestfish-actions.pod:2120
11843 msgid ""
11844 "Future versions of libguestfs may return other strings here.  The caller "
11845 "should be prepared to handle any string."
11846 msgstr ""
11847
11848 #. type: =head2
11849 #: ../src/guestfs-actions.pod:2625
11850 msgid "guestfs_inspect_get_drive_mappings"
11851 msgstr ""
11852
11853 #. type: verbatim
11854 #: ../src/guestfs-actions.pod:2627
11855 #, no-wrap
11856 msgid ""
11857 " char **\n"
11858 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
11859 "                                     const char *root);\n"
11860 "\n"
11861 msgstr ""
11862
11863 #. type: textblock
11864 #: ../src/guestfs-actions.pod:2631 ../fish/guestfish-actions.pod:1786
11865 msgid ""
11866 "This call is useful for Windows which uses a primitive system of assigning "
11867 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
11868 "Windows Registry to find out how disks/partitions are mapped to drive "
11869 "letters, and returns a hash table as in the example below:"
11870 msgstr ""
11871
11872 #. type: verbatim
11873 #: ../src/guestfs-actions.pod:2637 ../fish/guestfish-actions.pod:1792
11874 #, no-wrap
11875 msgid ""
11876 " C      =>     /dev/vda2\n"
11877 " E      =>     /dev/vdb1\n"
11878 " F      =>     /dev/vdc1\n"
11879 "\n"
11880 msgstr ""
11881
11882 #. type: textblock
11883 #: ../src/guestfs-actions.pod:2641 ../fish/guestfish-actions.pod:1796
11884 msgid ""
11885 "Note that keys are drive letters.  For Windows, the key is case insensitive "
11886 "and just contains the drive letter, without the customary colon separator "
11887 "character."
11888 msgstr ""
11889
11890 #. type: textblock
11891 #: ../src/guestfs-actions.pod:2645 ../fish/guestfish-actions.pod:1800
11892 msgid ""
11893 "In future we may support other operating systems that also used drive "
11894 "letters, but the keys for those might not be case insensitive and might be "
11895 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
11896 "C<h1> etc."
11897 msgstr ""
11898
11899 #. type: textblock
11900 #: ../src/guestfs-actions.pod:2650 ../fish/guestfish-actions.pod:1805
11901 msgid ""
11902 "For Windows guests, currently only hard drive mappings are returned.  "
11903 "Removable disks (eg. DVD-ROMs) are ignored."
11904 msgstr ""
11905
11906 #. type: textblock
11907 #: ../src/guestfs-actions.pod:2653 ../fish/guestfish-actions.pod:1808
11908 msgid ""
11909 "For guests that do not use drive mappings, or if the drive mappings could "
11910 "not be determined, this returns an empty hash table."
11911 msgstr ""
11912
11913 #. type: textblock
11914 #: ../src/guestfs-actions.pod:2656
11915 msgid ""
11916 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11917 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
11918 msgstr ""
11919
11920 # type: textblock
11921 #. type: textblock
11922 #: ../src/guestfs-actions.pod:2660 ../src/guestfs-actions.pod:2928
11923 #: ../src/guestfs-actions.pod:3706 ../src/guestfs-actions.pod:4985
11924 #: ../src/guestfs-actions.pod:6922
11925 msgid ""
11926 "This function returns a NULL-terminated array of strings, or NULL if there "
11927 "was an error.  The array of strings will always have length C<2n+1>, where "
11928 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
11929 "caller must free the strings and the array after use>."
11930 msgstr ""
11931
11932 #. type: textblock
11933 #: ../src/guestfs-actions.pod:2666 ../src/guestfs-actions.pod:3122
11934 msgid "(Added in 1.9.17)"
11935 msgstr ""
11936
11937 # type: =head2
11938 #. type: =head2
11939 #: ../src/guestfs-actions.pod:2668
11940 msgid "guestfs_inspect_get_filesystems"
11941 msgstr ""
11942
11943 # type: verbatim
11944 #. type: verbatim
11945 #: ../src/guestfs-actions.pod:2670
11946 #, no-wrap
11947 msgid ""
11948 " char **\n"
11949 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
11950 "                                  const char *root);\n"
11951 "\n"
11952 msgstr ""
11953
11954 # type: textblock
11955 #. type: textblock
11956 #: ../src/guestfs-actions.pod:2674 ../fish/guestfish-actions.pod:1819
11957 msgid ""
11958 "This returns a list of all the filesystems that we think are associated with "
11959 "this operating system.  This includes the root filesystem, other ordinary "
11960 "filesystems, and non-mounted devices like swap partitions."
11961 msgstr ""
11962
11963 # type: textblock
11964 #. type: textblock
11965 #: ../src/guestfs-actions.pod:2679 ../fish/guestfish-actions.pod:1824
11966 msgid ""
11967 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
11968 "to be shared between operating systems."
11969 msgstr ""
11970
11971 # type: textblock
11972 #. type: textblock
11973 #: ../src/guestfs-actions.pod:2682
11974 msgid ""
11975 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11976 "C<guestfs_inspect_get_mountpoints>."
11977 msgstr ""
11978
11979 #. type: =head2
11980 #: ../src/guestfs-actions.pod:2691
11981 msgid "guestfs_inspect_get_format"
11982 msgstr ""
11983
11984 #. type: verbatim
11985 #: ../src/guestfs-actions.pod:2693
11986 #, no-wrap
11987 msgid ""
11988 " char *\n"
11989 " guestfs_inspect_get_format (guestfs_h *g,\n"
11990 "                             const char *root);\n"
11991 "\n"
11992 msgstr ""
11993
11994 #. type: textblock
11995 #: ../src/guestfs-actions.pod:2697 ../fish/guestfish-actions.pod:1834
11996 msgid ""
11997 "This returns the format of the inspected operating system.  You can use it "
11998 "to detect install images, live CDs and similar."
11999 msgstr ""
12000
12001 #. type: textblock
12002 #: ../src/guestfs-actions.pod:2700 ../fish/guestfish-actions.pod:1837
12003 msgid "Currently defined formats are:"
12004 msgstr ""
12005
12006 #. type: =item
12007 #: ../src/guestfs-actions.pod:2704 ../fish/guestfish-actions.pod:1841
12008 msgid "\"installed\""
12009 msgstr ""
12010
12011 #. type: textblock
12012 #: ../src/guestfs-actions.pod:2706 ../fish/guestfish-actions.pod:1843
12013 msgid "This is an installed operating system."
12014 msgstr ""
12015
12016 #. type: =item
12017 #: ../src/guestfs-actions.pod:2708 ../fish/guestfish-actions.pod:1845
12018 msgid "\"installer\""
12019 msgstr ""
12020
12021 #. type: textblock
12022 #: ../src/guestfs-actions.pod:2710 ../fish/guestfish-actions.pod:1847
12023 msgid ""
12024 "The disk image being inspected is not an installed operating system, but a "
12025 "I<bootable> install disk, live CD, or similar."
12026 msgstr ""
12027
12028 #. type: textblock
12029 #: ../src/guestfs-actions.pod:2715 ../fish/guestfish-actions.pod:1852
12030 msgid "The format of this disk image is not known."
12031 msgstr ""
12032
12033 #. type: textblock
12034 #: ../src/guestfs-actions.pod:2727 ../src/guestfs-actions.pod:3158
12035 #: ../src/guestfs-actions.pod:3174 ../src/guestfs-actions.pod:3192
12036 #: ../src/guestfs-actions.pod:5837
12037 msgid "(Added in 1.9.4)"
12038 msgstr ""
12039
12040 # type: =head2
12041 #. type: =head2
12042 #: ../src/guestfs-actions.pod:2729
12043 msgid "guestfs_inspect_get_hostname"
12044 msgstr ""
12045
12046 # type: verbatim
12047 #. type: verbatim
12048 #: ../src/guestfs-actions.pod:2731
12049 #, no-wrap
12050 msgid ""
12051 " char *\n"
12052 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
12053 "                               const char *root);\n"
12054 "\n"
12055 msgstr ""
12056
12057 # type: textblock
12058 #. type: textblock
12059 #: ../src/guestfs-actions.pod:2735 ../fish/guestfish-actions.pod:1865
12060 msgid ""
12061 "This function returns the hostname of the operating system as found by "
12062 "inspection of the guest's configuration files."
12063 msgstr ""
12064
12065 # type: textblock
12066 #. type: textblock
12067 #: ../src/guestfs-actions.pod:2738 ../fish/guestfish-actions.pod:1868
12068 msgid ""
12069 "If the hostname could not be determined, then the string C<unknown> is "
12070 "returned."
12071 msgstr ""
12072
12073 # type: textblock
12074 #. type: textblock
12075 #: ../src/guestfs-actions.pod:2746
12076 msgid "(Added in 1.7.9)"
12077 msgstr ""
12078
12079 #. type: =head2
12080 #: ../src/guestfs-actions.pod:2748
12081 msgid "guestfs_inspect_get_icon"
12082 msgstr ""
12083
12084 #. type: verbatim
12085 #: ../src/guestfs-actions.pod:2750
12086 #, no-wrap
12087 msgid ""
12088 " char *\n"
12089 " guestfs_inspect_get_icon (guestfs_h *g,\n"
12090 "                           const char *root,\n"
12091 "                           size_t *size_r,\n"
12092 "                           ...);\n"
12093 "\n"
12094 msgstr ""
12095
12096 #. type: verbatim
12097 #: ../src/guestfs-actions.pod:2761
12098 #, no-wrap
12099 msgid ""
12100 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
12101 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
12102 "\n"
12103 msgstr ""
12104
12105 #. type: textblock
12106 #: ../src/guestfs-actions.pod:2764 ../fish/guestfish-actions.pod:1877
12107 msgid ""
12108 "This function returns an icon corresponding to the inspected operating "
12109 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
12110 "to PNG if necessary)."
12111 msgstr ""
12112
12113 #. type: textblock
12114 #: ../src/guestfs-actions.pod:2768 ../fish/guestfish-actions.pod:1881
12115 msgid ""
12116 "If it was not possible to get an icon this function returns a zero-length "
12117 "(non-NULL) buffer.  I<Callers must check for this case>."
12118 msgstr ""
12119
12120 #. type: textblock
12121 #: ../src/guestfs-actions.pod:2771 ../fish/guestfish-actions.pod:1884
12122 msgid ""
12123 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
12124 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
12125 "this file will be returned.  You can disable favicons by passing the "
12126 "optional C<favicon> boolean as false (default is true)."
12127 msgstr ""
12128
12129 #. type: textblock
12130 #: ../src/guestfs-actions.pod:2777 ../fish/guestfish-actions.pod:1890
12131 msgid ""
12132 "If finding the favicon fails, then we look in other places in the guest for "
12133 "a suitable icon."
12134 msgstr ""
12135
12136 #. type: textblock
12137 #: ../src/guestfs-actions.pod:2780 ../fish/guestfish-actions.pod:1893
12138 msgid ""
12139 "If the optional C<highquality> boolean is true then only high quality icons "
12140 "are returned, which means only icons of high resolution with an alpha "
12141 "channel.  The default (false) is to return any icon we can, even if it is of "
12142 "substandard quality."
12143 msgstr ""
12144
12145 #. type: textblock
12146 #: ../src/guestfs-actions.pod:2791 ../fish/guestfish-actions.pod:1904
12147 msgid ""
12148 "Unlike most other inspection API calls, the guest's disks must be mounted up "
12149 "before you call this, since it needs to read information from the guest "
12150 "filesystem during the call."
12151 msgstr ""
12152
12153 #. type: textblock
12154 #: ../src/guestfs-actions.pod:2797 ../fish/guestfish-actions.pod:1910
12155 msgid ""
12156 "B<Security:> The icon data comes from the untrusted guest, and should be "
12157 "treated with caution.  PNG files have been known to contain exploits.  "
12158 "Ensure that libpng (or other relevant libraries) are fully up to date before "
12159 "trying to process or display the icon."
12160 msgstr ""
12161
12162 #. type: textblock
12163 #: ../src/guestfs-actions.pod:2805 ../fish/guestfish-actions.pod:1918
12164 msgid ""
12165 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
12166 "tries to return the largest, highest quality icon available.  The "
12167 "application must scale the icon to the required size."
12168 msgstr ""
12169
12170 #. type: textblock
12171 #: ../src/guestfs-actions.pod:2812 ../fish/guestfish-actions.pod:1925
12172 msgid ""
12173 "Extracting icons from Windows guests requires the external C<wrestool> "
12174 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
12175 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
12176 "installed separately."
12177 msgstr ""
12178
12179 #. type: textblock
12180 #: ../src/guestfs-actions.pod:2819 ../fish/guestfish-actions.pod:1932
12181 msgid ""
12182 "Operating system icons are usually trademarks.  Seek legal advice before "
12183 "using trademarks in applications."
12184 msgstr ""
12185
12186 #. type: textblock
12187 #: ../src/guestfs-actions.pod:2828 ../src/guestfs-actions.pod:3653
12188 #: ../src/guestfs-actions.pod:4884
12189 msgid "(Added in 1.11.12)"
12190 msgstr ""
12191
12192 #. type: =head2
12193 #: ../src/guestfs-actions.pod:2830
12194 msgid "guestfs_inspect_get_icon_va"
12195 msgstr ""
12196
12197 #. type: verbatim
12198 #: ../src/guestfs-actions.pod:2832
12199 #, no-wrap
12200 msgid ""
12201 " char *\n"
12202 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
12203 "                              const char *root,\n"
12204 "                              size_t *size_r,\n"
12205 "                              va_list args);\n"
12206 "\n"
12207 msgstr ""
12208
12209 #. type: textblock
12210 #: ../src/guestfs-actions.pod:2838
12211 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
12212 msgstr ""
12213
12214 #. type: =head2
12215 #: ../src/guestfs-actions.pod:2842
12216 msgid "guestfs_inspect_get_icon_argv"
12217 msgstr ""
12218
12219 #. type: verbatim
12220 #: ../src/guestfs-actions.pod:2844
12221 #, no-wrap
12222 msgid ""
12223 " char *\n"
12224 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
12225 "                                const char *root,\n"
12226 "                                size_t *size_r,\n"
12227 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
12228 "\n"
12229 msgstr ""
12230
12231 #. type: textblock
12232 #: ../src/guestfs-actions.pod:2850
12233 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
12234 msgstr ""
12235
12236 # type: =head2
12237 #. type: =head2
12238 #: ../src/guestfs-actions.pod:2854
12239 msgid "guestfs_inspect_get_major_version"
12240 msgstr ""
12241
12242 # type: verbatim
12243 #. type: verbatim
12244 #: ../src/guestfs-actions.pod:2856
12245 #, no-wrap
12246 msgid ""
12247 " int\n"
12248 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
12249 "                                    const char *root);\n"
12250 "\n"
12251 msgstr ""
12252
12253 # type: textblock
12254 #. type: textblock
12255 #: ../src/guestfs-actions.pod:2860 ../fish/guestfish-actions.pod:1943
12256 msgid ""
12257 "This returns the major version number of the inspected operating system."
12258 msgstr ""
12259
12260 # type: textblock
12261 #. type: textblock
12262 #: ../src/guestfs-actions.pod:2863 ../fish/guestfish-actions.pod:1946
12263 msgid ""
12264 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
12265 "popular public names used by the operating system.  Notably the operating "
12266 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
12267 "1).  You can find out the real versions corresponding to releases of Windows "
12268 "by consulting Wikipedia or MSDN."
12269 msgstr ""
12270
12271 # type: textblock
12272 #. type: textblock
12273 #: ../src/guestfs-actions.pod:2870 ../src/guestfs-actions.pod:2887
12274 #: ../fish/guestfish-actions.pod:1953 ../fish/guestfish-actions.pod:1964
12275 msgid "If the version could not be determined, then C<0> is returned."
12276 msgstr ""
12277
12278 # type: =head2
12279 #. type: =head2
12280 #: ../src/guestfs-actions.pod:2878
12281 msgid "guestfs_inspect_get_minor_version"
12282 msgstr ""
12283
12284 # type: verbatim
12285 #. type: verbatim
12286 #: ../src/guestfs-actions.pod:2880
12287 #, no-wrap
12288 msgid ""
12289 " int\n"
12290 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
12291 "                                    const char *root);\n"
12292 "\n"
12293 msgstr ""
12294
12295 # type: textblock
12296 #. type: textblock
12297 #: ../src/guestfs-actions.pod:2884 ../fish/guestfish-actions.pod:1961
12298 msgid ""
12299 "This returns the minor version number of the inspected operating system."
12300 msgstr ""
12301
12302 # type: textblock
12303 #. type: textblock
12304 #: ../src/guestfs-actions.pod:2889
12305 msgid ""
12306 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
12307 "C<guestfs_inspect_get_major_version>."
12308 msgstr ""
12309
12310 # type: =head2
12311 #. type: =head2
12312 #: ../src/guestfs-actions.pod:2896
12313 msgid "guestfs_inspect_get_mountpoints"
12314 msgstr ""
12315
12316 # type: verbatim
12317 #. type: verbatim
12318 #: ../src/guestfs-actions.pod:2898
12319 #, no-wrap
12320 msgid ""
12321 " char **\n"
12322 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
12323 "                                  const char *root);\n"
12324 "\n"
12325 msgstr ""
12326
12327 #. type: textblock
12328 #: ../src/guestfs-actions.pod:2902 ../fish/guestfish-actions.pod:1973
12329 msgid ""
12330 "This returns a hash of where we think the filesystems associated with this "
12331 "operating system should be mounted.  Callers should note that this is at "
12332 "best an educated guess made by reading configuration files such as C</etc/"
12333 "fstab>.  I<In particular note> that this may return filesystems which are "
12334 "non-existent or not mountable and callers should be prepared to handle or "
12335 "ignore failures if they try to mount them."
12336 msgstr ""
12337
12338 # type: textblock
12339 #. type: textblock
12340 #: ../src/guestfs-actions.pod:2911 ../fish/guestfish-actions.pod:1982
12341 msgid ""
12342 "Each element in the returned hashtable has a key which is the path of the "
12343 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
12344 "mounted there (eg. C</dev/sda1>)."
12345 msgstr ""
12346
12347 # type: textblock
12348 #. type: textblock
12349 #: ../src/guestfs-actions.pod:2916 ../fish/guestfish-actions.pod:1987
12350 msgid ""
12351 "Non-mounted devices such as swap devices are I<not> returned in this list."
12352 msgstr ""
12353
12354 #. type: textblock
12355 #: ../src/guestfs-actions.pod:2919
12356 msgid ""
12357 "For operating systems like Windows which still use drive letters, this call "
12358 "will only return an entry for the first drive \"mounted on\" C</>.  For "
12359 "information about the mapping of drive letters to partitions, see "
12360 "C<guestfs_inspect_get_drive_mappings>."
12361 msgstr ""
12362
12363 # type: textblock
12364 #. type: textblock
12365 #: ../src/guestfs-actions.pod:2925
12366 msgid ""
12367 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
12368 "C<guestfs_inspect_get_filesystems>."
12369 msgstr ""
12370
12371 # type: =head2
12372 #. type: =head2
12373 #: ../src/guestfs-actions.pod:2936
12374 msgid "guestfs_inspect_get_package_format"
12375 msgstr ""
12376
12377 # type: verbatim
12378 #. type: verbatim
12379 #: ../src/guestfs-actions.pod:2938
12380 #, no-wrap
12381 msgid ""
12382 " char *\n"
12383 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
12384 "                                     const char *root);\n"
12385 "\n"
12386 msgstr ""
12387
12388 # type: textblock
12389 #. type: textblock
12390 #: ../src/guestfs-actions.pod:2942
12391 msgid ""
12392 "This function and C<guestfs_inspect_get_package_management> return the "
12393 "package format and package management tool used by the inspected operating "
12394 "system.  For example for Fedora these functions would return C<rpm> (package "
12395 "format) and C<yum> (package management)."
12396 msgstr ""
12397
12398 # type: textblock
12399 #. type: textblock
12400 #: ../src/guestfs-actions.pod:2948 ../fish/guestfish-actions.pod:2009
12401 msgid ""
12402 "This returns the string C<unknown> if we could not determine the package "
12403 "format I<or> if the operating system does not have a real packaging system "
12404 "(eg. Windows)."
12405 msgstr ""
12406
12407 # type: textblock
12408 #. type: textblock
12409 #: ../src/guestfs-actions.pod:2952 ../fish/guestfish-actions.pod:2013
12410 msgid ""
12411 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
12412 "Future versions of libguestfs may return other strings."
12413 msgstr ""
12414
12415 # type: textblock
12416 #. type: textblock
12417 #: ../src/guestfs-actions.pod:2960 ../src/guestfs-actions.pod:2988
12418 msgid "(Added in 1.7.5)"
12419 msgstr ""
12420
12421 # type: =head2
12422 #. type: =head2
12423 #: ../src/guestfs-actions.pod:2962
12424 msgid "guestfs_inspect_get_package_management"
12425 msgstr ""
12426
12427 # type: verbatim
12428 #. type: verbatim
12429 #: ../src/guestfs-actions.pod:2964
12430 #, no-wrap
12431 msgid ""
12432 " char *\n"
12433 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
12434 "                                         const char *root);\n"
12435 "\n"
12436 msgstr ""
12437
12438 # type: textblock
12439 #. type: textblock
12440 #: ../src/guestfs-actions.pod:2968
12441 msgid ""
12442 "C<guestfs_inspect_get_package_format> and this function return the package "
12443 "format and package management tool used by the inspected operating system.  "
12444 "For example for Fedora these functions would return C<rpm> (package format) "
12445 "and C<yum> (package management)."
12446 msgstr ""
12447
12448 # type: textblock
12449 #. type: textblock
12450 #: ../src/guestfs-actions.pod:2974 ../fish/guestfish-actions.pod:2028
12451 msgid ""
12452 "This returns the string C<unknown> if we could not determine the package "
12453 "management tool I<or> if the operating system does not have a real packaging "
12454 "system (eg. Windows)."
12455 msgstr ""
12456
12457 # type: textblock
12458 #. type: textblock
12459 #: ../src/guestfs-actions.pod:2978 ../fish/guestfish-actions.pod:2032
12460 msgid ""
12461 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
12462 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
12463 "libguestfs may return other strings."
12464 msgstr ""
12465
12466 # type: =head2
12467 #. type: =head2
12468 #: ../src/guestfs-actions.pod:2990
12469 msgid "guestfs_inspect_get_product_name"
12470 msgstr ""
12471
12472 # type: verbatim
12473 #. type: verbatim
12474 #: ../src/guestfs-actions.pod:2992
12475 #, no-wrap
12476 msgid ""
12477 " char *\n"
12478 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
12479 "                                   const char *root);\n"
12480 "\n"
12481 msgstr ""
12482
12483 # type: textblock
12484 #. type: textblock
12485 #: ../src/guestfs-actions.pod:2996 ../fish/guestfish-actions.pod:2043
12486 msgid ""
12487 "This returns the product name of the inspected operating system.  The "
12488 "product name is generally some freeform string which can be displayed to the "
12489 "user, but should not be parsed by programs."
12490 msgstr ""
12491
12492 # type: textblock
12493 #. type: textblock
12494 #: ../src/guestfs-actions.pod:3001 ../fish/guestfish-actions.pod:2048
12495 msgid ""
12496 "If the product name could not be determined, then the string C<unknown> is "
12497 "returned."
12498 msgstr ""
12499
12500 #. type: =head2
12501 #: ../src/guestfs-actions.pod:3011
12502 msgid "guestfs_inspect_get_product_variant"
12503 msgstr ""
12504
12505 #. type: verbatim
12506 #: ../src/guestfs-actions.pod:3013
12507 #, no-wrap
12508 msgid ""
12509 " char *\n"
12510 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
12511 "                                      const char *root);\n"
12512 "\n"
12513 msgstr ""
12514
12515 #. type: textblock
12516 #: ../src/guestfs-actions.pod:3017 ../fish/guestfish-actions.pod:2057
12517 msgid "This returns the product variant of the inspected operating system."
12518 msgstr ""
12519
12520 #. type: textblock
12521 #: ../src/guestfs-actions.pod:3020 ../fish/guestfish-actions.pod:2060
12522 msgid ""
12523 "For Windows guests, this returns the contents of the Registry key C<HKLM"
12524 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
12525 "is usually a string such as C<Client> or C<Server> (other values are "
12526 "possible).  This can be used to distinguish consumer and enterprise versions "
12527 "of Windows that have the same version number (for example, Windows 7 and "
12528 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
12529 "the latter is C<Server>)."
12530 msgstr ""
12531
12532 #. type: textblock
12533 #: ../src/guestfs-actions.pod:3029 ../fish/guestfish-actions.pod:2069
12534 msgid ""
12535 "For enterprise Linux guests, in future we intend this to return the product "
12536 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
12537 "implemented at present."
12538 msgstr ""
12539
12540 #. type: textblock
12541 #: ../src/guestfs-actions.pod:3033 ../fish/guestfish-actions.pod:2073
12542 msgid ""
12543 "If the product variant could not be determined, then the string C<unknown> "
12544 "is returned."
12545 msgstr ""
12546
12547 #. type: textblock
12548 #: ../src/guestfs-actions.pod:3036
12549 msgid ""
12550 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
12551 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
12552 msgstr ""
12553
12554 #. type: textblock
12555 #: ../src/guestfs-actions.pod:3043
12556 msgid "(Added in 1.9.13)"
12557 msgstr ""
12558
12559 # type: =head2
12560 #. type: =head2
12561 #: ../src/guestfs-actions.pod:3045
12562 msgid "guestfs_inspect_get_roots"
12563 msgstr ""
12564
12565 # type: verbatim
12566 #. type: verbatim
12567 #: ../src/guestfs-actions.pod:3047
12568 #, no-wrap
12569 msgid ""
12570 " char **\n"
12571 " guestfs_inspect_get_roots (guestfs_h *g);\n"
12572 "\n"
12573 msgstr ""
12574
12575 # type: textblock
12576 #. type: textblock
12577 #: ../src/guestfs-actions.pod:3050
12578 msgid ""
12579 "This function is a convenient way to get the list of root devices, as "
12580 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
12581 "the whole inspection process."
12582 msgstr ""
12583
12584 # type: textblock
12585 #. type: textblock
12586 #: ../src/guestfs-actions.pod:3054
12587 msgid ""
12588 "This returns an empty list if either no root devices were found or the "
12589 "caller has not called C<guestfs_inspect_os>."
12590 msgstr ""
12591
12592 # type: textblock
12593 #. type: textblock
12594 #: ../src/guestfs-actions.pod:3063
12595 msgid "(Added in 1.7.3)"
12596 msgstr ""
12597
12598 # type: =head2
12599 #. type: =head2
12600 #: ../src/guestfs-actions.pod:3065
12601 msgid "guestfs_inspect_get_type"
12602 msgstr ""
12603
12604 # type: verbatim
12605 #. type: verbatim
12606 #: ../src/guestfs-actions.pod:3067
12607 #, no-wrap
12608 msgid ""
12609 " char *\n"
12610 " guestfs_inspect_get_type (guestfs_h *g,\n"
12611 "                           const char *root);\n"
12612 "\n"
12613 msgstr ""
12614
12615 # type: textblock
12616 #. type: textblock
12617 #: ../src/guestfs-actions.pod:3071 ../fish/guestfish-actions.pod:2097
12618 msgid ""
12619 "This returns the type of the inspected operating system.  Currently defined "
12620 "types are:"
12621 msgstr ""
12622
12623 # type: =item
12624 #. type: =item
12625 #: ../src/guestfs-actions.pod:3076 ../fish/guestfish-actions.pod:2102
12626 msgid "\"linux\""
12627 msgstr ""
12628
12629 # type: textblock
12630 #. type: textblock
12631 #: ../src/guestfs-actions.pod:3078 ../fish/guestfish-actions.pod:2104
12632 msgid "Any Linux-based operating system."
12633 msgstr ""
12634
12635 # type: textblock
12636 #. type: textblock
12637 #: ../src/guestfs-actions.pod:3082 ../fish/guestfish-actions.pod:2108
12638 msgid "Any Microsoft Windows operating system."
12639 msgstr ""
12640
12641 # type: =item
12642 #. type: =item
12643 #: ../src/guestfs-actions.pod:3084 ../fish/guestfish-actions.pod:2110
12644 msgid "\"freebsd\""
12645 msgstr ""
12646
12647 # type: textblock
12648 #. type: textblock
12649 #: ../src/guestfs-actions.pod:3086 ../fish/guestfish-actions.pod:2112
12650 msgid "FreeBSD."
12651 msgstr ""
12652
12653 # type: textblock
12654 #. type: textblock
12655 #: ../src/guestfs-actions.pod:3090 ../fish/guestfish-actions.pod:2116
12656 msgid "The operating system type could not be determined."
12657 msgstr ""
12658
12659 #. type: =head2
12660 #: ../src/guestfs-actions.pod:3104
12661 msgid "guestfs_inspect_get_windows_current_control_set"
12662 msgstr ""
12663
12664 #. type: verbatim
12665 #: ../src/guestfs-actions.pod:3106
12666 #, no-wrap
12667 msgid ""
12668 " char *\n"
12669 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
12670 "                                                  const char *root);\n"
12671 "\n"
12672 msgstr ""
12673
12674 #. type: textblock
12675 #: ../src/guestfs-actions.pod:3110 ../fish/guestfish-actions.pod:2129
12676 msgid ""
12677 "This returns the Windows CurrentControlSet of the inspected guest.  The "
12678 "CurrentControlSet is a registry key name such as C<ControlSet001>."
12679 msgstr ""
12680
12681 #. type: textblock
12682 #: ../src/guestfs-actions.pod:3113 ../fish/guestfish-actions.pod:2132
12683 msgid ""
12684 "This call assumes that the guest is Windows and that the Registry could be "
12685 "examined by inspection.  If this is not the case then an error is returned."
12686 msgstr ""
12687
12688 # type: =head2
12689 #. type: =head2
12690 #: ../src/guestfs-actions.pod:3124
12691 msgid "guestfs_inspect_get_windows_systemroot"
12692 msgstr ""
12693
12694 # type: verbatim
12695 #. type: verbatim
12696 #: ../src/guestfs-actions.pod:3126
12697 #, no-wrap
12698 msgid ""
12699 " char *\n"
12700 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
12701 "                                         const char *root);\n"
12702 "\n"
12703 msgstr ""
12704
12705 # type: textblock
12706 #. type: textblock
12707 #: ../src/guestfs-actions.pod:3130 ../fish/guestfish-actions.pod:2142
12708 msgid ""
12709 "This returns the Windows systemroot of the inspected guest.  The systemroot "
12710 "is a directory path such as C</WINDOWS>."
12711 msgstr ""
12712
12713 # type: textblock
12714 #. type: textblock
12715 #: ../src/guestfs-actions.pod:3133 ../fish/guestfish-actions.pod:2145
12716 msgid ""
12717 "This call assumes that the guest is Windows and that the systemroot could be "
12718 "determined by inspection.  If this is not the case then an error is returned."
12719 msgstr ""
12720
12721 # type: textblock
12722 #. type: textblock
12723 #: ../src/guestfs-actions.pod:3142
12724 msgid "(Added in 1.5.25)"
12725 msgstr ""
12726
12727 #. type: =head2
12728 #: ../src/guestfs-actions.pod:3144
12729 msgid "guestfs_inspect_is_live"
12730 msgstr ""
12731
12732 #. type: verbatim
12733 #: ../src/guestfs-actions.pod:3146
12734 #, no-wrap
12735 msgid ""
12736 " int\n"
12737 " guestfs_inspect_is_live (guestfs_h *g,\n"
12738 "                          const char *root);\n"
12739 "\n"
12740 msgstr ""
12741
12742 #. type: textblock
12743 #: ../src/guestfs-actions.pod:3150
12744 msgid ""
12745 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12746 "disk), then this returns true if a live image was detected on the disk."
12747 msgstr ""
12748
12749 #. type: =head2
12750 #: ../src/guestfs-actions.pod:3160
12751 msgid "guestfs_inspect_is_multipart"
12752 msgstr ""
12753
12754 #. type: verbatim
12755 #: ../src/guestfs-actions.pod:3162
12756 #, no-wrap
12757 msgid ""
12758 " int\n"
12759 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
12760 "                               const char *root);\n"
12761 "\n"
12762 msgstr ""
12763
12764 #. type: textblock
12765 #: ../src/guestfs-actions.pod:3166
12766 msgid ""
12767 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12768 "disk), then this returns true if the disk is part of a set."
12769 msgstr ""
12770
12771 #. type: =head2
12772 #: ../src/guestfs-actions.pod:3176
12773 msgid "guestfs_inspect_is_netinst"
12774 msgstr ""
12775
12776 #. type: verbatim
12777 #: ../src/guestfs-actions.pod:3178
12778 #, no-wrap
12779 msgid ""
12780 " int\n"
12781 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
12782 "                             const char *root);\n"
12783 "\n"
12784 msgstr ""
12785
12786 #. type: textblock
12787 #: ../src/guestfs-actions.pod:3182
12788 msgid ""
12789 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12790 "disk), then this returns true if the disk is a network installer, ie. not a "
12791 "self-contained install CD but one which is likely to require network access "
12792 "to complete the install."
12793 msgstr ""
12794
12795 # type: =head2
12796 #. type: =head2
12797 #: ../src/guestfs-actions.pod:3194
12798 msgid "guestfs_inspect_list_applications"
12799 msgstr ""
12800
12801 # type: verbatim
12802 #. type: verbatim
12803 #: ../src/guestfs-actions.pod:3196
12804 #, no-wrap
12805 msgid ""
12806 " struct guestfs_application_list *\n"
12807 " guestfs_inspect_list_applications (guestfs_h *g,\n"
12808 "                                    const char *root);\n"
12809 "\n"
12810 msgstr ""
12811
12812 # type: textblock
12813 #. type: textblock
12814 #: ../src/guestfs-actions.pod:3200 ../fish/guestfish-actions.pod:2187
12815 msgid "Return the list of applications installed in the operating system."
12816 msgstr ""
12817
12818 # type: textblock
12819 #. type: textblock
12820 #: ../src/guestfs-actions.pod:3202
12821 msgid ""
12822 "I<Note:> This call works differently from other parts of the inspection "
12823 "API.  You have to call C<guestfs_inspect_os>, then "
12824 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
12825 "this.  Listing applications is a significantly more difficult operation "
12826 "which requires access to the full filesystem.  Also note that unlike the "
12827 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
12828 "the libguestfs handle, this call actually reads parts of the mounted "
12829 "filesystems during the call."
12830 msgstr ""
12831
12832 # type: textblock
12833 #. type: textblock
12834 #: ../src/guestfs-actions.pod:3212 ../fish/guestfish-actions.pod:2199
12835 msgid ""
12836 "This returns an empty list if the inspection code was not able to determine "
12837 "the list of applications."
12838 msgstr ""
12839
12840 # type: textblock
12841 #. type: textblock
12842 #: ../src/guestfs-actions.pod:3215 ../fish/guestfish-actions.pod:2202
12843 msgid "The application structure contains the following fields:"
12844 msgstr ""
12845
12846 # type: =item
12847 #. type: =item
12848 #: ../src/guestfs-actions.pod:3219 ../fish/guestfish-actions.pod:2206
12849 msgid "C<app_name>"
12850 msgstr ""
12851
12852 # type: textblock
12853 #. type: textblock
12854 #: ../src/guestfs-actions.pod:3221 ../fish/guestfish-actions.pod:2208
12855 msgid ""
12856 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
12857 "guests, this is the package name."
12858 msgstr ""
12859
12860 # type: =item
12861 #. type: =item
12862 #: ../src/guestfs-actions.pod:3224 ../fish/guestfish-actions.pod:2211
12863 msgid "C<app_display_name>"
12864 msgstr ""
12865
12866 # type: textblock
12867 #. type: textblock
12868 #: ../src/guestfs-actions.pod:3226 ../fish/guestfish-actions.pod:2213
12869 msgid ""
12870 "The display name of the application, sometimes localized to the install "
12871 "language of the guest operating system."
12872 msgstr ""
12873
12874 # type: textblock
12875 #. type: textblock
12876 #: ../src/guestfs-actions.pod:3229 ../fish/guestfish-actions.pod:2216
12877 msgid ""
12878 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
12879 "to display something can use C<app_name> instead."
12880 msgstr ""
12881
12882 # type: =item
12883 #. type: =item
12884 #: ../src/guestfs-actions.pod:3232 ../fish/guestfish-actions.pod:2219
12885 msgid "C<app_epoch>"
12886 msgstr ""
12887
12888 # type: textblock
12889 #. type: textblock
12890 #: ../src/guestfs-actions.pod:3234 ../fish/guestfish-actions.pod:2221
12891 msgid ""
12892 "For package managers which use epochs, this contains the epoch of the "
12893 "package (an integer).  If unavailable, this is returned as C<0>."
12894 msgstr ""
12895
12896 # type: =item
12897 #. type: =item
12898 #: ../src/guestfs-actions.pod:3237 ../fish/guestfish-actions.pod:2224
12899 msgid "C<app_version>"
12900 msgstr ""
12901
12902 # type: textblock
12903 #. type: textblock
12904 #: ../src/guestfs-actions.pod:3239 ../fish/guestfish-actions.pod:2226
12905 msgid ""
12906 "The version string of the application or package.  If unavailable this is "
12907 "returned as an empty string C<\"\">."
12908 msgstr ""
12909
12910 # type: =item
12911 #. type: =item
12912 #: ../src/guestfs-actions.pod:3242 ../fish/guestfish-actions.pod:2229
12913 msgid "C<app_release>"
12914 msgstr ""
12915
12916 # type: textblock
12917 #. type: textblock
12918 #: ../src/guestfs-actions.pod:3244 ../fish/guestfish-actions.pod:2231
12919 msgid ""
12920 "The release string of the application or package, for package managers that "
12921 "use this.  If unavailable this is returned as an empty string C<\"\">."
12922 msgstr ""
12923
12924 # type: =item
12925 #. type: =item
12926 #: ../src/guestfs-actions.pod:3248 ../fish/guestfish-actions.pod:2235
12927 msgid "C<app_install_path>"
12928 msgstr ""
12929
12930 # type: textblock
12931 #. type: textblock
12932 #: ../src/guestfs-actions.pod:3250 ../fish/guestfish-actions.pod:2237
12933 msgid ""
12934 "The installation path of the application (on operating systems such as "
12935 "Windows which use installation paths).  This path is in the format used by "
12936 "the guest operating system, it is not a libguestfs path."
12937 msgstr ""
12938
12939 # type: textblock
12940 #. type: textblock
12941 #: ../src/guestfs-actions.pod:3255 ../fish/guestfish-actions.pod:2242
12942 msgid "If unavailable this is returned as an empty string C<\"\">."
12943 msgstr ""
12944
12945 # type: =item
12946 #. type: =item
12947 #: ../src/guestfs-actions.pod:3257 ../fish/guestfish-actions.pod:2244
12948 msgid "C<app_trans_path>"
12949 msgstr ""
12950
12951 # type: textblock
12952 #. type: textblock
12953 #: ../src/guestfs-actions.pod:3259 ../fish/guestfish-actions.pod:2246
12954 msgid ""
12955 "The install path translated into a libguestfs path.  If unavailable this is "
12956 "returned as an empty string C<\"\">."
12957 msgstr ""
12958
12959 # type: =item
12960 #. type: =item
12961 #: ../src/guestfs-actions.pod:3262 ../fish/guestfish-actions.pod:2249
12962 msgid "C<app_publisher>"
12963 msgstr ""
12964
12965 # type: textblock
12966 #. type: textblock
12967 #: ../src/guestfs-actions.pod:3264 ../fish/guestfish-actions.pod:2251
12968 msgid ""
12969 "The name of the publisher of the application, for package managers that use "
12970 "this.  If unavailable this is returned as an empty string C<\"\">."
12971 msgstr ""
12972
12973 # type: =item
12974 #. type: =item
12975 #: ../src/guestfs-actions.pod:3268 ../fish/guestfish-actions.pod:2255
12976 msgid "C<app_url>"
12977 msgstr ""
12978
12979 # type: textblock
12980 #. type: textblock
12981 #: ../src/guestfs-actions.pod:3270 ../fish/guestfish-actions.pod:2257
12982 msgid ""
12983 "The URL (eg. upstream URL) of the application.  If unavailable this is "
12984 "returned as an empty string C<\"\">."
12985 msgstr ""
12986
12987 # type: =item
12988 #. type: =item
12989 #: ../src/guestfs-actions.pod:3273 ../fish/guestfish-actions.pod:2260
12990 msgid "C<app_source_package>"
12991 msgstr ""
12992
12993 # type: textblock
12994 #. type: textblock
12995 #: ../src/guestfs-actions.pod:3275 ../fish/guestfish-actions.pod:2262
12996 msgid ""
12997 "For packaging systems which support this, the name of the source package.  "
12998 "If unavailable this is returned as an empty string C<\"\">."
12999 msgstr ""
13000
13001 # type: =item
13002 #. type: =item
13003 #: ../src/guestfs-actions.pod:3278 ../fish/guestfish-actions.pod:2265
13004 msgid "C<app_summary>"
13005 msgstr ""
13006
13007 # type: textblock
13008 #. type: textblock
13009 #: ../src/guestfs-actions.pod:3280 ../fish/guestfish-actions.pod:2267
13010 msgid ""
13011 "A short (usually one line) description of the application or package.  If "
13012 "unavailable this is returned as an empty string C<\"\">."
13013 msgstr ""
13014
13015 # type: =item
13016 #. type: =item
13017 #: ../src/guestfs-actions.pod:3283 ../fish/guestfish-actions.pod:2270
13018 msgid "C<app_description>"
13019 msgstr ""
13020
13021 # type: textblock
13022 #. type: textblock
13023 #: ../src/guestfs-actions.pod:3285 ../fish/guestfish-actions.pod:2272
13024 msgid ""
13025 "A longer description of the application or package.  If unavailable this is "
13026 "returned as an empty string C<\"\">."
13027 msgstr ""
13028
13029 # type: textblock
13030 #. type: textblock
13031 #: ../src/guestfs-actions.pod:3292
13032 msgid ""
13033 "This function returns a C<struct guestfs_application_list *>, or NULL if "
13034 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
13035 "after use>."
13036 msgstr ""
13037
13038 # type: textblock
13039 #. type: textblock
13040 #: ../src/guestfs-actions.pod:3296
13041 msgid "(Added in 1.7.8)"
13042 msgstr ""
13043
13044 # type: =head2
13045 #. type: =head2
13046 #: ../src/guestfs-actions.pod:3298
13047 msgid "guestfs_inspect_os"
13048 msgstr ""
13049
13050 # type: verbatim
13051 #. type: verbatim
13052 #: ../src/guestfs-actions.pod:3300
13053 #, no-wrap
13054 msgid ""
13055 " char **\n"
13056 " guestfs_inspect_os (guestfs_h *g);\n"
13057 "\n"
13058 msgstr ""
13059
13060 # type: textblock
13061 #. type: textblock
13062 #: ../src/guestfs-actions.pod:3303 ../fish/guestfish-actions.pod:2283
13063 msgid ""
13064 "This function uses other libguestfs functions and certain heuristics to "
13065 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
13066 "for operating systems."
13067 msgstr ""
13068
13069 # type: textblock
13070 #. type: textblock
13071 #: ../src/guestfs-actions.pod:3307 ../fish/guestfish-actions.pod:2287
13072 msgid "The list returned is empty if no operating systems were found."
13073 msgstr ""
13074
13075 # type: textblock
13076 #. type: textblock
13077 #: ../src/guestfs-actions.pod:3309 ../fish/guestfish-actions.pod:2289
13078 msgid ""
13079 "If one operating system was found, then this returns a list with a single "
13080 "element, which is the name of the root filesystem of this operating system.  "
13081 "It is also possible for this function to return a list containing more than "
13082 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
13083 "element being the root filesystem of one of the operating systems."
13084 msgstr ""
13085
13086 # type: textblock
13087 #. type: textblock
13088 #: ../src/guestfs-actions.pod:3316
13089 msgid ""
13090 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
13091 "functions in order to query further information about each operating system, "
13092 "such as the name and version."
13093 msgstr ""
13094
13095 # type: textblock
13096 #. type: textblock
13097 #: ../src/guestfs-actions.pod:3321
13098 msgid ""
13099 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
13100 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
13101 "the contents.  This should be called with no disks currently mounted.  The "
13102 "function may also use Augeas, so any existing Augeas handle will be closed."
13103 msgstr ""
13104
13105 # type: textblock
13106 #. type: textblock
13107 #: ../src/guestfs-actions.pod:3327 ../fish/guestfish-actions.pod:2307
13108 msgid ""
13109 "This function cannot decrypt encrypted disks.  The caller must do that first "
13110 "(supplying the necessary keys) if the disk is encrypted."
13111 msgstr ""
13112
13113 # type: textblock
13114 #. type: textblock
13115 #: ../src/guestfs-actions.pod:3333 ../src/guestfs-actions.pod:3664
13116 #: ../src/guestfs-actions.pod:3726
13117 msgid "See also C<guestfs_list_filesystems>."
13118 msgstr ""
13119
13120 # type: =head2
13121 #. type: =head2
13122 #: ../src/guestfs-actions.pod:3341
13123 msgid "guestfs_is_blockdev"
13124 msgstr ""
13125
13126 # type: verbatim
13127 #. type: verbatim
13128 #: ../src/guestfs-actions.pod:3343
13129 #, no-wrap
13130 msgid ""
13131 " int\n"
13132 " guestfs_is_blockdev (guestfs_h *g,\n"
13133 "                      const char *path);\n"
13134 "\n"
13135 msgstr ""
13136
13137 # type: textblock
13138 #. type: textblock
13139 #: ../src/guestfs-actions.pod:3347 ../fish/guestfish-actions.pod:2319
13140 msgid ""
13141 "This returns C<true> if and only if there is a block device with the given "
13142 "C<path> name."
13143 msgstr ""
13144
13145 # type: textblock
13146 #. type: textblock
13147 #: ../src/guestfs-actions.pod:3350 ../src/guestfs-actions.pod:3379
13148 #: ../src/guestfs-actions.pod:3409 ../src/guestfs-actions.pod:3424
13149 #: ../src/guestfs-actions.pod:3440 ../src/guestfs-actions.pod:3496
13150 #: ../src/guestfs-actions.pod:3511
13151 msgid "See also C<guestfs_stat>."
13152 msgstr ""
13153
13154 # type: textblock
13155 #. type: textblock
13156 #: ../src/guestfs-actions.pod:3354 ../src/guestfs-actions.pod:3383
13157 #: ../src/guestfs-actions.pod:3428 ../src/guestfs-actions.pod:3500
13158 #: ../src/guestfs-actions.pod:3515
13159 msgid "(Added in 1.5.10)"
13160 msgstr ""
13161
13162 # type: =head2
13163 #. type: =head2
13164 #: ../src/guestfs-actions.pod:3356
13165 msgid "guestfs_is_busy"
13166 msgstr ""
13167
13168 # type: verbatim
13169 #. type: verbatim
13170 #: ../src/guestfs-actions.pod:3358
13171 #, no-wrap
13172 msgid ""
13173 " int\n"
13174 " guestfs_is_busy (guestfs_h *g);\n"
13175 "\n"
13176 msgstr ""
13177
13178 # type: textblock
13179 #. type: textblock
13180 #: ../src/guestfs-actions.pod:3361 ../fish/guestfish-actions.pod:2328
13181 msgid ""
13182 "This returns true iff this handle is busy processing a command (in the "
13183 "C<BUSY> state)."
13184 msgstr ""
13185
13186 # type: =head2
13187 #. type: =head2
13188 #: ../src/guestfs-actions.pod:3370
13189 msgid "guestfs_is_chardev"
13190 msgstr ""
13191
13192 # type: verbatim
13193 #. type: verbatim
13194 #: ../src/guestfs-actions.pod:3372
13195 #, no-wrap
13196 msgid ""
13197 " int\n"
13198 " guestfs_is_chardev (guestfs_h *g,\n"
13199 "                     const char *path);\n"
13200 "\n"
13201 msgstr ""
13202
13203 # type: textblock
13204 #. type: textblock
13205 #: ../src/guestfs-actions.pod:3376 ../fish/guestfish-actions.pod:2337
13206 msgid ""
13207 "This returns C<true> if and only if there is a character device with the "
13208 "given C<path> name."
13209 msgstr ""
13210
13211 # type: =head2
13212 #. type: =head2
13213 #: ../src/guestfs-actions.pod:3385
13214 msgid "guestfs_is_config"
13215 msgstr ""
13216
13217 # type: verbatim
13218 #. type: verbatim
13219 #: ../src/guestfs-actions.pod:3387
13220 #, no-wrap
13221 msgid ""
13222 " int\n"
13223 " guestfs_is_config (guestfs_h *g);\n"
13224 "\n"
13225 msgstr ""
13226
13227 # type: textblock
13228 #. type: textblock
13229 #: ../src/guestfs-actions.pod:3390 ../fish/guestfish-actions.pod:2346
13230 msgid ""
13231 "This returns true iff this handle is being configured (in the C<CONFIG> "
13232 "state)."
13233 msgstr ""
13234
13235 # type: =head2
13236 #. type: =head2
13237 #: ../src/guestfs-actions.pod:3399
13238 msgid "guestfs_is_dir"
13239 msgstr ""
13240
13241 # type: verbatim
13242 #. type: verbatim
13243 #: ../src/guestfs-actions.pod:3401
13244 #, no-wrap
13245 msgid ""
13246 " int\n"
13247 " guestfs_is_dir (guestfs_h *g,\n"
13248 "                 const char *path);\n"
13249 "\n"
13250 msgstr ""
13251
13252 # type: textblock
13253 #. type: textblock
13254 #: ../src/guestfs-actions.pod:3405 ../fish/guestfish-actions.pod:2355
13255 msgid ""
13256 "This returns C<true> if and only if there is a directory with the given "
13257 "C<path> name.  Note that it returns false for other objects like files."
13258 msgstr ""
13259
13260 # type: =head2
13261 #. type: =head2
13262 #: ../src/guestfs-actions.pod:3415
13263 msgid "guestfs_is_fifo"
13264 msgstr ""
13265
13266 # type: verbatim
13267 #. type: verbatim
13268 #: ../src/guestfs-actions.pod:3417
13269 #, no-wrap
13270 msgid ""
13271 " int\n"
13272 " guestfs_is_fifo (guestfs_h *g,\n"
13273 "                  const char *path);\n"
13274 "\n"
13275 msgstr ""
13276
13277 # type: textblock
13278 #. type: textblock
13279 #: ../src/guestfs-actions.pod:3421 ../fish/guestfish-actions.pod:2365
13280 msgid ""
13281 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
13282 "given C<path> name."
13283 msgstr ""
13284
13285 # type: =head2
13286 #. type: =head2
13287 #: ../src/guestfs-actions.pod:3430
13288 msgid "guestfs_is_file"
13289 msgstr ""
13290
13291 # type: verbatim
13292 #. type: verbatim
13293 #: ../src/guestfs-actions.pod:3432
13294 #, no-wrap
13295 msgid ""
13296 " int\n"
13297 " guestfs_is_file (guestfs_h *g,\n"
13298 "                  const char *path);\n"
13299 "\n"
13300 msgstr ""
13301
13302 # type: textblock
13303 #. type: textblock
13304 #: ../src/guestfs-actions.pod:3436 ../fish/guestfish-actions.pod:2374
13305 msgid ""
13306 "This returns C<true> if and only if there is a regular file with the given "
13307 "C<path> name.  Note that it returns false for other objects like directories."
13308 msgstr ""
13309
13310 # type: =head2
13311 #. type: =head2
13312 #: ../src/guestfs-actions.pod:3446
13313 msgid "guestfs_is_launching"
13314 msgstr ""
13315
13316 # type: verbatim
13317 #. type: verbatim
13318 #: ../src/guestfs-actions.pod:3448
13319 #, no-wrap
13320 msgid ""
13321 " int\n"
13322 " guestfs_is_launching (guestfs_h *g);\n"
13323 "\n"
13324 msgstr ""
13325
13326 # type: textblock
13327 #. type: textblock
13328 #: ../src/guestfs-actions.pod:3451 ../fish/guestfish-actions.pod:2384
13329 msgid ""
13330 "This returns true iff this handle is launching the subprocess (in the "
13331 "C<LAUNCHING> state)."
13332 msgstr ""
13333
13334 # type: =head2
13335 #. type: =head2
13336 #: ../src/guestfs-actions.pod:3460
13337 msgid "guestfs_is_lv"
13338 msgstr ""
13339
13340 # type: verbatim
13341 #. type: verbatim
13342 #: ../src/guestfs-actions.pod:3462
13343 #, no-wrap
13344 msgid ""
13345 " int\n"
13346 " guestfs_is_lv (guestfs_h *g,\n"
13347 "                const char *device);\n"
13348 "\n"
13349 msgstr ""
13350
13351 # type: textblock
13352 #. type: textblock
13353 #: ../src/guestfs-actions.pod:3466 ../fish/guestfish-actions.pod:2393
13354 msgid ""
13355 "This command tests whether C<device> is a logical volume, and returns true "
13356 "iff this is the case."
13357 msgstr ""
13358
13359 # type: =head2
13360 #. type: =head2
13361 #: ../src/guestfs-actions.pod:3473
13362 msgid "guestfs_is_ready"
13363 msgstr ""
13364
13365 # type: verbatim
13366 #. type: verbatim
13367 #: ../src/guestfs-actions.pod:3475
13368 #, no-wrap
13369 msgid ""
13370 " int\n"
13371 " guestfs_is_ready (guestfs_h *g);\n"
13372 "\n"
13373 msgstr ""
13374
13375 # type: textblock
13376 #. type: textblock
13377 #: ../src/guestfs-actions.pod:3478 ../fish/guestfish-actions.pod:2400
13378 msgid ""
13379 "This returns true iff this handle is ready to accept commands (in the "
13380 "C<READY> state)."
13381 msgstr ""
13382
13383 # type: =head2
13384 #. type: =head2
13385 #: ../src/guestfs-actions.pod:3487
13386 msgid "guestfs_is_socket"
13387 msgstr ""
13388
13389 # type: verbatim
13390 #. type: verbatim
13391 #: ../src/guestfs-actions.pod:3489
13392 #, no-wrap
13393 msgid ""
13394 " int\n"
13395 " guestfs_is_socket (guestfs_h *g,\n"
13396 "                    const char *path);\n"
13397 "\n"
13398 msgstr ""
13399
13400 # type: textblock
13401 #. type: textblock
13402 #: ../src/guestfs-actions.pod:3493 ../fish/guestfish-actions.pod:2409
13403 msgid ""
13404 "This returns C<true> if and only if there is a Unix domain socket with the "
13405 "given C<path> name."
13406 msgstr ""
13407
13408 # type: =head2
13409 #. type: =head2
13410 #: ../src/guestfs-actions.pod:3502
13411 msgid "guestfs_is_symlink"
13412 msgstr ""
13413
13414 # type: verbatim
13415 #. type: verbatim
13416 #: ../src/guestfs-actions.pod:3504
13417 #, no-wrap
13418 msgid ""
13419 " int\n"
13420 " guestfs_is_symlink (guestfs_h *g,\n"
13421 "                     const char *path);\n"
13422 "\n"
13423 msgstr ""
13424
13425 # type: textblock
13426 #. type: textblock
13427 #: ../src/guestfs-actions.pod:3508 ../fish/guestfish-actions.pod:2418
13428 msgid ""
13429 "This returns C<true> if and only if there is a symbolic link with the given "
13430 "C<path> name."
13431 msgstr ""
13432
13433 #. type: =head2
13434 #: ../src/guestfs-actions.pod:3517
13435 msgid "guestfs_is_zero"
13436 msgstr ""
13437
13438 #. type: verbatim
13439 #: ../src/guestfs-actions.pod:3519
13440 #, no-wrap
13441 msgid ""
13442 " int\n"
13443 " guestfs_is_zero (guestfs_h *g,\n"
13444 "                  const char *path);\n"
13445 "\n"
13446 msgstr ""
13447
13448 #. type: textblock
13449 #: ../src/guestfs-actions.pod:3523 ../fish/guestfish-actions.pod:2427
13450 msgid ""
13451 "This returns true iff the file exists and the file is empty or it contains "
13452 "all zero bytes."
13453 msgstr ""
13454
13455 #. type: textblock
13456 #: ../src/guestfs-actions.pod:3528 ../src/guestfs-actions.pod:3542
13457 msgid "(Added in 1.11.8)"
13458 msgstr ""
13459
13460 #. type: =head2
13461 #: ../src/guestfs-actions.pod:3530
13462 msgid "guestfs_is_zero_device"
13463 msgstr ""
13464
13465 #. type: verbatim
13466 #: ../src/guestfs-actions.pod:3532
13467 #, no-wrap
13468 msgid ""
13469 " int\n"
13470 " guestfs_is_zero_device (guestfs_h *g,\n"
13471 "                         const char *device);\n"
13472 "\n"
13473 msgstr ""
13474
13475 #. type: textblock
13476 #: ../src/guestfs-actions.pod:3536 ../fish/guestfish-actions.pod:2434
13477 msgid "This returns true iff the device exists and contains all zero bytes."
13478 msgstr ""
13479
13480 #. type: textblock
13481 #: ../src/guestfs-actions.pod:3538 ../fish/guestfish-actions.pod:2436
13482 msgid "Note that for large devices this can take a long time to run."
13483 msgstr ""
13484
13485 # type: =head2
13486 #. type: =head2
13487 #: ../src/guestfs-actions.pod:3544
13488 msgid "guestfs_kill_subprocess"
13489 msgstr ""
13490
13491 # type: verbatim
13492 #. type: verbatim
13493 #: ../src/guestfs-actions.pod:3546
13494 #, no-wrap
13495 msgid ""
13496 " int\n"
13497 " guestfs_kill_subprocess (guestfs_h *g);\n"
13498 "\n"
13499 msgstr ""
13500
13501 # type: textblock
13502 #. type: textblock
13503 #: ../src/guestfs-actions.pod:3549 ../fish/guestfish-actions.pod:2442
13504 msgid "This kills the qemu subprocess.  You should never need to call this."
13505 msgstr ""
13506
13507 # type: =head2
13508 #. type: =head2
13509 #: ../src/guestfs-actions.pod:3555
13510 msgid "guestfs_launch"
13511 msgstr ""
13512
13513 # type: verbatim
13514 #. type: verbatim
13515 #: ../src/guestfs-actions.pod:3557
13516 #, no-wrap
13517 msgid ""
13518 " int\n"
13519 " guestfs_launch (guestfs_h *g);\n"
13520 "\n"
13521 msgstr ""
13522
13523 # type: textblock
13524 #. type: textblock
13525 #: ../src/guestfs-actions.pod:3560 ../fish/guestfish-actions.pod:2450
13526 msgid ""
13527 "Internally libguestfs is implemented by running a virtual machine using "
13528 "L<qemu(1)>."
13529 msgstr ""
13530
13531 # type: textblock
13532 #. type: textblock
13533 #: ../src/guestfs-actions.pod:3563 ../fish/guestfish-actions.pod:2453
13534 msgid ""
13535 "You should call this after configuring the handle (eg. adding drives) but "
13536 "before performing any actions."
13537 msgstr ""
13538
13539 # type: =head2
13540 #. type: =head2
13541 #: ../src/guestfs-actions.pod:3575
13542 msgid "guestfs_lchown"
13543 msgstr ""
13544
13545 # type: verbatim
13546 #. type: verbatim
13547 #: ../src/guestfs-actions.pod:3577
13548 #, no-wrap
13549 msgid ""
13550 " int\n"
13551 " guestfs_lchown (guestfs_h *g,\n"
13552 "                 int owner,\n"
13553 "                 int group,\n"
13554 "                 const char *path);\n"
13555 "\n"
13556 msgstr ""
13557
13558 # type: textblock
13559 #. type: textblock
13560 #: ../src/guestfs-actions.pod:3583
13561 msgid ""
13562 "Change the file owner to C<owner> and group to C<group>.  This is like "
13563 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
13564 "changed, not the target."
13565 msgstr ""
13566
13567 # type: =head2
13568 #. type: =head2
13569 #: ../src/guestfs-actions.pod:3595
13570 msgid "guestfs_lgetxattr"
13571 msgstr ""
13572
13573 # type: verbatim
13574 #. type: verbatim
13575 #: ../src/guestfs-actions.pod:3597
13576 #, no-wrap
13577 msgid ""
13578 " char *\n"
13579 " guestfs_lgetxattr (guestfs_h *g,\n"
13580 "                    const char *path,\n"
13581 "                    const char *name,\n"
13582 "                    size_t *size_r);\n"
13583 "\n"
13584 msgstr ""
13585
13586 # type: textblock
13587 #. type: textblock
13588 #: ../src/guestfs-actions.pod:3603 ../fish/guestfish-actions.pod:2472
13589 msgid ""
13590 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
13591 "is a symlink, then this call returns an extended attribute from the symlink."
13592 msgstr ""
13593
13594 # type: textblock
13595 #. type: textblock
13596 #: ../src/guestfs-actions.pod:3617
13597 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
13598 msgstr ""
13599
13600 # type: =head2
13601 #. type: =head2
13602 #: ../src/guestfs-actions.pod:3625
13603 msgid "guestfs_lgetxattrs"
13604 msgstr ""
13605
13606 # type: verbatim
13607 #. type: verbatim
13608 #: ../src/guestfs-actions.pod:3627
13609 #, no-wrap
13610 msgid ""
13611 " struct guestfs_xattr_list *\n"
13612 " guestfs_lgetxattrs (guestfs_h *g,\n"
13613 "                     const char *path);\n"
13614 "\n"
13615 msgstr ""
13616
13617 # type: textblock
13618 #. type: textblock
13619 #: ../src/guestfs-actions.pod:3631
13620 msgid ""
13621 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
13622 "then it returns the extended attributes of the link itself."
13623 msgstr ""
13624
13625 #. type: =head2
13626 #: ../src/guestfs-actions.pod:3641
13627 msgid "guestfs_list_9p"
13628 msgstr ""
13629
13630 #. type: verbatim
13631 #: ../src/guestfs-actions.pod:3643
13632 #, no-wrap
13633 msgid ""
13634 " char **\n"
13635 " guestfs_list_9p (guestfs_h *g);\n"
13636 "\n"
13637 msgstr ""
13638
13639 #. type: textblock
13640 #: ../src/guestfs-actions.pod:3646 ../fish/guestfish-actions.pod:2500
13641 msgid ""
13642 "List all 9p filesystems attached to the guest.  A list of mount tags is "
13643 "returned."
13644 msgstr ""
13645
13646 # type: =head2
13647 #. type: =head2
13648 #: ../src/guestfs-actions.pod:3655
13649 msgid "guestfs_list_devices"
13650 msgstr ""
13651
13652 # type: verbatim
13653 #. type: verbatim
13654 #: ../src/guestfs-actions.pod:3657
13655 #, no-wrap
13656 msgid ""
13657 " char **\n"
13658 " guestfs_list_devices (guestfs_h *g);\n"
13659 "\n"
13660 msgstr ""
13661
13662 # type: textblock
13663 #. type: textblock
13664 #: ../src/guestfs-actions.pod:3660 ../fish/guestfish-actions.pod:2507
13665 msgid "List all the block devices."
13666 msgstr ""
13667
13668 # type: textblock
13669 #. type: textblock
13670 #: ../src/guestfs-actions.pod:3662 ../fish/guestfish-actions.pod:2509
13671 msgid "The full block device names are returned, eg. C</dev/sda>."
13672 msgstr ""
13673
13674 # type: =head2
13675 #. type: =head2
13676 #: ../src/guestfs-actions.pod:3672
13677 msgid "guestfs_list_filesystems"
13678 msgstr ""
13679
13680 # type: verbatim
13681 #. type: verbatim
13682 #: ../src/guestfs-actions.pod:3674
13683 #, no-wrap
13684 msgid ""
13685 " char **\n"
13686 " guestfs_list_filesystems (guestfs_h *g);\n"
13687 "\n"
13688 msgstr ""
13689
13690 # type: textblock
13691 #. type: textblock
13692 #: ../src/guestfs-actions.pod:3677 ../fish/guestfish-actions.pod:2517
13693 msgid ""
13694 "This inspection command looks for filesystems on partitions, block devices "
13695 "and logical volumes, returning a list of devices containing filesystems and "
13696 "their type."
13697 msgstr ""
13698
13699 # type: textblock
13700 #. type: textblock
13701 #: ../src/guestfs-actions.pod:3681 ../fish/guestfish-actions.pod:2521
13702 msgid ""
13703 "The return value is a hash, where the keys are the devices containing "
13704 "filesystems, and the values are the filesystem types.  For example:"
13705 msgstr ""
13706
13707 # type: verbatim
13708 #. type: verbatim
13709 #: ../src/guestfs-actions.pod:3685 ../fish/guestfish-actions.pod:2525
13710 #, no-wrap
13711 msgid ""
13712 " \"/dev/sda1\" => \"ntfs\"\n"
13713 " \"/dev/sda2\" => \"ext2\"\n"
13714 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
13715 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
13716 "\n"
13717 msgstr ""
13718
13719 # type: textblock
13720 #. type: textblock
13721 #: ../src/guestfs-actions.pod:3690 ../fish/guestfish-actions.pod:2530
13722 msgid ""
13723 "The value can have the special value \"unknown\", meaning the content of the "
13724 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
13725 msgstr ""
13726
13727 # type: textblock
13728 #. type: textblock
13729 #: ../src/guestfs-actions.pod:3694
13730 msgid ""
13731 "This command runs other libguestfs commands, which might include "
13732 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
13733 "soon after launch and only when nothing is mounted."
13734 msgstr ""
13735
13736 # type: textblock
13737 #. type: textblock
13738 #: ../src/guestfs-actions.pod:3698
13739 msgid ""
13740 "Not all of the filesystems returned will be mountable.  In particular, swap "
13741 "partitions are returned in the list.  Also this command does not check that "
13742 "each filesystem found is valid and mountable, and some filesystems might be "
13743 "mountable but require special options.  Filesystems may not all belong to a "
13744 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
13745 msgstr ""
13746
13747 # type: textblock
13748 #. type: textblock
13749 #: ../src/guestfs-actions.pod:3712 ../src/guestfs-actions.pod:5386
13750 msgid "(Added in 1.5.15)"
13751 msgstr ""
13752
13753 # type: =head2
13754 #. type: =head2
13755 #: ../src/guestfs-actions.pod:3714
13756 msgid "guestfs_list_partitions"
13757 msgstr ""
13758
13759 # type: verbatim
13760 #. type: verbatim
13761 #: ../src/guestfs-actions.pod:3716
13762 #, no-wrap
13763 msgid ""
13764 " char **\n"
13765 " guestfs_list_partitions (guestfs_h *g);\n"
13766 "\n"
13767 msgstr ""
13768
13769 # type: textblock
13770 #. type: textblock
13771 #: ../src/guestfs-actions.pod:3719 ../fish/guestfish-actions.pod:2550
13772 msgid "List all the partitions detected on all block devices."
13773 msgstr ""
13774
13775 # type: textblock
13776 #. type: textblock
13777 #: ../src/guestfs-actions.pod:3721 ../fish/guestfish-actions.pod:2552
13778 msgid "The full partition device names are returned, eg. C</dev/sda1>"
13779 msgstr ""
13780
13781 # type: textblock
13782 #. type: textblock
13783 #: ../src/guestfs-actions.pod:3723
13784 msgid ""
13785 "This does not return logical volumes.  For that you will need to call "
13786 "C<guestfs_lvs>."
13787 msgstr ""
13788
13789 # type: =head2
13790 #. type: =head2
13791 #: ../src/guestfs-actions.pod:3734
13792 msgid "guestfs_ll"
13793 msgstr ""
13794
13795 # type: verbatim
13796 #. type: verbatim
13797 #: ../src/guestfs-actions.pod:3736
13798 #, no-wrap
13799 msgid ""
13800 " char *\n"
13801 " guestfs_ll (guestfs_h *g,\n"
13802 "             const char *directory);\n"
13803 "\n"
13804 msgstr ""
13805
13806 # type: textblock
13807 #. type: textblock
13808 #: ../src/guestfs-actions.pod:3740 ../fish/guestfish-actions.pod:2563
13809 msgid ""
13810 "List the files in C<directory> (relative to the root directory, there is no "
13811 "cwd) in the format of 'ls -la'."
13812 msgstr ""
13813
13814 # type: textblock
13815 #. type: textblock
13816 #: ../src/guestfs-actions.pod:3743 ../fish/guestfish-actions.pod:2566
13817 msgid ""
13818 "This command is mostly useful for interactive sessions.  It is I<not> "
13819 "intended that you try to parse the output string."
13820 msgstr ""
13821
13822 # type: =head2
13823 #. type: =head2
13824 #: ../src/guestfs-actions.pod:3751
13825 msgid "guestfs_ln"
13826 msgstr ""
13827
13828 # type: verbatim
13829 #. type: verbatim
13830 #: ../src/guestfs-actions.pod:3753
13831 #, no-wrap
13832 msgid ""
13833 " int\n"
13834 " guestfs_ln (guestfs_h *g,\n"
13835 "             const char *target,\n"
13836 "             const char *linkname);\n"
13837 "\n"
13838 msgstr ""
13839
13840 # type: textblock
13841 #. type: textblock
13842 #: ../src/guestfs-actions.pod:3758 ../fish/guestfish-actions.pod:2573
13843 msgid "This command creates a hard link using the C<ln> command."
13844 msgstr ""
13845
13846 # type: =head2
13847 #. type: =head2
13848 #: ../src/guestfs-actions.pod:3764
13849 msgid "guestfs_ln_f"
13850 msgstr ""
13851
13852 # type: verbatim
13853 #. type: verbatim
13854 #: ../src/guestfs-actions.pod:3766
13855 #, no-wrap
13856 msgid ""
13857 " int\n"
13858 " guestfs_ln_f (guestfs_h *g,\n"
13859 "               const char *target,\n"
13860 "               const char *linkname);\n"
13861 "\n"
13862 msgstr ""
13863
13864 #. type: textblock
13865 #: ../src/guestfs-actions.pod:3771 ../fish/guestfish-actions.pod:2579
13866 msgid ""
13867 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
13868 "option removes the link (C<linkname>) if it exists already."
13869 msgstr ""
13870
13871 # type: =head2
13872 #. type: =head2
13873 #: ../src/guestfs-actions.pod:3778
13874 msgid "guestfs_ln_s"
13875 msgstr ""
13876
13877 # type: verbatim
13878 #. type: verbatim
13879 #: ../src/guestfs-actions.pod:3780
13880 #, no-wrap
13881 msgid ""
13882 " int\n"
13883 " guestfs_ln_s (guestfs_h *g,\n"
13884 "               const char *target,\n"
13885 "               const char *linkname);\n"
13886 "\n"
13887 msgstr ""
13888
13889 # type: textblock
13890 #. type: textblock
13891 #: ../src/guestfs-actions.pod:3785 ../fish/guestfish-actions.pod:2586
13892 msgid "This command creates a symbolic link using the C<ln -s> command."
13893 msgstr ""
13894
13895 # type: =head2
13896 #. type: =head2
13897 #: ../src/guestfs-actions.pod:3791
13898 msgid "guestfs_ln_sf"
13899 msgstr ""
13900
13901 # type: verbatim
13902 #. type: verbatim
13903 #: ../src/guestfs-actions.pod:3793
13904 #, no-wrap
13905 msgid ""
13906 " int\n"
13907 " guestfs_ln_sf (guestfs_h *g,\n"
13908 "                const char *target,\n"
13909 "                const char *linkname);\n"
13910 "\n"
13911 msgstr ""
13912
13913 #. type: textblock
13914 #: ../src/guestfs-actions.pod:3798 ../fish/guestfish-actions.pod:2592
13915 msgid ""
13916 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
13917 "option removes the link (C<linkname>) if it exists already."
13918 msgstr ""
13919
13920 # type: =head2
13921 #. type: =head2
13922 #: ../src/guestfs-actions.pod:3805
13923 msgid "guestfs_lremovexattr"
13924 msgstr ""
13925
13926 # type: verbatim
13927 #. type: verbatim
13928 #: ../src/guestfs-actions.pod:3807
13929 #, no-wrap
13930 msgid ""
13931 " int\n"
13932 " guestfs_lremovexattr (guestfs_h *g,\n"
13933 "                       const char *xattr,\n"
13934 "                       const char *path);\n"
13935 "\n"
13936 msgstr ""
13937
13938 # type: textblock
13939 #. type: textblock
13940 #: ../src/guestfs-actions.pod:3812
13941 msgid ""
13942 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
13943 "link, then it removes an extended attribute of the link itself."
13944 msgstr ""
13945
13946 # type: =head2
13947 #. type: =head2
13948 #: ../src/guestfs-actions.pod:3820
13949 msgid "guestfs_ls"
13950 msgstr ""
13951
13952 # type: verbatim
13953 #. type: verbatim
13954 #: ../src/guestfs-actions.pod:3822
13955 #, no-wrap
13956 msgid ""
13957 " char **\n"
13958 " guestfs_ls (guestfs_h *g,\n"
13959 "             const char *directory);\n"
13960 "\n"
13961 msgstr ""
13962
13963 # type: textblock
13964 #. type: textblock
13965 #: ../src/guestfs-actions.pod:3826 ../fish/guestfish-actions.pod:2607
13966 msgid ""
13967 "List the files in C<directory> (relative to the root directory, there is no "
13968 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
13969 msgstr ""
13970
13971 # type: textblock
13972 #. type: textblock
13973 #: ../src/guestfs-actions.pod:3830
13974 msgid ""
13975 "This command is mostly useful for interactive sessions.  Programs should "
13976 "probably use C<guestfs_readdir> instead."
13977 msgstr ""
13978
13979 # type: =head2
13980 #. type: =head2
13981 #: ../src/guestfs-actions.pod:3839
13982 msgid "guestfs_lsetxattr"
13983 msgstr ""
13984
13985 # type: verbatim
13986 #. type: verbatim
13987 #: ../src/guestfs-actions.pod:3841
13988 #, no-wrap
13989 msgid ""
13990 " int\n"
13991 " guestfs_lsetxattr (guestfs_h *g,\n"
13992 "                    const char *xattr,\n"
13993 "                    const char *val,\n"
13994 "                    int vallen,\n"
13995 "                    const char *path);\n"
13996 "\n"
13997 msgstr ""
13998
13999 # type: textblock
14000 #. type: textblock
14001 #: ../src/guestfs-actions.pod:3848
14002 msgid ""
14003 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
14004 "then it sets an extended attribute of the link itself."
14005 msgstr ""
14006
14007 # type: =head2
14008 #. type: =head2
14009 #: ../src/guestfs-actions.pod:3856
14010 msgid "guestfs_lstat"
14011 msgstr ""
14012
14013 # type: verbatim
14014 #. type: verbatim
14015 #: ../src/guestfs-actions.pod:3858
14016 #, no-wrap
14017 msgid ""
14018 " struct guestfs_stat *\n"
14019 " guestfs_lstat (guestfs_h *g,\n"
14020 "                const char *path);\n"
14021 "\n"
14022 msgstr ""
14023
14024 # type: textblock
14025 #. type: textblock
14026 #: ../src/guestfs-actions.pod:3862 ../src/guestfs-actions.pod:6521
14027 #: ../fish/guestfish-actions.pod:2626 ../fish/guestfish-actions.pod:4353
14028 msgid "Returns file information for the given C<path>."
14029 msgstr ""
14030
14031 # type: textblock
14032 #. type: textblock
14033 #: ../src/guestfs-actions.pod:3864
14034 msgid ""
14035 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
14036 "link, then the link is stat-ed, not the file it refers to."
14037 msgstr ""
14038
14039 # type: textblock
14040 #. type: textblock
14041 #: ../src/guestfs-actions.pod:3868 ../fish/guestfish-actions.pod:2632
14042 msgid "This is the same as the C<lstat(2)> system call."
14043 msgstr ""
14044
14045 # type: textblock
14046 #. type: textblock
14047 #: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:6525
14048 msgid ""
14049 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
14050 "error.  I<The caller must call C<guestfs_free_stat> after use>."
14051 msgstr ""
14052
14053 # type: textblock
14054 #. type: textblock
14055 #: ../src/guestfs-actions.pod:3874 ../src/guestfs-actions.pod:6529
14056 #: ../src/guestfs-actions.pod:6547 ../src/guestfs-actions.pod:6928
14057 msgid "(Added in 0.9.2)"
14058 msgstr ""
14059
14060 # type: =head2
14061 #. type: =head2
14062 #: ../src/guestfs-actions.pod:3876
14063 msgid "guestfs_lstatlist"
14064 msgstr ""
14065
14066 # type: verbatim
14067 #. type: verbatim
14068 #: ../src/guestfs-actions.pod:3878
14069 #, no-wrap
14070 msgid ""
14071 " struct guestfs_stat_list *\n"
14072 " guestfs_lstatlist (guestfs_h *g,\n"
14073 "                    const char *path,\n"
14074 "                    char *const *names);\n"
14075 "\n"
14076 msgstr ""
14077
14078 # type: textblock
14079 #. type: textblock
14080 #: ../src/guestfs-actions.pod:3883
14081 msgid ""
14082 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
14083 "files, where all files are in the directory C<path>.  C<names> is the list "
14084 "of files from this directory."
14085 msgstr ""
14086
14087 # type: textblock
14088 #. type: textblock
14089 #: ../src/guestfs-actions.pod:3887 ../fish/guestfish-actions.pod:2642
14090 msgid ""
14091 "On return you get a list of stat structs, with a one-to-one correspondence "
14092 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
14093 "then the C<ino> field of that structure is set to C<-1>."
14094 msgstr ""
14095
14096 # type: textblock
14097 #. type: textblock
14098 #: ../src/guestfs-actions.pod:3892
14099 msgid ""
14100 "This call is intended for programs that want to efficiently list a directory "
14101 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
14102 "for a similarly efficient call for getting extended attributes.  Very long "
14103 "directory listings might cause the protocol message size to be exceeded, "
14104 "causing this call to fail.  The caller must split up such requests into "
14105 "smaller groups of names."
14106 msgstr ""
14107
14108 # type: textblock
14109 #. type: textblock
14110 #: ../src/guestfs-actions.pod:3900
14111 msgid ""
14112 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
14113 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
14114 msgstr ""
14115
14116 # type: =head2
14117 #. type: =head2
14118 #: ../src/guestfs-actions.pod:3906
14119 msgid "guestfs_luks_add_key"
14120 msgstr ""
14121
14122 # type: verbatim
14123 #. type: verbatim
14124 #: ../src/guestfs-actions.pod:3908
14125 #, no-wrap
14126 msgid ""
14127 " int\n"
14128 " guestfs_luks_add_key (guestfs_h *g,\n"
14129 "                       const char *device,\n"
14130 "                       const char *key,\n"
14131 "                       const char *newkey,\n"
14132 "                       int keyslot);\n"
14133 "\n"
14134 msgstr ""
14135
14136 # type: textblock
14137 #. type: textblock
14138 #: ../src/guestfs-actions.pod:3915 ../fish/guestfish-actions.pod:2659
14139 msgid ""
14140 "This command adds a new key on LUKS device C<device>.  C<key> is any "
14141 "existing key, and is used to access the device.  C<newkey> is the new key to "
14142 "add.  C<keyslot> is the key slot that will be replaced."
14143 msgstr ""
14144
14145 # type: textblock
14146 #. type: textblock
14147 #: ../src/guestfs-actions.pod:3920
14148 msgid ""
14149 "Note that if C<keyslot> already contains a key, then this command will "
14150 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
14151 msgstr ""
14152
14153 # type: textblock
14154 #. type: textblock
14155 #: ../src/guestfs-actions.pod:3926 ../src/guestfs-actions.pod:3966
14156 #: ../src/guestfs-actions.pod:3989 ../src/guestfs-actions.pod:4009
14157 #: ../src/guestfs-actions.pod:4041 ../src/guestfs-actions.pod:4060
14158 msgid ""
14159 "This function takes a key or passphrase parameter which could contain "
14160 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
14161 "information."
14162 msgstr ""
14163
14164 # type: textblock
14165 #. type: textblock
14166 #: ../src/guestfs-actions.pod:3930 ../src/guestfs-actions.pod:3970
14167 #: ../src/guestfs-actions.pod:3993 ../src/guestfs-actions.pod:4013
14168 msgid "(Added in 1.5.2)"
14169 msgstr ""
14170
14171 # type: =head2
14172 #. type: =head2
14173 #: ../src/guestfs-actions.pod:3932
14174 msgid "guestfs_luks_close"
14175 msgstr ""
14176
14177 # type: verbatim
14178 #. type: verbatim
14179 #: ../src/guestfs-actions.pod:3934
14180 #, no-wrap
14181 msgid ""
14182 " int\n"
14183 " guestfs_luks_close (guestfs_h *g,\n"
14184 "                     const char *device);\n"
14185 "\n"
14186 msgstr ""
14187
14188 # type: textblock
14189 #. type: textblock
14190 #: ../src/guestfs-actions.pod:3938
14191 msgid ""
14192 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
14193 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
14194 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
14195 "underlying block device."
14196 msgstr ""
14197
14198 # type: textblock
14199 #. type: textblock
14200 #: ../src/guestfs-actions.pod:3946 ../src/guestfs-actions.pod:4045
14201 #: ../src/guestfs-actions.pod:4064 ../src/guestfs-actions.pod:4114
14202 #: ../src/guestfs-actions.pod:4162
14203 msgid "(Added in 1.5.1)"
14204 msgstr ""
14205
14206 # type: =head2
14207 #. type: =head2
14208 #: ../src/guestfs-actions.pod:3948
14209 msgid "guestfs_luks_format"
14210 msgstr ""
14211
14212 # type: verbatim
14213 #. type: verbatim
14214 #: ../src/guestfs-actions.pod:3950
14215 #, no-wrap
14216 msgid ""
14217 " int\n"
14218 " guestfs_luks_format (guestfs_h *g,\n"
14219 "                      const char *device,\n"
14220 "                      const char *key,\n"
14221 "                      int keyslot);\n"
14222 "\n"
14223 msgstr ""
14224
14225 # type: textblock
14226 #. type: textblock
14227 #: ../src/guestfs-actions.pod:3956 ../fish/guestfish-actions.pod:2685
14228 msgid ""
14229 "This command erases existing data on C<device> and formats the device as a "
14230 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
14231 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
14232 msgstr ""
14233
14234 # type: textblock
14235 #. type: textblock
14236 #: ../src/guestfs-actions.pod:3963 ../src/guestfs-actions.pod:3986
14237 #: ../src/guestfs-actions.pod:4126 ../src/guestfs-actions.pod:5137
14238 #: ../src/guestfs-actions.pod:5919 ../src/guestfs-actions.pod:6328
14239 #: ../src/guestfs-actions.pod:6358 ../src/guestfs-actions.pod:6391
14240 #: ../src/guestfs-actions.pod:7573 ../fish/guestfish-actions.pod:2693
14241 #: ../fish/guestfish-actions.pod:2706 ../fish/guestfish-actions.pod:2790
14242 #: ../fish/guestfish-actions.pod:3394 ../fish/guestfish-actions.pod:3914
14243 #: ../fish/guestfish-actions.pod:4224 ../fish/guestfish-actions.pod:4247
14244 #: ../fish/guestfish-actions.pod:4269 ../fish/guestfish-actions.pod:4999
14245 msgid ""
14246 "B<This command is dangerous.  Without careful use you can easily destroy all "
14247 "your data>."
14248 msgstr ""
14249
14250 # type: =head2
14251 #. type: =head2
14252 #: ../src/guestfs-actions.pod:3972
14253 msgid "guestfs_luks_format_cipher"
14254 msgstr ""
14255
14256 # type: verbatim
14257 #. type: verbatim
14258 #: ../src/guestfs-actions.pod:3974
14259 #, no-wrap
14260 msgid ""
14261 " int\n"
14262 " guestfs_luks_format_cipher (guestfs_h *g,\n"
14263 "                             const char *device,\n"
14264 "                             const char *key,\n"
14265 "                             int keyslot,\n"
14266 "                             const char *cipher);\n"
14267 "\n"
14268 msgstr ""
14269
14270 # type: textblock
14271 #. type: textblock
14272 #: ../src/guestfs-actions.pod:3981
14273 msgid ""
14274 "This command is the same as C<guestfs_luks_format> but it also allows you to "
14275 "set the C<cipher> used."
14276 msgstr ""
14277
14278 # type: =head2
14279 #. type: =head2
14280 #: ../src/guestfs-actions.pod:3995
14281 msgid "guestfs_luks_kill_slot"
14282 msgstr ""
14283
14284 # type: verbatim
14285 #. type: verbatim
14286 #: ../src/guestfs-actions.pod:3997
14287 #, no-wrap
14288 msgid ""
14289 " int\n"
14290 " guestfs_luks_kill_slot (guestfs_h *g,\n"
14291 "                         const char *device,\n"
14292 "                         const char *key,\n"
14293 "                         int keyslot);\n"
14294 "\n"
14295 msgstr ""
14296
14297 # type: textblock
14298 #. type: textblock
14299 #: ../src/guestfs-actions.pod:4003 ../fish/guestfish-actions.pod:2713
14300 msgid ""
14301 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
14302 "device C<device>.  C<key> must be one of the I<other> keys."
14303 msgstr ""
14304
14305 # type: =head2
14306 #. type: =head2
14307 #: ../src/guestfs-actions.pod:4015
14308 msgid "guestfs_luks_open"
14309 msgstr ""
14310
14311 # type: verbatim
14312 #. type: verbatim
14313 #: ../src/guestfs-actions.pod:4017
14314 #, no-wrap
14315 msgid ""
14316 " int\n"
14317 " guestfs_luks_open (guestfs_h *g,\n"
14318 "                    const char *device,\n"
14319 "                    const char *key,\n"
14320 "                    const char *mapname);\n"
14321 "\n"
14322 msgstr ""
14323
14324 # type: textblock
14325 #. type: textblock
14326 #: ../src/guestfs-actions.pod:4023 ../fish/guestfish-actions.pod:2724
14327 msgid ""
14328 "This command opens a block device which has been encrypted according to the "
14329 "Linux Unified Key Setup (LUKS) standard."
14330 msgstr ""
14331
14332 # type: textblock
14333 #. type: textblock
14334 #: ../src/guestfs-actions.pod:4026 ../fish/guestfish-actions.pod:2727
14335 msgid "C<device> is the encrypted block device or partition."
14336 msgstr ""
14337
14338 # type: textblock
14339 #. type: textblock
14340 #: ../src/guestfs-actions.pod:4028 ../fish/guestfish-actions.pod:2729
14341 msgid ""
14342 "The caller must supply one of the keys associated with the LUKS block "
14343 "device, in the C<key> parameter."
14344 msgstr ""
14345
14346 # type: textblock
14347 #. type: textblock
14348 #: ../src/guestfs-actions.pod:4031 ../fish/guestfish-actions.pod:2732
14349 msgid ""
14350 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
14351 "writes to this block device are decrypted from and encrypted to the "
14352 "underlying C<device> respectively."
14353 msgstr ""
14354
14355 # type: textblock
14356 #. type: textblock
14357 #: ../src/guestfs-actions.pod:4035
14358 msgid ""
14359 "If this block device contains LVM volume groups, then calling "
14360 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
14361 "visible."
14362 msgstr ""
14363
14364 # type: =head2
14365 #. type: =head2
14366 #: ../src/guestfs-actions.pod:4047
14367 msgid "guestfs_luks_open_ro"
14368 msgstr ""
14369
14370 # type: verbatim
14371 #. type: verbatim
14372 #: ../src/guestfs-actions.pod:4049
14373 #, no-wrap
14374 msgid ""
14375 " int\n"
14376 " guestfs_luks_open_ro (guestfs_h *g,\n"
14377 "                       const char *device,\n"
14378 "                       const char *key,\n"
14379 "                       const char *mapname);\n"
14380 "\n"
14381 msgstr ""
14382
14383 # type: textblock
14384 #. type: textblock
14385 #: ../src/guestfs-actions.pod:4055
14386 msgid ""
14387 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
14388 "created."
14389 msgstr ""
14390
14391 # type: =head2
14392 #. type: =head2
14393 #: ../src/guestfs-actions.pod:4066
14394 msgid "guestfs_lvcreate"
14395 msgstr ""
14396
14397 # type: verbatim
14398 #. type: verbatim
14399 #: ../src/guestfs-actions.pod:4068
14400 #, no-wrap
14401 msgid ""
14402 " int\n"
14403 " guestfs_lvcreate (guestfs_h *g,\n"
14404 "                   const char *logvol,\n"
14405 "                   const char *volgroup,\n"
14406 "                   int mbytes);\n"
14407 "\n"
14408 msgstr ""
14409
14410 # type: textblock
14411 #. type: textblock
14412 #: ../src/guestfs-actions.pod:4074 ../fish/guestfish-actions.pod:2757
14413 msgid ""
14414 "This creates an LVM logical volume called C<logvol> on the volume group "
14415 "C<volgroup>, with C<size> megabytes."
14416 msgstr ""
14417
14418 # type: =head2
14419 #. type: =head2
14420 #: ../src/guestfs-actions.pod:4081
14421 msgid "guestfs_lvm_canonical_lv_name"
14422 msgstr ""
14423
14424 # type: verbatim
14425 #. type: verbatim
14426 #: ../src/guestfs-actions.pod:4083
14427 #, no-wrap
14428 msgid ""
14429 " char *\n"
14430 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
14431 "                                const char *lvname);\n"
14432 "\n"
14433 msgstr ""
14434
14435 # type: textblock
14436 #. type: textblock
14437 #: ../src/guestfs-actions.pod:4087 ../fish/guestfish-actions.pod:2764
14438 msgid ""
14439 "This converts alternative naming schemes for LVs that you might find to the "
14440 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
14441 "LV>."
14442 msgstr ""
14443
14444 # type: textblock
14445 #. type: textblock
14446 #: ../src/guestfs-actions.pod:4091 ../fish/guestfish-actions.pod:2768
14447 msgid ""
14448 "This command returns an error if the C<lvname> parameter does not refer to a "
14449 "logical volume."
14450 msgstr ""
14451
14452 # type: textblock
14453 #. type: textblock
14454 #: ../src/guestfs-actions.pod:4094
14455 msgid "See also C<guestfs_is_lv>."
14456 msgstr ""
14457
14458 # type: textblock
14459 #. type: textblock
14460 #: ../src/guestfs-actions.pod:4099
14461 msgid "(Added in 1.5.24)"
14462 msgstr ""
14463
14464 # type: =head2
14465 #. type: =head2
14466 #: ../src/guestfs-actions.pod:4101
14467 msgid "guestfs_lvm_clear_filter"
14468 msgstr ""
14469
14470 # type: verbatim
14471 #. type: verbatim
14472 #: ../src/guestfs-actions.pod:4103
14473 #, no-wrap
14474 msgid ""
14475 " int\n"
14476 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
14477 "\n"
14478 msgstr ""
14479
14480 # type: textblock
14481 #. type: textblock
14482 #: ../src/guestfs-actions.pod:4106
14483 msgid ""
14484 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
14485 "see every block device."
14486 msgstr ""
14487
14488 # type: textblock
14489 #. type: textblock
14490 #: ../src/guestfs-actions.pod:4109 ../src/guestfs-actions.pod:4151
14491 #: ../fish/guestfish-actions.pod:2780 ../fish/guestfish-actions.pod:2811
14492 msgid ""
14493 "This command also clears the LVM cache and performs a volume group scan."
14494 msgstr ""
14495
14496 # type: =head2
14497 #. type: =head2
14498 #: ../src/guestfs-actions.pod:4116
14499 msgid "guestfs_lvm_remove_all"
14500 msgstr ""
14501
14502 # type: verbatim
14503 #. type: verbatim
14504 #: ../src/guestfs-actions.pod:4118
14505 #, no-wrap
14506 msgid ""
14507 " int\n"
14508 " guestfs_lvm_remove_all (guestfs_h *g);\n"
14509 "\n"
14510 msgstr ""
14511
14512 # type: textblock
14513 #. type: textblock
14514 #: ../src/guestfs-actions.pod:4121 ../fish/guestfish-actions.pod:2787
14515 msgid ""
14516 "This command removes all LVM logical volumes, volume groups and physical "
14517 "volumes."
14518 msgstr ""
14519
14520 # type: =head2
14521 #. type: =head2
14522 #: ../src/guestfs-actions.pod:4131
14523 msgid "guestfs_lvm_set_filter"
14524 msgstr ""
14525
14526 # type: verbatim
14527 #. type: verbatim
14528 #: ../src/guestfs-actions.pod:4133
14529 #, no-wrap
14530 msgid ""
14531 " int\n"
14532 " guestfs_lvm_set_filter (guestfs_h *g,\n"
14533 "                         char *const *devices);\n"
14534 "\n"
14535 msgstr ""
14536
14537 # type: textblock
14538 #. type: textblock
14539 #: ../src/guestfs-actions.pod:4137 ../fish/guestfish-actions.pod:2797
14540 msgid ""
14541 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
14542 "block devices in the list C<devices>, and will ignore all other attached "
14543 "block devices."
14544 msgstr ""
14545
14546 # type: textblock
14547 #. type: textblock
14548 #: ../src/guestfs-actions.pod:4141 ../fish/guestfish-actions.pod:2801
14549 msgid ""
14550 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
14551 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
14552 "there are two types of duplication possible: either cloned PVs/VGs which "
14553 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
14554 "same name.  In normal operation you cannot create this situation, but you "
14555 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
14556 "inside the LVM metadata."
14557 msgstr ""
14558
14559 # type: textblock
14560 #. type: textblock
14561 #: ../src/guestfs-actions.pod:4154 ../fish/guestfish-actions.pod:2814
14562 msgid "You can filter whole block devices or individual partitions."
14563 msgstr ""
14564
14565 # type: textblock
14566 #. type: textblock
14567 #: ../src/guestfs-actions.pod:4156 ../fish/guestfish-actions.pod:2816
14568 msgid ""
14569 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
14570 "filesystem), even if you are not filtering out that VG."
14571 msgstr ""
14572
14573 # type: =head2
14574 #. type: =head2
14575 #: ../src/guestfs-actions.pod:4164
14576 msgid "guestfs_lvremove"
14577 msgstr ""
14578
14579 # type: verbatim
14580 #. type: verbatim
14581 #: ../src/guestfs-actions.pod:4166
14582 #, no-wrap
14583 msgid ""
14584 " int\n"
14585 " guestfs_lvremove (guestfs_h *g,\n"
14586 "                   const char *device);\n"
14587 "\n"
14588 msgstr ""
14589
14590 # type: textblock
14591 #. type: textblock
14592 #: ../src/guestfs-actions.pod:4170 ../fish/guestfish-actions.pod:2824
14593 msgid ""
14594 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
14595 "LV, such as C</dev/VG/LV>."
14596 msgstr ""
14597
14598 # type: textblock
14599 #. type: textblock
14600 #: ../src/guestfs-actions.pod:4173 ../fish/guestfish-actions.pod:2827
14601 msgid ""
14602 "You can also remove all LVs in a volume group by specifying the VG name, C</"
14603 "dev/VG>."
14604 msgstr ""
14605
14606 # type: textblock
14607 #. type: textblock
14608 #: ../src/guestfs-actions.pod:4178 ../src/guestfs-actions.pod:5483
14609 #: ../src/guestfs-actions.pod:7304
14610 msgid "(Added in 1.0.13)"
14611 msgstr ""
14612
14613 # type: =head2
14614 #. type: =head2
14615 #: ../src/guestfs-actions.pod:4180
14616 msgid "guestfs_lvrename"
14617 msgstr ""
14618
14619 # type: verbatim
14620 #. type: verbatim
14621 #: ../src/guestfs-actions.pod:4182
14622 #, no-wrap
14623 msgid ""
14624 " int\n"
14625 " guestfs_lvrename (guestfs_h *g,\n"
14626 "                   const char *logvol,\n"
14627 "                   const char *newlogvol);\n"
14628 "\n"
14629 msgstr ""
14630
14631 # type: textblock
14632 #. type: textblock
14633 #: ../src/guestfs-actions.pod:4187 ../fish/guestfish-actions.pod:2834
14634 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
14635 msgstr ""
14636
14637 # type: textblock
14638 #. type: textblock
14639 #: ../src/guestfs-actions.pod:4191 ../src/guestfs-actions.pod:7317
14640 msgid "(Added in 1.0.83)"
14641 msgstr ""
14642
14643 # type: =head2
14644 #. type: =head2
14645 #: ../src/guestfs-actions.pod:4193
14646 msgid "guestfs_lvresize"
14647 msgstr ""
14648
14649 # type: verbatim
14650 #. type: verbatim
14651 #: ../src/guestfs-actions.pod:4195
14652 #, no-wrap
14653 msgid ""
14654 " int\n"
14655 " guestfs_lvresize (guestfs_h *g,\n"
14656 "                   const char *device,\n"
14657 "                   int mbytes);\n"
14658 "\n"
14659 msgstr ""
14660
14661 # type: textblock
14662 #. type: textblock
14663 #: ../src/guestfs-actions.pod:4200 ../fish/guestfish-actions.pod:2840
14664 msgid ""
14665 "This resizes (expands or shrinks) an existing LVM logical volume to "
14666 "C<mbytes>.  When reducing, data in the reduced part is lost."
14667 msgstr ""
14668
14669 # type: =head2
14670 #. type: =head2
14671 #: ../src/guestfs-actions.pod:4208
14672 msgid "guestfs_lvresize_free"
14673 msgstr ""
14674
14675 # type: verbatim
14676 #. type: verbatim
14677 #: ../src/guestfs-actions.pod:4210
14678 #, no-wrap
14679 msgid ""
14680 " int\n"
14681 " guestfs_lvresize_free (guestfs_h *g,\n"
14682 "                        const char *lv,\n"
14683 "                        int percent);\n"
14684 "\n"
14685 msgstr ""
14686
14687 # type: textblock
14688 #. type: textblock
14689 #: ../src/guestfs-actions.pod:4215 ../fish/guestfish-actions.pod:2848
14690 msgid ""
14691 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
14692 "remaining free space in the volume group.  Commonly you would call this with "
14693 "pc = 100 which expands the logical volume as much as possible, using all "
14694 "remaining free space in the volume group."
14695 msgstr ""
14696
14697 # type: textblock
14698 #. type: textblock
14699 #: ../src/guestfs-actions.pod:4223
14700 msgid "(Added in 1.3.3)"
14701 msgstr ""
14702
14703 # type: =head2
14704 #. type: =head2
14705 #: ../src/guestfs-actions.pod:4225
14706 msgid "guestfs_lvs"
14707 msgstr ""
14708
14709 # type: verbatim
14710 #. type: verbatim
14711 #: ../src/guestfs-actions.pod:4227
14712 #, no-wrap
14713 msgid ""
14714 " char **\n"
14715 " guestfs_lvs (guestfs_h *g);\n"
14716 "\n"
14717 msgstr ""
14718
14719 # type: textblock
14720 #. type: textblock
14721 #: ../src/guestfs-actions.pod:4230 ../fish/guestfish-actions.pod:2858
14722 msgid ""
14723 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
14724 "(8)> command."
14725 msgstr ""
14726
14727 # type: textblock
14728 #. type: textblock
14729 #: ../src/guestfs-actions.pod:4233 ../fish/guestfish-actions.pod:2861
14730 msgid ""
14731 "This returns a list of the logical volume device names (eg. C</dev/"
14732 "VolGroup00/LogVol00>)."
14733 msgstr ""
14734
14735 # type: textblock
14736 #. type: textblock
14737 #: ../src/guestfs-actions.pod:4236
14738 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
14739 msgstr ""
14740
14741 # type: =head2
14742 #. type: =head2
14743 #: ../src/guestfs-actions.pod:4244
14744 msgid "guestfs_lvs_full"
14745 msgstr ""
14746
14747 # type: verbatim
14748 #. type: verbatim
14749 #: ../src/guestfs-actions.pod:4246
14750 #, no-wrap
14751 msgid ""
14752 " struct guestfs_lvm_lv_list *\n"
14753 " guestfs_lvs_full (guestfs_h *g);\n"
14754 "\n"
14755 msgstr ""
14756
14757 # type: textblock
14758 #. type: textblock
14759 #: ../src/guestfs-actions.pod:4249 ../fish/guestfish-actions.pod:2870
14760 msgid ""
14761 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
14762 "(8)> command.  The \"full\" version includes all fields."
14763 msgstr ""
14764
14765 # type: textblock
14766 #. type: textblock
14767 #: ../src/guestfs-actions.pod:4252
14768 msgid ""
14769 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
14770 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
14771 msgstr ""
14772
14773 # type: =head2
14774 #. type: =head2
14775 #: ../src/guestfs-actions.pod:4258
14776 msgid "guestfs_lvuuid"
14777 msgstr ""
14778
14779 # type: verbatim
14780 #. type: verbatim
14781 #: ../src/guestfs-actions.pod:4260
14782 #, no-wrap
14783 msgid ""
14784 " char *\n"
14785 " guestfs_lvuuid (guestfs_h *g,\n"
14786 "                 const char *device);\n"
14787 "\n"
14788 msgstr ""
14789
14790 # type: textblock
14791 #. type: textblock
14792 #: ../src/guestfs-actions.pod:4264 ../fish/guestfish-actions.pod:2877
14793 msgid "This command returns the UUID of the LVM LV C<device>."
14794 msgstr ""
14795
14796 # type: =head2
14797 #. type: =head2
14798 #: ../src/guestfs-actions.pod:4271
14799 msgid "guestfs_lxattrlist"
14800 msgstr ""
14801
14802 # type: verbatim
14803 #. type: verbatim
14804 #: ../src/guestfs-actions.pod:4273
14805 #, no-wrap
14806 msgid ""
14807 " struct guestfs_xattr_list *\n"
14808 " guestfs_lxattrlist (guestfs_h *g,\n"
14809 "                     const char *path,\n"
14810 "                     char *const *names);\n"
14811 "\n"
14812 msgstr ""
14813
14814 # type: textblock
14815 #. type: textblock
14816 #: ../src/guestfs-actions.pod:4278 ../fish/guestfish-actions.pod:2883
14817 msgid ""
14818 "This call allows you to get the extended attributes of multiple files, where "
14819 "all files are in the directory C<path>.  C<names> is the list of files from "
14820 "this directory."
14821 msgstr ""
14822
14823 # type: textblock
14824 #. type: textblock
14825 #: ../src/guestfs-actions.pod:4282 ../fish/guestfish-actions.pod:2887
14826 msgid ""
14827 "On return you get a flat list of xattr structs which must be interpreted "
14828 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
14829 "C<attrval> in this struct is zero-length to indicate there was an error "
14830 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
14831 "number (the number of following attributes for this file, which could be C<"
14832 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
14833 "for the first named file.  This repeats for the second and subsequent files."
14834 msgstr ""
14835
14836 # type: textblock
14837 #. type: textblock
14838 #: ../src/guestfs-actions.pod:4292
14839 msgid ""
14840 "This call is intended for programs that want to efficiently list a directory "
14841 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
14842 "a similarly efficient call for getting standard stats.  Very long directory "
14843 "listings might cause the protocol message size to be exceeded, causing this "
14844 "call to fail.  The caller must split up such requests into smaller groups of "
14845 "names."
14846 msgstr ""
14847
14848 # type: =head2
14849 #. type: =head2
14850 #: ../src/guestfs-actions.pod:4306
14851 msgid "guestfs_mkdir"
14852 msgstr ""
14853
14854 # type: verbatim
14855 #. type: verbatim
14856 #: ../src/guestfs-actions.pod:4308
14857 #, no-wrap
14858 msgid ""
14859 " int\n"
14860 " guestfs_mkdir (guestfs_h *g,\n"
14861 "                const char *path);\n"
14862 "\n"
14863 msgstr ""
14864
14865 # type: textblock
14866 #. type: textblock
14867 #: ../src/guestfs-actions.pod:4312 ../fish/guestfish-actions.pod:2909
14868 msgid "Create a directory named C<path>."
14869 msgstr ""
14870
14871 # type: =head2
14872 #. type: =head2
14873 #: ../src/guestfs-actions.pod:4318
14874 msgid "guestfs_mkdir_mode"
14875 msgstr ""
14876
14877 # type: verbatim
14878 #. type: verbatim
14879 #: ../src/guestfs-actions.pod:4320
14880 #, no-wrap
14881 msgid ""
14882 " int\n"
14883 " guestfs_mkdir_mode (guestfs_h *g,\n"
14884 "                     const char *path,\n"
14885 "                     int mode);\n"
14886 "\n"
14887 msgstr ""
14888
14889 # type: textblock
14890 #. type: textblock
14891 #: ../src/guestfs-actions.pod:4325 ../fish/guestfish-actions.pod:2915
14892 msgid ""
14893 "This command creates a directory, setting the initial permissions of the "
14894 "directory to C<mode>."
14895 msgstr ""
14896
14897 # type: textblock
14898 #. type: textblock
14899 #: ../src/guestfs-actions.pod:4328 ../fish/guestfish-actions.pod:2918
14900 msgid ""
14901 "For common Linux filesystems, the actual mode which is set will be C<mode & "
14902 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
14903 "other ways."
14904 msgstr ""
14905
14906 # type: textblock
14907 #. type: textblock
14908 #: ../src/guestfs-actions.pod:4332
14909 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
14910 msgstr ""
14911
14912 # type: =head2
14913 #. type: =head2
14914 #: ../src/guestfs-actions.pod:4338
14915 msgid "guestfs_mkdir_p"
14916 msgstr ""
14917
14918 # type: verbatim
14919 #. type: verbatim
14920 #: ../src/guestfs-actions.pod:4340
14921 #, no-wrap
14922 msgid ""
14923 " int\n"
14924 " guestfs_mkdir_p (guestfs_h *g,\n"
14925 "                  const char *path);\n"
14926 "\n"
14927 msgstr ""
14928
14929 # type: textblock
14930 #. type: textblock
14931 #: ../src/guestfs-actions.pod:4344 ../fish/guestfish-actions.pod:2928
14932 msgid ""
14933 "Create a directory named C<path>, creating any parent directories as "
14934 "necessary.  This is like the C<mkdir -p> shell command."
14935 msgstr ""
14936
14937 # type: =head2
14938 #. type: =head2
14939 #: ../src/guestfs-actions.pod:4351
14940 msgid "guestfs_mkdtemp"
14941 msgstr ""
14942
14943 # type: verbatim
14944 #. type: verbatim
14945 #: ../src/guestfs-actions.pod:4353
14946 #, no-wrap
14947 msgid ""
14948 " char *\n"
14949 " guestfs_mkdtemp (guestfs_h *g,\n"
14950 "                  const char *template);\n"
14951 "\n"
14952 msgstr ""
14953
14954 # type: textblock
14955 #. type: textblock
14956 #: ../src/guestfs-actions.pod:4357 ../fish/guestfish-actions.pod:2935
14957 msgid ""
14958 "This command creates a temporary directory.  The C<template> parameter "
14959 "should be a full pathname for the temporary directory name with the final "
14960 "six characters being \"XXXXXX\"."
14961 msgstr ""
14962
14963 # type: textblock
14964 #. type: textblock
14965 #: ../src/guestfs-actions.pod:4362 ../fish/guestfish-actions.pod:2940
14966 msgid ""
14967 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
14968 "being suitable for Windows filesystems."
14969 msgstr ""
14970
14971 # type: textblock
14972 #. type: textblock
14973 #: ../src/guestfs-actions.pod:4365 ../fish/guestfish-actions.pod:2943
14974 msgid "The name of the temporary directory that was created is returned."
14975 msgstr ""
14976
14977 # type: textblock
14978 #. type: textblock
14979 #: ../src/guestfs-actions.pod:4368 ../fish/guestfish-actions.pod:2946
14980 msgid "The temporary directory is created with mode 0700 and is owned by root."
14981 msgstr ""
14982
14983 # type: textblock
14984 #. type: textblock
14985 #: ../src/guestfs-actions.pod:4371 ../fish/guestfish-actions.pod:2949
14986 msgid ""
14987 "The caller is responsible for deleting the temporary directory and its "
14988 "contents after use."
14989 msgstr ""
14990
14991 # type: textblock
14992 #. type: textblock
14993 #: ../src/guestfs-actions.pod:4374 ../fish/guestfish-actions.pod:2952
14994 msgid "See also: L<mkdtemp(3)>"
14995 msgstr ""
14996
14997 # type: =head2
14998 #. type: =head2
14999 #: ../src/guestfs-actions.pod:4381
15000 msgid "guestfs_mke2fs_J"
15001 msgstr ""
15002
15003 # type: verbatim
15004 #. type: verbatim
15005 #: ../src/guestfs-actions.pod:4383
15006 #, no-wrap
15007 msgid ""
15008 " int\n"
15009 " guestfs_mke2fs_J (guestfs_h *g,\n"
15010 "                   const char *fstype,\n"
15011 "                   int blocksize,\n"
15012 "                   const char *device,\n"
15013 "                   const char *journal);\n"
15014 "\n"
15015 msgstr ""
15016
15017 # type: textblock
15018 #. type: textblock
15019 #: ../src/guestfs-actions.pod:4390 ../fish/guestfish-actions.pod:2958
15020 msgid ""
15021 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
15022 "C<journal>.  It is equivalent to the command:"
15023 msgstr ""
15024
15025 # type: verbatim
15026 #. type: verbatim
15027 #: ../src/guestfs-actions.pod:4394 ../fish/guestfish-actions.pod:2962
15028 #, no-wrap
15029 msgid ""
15030 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
15031 "\n"
15032 msgstr ""
15033
15034 # type: textblock
15035 #. type: textblock
15036 #: ../src/guestfs-actions.pod:4396
15037 msgid "See also C<guestfs_mke2journal>."
15038 msgstr ""
15039
15040 # type: textblock
15041 #. type: textblock
15042 #: ../src/guestfs-actions.pod:4400 ../src/guestfs-actions.pod:4418
15043 #: ../src/guestfs-actions.pod:4436 ../src/guestfs-actions.pod:4452
15044 #: ../src/guestfs-actions.pod:4466 ../src/guestfs-actions.pod:4480
15045 #: ../src/guestfs-actions.pod:4539 ../src/guestfs-actions.pod:4816
15046 msgid "(Added in 1.0.68)"
15047 msgstr ""
15048
15049 # type: =head2
15050 #. type: =head2
15051 #: ../src/guestfs-actions.pod:4402
15052 msgid "guestfs_mke2fs_JL"
15053 msgstr ""
15054
15055 # type: verbatim
15056 #. type: verbatim
15057 #: ../src/guestfs-actions.pod:4404
15058 #, no-wrap
15059 msgid ""
15060 " int\n"
15061 " guestfs_mke2fs_JL (guestfs_h *g,\n"
15062 "                    const char *fstype,\n"
15063 "                    int blocksize,\n"
15064 "                    const char *device,\n"
15065 "                    const char *label);\n"
15066 "\n"
15067 msgstr ""
15068
15069 # type: textblock
15070 #. type: textblock
15071 #: ../src/guestfs-actions.pod:4411 ../fish/guestfish-actions.pod:2970
15072 msgid ""
15073 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
15074 "the journal labeled C<label>."
15075 msgstr ""
15076
15077 # type: textblock
15078 #. type: textblock
15079 #: ../src/guestfs-actions.pod:4414
15080 msgid "See also C<guestfs_mke2journal_L>."
15081 msgstr ""
15082
15083 # type: =head2
15084 #. type: =head2
15085 #: ../src/guestfs-actions.pod:4420
15086 msgid "guestfs_mke2fs_JU"
15087 msgstr ""
15088
15089 # type: verbatim
15090 #. type: verbatim
15091 #: ../src/guestfs-actions.pod:4422
15092 #, no-wrap
15093 msgid ""
15094 " int\n"
15095 " guestfs_mke2fs_JU (guestfs_h *g,\n"
15096 "                    const char *fstype,\n"
15097 "                    int blocksize,\n"
15098 "                    const char *device,\n"
15099 "                    const char *uuid);\n"
15100 "\n"
15101 msgstr ""
15102
15103 # type: textblock
15104 #. type: textblock
15105 #: ../src/guestfs-actions.pod:4429 ../fish/guestfish-actions.pod:2979
15106 msgid ""
15107 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
15108 "the journal with UUID C<uuid>."
15109 msgstr ""
15110
15111 # type: textblock
15112 #. type: textblock
15113 #: ../src/guestfs-actions.pod:4432
15114 msgid "See also C<guestfs_mke2journal_U>."
15115 msgstr ""
15116
15117 # type: =head2
15118 #. type: =head2
15119 #: ../src/guestfs-actions.pod:4438
15120 msgid "guestfs_mke2journal"
15121 msgstr ""
15122
15123 # type: verbatim
15124 #. type: verbatim
15125 #: ../src/guestfs-actions.pod:4440
15126 #, no-wrap
15127 msgid ""
15128 " int\n"
15129 " guestfs_mke2journal (guestfs_h *g,\n"
15130 "                      int blocksize,\n"
15131 "                      const char *device);\n"
15132 "\n"
15133 msgstr ""
15134
15135 # type: textblock
15136 #. type: textblock
15137 #: ../src/guestfs-actions.pod:4445 ../fish/guestfish-actions.pod:2988
15138 msgid ""
15139 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
15140 "command:"
15141 msgstr ""
15142
15143 # type: verbatim
15144 #. type: verbatim
15145 #: ../src/guestfs-actions.pod:4448 ../fish/guestfish-actions.pod:2991
15146 #, no-wrap
15147 msgid ""
15148 " mke2fs -O journal_dev -b blocksize device\n"
15149 "\n"
15150 msgstr ""
15151
15152 # type: =head2
15153 #. type: =head2
15154 #: ../src/guestfs-actions.pod:4454
15155 msgid "guestfs_mke2journal_L"
15156 msgstr ""
15157
15158 # type: verbatim
15159 #. type: verbatim
15160 #: ../src/guestfs-actions.pod:4456
15161 #, no-wrap
15162 msgid ""
15163 " int\n"
15164 " guestfs_mke2journal_L (guestfs_h *g,\n"
15165 "                        int blocksize,\n"
15166 "                        const char *label,\n"
15167 "                        const char *device);\n"
15168 "\n"
15169 msgstr ""
15170
15171 # type: textblock
15172 #. type: textblock
15173 #: ../src/guestfs-actions.pod:4462 ../fish/guestfish-actions.pod:2997
15174 msgid "This creates an ext2 external journal on C<device> with label C<label>."
15175 msgstr ""
15176
15177 # type: =head2
15178 #. type: =head2
15179 #: ../src/guestfs-actions.pod:4468
15180 msgid "guestfs_mke2journal_U"
15181 msgstr ""
15182
15183 # type: verbatim
15184 #. type: verbatim
15185 #: ../src/guestfs-actions.pod:4470
15186 #, no-wrap
15187 msgid ""
15188 " int\n"
15189 " guestfs_mke2journal_U (guestfs_h *g,\n"
15190 "                        int blocksize,\n"
15191 "                        const char *uuid,\n"
15192 "                        const char *device);\n"
15193 "\n"
15194 msgstr ""
15195
15196 # type: textblock
15197 #. type: textblock
15198 #: ../src/guestfs-actions.pod:4476 ../fish/guestfish-actions.pod:3003
15199 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
15200 msgstr ""
15201
15202 # type: =head2
15203 #. type: =head2
15204 #: ../src/guestfs-actions.pod:4482
15205 msgid "guestfs_mkfifo"
15206 msgstr ""
15207
15208 # type: verbatim
15209 #. type: verbatim
15210 #: ../src/guestfs-actions.pod:4484
15211 #, no-wrap
15212 msgid ""
15213 " int\n"
15214 " guestfs_mkfifo (guestfs_h *g,\n"
15215 "                 int mode,\n"
15216 "                 const char *path);\n"
15217 "\n"
15218 msgstr ""
15219
15220 # type: textblock
15221 #. type: textblock
15222 #: ../src/guestfs-actions.pod:4489
15223 msgid ""
15224 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
15225 "is just a convenient wrapper around C<guestfs_mknod>."
15226 msgstr ""
15227
15228 # type: =head2
15229 #. type: =head2
15230 #: ../src/guestfs-actions.pod:4499
15231 msgid "guestfs_mkfs"
15232 msgstr ""
15233
15234 # type: verbatim
15235 #. type: verbatim
15236 #: ../src/guestfs-actions.pod:4501
15237 #, no-wrap
15238 msgid ""
15239 " int\n"
15240 " guestfs_mkfs (guestfs_h *g,\n"
15241 "               const char *fstype,\n"
15242 "               const char *device);\n"
15243 "\n"
15244 msgstr ""
15245
15246 # type: textblock
15247 #. type: textblock
15248 #: ../src/guestfs-actions.pod:4506 ../fish/guestfish-actions.pod:3019
15249 msgid ""
15250 "This creates a filesystem on C<device> (usually a partition or LVM logical "
15251 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
15252 msgstr ""
15253
15254 # type: =head2
15255 #. type: =head2
15256 #: ../src/guestfs-actions.pod:4514
15257 msgid "guestfs_mkfs_b"
15258 msgstr ""
15259
15260 # type: verbatim
15261 #. type: verbatim
15262 #: ../src/guestfs-actions.pod:4516
15263 #, no-wrap
15264 msgid ""
15265 " int\n"
15266 " guestfs_mkfs_b (guestfs_h *g,\n"
15267 "                 const char *fstype,\n"
15268 "                 int blocksize,\n"
15269 "                 const char *device);\n"
15270 "\n"
15271 msgstr ""
15272
15273 # type: textblock
15274 #. type: textblock
15275 #: ../src/guestfs-actions.pod:4522
15276 msgid ""
15277 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
15278 "block size of the resulting filesystem.  Supported block sizes depend on the "
15279 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
15280 msgstr ""
15281
15282 # type: textblock
15283 #. type: textblock
15284 #: ../src/guestfs-actions.pod:4527 ../src/guestfs-actions.pod:4572
15285 #: ../fish/guestfish-actions.pod:3032 ../fish/guestfish-actions.pod:3059
15286 msgid ""
15287 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
15288 "cluster size."
15289 msgstr ""
15290
15291 # type: textblock
15292 #. type: textblock
15293 #: ../src/guestfs-actions.pod:4532 ../fish/guestfish-actions.pod:3035
15294 msgid ""
15295 "This function is deprecated.  In new code, use the C<mkfs_opts> call instead."
15296 msgstr ""
15297
15298 # type: =head2
15299 #. type: =head2
15300 #: ../src/guestfs-actions.pod:4541
15301 msgid "guestfs_mkfs_opts"
15302 msgstr ""
15303
15304 # type: verbatim
15305 #. type: verbatim
15306 #: ../src/guestfs-actions.pod:4543
15307 #, no-wrap
15308 msgid ""
15309 " int\n"
15310 " guestfs_mkfs_opts (guestfs_h *g,\n"
15311 "                    const char *fstype,\n"
15312 "                    const char *device,\n"
15313 "                    ...);\n"
15314 "\n"
15315 msgstr ""
15316
15317 #. type: verbatim
15318 #: ../src/guestfs-actions.pod:4554
15319 #, no-wrap
15320 msgid ""
15321 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
15322 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
15323 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
15324 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
15325 "\n"
15326 msgstr ""
15327
15328 # type: textblock
15329 #. type: textblock
15330 #: ../src/guestfs-actions.pod:4559 ../fish/guestfish-actions.pod:3046
15331 msgid ""
15332 "This function creates a filesystem on C<device>.  The filesystem type is "
15333 "C<fstype>, for example C<ext3>."
15334 msgstr ""
15335
15336 # type: =item
15337 #. type: =item
15338 #: ../src/guestfs-actions.pod:4566 ../fish/guestfish-actions.pod:3053
15339 msgid "C<blocksize>"
15340 msgstr ""
15341
15342 # type: textblock
15343 #. type: textblock
15344 #: ../src/guestfs-actions.pod:4568 ../fish/guestfish-actions.pod:3055
15345 msgid ""
15346 "The filesystem block size.  Supported block sizes depend on the filesystem "
15347 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
15348 "filesystems."
15349 msgstr ""
15350
15351 #. type: textblock
15352 #: ../src/guestfs-actions.pod:4575 ../fish/guestfish-actions.pod:3062
15353 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
15354 msgstr ""
15355
15356 #. type: =item
15357 #: ../src/guestfs-actions.pod:4577 ../fish/guestfish-actions.pod:3064
15358 msgid "C<features>"
15359 msgstr ""
15360
15361 #. type: textblock
15362 #: ../src/guestfs-actions.pod:4579 ../fish/guestfish-actions.pod:3066
15363 msgid "This passes the I<-O> parameter to the external mkfs program."
15364 msgstr ""
15365
15366 #. type: textblock
15367 #: ../src/guestfs-actions.pod:4581 ../fish/guestfish-actions.pod:3068
15368 msgid ""
15369 "For certain filesystem types, this allows extra filesystem features to be "
15370 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
15371 msgstr ""
15372
15373 #. type: textblock
15374 #: ../src/guestfs-actions.pod:4585 ../fish/guestfish-actions.pod:3072
15375 msgid ""
15376 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
15377 "type."
15378 msgstr ""
15379
15380 #. type: =item
15381 #: ../src/guestfs-actions.pod:4588 ../fish/guestfish-actions.pod:3075
15382 msgid "C<inode>"
15383 msgstr ""
15384
15385 #. type: textblock
15386 #: ../src/guestfs-actions.pod:4590 ../fish/guestfish-actions.pod:3077
15387 msgid ""
15388 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
15389 "sets the inode size (only for ext2/3/4 filesystems at present)."
15390 msgstr ""
15391
15392 #. type: =item
15393 #: ../src/guestfs-actions.pod:4593 ../fish/guestfish-actions.pod:3080
15394 msgid "C<sectorsize>"
15395 msgstr ""
15396
15397 #. type: textblock
15398 #: ../src/guestfs-actions.pod:4595 ../fish/guestfish-actions.pod:3082
15399 msgid ""
15400 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
15401 "sets sector size for ufs filesystem."
15402 msgstr ""
15403
15404 #. type: textblock
15405 #: ../src/guestfs-actions.pod:4602
15406 msgid "(Added in 1.7.19)"
15407 msgstr ""
15408
15409 # type: =head2
15410 #. type: =head2
15411 #: ../src/guestfs-actions.pod:4604
15412 msgid "guestfs_mkfs_opts_va"
15413 msgstr ""
15414
15415 # type: verbatim
15416 #. type: verbatim
15417 #: ../src/guestfs-actions.pod:4606
15418 #, no-wrap
15419 msgid ""
15420 " int\n"
15421 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
15422 "                       const char *fstype,\n"
15423 "                       const char *device,\n"
15424 "                       va_list args);\n"
15425 "\n"
15426 msgstr ""
15427
15428 # type: textblock
15429 #. type: textblock
15430 #: ../src/guestfs-actions.pod:4612
15431 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
15432 msgstr ""
15433
15434 # type: =head2
15435 #. type: =head2
15436 #: ../src/guestfs-actions.pod:4616
15437 msgid "guestfs_mkfs_opts_argv"
15438 msgstr ""
15439
15440 # type: verbatim
15441 #. type: verbatim
15442 #: ../src/guestfs-actions.pod:4618
15443 #, no-wrap
15444 msgid ""
15445 " int\n"
15446 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
15447 "                         const char *fstype,\n"
15448 "                         const char *device,\n"
15449 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
15450 "\n"
15451 msgstr ""
15452
15453 # type: textblock
15454 #. type: textblock
15455 #: ../src/guestfs-actions.pod:4624
15456 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
15457 msgstr ""
15458
15459 # type: =head2
15460 #. type: =head2
15461 #: ../src/guestfs-actions.pod:4628
15462 msgid "guestfs_mkmountpoint"
15463 msgstr ""
15464
15465 # type: verbatim
15466 #. type: verbatim
15467 #: ../src/guestfs-actions.pod:4630
15468 #, no-wrap
15469 msgid ""
15470 " int\n"
15471 " guestfs_mkmountpoint (guestfs_h *g,\n"
15472 "                       const char *exemptpath);\n"
15473 "\n"
15474 msgstr ""
15475
15476 # type: textblock
15477 #. type: textblock
15478 #: ../src/guestfs-actions.pod:4634
15479 msgid ""
15480 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
15481 "that can be used to create extra mountpoints before mounting the first "
15482 "filesystem."
15483 msgstr ""
15484
15485 # type: textblock
15486 #. type: textblock
15487 #: ../src/guestfs-actions.pod:4638 ../fish/guestfish-actions.pod:3097
15488 msgid ""
15489 "These calls are I<only> necessary in some very limited circumstances, mainly "
15490 "the case where you want to mount a mix of unrelated and/or read-only "
15491 "filesystems together."
15492 msgstr ""
15493
15494 # type: textblock
15495 #. type: textblock
15496 #: ../src/guestfs-actions.pod:4642 ../fish/guestfish-actions.pod:3101
15497 msgid ""
15498 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
15499 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
15500 "inside that.  You can unpack this as follows in guestfish:"
15501 msgstr ""
15502
15503 # type: verbatim
15504 #. type: verbatim
15505 #: ../src/guestfs-actions.pod:4647 ../fish/guestfish-actions.pod:3106
15506 #, no-wrap
15507 msgid ""
15508 " add-ro Fedora-11-i686-Live.iso\n"
15509 " run\n"
15510 " mkmountpoint /cd\n"
15511 " mkmountpoint /sqsh\n"
15512 " mkmountpoint /ext3fs\n"
15513 " mount /dev/sda /cd\n"
15514 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
15515 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
15516 "\n"
15517 msgstr ""
15518
15519 # type: textblock
15520 #. type: textblock
15521 #: ../src/guestfs-actions.pod:4656 ../fish/guestfish-actions.pod:3115
15522 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
15523 msgstr ""
15524
15525 # type: textblock
15526 #. type: textblock
15527 #: ../src/guestfs-actions.pod:4658
15528 msgid ""
15529 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
15530 "may get unexpected errors if you try to mix these calls.  It is safest to "
15531 "manually unmount filesystems and remove mountpoints after use."
15532 msgstr ""
15533
15534 # type: textblock
15535 #. type: textblock
15536 #: ../src/guestfs-actions.pod:4662
15537 msgid ""
15538 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
15539 "first, so for this to work for manual mountpoints, you must ensure that the "
15540 "innermost mountpoints have the longest pathnames, as in the example code "
15541 "above."
15542 msgstr ""
15543
15544 # type: textblock
15545 #. type: textblock
15546 #: ../src/guestfs-actions.pod:4667 ../fish/guestfish-actions.pod:3126
15547 msgid ""
15548 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
15549 msgstr ""
15550
15551 #. type: textblock
15552 #: ../src/guestfs-actions.pod:4669
15553 msgid ""
15554 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
15555 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
15556 "can also trigger these issues."
15557 msgstr ""
15558
15559 # type: textblock
15560 #. type: textblock
15561 #: ../src/guestfs-actions.pod:4675 ../src/guestfs-actions.pod:4991
15562 #: ../src/guestfs-actions.pod:5903
15563 msgid "(Added in 1.0.62)"
15564 msgstr ""
15565
15566 # type: =head2
15567 #. type: =head2
15568 #: ../src/guestfs-actions.pod:4677
15569 msgid "guestfs_mknod"
15570 msgstr ""
15571
15572 # type: verbatim
15573 #. type: verbatim
15574 #: ../src/guestfs-actions.pod:4679
15575 #, no-wrap
15576 msgid ""
15577 " int\n"
15578 " guestfs_mknod (guestfs_h *g,\n"
15579 "                int mode,\n"
15580 "                int devmajor,\n"
15581 "                int devminor,\n"
15582 "                const char *path);\n"
15583 "\n"
15584 msgstr ""
15585
15586 # type: textblock
15587 #. type: textblock
15588 #: ../src/guestfs-actions.pod:4686 ../fish/guestfish-actions.pod:3136
15589 msgid ""
15590 "This call creates block or character special devices, or named pipes (FIFOs)."
15591 msgstr ""
15592
15593 # type: textblock
15594 #. type: textblock
15595 #: ../src/guestfs-actions.pod:4689 ../fish/guestfish-actions.pod:3139
15596 msgid ""
15597 "The C<mode> parameter should be the mode, using the standard constants.  "
15598 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
15599 "used when creating block and character special devices."
15600 msgstr ""
15601
15602 # type: textblock
15603 #. type: textblock
15604 #: ../src/guestfs-actions.pod:4694
15605 msgid ""
15606 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
15607 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
15608 "regular file).  These constants are available in the standard Linux header "
15609 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
15610 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
15611 "the appropriate constant for you."
15612 msgstr ""
15613
15614 # type: =head2
15615 #. type: =head2
15616 #: ../src/guestfs-actions.pod:4708
15617 msgid "guestfs_mknod_b"
15618 msgstr ""
15619
15620 # type: verbatim
15621 #. type: verbatim
15622 #: ../src/guestfs-actions.pod:4710
15623 #, no-wrap
15624 msgid ""
15625 " int\n"
15626 " guestfs_mknod_b (guestfs_h *g,\n"
15627 "                  int mode,\n"
15628 "                  int devmajor,\n"
15629 "                  int devminor,\n"
15630 "                  const char *path);\n"
15631 "\n"
15632 msgstr ""
15633
15634 # type: textblock
15635 #. type: textblock
15636 #: ../src/guestfs-actions.pod:4717
15637 msgid ""
15638 "This call creates a block device node called C<path> with mode C<mode> and "
15639 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
15640 "wrapper around C<guestfs_mknod>."
15641 msgstr ""
15642
15643 # type: =head2
15644 #. type: =head2
15645 #: ../src/guestfs-actions.pod:4727
15646 msgid "guestfs_mknod_c"
15647 msgstr ""
15648
15649 # type: verbatim
15650 #. type: verbatim
15651 #: ../src/guestfs-actions.pod:4729
15652 #, no-wrap
15653 msgid ""
15654 " int\n"
15655 " guestfs_mknod_c (guestfs_h *g,\n"
15656 "                  int mode,\n"
15657 "                  int devmajor,\n"
15658 "                  int devminor,\n"
15659 "                  const char *path);\n"
15660 "\n"
15661 msgstr ""
15662
15663 # type: textblock
15664 #. type: textblock
15665 #: ../src/guestfs-actions.pod:4736
15666 msgid ""
15667 "This call creates a char device node called C<path> with mode C<mode> and "
15668 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
15669 "wrapper around C<guestfs_mknod>."
15670 msgstr ""
15671
15672 # type: =head2
15673 #. type: =head2
15674 #: ../src/guestfs-actions.pod:4746
15675 msgid "guestfs_mkswap"
15676 msgstr ""
15677
15678 # type: verbatim
15679 #. type: verbatim
15680 #: ../src/guestfs-actions.pod:4748
15681 #, no-wrap
15682 msgid ""
15683 " int\n"
15684 " guestfs_mkswap (guestfs_h *g,\n"
15685 "                 const char *device);\n"
15686 "\n"
15687 msgstr ""
15688
15689 # type: textblock
15690 #. type: textblock
15691 #: ../src/guestfs-actions.pod:4752 ../fish/guestfish-actions.pod:3178
15692 msgid "Create a swap partition on C<device>."
15693 msgstr ""
15694
15695 # type: =head2
15696 #. type: =head2
15697 #: ../src/guestfs-actions.pod:4758
15698 msgid "guestfs_mkswap_L"
15699 msgstr ""
15700
15701 # type: verbatim
15702 #. type: verbatim
15703 #: ../src/guestfs-actions.pod:4760
15704 #, no-wrap
15705 msgid ""
15706 " int\n"
15707 " guestfs_mkswap_L (guestfs_h *g,\n"
15708 "                   const char *label,\n"
15709 "                   const char *device);\n"
15710 "\n"
15711 msgstr ""
15712
15713 # type: textblock
15714 #. type: textblock
15715 #: ../src/guestfs-actions.pod:4765 ../fish/guestfish-actions.pod:3184
15716 msgid "Create a swap partition on C<device> with label C<label>."
15717 msgstr ""
15718
15719 # type: textblock
15720 #. type: textblock
15721 #: ../src/guestfs-actions.pod:4767 ../fish/guestfish-actions.pod:3186
15722 msgid ""
15723 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
15724 "sda>), just to a partition.  This appears to be a limitation of the kernel "
15725 "or swap tools."
15726 msgstr ""
15727
15728 # type: =head2
15729 #. type: =head2
15730 #: ../src/guestfs-actions.pod:4775
15731 msgid "guestfs_mkswap_U"
15732 msgstr ""
15733
15734 # type: verbatim
15735 #. type: verbatim
15736 #: ../src/guestfs-actions.pod:4777
15737 #, no-wrap
15738 msgid ""
15739 " int\n"
15740 " guestfs_mkswap_U (guestfs_h *g,\n"
15741 "                   const char *uuid,\n"
15742 "                   const char *device);\n"
15743 "\n"
15744 msgstr ""
15745
15746 # type: textblock
15747 #. type: textblock
15748 #: ../src/guestfs-actions.pod:4782 ../fish/guestfish-actions.pod:3194
15749 msgid "Create a swap partition on C<device> with UUID C<uuid>."
15750 msgstr ""
15751
15752 # type: =head2
15753 #. type: =head2
15754 #: ../src/guestfs-actions.pod:4788
15755 msgid "guestfs_mkswap_file"
15756 msgstr ""
15757
15758 # type: verbatim
15759 #. type: verbatim
15760 #: ../src/guestfs-actions.pod:4790
15761 #, no-wrap
15762 msgid ""
15763 " int\n"
15764 " guestfs_mkswap_file (guestfs_h *g,\n"
15765 "                      const char *path);\n"
15766 "\n"
15767 msgstr ""
15768
15769 # type: textblock
15770 #. type: textblock
15771 #: ../src/guestfs-actions.pod:4794 ../fish/guestfish-actions.pod:3200
15772 msgid "Create a swap file."
15773 msgstr ""
15774
15775 # type: textblock
15776 #. type: textblock
15777 #: ../src/guestfs-actions.pod:4796
15778 msgid ""
15779 "This command just writes a swap file signature to an existing file.  To "
15780 "create the file itself, use something like C<guestfs_fallocate>."
15781 msgstr ""
15782
15783 # type: =head2
15784 #. type: =head2
15785 #: ../src/guestfs-actions.pod:4803
15786 msgid "guestfs_modprobe"
15787 msgstr ""
15788
15789 # type: verbatim
15790 #. type: verbatim
15791 #: ../src/guestfs-actions.pod:4805
15792 #, no-wrap
15793 msgid ""
15794 " int\n"
15795 " guestfs_modprobe (guestfs_h *g,\n"
15796 "                   const char *modulename);\n"
15797 "\n"
15798 msgstr ""
15799
15800 # type: textblock
15801 #. type: textblock
15802 #: ../src/guestfs-actions.pod:4809 ../fish/guestfish-actions.pod:3209
15803 msgid "This loads a kernel module in the appliance."
15804 msgstr ""
15805
15806 # type: textblock
15807 #. type: textblock
15808 #: ../src/guestfs-actions.pod:4811 ../fish/guestfish-actions.pod:3211
15809 msgid ""
15810 "The kernel module must have been whitelisted when libguestfs was built (see "
15811 "C<appliance/kmod.whitelist.in> in the source)."
15812 msgstr ""
15813
15814 # type: =head2
15815 #. type: =head2
15816 #: ../src/guestfs-actions.pod:4818
15817 msgid "guestfs_mount"
15818 msgstr ""
15819
15820 # type: verbatim
15821 #. type: verbatim
15822 #: ../src/guestfs-actions.pod:4820
15823 #, no-wrap
15824 msgid ""
15825 " int\n"
15826 " guestfs_mount (guestfs_h *g,\n"
15827 "                const char *device,\n"
15828 "                const char *mountpoint);\n"
15829 "\n"
15830 msgstr ""
15831
15832 # type: textblock
15833 #. type: textblock
15834 #: ../src/guestfs-actions.pod:4825 ../fish/guestfish-actions.pod:3218
15835 msgid ""
15836 "Mount a guest disk at a position in the filesystem.  Block devices are named "
15837 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
15838 "those block devices contain partitions, they will have the usual names (eg. "
15839 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
15840 msgstr ""
15841
15842 # type: textblock
15843 #. type: textblock
15844 #: ../src/guestfs-actions.pod:4831 ../fish/guestfish-actions.pod:3224
15845 msgid ""
15846 "The rules are the same as for L<mount(2)>: A filesystem must first be "
15847 "mounted on C</> before others can be mounted.  Other filesystems can only be "
15848 "mounted on directories which already exist."
15849 msgstr ""
15850
15851 # type: textblock
15852 #. type: textblock
15853 #: ../src/guestfs-actions.pod:4836 ../fish/guestfish-actions.pod:3229
15854 msgid ""
15855 "The mounted filesystem is writable, if we have sufficient permissions on the "
15856 "underlying device."
15857 msgstr ""
15858
15859 # type: textblock
15860 #. type: textblock
15861 #: ../src/guestfs-actions.pod:4839
15862 msgid ""
15863 "B<Important note:> When you use this call, the filesystem options C<sync> "
15864 "and C<noatime> are set implicitly.  This was originally done because we "
15865 "thought it would improve reliability, but it turns out that I<-o sync> has a "
15866 "very large negative performance impact and negligible effect on "
15867 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
15868 "in any code that needs performance, and instead use C<guestfs_mount_options> "
15869 "(use an empty string for the first parameter if you don't want any options)."
15870 msgstr ""
15871
15872 #. type: textblock
15873 #: ../src/guestfs-actions.pod:4851 ../fish/guestfish-actions.pod:3242
15874 msgid ""
15875 "This function is deprecated.  In new code, use the C<mount_options> call "
15876 "instead."
15877 msgstr ""
15878
15879 #. type: =head2
15880 #: ../src/guestfs-actions.pod:4860
15881 msgid "guestfs_mount_9p"
15882 msgstr ""
15883
15884 #. type: verbatim
15885 #: ../src/guestfs-actions.pod:4862
15886 #, no-wrap
15887 msgid ""
15888 " int\n"
15889 " guestfs_mount_9p (guestfs_h *g,\n"
15890 "                   const char *mounttag,\n"
15891 "                   const char *mountpoint,\n"
15892 "                   ...);\n"
15893 "\n"
15894 msgstr ""
15895
15896 #. type: verbatim
15897 #: ../src/guestfs-actions.pod:4873
15898 #, no-wrap
15899 msgid ""
15900 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
15901 "\n"
15902 msgstr ""
15903
15904 #. type: textblock
15905 #: ../src/guestfs-actions.pod:4875 ../fish/guestfish-actions.pod:3253
15906 msgid ""
15907 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
15908 "C<mountpoint>."
15909 msgstr ""
15910
15911 #. type: textblock
15912 #: ../src/guestfs-actions.pod:4878 ../fish/guestfish-actions.pod:3256
15913 msgid ""
15914 "If required, C<trans=virtio> will be automatically added to the options.  "
15915 "Any other options required can be passed in the optional C<options> "
15916 "parameter."
15917 msgstr ""
15918
15919 #. type: =head2
15920 #: ../src/guestfs-actions.pod:4886
15921 msgid "guestfs_mount_9p_va"
15922 msgstr ""
15923
15924 #. type: verbatim
15925 #: ../src/guestfs-actions.pod:4888
15926 #, no-wrap
15927 msgid ""
15928 " int\n"
15929 " guestfs_mount_9p_va (guestfs_h *g,\n"
15930 "                      const char *mounttag,\n"
15931 "                      const char *mountpoint,\n"
15932 "                      va_list args);\n"
15933 "\n"
15934 msgstr ""
15935
15936 #. type: textblock
15937 #: ../src/guestfs-actions.pod:4894
15938 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
15939 msgstr ""
15940
15941 #. type: =head2
15942 #: ../src/guestfs-actions.pod:4898
15943 msgid "guestfs_mount_9p_argv"
15944 msgstr ""
15945
15946 #. type: verbatim
15947 #: ../src/guestfs-actions.pod:4900
15948 #, no-wrap
15949 msgid ""
15950 " int\n"
15951 " guestfs_mount_9p_argv (guestfs_h *g,\n"
15952 "                        const char *mounttag,\n"
15953 "                        const char *mountpoint,\n"
15954 "                        const struct guestfs_mount_9p_argv *optargs);\n"
15955 "\n"
15956 msgstr ""
15957
15958 #. type: textblock
15959 #: ../src/guestfs-actions.pod:4906
15960 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
15961 msgstr ""
15962
15963 # type: =head2
15964 #. type: =head2
15965 #: ../src/guestfs-actions.pod:4910
15966 msgid "guestfs_mount_loop"
15967 msgstr ""
15968
15969 # type: verbatim
15970 #. type: verbatim
15971 #: ../src/guestfs-actions.pod:4912
15972 #, no-wrap
15973 msgid ""
15974 " int\n"
15975 " guestfs_mount_loop (guestfs_h *g,\n"
15976 "                     const char *file,\n"
15977 "                     const char *mountpoint);\n"
15978 "\n"
15979 msgstr ""
15980
15981 # type: textblock
15982 #. type: textblock
15983 #: ../src/guestfs-actions.pod:4917 ../fish/guestfish-actions.pod:3266
15984 msgid ""
15985 "This command lets you mount C<file> (a filesystem image in a file) on a "
15986 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
15987 "mountpoint>."
15988 msgstr ""
15989
15990 # type: =head2
15991 #. type: =head2
15992 #: ../src/guestfs-actions.pod:4925
15993 msgid "guestfs_mount_options"
15994 msgstr ""
15995
15996 # type: verbatim
15997 #. type: verbatim
15998 #: ../src/guestfs-actions.pod:4927
15999 #, no-wrap
16000 msgid ""
16001 " int\n"
16002 " guestfs_mount_options (guestfs_h *g,\n"
16003 "                        const char *options,\n"
16004 "                        const char *device,\n"
16005 "                        const char *mountpoint);\n"
16006 "\n"
16007 msgstr ""
16008
16009 # type: textblock
16010 #. type: textblock
16011 #: ../src/guestfs-actions.pod:4933
16012 msgid ""
16013 "This is the same as the C<guestfs_mount> command, but it allows you to set "
16014 "the mount options as for the L<mount(8)> I<-o> flag."
16015 msgstr ""
16016
16017 # type: textblock
16018 #. type: textblock
16019 #: ../src/guestfs-actions.pod:4937 ../fish/guestfish-actions.pod:3278
16020 msgid ""
16021 "If the C<options> parameter is an empty string, then no options are passed "
16022 "(all options default to whatever the filesystem uses)."
16023 msgstr ""
16024
16025 # type: textblock
16026 #. type: textblock
16027 #: ../src/guestfs-actions.pod:4943 ../src/guestfs-actions.pod:4957
16028 #: ../src/guestfs-actions.pod:4974
16029 msgid "(Added in 1.0.10)"
16030 msgstr ""
16031
16032 # type: =head2
16033 #. type: =head2
16034 #: ../src/guestfs-actions.pod:4945
16035 msgid "guestfs_mount_ro"
16036 msgstr ""
16037
16038 # type: verbatim
16039 #. type: verbatim
16040 #: ../src/guestfs-actions.pod:4947
16041 #, no-wrap
16042 msgid ""
16043 " int\n"
16044 " guestfs_mount_ro (guestfs_h *g,\n"
16045 "                   const char *device,\n"
16046 "                   const char *mountpoint);\n"
16047 "\n"
16048 msgstr ""
16049
16050 # type: textblock
16051 #. type: textblock
16052 #: ../src/guestfs-actions.pod:4952
16053 msgid ""
16054 "This is the same as the C<guestfs_mount> command, but it mounts the "
16055 "filesystem with the read-only (I<-o ro>) flag."
16056 msgstr ""
16057
16058 # type: =head2
16059 #. type: =head2
16060 #: ../src/guestfs-actions.pod:4959
16061 msgid "guestfs_mount_vfs"
16062 msgstr ""
16063
16064 # type: verbatim
16065 #. type: verbatim
16066 #: ../src/guestfs-actions.pod:4961
16067 #, no-wrap
16068 msgid ""
16069 " int\n"
16070 " guestfs_mount_vfs (guestfs_h *g,\n"
16071 "                    const char *options,\n"
16072 "                    const char *vfstype,\n"
16073 "                    const char *device,\n"
16074 "                    const char *mountpoint);\n"
16075 "\n"
16076 msgstr ""
16077
16078 # type: textblock
16079 #. type: textblock
16080 #: ../src/guestfs-actions.pod:4968
16081 msgid ""
16082 "This is the same as the C<guestfs_mount> command, but it allows you to set "
16083 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
16084 "t> flags."
16085 msgstr ""
16086
16087 # type: =head2
16088 #. type: =head2
16089 #: ../src/guestfs-actions.pod:4976
16090 msgid "guestfs_mountpoints"
16091 msgstr ""
16092
16093 # type: verbatim
16094 #. type: verbatim
16095 #: ../src/guestfs-actions.pod:4978
16096 #, no-wrap
16097 msgid ""
16098 " char **\n"
16099 " guestfs_mountpoints (guestfs_h *g);\n"
16100 "\n"
16101 msgstr ""
16102
16103 # type: textblock
16104 #. type: textblock
16105 #: ../src/guestfs-actions.pod:4981
16106 msgid ""
16107 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
16108 "devices.  This one returns a hash table (map) of device name to directory "
16109 "where the device is mounted."
16110 msgstr ""
16111
16112 # type: =head2
16113 #. type: =head2
16114 #: ../src/guestfs-actions.pod:4993
16115 msgid "guestfs_mounts"
16116 msgstr ""
16117
16118 # type: verbatim
16119 #. type: verbatim
16120 #: ../src/guestfs-actions.pod:4995
16121 #, no-wrap
16122 msgid ""
16123 " char **\n"
16124 " guestfs_mounts (guestfs_h *g);\n"
16125 "\n"
16126 msgstr ""
16127
16128 # type: textblock
16129 #. type: textblock
16130 #: ../src/guestfs-actions.pod:4998 ../fish/guestfish-actions.pod:3309
16131 msgid ""
16132 "This returns the list of currently mounted filesystems.  It returns the list "
16133 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
16134 msgstr ""
16135
16136 # type: textblock
16137 #. type: textblock
16138 #: ../src/guestfs-actions.pod:5001 ../fish/guestfish-actions.pod:3312
16139 msgid "Some internal mounts are not shown."
16140 msgstr ""
16141
16142 # type: textblock
16143 #. type: textblock
16144 #: ../src/guestfs-actions.pod:5003
16145 msgid "See also: C<guestfs_mountpoints>"
16146 msgstr ""
16147
16148 # type: =head2
16149 #. type: =head2
16150 #: ../src/guestfs-actions.pod:5011
16151 msgid "guestfs_mv"
16152 msgstr ""
16153
16154 # type: verbatim
16155 #. type: verbatim
16156 #: ../src/guestfs-actions.pod:5013
16157 #, no-wrap
16158 msgid ""
16159 " int\n"
16160 " guestfs_mv (guestfs_h *g,\n"
16161 "             const char *src,\n"
16162 "             const char *dest);\n"
16163 "\n"
16164 msgstr ""
16165
16166 # type: textblock
16167 #. type: textblock
16168 #: ../src/guestfs-actions.pod:5018 ../fish/guestfish-actions.pod:3320
16169 msgid ""
16170 "This moves a file from C<src> to C<dest> where C<dest> is either a "
16171 "destination filename or destination directory."
16172 msgstr ""
16173
16174 # type: =head2
16175 #. type: =head2
16176 #: ../src/guestfs-actions.pod:5025
16177 msgid "guestfs_ntfs_3g_probe"
16178 msgstr ""
16179
16180 # type: verbatim
16181 #. type: verbatim
16182 #: ../src/guestfs-actions.pod:5027
16183 #, no-wrap
16184 msgid ""
16185 " int\n"
16186 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
16187 "                        int rw,\n"
16188 "                        const char *device);\n"
16189 "\n"
16190 msgstr ""
16191
16192 # type: textblock
16193 #. type: textblock
16194 #: ../src/guestfs-actions.pod:5032 ../fish/guestfish-actions.pod:3327
16195 msgid ""
16196 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
16197 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
16198 "write, and some cannot be mounted at all)."
16199 msgstr ""
16200
16201 # type: textblock
16202 #. type: textblock
16203 #: ../src/guestfs-actions.pod:5036 ../fish/guestfish-actions.pod:3331
16204 msgid ""
16205 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
16206 "can be mounted read-write.  Set it to false if you want to test if the "
16207 "volume can be mounted read-only."
16208 msgstr ""
16209
16210 # type: textblock
16211 #. type: textblock
16212 #: ../src/guestfs-actions.pod:5040 ../fish/guestfish-actions.pod:3335
16213 msgid ""
16214 "The return value is an integer which C<0> if the operation would succeed, or "
16215 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
16216 msgstr ""
16217
16218 # type: textblock
16219 #. type: textblock
16220 #: ../src/guestfs-actions.pod:5046
16221 msgid "(Added in 1.0.43)"
16222 msgstr ""
16223
16224 # type: =head2
16225 #. type: =head2
16226 #: ../src/guestfs-actions.pod:5048
16227 msgid "guestfs_ntfsresize"
16228 msgstr ""
16229
16230 # type: verbatim
16231 #. type: verbatim
16232 #: ../src/guestfs-actions.pod:5050
16233 #, no-wrap
16234 msgid ""
16235 " int\n"
16236 " guestfs_ntfsresize (guestfs_h *g,\n"
16237 "                     const char *device);\n"
16238 "\n"
16239 msgstr ""
16240
16241 # type: textblock
16242 #. type: textblock
16243 #: ../src/guestfs-actions.pod:5054 ../fish/guestfish-actions.pod:3343
16244 msgid ""
16245 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
16246 "size of the underlying device.  See also L<ntfsresize(8)>."
16247 msgstr ""
16248
16249 # type: =head2
16250 #. type: =head2
16251 #: ../src/guestfs-actions.pod:5062
16252 msgid "guestfs_ntfsresize_size"
16253 msgstr ""
16254
16255 # type: verbatim
16256 #. type: verbatim
16257 #: ../src/guestfs-actions.pod:5064
16258 #, no-wrap
16259 msgid ""
16260 " int\n"
16261 " guestfs_ntfsresize_size (guestfs_h *g,\n"
16262 "                          const char *device,\n"
16263 "                          int64_t size);\n"
16264 "\n"
16265 msgstr ""
16266
16267 # type: textblock
16268 #. type: textblock
16269 #: ../src/guestfs-actions.pod:5069
16270 msgid ""
16271 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
16272 "to specify the new size (in bytes) explicitly."
16273 msgstr ""
16274
16275 # type: textblock
16276 #. type: textblock
16277 #: ../src/guestfs-actions.pod:5074 ../src/guestfs-actions.pod:5510
16278 #: ../src/guestfs-actions.pod:5583 ../src/guestfs-actions.pod:5851
16279 #: ../src/guestfs-actions.pod:7459
16280 msgid "(Added in 1.3.14)"
16281 msgstr ""
16282
16283 # type: =head2
16284 #. type: =head2
16285 #: ../src/guestfs-actions.pod:5076
16286 msgid "guestfs_part_add"
16287 msgstr ""
16288
16289 # type: verbatim
16290 #. type: verbatim
16291 #: ../src/guestfs-actions.pod:5078
16292 #, no-wrap
16293 msgid ""
16294 " int\n"
16295 " guestfs_part_add (guestfs_h *g,\n"
16296 "                   const char *device,\n"
16297 "                   const char *prlogex,\n"
16298 "                   int64_t startsect,\n"
16299 "                   int64_t endsect);\n"
16300 "\n"
16301 msgstr ""
16302
16303 # type: textblock
16304 #. type: textblock
16305 #: ../src/guestfs-actions.pod:5085
16306 msgid ""
16307 "This command adds a partition to C<device>.  If there is no partition table "
16308 "on the device, call C<guestfs_part_init> first."
16309 msgstr ""
16310
16311 # type: textblock
16312 #. type: textblock
16313 #: ../src/guestfs-actions.pod:5088 ../fish/guestfish-actions.pod:3361
16314 msgid ""
16315 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
16316 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
16317 "C<logical>) and C<e> (or C<extended>) partition types."
16318 msgstr ""
16319
16320 # type: textblock
16321 #. type: textblock
16322 #: ../src/guestfs-actions.pod:5093 ../fish/guestfish-actions.pod:3366
16323 msgid ""
16324 "C<startsect> and C<endsect> are the start and end of the partition in "
16325 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
16326 "from the end of the disk (C<-1> is the last sector)."
16327 msgstr ""
16328
16329 # type: textblock
16330 #. type: textblock
16331 #: ../src/guestfs-actions.pod:5097
16332 msgid ""
16333 "Creating a partition which covers the whole disk is not so easy.  Use "
16334 "C<guestfs_part_disk> to do that."
16335 msgstr ""
16336
16337 # type: textblock
16338 #. type: textblock
16339 #: ../src/guestfs-actions.pod:5102 ../src/guestfs-actions.pod:5140
16340 #: ../src/guestfs-actions.pod:5193 ../src/guestfs-actions.pod:5271
16341 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5328
16342 #: ../src/guestfs-actions.pod:5368
16343 msgid "(Added in 1.0.78)"
16344 msgstr ""
16345
16346 # type: =head2
16347 #. type: =head2
16348 #: ../src/guestfs-actions.pod:5104
16349 msgid "guestfs_part_del"
16350 msgstr ""
16351
16352 # type: verbatim
16353 #. type: verbatim
16354 #: ../src/guestfs-actions.pod:5106
16355 #, no-wrap
16356 msgid ""
16357 " int\n"
16358 " guestfs_part_del (guestfs_h *g,\n"
16359 "                   const char *device,\n"
16360 "                   int partnum);\n"
16361 "\n"
16362 msgstr ""
16363
16364 # type: textblock
16365 #. type: textblock
16366 #: ../src/guestfs-actions.pod:5111 ../fish/guestfish-actions.pod:3377
16367 msgid "This command deletes the partition numbered C<partnum> on C<device>."
16368 msgstr ""
16369
16370 # type: textblock
16371 #. type: textblock
16372 #: ../src/guestfs-actions.pod:5113 ../fish/guestfish-actions.pod:3379
16373 msgid ""
16374 "Note that in the case of MBR partitioning, deleting an extended partition "
16375 "also deletes any logical partitions it contains."
16376 msgstr ""
16377
16378 # type: =head2
16379 #. type: =head2
16380 #: ../src/guestfs-actions.pod:5121
16381 msgid "guestfs_part_disk"
16382 msgstr ""
16383
16384 # type: verbatim
16385 #. type: verbatim
16386 #: ../src/guestfs-actions.pod:5123
16387 #, no-wrap
16388 msgid ""
16389 " int\n"
16390 " guestfs_part_disk (guestfs_h *g,\n"
16391 "                    const char *device,\n"
16392 "                    const char *parttype);\n"
16393 "\n"
16394 msgstr ""
16395
16396 # type: textblock
16397 #. type: textblock
16398 #: ../src/guestfs-actions.pod:5128
16399 msgid ""
16400 "This command is simply a combination of C<guestfs_part_init> followed by "
16401 "C<guestfs_part_add> to create a single primary partition covering the whole "
16402 "disk."
16403 msgstr ""
16404
16405 # type: textblock
16406 #. type: textblock
16407 #: ../src/guestfs-actions.pod:5132
16408 msgid ""
16409 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
16410 "possible values are described in C<guestfs_part_init>."
16411 msgstr ""
16412
16413 # type: =head2
16414 #. type: =head2
16415 #: ../src/guestfs-actions.pod:5142
16416 msgid "guestfs_part_get_bootable"
16417 msgstr ""
16418
16419 # type: verbatim
16420 #. type: verbatim
16421 #: ../src/guestfs-actions.pod:5144
16422 #, no-wrap
16423 msgid ""
16424 " int\n"
16425 " guestfs_part_get_bootable (guestfs_h *g,\n"
16426 "                            const char *device,\n"
16427 "                            int partnum);\n"
16428 "\n"
16429 msgstr ""
16430
16431 # type: textblock
16432 #. type: textblock
16433 #: ../src/guestfs-actions.pod:5149 ../fish/guestfish-actions.pod:3401
16434 msgid ""
16435 "This command returns true if the partition C<partnum> on C<device> has the "
16436 "bootable flag set."
16437 msgstr ""
16438
16439 # type: textblock
16440 #. type: textblock
16441 #: ../src/guestfs-actions.pod:5152
16442 msgid "See also C<guestfs_part_set_bootable>."
16443 msgstr ""
16444
16445 # type: =head2
16446 #. type: =head2
16447 #: ../src/guestfs-actions.pod:5158
16448 msgid "guestfs_part_get_mbr_id"
16449 msgstr ""
16450
16451 # type: verbatim
16452 #. type: verbatim
16453 #: ../src/guestfs-actions.pod:5160
16454 #, no-wrap
16455 msgid ""
16456 " int\n"
16457 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
16458 "                          const char *device,\n"
16459 "                          int partnum);\n"
16460 "\n"
16461 msgstr ""
16462
16463 # type: textblock
16464 #. type: textblock
16465 #: ../src/guestfs-actions.pod:5165 ../fish/guestfish-actions.pod:3410
16466 msgid ""
16467 "Returns the MBR type byte (also known as the ID byte) from the numbered "
16468 "partition C<partnum>."
16469 msgstr ""
16470
16471 # type: textblock
16472 #. type: textblock
16473 #: ../src/guestfs-actions.pod:5168 ../src/guestfs-actions.pod:5344
16474 msgid ""
16475 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
16476 "undefined results for other partition table types (see "
16477 "C<guestfs_part_get_parttype>)."
16478 msgstr ""
16479
16480 # type: =head2
16481 #. type: =head2
16482 #: ../src/guestfs-actions.pod:5176
16483 msgid "guestfs_part_get_parttype"
16484 msgstr ""
16485
16486 # type: verbatim
16487 #. type: verbatim
16488 #: ../src/guestfs-actions.pod:5178
16489 #, no-wrap
16490 msgid ""
16491 " char *\n"
16492 " guestfs_part_get_parttype (guestfs_h *g,\n"
16493 "                            const char *device);\n"
16494 "\n"
16495 msgstr ""
16496
16497 # type: textblock
16498 #. type: textblock
16499 #: ../src/guestfs-actions.pod:5182 ../fish/guestfish-actions.pod:3421
16500 msgid ""
16501 "This command examines the partition table on C<device> and returns the "
16502 "partition table type (format) being used."
16503 msgstr ""
16504
16505 # type: textblock
16506 #. type: textblock
16507 #: ../src/guestfs-actions.pod:5185
16508 msgid ""
16509 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
16510 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
16511 "possible, although unusual.  See C<guestfs_part_init> for a full list."
16512 msgstr ""
16513
16514 # type: =head2
16515 #. type: =head2
16516 #: ../src/guestfs-actions.pod:5195
16517 msgid "guestfs_part_init"
16518 msgstr ""
16519
16520 # type: verbatim
16521 #. type: verbatim
16522 #: ../src/guestfs-actions.pod:5197
16523 #, no-wrap
16524 msgid ""
16525 " int\n"
16526 " guestfs_part_init (guestfs_h *g,\n"
16527 "                    const char *device,\n"
16528 "                    const char *parttype);\n"
16529 "\n"
16530 msgstr ""
16531
16532 # type: textblock
16533 #. type: textblock
16534 #: ../src/guestfs-actions.pod:5202 ../fish/guestfish-actions.pod:3433
16535 msgid ""
16536 "This creates an empty partition table on C<device> of one of the partition "
16537 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
16538 "(for large disks)."
16539 msgstr ""
16540
16541 # type: textblock
16542 #. type: textblock
16543 #: ../src/guestfs-actions.pod:5206
16544 msgid ""
16545 "Initially there are no partitions.  Following this, you should call "
16546 "C<guestfs_part_add> for each partition required."
16547 msgstr ""
16548
16549 # type: textblock
16550 #. type: textblock
16551 #: ../src/guestfs-actions.pod:5209 ../fish/guestfish-actions.pod:3440
16552 msgid "Possible values for C<parttype> are:"
16553 msgstr ""
16554
16555 # type: =item
16556 #. type: =item
16557 #: ../src/guestfs-actions.pod:5213 ../fish/guestfish-actions.pod:3444
16558 msgid "B<efi> | B<gpt>"
16559 msgstr ""
16560
16561 # type: textblock
16562 #. type: textblock
16563 #: ../src/guestfs-actions.pod:5215 ../fish/guestfish-actions.pod:3446
16564 msgid "Intel EFI / GPT partition table."
16565 msgstr ""
16566
16567 # type: textblock
16568 #. type: textblock
16569 #: ../src/guestfs-actions.pod:5217 ../fish/guestfish-actions.pod:3448
16570 msgid ""
16571 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
16572 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
16573 "the C<mbr> format."
16574 msgstr ""
16575
16576 # type: =item
16577 #. type: =item
16578 #: ../src/guestfs-actions.pod:5221 ../fish/guestfish-actions.pod:3452
16579 msgid "B<mbr> | B<msdos>"
16580 msgstr ""
16581
16582 # type: textblock
16583 #. type: textblock
16584 #: ../src/guestfs-actions.pod:5223 ../fish/guestfish-actions.pod:3454
16585 msgid ""
16586 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
16587 "Windows.  This partition type will B<only> work for device sizes up to 2 "
16588 "TB.  For large disks we recommend using C<gpt>."
16589 msgstr ""
16590
16591 # type: textblock
16592 #. type: textblock
16593 #: ../src/guestfs-actions.pod:5230 ../fish/guestfish-actions.pod:3461
16594 msgid ""
16595 "Other partition table types that may work but are not supported include:"
16596 msgstr ""
16597
16598 # type: =item
16599 #. type: =item
16600 #: ../src/guestfs-actions.pod:5235 ../fish/guestfish-actions.pod:3466
16601 msgid "B<aix>"
16602 msgstr ""
16603
16604 # type: textblock
16605 #. type: textblock
16606 #: ../src/guestfs-actions.pod:5237 ../fish/guestfish-actions.pod:3468
16607 msgid "AIX disk labels."
16608 msgstr ""
16609
16610 # type: =item
16611 #. type: =item
16612 #: ../src/guestfs-actions.pod:5239 ../fish/guestfish-actions.pod:3470
16613 msgid "B<amiga> | B<rdb>"
16614 msgstr ""
16615
16616 # type: textblock
16617 #. type: textblock
16618 #: ../src/guestfs-actions.pod:5241 ../fish/guestfish-actions.pod:3472
16619 msgid "Amiga \"Rigid Disk Block\" format."
16620 msgstr ""
16621
16622 # type: =item
16623 #. type: =item
16624 #: ../src/guestfs-actions.pod:5243 ../fish/guestfish-actions.pod:3474
16625 msgid "B<bsd>"
16626 msgstr ""
16627
16628 # type: textblock
16629 #. type: textblock
16630 #: ../src/guestfs-actions.pod:5245 ../fish/guestfish-actions.pod:3476
16631 msgid "BSD disk labels."
16632 msgstr ""
16633
16634 # type: =item
16635 #. type: =item
16636 #: ../src/guestfs-actions.pod:5247 ../fish/guestfish-actions.pod:3478
16637 msgid "B<dasd>"
16638 msgstr ""
16639
16640 # type: textblock
16641 #. type: textblock
16642 #: ../src/guestfs-actions.pod:5249 ../fish/guestfish-actions.pod:3480
16643 msgid "DASD, used on IBM mainframes."
16644 msgstr ""
16645
16646 # type: =item
16647 #. type: =item
16648 #: ../src/guestfs-actions.pod:5251 ../fish/guestfish-actions.pod:3482
16649 msgid "B<dvh>"
16650 msgstr ""
16651
16652 # type: textblock
16653 #. type: textblock
16654 #: ../src/guestfs-actions.pod:5253 ../fish/guestfish-actions.pod:3484
16655 msgid "MIPS/SGI volumes."
16656 msgstr ""
16657
16658 # type: =item
16659 #. type: =item
16660 #: ../src/guestfs-actions.pod:5255 ../fish/guestfish-actions.pod:3486
16661 msgid "B<mac>"
16662 msgstr ""
16663
16664 # type: textblock
16665 #. type: textblock
16666 #: ../src/guestfs-actions.pod:5257 ../fish/guestfish-actions.pod:3488
16667 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
16668 msgstr ""
16669
16670 # type: =item
16671 #. type: =item
16672 #: ../src/guestfs-actions.pod:5259 ../fish/guestfish-actions.pod:3490
16673 msgid "B<pc98>"
16674 msgstr ""
16675
16676 # type: textblock
16677 #. type: textblock
16678 #: ../src/guestfs-actions.pod:5261 ../fish/guestfish-actions.pod:3492
16679 msgid "NEC PC-98 format, common in Japan apparently."
16680 msgstr ""
16681
16682 # type: =item
16683 #. type: =item
16684 #: ../src/guestfs-actions.pod:5263 ../fish/guestfish-actions.pod:3494
16685 msgid "B<sun>"
16686 msgstr ""
16687
16688 # type: textblock
16689 #. type: textblock
16690 #: ../src/guestfs-actions.pod:5265 ../fish/guestfish-actions.pod:3496
16691 msgid "Sun disk labels."
16692 msgstr ""
16693
16694 # type: =head2
16695 #. type: =head2
16696 #: ../src/guestfs-actions.pod:5273
16697 msgid "guestfs_part_list"
16698 msgstr ""
16699
16700 # type: verbatim
16701 #. type: verbatim
16702 #: ../src/guestfs-actions.pod:5275
16703 #, no-wrap
16704 msgid ""
16705 " struct guestfs_partition_list *\n"
16706 " guestfs_part_list (guestfs_h *g,\n"
16707 "                    const char *device);\n"
16708 "\n"
16709 msgstr ""
16710
16711 # type: textblock
16712 #. type: textblock
16713 #: ../src/guestfs-actions.pod:5279 ../fish/guestfish-actions.pod:3504
16714 msgid ""
16715 "This command parses the partition table on C<device> and returns the list of "
16716 "partitions found."
16717 msgstr ""
16718
16719 # type: textblock
16720 #. type: textblock
16721 #: ../src/guestfs-actions.pod:5282 ../fish/guestfish-actions.pod:3507
16722 msgid "The fields in the returned structure are:"
16723 msgstr ""
16724
16725 # type: =item
16726 #. type: =item
16727 #: ../src/guestfs-actions.pod:5286 ../fish/guestfish-actions.pod:3511
16728 msgid "B<part_num>"
16729 msgstr ""
16730
16731 # type: textblock
16732 #. type: textblock
16733 #: ../src/guestfs-actions.pod:5288 ../fish/guestfish-actions.pod:3513
16734 msgid "Partition number, counting from 1."
16735 msgstr ""
16736
16737 # type: =item
16738 #. type: =item
16739 #: ../src/guestfs-actions.pod:5290 ../fish/guestfish-actions.pod:3515
16740 msgid "B<part_start>"
16741 msgstr ""
16742
16743 # type: textblock
16744 #. type: textblock
16745 #: ../src/guestfs-actions.pod:5292
16746 msgid ""
16747 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
16748 "the device's sector size, see C<guestfs_blockdev_getss>."
16749 msgstr ""
16750
16751 # type: =item
16752 #. type: =item
16753 #: ../src/guestfs-actions.pod:5295 ../fish/guestfish-actions.pod:3520
16754 msgid "B<part_end>"
16755 msgstr ""
16756
16757 # type: textblock
16758 #. type: textblock
16759 #: ../src/guestfs-actions.pod:5297 ../fish/guestfish-actions.pod:3522
16760 msgid "End of the partition in bytes."
16761 msgstr ""
16762
16763 # type: =item
16764 #. type: =item
16765 #: ../src/guestfs-actions.pod:5299 ../fish/guestfish-actions.pod:3524
16766 msgid "B<part_size>"
16767 msgstr ""
16768
16769 # type: textblock
16770 #. type: textblock
16771 #: ../src/guestfs-actions.pod:5301 ../fish/guestfish-actions.pod:3526
16772 msgid "Size of the partition in bytes."
16773 msgstr ""
16774
16775 # type: textblock
16776 #. type: textblock
16777 #: ../src/guestfs-actions.pod:5305
16778 msgid ""
16779 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
16780 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
16781 "use>."
16782 msgstr ""
16783
16784 # type: =head2
16785 #. type: =head2
16786 #: ../src/guestfs-actions.pod:5311
16787 msgid "guestfs_part_set_bootable"
16788 msgstr ""
16789
16790 # type: verbatim
16791 #. type: verbatim
16792 #: ../src/guestfs-actions.pod:5313
16793 #, no-wrap
16794 msgid ""
16795 " int\n"
16796 " guestfs_part_set_bootable (guestfs_h *g,\n"
16797 "                            const char *device,\n"
16798 "                            int partnum,\n"
16799 "                            int bootable);\n"
16800 "\n"
16801 msgstr ""
16802
16803 # type: textblock
16804 #. type: textblock
16805 #: ../src/guestfs-actions.pod:5319 ../fish/guestfish-actions.pod:3534
16806 msgid ""
16807 "This sets the bootable flag on partition numbered C<partnum> on device "
16808 "C<device>.  Note that partitions are numbered from 1."
16809 msgstr ""
16810
16811 # type: textblock
16812 #. type: textblock
16813 #: ../src/guestfs-actions.pod:5322 ../fish/guestfish-actions.pod:3537
16814 msgid ""
16815 "The bootable flag is used by some operating systems (notably Windows) to "
16816 "determine which partition to boot from.  It is by no means universally "
16817 "recognized."
16818 msgstr ""
16819
16820 # type: =head2
16821 #. type: =head2
16822 #: ../src/guestfs-actions.pod:5330
16823 msgid "guestfs_part_set_mbr_id"
16824 msgstr ""
16825
16826 # type: verbatim
16827 #. type: verbatim
16828 #: ../src/guestfs-actions.pod:5332
16829 #, no-wrap
16830 msgid ""
16831 " int\n"
16832 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
16833 "                          const char *device,\n"
16834 "                          int partnum,\n"
16835 "                          int idbyte);\n"
16836 "\n"
16837 msgstr ""
16838
16839 # type: textblock
16840 #. type: textblock
16841 #: ../src/guestfs-actions.pod:5338 ../fish/guestfish-actions.pod:3545
16842 msgid ""
16843 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
16844 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
16845 "documentation are in fact hexadecimal numbers, but usually documented "
16846 "without any leading \"0x\" which might be confusing."
16847 msgstr ""
16848
16849 # type: =head2
16850 #. type: =head2
16851 #: ../src/guestfs-actions.pod:5352
16852 msgid "guestfs_part_set_name"
16853 msgstr ""
16854
16855 # type: verbatim
16856 #. type: verbatim
16857 #: ../src/guestfs-actions.pod:5354
16858 #, no-wrap
16859 msgid ""
16860 " int\n"
16861 " guestfs_part_set_name (guestfs_h *g,\n"
16862 "                        const char *device,\n"
16863 "                        int partnum,\n"
16864 "                        const char *name);\n"
16865 "\n"
16866 msgstr ""
16867
16868 # type: textblock
16869 #. type: textblock
16870 #: ../src/guestfs-actions.pod:5360 ../fish/guestfish-actions.pod:3559
16871 msgid ""
16872 "This sets the partition name on partition numbered C<partnum> on device "
16873 "C<device>.  Note that partitions are numbered from 1."
16874 msgstr ""
16875
16876 # type: textblock
16877 #. type: textblock
16878 #: ../src/guestfs-actions.pod:5363 ../fish/guestfish-actions.pod:3562
16879 msgid ""
16880 "The partition name can only be set on certain types of partition table.  "
16881 "This works on C<gpt> but not on C<mbr> partitions."
16882 msgstr ""
16883
16884 # type: =head2
16885 #. type: =head2
16886 #: ../src/guestfs-actions.pod:5370
16887 msgid "guestfs_part_to_dev"
16888 msgstr ""
16889
16890 # type: verbatim
16891 #. type: verbatim
16892 #: ../src/guestfs-actions.pod:5372
16893 #, no-wrap
16894 msgid ""
16895 " char *\n"
16896 " guestfs_part_to_dev (guestfs_h *g,\n"
16897 "                      const char *partition);\n"
16898 "\n"
16899 msgstr ""
16900
16901 # type: textblock
16902 #. type: textblock
16903 #: ../src/guestfs-actions.pod:5376 ../fish/guestfish-actions.pod:3569
16904 msgid ""
16905 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
16906 "partition number, returning the device name (eg. \"/dev/sdb\")."
16907 msgstr ""
16908
16909 # type: textblock
16910 #. type: textblock
16911 #: ../src/guestfs-actions.pod:5380
16912 msgid ""
16913 "The named partition must exist, for example as a string returned from "
16914 "C<guestfs_list_partitions>."
16915 msgstr ""
16916
16917 # type: =head2
16918 #. type: =head2
16919 #: ../src/guestfs-actions.pod:5388
16920 msgid "guestfs_ping_daemon"
16921 msgstr ""
16922
16923 # type: verbatim
16924 #. type: verbatim
16925 #: ../src/guestfs-actions.pod:5390
16926 #, no-wrap
16927 msgid ""
16928 " int\n"
16929 " guestfs_ping_daemon (guestfs_h *g);\n"
16930 "\n"
16931 msgstr ""
16932
16933 # type: textblock
16934 #. type: textblock
16935 #: ../src/guestfs-actions.pod:5393 ../fish/guestfish-actions.pod:3580
16936 msgid ""
16937 "This is a test probe into the guestfs daemon running inside the qemu "
16938 "subprocess.  Calling this function checks that the daemon responds to the "
16939 "ping message, without affecting the daemon or attached block device(s) in "
16940 "any other way."
16941 msgstr ""
16942
16943 # type: =head2
16944 #. type: =head2
16945 #: ../src/guestfs-actions.pod:5402
16946 msgid "guestfs_pread"
16947 msgstr ""
16948
16949 # type: verbatim
16950 #. type: verbatim
16951 #: ../src/guestfs-actions.pod:5404
16952 #, no-wrap
16953 msgid ""
16954 " char *\n"
16955 " guestfs_pread (guestfs_h *g,\n"
16956 "                const char *path,\n"
16957 "                int count,\n"
16958 "                int64_t offset,\n"
16959 "                size_t *size_r);\n"
16960 "\n"
16961 msgstr ""
16962
16963 # type: textblock
16964 #. type: textblock
16965 #: ../src/guestfs-actions.pod:5411 ../fish/guestfish-actions.pod:3589
16966 msgid ""
16967 "This command lets you read part of a file.  It reads C<count> bytes of the "
16968 "file, starting at C<offset>, from file C<path>."
16969 msgstr ""
16970
16971 # type: textblock
16972 #. type: textblock
16973 #: ../src/guestfs-actions.pod:5414 ../src/guestfs-actions.pod:5440
16974 #: ../fish/guestfish-actions.pod:3592 ../fish/guestfish-actions.pod:3607
16975 msgid ""
16976 "This may read fewer bytes than requested.  For further details see the "
16977 "L<pread(2)> system call."
16978 msgstr ""
16979
16980 # type: textblock
16981 #. type: textblock
16982 #: ../src/guestfs-actions.pod:5417
16983 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
16984 msgstr ""
16985
16986 # type: =head2
16987 #. type: =head2
16988 #: ../src/guestfs-actions.pod:5428
16989 msgid "guestfs_pread_device"
16990 msgstr ""
16991
16992 # type: verbatim
16993 #. type: verbatim
16994 #: ../src/guestfs-actions.pod:5430
16995 #, no-wrap
16996 msgid ""
16997 " char *\n"
16998 " guestfs_pread_device (guestfs_h *g,\n"
16999 "                       const char *device,\n"
17000 "                       int count,\n"
17001 "                       int64_t offset,\n"
17002 "                       size_t *size_r);\n"
17003 "\n"
17004 msgstr ""
17005
17006 # type: textblock
17007 #. type: textblock
17008 #: ../src/guestfs-actions.pod:5437 ../fish/guestfish-actions.pod:3604
17009 msgid ""
17010 "This command lets you read part of a file.  It reads C<count> bytes of "
17011 "C<device>, starting at C<offset>."
17012 msgstr ""
17013
17014 # type: textblock
17015 #. type: textblock
17016 #: ../src/guestfs-actions.pod:5443
17017 msgid "See also C<guestfs_pread>."
17018 msgstr ""
17019
17020 # type: textblock
17021 #. type: textblock
17022 #: ../src/guestfs-actions.pod:5452
17023 msgid "(Added in 1.5.21)"
17024 msgstr ""
17025
17026 # type: =head2
17027 #. type: =head2
17028 #: ../src/guestfs-actions.pod:5454
17029 msgid "guestfs_pvcreate"
17030 msgstr ""
17031
17032 # type: verbatim
17033 #. type: verbatim
17034 #: ../src/guestfs-actions.pod:5456
17035 #, no-wrap
17036 msgid ""
17037 " int\n"
17038 " guestfs_pvcreate (guestfs_h *g,\n"
17039 "                   const char *device);\n"
17040 "\n"
17041 msgstr ""
17042
17043 # type: textblock
17044 #. type: textblock
17045 #: ../src/guestfs-actions.pod:5460 ../fish/guestfish-actions.pod:3619
17046 msgid ""
17047 "This creates an LVM physical volume on the named C<device>, where C<device> "
17048 "should usually be a partition name such as C</dev/sda1>."
17049 msgstr ""
17050
17051 # type: =head2
17052 #. type: =head2
17053 #: ../src/guestfs-actions.pod:5468
17054 msgid "guestfs_pvremove"
17055 msgstr ""
17056
17057 # type: verbatim
17058 #. type: verbatim
17059 #: ../src/guestfs-actions.pod:5470
17060 #, no-wrap
17061 msgid ""
17062 " int\n"
17063 " guestfs_pvremove (guestfs_h *g,\n"
17064 "                   const char *device);\n"
17065 "\n"
17066 msgstr ""
17067
17068 # type: textblock
17069 #. type: textblock
17070 #: ../src/guestfs-actions.pod:5474 ../fish/guestfish-actions.pod:3627
17071 msgid ""
17072 "This wipes a physical volume C<device> so that LVM will no longer recognise "
17073 "it."
17074 msgstr ""
17075
17076 # type: textblock
17077 #. type: textblock
17078 #: ../src/guestfs-actions.pod:5477 ../fish/guestfish-actions.pod:3630
17079 msgid ""
17080 "The implementation uses the C<pvremove> command which refuses to wipe "
17081 "physical volumes that contain any volume groups, so you have to remove those "
17082 "first."
17083 msgstr ""
17084
17085 # type: =head2
17086 #. type: =head2
17087 #: ../src/guestfs-actions.pod:5485
17088 msgid "guestfs_pvresize"
17089 msgstr ""
17090
17091 # type: verbatim
17092 #. type: verbatim
17093 #: ../src/guestfs-actions.pod:5487
17094 #, no-wrap
17095 msgid ""
17096 " int\n"
17097 " guestfs_pvresize (guestfs_h *g,\n"
17098 "                   const char *device);\n"
17099 "\n"
17100 msgstr ""
17101
17102 # type: textblock
17103 #. type: textblock
17104 #: ../src/guestfs-actions.pod:5491 ../fish/guestfish-actions.pod:3638
17105 msgid ""
17106 "This resizes (expands or shrinks) an existing LVM physical volume to match "
17107 "the new size of the underlying device."
17108 msgstr ""
17109
17110 # type: =head2
17111 #. type: =head2
17112 #: ../src/guestfs-actions.pod:5498
17113 msgid "guestfs_pvresize_size"
17114 msgstr ""
17115
17116 # type: verbatim
17117 #. type: verbatim
17118 #: ../src/guestfs-actions.pod:5500
17119 #, no-wrap
17120 msgid ""
17121 " int\n"
17122 " guestfs_pvresize_size (guestfs_h *g,\n"
17123 "                        const char *device,\n"
17124 "                        int64_t size);\n"
17125 "\n"
17126 msgstr ""
17127
17128 # type: textblock
17129 #. type: textblock
17130 #: ../src/guestfs-actions.pod:5505
17131 msgid ""
17132 "This command is the same as C<guestfs_pvresize> except that it allows you to "
17133 "specify the new size (in bytes) explicitly."
17134 msgstr ""
17135
17136 # type: =head2
17137 #. type: =head2
17138 #: ../src/guestfs-actions.pod:5512
17139 msgid "guestfs_pvs"
17140 msgstr ""
17141
17142 # type: verbatim
17143 #. type: verbatim
17144 #: ../src/guestfs-actions.pod:5514
17145 #, no-wrap
17146 msgid ""
17147 " char **\n"
17148 " guestfs_pvs (guestfs_h *g);\n"
17149 "\n"
17150 msgstr ""
17151
17152 # type: textblock
17153 #. type: textblock
17154 #: ../src/guestfs-actions.pod:5517 ../fish/guestfish-actions.pod:3652
17155 msgid ""
17156 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
17157 "(8)> command."
17158 msgstr ""
17159
17160 # type: textblock
17161 #. type: textblock
17162 #: ../src/guestfs-actions.pod:5520 ../fish/guestfish-actions.pod:3655
17163 msgid ""
17164 "This returns a list of just the device names that contain PVs (eg. C</dev/"
17165 "sda2>)."
17166 msgstr ""
17167
17168 # type: textblock
17169 #. type: textblock
17170 #: ../src/guestfs-actions.pod:5523
17171 msgid "See also C<guestfs_pvs_full>."
17172 msgstr ""
17173
17174 # type: =head2
17175 #. type: =head2
17176 #: ../src/guestfs-actions.pod:5531
17177 msgid "guestfs_pvs_full"
17178 msgstr ""
17179
17180 # type: verbatim
17181 #. type: verbatim
17182 #: ../src/guestfs-actions.pod:5533
17183 #, no-wrap
17184 msgid ""
17185 " struct guestfs_lvm_pv_list *\n"
17186 " guestfs_pvs_full (guestfs_h *g);\n"
17187 "\n"
17188 msgstr ""
17189
17190 # type: textblock
17191 #. type: textblock
17192 #: ../src/guestfs-actions.pod:5536 ../fish/guestfish-actions.pod:3664
17193 msgid ""
17194 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
17195 "(8)> command.  The \"full\" version includes all fields."
17196 msgstr ""
17197
17198 # type: textblock
17199 #. type: textblock
17200 #: ../src/guestfs-actions.pod:5539
17201 msgid ""
17202 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
17203 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
17204 msgstr ""
17205
17206 # type: =head2
17207 #. type: =head2
17208 #: ../src/guestfs-actions.pod:5545
17209 msgid "guestfs_pvuuid"
17210 msgstr ""
17211
17212 # type: verbatim
17213 #. type: verbatim
17214 #: ../src/guestfs-actions.pod:5547
17215 #, no-wrap
17216 msgid ""
17217 " char *\n"
17218 " guestfs_pvuuid (guestfs_h *g,\n"
17219 "                 const char *device);\n"
17220 "\n"
17221 msgstr ""
17222
17223 # type: textblock
17224 #. type: textblock
17225 #: ../src/guestfs-actions.pod:5551 ../fish/guestfish-actions.pod:3671
17226 msgid "This command returns the UUID of the LVM PV C<device>."
17227 msgstr ""
17228
17229 # type: =head2
17230 #. type: =head2
17231 #: ../src/guestfs-actions.pod:5558
17232 msgid "guestfs_pwrite"
17233 msgstr ""
17234
17235 # type: verbatim
17236 #. type: verbatim
17237 #: ../src/guestfs-actions.pod:5560
17238 #, no-wrap
17239 msgid ""
17240 " int\n"
17241 " guestfs_pwrite (guestfs_h *g,\n"
17242 "                 const char *path,\n"
17243 "                 const char *content,\n"
17244 "                 size_t content_size,\n"
17245 "                 int64_t offset);\n"
17246 "\n"
17247 msgstr ""
17248
17249 # type: textblock
17250 #. type: textblock
17251 #: ../src/guestfs-actions.pod:5567 ../fish/guestfish-actions.pod:3677
17252 msgid ""
17253 "This command writes to part of a file.  It writes the data buffer C<content> "
17254 "to the file C<path> starting at offset C<offset>."
17255 msgstr ""
17256
17257 # type: textblock
17258 #. type: textblock
17259 #: ../src/guestfs-actions.pod:5570 ../fish/guestfish-actions.pod:3680
17260 msgid ""
17261 "This command implements the L<pwrite(2)> system call, and like that system "
17262 "call it may not write the full data requested.  The return value is the "
17263 "number of bytes that were actually written to the file.  This could even be "
17264 "0, although short writes are unlikely for regular files in ordinary "
17265 "circumstances."
17266 msgstr ""
17267
17268 # type: textblock
17269 #. type: textblock
17270 #: ../src/guestfs-actions.pod:5576
17271 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
17272 msgstr ""
17273
17274 # type: =head2
17275 #. type: =head2
17276 #: ../src/guestfs-actions.pod:5585
17277 msgid "guestfs_pwrite_device"
17278 msgstr ""
17279
17280 # type: verbatim
17281 #. type: verbatim
17282 #: ../src/guestfs-actions.pod:5587
17283 #, no-wrap
17284 msgid ""
17285 " int\n"
17286 " guestfs_pwrite_device (guestfs_h *g,\n"
17287 "                        const char *device,\n"
17288 "                        const char *content,\n"
17289 "                        size_t content_size,\n"
17290 "                        int64_t offset);\n"
17291 "\n"
17292 msgstr ""
17293
17294 # type: textblock
17295 #. type: textblock
17296 #: ../src/guestfs-actions.pod:5594 ../fish/guestfish-actions.pod:3695
17297 msgid ""
17298 "This command writes to part of a device.  It writes the data buffer "
17299 "C<content> to C<device> starting at offset C<offset>."
17300 msgstr ""
17301
17302 # type: textblock
17303 #. type: textblock
17304 #: ../src/guestfs-actions.pod:5597 ../fish/guestfish-actions.pod:3698
17305 msgid ""
17306 "This command implements the L<pwrite(2)> system call, and like that system "
17307 "call it may not write the full data requested (although short writes to disk "
17308 "devices and partitions are probably impossible with standard Linux kernels)."
17309 msgstr ""
17310
17311 # type: textblock
17312 #. type: textblock
17313 #: ../src/guestfs-actions.pod:5602
17314 msgid "See also C<guestfs_pwrite>."
17315 msgstr ""
17316
17317 # type: textblock
17318 #. type: textblock
17319 #: ../src/guestfs-actions.pod:5609
17320 msgid "(Added in 1.5.20)"
17321 msgstr ""
17322
17323 # type: =head2
17324 #. type: =head2
17325 #: ../src/guestfs-actions.pod:5611
17326 msgid "guestfs_read_file"
17327 msgstr ""
17328
17329 # type: verbatim
17330 #. type: verbatim
17331 #: ../src/guestfs-actions.pod:5613
17332 #, no-wrap
17333 msgid ""
17334 " char *\n"
17335 " guestfs_read_file (guestfs_h *g,\n"
17336 "                    const char *path,\n"
17337 "                    size_t *size_r);\n"
17338 "\n"
17339 msgstr ""
17340
17341 # type: textblock
17342 #. type: textblock
17343 #: ../src/guestfs-actions.pod:5618 ../fish/guestfish-actions.pod:3712
17344 msgid "This calls returns the contents of the file C<path> as a buffer."
17345 msgstr ""
17346
17347 # type: textblock
17348 #. type: textblock
17349 #: ../src/guestfs-actions.pod:5621
17350 msgid ""
17351 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
17352 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
17353 "function is limited in the total size of file that can be handled."
17354 msgstr ""
17355
17356 # type: textblock
17357 #. type: textblock
17358 #: ../src/guestfs-actions.pod:5633
17359 msgid "(Added in 1.0.63)"
17360 msgstr ""
17361
17362 # type: =head2
17363 #. type: =head2
17364 #: ../src/guestfs-actions.pod:5635
17365 msgid "guestfs_read_lines"
17366 msgstr ""
17367
17368 # type: verbatim
17369 #. type: verbatim
17370 #: ../src/guestfs-actions.pod:5637
17371 #, no-wrap
17372 msgid ""
17373 " char **\n"
17374 " guestfs_read_lines (guestfs_h *g,\n"
17375 "                     const char *path);\n"
17376 "\n"
17377 msgstr ""
17378
17379 # type: textblock
17380 #. type: textblock
17381 #: ../src/guestfs-actions.pod:5643 ../fish/guestfish-actions.pod:3729
17382 msgid ""
17383 "The file contents are returned as a list of lines.  Trailing C<LF> and "
17384 "C<CRLF> character sequences are I<not> returned."
17385 msgstr ""
17386
17387 # type: textblock
17388 #. type: textblock
17389 #: ../src/guestfs-actions.pod:5646
17390 msgid ""
17391 "Note that this function cannot correctly handle binary files (specifically, "
17392 "files containing C<\\0> character which is treated as end of line).  For "
17393 "those you need to use the C<guestfs_read_file> function which has a more "
17394 "complex interface."
17395 msgstr ""
17396
17397 # type: =head2
17398 #. type: =head2
17399 #: ../src/guestfs-actions.pod:5657
17400 msgid "guestfs_readdir"
17401 msgstr ""
17402
17403 # type: verbatim
17404 #. type: verbatim
17405 #: ../src/guestfs-actions.pod:5659
17406 #, no-wrap
17407 msgid ""
17408 " struct guestfs_dirent_list *\n"
17409 " guestfs_readdir (guestfs_h *g,\n"
17410 "                  const char *dir);\n"
17411 "\n"
17412 msgstr ""
17413
17414 # type: textblock
17415 #. type: textblock
17416 #: ../src/guestfs-actions.pod:5663 ../fish/guestfish-actions.pod:3741
17417 msgid "This returns the list of directory entries in directory C<dir>."
17418 msgstr ""
17419
17420 # type: textblock
17421 #. type: textblock
17422 #: ../src/guestfs-actions.pod:5665 ../fish/guestfish-actions.pod:3743
17423 msgid ""
17424 "All entries in the directory are returned, including C<.> and C<..>.  The "
17425 "entries are I<not> sorted, but returned in the same order as the underlying "
17426 "filesystem."
17427 msgstr ""
17428
17429 # type: textblock
17430 #. type: textblock
17431 #: ../src/guestfs-actions.pod:5669 ../fish/guestfish-actions.pod:3747
17432 msgid ""
17433 "Also this call returns basic file type information about each file.  The "
17434 "C<ftyp> field will contain one of the following characters:"
17435 msgstr ""
17436
17437 # type: =item
17438 #. type: =item
17439 #: ../src/guestfs-actions.pod:5674 ../fish/guestfish-actions.pod:3752
17440 msgid "'b'"
17441 msgstr ""
17442
17443 # type: textblock
17444 #. type: textblock
17445 #: ../src/guestfs-actions.pod:5676 ../fish/guestfish-actions.pod:3754
17446 msgid "Block special"
17447 msgstr ""
17448
17449 # type: =item
17450 #. type: =item
17451 #: ../src/guestfs-actions.pod:5678 ../fish/guestfish-actions.pod:3756
17452 msgid "'c'"
17453 msgstr ""
17454
17455 # type: textblock
17456 #. type: textblock
17457 #: ../src/guestfs-actions.pod:5680 ../fish/guestfish-actions.pod:3758
17458 msgid "Char special"
17459 msgstr ""
17460
17461 # type: =item
17462 #. type: =item
17463 #: ../src/guestfs-actions.pod:5682 ../fish/guestfish-actions.pod:3760
17464 msgid "'d'"
17465 msgstr ""
17466
17467 # type: textblock
17468 #. type: textblock
17469 #: ../src/guestfs-actions.pod:5684 ../fish/guestfish-actions.pod:3762
17470 msgid "Directory"
17471 msgstr ""
17472
17473 # type: =item
17474 #. type: =item
17475 #: ../src/guestfs-actions.pod:5686 ../fish/guestfish-actions.pod:3764
17476 msgid "'f'"
17477 msgstr ""
17478
17479 # type: textblock
17480 #. type: textblock
17481 #: ../src/guestfs-actions.pod:5688 ../fish/guestfish-actions.pod:3766
17482 msgid "FIFO (named pipe)"
17483 msgstr ""
17484
17485 # type: =item
17486 #. type: =item
17487 #: ../src/guestfs-actions.pod:5690 ../fish/guestfish-actions.pod:3768
17488 msgid "'l'"
17489 msgstr ""
17490
17491 # type: textblock
17492 #. type: textblock
17493 #: ../src/guestfs-actions.pod:5692 ../fish/guestfish-actions.pod:3770
17494 msgid "Symbolic link"
17495 msgstr ""
17496
17497 # type: =item
17498 #. type: =item
17499 #: ../src/guestfs-actions.pod:5694 ../fish/guestfish-actions.pod:3772
17500 msgid "'r'"
17501 msgstr ""
17502
17503 # type: textblock
17504 #. type: textblock
17505 #: ../src/guestfs-actions.pod:5696 ../fish/guestfish-actions.pod:3774
17506 msgid "Regular file"
17507 msgstr ""
17508
17509 # type: =item
17510 #. type: =item
17511 #: ../src/guestfs-actions.pod:5698 ../fish/guestfish-actions.pod:3776
17512 msgid "'s'"
17513 msgstr ""
17514
17515 # type: textblock
17516 #. type: textblock
17517 #: ../src/guestfs-actions.pod:5700 ../fish/guestfish-actions.pod:3778
17518 msgid "Socket"
17519 msgstr ""
17520
17521 # type: =item
17522 #. type: =item
17523 #: ../src/guestfs-actions.pod:5702 ../fish/guestfish-actions.pod:3780
17524 msgid "'u'"
17525 msgstr ""
17526
17527 # type: textblock
17528 #. type: textblock
17529 #: ../src/guestfs-actions.pod:5704 ../fish/guestfish-actions.pod:3782
17530 msgid "Unknown file type"
17531 msgstr ""
17532
17533 # type: =item
17534 #. type: =item
17535 #: ../src/guestfs-actions.pod:5706 ../fish/guestfish-actions.pod:3784
17536 msgid "'?'"
17537 msgstr ""
17538
17539 # type: textblock
17540 #. type: textblock
17541 #: ../src/guestfs-actions.pod:5708 ../fish/guestfish-actions.pod:3786
17542 msgid ""
17543 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
17544 msgstr ""
17545
17546 # type: textblock
17547 #. type: textblock
17548 #: ../src/guestfs-actions.pod:5713
17549 msgid ""
17550 "This function is primarily intended for use by programs.  To get a simple "
17551 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
17552 "consumption, use C<guestfs_ll>."
17553 msgstr ""
17554
17555 # type: textblock
17556 #. type: textblock
17557 #: ../src/guestfs-actions.pod:5717
17558 msgid ""
17559 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
17560 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
17561 msgstr ""
17562
17563 # type: =head2
17564 #. type: =head2
17565 #: ../src/guestfs-actions.pod:5723
17566 msgid "guestfs_readlink"
17567 msgstr ""
17568
17569 # type: verbatim
17570 #. type: verbatim
17571 #: ../src/guestfs-actions.pod:5725
17572 #, no-wrap
17573 msgid ""
17574 " char *\n"
17575 " guestfs_readlink (guestfs_h *g,\n"
17576 "                   const char *path);\n"
17577 "\n"
17578 msgstr ""
17579
17580 # type: textblock
17581 #. type: textblock
17582 #: ../src/guestfs-actions.pod:5729 ../fish/guestfish-actions.pod:3799
17583 msgid "This command reads the target of a symbolic link."
17584 msgstr ""
17585
17586 # type: =head2
17587 #. type: =head2
17588 #: ../src/guestfs-actions.pod:5736
17589 msgid "guestfs_readlinklist"
17590 msgstr ""
17591
17592 # type: verbatim
17593 #. type: verbatim
17594 #: ../src/guestfs-actions.pod:5738
17595 #, no-wrap
17596 msgid ""
17597 " char **\n"
17598 " guestfs_readlinklist (guestfs_h *g,\n"
17599 "                       const char *path,\n"
17600 "                       char *const *names);\n"
17601 "\n"
17602 msgstr ""
17603
17604 # type: textblock
17605 #. type: textblock
17606 #: ../src/guestfs-actions.pod:5743 ../fish/guestfish-actions.pod:3805
17607 msgid ""
17608 "This call allows you to do a C<readlink> operation on multiple files, where "
17609 "all files are in the directory C<path>.  C<names> is the list of files from "
17610 "this directory."
17611 msgstr ""
17612
17613 # type: textblock
17614 #. type: textblock
17615 #: ../src/guestfs-actions.pod:5747 ../fish/guestfish-actions.pod:3809
17616 msgid ""
17617 "On return you get a list of strings, with a one-to-one correspondence to the "
17618 "C<names> list.  Each string is the value of the symbolic link."
17619 msgstr ""
17620
17621 # type: textblock
17622 #. type: textblock
17623 #: ../src/guestfs-actions.pod:5751 ../fish/guestfish-actions.pod:3813
17624 msgid ""
17625 "If the C<readlink(2)> operation fails on any name, then the corresponding "
17626 "result string is the empty string C<\"\">.  However the whole operation is "
17627 "completed even if there were C<readlink(2)> errors, and so you can call this "
17628 "function with names where you don't know if they are symbolic links already "
17629 "(albeit slightly less efficient)."
17630 msgstr ""
17631
17632 # type: textblock
17633 #. type: textblock
17634 #: ../src/guestfs-actions.pod:5758 ../fish/guestfish-actions.pod:3820
17635 msgid ""
17636 "This call is intended for programs that want to efficiently list a directory "
17637 "contents without making many round-trips.  Very long directory listings "
17638 "might cause the protocol message size to be exceeded, causing this call to "
17639 "fail.  The caller must split up such requests into smaller groups of names."
17640 msgstr ""
17641
17642 # type: =head2
17643 #. type: =head2
17644 #: ../src/guestfs-actions.pod:5771
17645 msgid "guestfs_realpath"
17646 msgstr ""
17647
17648 # type: verbatim
17649 #. type: verbatim
17650 #: ../src/guestfs-actions.pod:5773
17651 #, no-wrap
17652 msgid ""
17653 " char *\n"
17654 " guestfs_realpath (guestfs_h *g,\n"
17655 "                   const char *path);\n"
17656 "\n"
17657 msgstr ""
17658
17659 # type: textblock
17660 #. type: textblock
17661 #: ../src/guestfs-actions.pod:5777 ../fish/guestfish-actions.pod:3831
17662 msgid ""
17663 "Return the canonicalized absolute pathname of C<path>.  The returned path "
17664 "has no C<.>, C<..> or symbolic link path elements."
17665 msgstr ""
17666
17667 # type: =head2
17668 #. type: =head2
17669 #: ../src/guestfs-actions.pod:5785
17670 msgid "guestfs_removexattr"
17671 msgstr ""
17672
17673 # type: verbatim
17674 #. type: verbatim
17675 #: ../src/guestfs-actions.pod:5787
17676 #, no-wrap
17677 msgid ""
17678 " int\n"
17679 " guestfs_removexattr (guestfs_h *g,\n"
17680 "                      const char *xattr,\n"
17681 "                      const char *path);\n"
17682 "\n"
17683 msgstr ""
17684
17685 # type: textblock
17686 #. type: textblock
17687 #: ../src/guestfs-actions.pod:5792 ../fish/guestfish-actions.pod:3838
17688 msgid ""
17689 "This call removes the extended attribute named C<xattr> of the file C<path>."
17690 msgstr ""
17691
17692 # type: textblock
17693 #. type: textblock
17694 #: ../src/guestfs-actions.pod:5795
17695 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
17696 msgstr ""
17697
17698 # type: =head2
17699 #. type: =head2
17700 #: ../src/guestfs-actions.pod:5801
17701 msgid "guestfs_resize2fs"
17702 msgstr ""
17703
17704 # type: verbatim
17705 #. type: verbatim
17706 #: ../src/guestfs-actions.pod:5803
17707 #, no-wrap
17708 msgid ""
17709 " int\n"
17710 " guestfs_resize2fs (guestfs_h *g,\n"
17711 "                    const char *device);\n"
17712 "\n"
17713 msgstr ""
17714
17715 # type: textblock
17716 #. type: textblock
17717 #: ../src/guestfs-actions.pod:5807 ../fish/guestfish-actions.pod:3847
17718 msgid ""
17719 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
17720 "underlying device."
17721 msgstr ""
17722
17723 # type: textblock
17724 #. type: textblock
17725 #: ../src/guestfs-actions.pod:5810
17726 msgid ""
17727 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
17728 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
17729 "sometimes gives an error about this and sometimes not.  In any case, it is "
17730 "always safe to call C<guestfs_e2fsck_f> before calling this function."
17731 msgstr ""
17732
17733 #. type: =head2
17734 #: ../src/guestfs-actions.pod:5820
17735 msgid "guestfs_resize2fs_M"
17736 msgstr ""
17737
17738 #. type: verbatim
17739 #: ../src/guestfs-actions.pod:5822
17740 #, no-wrap
17741 msgid ""
17742 " int\n"
17743 " guestfs_resize2fs_M (guestfs_h *g,\n"
17744 "                      const char *device);\n"
17745 "\n"
17746 msgstr ""
17747
17748 #. type: textblock
17749 #: ../src/guestfs-actions.pod:5826
17750 msgid ""
17751 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
17752 "resized to its minimum size.  This works like the I<-M> option to the "
17753 "C<resize2fs> command."
17754 msgstr ""
17755
17756 #. type: textblock
17757 #: ../src/guestfs-actions.pod:5830
17758 msgid ""
17759 "To get the resulting size of the filesystem you should call "
17760 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
17761 "These two numbers, multiplied together, give the resulting size of the "
17762 "minimal filesystem in bytes."
17763 msgstr ""
17764
17765 # type: =head2
17766 #. type: =head2
17767 #: ../src/guestfs-actions.pod:5839
17768 msgid "guestfs_resize2fs_size"
17769 msgstr ""
17770
17771 # type: verbatim
17772 #. type: verbatim
17773 #: ../src/guestfs-actions.pod:5841
17774 #, no-wrap
17775 msgid ""
17776 " int\n"
17777 " guestfs_resize2fs_size (guestfs_h *g,\n"
17778 "                         const char *device,\n"
17779 "                         int64_t size);\n"
17780 "\n"
17781 msgstr ""
17782
17783 # type: textblock
17784 #. type: textblock
17785 #: ../src/guestfs-actions.pod:5846
17786 msgid ""
17787 "This command is the same as C<guestfs_resize2fs> except that it allows you "
17788 "to specify the new size (in bytes) explicitly."
17789 msgstr ""
17790
17791 # type: =head2
17792 #. type: =head2
17793 #: ../src/guestfs-actions.pod:5853
17794 msgid "guestfs_rm"
17795 msgstr ""
17796
17797 # type: verbatim
17798 #. type: verbatim
17799 #: ../src/guestfs-actions.pod:5855
17800 #, no-wrap
17801 msgid ""
17802 " int\n"
17803 " guestfs_rm (guestfs_h *g,\n"
17804 "             const char *path);\n"
17805 "\n"
17806 msgstr ""
17807
17808 # type: textblock
17809 #. type: textblock
17810 #: ../src/guestfs-actions.pod:5859 ../fish/guestfish-actions.pod:3880
17811 msgid "Remove the single file C<path>."
17812 msgstr ""
17813
17814 # type: =head2
17815 #. type: =head2
17816 #: ../src/guestfs-actions.pod:5865
17817 msgid "guestfs_rm_rf"
17818 msgstr ""
17819
17820 # type: verbatim
17821 #. type: verbatim
17822 #: ../src/guestfs-actions.pod:5867
17823 #, no-wrap
17824 msgid ""
17825 " int\n"
17826 " guestfs_rm_rf (guestfs_h *g,\n"
17827 "                const char *path);\n"
17828 "\n"
17829 msgstr ""
17830
17831 # type: textblock
17832 #. type: textblock
17833 #: ../src/guestfs-actions.pod:5871 ../fish/guestfish-actions.pod:3886
17834 msgid ""
17835 "Remove the file or directory C<path>, recursively removing the contents if "
17836 "its a directory.  This is like the C<rm -rf> shell command."
17837 msgstr ""
17838
17839 # type: =head2
17840 #. type: =head2
17841 #: ../src/guestfs-actions.pod:5879
17842 msgid "guestfs_rmdir"
17843 msgstr ""
17844
17845 # type: verbatim
17846 #. type: verbatim
17847 #: ../src/guestfs-actions.pod:5881
17848 #, no-wrap
17849 msgid ""
17850 " int\n"
17851 " guestfs_rmdir (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:5885 ../fish/guestfish-actions.pod:3894
17859 msgid "Remove the single directory C<path>."
17860 msgstr ""
17861
17862 # type: =head2
17863 #. type: =head2
17864 #: ../src/guestfs-actions.pod:5891
17865 msgid "guestfs_rmmountpoint"
17866 msgstr ""
17867
17868 # type: verbatim
17869 #. type: verbatim
17870 #: ../src/guestfs-actions.pod:5893
17871 #, no-wrap
17872 msgid ""
17873 " int\n"
17874 " guestfs_rmmountpoint (guestfs_h *g,\n"
17875 "                       const char *exemptpath);\n"
17876 "\n"
17877 msgstr ""
17878
17879 # type: textblock
17880 #. type: textblock
17881 #: ../src/guestfs-actions.pod:5897
17882 msgid ""
17883 "This calls removes a mountpoint that was previously created with "
17884 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
17885 msgstr ""
17886
17887 # type: =head2
17888 #. type: =head2
17889 #: ../src/guestfs-actions.pod:5905
17890 msgid "guestfs_scrub_device"
17891 msgstr ""
17892
17893 # type: verbatim
17894 #. type: verbatim
17895 #: ../src/guestfs-actions.pod:5907
17896 #, no-wrap
17897 msgid ""
17898 " int\n"
17899 " guestfs_scrub_device (guestfs_h *g,\n"
17900 "                       const char *device);\n"
17901 "\n"
17902 msgstr ""
17903
17904 # type: textblock
17905 #. type: textblock
17906 #: ../src/guestfs-actions.pod:5911 ../fish/guestfish-actions.pod:3908
17907 msgid ""
17908 "This command writes patterns over C<device> to make data retrieval more "
17909 "difficult."
17910 msgstr ""
17911
17912 # type: textblock
17913 #. type: textblock
17914 #: ../src/guestfs-actions.pod:5914 ../src/guestfs-actions.pod:5935
17915 #: ../src/guestfs-actions.pod:5954 ../fish/guestfish-actions.pod:3911
17916 #: ../fish/guestfish-actions.pod:3926 ../fish/guestfish-actions.pod:3939
17917 msgid ""
17918 "It is an interface to the L<scrub(1)> program.  See that manual page for "
17919 "more details."
17920 msgstr ""
17921
17922 # type: textblock
17923 #. type: textblock
17924 #: ../src/guestfs-actions.pod:5922 ../src/guestfs-actions.pod:5940
17925 #: ../src/guestfs-actions.pod:5959
17926 msgid "(Added in 1.0.52)"
17927 msgstr ""
17928
17929 # type: =head2
17930 #. type: =head2
17931 #: ../src/guestfs-actions.pod:5924
17932 msgid "guestfs_scrub_file"
17933 msgstr ""
17934
17935 # type: verbatim
17936 #. type: verbatim
17937 #: ../src/guestfs-actions.pod:5926
17938 #, no-wrap
17939 msgid ""
17940 " int\n"
17941 " guestfs_scrub_file (guestfs_h *g,\n"
17942 "                     const char *file);\n"
17943 "\n"
17944 msgstr ""
17945
17946 # type: textblock
17947 #. type: textblock
17948 #: ../src/guestfs-actions.pod:5930 ../fish/guestfish-actions.pod:3921
17949 msgid ""
17950 "This command writes patterns over a file to make data retrieval more "
17951 "difficult."
17952 msgstr ""
17953
17954 # type: textblock
17955 #. type: textblock
17956 #: ../src/guestfs-actions.pod:5933 ../fish/guestfish-actions.pod:3924
17957 msgid "The file is I<removed> after scrubbing."
17958 msgstr ""
17959
17960 # type: =head2
17961 #. type: =head2
17962 #: ../src/guestfs-actions.pod:5942
17963 msgid "guestfs_scrub_freespace"
17964 msgstr ""
17965
17966 # type: verbatim
17967 #. type: verbatim
17968 #: ../src/guestfs-actions.pod:5944
17969 #, no-wrap
17970 msgid ""
17971 " int\n"
17972 " guestfs_scrub_freespace (guestfs_h *g,\n"
17973 "                          const char *dir);\n"
17974 "\n"
17975 msgstr ""
17976
17977 # type: textblock
17978 #. type: textblock
17979 #: ../src/guestfs-actions.pod:5948
17980 msgid ""
17981 "This command creates the directory C<dir> and then fills it with files until "
17982 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
17983 "and deletes them.  The intention is to scrub any free space on the partition "
17984 "containing C<dir>."
17985 msgstr ""
17986
17987 # type: =head2
17988 #. type: =head2
17989 #: ../src/guestfs-actions.pod:5961
17990 msgid "guestfs_set_append"
17991 msgstr ""
17992
17993 # type: verbatim
17994 #. type: verbatim
17995 #: ../src/guestfs-actions.pod:5963
17996 #, no-wrap
17997 msgid ""
17998 " int\n"
17999 " guestfs_set_append (guestfs_h *g,\n"
18000 "                     const char *append);\n"
18001 "\n"
18002 msgstr ""
18003
18004 # type: textblock
18005 #. type: textblock
18006 #: ../src/guestfs-actions.pod:5967 ../fish/guestfish-actions.pod:3948
18007 msgid ""
18008 "This function is used to add additional options to the guest kernel command "
18009 "line."
18010 msgstr ""
18011
18012 # type: textblock
18013 #. type: textblock
18014 #: ../src/guestfs-actions.pod:5970 ../fish/guestfish-actions.pod:3951
18015 msgid ""
18016 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
18017 "environment variable."
18018 msgstr ""
18019
18020 # type: textblock
18021 #. type: textblock
18022 #: ../src/guestfs-actions.pod:5973 ../fish/guestfish-actions.pod:3954
18023 msgid ""
18024 "Setting C<append> to C<NULL> means I<no> additional options are passed "
18025 "(libguestfs always adds a few of its own)."
18026 msgstr ""
18027
18028 #. type: =head2
18029 #: ../src/guestfs-actions.pod:5980
18030 msgid "guestfs_set_attach_method"
18031 msgstr ""
18032
18033 #. type: verbatim
18034 #: ../src/guestfs-actions.pod:5982
18035 #, no-wrap
18036 msgid ""
18037 " int\n"
18038 " guestfs_set_attach_method (guestfs_h *g,\n"
18039 "                            const char *attachmethod);\n"
18040 "\n"
18041 msgstr ""
18042
18043 #. type: textblock
18044 #: ../src/guestfs-actions.pod:5986 ../fish/guestfish-actions.pod:3963
18045 msgid ""
18046 "Set the method that libguestfs uses to connect to the back end guestfsd "
18047 "daemon.  Possible methods are:"
18048 msgstr ""
18049
18050 #. type: textblock
18051 #: ../src/guestfs-actions.pod:5993 ../fish/guestfish-actions.pod:3970
18052 msgid ""
18053 "Launch an appliance and connect to it.  This is the ordinary method and the "
18054 "default."
18055 msgstr ""
18056
18057 #. type: =item
18058 #: ../src/guestfs-actions.pod:5996 ../fish/guestfish-actions.pod:3973
18059 msgid "C<unix:I<path>>"
18060 msgstr ""
18061
18062 #. type: textblock
18063 #: ../src/guestfs-actions.pod:5998 ../fish/guestfish-actions.pod:3975
18064 msgid "Connect to the Unix domain socket I<path>."
18065 msgstr ""
18066
18067 #. type: textblock
18068 #: ../src/guestfs-actions.pod:6000 ../fish/guestfish-actions.pod:3977
18069 msgid ""
18070 "This method lets you connect to an existing daemon or (using virtio-serial) "
18071 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
18072 "RUNNING DAEMONS>."
18073 msgstr ""
18074
18075 # type: =head2
18076 #. type: =head2
18077 #: ../src/guestfs-actions.pod:6010
18078 msgid "guestfs_set_autosync"
18079 msgstr ""
18080
18081 # type: verbatim
18082 #. type: verbatim
18083 #: ../src/guestfs-actions.pod:6012
18084 #, no-wrap
18085 msgid ""
18086 " int\n"
18087 " guestfs_set_autosync (guestfs_h *g,\n"
18088 "                       int autosync);\n"
18089 "\n"
18090 msgstr ""
18091
18092 #. type: textblock
18093 #: ../src/guestfs-actions.pod:6016 ../fish/guestfish-actions.pod:3989
18094 msgid ""
18095 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
18096 "effort attempt to make filesystems consistent and synchronized when the "
18097 "handle is closed (also if the program exits without closing handles)."
18098 msgstr ""
18099
18100 # type: textblock
18101 #. type: textblock
18102 #: ../src/guestfs-actions.pod:6021 ../fish/guestfish-actions.pod:3994
18103 msgid ""
18104 "This is enabled by default (since libguestfs 1.5.24, previously it was "
18105 "disabled by default)."
18106 msgstr ""
18107
18108 # type: =head2
18109 #. type: =head2
18110 #: ../src/guestfs-actions.pod:6028
18111 msgid "guestfs_set_direct"
18112 msgstr ""
18113
18114 # type: verbatim
18115 #. type: verbatim
18116 #: ../src/guestfs-actions.pod:6030
18117 #, no-wrap
18118 msgid ""
18119 " int\n"
18120 " guestfs_set_direct (guestfs_h *g,\n"
18121 "                     int direct);\n"
18122 "\n"
18123 msgstr ""
18124
18125 # type: textblock
18126 #. type: textblock
18127 #: ../src/guestfs-actions.pod:6034 ../fish/guestfish-actions.pod:4003
18128 msgid ""
18129 "If the direct appliance mode flag is enabled, then stdin and stdout are "
18130 "passed directly through to the appliance once it is launched."
18131 msgstr ""
18132
18133 # type: textblock
18134 #. type: textblock
18135 #: ../src/guestfs-actions.pod:6038
18136 msgid ""
18137 "One consequence of this is that log messages aren't caught by the library "
18138 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
18139 "stdout."
18140 msgstr ""
18141
18142 # type: textblock
18143 #. type: textblock
18144 #: ../src/guestfs-actions.pod:6042 ../fish/guestfish-actions.pod:4011
18145 msgid "You probably don't want to use this unless you know what you are doing."
18146 msgstr ""
18147
18148 # type: textblock
18149 #. type: textblock
18150 #: ../src/guestfs-actions.pod:6045 ../fish/guestfish-actions.pod:4014
18151 msgid "The default is disabled."
18152 msgstr ""
18153
18154 # type: =head2
18155 #. type: =head2
18156 #: ../src/guestfs-actions.pod:6051
18157 msgid "guestfs_set_e2label"
18158 msgstr ""
18159
18160 # type: verbatim
18161 #. type: verbatim
18162 #: ../src/guestfs-actions.pod:6053
18163 #, no-wrap
18164 msgid ""
18165 " int\n"
18166 " guestfs_set_e2label (guestfs_h *g,\n"
18167 "                      const char *device,\n"
18168 "                      const char *label);\n"
18169 "\n"
18170 msgstr ""
18171
18172 # type: textblock
18173 #. type: textblock
18174 #: ../src/guestfs-actions.pod:6058 ../fish/guestfish-actions.pod:4020
18175 msgid ""
18176 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
18177 "C<label>.  Filesystem labels are limited to 16 characters."
18178 msgstr ""
18179
18180 # type: textblock
18181 #. type: textblock
18182 #: ../src/guestfs-actions.pod:6062
18183 msgid ""
18184 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
18185 "the existing label on a filesystem."
18186 msgstr ""
18187
18188 # type: =head2
18189 #. type: =head2
18190 #: ../src/guestfs-actions.pod:6069
18191 msgid "guestfs_set_e2uuid"
18192 msgstr ""
18193
18194 # type: verbatim
18195 #. type: verbatim
18196 #: ../src/guestfs-actions.pod:6071
18197 #, no-wrap
18198 msgid ""
18199 " int\n"
18200 " guestfs_set_e2uuid (guestfs_h *g,\n"
18201 "                     const char *device,\n"
18202 "                     const char *uuid);\n"
18203 "\n"
18204 msgstr ""
18205
18206 # type: textblock
18207 #. type: textblock
18208 #: ../src/guestfs-actions.pod:6076 ../fish/guestfish-actions.pod:4031
18209 msgid ""
18210 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
18211 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
18212 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
18213 msgstr ""
18214
18215 # type: textblock
18216 #. type: textblock
18217 #: ../src/guestfs-actions.pod:6081
18218 msgid ""
18219 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
18220 "the existing UUID of a filesystem."
18221 msgstr ""
18222
18223 # type: =head2
18224 #. type: =head2
18225 #: ../src/guestfs-actions.pod:6088
18226 msgid "guestfs_set_memsize"
18227 msgstr ""
18228
18229 # type: verbatim
18230 #. type: verbatim
18231 #: ../src/guestfs-actions.pod:6090
18232 #, no-wrap
18233 msgid ""
18234 " int\n"
18235 " guestfs_set_memsize (guestfs_h *g,\n"
18236 "                      int memsize);\n"
18237 "\n"
18238 msgstr ""
18239
18240 # type: textblock
18241 #. type: textblock
18242 #: ../src/guestfs-actions.pod:6094
18243 msgid ""
18244 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
18245 "This only has any effect if called before C<guestfs_launch>."
18246 msgstr ""
18247
18248 # type: textblock
18249 #. type: textblock
18250 #: ../src/guestfs-actions.pod:6098 ../fish/guestfish-actions.pod:4049
18251 msgid ""
18252 "You can also change this by setting the environment variable "
18253 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
18254 msgstr ""
18255
18256 # type: =head2
18257 #. type: =head2
18258 #: ../src/guestfs-actions.pod:6109
18259 msgid "guestfs_set_network"
18260 msgstr ""
18261
18262 # type: verbatim
18263 #. type: verbatim
18264 #: ../src/guestfs-actions.pod:6111
18265 #, no-wrap
18266 msgid ""
18267 " int\n"
18268 " guestfs_set_network (guestfs_h *g,\n"
18269 "                      int network);\n"
18270 "\n"
18271 msgstr ""
18272
18273 # type: textblock
18274 #. type: textblock
18275 #: ../src/guestfs-actions.pod:6115 ../fish/guestfish-actions.pod:4062
18276 msgid ""
18277 "If C<network> is true, then the network is enabled in the libguestfs "
18278 "appliance.  The default is false."
18279 msgstr ""
18280
18281 # type: textblock
18282 #. type: textblock
18283 #: ../src/guestfs-actions.pod:6118 ../fish/guestfish-actions.pod:4065
18284 msgid ""
18285 "This affects whether commands are able to access the network (see L<guestfs"
18286 "(3)/RUNNING COMMANDS>)."
18287 msgstr ""
18288
18289 # type: textblock
18290 #. type: textblock
18291 #: ../src/guestfs-actions.pod:6121
18292 msgid ""
18293 "You must call this before calling C<guestfs_launch>, otherwise it has no "
18294 "effect."
18295 msgstr ""
18296
18297 # type: =head2
18298 #. type: =head2
18299 #: ../src/guestfs-actions.pod:6128
18300 msgid "guestfs_set_path"
18301 msgstr ""
18302
18303 # type: verbatim
18304 #. type: verbatim
18305 #: ../src/guestfs-actions.pod:6130
18306 #, no-wrap
18307 msgid ""
18308 " int\n"
18309 " guestfs_set_path (guestfs_h *g,\n"
18310 "                   const char *searchpath);\n"
18311 "\n"
18312 msgstr ""
18313
18314 # type: textblock
18315 #. type: textblock
18316 #: ../src/guestfs-actions.pod:6134 ../fish/guestfish-actions.pod:4077
18317 msgid "Set the path that libguestfs searches for kernel and initrd.img."
18318 msgstr ""
18319
18320 # type: textblock
18321 #. type: textblock
18322 #: ../src/guestfs-actions.pod:6136 ../fish/guestfish-actions.pod:4079
18323 msgid ""
18324 "The default is C<$libdir/guestfs> unless overridden by setting "
18325 "C<LIBGUESTFS_PATH> environment variable."
18326 msgstr ""
18327
18328 # type: textblock
18329 #. type: textblock
18330 #: ../src/guestfs-actions.pod:6139 ../fish/guestfish-actions.pod:4082
18331 msgid "Setting C<path> to C<NULL> restores the default path."
18332 msgstr ""
18333
18334 # type: =head2
18335 #. type: =head2
18336 #: ../src/guestfs-actions.pod:6145
18337 msgid "guestfs_set_qemu"
18338 msgstr ""
18339
18340 # type: verbatim
18341 #. type: verbatim
18342 #: ../src/guestfs-actions.pod:6147
18343 #, no-wrap
18344 msgid ""
18345 " int\n"
18346 " guestfs_set_qemu (guestfs_h *g,\n"
18347 "                   const char *qemu);\n"
18348 "\n"
18349 msgstr ""
18350
18351 # type: textblock
18352 #. type: textblock
18353 #: ../src/guestfs-actions.pod:6151 ../fish/guestfish-actions.pod:4090
18354 msgid "Set the qemu binary that we will use."
18355 msgstr ""
18356
18357 # type: textblock
18358 #. type: textblock
18359 #: ../src/guestfs-actions.pod:6153 ../fish/guestfish-actions.pod:4092
18360 msgid ""
18361 "The default is chosen when the library was compiled by the configure script."
18362 msgstr ""
18363
18364 # type: textblock
18365 #. type: textblock
18366 #: ../src/guestfs-actions.pod:6156 ../fish/guestfish-actions.pod:4095
18367 msgid ""
18368 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
18369 "variable."
18370 msgstr ""
18371
18372 # type: textblock
18373 #. type: textblock
18374 #: ../src/guestfs-actions.pod:6159 ../fish/guestfish-actions.pod:4098
18375 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
18376 msgstr ""
18377
18378 # type: textblock
18379 #. type: textblock
18380 #: ../src/guestfs-actions.pod:6161 ../fish/guestfish-actions.pod:4100
18381 msgid ""
18382 "Note that you should call this function as early as possible after creating "
18383 "the handle.  This is because some pre-launch operations depend on testing "
18384 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
18385 "don't retest features, and so you might see inconsistent results.  Using the "
18386 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
18387 "the qemu binary at the same time as the handle is created."
18388 msgstr ""
18389
18390 # type: =head2
18391 #. type: =head2
18392 #: ../src/guestfs-actions.pod:6173
18393 msgid "guestfs_set_recovery_proc"
18394 msgstr ""
18395
18396 # type: verbatim
18397 #. type: verbatim
18398 #: ../src/guestfs-actions.pod:6175
18399 #, no-wrap
18400 msgid ""
18401 " int\n"
18402 " guestfs_set_recovery_proc (guestfs_h *g,\n"
18403 "                            int recoveryproc);\n"
18404 "\n"
18405 msgstr ""
18406
18407 # type: textblock
18408 #. type: textblock
18409 #: ../src/guestfs-actions.pod:6179
18410 msgid ""
18411 "If this is called with the parameter C<false> then C<guestfs_launch> does "
18412 "not create a recovery process.  The purpose of the recovery process is to "
18413 "stop runaway qemu processes in the case where the main program aborts "
18414 "abruptly."
18415 msgstr ""
18416
18417 # type: textblock
18418 #. type: textblock
18419 #: ../src/guestfs-actions.pod:6184
18420 msgid ""
18421 "This only has any effect if called before C<guestfs_launch>, and the default "
18422 "is true."
18423 msgstr ""
18424
18425 # type: textblock
18426 #. type: textblock
18427 #: ../src/guestfs-actions.pod:6187 ../fish/guestfish-actions.pod:4122
18428 msgid ""
18429 "About the only time when you would want to disable this is if the main "
18430 "process will fork itself into the background (\"daemonize\" itself).  In "
18431 "this case the recovery process thinks that the main program has disappeared "
18432 "and so kills qemu, which is not very helpful."
18433 msgstr ""
18434
18435 # type: =head2
18436 #. type: =head2
18437 #: ../src/guestfs-actions.pod:6197
18438 msgid "guestfs_set_selinux"
18439 msgstr ""
18440
18441 # type: verbatim
18442 #. type: verbatim
18443 #: ../src/guestfs-actions.pod:6199
18444 #, no-wrap
18445 msgid ""
18446 " int\n"
18447 " guestfs_set_selinux (guestfs_h *g,\n"
18448 "                      int selinux);\n"
18449 "\n"
18450 msgstr ""
18451
18452 # type: textblock
18453 #. type: textblock
18454 #: ../src/guestfs-actions.pod:6203 ../fish/guestfish-actions.pod:4134
18455 msgid ""
18456 "This sets the selinux flag that is passed to the appliance at boot time.  "
18457 "The default is C<selinux=0> (disabled)."
18458 msgstr ""
18459
18460 # type: textblock
18461 #. type: textblock
18462 #: ../src/guestfs-actions.pod:6206 ../fish/guestfish-actions.pod:4137
18463 msgid ""
18464 "Note that if SELinux is enabled, it is always in Permissive mode "
18465 "(C<enforcing=0>)."
18466 msgstr ""
18467
18468 # type: =head2
18469 #. type: =head2
18470 #: ../src/guestfs-actions.pod:6216
18471 msgid "guestfs_set_trace"
18472 msgstr ""
18473
18474 # type: verbatim
18475 #. type: verbatim
18476 #: ../src/guestfs-actions.pod:6218
18477 #, no-wrap
18478 msgid ""
18479 " int\n"
18480 " guestfs_set_trace (guestfs_h *g,\n"
18481 "                    int trace);\n"
18482 "\n"
18483 msgstr ""
18484
18485 #. type: textblock
18486 #: ../src/guestfs-actions.pod:6222 ../fish/guestfish-actions.pod:4149
18487 msgid ""
18488 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
18489 "return values are traced."
18490 msgstr ""
18491
18492 # type: textblock
18493 #. type: textblock
18494 #: ../src/guestfs-actions.pod:6225 ../fish/guestfish-actions.pod:4152
18495 msgid ""
18496 "If you want to trace C API calls into libguestfs (and other libraries) then "
18497 "possibly a better way is to use the external ltrace(1) command."
18498 msgstr ""
18499
18500 # type: textblock
18501 #. type: textblock
18502 #: ../src/guestfs-actions.pod:6229 ../fish/guestfish-actions.pod:4156
18503 msgid ""
18504 "Command traces are disabled unless the environment variable "
18505 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
18506 msgstr ""
18507
18508 #. type: textblock
18509 #: ../src/guestfs-actions.pod:6232
18510 msgid ""
18511 "Trace messages are normally sent to C<stderr>, unless you register a "
18512 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
18513 msgstr ""
18514
18515 # type: =head2
18516 #. type: =head2
18517 #: ../src/guestfs-actions.pod:6240
18518 msgid "guestfs_set_verbose"
18519 msgstr ""
18520
18521 # type: verbatim
18522 #. type: verbatim
18523 #: ../src/guestfs-actions.pod:6242
18524 #, no-wrap
18525 msgid ""
18526 " int\n"
18527 " guestfs_set_verbose (guestfs_h *g,\n"
18528 "                      int verbose);\n"
18529 "\n"
18530 msgstr ""
18531
18532 #. type: textblock
18533 #: ../src/guestfs-actions.pod:6246 ../fish/guestfish-actions.pod:4169
18534 msgid "If C<verbose> is true, this turns on verbose messages."
18535 msgstr ""
18536
18537 # type: textblock
18538 #. type: textblock
18539 #: ../src/guestfs-actions.pod:6248 ../fish/guestfish-actions.pod:4171
18540 msgid ""
18541 "Verbose messages are disabled unless the environment variable "
18542 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
18543 msgstr ""
18544
18545 #. type: textblock
18546 #: ../src/guestfs-actions.pod:6251
18547 msgid ""
18548 "Verbose messages are normally sent to C<stderr>, unless you register a "
18549 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
18550 msgstr ""
18551
18552 # type: =head2
18553 #. type: =head2
18554 #: ../src/guestfs-actions.pod:6259
18555 msgid "guestfs_setcon"
18556 msgstr ""
18557
18558 # type: verbatim
18559 #. type: verbatim
18560 #: ../src/guestfs-actions.pod:6261
18561 #, no-wrap
18562 msgid ""
18563 " int\n"
18564 " guestfs_setcon (guestfs_h *g,\n"
18565 "                 const char *context);\n"
18566 "\n"
18567 msgstr ""
18568
18569 # type: textblock
18570 #. type: textblock
18571 #: ../src/guestfs-actions.pod:6265 ../fish/guestfish-actions.pod:4182
18572 msgid ""
18573 "This sets the SELinux security context of the daemon to the string "
18574 "C<context>."
18575 msgstr ""
18576
18577 # type: textblock
18578 #. type: textblock
18579 #: ../src/guestfs-actions.pod:6268 ../fish/guestfish-actions.pod:4185
18580 msgid "See the documentation about SELINUX in L<guestfs(3)>."
18581 msgstr ""
18582
18583 # type: =head2
18584 #. type: =head2
18585 #: ../src/guestfs-actions.pod:6274
18586 msgid "guestfs_setxattr"
18587 msgstr ""
18588
18589 # type: verbatim
18590 #. type: verbatim
18591 #: ../src/guestfs-actions.pod:6276
18592 #, no-wrap
18593 msgid ""
18594 " int\n"
18595 " guestfs_setxattr (guestfs_h *g,\n"
18596 "                   const char *xattr,\n"
18597 "                   const char *val,\n"
18598 "                   int vallen,\n"
18599 "                   const char *path);\n"
18600 "\n"
18601 msgstr ""
18602
18603 # type: textblock
18604 #. type: textblock
18605 #: ../src/guestfs-actions.pod:6283 ../fish/guestfish-actions.pod:4191
18606 msgid ""
18607 "This call sets the extended attribute named C<xattr> of the file C<path> to "
18608 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
18609 msgstr ""
18610
18611 # type: textblock
18612 #. type: textblock
18613 #: ../src/guestfs-actions.pod:6287
18614 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
18615 msgstr ""
18616
18617 # type: =head2
18618 #. type: =head2
18619 #: ../src/guestfs-actions.pod:6293
18620 msgid "guestfs_sfdisk"
18621 msgstr ""
18622
18623 # type: verbatim
18624 #. type: verbatim
18625 #: ../src/guestfs-actions.pod:6295
18626 #, no-wrap
18627 msgid ""
18628 " int\n"
18629 " guestfs_sfdisk (guestfs_h *g,\n"
18630 "                 const char *device,\n"
18631 "                 int cyls,\n"
18632 "                 int heads,\n"
18633 "                 int sectors,\n"
18634 "                 char *const *lines);\n"
18635 "\n"
18636 msgstr ""
18637
18638 # type: textblock
18639 #. type: textblock
18640 #: ../src/guestfs-actions.pod:6303 ../fish/guestfish-actions.pod:4201
18641 msgid ""
18642 "This is a direct interface to the L<sfdisk(8)> program for creating "
18643 "partitions on block devices."
18644 msgstr ""
18645
18646 # type: textblock
18647 #. type: textblock
18648 #: ../src/guestfs-actions.pod:6306 ../fish/guestfish-actions.pod:4204
18649 msgid "C<device> should be a block device, for example C</dev/sda>."
18650 msgstr ""
18651
18652 # type: textblock
18653 #. type: textblock
18654 #: ../src/guestfs-actions.pod:6308 ../fish/guestfish-actions.pod:4206
18655 msgid ""
18656 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
18657 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
18658 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
18659 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
18660 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
18661 "the kernel) cannot work out the right geometry and you will need to tell it."
18662 msgstr ""
18663
18664 # type: textblock
18665 #. type: textblock
18666 #: ../src/guestfs-actions.pod:6316 ../fish/guestfish-actions.pod:4214
18667 msgid ""
18668 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
18669 "refer to the L<sfdisk(8)> manpage."
18670 msgstr ""
18671
18672 # type: textblock
18673 #. type: textblock
18674 #: ../src/guestfs-actions.pod:6319 ../fish/guestfish-actions.pod:4217
18675 msgid ""
18676 "To create a single partition occupying the whole disk, you would pass "
18677 "C<lines> as a single element list, when the single element being the string "
18678 "C<,> (comma)."
18679 msgstr ""
18680
18681 # type: textblock
18682 #. type: textblock
18683 #: ../src/guestfs-actions.pod:6323
18684 msgid ""
18685 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
18686 msgstr ""
18687
18688 #. type: textblock
18689 #: ../src/guestfs-actions.pod:6331 ../src/guestfs-actions.pod:6361
18690 #: ../src/guestfs-actions.pod:6394 ../fish/guestfish-actions.pod:4227
18691 #: ../fish/guestfish-actions.pod:4250 ../fish/guestfish-actions.pod:4272
18692 msgid ""
18693 "This function is deprecated.  In new code, use the C<part_add> call instead."
18694 msgstr ""
18695
18696 # type: =head2
18697 #. type: =head2
18698 #: ../src/guestfs-actions.pod:6340
18699 msgid "guestfs_sfdiskM"
18700 msgstr ""
18701
18702 # type: verbatim
18703 #. type: verbatim
18704 #: ../src/guestfs-actions.pod:6342
18705 #, no-wrap
18706 msgid ""
18707 " int\n"
18708 " guestfs_sfdiskM (guestfs_h *g,\n"
18709 "                  const char *device,\n"
18710 "                  char *const *lines);\n"
18711 "\n"
18712 msgstr ""
18713
18714 # type: textblock
18715 #. type: textblock
18716 #: ../src/guestfs-actions.pod:6347
18717 msgid ""
18718 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
18719 "partition sizes are specified in megabytes only (rounded to the nearest "
18720 "cylinder) and you don't need to specify the cyls, heads and sectors "
18721 "parameters which were rarely if ever used anyway."
18722 msgstr ""
18723
18724 # type: textblock
18725 #. type: textblock
18726 #: ../src/guestfs-actions.pod:6353
18727 msgid ""
18728 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
18729 "C<guestfs_part_disk>"
18730 msgstr ""
18731
18732 # type: =head2
18733 #. type: =head2
18734 #: ../src/guestfs-actions.pod:6370
18735 msgid "guestfs_sfdisk_N"
18736 msgstr ""
18737
18738 # type: verbatim
18739 #. type: verbatim
18740 #: ../src/guestfs-actions.pod:6372
18741 #, no-wrap
18742 msgid ""
18743 " int\n"
18744 " guestfs_sfdisk_N (guestfs_h *g,\n"
18745 "                   const char *device,\n"
18746 "                   int partnum,\n"
18747 "                   int cyls,\n"
18748 "                   int heads,\n"
18749 "                   int sectors,\n"
18750 "                   const char *line);\n"
18751 "\n"
18752 msgstr ""
18753
18754 # type: textblock
18755 #. type: textblock
18756 #: ../src/guestfs-actions.pod:6381 ../fish/guestfish-actions.pod:4261
18757 msgid ""
18758 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
18759 "(note: C<n> counts from 1)."
18760 msgstr ""
18761
18762 # type: textblock
18763 #. type: textblock
18764 #: ../src/guestfs-actions.pod:6384
18765 msgid ""
18766 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
18767 "for the cyls/heads/sectors parameters."
18768 msgstr ""
18769
18770 # type: textblock
18771 #. type: textblock
18772 #: ../src/guestfs-actions.pod:6387
18773 msgid "See also: C<guestfs_part_add>"
18774 msgstr ""
18775
18776 # type: =head2
18777 #. type: =head2
18778 #: ../src/guestfs-actions.pod:6403
18779 msgid "guestfs_sfdisk_disk_geometry"
18780 msgstr ""
18781
18782 # type: verbatim
18783 #. type: verbatim
18784 #: ../src/guestfs-actions.pod:6405
18785 #, no-wrap
18786 msgid ""
18787 " char *\n"
18788 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
18789 "                               const char *device);\n"
18790 "\n"
18791 msgstr ""
18792
18793 # type: textblock
18794 #. type: textblock
18795 #: ../src/guestfs-actions.pod:6409
18796 msgid ""
18797 "This displays the disk geometry of C<device> read from the partition table.  "
18798 "Especially in the case where the underlying block device has been resized, "
18799 "this can be different from the kernel's idea of the geometry (see "
18800 "C<guestfs_sfdisk_kernel_geometry>)."
18801 msgstr ""
18802
18803 # type: textblock
18804 #. type: textblock
18805 #: ../src/guestfs-actions.pod:6414 ../src/guestfs-actions.pod:6430
18806 #: ../fish/guestfish-actions.pod:4288 ../fish/guestfish-actions.pod:4297
18807 msgid "The result is in human-readable format, and not designed to be parsed."
18808 msgstr ""
18809
18810 # type: =head2
18811 #. type: =head2
18812 #: ../src/guestfs-actions.pod:6422
18813 msgid "guestfs_sfdisk_kernel_geometry"
18814 msgstr ""
18815
18816 # type: verbatim
18817 #. type: verbatim
18818 #: ../src/guestfs-actions.pod:6424
18819 #, no-wrap
18820 msgid ""
18821 " char *\n"
18822 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
18823 "                                 const char *device);\n"
18824 "\n"
18825 msgstr ""
18826
18827 # type: textblock
18828 #. type: textblock
18829 #: ../src/guestfs-actions.pod:6428 ../fish/guestfish-actions.pod:4295
18830 msgid "This displays the kernel's idea of the geometry of C<device>."
18831 msgstr ""
18832
18833 # type: =head2
18834 #. type: =head2
18835 #: ../src/guestfs-actions.pod:6438
18836 msgid "guestfs_sfdisk_l"
18837 msgstr ""
18838
18839 # type: verbatim
18840 #. type: verbatim
18841 #: ../src/guestfs-actions.pod:6440
18842 #, no-wrap
18843 msgid ""
18844 " char *\n"
18845 " guestfs_sfdisk_l (guestfs_h *g,\n"
18846 "                   const char *device);\n"
18847 "\n"
18848 msgstr ""
18849
18850 # type: textblock
18851 #. type: textblock
18852 #: ../src/guestfs-actions.pod:6444 ../fish/guestfish-actions.pod:4304
18853 msgid ""
18854 "This displays the partition table on C<device>, in the human-readable output "
18855 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
18856 msgstr ""
18857
18858 # type: textblock
18859 #. type: textblock
18860 #: ../src/guestfs-actions.pod:6448
18861 msgid "See also: C<guestfs_part_list>"
18862 msgstr ""
18863
18864 #. type: textblock
18865 #: ../src/guestfs-actions.pod:6453 ../fish/guestfish-actions.pod:4310
18866 msgid ""
18867 "This function is deprecated.  In new code, use the C<part_list> call instead."
18868 msgstr ""
18869
18870 # type: =head2
18871 #. type: =head2
18872 #: ../src/guestfs-actions.pod:6462
18873 msgid "guestfs_sh"
18874 msgstr ""
18875
18876 # type: verbatim
18877 #. type: verbatim
18878 #: ../src/guestfs-actions.pod:6464
18879 #, no-wrap
18880 msgid ""
18881 " char *\n"
18882 " guestfs_sh (guestfs_h *g,\n"
18883 "             const char *command);\n"
18884 "\n"
18885 msgstr ""
18886
18887 # type: textblock
18888 #. type: textblock
18889 #: ../src/guestfs-actions.pod:6468 ../fish/guestfish-actions.pod:4321
18890 msgid ""
18891 "This call runs a command from the guest filesystem via the guest's C</bin/"
18892 "sh>."
18893 msgstr ""
18894
18895 # type: textblock
18896 #. type: textblock
18897 #: ../src/guestfs-actions.pod:6471
18898 msgid "This is like C<guestfs_command>, but passes the command to:"
18899 msgstr ""
18900
18901 # type: verbatim
18902 #. type: verbatim
18903 #: ../src/guestfs-actions.pod:6473 ../fish/guestfish-actions.pod:4326
18904 #, no-wrap
18905 msgid ""
18906 " /bin/sh -c \"command\"\n"
18907 "\n"
18908 msgstr ""
18909
18910 # type: textblock
18911 #. type: textblock
18912 #: ../src/guestfs-actions.pod:6475 ../fish/guestfish-actions.pod:4328
18913 msgid ""
18914 "Depending on the guest's shell, this usually results in wildcards being "
18915 "expanded, shell expressions being interpolated and so on."
18916 msgstr ""
18917
18918 # type: textblock
18919 #. type: textblock
18920 #: ../src/guestfs-actions.pod:6479
18921 msgid "All the provisos about C<guestfs_command> apply to this call."
18922 msgstr ""
18923
18924 # type: =head2
18925 #. type: =head2
18926 #: ../src/guestfs-actions.pod:6486
18927 msgid "guestfs_sh_lines"
18928 msgstr ""
18929
18930 # type: verbatim
18931 #. type: verbatim
18932 #: ../src/guestfs-actions.pod:6488
18933 #, no-wrap
18934 msgid ""
18935 " char **\n"
18936 " guestfs_sh_lines (guestfs_h *g,\n"
18937 "                   const char *command);\n"
18938 "\n"
18939 msgstr ""
18940
18941 # type: textblock
18942 #. type: textblock
18943 #: ../src/guestfs-actions.pod:6492
18944 msgid ""
18945 "This is the same as C<guestfs_sh>, but splits the result into a list of "
18946 "lines."
18947 msgstr ""
18948
18949 # type: textblock
18950 #. type: textblock
18951 #: ../src/guestfs-actions.pod:6495
18952 msgid "See also: C<guestfs_command_lines>"
18953 msgstr ""
18954
18955 # type: =head2
18956 #. type: =head2
18957 #: ../src/guestfs-actions.pod:6503
18958 msgid "guestfs_sleep"
18959 msgstr ""
18960
18961 # type: verbatim
18962 #. type: verbatim
18963 #: ../src/guestfs-actions.pod:6505
18964 #, no-wrap
18965 msgid ""
18966 " int\n"
18967 " guestfs_sleep (guestfs_h *g,\n"
18968 "                int secs);\n"
18969 "\n"
18970 msgstr ""
18971
18972 # type: textblock
18973 #. type: textblock
18974 #: ../src/guestfs-actions.pod:6509 ../fish/guestfish-actions.pod:4347
18975 msgid "Sleep for C<secs> seconds."
18976 msgstr ""
18977
18978 # type: textblock
18979 #. type: textblock
18980 #: ../src/guestfs-actions.pod:6513
18981 msgid "(Added in 1.0.41)"
18982 msgstr ""
18983
18984 # type: =head2
18985 #. type: =head2
18986 #: ../src/guestfs-actions.pod:6515 ../src/guestfs-structs.pod:109
18987 msgid "guestfs_stat"
18988 msgstr ""
18989
18990 # type: verbatim
18991 #. type: verbatim
18992 #: ../src/guestfs-actions.pod:6517
18993 #, no-wrap
18994 msgid ""
18995 " struct guestfs_stat *\n"
18996 " guestfs_stat (guestfs_h *g,\n"
18997 "               const char *path);\n"
18998 "\n"
18999 msgstr ""
19000
19001 # type: textblock
19002 #. type: textblock
19003 #: ../src/guestfs-actions.pod:6523 ../fish/guestfish-actions.pod:4355
19004 msgid "This is the same as the C<stat(2)> system call."
19005 msgstr ""
19006
19007 # type: =head2
19008 #. type: =head2
19009 #: ../src/guestfs-actions.pod:6531 ../src/guestfs-structs.pod:135
19010 msgid "guestfs_statvfs"
19011 msgstr ""
19012
19013 # type: verbatim
19014 #. type: verbatim
19015 #: ../src/guestfs-actions.pod:6533
19016 #, no-wrap
19017 msgid ""
19018 " struct guestfs_statvfs *\n"
19019 " guestfs_statvfs (guestfs_h *g,\n"
19020 "                  const char *path);\n"
19021 "\n"
19022 msgstr ""
19023
19024 # type: textblock
19025 #. type: textblock
19026 #: ../src/guestfs-actions.pod:6537 ../fish/guestfish-actions.pod:4361
19027 msgid ""
19028 "Returns file system statistics for any mounted file system.  C<path> should "
19029 "be a file or directory in the mounted file system (typically it is the mount "
19030 "point itself, but it doesn't need to be)."
19031 msgstr ""
19032
19033 # type: textblock
19034 #. type: textblock
19035 #: ../src/guestfs-actions.pod:6541 ../fish/guestfish-actions.pod:4365
19036 msgid "This is the same as the C<statvfs(2)> system call."
19037 msgstr ""
19038
19039 # type: textblock
19040 #. type: textblock
19041 #: ../src/guestfs-actions.pod:6543
19042 msgid ""
19043 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
19044 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
19045 msgstr ""
19046
19047 # type: =head2
19048 #. type: =head2
19049 #: ../src/guestfs-actions.pod:6549
19050 msgid "guestfs_strings"
19051 msgstr ""
19052
19053 # type: verbatim
19054 #. type: verbatim
19055 #: ../src/guestfs-actions.pod:6551
19056 #, no-wrap
19057 msgid ""
19058 " char **\n"
19059 " guestfs_strings (guestfs_h *g,\n"
19060 "                  const char *path);\n"
19061 "\n"
19062 msgstr ""
19063
19064 # type: textblock
19065 #. type: textblock
19066 #: ../src/guestfs-actions.pod:6555 ../fish/guestfish-actions.pod:4371
19067 msgid ""
19068 "This runs the L<strings(1)> command on a file and returns the list of "
19069 "printable strings found."
19070 msgstr ""
19071
19072 # type: =head2
19073 #. type: =head2
19074 #: ../src/guestfs-actions.pod:6567
19075 msgid "guestfs_strings_e"
19076 msgstr ""
19077
19078 # type: verbatim
19079 #. type: verbatim
19080 #: ../src/guestfs-actions.pod:6569
19081 #, no-wrap
19082 msgid ""
19083 " char **\n"
19084 " guestfs_strings_e (guestfs_h *g,\n"
19085 "                    const char *encoding,\n"
19086 "                    const char *path);\n"
19087 "\n"
19088 msgstr ""
19089
19090 # type: textblock
19091 #. type: textblock
19092 #: ../src/guestfs-actions.pod:6574
19093 msgid ""
19094 "This is like the C<guestfs_strings> command, but allows you to specify the "
19095 "encoding of strings that are looked for in the source file C<path>."
19096 msgstr ""
19097
19098 # type: textblock
19099 #. type: textblock
19100 #: ../src/guestfs-actions.pod:6578 ../fish/guestfish-actions.pod:4385
19101 msgid "Allowed encodings are:"
19102 msgstr ""
19103
19104 # type: =item
19105 #. type: =item
19106 #: ../src/guestfs-actions.pod:6582 ../fish/guestfish-actions.pod:4389
19107 msgid "s"
19108 msgstr ""
19109
19110 # type: textblock
19111 #. type: textblock
19112 #: ../src/guestfs-actions.pod:6584
19113 msgid ""
19114 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
19115 "ISO-8859-X (this is what C<guestfs_strings> uses)."
19116 msgstr ""
19117
19118 # type: =item
19119 #. type: =item
19120 #: ../src/guestfs-actions.pod:6587 ../fish/guestfish-actions.pod:4394
19121 msgid "S"
19122 msgstr ""
19123
19124 # type: textblock
19125 #. type: textblock
19126 #: ../src/guestfs-actions.pod:6589 ../fish/guestfish-actions.pod:4396
19127 msgid "Single 8-bit-byte characters."
19128 msgstr ""
19129
19130 # type: =item
19131 #. type: =item
19132 #: ../src/guestfs-actions.pod:6591 ../fish/guestfish-actions.pod:4398
19133 msgid "b"
19134 msgstr ""
19135
19136 # type: textblock
19137 #. type: textblock
19138 #: ../src/guestfs-actions.pod:6593 ../fish/guestfish-actions.pod:4400
19139 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
19140 msgstr ""
19141
19142 # type: =item
19143 #. type: =item
19144 #: ../src/guestfs-actions.pod:6596 ../fish/guestfish-actions.pod:4403
19145 msgid "l (lower case letter L)"
19146 msgstr ""
19147
19148 # type: textblock
19149 #. type: textblock
19150 #: ../src/guestfs-actions.pod:6598 ../fish/guestfish-actions.pod:4405
19151 msgid ""
19152 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
19153 "examining binaries in Windows guests."
19154 msgstr ""
19155
19156 # type: =item
19157 #. type: =item
19158 #: ../src/guestfs-actions.pod:6601 ../fish/guestfish-actions.pod:4408
19159 msgid "B"
19160 msgstr ""
19161
19162 # type: textblock
19163 #. type: textblock
19164 #: ../src/guestfs-actions.pod:6603 ../fish/guestfish-actions.pod:4410
19165 msgid "32-bit big endian such as UCS-4BE."
19166 msgstr ""
19167
19168 # type: =item
19169 #. type: =item
19170 #: ../src/guestfs-actions.pod:6605 ../fish/guestfish-actions.pod:4412
19171 msgid "L"
19172 msgstr ""
19173
19174 # type: textblock
19175 #. type: textblock
19176 #: ../src/guestfs-actions.pod:6607 ../fish/guestfish-actions.pod:4414
19177 msgid "32-bit little endian such as UCS-4LE."
19178 msgstr ""
19179
19180 # type: textblock
19181 #. type: textblock
19182 #: ../src/guestfs-actions.pod:6611 ../fish/guestfish-actions.pod:4418
19183 msgid "The returned strings are transcoded to UTF-8."
19184 msgstr ""
19185
19186 # type: =head2
19187 #. type: =head2
19188 #: ../src/guestfs-actions.pod:6622
19189 msgid "guestfs_swapoff_device"
19190 msgstr ""
19191
19192 # type: verbatim
19193 #. type: verbatim
19194 #: ../src/guestfs-actions.pod:6624
19195 #, no-wrap
19196 msgid ""
19197 " int\n"
19198 " guestfs_swapoff_device (guestfs_h *g,\n"
19199 "                         const char *device);\n"
19200 "\n"
19201 msgstr ""
19202
19203 # type: textblock
19204 #. type: textblock
19205 #: ../src/guestfs-actions.pod:6628
19206 msgid ""
19207 "This command disables the libguestfs appliance swap device or partition "
19208 "named C<device>.  See C<guestfs_swapon_device>."
19209 msgstr ""
19210
19211 # type: =head2
19212 #. type: =head2
19213 #: ../src/guestfs-actions.pod:6636
19214 msgid "guestfs_swapoff_file"
19215 msgstr ""
19216
19217 # type: verbatim
19218 #. type: verbatim
19219 #: ../src/guestfs-actions.pod:6638
19220 #, no-wrap
19221 msgid ""
19222 " int\n"
19223 " guestfs_swapoff_file (guestfs_h *g,\n"
19224 "                       const char *file);\n"
19225 "\n"
19226 msgstr ""
19227
19228 # type: textblock
19229 #. type: textblock
19230 #: ../src/guestfs-actions.pod:6642 ../fish/guestfish-actions.pod:4435
19231 msgid "This command disables the libguestfs appliance swap on file."
19232 msgstr ""
19233
19234 # type: =head2
19235 #. type: =head2
19236 #: ../src/guestfs-actions.pod:6648
19237 msgid "guestfs_swapoff_label"
19238 msgstr ""
19239
19240 # type: verbatim
19241 #. type: verbatim
19242 #: ../src/guestfs-actions.pod:6650
19243 #, no-wrap
19244 msgid ""
19245 " int\n"
19246 " guestfs_swapoff_label (guestfs_h *g,\n"
19247 "                        const char *label);\n"
19248 "\n"
19249 msgstr ""
19250
19251 # type: textblock
19252 #. type: textblock
19253 #: ../src/guestfs-actions.pod:6654 ../fish/guestfish-actions.pod:4441
19254 msgid ""
19255 "This command disables the libguestfs appliance swap on labeled swap "
19256 "partition."
19257 msgstr ""
19258
19259 # type: =head2
19260 #. type: =head2
19261 #: ../src/guestfs-actions.pod:6661
19262 msgid "guestfs_swapoff_uuid"
19263 msgstr ""
19264
19265 # type: verbatim
19266 #. type: verbatim
19267 #: ../src/guestfs-actions.pod:6663
19268 #, no-wrap
19269 msgid ""
19270 " int\n"
19271 " guestfs_swapoff_uuid (guestfs_h *g,\n"
19272 "                       const char *uuid);\n"
19273 "\n"
19274 msgstr ""
19275
19276 # type: textblock
19277 #. type: textblock
19278 #: ../src/guestfs-actions.pod:6667 ../fish/guestfish-actions.pod:4448
19279 msgid ""
19280 "This command disables the libguestfs appliance swap partition with the given "
19281 "UUID."
19282 msgstr ""
19283
19284 # type: =head2
19285 #. type: =head2
19286 #: ../src/guestfs-actions.pod:6674
19287 msgid "guestfs_swapon_device"
19288 msgstr ""
19289
19290 # type: verbatim
19291 #. type: verbatim
19292 #: ../src/guestfs-actions.pod:6676
19293 #, no-wrap
19294 msgid ""
19295 " int\n"
19296 " guestfs_swapon_device (guestfs_h *g,\n"
19297 "                        const char *device);\n"
19298 "\n"
19299 msgstr ""
19300
19301 # type: textblock
19302 #. type: textblock
19303 #: ../src/guestfs-actions.pod:6680
19304 msgid ""
19305 "This command enables the libguestfs appliance to use the swap device or "
19306 "partition named C<device>.  The increased memory is made available for all "
19307 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
19308 msgstr ""
19309
19310 # type: textblock
19311 #. type: textblock
19312 #: ../src/guestfs-actions.pod:6685 ../fish/guestfish-actions.pod:4460
19313 msgid ""
19314 "Note that you should not swap to existing guest swap partitions unless you "
19315 "know what you are doing.  They may contain hibernation information, or other "
19316 "information that the guest doesn't want you to trash.  You also risk leaking "
19317 "information about the host to the guest this way.  Instead, attach a new "
19318 "host device to the guest and swap on that."
19319 msgstr ""
19320
19321 # type: =head2
19322 #. type: =head2
19323 #: ../src/guestfs-actions.pod:6696
19324 msgid "guestfs_swapon_file"
19325 msgstr ""
19326
19327 # type: verbatim
19328 #. type: verbatim
19329 #: ../src/guestfs-actions.pod:6698
19330 #, no-wrap
19331 msgid ""
19332 " int\n"
19333 " guestfs_swapon_file (guestfs_h *g,\n"
19334 "                      const char *file);\n"
19335 "\n"
19336 msgstr ""
19337
19338 # type: textblock
19339 #. type: textblock
19340 #: ../src/guestfs-actions.pod:6702
19341 msgid ""
19342 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
19343 "notes."
19344 msgstr ""
19345
19346 # type: =head2
19347 #. type: =head2
19348 #: ../src/guestfs-actions.pod:6709
19349 msgid "guestfs_swapon_label"
19350 msgstr ""
19351
19352 # type: verbatim
19353 #. type: verbatim
19354 #: ../src/guestfs-actions.pod:6711
19355 #, no-wrap
19356 msgid ""
19357 " int\n"
19358 " guestfs_swapon_label (guestfs_h *g,\n"
19359 "                       const char *label);\n"
19360 "\n"
19361 msgstr ""
19362
19363 # type: textblock
19364 #. type: textblock
19365 #: ../src/guestfs-actions.pod:6715
19366 msgid ""
19367 "This command enables swap to a labeled swap partition.  See "
19368 "C<guestfs_swapon_device> for other notes."
19369 msgstr ""
19370
19371 # type: =head2
19372 #. type: =head2
19373 #: ../src/guestfs-actions.pod:6722
19374 msgid "guestfs_swapon_uuid"
19375 msgstr ""
19376
19377 # type: verbatim
19378 #. type: verbatim
19379 #: ../src/guestfs-actions.pod:6724
19380 #, no-wrap
19381 msgid ""
19382 " int\n"
19383 " guestfs_swapon_uuid (guestfs_h *g,\n"
19384 "                      const char *uuid);\n"
19385 "\n"
19386 msgstr ""
19387
19388 # type: textblock
19389 #. type: textblock
19390 #: ../src/guestfs-actions.pod:6728
19391 msgid ""
19392 "This command enables swap to a swap partition with the given UUID.  See "
19393 "C<guestfs_swapon_device> for other notes."
19394 msgstr ""
19395
19396 # type: =head2
19397 #. type: =head2
19398 #: ../src/guestfs-actions.pod:6735
19399 msgid "guestfs_sync"
19400 msgstr ""
19401
19402 # type: verbatim
19403 #. type: verbatim
19404 #: ../src/guestfs-actions.pod:6737
19405 #, no-wrap
19406 msgid ""
19407 " int\n"
19408 " guestfs_sync (guestfs_h *g);\n"
19409 "\n"
19410 msgstr ""
19411
19412 # type: textblock
19413 #. type: textblock
19414 #: ../src/guestfs-actions.pod:6740 ../fish/guestfish-actions.pod:4492
19415 msgid ""
19416 "This syncs the disk, so that any writes are flushed through to the "
19417 "underlying disk image."
19418 msgstr ""
19419
19420 # type: textblock
19421 #. type: textblock
19422 #: ../src/guestfs-actions.pod:6743 ../fish/guestfish-actions.pod:4495
19423 msgid ""
19424 "You should always call this if you have modified a disk image, before "
19425 "closing the handle."
19426 msgstr ""
19427
19428 # type: =head2
19429 #. type: =head2
19430 #: ../src/guestfs-actions.pod:6750
19431 msgid "guestfs_tail"
19432 msgstr ""
19433
19434 # type: verbatim
19435 #. type: verbatim
19436 #: ../src/guestfs-actions.pod:6752
19437 #, no-wrap
19438 msgid ""
19439 " char **\n"
19440 " guestfs_tail (guestfs_h *g,\n"
19441 "               const char *path);\n"
19442 "\n"
19443 msgstr ""
19444
19445 # type: textblock
19446 #. type: textblock
19447 #: ../src/guestfs-actions.pod:6756 ../fish/guestfish-actions.pod:4502
19448 msgid ""
19449 "This command returns up to the last 10 lines of a file as a list of strings."
19450 msgstr ""
19451
19452 # type: =head2
19453 #. type: =head2
19454 #: ../src/guestfs-actions.pod:6768
19455 msgid "guestfs_tail_n"
19456 msgstr ""
19457
19458 # type: verbatim
19459 #. type: verbatim
19460 #: ../src/guestfs-actions.pod:6770
19461 #, no-wrap
19462 msgid ""
19463 " char **\n"
19464 " guestfs_tail_n (guestfs_h *g,\n"
19465 "                 int nrlines,\n"
19466 "                 const char *path);\n"
19467 "\n"
19468 msgstr ""
19469
19470 # type: textblock
19471 #. type: textblock
19472 #: ../src/guestfs-actions.pod:6775 ../fish/guestfish-actions.pod:4512
19473 msgid ""
19474 "If the parameter C<nrlines> is a positive number, this returns the last "
19475 "C<nrlines> lines of the file C<path>."
19476 msgstr ""
19477
19478 # type: textblock
19479 #. type: textblock
19480 #: ../src/guestfs-actions.pod:6778 ../fish/guestfish-actions.pod:4515
19481 msgid ""
19482 "If the parameter C<nrlines> is a negative number, this returns lines from "
19483 "the file C<path>, starting with the C<-nrlines>th line."
19484 msgstr ""
19485
19486 # type: =head2
19487 #. type: =head2
19488 #: ../src/guestfs-actions.pod:6792
19489 msgid "guestfs_tar_in"
19490 msgstr ""
19491
19492 # type: verbatim
19493 #. type: verbatim
19494 #: ../src/guestfs-actions.pod:6794
19495 #, no-wrap
19496 msgid ""
19497 " int\n"
19498 " guestfs_tar_in (guestfs_h *g,\n"
19499 "                 const char *tarfile,\n"
19500 "                 const char *directory);\n"
19501 "\n"
19502 msgstr ""
19503
19504 # type: textblock
19505 #. type: textblock
19506 #: ../src/guestfs-actions.pod:6799 ../fish/guestfish-actions.pod:4527
19507 msgid ""
19508 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
19509 "tar file) into C<directory>."
19510 msgstr ""
19511
19512 # type: textblock
19513 #. type: textblock
19514 #: ../src/guestfs-actions.pod:6802
19515 msgid ""
19516 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
19517 msgstr ""
19518
19519 # type: textblock
19520 #. type: textblock
19521 #: ../src/guestfs-actions.pod:6807 ../src/guestfs-actions.pod:6824
19522 #: ../src/guestfs-actions.pod:6840 ../src/guestfs-actions.pod:6856
19523 msgid "(Added in 1.0.3)"
19524 msgstr ""
19525
19526 # type: =head2
19527 #. type: =head2
19528 #: ../src/guestfs-actions.pod:6809
19529 msgid "guestfs_tar_out"
19530 msgstr ""
19531
19532 # type: verbatim
19533 #. type: verbatim
19534 #: ../src/guestfs-actions.pod:6811
19535 #, no-wrap
19536 msgid ""
19537 " int\n"
19538 " guestfs_tar_out (guestfs_h *g,\n"
19539 "                  const char *directory,\n"
19540 "                  const char *tarfile);\n"
19541 "\n"
19542 msgstr ""
19543
19544 # type: textblock
19545 #. type: textblock
19546 #: ../src/guestfs-actions.pod:6816 ../fish/guestfish-actions.pod:4539
19547 msgid ""
19548 "This command packs the contents of C<directory> and downloads it to local "
19549 "file C<tarfile>."
19550 msgstr ""
19551
19552 # type: textblock
19553 #. type: textblock
19554 #: ../src/guestfs-actions.pod:6819
19555 msgid ""
19556 "To download a compressed tarball, use C<guestfs_tgz_out> or "
19557 "C<guestfs_txz_out>."
19558 msgstr ""
19559
19560 # type: =head2
19561 #. type: =head2
19562 #: ../src/guestfs-actions.pod:6826
19563 msgid "guestfs_tgz_in"
19564 msgstr ""
19565
19566 # type: verbatim
19567 #. type: verbatim
19568 #: ../src/guestfs-actions.pod:6828
19569 #, no-wrap
19570 msgid ""
19571 " int\n"
19572 " guestfs_tgz_in (guestfs_h *g,\n"
19573 "                 const char *tarball,\n"
19574 "                 const char *directory);\n"
19575 "\n"
19576 msgstr ""
19577
19578 # type: textblock
19579 #. type: textblock
19580 #: ../src/guestfs-actions.pod:6833 ../fish/guestfish-actions.pod:4551
19581 msgid ""
19582 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
19583 "tar file) into C<directory>."
19584 msgstr ""
19585
19586 # type: textblock
19587 #. type: textblock
19588 #: ../src/guestfs-actions.pod:6836
19589 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
19590 msgstr ""
19591
19592 # type: =head2
19593 #. type: =head2
19594 #: ../src/guestfs-actions.pod:6842
19595 msgid "guestfs_tgz_out"
19596 msgstr ""
19597
19598 # type: verbatim
19599 #. type: verbatim
19600 #: ../src/guestfs-actions.pod:6844
19601 #, no-wrap
19602 msgid ""
19603 " int\n"
19604 " guestfs_tgz_out (guestfs_h *g,\n"
19605 "                  const char *directory,\n"
19606 "                  const char *tarball);\n"
19607 "\n"
19608 msgstr ""
19609
19610 # type: textblock
19611 #. type: textblock
19612 #: ../src/guestfs-actions.pod:6849 ../fish/guestfish-actions.pod:4562
19613 msgid ""
19614 "This command packs the contents of C<directory> and downloads it to local "
19615 "file C<tarball>."
19616 msgstr ""
19617
19618 # type: textblock
19619 #. type: textblock
19620 #: ../src/guestfs-actions.pod:6852
19621 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
19622 msgstr ""
19623
19624 # type: =head2
19625 #. type: =head2
19626 #: ../src/guestfs-actions.pod:6858
19627 msgid "guestfs_touch"
19628 msgstr ""
19629
19630 # type: verbatim
19631 #. type: verbatim
19632 #: ../src/guestfs-actions.pod:6860
19633 #, no-wrap
19634 msgid ""
19635 " int\n"
19636 " guestfs_touch (guestfs_h *g,\n"
19637 "                const char *path);\n"
19638 "\n"
19639 msgstr ""
19640
19641 # type: textblock
19642 #. type: textblock
19643 #: ../src/guestfs-actions.pod:6864 ../fish/guestfish-actions.pod:4573
19644 msgid ""
19645 "Touch acts like the L<touch(1)> command.  It can be used to update the "
19646 "timestamps on a file, or, if the file does not exist, to create a new zero-"
19647 "length file."
19648 msgstr ""
19649
19650 # type: textblock
19651 #. type: textblock
19652 #: ../src/guestfs-actions.pod:6868 ../fish/guestfish-actions.pod:4577
19653 msgid ""
19654 "This command only works on regular files, and will fail on other file types "
19655 "such as directories, symbolic links, block special etc."
19656 msgstr ""
19657
19658 # type: =head2
19659 #. type: =head2
19660 #: ../src/guestfs-actions.pod:6875
19661 msgid "guestfs_truncate"
19662 msgstr ""
19663
19664 # type: verbatim
19665 #. type: verbatim
19666 #: ../src/guestfs-actions.pod:6877
19667 #, no-wrap
19668 msgid ""
19669 " int\n"
19670 " guestfs_truncate (guestfs_h *g,\n"
19671 "                   const char *path);\n"
19672 "\n"
19673 msgstr ""
19674
19675 # type: textblock
19676 #. type: textblock
19677 #: ../src/guestfs-actions.pod:6881 ../fish/guestfish-actions.pod:4584
19678 msgid ""
19679 "This command truncates C<path> to a zero-length file.  The file must exist "
19680 "already."
19681 msgstr ""
19682
19683 # type: =head2
19684 #. type: =head2
19685 #: ../src/guestfs-actions.pod:6888
19686 msgid "guestfs_truncate_size"
19687 msgstr ""
19688
19689 # type: verbatim
19690 #. type: verbatim
19691 #: ../src/guestfs-actions.pod:6890
19692 #, no-wrap
19693 msgid ""
19694 " int\n"
19695 " guestfs_truncate_size (guestfs_h *g,\n"
19696 "                        const char *path,\n"
19697 "                        int64_t size);\n"
19698 "\n"
19699 msgstr ""
19700
19701 # type: textblock
19702 #. type: textblock
19703 #: ../src/guestfs-actions.pod:6895 ../fish/guestfish-actions.pod:4591
19704 msgid ""
19705 "This command truncates C<path> to size C<size> bytes.  The file must exist "
19706 "already."
19707 msgstr ""
19708
19709 # type: textblock
19710 #. type: textblock
19711 #: ../src/guestfs-actions.pod:6898
19712 msgid ""
19713 "If the current file size is less than C<size> then the file is extended to "
19714 "the required size with zero bytes.  This creates a sparse file (ie. disk "
19715 "blocks are not allocated for the file until you write to it).  To create a "
19716 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
19717 msgstr ""
19718
19719 # type: =head2
19720 #. type: =head2
19721 #: ../src/guestfs-actions.pod:6908
19722 msgid "guestfs_tune2fs_l"
19723 msgstr ""
19724
19725 # type: verbatim
19726 #. type: verbatim
19727 #: ../src/guestfs-actions.pod:6910
19728 #, no-wrap
19729 msgid ""
19730 " char **\n"
19731 " guestfs_tune2fs_l (guestfs_h *g,\n"
19732 "                    const char *device);\n"
19733 "\n"
19734 msgstr ""
19735
19736 # type: textblock
19737 #. type: textblock
19738 #: ../src/guestfs-actions.pod:6914 ../fish/guestfish-actions.pod:4604
19739 msgid ""
19740 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
19741 "C<device>."
19742 msgstr ""
19743
19744 # type: textblock
19745 #. type: textblock
19746 #: ../src/guestfs-actions.pod:6917 ../fish/guestfish-actions.pod:4607
19747 msgid ""
19748 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
19749 "for more details.  The list of fields returned isn't clearly defined, and "
19750 "depends on both the version of C<tune2fs> that libguestfs was built against, "
19751 "and the filesystem itself."
19752 msgstr ""
19753
19754 # type: =head2
19755 #. type: =head2
19756 #: ../src/guestfs-actions.pod:6930
19757 msgid "guestfs_txz_in"
19758 msgstr ""
19759
19760 # type: verbatim
19761 #. type: verbatim
19762 #: ../src/guestfs-actions.pod:6932
19763 #, no-wrap
19764 msgid ""
19765 " int\n"
19766 " guestfs_txz_in (guestfs_h *g,\n"
19767 "                 const char *tarball,\n"
19768 "                 const char *directory);\n"
19769 "\n"
19770 msgstr ""
19771
19772 # type: textblock
19773 #. type: textblock
19774 #: ../src/guestfs-actions.pod:6937 ../fish/guestfish-actions.pod:4616
19775 msgid ""
19776 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
19777 "tar file) into C<directory>."
19778 msgstr ""
19779
19780 # type: =head2
19781 #. type: =head2
19782 #: ../src/guestfs-actions.pod:6944
19783 msgid "guestfs_txz_out"
19784 msgstr ""
19785
19786 # type: verbatim
19787 #. type: verbatim
19788 #: ../src/guestfs-actions.pod:6946
19789 #, no-wrap
19790 msgid ""
19791 " int\n"
19792 " guestfs_txz_out (guestfs_h *g,\n"
19793 "                  const char *directory,\n"
19794 "                  const char *tarball);\n"
19795 "\n"
19796 msgstr ""
19797
19798 # type: textblock
19799 #. type: textblock
19800 #: ../src/guestfs-actions.pod:6951 ../fish/guestfish-actions.pod:4625
19801 msgid ""
19802 "This command packs the contents of C<directory> and downloads it to local "
19803 "file C<tarball> (as an xz compressed tar archive)."
19804 msgstr ""
19805
19806 # type: =head2
19807 #. type: =head2
19808 #: ../src/guestfs-actions.pod:6958
19809 msgid "guestfs_umask"
19810 msgstr ""
19811
19812 # type: verbatim
19813 #. type: verbatim
19814 #: ../src/guestfs-actions.pod:6960
19815 #, no-wrap
19816 msgid ""
19817 " int\n"
19818 " guestfs_umask (guestfs_h *g,\n"
19819 "                int mask);\n"
19820 "\n"
19821 msgstr ""
19822
19823 # type: textblock
19824 #. type: textblock
19825 #: ../src/guestfs-actions.pod:6964 ../fish/guestfish-actions.pod:4634
19826 msgid ""
19827 "This function sets the mask used for creating new files and device nodes to "
19828 "C<mask & 0777>."
19829 msgstr ""
19830
19831 # type: textblock
19832 #. type: textblock
19833 #: ../src/guestfs-actions.pod:6967 ../fish/guestfish-actions.pod:4637
19834 msgid ""
19835 "Typical umask values would be C<022> which creates new files with "
19836 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
19837 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
19838 msgstr ""
19839
19840 # type: textblock
19841 #. type: textblock
19842 #: ../src/guestfs-actions.pod:6972 ../fish/guestfish-actions.pod:4642
19843 msgid ""
19844 "The default umask is C<022>.  This is important because it means that "
19845 "directories and device nodes will be created with C<0644> or C<0755> mode "
19846 "even if you specify C<0777>."
19847 msgstr ""
19848
19849 # type: textblock
19850 #. type: textblock
19851 #: ../src/guestfs-actions.pod:6976
19852 msgid ""
19853 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
19854 "C<guestfs_mkdir>."
19855 msgstr ""
19856
19857 # type: textblock
19858 #. type: textblock
19859 #: ../src/guestfs-actions.pod:6979 ../fish/guestfish-actions.pod:4649
19860 msgid "This call returns the previous umask."
19861 msgstr ""
19862
19863 # type: =head2
19864 #. type: =head2
19865 #: ../src/guestfs-actions.pod:6985
19866 msgid "guestfs_umount"
19867 msgstr ""
19868
19869 # type: verbatim
19870 #. type: verbatim
19871 #: ../src/guestfs-actions.pod:6987
19872 #, no-wrap
19873 msgid ""
19874 " int\n"
19875 " guestfs_umount (guestfs_h *g,\n"
19876 "                 const char *pathordevice);\n"
19877 "\n"
19878 msgstr ""
19879
19880 # type: textblock
19881 #. type: textblock
19882 #: ../src/guestfs-actions.pod:6991 ../fish/guestfish-actions.pod:4657
19883 msgid ""
19884 "This unmounts the given filesystem.  The filesystem may be specified either "
19885 "by its mountpoint (path) or the device which contains the filesystem."
19886 msgstr ""
19887
19888 # type: =head2
19889 #. type: =head2
19890 #: ../src/guestfs-actions.pod:6999
19891 msgid "guestfs_umount_all"
19892 msgstr ""
19893
19894 # type: verbatim
19895 #. type: verbatim
19896 #: ../src/guestfs-actions.pod:7001
19897 #, no-wrap
19898 msgid ""
19899 " int\n"
19900 " guestfs_umount_all (guestfs_h *g);\n"
19901 "\n"
19902 msgstr ""
19903
19904 # type: textblock
19905 #. type: textblock
19906 #: ../src/guestfs-actions.pod:7004 ../fish/guestfish-actions.pod:4667
19907 msgid "This unmounts all mounted filesystems."
19908 msgstr ""
19909
19910 # type: textblock
19911 #. type: textblock
19912 #: ../src/guestfs-actions.pod:7006 ../fish/guestfish-actions.pod:4669
19913 msgid "Some internal mounts are not unmounted by this call."
19914 msgstr ""
19915
19916 # type: =head2
19917 #. type: =head2
19918 #: ../src/guestfs-actions.pod:7012
19919 msgid "guestfs_upload"
19920 msgstr ""
19921
19922 # type: verbatim
19923 #. type: verbatim
19924 #: ../src/guestfs-actions.pod:7014
19925 #, no-wrap
19926 msgid ""
19927 " int\n"
19928 " guestfs_upload (guestfs_h *g,\n"
19929 "                 const char *filename,\n"
19930 "                 const char *remotefilename);\n"
19931 "\n"
19932 msgstr ""
19933
19934 # type: textblock
19935 #. type: textblock
19936 #: ../src/guestfs-actions.pod:7019 ../src/guestfs-actions.pod:7043
19937 #: ../fish/guestfish-actions.pod:4675 ../fish/guestfish-actions.pod:4688
19938 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
19939 msgstr ""
19940
19941 # type: textblock
19942 #. type: textblock
19943 #: ../src/guestfs-actions.pod:7024
19944 msgid "See also C<guestfs_download>."
19945 msgstr ""
19946
19947 # type: =head2
19948 #. type: =head2
19949 #: ../src/guestfs-actions.pod:7035
19950 msgid "guestfs_upload_offset"
19951 msgstr ""
19952
19953 # type: verbatim
19954 #. type: verbatim
19955 #: ../src/guestfs-actions.pod:7037
19956 #, no-wrap
19957 msgid ""
19958 " int\n"
19959 " guestfs_upload_offset (guestfs_h *g,\n"
19960 "                        const char *filename,\n"
19961 "                        const char *remotefilename,\n"
19962 "                        int64_t offset);\n"
19963 "\n"
19964 msgstr ""
19965
19966 # type: textblock
19967 #. type: textblock
19968 #: ../src/guestfs-actions.pod:7046 ../fish/guestfish-actions.pod:4691
19969 msgid ""
19970 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
19971 "The intention is to overwrite parts of existing files or devices, although "
19972 "if a non-existant file is specified then it is created with a \"hole\" "
19973 "before C<offset>.  The size of the data written is implicit in the size of "
19974 "the source C<filename>."
19975 msgstr ""
19976
19977 # type: textblock
19978 #. type: textblock
19979 #: ../src/guestfs-actions.pod:7053
19980 msgid ""
19981 "Note that there is no limit on the amount of data that can be uploaded with "
19982 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
19983 "full amount unless an error occurs."
19984 msgstr ""
19985
19986 # type: textblock
19987 #. type: textblock
19988 #: ../src/guestfs-actions.pod:7058
19989 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
19990 msgstr ""
19991
19992 # type: =head2
19993 #. type: =head2
19994 #: ../src/guestfs-actions.pod:7069
19995 msgid "guestfs_utimens"
19996 msgstr ""
19997
19998 # type: verbatim
19999 #. type: verbatim
20000 #: ../src/guestfs-actions.pod:7071
20001 #, no-wrap
20002 msgid ""
20003 " int\n"
20004 " guestfs_utimens (guestfs_h *g,\n"
20005 "                  const char *path,\n"
20006 "                  int64_t atsecs,\n"
20007 "                  int64_t atnsecs,\n"
20008 "                  int64_t mtsecs,\n"
20009 "                  int64_t mtnsecs);\n"
20010 "\n"
20011 msgstr ""
20012
20013 # type: textblock
20014 #. type: textblock
20015 #: ../src/guestfs-actions.pod:7079 ../fish/guestfish-actions.pod:4711
20016 msgid "This command sets the timestamps of a file with nanosecond precision."
20017 msgstr ""
20018
20019 # type: textblock
20020 #. type: textblock
20021 #: ../src/guestfs-actions.pod:7082 ../fish/guestfish-actions.pod:4714
20022 msgid ""
20023 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
20024 "from the epoch."
20025 msgstr ""
20026
20027 # type: textblock
20028 #. type: textblock
20029 #: ../src/guestfs-actions.pod:7085 ../fish/guestfish-actions.pod:4717
20030 msgid ""
20031 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
20032 "nanoseconds from the epoch."
20033 msgstr ""
20034
20035 # type: textblock
20036 #. type: textblock
20037 #: ../src/guestfs-actions.pod:7088 ../fish/guestfish-actions.pod:4720
20038 msgid ""
20039 "If the C<*nsecs> field contains the special value C<-1> then the "
20040 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
20041 "ignored in this case)."
20042 msgstr ""
20043
20044 # type: textblock
20045 #. type: textblock
20046 #: ../src/guestfs-actions.pod:7092 ../fish/guestfish-actions.pod:4724
20047 msgid ""
20048 "If the C<*nsecs> field contains the special value C<-2> then the "
20049 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
20050 "in this case)."
20051 msgstr ""
20052
20053 # type: =head2
20054 #. type: =head2
20055 #: ../src/guestfs-actions.pod:7100 ../src/guestfs-structs.pod:175
20056 msgid "guestfs_version"
20057 msgstr ""
20058
20059 # type: verbatim
20060 #. type: verbatim
20061 #: ../src/guestfs-actions.pod:7102
20062 #, no-wrap
20063 msgid ""
20064 " struct guestfs_version *\n"
20065 " guestfs_version (guestfs_h *g);\n"
20066 "\n"
20067 msgstr ""
20068
20069 # type: textblock
20070 #. type: textblock
20071 #: ../src/guestfs-actions.pod:7105 ../fish/guestfish-actions.pod:4732
20072 msgid ""
20073 "Return the libguestfs version number that the program is linked against."
20074 msgstr ""
20075
20076 # type: textblock
20077 #. type: textblock
20078 #: ../src/guestfs-actions.pod:7108 ../fish/guestfish-actions.pod:4735
20079 msgid ""
20080 "Note that because of dynamic linking this is not necessarily the version of "
20081 "libguestfs that you compiled against.  You can compile the program, and then "
20082 "at runtime dynamically link against a completely different C<libguestfs.so> "
20083 "library."
20084 msgstr ""
20085
20086 # type: textblock
20087 #. type: textblock
20088 #: ../src/guestfs-actions.pod:7113 ../fish/guestfish-actions.pod:4740
20089 msgid ""
20090 "This call was added in version C<1.0.58>.  In previous versions of "
20091 "libguestfs there was no way to get the version number.  From C code you can "
20092 "use dynamic linker functions to find out if this symbol exists (if it "
20093 "doesn't, then it's an earlier version)."
20094 msgstr ""
20095
20096 # type: textblock
20097 #. type: textblock
20098 #: ../src/guestfs-actions.pod:7119 ../fish/guestfish-actions.pod:4746
20099 msgid ""
20100 "The call returns a structure with four elements.  The first three (C<major>, "
20101 "C<minor> and C<release>) are numbers and correspond to the usual version "
20102 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
20103 "but may be used for distro-specific information."
20104 msgstr ""
20105
20106 # type: textblock
20107 #. type: textblock
20108 #: ../src/guestfs-actions.pod:7125 ../fish/guestfish-actions.pod:4752
20109 msgid ""
20110 "To construct the original version string: C<$major.$minor.$release$extra>"
20111 msgstr ""
20112
20113 # type: textblock
20114 #. type: textblock
20115 #: ../src/guestfs-actions.pod:7128 ../fish/guestfish-actions.pod:4755
20116 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
20117 msgstr ""
20118
20119 # type: textblock
20120 #. type: textblock
20121 #: ../src/guestfs-actions.pod:7130
20122 msgid ""
20123 "I<Note:> Don't use this call to test for availability of features.  In "
20124 "enterprise distributions we backport features from later versions into "
20125 "earlier versions, making this an unreliable way to test for features.  Use "
20126 "C<guestfs_available> instead."
20127 msgstr ""
20128
20129 # type: textblock
20130 #. type: textblock
20131 #: ../src/guestfs-actions.pod:7136
20132 msgid ""
20133 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
20134 "error.  I<The caller must call C<guestfs_free_version> after use>."
20135 msgstr ""
20136
20137 # type: textblock
20138 #. type: textblock
20139 #: ../src/guestfs-actions.pod:7140
20140 msgid "(Added in 1.0.58)"
20141 msgstr ""
20142
20143 # type: =head2
20144 #. type: =head2
20145 #: ../src/guestfs-actions.pod:7142
20146 msgid "guestfs_vfs_label"
20147 msgstr ""
20148
20149 # type: verbatim
20150 #. type: verbatim
20151 #: ../src/guestfs-actions.pod:7144
20152 #, no-wrap
20153 msgid ""
20154 " char *\n"
20155 " guestfs_vfs_label (guestfs_h *g,\n"
20156 "                    const char *device);\n"
20157 "\n"
20158 msgstr ""
20159
20160 # type: textblock
20161 #. type: textblock
20162 #: ../src/guestfs-actions.pod:7148 ../fish/guestfish-actions.pod:4767
20163 msgid "This returns the filesystem label of the filesystem on C<device>."
20164 msgstr ""
20165
20166 # type: textblock
20167 #. type: textblock
20168 #: ../src/guestfs-actions.pod:7151 ../fish/guestfish-actions.pod:4770
20169 msgid "If the filesystem is unlabeled, this returns the empty string."
20170 msgstr ""
20171
20172 # type: textblock
20173 #. type: textblock
20174 #: ../src/guestfs-actions.pod:7153
20175 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
20176 msgstr ""
20177
20178 # type: textblock
20179 #. type: textblock
20180 #: ../src/guestfs-actions.pod:7158 ../src/guestfs-actions.pod:7195
20181 msgid "(Added in 1.3.18)"
20182 msgstr ""
20183
20184 # type: =head2
20185 #. type: =head2
20186 #: ../src/guestfs-actions.pod:7160
20187 msgid "guestfs_vfs_type"
20188 msgstr ""
20189
20190 # type: verbatim
20191 #. type: verbatim
20192 #: ../src/guestfs-actions.pod:7162
20193 #, no-wrap
20194 msgid ""
20195 " char *\n"
20196 " guestfs_vfs_type (guestfs_h *g,\n"
20197 "                   const char *device);\n"
20198 "\n"
20199 msgstr ""
20200
20201 # type: textblock
20202 #. type: textblock
20203 #: ../src/guestfs-actions.pod:7166 ../fish/guestfish-actions.pod:4778
20204 msgid ""
20205 "This command gets the filesystem type corresponding to the filesystem on "
20206 "C<device>."
20207 msgstr ""
20208
20209 # type: textblock
20210 #. type: textblock
20211 #: ../src/guestfs-actions.pod:7169 ../fish/guestfish-actions.pod:4781
20212 msgid ""
20213 "For most filesystems, the result is the name of the Linux VFS module which "
20214 "would be used to mount this filesystem if you mounted it without specifying "
20215 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
20216 msgstr ""
20217
20218 # type: =head2
20219 #. type: =head2
20220 #: ../src/guestfs-actions.pod:7179
20221 msgid "guestfs_vfs_uuid"
20222 msgstr ""
20223
20224 # type: verbatim
20225 #. type: verbatim
20226 #: ../src/guestfs-actions.pod:7181
20227 #, no-wrap
20228 msgid ""
20229 " char *\n"
20230 " guestfs_vfs_uuid (guestfs_h *g,\n"
20231 "                   const char *device);\n"
20232 "\n"
20233 msgstr ""
20234
20235 # type: textblock
20236 #. type: textblock
20237 #: ../src/guestfs-actions.pod:7185 ../fish/guestfish-actions.pod:4790
20238 msgid "This returns the filesystem UUID of the filesystem on C<device>."
20239 msgstr ""
20240
20241 # type: textblock
20242 #. type: textblock
20243 #: ../src/guestfs-actions.pod:7188 ../fish/guestfish-actions.pod:4793
20244 msgid "If the filesystem does not have a UUID, this returns the empty string."
20245 msgstr ""
20246
20247 # type: textblock
20248 #. type: textblock
20249 #: ../src/guestfs-actions.pod:7190
20250 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
20251 msgstr ""
20252
20253 # type: =head2
20254 #. type: =head2
20255 #: ../src/guestfs-actions.pod:7197
20256 msgid "guestfs_vg_activate"
20257 msgstr ""
20258
20259 # type: verbatim
20260 #. type: verbatim
20261 #: ../src/guestfs-actions.pod:7199
20262 #, no-wrap
20263 msgid ""
20264 " int\n"
20265 " guestfs_vg_activate (guestfs_h *g,\n"
20266 "                      int activate,\n"
20267 "                      char *const *volgroups);\n"
20268 "\n"
20269 msgstr ""
20270
20271 # type: textblock
20272 #. type: textblock
20273 #: ../src/guestfs-actions.pod:7204 ../fish/guestfish-actions.pod:4801
20274 msgid ""
20275 "This command activates or (if C<activate> is false) deactivates all logical "
20276 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
20277 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
20278 "deactivated, then those devices disappear."
20279 msgstr ""
20280
20281 # type: textblock
20282 #. type: textblock
20283 #: ../src/guestfs-actions.pod:7210 ../fish/guestfish-actions.pod:4807
20284 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
20285 msgstr ""
20286
20287 # type: textblock
20288 #. type: textblock
20289 #: ../src/guestfs-actions.pod:7212 ../fish/guestfish-actions.pod:4809
20290 msgid ""
20291 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
20292 "activated or deactivated."
20293 msgstr ""
20294
20295 # type: =head2
20296 #. type: =head2
20297 #: ../src/guestfs-actions.pod:7219
20298 msgid "guestfs_vg_activate_all"
20299 msgstr ""
20300
20301 # type: verbatim
20302 #. type: verbatim
20303 #: ../src/guestfs-actions.pod:7221
20304 #, no-wrap
20305 msgid ""
20306 " int\n"
20307 " guestfs_vg_activate_all (guestfs_h *g,\n"
20308 "                          int activate);\n"
20309 "\n"
20310 msgstr ""
20311
20312 # type: textblock
20313 #. type: textblock
20314 #: ../src/guestfs-actions.pod:7225 ../fish/guestfish-actions.pod:4816
20315 msgid ""
20316 "This command activates or (if C<activate> is false) deactivates all logical "
20317 "volumes in all volume groups.  If activated, then they are made known to the "
20318 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
20319 "those devices disappear."
20320 msgstr ""
20321
20322 # type: textblock
20323 #. type: textblock
20324 #: ../src/guestfs-actions.pod:7231 ../fish/guestfish-actions.pod:4822
20325 msgid "This command is the same as running C<vgchange -a y|n>"
20326 msgstr ""
20327
20328 # type: =head2
20329 #. type: =head2
20330 #: ../src/guestfs-actions.pod:7237
20331 msgid "guestfs_vgcreate"
20332 msgstr ""
20333
20334 # type: verbatim
20335 #. type: verbatim
20336 #: ../src/guestfs-actions.pod:7239
20337 #, no-wrap
20338 msgid ""
20339 " int\n"
20340 " guestfs_vgcreate (guestfs_h *g,\n"
20341 "                   const char *volgroup,\n"
20342 "                   char *const *physvols);\n"
20343 "\n"
20344 msgstr ""
20345
20346 # type: textblock
20347 #. type: textblock
20348 #: ../src/guestfs-actions.pod:7244 ../fish/guestfish-actions.pod:4828
20349 msgid ""
20350 "This creates an LVM volume group called C<volgroup> from the non-empty list "
20351 "of physical volumes C<physvols>."
20352 msgstr ""
20353
20354 # type: =head2
20355 #. type: =head2
20356 #: ../src/guestfs-actions.pod:7251
20357 msgid "guestfs_vglvuuids"
20358 msgstr ""
20359
20360 # type: verbatim
20361 #. type: verbatim
20362 #: ../src/guestfs-actions.pod:7253
20363 #, no-wrap
20364 msgid ""
20365 " char **\n"
20366 " guestfs_vglvuuids (guestfs_h *g,\n"
20367 "                    const char *vgname);\n"
20368 "\n"
20369 msgstr ""
20370
20371 # type: textblock
20372 #. type: textblock
20373 #: ../src/guestfs-actions.pod:7257 ../fish/guestfish-actions.pod:4835
20374 msgid ""
20375 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
20376 "volumes created in this volume group."
20377 msgstr ""
20378
20379 # type: textblock
20380 #. type: textblock
20381 #: ../src/guestfs-actions.pod:7260
20382 msgid ""
20383 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
20384 "associate logical volumes and volume groups."
20385 msgstr ""
20386
20387 # type: textblock
20388 #. type: textblock
20389 #: ../src/guestfs-actions.pod:7263
20390 msgid "See also C<guestfs_vgpvuuids>."
20391 msgstr ""
20392
20393 # type: =head2
20394 #. type: =head2
20395 #: ../src/guestfs-actions.pod:7271
20396 msgid "guestfs_vgpvuuids"
20397 msgstr ""
20398
20399 # type: verbatim
20400 #. type: verbatim
20401 #: ../src/guestfs-actions.pod:7273
20402 #, no-wrap
20403 msgid ""
20404 " char **\n"
20405 " guestfs_vgpvuuids (guestfs_h *g,\n"
20406 "                    const char *vgname);\n"
20407 "\n"
20408 msgstr ""
20409
20410 # type: textblock
20411 #. type: textblock
20412 #: ../src/guestfs-actions.pod:7277 ../fish/guestfish-actions.pod:4847
20413 msgid ""
20414 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
20415 "volumes that this volume group resides on."
20416 msgstr ""
20417
20418 # type: textblock
20419 #. type: textblock
20420 #: ../src/guestfs-actions.pod:7280
20421 msgid ""
20422 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
20423 "associate physical volumes and volume groups."
20424 msgstr ""
20425
20426 # type: textblock
20427 #. type: textblock
20428 #: ../src/guestfs-actions.pod:7283
20429 msgid "See also C<guestfs_vglvuuids>."
20430 msgstr ""
20431
20432 # type: =head2
20433 #. type: =head2
20434 #: ../src/guestfs-actions.pod:7291
20435 msgid "guestfs_vgremove"
20436 msgstr ""
20437
20438 # type: verbatim
20439 #. type: verbatim
20440 #: ../src/guestfs-actions.pod:7293
20441 #, no-wrap
20442 msgid ""
20443 " int\n"
20444 " guestfs_vgremove (guestfs_h *g,\n"
20445 "                   const char *vgname);\n"
20446 "\n"
20447 msgstr ""
20448
20449 # type: textblock
20450 #. type: textblock
20451 #: ../src/guestfs-actions.pod:7297 ../fish/guestfish-actions.pod:4859
20452 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
20453 msgstr ""
20454
20455 # type: textblock
20456 #. type: textblock
20457 #: ../src/guestfs-actions.pod:7299 ../fish/guestfish-actions.pod:4861
20458 msgid ""
20459 "This also forcibly removes all logical volumes in the volume group (if any)."
20460 msgstr ""
20461
20462 # type: =head2
20463 #. type: =head2
20464 #: ../src/guestfs-actions.pod:7306
20465 msgid "guestfs_vgrename"
20466 msgstr ""
20467
20468 # type: verbatim
20469 #. type: verbatim
20470 #: ../src/guestfs-actions.pod:7308
20471 #, no-wrap
20472 msgid ""
20473 " int\n"
20474 " guestfs_vgrename (guestfs_h *g,\n"
20475 "                   const char *volgroup,\n"
20476 "                   const char *newvolgroup);\n"
20477 "\n"
20478 msgstr ""
20479
20480 # type: textblock
20481 #. type: textblock
20482 #: ../src/guestfs-actions.pod:7313 ../fish/guestfish-actions.pod:4868
20483 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
20484 msgstr ""
20485
20486 # type: =head2
20487 #. type: =head2
20488 #: ../src/guestfs-actions.pod:7319
20489 msgid "guestfs_vgs"
20490 msgstr ""
20491
20492 # type: verbatim
20493 #. type: verbatim
20494 #: ../src/guestfs-actions.pod:7321
20495 #, no-wrap
20496 msgid ""
20497 " char **\n"
20498 " guestfs_vgs (guestfs_h *g);\n"
20499 "\n"
20500 msgstr ""
20501
20502 # type: textblock
20503 #. type: textblock
20504 #: ../src/guestfs-actions.pod:7324 ../fish/guestfish-actions.pod:4874
20505 msgid ""
20506 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
20507 "> command."
20508 msgstr ""
20509
20510 # type: textblock
20511 #. type: textblock
20512 #: ../src/guestfs-actions.pod:7327 ../fish/guestfish-actions.pod:4877
20513 msgid ""
20514 "This returns a list of just the volume group names that were detected (eg. "
20515 "C<VolGroup00>)."
20516 msgstr ""
20517
20518 # type: textblock
20519 #. type: textblock
20520 #: ../src/guestfs-actions.pod:7330
20521 msgid "See also C<guestfs_vgs_full>."
20522 msgstr ""
20523
20524 # type: =head2
20525 #. type: =head2
20526 #: ../src/guestfs-actions.pod:7338
20527 msgid "guestfs_vgs_full"
20528 msgstr ""
20529
20530 # type: verbatim
20531 #. type: verbatim
20532 #: ../src/guestfs-actions.pod:7340
20533 #, no-wrap
20534 msgid ""
20535 " struct guestfs_lvm_vg_list *\n"
20536 " guestfs_vgs_full (guestfs_h *g);\n"
20537 "\n"
20538 msgstr ""
20539
20540 # type: textblock
20541 #. type: textblock
20542 #: ../src/guestfs-actions.pod:7343 ../fish/guestfish-actions.pod:4886
20543 msgid ""
20544 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
20545 "> command.  The \"full\" version includes all fields."
20546 msgstr ""
20547
20548 # type: textblock
20549 #. type: textblock
20550 #: ../src/guestfs-actions.pod:7346
20551 msgid ""
20552 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
20553 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
20554 msgstr ""
20555
20556 # type: =head2
20557 #. type: =head2
20558 #: ../src/guestfs-actions.pod:7352
20559 msgid "guestfs_vgscan"
20560 msgstr ""
20561
20562 # type: verbatim
20563 #. type: verbatim
20564 #: ../src/guestfs-actions.pod:7354
20565 #, no-wrap
20566 msgid ""
20567 " int\n"
20568 " guestfs_vgscan (guestfs_h *g);\n"
20569 "\n"
20570 msgstr ""
20571
20572 # type: textblock
20573 #. type: textblock
20574 #: ../src/guestfs-actions.pod:7357 ../fish/guestfish-actions.pod:4893
20575 msgid ""
20576 "This rescans all block devices and rebuilds the list of LVM physical "
20577 "volumes, volume groups and logical volumes."
20578 msgstr ""
20579
20580 # type: =head2
20581 #. type: =head2
20582 #: ../src/guestfs-actions.pod:7364
20583 msgid "guestfs_vguuid"
20584 msgstr ""
20585
20586 # type: verbatim
20587 #. type: verbatim
20588 #: ../src/guestfs-actions.pod:7366
20589 #, no-wrap
20590 msgid ""
20591 " char *\n"
20592 " guestfs_vguuid (guestfs_h *g,\n"
20593 "                 const char *vgname);\n"
20594 "\n"
20595 msgstr ""
20596
20597 # type: textblock
20598 #. type: textblock
20599 #: ../src/guestfs-actions.pod:7370 ../fish/guestfish-actions.pod:4900
20600 msgid "This command returns the UUID of the LVM VG named C<vgname>."
20601 msgstr ""
20602
20603 # type: =head2
20604 #. type: =head2
20605 #: ../src/guestfs-actions.pod:7377
20606 msgid "guestfs_wait_ready"
20607 msgstr ""
20608
20609 # type: verbatim
20610 #. type: verbatim
20611 #: ../src/guestfs-actions.pod:7379
20612 #, no-wrap
20613 msgid ""
20614 " int\n"
20615 " guestfs_wait_ready (guestfs_h *g);\n"
20616 "\n"
20617 msgstr ""
20618
20619 # type: textblock
20620 #. type: textblock
20621 #: ../src/guestfs-actions.pod:7382
20622 msgid "This function is a no op."
20623 msgstr ""
20624
20625 # type: textblock
20626 #. type: textblock
20627 #: ../src/guestfs-actions.pod:7384
20628 msgid ""
20629 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
20630 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
20631 "is no longer necessary because C<guestfs_launch> now does the waiting."
20632 msgstr ""
20633
20634 # type: textblock
20635 #. type: textblock
20636 #: ../src/guestfs-actions.pod:7389
20637 msgid ""
20638 "If you see any calls to this function in code then you can just remove them, "
20639 "unless you want to retain compatibility with older versions of the API."
20640 msgstr ""
20641
20642 #. type: textblock
20643 #: ../src/guestfs-actions.pod:7395
20644 msgid ""
20645 "This function is deprecated.  In new code, use the C<launch> call instead."
20646 msgstr ""
20647
20648 # type: =head2
20649 #. type: =head2
20650 #: ../src/guestfs-actions.pod:7404
20651 msgid "guestfs_wc_c"
20652 msgstr ""
20653
20654 # type: verbatim
20655 #. type: verbatim
20656 #: ../src/guestfs-actions.pod:7406
20657 #, no-wrap
20658 msgid ""
20659 " int\n"
20660 " guestfs_wc_c (guestfs_h *g,\n"
20661 "               const char *path);\n"
20662 "\n"
20663 msgstr ""
20664
20665 # type: textblock
20666 #. type: textblock
20667 #: ../src/guestfs-actions.pod:7410 ../fish/guestfish-actions.pod:4906
20668 msgid ""
20669 "This command counts the characters in a file, using the C<wc -c> external "
20670 "command."
20671 msgstr ""
20672
20673 # type: =head2
20674 #. type: =head2
20675 #: ../src/guestfs-actions.pod:7417
20676 msgid "guestfs_wc_l"
20677 msgstr ""
20678
20679 # type: verbatim
20680 #. type: verbatim
20681 #: ../src/guestfs-actions.pod:7419
20682 #, no-wrap
20683 msgid ""
20684 " int\n"
20685 " guestfs_wc_l (guestfs_h *g,\n"
20686 "               const char *path);\n"
20687 "\n"
20688 msgstr ""
20689
20690 # type: textblock
20691 #. type: textblock
20692 #: ../src/guestfs-actions.pod:7423 ../fish/guestfish-actions.pod:4913
20693 msgid ""
20694 "This command counts the lines in a file, using the C<wc -l> external command."
20695 msgstr ""
20696
20697 # type: =head2
20698 #. type: =head2
20699 #: ../src/guestfs-actions.pod:7430
20700 msgid "guestfs_wc_w"
20701 msgstr ""
20702
20703 # type: verbatim
20704 #. type: verbatim
20705 #: ../src/guestfs-actions.pod:7432
20706 #, no-wrap
20707 msgid ""
20708 " int\n"
20709 " guestfs_wc_w (guestfs_h *g,\n"
20710 "               const char *path);\n"
20711 "\n"
20712 msgstr ""
20713
20714 # type: textblock
20715 #. type: textblock
20716 #: ../src/guestfs-actions.pod:7436 ../fish/guestfish-actions.pod:4920
20717 msgid ""
20718 "This command counts the words in a file, using the C<wc -w> external command."
20719 msgstr ""
20720
20721 # type: =head2
20722 #. type: =head2
20723 #: ../src/guestfs-actions.pod:7443
20724 msgid "guestfs_write"
20725 msgstr ""
20726
20727 # type: verbatim
20728 #. type: verbatim
20729 #: ../src/guestfs-actions.pod:7445
20730 #, no-wrap
20731 msgid ""
20732 " int\n"
20733 " guestfs_write (guestfs_h *g,\n"
20734 "                const char *path,\n"
20735 "                const char *content,\n"
20736 "                size_t content_size);\n"
20737 "\n"
20738 msgstr ""
20739
20740 # type: textblock
20741 #. type: textblock
20742 #: ../src/guestfs-actions.pod:7451 ../fish/guestfish-actions.pod:4927
20743 msgid ""
20744 "This call creates a file called C<path>.  The content of the file is the "
20745 "string C<content> (which can contain any 8 bit data)."
20746 msgstr ""
20747
20748 # type: =head2
20749 #. type: =head2
20750 #: ../src/guestfs-actions.pod:7461
20751 msgid "guestfs_write_file"
20752 msgstr ""
20753
20754 # type: verbatim
20755 #. type: verbatim
20756 #: ../src/guestfs-actions.pod:7463
20757 #, no-wrap
20758 msgid ""
20759 " int\n"
20760 " guestfs_write_file (guestfs_h *g,\n"
20761 "                     const char *path,\n"
20762 "                     const char *content,\n"
20763 "                     int size);\n"
20764 "\n"
20765 msgstr ""
20766
20767 # type: textblock
20768 #. type: textblock
20769 #: ../src/guestfs-actions.pod:7469 ../fish/guestfish-actions.pod:4937
20770 msgid ""
20771 "This call creates a file called C<path>.  The contents of the file is the "
20772 "string C<content> (which can contain any 8 bit data), with length C<size>."
20773 msgstr ""
20774
20775 # type: textblock
20776 #. type: textblock
20777 #: ../src/guestfs-actions.pod:7473 ../fish/guestfish-actions.pod:4941
20778 msgid ""
20779 "As a special case, if C<size> is C<0> then the length is calculated using "
20780 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
20781 msgstr ""
20782
20783 # type: textblock
20784 #. type: textblock
20785 #: ../src/guestfs-actions.pod:7477 ../fish/guestfish-actions.pod:4945
20786 msgid ""
20787 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
20788 "I<not> work, even if the length is specified."
20789 msgstr ""
20790
20791 # type: textblock
20792 #. type: textblock
20793 #: ../src/guestfs-actions.pod:7485 ../fish/guestfish-actions.pod:4951
20794 msgid ""
20795 "This function is deprecated.  In new code, use the C<write> call instead."
20796 msgstr ""
20797
20798 # type: =head2
20799 #. type: =head2
20800 #: ../src/guestfs-actions.pod:7494
20801 msgid "guestfs_zegrep"
20802 msgstr ""
20803
20804 # type: verbatim
20805 #. type: verbatim
20806 #: ../src/guestfs-actions.pod:7496
20807 #, no-wrap
20808 msgid ""
20809 " char **\n"
20810 " guestfs_zegrep (guestfs_h *g,\n"
20811 "                 const char *regex,\n"
20812 "                 const char *path);\n"
20813 "\n"
20814 msgstr ""
20815
20816 # type: textblock
20817 #. type: textblock
20818 #: ../src/guestfs-actions.pod:7501 ../fish/guestfish-actions.pod:4962
20819 msgid ""
20820 "This calls the external C<zegrep> program and returns the matching lines."
20821 msgstr ""
20822
20823 # type: =head2
20824 #. type: =head2
20825 #: ../src/guestfs-actions.pod:7513
20826 msgid "guestfs_zegrepi"
20827 msgstr ""
20828
20829 # type: verbatim
20830 #. type: verbatim
20831 #: ../src/guestfs-actions.pod:7515
20832 #, no-wrap
20833 msgid ""
20834 " char **\n"
20835 " guestfs_zegrepi (guestfs_h *g,\n"
20836 "                  const char *regex,\n"
20837 "                  const char *path);\n"
20838 "\n"
20839 msgstr ""
20840
20841 # type: textblock
20842 #. type: textblock
20843 #: ../src/guestfs-actions.pod:7520 ../fish/guestfish-actions.pod:4972
20844 msgid ""
20845 "This calls the external C<zegrep -i> program and returns the matching lines."
20846 msgstr ""
20847
20848 # type: =head2
20849 #. type: =head2
20850 #: ../src/guestfs-actions.pod:7532
20851 msgid "guestfs_zero"
20852 msgstr ""
20853
20854 # type: verbatim
20855 #. type: verbatim
20856 #: ../src/guestfs-actions.pod:7534
20857 #, no-wrap
20858 msgid ""
20859 " int\n"
20860 " guestfs_zero (guestfs_h *g,\n"
20861 "               const char *device);\n"
20862 "\n"
20863 msgstr ""
20864
20865 # type: textblock
20866 #. type: textblock
20867 #: ../src/guestfs-actions.pod:7538 ../fish/guestfish-actions.pod:4982
20868 msgid "This command writes zeroes over the first few blocks of C<device>."
20869 msgstr ""
20870
20871 # type: textblock
20872 #. type: textblock
20873 #: ../src/guestfs-actions.pod:7540 ../fish/guestfish-actions.pod:4984
20874 msgid ""
20875 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
20876 "securely wipe the device).  It should be sufficient to remove any partition "
20877 "tables, filesystem superblocks and so on."
20878 msgstr ""
20879
20880 #. type: textblock
20881 #: ../src/guestfs-actions.pod:7544
20882 msgid ""
20883 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
20884 "C<guestfs_is_zero_device>"
20885 msgstr ""
20886
20887 # type: =head2
20888 #. type: =head2
20889 #: ../src/guestfs-actions.pod:7556
20890 msgid "guestfs_zero_device"
20891 msgstr ""
20892
20893 # type: verbatim
20894 #. type: verbatim
20895 #: ../src/guestfs-actions.pod:7558
20896 #, no-wrap
20897 msgid ""
20898 " int\n"
20899 " guestfs_zero_device (guestfs_h *g,\n"
20900 "                      const char *device);\n"
20901 "\n"
20902 msgstr ""
20903
20904 # type: textblock
20905 #. type: textblock
20906 #: ../src/guestfs-actions.pod:7562
20907 msgid ""
20908 "This command writes zeroes over the entire C<device>.  Compare with "
20909 "C<guestfs_zero> which just zeroes the first few blocks of a device."
20910 msgstr ""
20911
20912 # type: textblock
20913 #. type: textblock
20914 #: ../src/guestfs-actions.pod:7576
20915 msgid "(Added in 1.3.1)"
20916 msgstr ""
20917
20918 # type: =head2
20919 #. type: =head2
20920 #: ../src/guestfs-actions.pod:7578
20921 msgid "guestfs_zerofree"
20922 msgstr ""
20923
20924 # type: verbatim
20925 #. type: verbatim
20926 #: ../src/guestfs-actions.pod:7580
20927 #, no-wrap
20928 msgid ""
20929 " int\n"
20930 " guestfs_zerofree (guestfs_h *g,\n"
20931 "                   const char *device);\n"
20932 "\n"
20933 msgstr ""
20934
20935 # type: textblock
20936 #. type: textblock
20937 #: ../src/guestfs-actions.pod:7584 ../fish/guestfish-actions.pod:5006
20938 msgid ""
20939 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
20940 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
20941 "possible to compress the filesystem more effectively."
20942 msgstr ""
20943
20944 # type: textblock
20945 #. type: textblock
20946 #: ../src/guestfs-actions.pod:7589 ../fish/guestfish-actions.pod:5011
20947 msgid "You should B<not> run this program if the filesystem is mounted."
20948 msgstr ""
20949
20950 # type: textblock
20951 #. type: textblock
20952 #: ../src/guestfs-actions.pod:7592 ../fish/guestfish-actions.pod:5014
20953 msgid ""
20954 "It is possible that using this program can damage the filesystem or data on "
20955 "the filesystem."
20956 msgstr ""
20957
20958 # type: =head2
20959 #. type: =head2
20960 #: ../src/guestfs-actions.pod:7599
20961 msgid "guestfs_zfgrep"
20962 msgstr ""
20963
20964 # type: verbatim
20965 #. type: verbatim
20966 #: ../src/guestfs-actions.pod:7601
20967 #, no-wrap
20968 msgid ""
20969 " char **\n"
20970 " guestfs_zfgrep (guestfs_h *g,\n"
20971 "                 const char *pattern,\n"
20972 "                 const char *path);\n"
20973 "\n"
20974 msgstr ""
20975
20976 # type: textblock
20977 #. type: textblock
20978 #: ../src/guestfs-actions.pod:7606 ../fish/guestfish-actions.pod:5021
20979 msgid ""
20980 "This calls the external C<zfgrep> program and returns the matching lines."
20981 msgstr ""
20982
20983 # type: =head2
20984 #. type: =head2
20985 #: ../src/guestfs-actions.pod:7618
20986 msgid "guestfs_zfgrepi"
20987 msgstr ""
20988
20989 # type: verbatim
20990 #. type: verbatim
20991 #: ../src/guestfs-actions.pod:7620
20992 #, no-wrap
20993 msgid ""
20994 " char **\n"
20995 " guestfs_zfgrepi (guestfs_h *g,\n"
20996 "                  const char *pattern,\n"
20997 "                  const char *path);\n"
20998 "\n"
20999 msgstr ""
21000
21001 # type: textblock
21002 #. type: textblock
21003 #: ../src/guestfs-actions.pod:7625 ../fish/guestfish-actions.pod:5031
21004 msgid ""
21005 "This calls the external C<zfgrep -i> program and returns the matching lines."
21006 msgstr ""
21007
21008 # type: =head2
21009 #. type: =head2
21010 #: ../src/guestfs-actions.pod:7637
21011 msgid "guestfs_zfile"
21012 msgstr ""
21013
21014 # type: verbatim
21015 #. type: verbatim
21016 #: ../src/guestfs-actions.pod:7639
21017 #, no-wrap
21018 msgid ""
21019 " char *\n"
21020 " guestfs_zfile (guestfs_h *g,\n"
21021 "                const char *meth,\n"
21022 "                const char *path);\n"
21023 "\n"
21024 msgstr ""
21025
21026 # type: textblock
21027 #. type: textblock
21028 #: ../src/guestfs-actions.pod:7644 ../fish/guestfish-actions.pod:5041
21029 msgid ""
21030 "This command runs C<file> after first decompressing C<path> using C<method>."
21031 msgstr ""
21032
21033 # type: textblock
21034 #. type: textblock
21035 #: ../src/guestfs-actions.pod:7647 ../fish/guestfish-actions.pod:5044
21036 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
21037 msgstr ""
21038
21039 # type: textblock
21040 #. type: textblock
21041 #: ../src/guestfs-actions.pod:7649
21042 msgid ""
21043 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
21044 "files."
21045 msgstr ""
21046
21047 # type: textblock
21048 #. type: textblock
21049 #: ../src/guestfs-actions.pod:7655 ../fish/guestfish-actions.pod:5049
21050 msgid ""
21051 "This function is deprecated.  In new code, use the C<file> call instead."
21052 msgstr ""
21053
21054 # type: =head2
21055 #. type: =head2
21056 #: ../src/guestfs-actions.pod:7664
21057 msgid "guestfs_zgrep"
21058 msgstr ""
21059
21060 # type: verbatim
21061 #. type: verbatim
21062 #: ../src/guestfs-actions.pod:7666
21063 #, no-wrap
21064 msgid ""
21065 " char **\n"
21066 " guestfs_zgrep (guestfs_h *g,\n"
21067 "                const char *regex,\n"
21068 "                const char *path);\n"
21069 "\n"
21070 msgstr ""
21071
21072 # type: textblock
21073 #. type: textblock
21074 #: ../src/guestfs-actions.pod:7671 ../fish/guestfish-actions.pod:5060
21075 msgid ""
21076 "This calls the external C<zgrep> program and returns the matching lines."
21077 msgstr ""
21078
21079 # type: =head2
21080 #. type: =head2
21081 #: ../src/guestfs-actions.pod:7683
21082 msgid "guestfs_zgrepi"
21083 msgstr ""
21084
21085 # type: verbatim
21086 #. type: verbatim
21087 #: ../src/guestfs-actions.pod:7685
21088 #, no-wrap
21089 msgid ""
21090 " char **\n"
21091 " guestfs_zgrepi (guestfs_h *g,\n"
21092 "                 const char *regex,\n"
21093 "                 const char *path);\n"
21094 "\n"
21095 msgstr ""
21096
21097 # type: textblock
21098 #. type: textblock
21099 #: ../src/guestfs-actions.pod:7690 ../fish/guestfish-actions.pod:5070
21100 msgid ""
21101 "This calls the external C<zgrep -i> program and returns the matching lines."
21102 msgstr ""
21103
21104 # type: =item
21105 #. type: =item
21106 #: ../src/guestfs-availability.pod:3
21107 msgid "B<augeas>"
21108 msgstr ""
21109
21110 # type: textblock
21111 #. type: textblock
21112 #: ../src/guestfs-availability.pod:5
21113 msgid ""
21114 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
21115 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
21116 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
21117 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
21118 "L</guestfs_aug_save> L</guestfs_aug_set>"
21119 msgstr ""
21120
21121 # type: =item
21122 #. type: =item
21123 #: ../src/guestfs-availability.pod:21
21124 msgid "B<inotify>"
21125 msgstr ""
21126
21127 # type: textblock
21128 #. type: textblock
21129 #: ../src/guestfs-availability.pod:23
21130 msgid ""
21131 "The following functions: L</guestfs_inotify_add_watch> L</"
21132 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
21133 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
21134 msgstr ""
21135
21136 # type: =item
21137 #. type: =item
21138 #: ../src/guestfs-availability.pod:31
21139 msgid "B<linuxfsuuid>"
21140 msgstr ""
21141
21142 # type: textblock
21143 #. type: textblock
21144 #: ../src/guestfs-availability.pod:33
21145 msgid ""
21146 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
21147 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
21148 msgstr ""
21149
21150 # type: =item
21151 #. type: =item
21152 #: ../src/guestfs-availability.pod:40
21153 msgid "B<linuxmodules>"
21154 msgstr ""
21155
21156 # type: textblock
21157 #. type: textblock
21158 #: ../src/guestfs-availability.pod:42
21159 msgid "The following functions: L</guestfs_modprobe>"
21160 msgstr ""
21161
21162 # type: =item
21163 #. type: =item
21164 #: ../src/guestfs-availability.pod:45
21165 msgid "B<linuxxattrs>"
21166 msgstr ""
21167
21168 # type: textblock
21169 #. type: textblock
21170 #: ../src/guestfs-availability.pod:47
21171 msgid ""
21172 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
21173 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
21174 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
21175 "guestfs_setxattr>"
21176 msgstr ""
21177
21178 # type: =item
21179 #. type: =item
21180 #: ../src/guestfs-availability.pod:58
21181 msgid "B<luks>"
21182 msgstr ""
21183
21184 # type: textblock
21185 #. type: textblock
21186 #: ../src/guestfs-availability.pod:60
21187 msgid ""
21188 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
21189 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
21190 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
21191 msgstr ""
21192
21193 # type: =item
21194 #. type: =item
21195 #: ../src/guestfs-availability.pod:69
21196 msgid "B<lvm2>"
21197 msgstr ""
21198
21199 # type: textblock
21200 #. type: textblock
21201 #: ../src/guestfs-availability.pod:71
21202 msgid ""
21203 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
21204 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
21205 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
21206 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
21207 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
21208 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
21209 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
21210 msgstr ""
21211
21212 # type: =item
21213 #. type: =item
21214 #: ../src/guestfs-availability.pod:94
21215 msgid "B<mknod>"
21216 msgstr ""
21217
21218 # type: textblock
21219 #. type: textblock
21220 #: ../src/guestfs-availability.pod:96
21221 msgid ""
21222 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
21223 "guestfs_mknod_b> L</guestfs_mknod_c>"
21224 msgstr ""
21225
21226 # type: =item
21227 #. type: =item
21228 #: ../src/guestfs-availability.pod:102
21229 msgid "B<ntfs3g>"
21230 msgstr ""
21231
21232 # type: textblock
21233 #. type: textblock
21234 #: ../src/guestfs-availability.pod:104
21235 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
21236 msgstr ""
21237
21238 # type: =item
21239 #. type: =item
21240 #: ../src/guestfs-availability.pod:107
21241 msgid "B<ntfsprogs>"
21242 msgstr ""
21243
21244 # type: textblock
21245 #. type: textblock
21246 #: ../src/guestfs-availability.pod:109
21247 msgid ""
21248 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
21249 msgstr ""
21250
21251 # type: =item
21252 #. type: =item
21253 #: ../src/guestfs-availability.pod:113
21254 msgid "B<realpath>"
21255 msgstr ""
21256
21257 # type: textblock
21258 #. type: textblock
21259 #: ../src/guestfs-availability.pod:115
21260 msgid "The following functions: L</guestfs_realpath>"
21261 msgstr ""
21262
21263 # type: =item
21264 #. type: =item
21265 #: ../src/guestfs-availability.pod:118
21266 msgid "B<scrub>"
21267 msgstr ""
21268
21269 # type: textblock
21270 #. type: textblock
21271 #: ../src/guestfs-availability.pod:120
21272 msgid ""
21273 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
21274 "guestfs_scrub_freespace>"
21275 msgstr ""
21276
21277 # type: =item
21278 #. type: =item
21279 #: ../src/guestfs-availability.pod:125
21280 msgid "B<selinux>"
21281 msgstr ""
21282
21283 # type: textblock
21284 #. type: textblock
21285 #: ../src/guestfs-availability.pod:127
21286 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
21287 msgstr ""
21288
21289 # type: =item
21290 #. type: =item
21291 #: ../src/guestfs-availability.pod:131
21292 msgid "B<xz>"
21293 msgstr ""
21294
21295 # type: textblock
21296 #. type: textblock
21297 #: ../src/guestfs-availability.pod:133
21298 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
21299 msgstr ""
21300
21301 # type: =item
21302 #. type: =item
21303 #: ../src/guestfs-availability.pod:137
21304 msgid "B<zerofree>"
21305 msgstr ""
21306
21307 # type: textblock
21308 #. type: textblock
21309 #: ../src/guestfs-availability.pod:139
21310 msgid "The following functions: L</guestfs_zerofree>"
21311 msgstr ""
21312
21313 # type: =head2
21314 #. type: =head2
21315 #: ../src/guestfs-structs.pod:1
21316 msgid "guestfs_int_bool"
21317 msgstr ""
21318
21319 # type: verbatim
21320 #. type: verbatim
21321 #: ../src/guestfs-structs.pod:3
21322 #, no-wrap
21323 msgid ""
21324 " struct guestfs_int_bool {\n"
21325 "   int32_t i;\n"
21326 "   int32_t b;\n"
21327 " };\n"
21328 " \n"
21329 msgstr ""
21330
21331 # type: verbatim
21332 #. type: verbatim
21333 #: ../src/guestfs-structs.pod:8
21334 #, no-wrap
21335 msgid ""
21336 " struct guestfs_int_bool_list {\n"
21337 "   uint32_t len; /* Number of elements in list. */\n"
21338 "   struct guestfs_int_bool *val; /* Elements. */\n"
21339 " };\n"
21340 " \n"
21341 msgstr ""
21342
21343 # type: verbatim
21344 #. type: verbatim
21345 #: ../src/guestfs-structs.pod:13
21346 #, no-wrap
21347 msgid ""
21348 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
21349 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
21350 "\n"
21351 msgstr ""
21352
21353 # type: =head2
21354 #. type: =head2
21355 #: ../src/guestfs-structs.pod:16
21356 msgid "guestfs_lvm_pv"
21357 msgstr ""
21358
21359 # type: verbatim
21360 #. type: verbatim
21361 #: ../src/guestfs-structs.pod:18
21362 #, no-wrap
21363 msgid ""
21364 " struct guestfs_lvm_pv {\n"
21365 "   char *pv_name;\n"
21366 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
21367 "   char pv_uuid[32];\n"
21368 "   char *pv_fmt;\n"
21369 "   uint64_t pv_size;\n"
21370 "   uint64_t dev_size;\n"
21371 "   uint64_t pv_free;\n"
21372 "   uint64_t pv_used;\n"
21373 "   char *pv_attr;\n"
21374 "   int64_t pv_pe_count;\n"
21375 "   int64_t pv_pe_alloc_count;\n"
21376 "   char *pv_tags;\n"
21377 "   uint64_t pe_start;\n"
21378 "   int64_t pv_mda_count;\n"
21379 "   uint64_t pv_mda_free;\n"
21380 " };\n"
21381 " \n"
21382 msgstr ""
21383
21384 # type: verbatim
21385 #. type: verbatim
21386 #: ../src/guestfs-structs.pod:36
21387 #, no-wrap
21388 msgid ""
21389 " struct guestfs_lvm_pv_list {\n"
21390 "   uint32_t len; /* Number of elements in list. */\n"
21391 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
21392 " };\n"
21393 " \n"
21394 msgstr ""
21395
21396 # type: verbatim
21397 #. type: verbatim
21398 #: ../src/guestfs-structs.pod:41
21399 #, no-wrap
21400 msgid ""
21401 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
21402 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
21403 "\n"
21404 msgstr ""
21405
21406 # type: =head2
21407 #. type: =head2
21408 #: ../src/guestfs-structs.pod:44
21409 msgid "guestfs_lvm_vg"
21410 msgstr ""
21411
21412 # type: verbatim
21413 #. type: verbatim
21414 #: ../src/guestfs-structs.pod:46
21415 #, no-wrap
21416 msgid ""
21417 " struct guestfs_lvm_vg {\n"
21418 "   char *vg_name;\n"
21419 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
21420 "   char vg_uuid[32];\n"
21421 "   char *vg_fmt;\n"
21422 "   char *vg_attr;\n"
21423 "   uint64_t vg_size;\n"
21424 "   uint64_t vg_free;\n"
21425 "   char *vg_sysid;\n"
21426 "   uint64_t vg_extent_size;\n"
21427 "   int64_t vg_extent_count;\n"
21428 "   int64_t vg_free_count;\n"
21429 "   int64_t max_lv;\n"
21430 "   int64_t max_pv;\n"
21431 "   int64_t pv_count;\n"
21432 "   int64_t lv_count;\n"
21433 "   int64_t snap_count;\n"
21434 "   int64_t vg_seqno;\n"
21435 "   char *vg_tags;\n"
21436 "   int64_t vg_mda_count;\n"
21437 "   uint64_t vg_mda_free;\n"
21438 " };\n"
21439 " \n"
21440 msgstr ""
21441
21442 # type: verbatim
21443 #. type: verbatim
21444 #: ../src/guestfs-structs.pod:69
21445 #, no-wrap
21446 msgid ""
21447 " struct guestfs_lvm_vg_list {\n"
21448 "   uint32_t len; /* Number of elements in list. */\n"
21449 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
21450 " };\n"
21451 " \n"
21452 msgstr ""
21453
21454 # type: verbatim
21455 #. type: verbatim
21456 #: ../src/guestfs-structs.pod:74
21457 #, no-wrap
21458 msgid ""
21459 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
21460 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
21461 "\n"
21462 msgstr ""
21463
21464 # type: =head2
21465 #. type: =head2
21466 #: ../src/guestfs-structs.pod:77
21467 msgid "guestfs_lvm_lv"
21468 msgstr ""
21469
21470 # type: verbatim
21471 #. type: verbatim
21472 #: ../src/guestfs-structs.pod:79
21473 #, no-wrap
21474 msgid ""
21475 " struct guestfs_lvm_lv {\n"
21476 "   char *lv_name;\n"
21477 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
21478 "   char lv_uuid[32];\n"
21479 "   char *lv_attr;\n"
21480 "   int64_t lv_major;\n"
21481 "   int64_t lv_minor;\n"
21482 "   int64_t lv_kernel_major;\n"
21483 "   int64_t lv_kernel_minor;\n"
21484 "   uint64_t lv_size;\n"
21485 "   int64_t seg_count;\n"
21486 "   char *origin;\n"
21487 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
21488 "   float snap_percent;\n"
21489 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
21490 "   float copy_percent;\n"
21491 "   char *move_pv;\n"
21492 "   char *lv_tags;\n"
21493 "   char *mirror_log;\n"
21494 "   char *modules;\n"
21495 " };\n"
21496 " \n"
21497 msgstr ""
21498
21499 # type: verbatim
21500 #. type: verbatim
21501 #: ../src/guestfs-structs.pod:101
21502 #, no-wrap
21503 msgid ""
21504 " struct guestfs_lvm_lv_list {\n"
21505 "   uint32_t len; /* Number of elements in list. */\n"
21506 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
21507 " };\n"
21508 " \n"
21509 msgstr ""
21510
21511 # type: verbatim
21512 #. type: verbatim
21513 #: ../src/guestfs-structs.pod:106
21514 #, no-wrap
21515 msgid ""
21516 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
21517 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
21518 "\n"
21519 msgstr ""
21520
21521 # type: verbatim
21522 #. type: verbatim
21523 #: ../src/guestfs-structs.pod:111
21524 #, no-wrap
21525 msgid ""
21526 " struct guestfs_stat {\n"
21527 "   int64_t dev;\n"
21528 "   int64_t ino;\n"
21529 "   int64_t mode;\n"
21530 "   int64_t nlink;\n"
21531 "   int64_t uid;\n"
21532 "   int64_t gid;\n"
21533 "   int64_t rdev;\n"
21534 "   int64_t size;\n"
21535 "   int64_t blksize;\n"
21536 "   int64_t blocks;\n"
21537 "   int64_t atime;\n"
21538 "   int64_t mtime;\n"
21539 "   int64_t ctime;\n"
21540 " };\n"
21541 " \n"
21542 msgstr ""
21543
21544 # type: verbatim
21545 #. type: verbatim
21546 #: ../src/guestfs-structs.pod:127
21547 #, no-wrap
21548 msgid ""
21549 " struct guestfs_stat_list {\n"
21550 "   uint32_t len; /* Number of elements in list. */\n"
21551 "   struct guestfs_stat *val; /* Elements. */\n"
21552 " };\n"
21553 " \n"
21554 msgstr ""
21555
21556 # type: verbatim
21557 #. type: verbatim
21558 #: ../src/guestfs-structs.pod:132
21559 #, no-wrap
21560 msgid ""
21561 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
21562 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
21563 "\n"
21564 msgstr ""
21565
21566 # type: verbatim
21567 #. type: verbatim
21568 #: ../src/guestfs-structs.pod:137
21569 #, no-wrap
21570 msgid ""
21571 " struct guestfs_statvfs {\n"
21572 "   int64_t bsize;\n"
21573 "   int64_t frsize;\n"
21574 "   int64_t blocks;\n"
21575 "   int64_t bfree;\n"
21576 "   int64_t bavail;\n"
21577 "   int64_t files;\n"
21578 "   int64_t ffree;\n"
21579 "   int64_t favail;\n"
21580 "   int64_t fsid;\n"
21581 "   int64_t flag;\n"
21582 "   int64_t namemax;\n"
21583 " };\n"
21584 " \n"
21585 msgstr ""
21586
21587 # type: verbatim
21588 #. type: verbatim
21589 #: ../src/guestfs-structs.pod:151
21590 #, no-wrap
21591 msgid ""
21592 " struct guestfs_statvfs_list {\n"
21593 "   uint32_t len; /* Number of elements in list. */\n"
21594 "   struct guestfs_statvfs *val; /* Elements. */\n"
21595 " };\n"
21596 " \n"
21597 msgstr ""
21598
21599 # type: verbatim
21600 #. type: verbatim
21601 #: ../src/guestfs-structs.pod:156
21602 #, no-wrap
21603 msgid ""
21604 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
21605 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
21606 "\n"
21607 msgstr ""
21608
21609 # type: =head2
21610 #. type: =head2
21611 #: ../src/guestfs-structs.pod:159
21612 msgid "guestfs_dirent"
21613 msgstr ""
21614
21615 # type: verbatim
21616 #. type: verbatim
21617 #: ../src/guestfs-structs.pod:161
21618 #, no-wrap
21619 msgid ""
21620 " struct guestfs_dirent {\n"
21621 "   int64_t ino;\n"
21622 "   char ftyp;\n"
21623 "   char *name;\n"
21624 " };\n"
21625 " \n"
21626 msgstr ""
21627
21628 # type: verbatim
21629 #. type: verbatim
21630 #: ../src/guestfs-structs.pod:167
21631 #, no-wrap
21632 msgid ""
21633 " struct guestfs_dirent_list {\n"
21634 "   uint32_t len; /* Number of elements in list. */\n"
21635 "   struct guestfs_dirent *val; /* Elements. */\n"
21636 " };\n"
21637 " \n"
21638 msgstr ""
21639
21640 # type: verbatim
21641 #. type: verbatim
21642 #: ../src/guestfs-structs.pod:172
21643 #, no-wrap
21644 msgid ""
21645 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
21646 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
21647 "\n"
21648 msgstr ""
21649
21650 # type: verbatim
21651 #. type: verbatim
21652 #: ../src/guestfs-structs.pod:177
21653 #, no-wrap
21654 msgid ""
21655 " struct guestfs_version {\n"
21656 "   int64_t major;\n"
21657 "   int64_t minor;\n"
21658 "   int64_t release;\n"
21659 "   char *extra;\n"
21660 " };\n"
21661 " \n"
21662 msgstr ""
21663
21664 # type: verbatim
21665 #. type: verbatim
21666 #: ../src/guestfs-structs.pod:184
21667 #, no-wrap
21668 msgid ""
21669 " struct guestfs_version_list {\n"
21670 "   uint32_t len; /* Number of elements in list. */\n"
21671 "   struct guestfs_version *val; /* Elements. */\n"
21672 " };\n"
21673 " \n"
21674 msgstr ""
21675
21676 # type: verbatim
21677 #. type: verbatim
21678 #: ../src/guestfs-structs.pod:189
21679 #, no-wrap
21680 msgid ""
21681 " void guestfs_free_version (struct guestfs_free_version *);\n"
21682 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
21683 "\n"
21684 msgstr ""
21685
21686 # type: =head2
21687 #. type: =head2
21688 #: ../src/guestfs-structs.pod:192
21689 msgid "guestfs_xattr"
21690 msgstr ""
21691
21692 # type: verbatim
21693 #. type: verbatim
21694 #: ../src/guestfs-structs.pod:194
21695 #, no-wrap
21696 msgid ""
21697 " struct guestfs_xattr {\n"
21698 "   char *attrname;\n"
21699 "   /* The next two fields describe a byte array. */\n"
21700 "   uint32_t attrval_len;\n"
21701 "   char *attrval;\n"
21702 " };\n"
21703 " \n"
21704 msgstr ""
21705
21706 # type: verbatim
21707 #. type: verbatim
21708 #: ../src/guestfs-structs.pod:201
21709 #, no-wrap
21710 msgid ""
21711 " struct guestfs_xattr_list {\n"
21712 "   uint32_t len; /* Number of elements in list. */\n"
21713 "   struct guestfs_xattr *val; /* Elements. */\n"
21714 " };\n"
21715 " \n"
21716 msgstr ""
21717
21718 # type: verbatim
21719 #. type: verbatim
21720 #: ../src/guestfs-structs.pod:206
21721 #, no-wrap
21722 msgid ""
21723 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
21724 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
21725 "\n"
21726 msgstr ""
21727
21728 # type: =head2
21729 #. type: =head2
21730 #: ../src/guestfs-structs.pod:209
21731 msgid "guestfs_inotify_event"
21732 msgstr ""
21733
21734 # type: verbatim
21735 #. type: verbatim
21736 #: ../src/guestfs-structs.pod:211
21737 #, no-wrap
21738 msgid ""
21739 " struct guestfs_inotify_event {\n"
21740 "   int64_t in_wd;\n"
21741 "   uint32_t in_mask;\n"
21742 "   uint32_t in_cookie;\n"
21743 "   char *in_name;\n"
21744 " };\n"
21745 " \n"
21746 msgstr ""
21747
21748 # type: verbatim
21749 #. type: verbatim
21750 #: ../src/guestfs-structs.pod:218
21751 #, no-wrap
21752 msgid ""
21753 " struct guestfs_inotify_event_list {\n"
21754 "   uint32_t len; /* Number of elements in list. */\n"
21755 "   struct guestfs_inotify_event *val; /* Elements. */\n"
21756 " };\n"
21757 " \n"
21758 msgstr ""
21759
21760 # type: verbatim
21761 #. type: verbatim
21762 #: ../src/guestfs-structs.pod:223
21763 #, no-wrap
21764 msgid ""
21765 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
21766 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
21767 "\n"
21768 msgstr ""
21769
21770 # type: =head2
21771 #. type: =head2
21772 #: ../src/guestfs-structs.pod:226
21773 msgid "guestfs_partition"
21774 msgstr ""
21775
21776 # type: verbatim
21777 #. type: verbatim
21778 #: ../src/guestfs-structs.pod:228
21779 #, no-wrap
21780 msgid ""
21781 " struct guestfs_partition {\n"
21782 "   int32_t part_num;\n"
21783 "   uint64_t part_start;\n"
21784 "   uint64_t part_end;\n"
21785 "   uint64_t part_size;\n"
21786 " };\n"
21787 " \n"
21788 msgstr ""
21789
21790 # type: verbatim
21791 #. type: verbatim
21792 #: ../src/guestfs-structs.pod:235
21793 #, no-wrap
21794 msgid ""
21795 " struct guestfs_partition_list {\n"
21796 "   uint32_t len; /* Number of elements in list. */\n"
21797 "   struct guestfs_partition *val; /* Elements. */\n"
21798 " };\n"
21799 " \n"
21800 msgstr ""
21801
21802 # type: verbatim
21803 #. type: verbatim
21804 #: ../src/guestfs-structs.pod:240
21805 #, no-wrap
21806 msgid ""
21807 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
21808 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
21809 "\n"
21810 msgstr ""
21811
21812 # type: =head2
21813 #. type: =head2
21814 #: ../src/guestfs-structs.pod:243
21815 msgid "guestfs_application"
21816 msgstr ""
21817
21818 # type: verbatim
21819 #. type: verbatim
21820 #: ../src/guestfs-structs.pod:245
21821 #, no-wrap
21822 msgid ""
21823 " struct guestfs_application {\n"
21824 "   char *app_name;\n"
21825 "   char *app_display_name;\n"
21826 "   int32_t app_epoch;\n"
21827 "   char *app_version;\n"
21828 "   char *app_release;\n"
21829 "   char *app_install_path;\n"
21830 "   char *app_trans_path;\n"
21831 "   char *app_publisher;\n"
21832 "   char *app_url;\n"
21833 "   char *app_source_package;\n"
21834 "   char *app_summary;\n"
21835 "   char *app_description;\n"
21836 " };\n"
21837 " \n"
21838 msgstr ""
21839
21840 # type: verbatim
21841 #. type: verbatim
21842 #: ../src/guestfs-structs.pod:260
21843 #, no-wrap
21844 msgid ""
21845 " struct guestfs_application_list {\n"
21846 "   uint32_t len; /* Number of elements in list. */\n"
21847 "   struct guestfs_application *val; /* Elements. */\n"
21848 " };\n"
21849 " \n"
21850 msgstr ""
21851
21852 # type: verbatim
21853 #. type: verbatim
21854 #: ../src/guestfs-structs.pod:265
21855 #, no-wrap
21856 msgid ""
21857 " void guestfs_free_application (struct guestfs_free_application *);\n"
21858 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
21859 "\n"
21860 msgstr ""
21861
21862 # type: textblock
21863 #. type: textblock
21864 #: ../fish/guestfish.pod:5
21865 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
21866 msgstr ""
21867
21868 # type: verbatim
21869 #. type: verbatim
21870 #: ../fish/guestfish.pod:9
21871 #, no-wrap
21872 msgid ""
21873 " guestfish [--options] [commands]\n"
21874 "\n"
21875 msgstr ""
21876
21877 # type: verbatim
21878 #. type: verbatim
21879 #: ../fish/guestfish.pod:11
21880 #, no-wrap
21881 msgid ""
21882 " guestfish\n"
21883 "\n"
21884 msgstr ""
21885
21886 # type: verbatim
21887 #. type: verbatim
21888 #: ../fish/guestfish.pod:13
21889 #, no-wrap
21890 msgid ""
21891 " guestfish [--ro|--rw] -a disk.img\n"
21892 "\n"
21893 msgstr ""
21894
21895 # type: verbatim
21896 #. type: verbatim
21897 #: ../fish/guestfish.pod:15
21898 #, no-wrap
21899 msgid ""
21900 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
21901 "\n"
21902 msgstr ""
21903
21904 # type: verbatim
21905 #. type: verbatim
21906 #: ../fish/guestfish.pod:17
21907 #, no-wrap
21908 msgid ""
21909 " guestfish -d libvirt-domain\n"
21910 "\n"
21911 msgstr ""
21912
21913 # type: verbatim
21914 #. type: verbatim
21915 #: ../fish/guestfish.pod:19
21916 #, no-wrap
21917 msgid ""
21918 " guestfish [--ro|--rw] -a disk.img -i\n"
21919 "\n"
21920 msgstr ""
21921
21922 # type: verbatim
21923 #. type: verbatim
21924 #: ../fish/guestfish.pod:21
21925 #, no-wrap
21926 msgid ""
21927 " guestfish -d libvirt-domain -i\n"
21928 "\n"
21929 msgstr ""
21930
21931 # type: =head1
21932 #. type: =head1
21933 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15
21934 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:64
21935 msgid "WARNING"
21936 msgstr ""
21937
21938 # type: textblock
21939 #. type: textblock
21940 #: ../fish/guestfish.pod:25
21941 msgid ""
21942 "Using guestfish in read/write mode on live virtual machines can be "
21943 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
21944 "option to use guestfish safely if the disk image or virtual machine might be "
21945 "live."
21946 msgstr ""
21947
21948 # type: textblock
21949 #. type: textblock
21950 #: ../fish/guestfish.pod:32
21951 msgid ""
21952 "Guestfish is a shell and command-line tool for examining and modifying "
21953 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
21954 "functionality of the guestfs API, see L<guestfs(3)>."
21955 msgstr ""
21956
21957 # type: textblock
21958 #. type: textblock
21959 #: ../fish/guestfish.pod:36
21960 msgid ""
21961 "Guestfish gives you structured access to the libguestfs API, from shell "
21962 "scripts or the command line or interactively.  If you want to rescue a "
21963 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
21964 "command."
21965 msgstr ""
21966
21967 # type: =head1
21968 #. type: =head1
21969 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:949
21970 #: ../fuse/guestmount.pod:39 ../tools/virt-tar.pl:50
21971 msgid "EXAMPLES"
21972 msgstr ""
21973
21974 # type: =head2
21975 #. type: =head2
21976 #: ../fish/guestfish.pod:43
21977 msgid "As an interactive shell"
21978 msgstr ""
21979
21980 # type: verbatim
21981 #. type: verbatim
21982 #: ../fish/guestfish.pod:45
21983 #, no-wrap
21984 msgid ""
21985 " $ guestfish\n"
21986 " \n"
21987 msgstr ""
21988
21989 # type: verbatim
21990 #. type: verbatim
21991 #: ../fish/guestfish.pod:47
21992 #, no-wrap
21993 msgid ""
21994 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
21995 " editing virtual machine filesystems.\n"
21996 " \n"
21997 msgstr ""
21998
21999 # type: verbatim
22000 #. type: verbatim
22001 #: ../fish/guestfish.pod:50
22002 #, no-wrap
22003 msgid ""
22004 " Type: 'help' for a list of commands\n"
22005 "       'man' to read the manual\n"
22006 "       'quit' to quit the shell\n"
22007 " \n"
22008 msgstr ""
22009
22010 # type: verbatim
22011 #. type: verbatim
22012 #: ../fish/guestfish.pod:54
22013 #, no-wrap
22014 msgid ""
22015 " ><fs> add-ro disk.img\n"
22016 " ><fs> run\n"
22017 " ><fs> list-filesystems\n"
22018 " /dev/sda1: ext4\n"
22019 " /dev/vg_guest/lv_root: ext4\n"
22020 " /dev/vg_guest/lv_swap: swap\n"
22021 " ><fs> mount /dev/vg_guest/lv_root /\n"
22022 " ><fs> cat /etc/fstab\n"
22023 " # /etc/fstab\n"
22024 " # Created by anaconda\n"
22025 " [...]\n"
22026 " ><fs> exit\n"
22027 "\n"
22028 msgstr ""
22029
22030 # type: =head2
22031 #. type: =head2
22032 #: ../fish/guestfish.pod:67
22033 msgid "From shell scripts"
22034 msgstr ""
22035
22036 # type: textblock
22037 #. type: textblock
22038 #: ../fish/guestfish.pod:69
22039 msgid "Create a new C</etc/motd> file in a guest or disk image:"
22040 msgstr ""
22041
22042 # type: verbatim
22043 #. type: verbatim
22044 #: ../fish/guestfish.pod:71
22045 #, no-wrap
22046 msgid ""
22047 " guestfish <<_EOF_\n"
22048 " add disk.img\n"
22049 " run\n"
22050 " mount /dev/vg_guest/lv_root /\n"
22051 " write /etc/motd \"Welcome, new users\"\n"
22052 " _EOF_\n"
22053 "\n"
22054 msgstr ""
22055
22056 # type: textblock
22057 #. type: textblock
22058 #: ../fish/guestfish.pod:78
22059 msgid "List the LVM logical volumes in a disk image:"
22060 msgstr ""
22061
22062 # type: verbatim
22063 #. type: verbatim
22064 #: ../fish/guestfish.pod:80
22065 #, no-wrap
22066 msgid ""
22067 " guestfish -a disk.img --ro <<_EOF_\n"
22068 " run\n"
22069 " lvs\n"
22070 " _EOF_\n"
22071 "\n"
22072 msgstr ""
22073
22074 # type: textblock
22075 #. type: textblock
22076 #: ../fish/guestfish.pod:85
22077 msgid "List all the filesystems in a disk image:"
22078 msgstr ""
22079
22080 # type: verbatim
22081 #. type: verbatim
22082 #: ../fish/guestfish.pod:87
22083 #, no-wrap
22084 msgid ""
22085 " guestfish -a disk.img --ro <<_EOF_\n"
22086 " run\n"
22087 " list-filesystems\n"
22088 " _EOF_\n"
22089 "\n"
22090 msgstr ""
22091
22092 # type: =head2
22093 #. type: =head2
22094 #: ../fish/guestfish.pod:92
22095 msgid "On one command line"
22096 msgstr ""
22097
22098 # type: textblock
22099 #. type: textblock
22100 #: ../fish/guestfish.pod:94
22101 msgid "Update C</etc/resolv.conf> in a guest:"
22102 msgstr ""
22103
22104 # type: verbatim
22105 #. type: verbatim
22106 #: ../fish/guestfish.pod:96
22107 #, no-wrap
22108 msgid ""
22109 " guestfish \\\n"
22110 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
22111 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
22112 "\n"
22113 msgstr ""
22114
22115 # type: textblock
22116 #. type: textblock
22117 #: ../fish/guestfish.pod:100
22118 msgid "Edit C</boot/grub/grub.conf> interactively:"
22119 msgstr ""
22120
22121 # type: verbatim
22122 #. type: verbatim
22123 #: ../fish/guestfish.pod:102
22124 #, no-wrap
22125 msgid ""
22126 " guestfish --rw --add disk.img \\\n"
22127 "   --mount /dev/vg_guest/lv_root \\\n"
22128 "   --mount /dev/sda1:/boot \\\n"
22129 "   edit /boot/grub/grub.conf\n"
22130 "\n"
22131 msgstr ""
22132
22133 # type: =head2
22134 #. type: =head2
22135 #: ../fish/guestfish.pod:107
22136 msgid "Mount disks automatically"
22137 msgstr ""
22138
22139 # type: textblock
22140 #. type: textblock
22141 #: ../fish/guestfish.pod:109
22142 msgid ""
22143 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
22144 msgstr ""
22145
22146 # type: verbatim
22147 #. type: verbatim
22148 #: ../fish/guestfish.pod:112
22149 #, no-wrap
22150 msgid ""
22151 " guestfish --ro -a disk.img -i cat /etc/group\n"
22152 "\n"
22153 msgstr ""
22154
22155 # type: verbatim
22156 #. type: verbatim
22157 #: ../fish/guestfish.pod:114
22158 #, no-wrap
22159 msgid ""
22160 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
22161 "\n"
22162 msgstr ""
22163
22164 # type: textblock
22165 #. type: textblock
22166 #: ../fish/guestfish.pod:116
22167 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
22168 msgstr ""
22169
22170 # type: verbatim
22171 #. type: verbatim
22172 #: ../fish/guestfish.pod:118
22173 #, no-wrap
22174 msgid ""
22175 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
22176 "\n"
22177 msgstr ""
22178
22179 # type: =head2
22180 #. type: =head2
22181 #: ../fish/guestfish.pod:120
22182 msgid "As a script interpreter"
22183 msgstr ""
22184
22185 # type: textblock
22186 #. type: textblock
22187 #: ../fish/guestfish.pod:122
22188 msgid "Create a 100MB disk containing an ext2-formatted partition:"
22189 msgstr ""
22190
22191 # type: verbatim
22192 #. type: verbatim
22193 #: ../fish/guestfish.pod:124
22194 #, no-wrap
22195 msgid ""
22196 " #!/usr/bin/guestfish -f\n"
22197 " sparse test1.img 100M\n"
22198 " run\n"
22199 " part-disk /dev/sda mbr\n"
22200 " mkfs ext2 /dev/sda1\n"
22201 "\n"
22202 msgstr ""
22203
22204 # type: =head2
22205 #. type: =head2
22206 #: ../fish/guestfish.pod:130
22207 msgid "Start with a prepared disk"
22208 msgstr ""
22209
22210 # type: textblock
22211 #. type: textblock
22212 #: ../fish/guestfish.pod:132
22213 msgid ""
22214 "An alternate way to create a 100MB disk called C<test1.img> containing a "
22215 "single ext2-formatted partition:"
22216 msgstr ""
22217
22218 # type: verbatim
22219 #. type: verbatim
22220 #: ../fish/guestfish.pod:135
22221 #, no-wrap
22222 msgid ""
22223 " guestfish -N fs\n"
22224 "\n"
22225 msgstr ""
22226
22227 # type: textblock
22228 #. type: textblock
22229 #: ../fish/guestfish.pod:137
22230 msgid "To list what is available do:"
22231 msgstr ""
22232
22233 # type: verbatim
22234 #. type: verbatim
22235 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:940
22236 #, no-wrap
22237 msgid ""
22238 " guestfish -N help | less\n"
22239 "\n"
22240 msgstr ""
22241
22242 # type: =head2
22243 #. type: =head2
22244 #: ../fish/guestfish.pod:141
22245 msgid "Remote control"
22246 msgstr ""
22247
22248 # type: verbatim
22249 #. type: verbatim
22250 #: ../fish/guestfish.pod:143
22251 #, no-wrap
22252 msgid ""
22253 " eval \"`guestfish --listen`\"\n"
22254 " guestfish --remote add-ro disk.img\n"
22255 " guestfish --remote run\n"
22256 " guestfish --remote lvs\n"
22257 "\n"
22258 msgstr ""
22259
22260 # type: =head1
22261 #. type: =head1
22262 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
22263 #: ../fuse/guestmount.pod:83 ../tools/virt-win-reg.pl:96
22264 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:103
22265 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
22266 msgid "OPTIONS"
22267 msgstr ""
22268
22269 # type: =item
22270 #. type: =item
22271 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:143
22272 #: ../tools/virt-win-reg.pl:104 ../tools/virt-list-filesystems.pl:61
22273 #: ../tools/virt-tar.pl:111 ../tools/virt-make-fs.pl:161
22274 #: ../tools/virt-list-partitions.pl:62
22275 msgid "B<--help>"
22276 msgstr ""
22277
22278 # type: textblock
22279 #. type: textblock
22280 #: ../fish/guestfish.pod:154
22281 msgid "Displays general help on options."
22282 msgstr ""
22283
22284 # type: =item
22285 #. type: =item
22286 #: ../fish/guestfish.pod:156
22287 msgid "B<-h>"
22288 msgstr ""
22289
22290 # type: =item
22291 #. type: =item
22292 #: ../fish/guestfish.pod:158
22293 msgid "B<--cmd-help>"
22294 msgstr ""
22295
22296 # type: textblock
22297 #. type: textblock
22298 #: ../fish/guestfish.pod:160
22299 msgid "Lists all available guestfish commands."
22300 msgstr ""
22301
22302 # type: =item
22303 #. type: =item
22304 #: ../fish/guestfish.pod:162
22305 msgid "B<-h cmd>"
22306 msgstr ""
22307
22308 # type: =item
22309 #. type: =item
22310 #: ../fish/guestfish.pod:164
22311 msgid "B<--cmd-help cmd>"
22312 msgstr ""
22313
22314 # type: textblock
22315 #. type: textblock
22316 #: ../fish/guestfish.pod:166
22317 msgid "Displays detailed help on a single command C<cmd>."
22318 msgstr ""
22319
22320 # type: =item
22321 #. type: =item
22322 #: ../fish/guestfish.pod:168
22323 msgid "B<-a image>"
22324 msgstr ""
22325
22326 # type: =item
22327 #. type: =item
22328 #: ../fish/guestfish.pod:170
22329 msgid "B<--add image>"
22330 msgstr ""
22331
22332 # type: textblock
22333 #. type: textblock
22334 #: ../fish/guestfish.pod:172
22335 msgid "Add a block device or virtual machine image to the shell."
22336 msgstr ""
22337
22338 # type: textblock
22339 #. type: textblock
22340 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:91
22341 msgid ""
22342 "The format of the disk image is auto-detected.  To override this and force a "
22343 "particular format use the I<--format=..> option."
22344 msgstr ""
22345
22346 #. type: textblock
22347 #: ../fish/guestfish.pod:177
22348 msgid ""
22349 "Using this flag is mostly equivalent to using the C<add> command, with "
22350 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
22351 "the I<--format=...> flag was given."
22352 msgstr ""
22353
22354 # type: =item
22355 #. type: =item
22356 #: ../fish/guestfish.pod:181
22357 msgid "B<-c URI>"
22358 msgstr ""
22359
22360 # type: =item
22361 #. type: =item
22362 #: ../fish/guestfish.pod:183
22363 msgid "B<--connect URI>"
22364 msgstr ""
22365
22366 # type: textblock
22367 #. type: textblock
22368 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:96
22369 msgid ""
22370 "When used in conjunction with the I<-d> option, this specifies the libvirt "
22371 "URI to use.  The default is to use the default libvirt connection."
22372 msgstr ""
22373
22374 # type: =item
22375 #. type: =item
22376 #: ../fish/guestfish.pod:189
22377 msgid "B<--csh>"
22378 msgstr ""
22379
22380 # type: textblock
22381 #. type: textblock
22382 #: ../fish/guestfish.pod:191
22383 msgid ""
22384 "If using the I<--listen> option and a csh-like shell, use this option.  See "
22385 "section L</REMOTE CONTROL AND CSH> below."
22386 msgstr ""
22387
22388 # type: =item
22389 #. type: =item
22390 #: ../fish/guestfish.pod:194
22391 msgid "B<-d libvirt-domain>"
22392 msgstr ""
22393
22394 # type: =item
22395 #. type: =item
22396 #: ../fish/guestfish.pod:196
22397 msgid "B<--domain libvirt-domain>"
22398 msgstr ""
22399
22400 # type: textblock
22401 #. type: textblock
22402 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:102
22403 msgid ""
22404 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
22405 "used, then any libvirt domain can be used.  However in write mode, only "
22406 "libvirt domains which are shut down can be named here."
22407 msgstr ""
22408
22409 #. type: textblock
22410 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:106
22411 msgid "Domain UUIDs can be used instead of names."
22412 msgstr ""
22413
22414 # type: textblock
22415 #. type: textblock
22416 #: ../fish/guestfish.pod:204
22417 msgid ""
22418 "Using this flag is mostly equivalent to using the C<add-domain> command, "
22419 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
22420 "if the I<--format:...> flag was given."
22421 msgstr ""
22422
22423 # type: =item
22424 #. type: =item
22425 #: ../fish/guestfish.pod:208
22426 msgid "B<-D>"
22427 msgstr ""
22428
22429 # type: =item
22430 #. type: =item
22431 #: ../fish/guestfish.pod:210
22432 msgid "B<--no-dest-paths>"
22433 msgstr ""
22434
22435 # type: textblock
22436 #. type: textblock
22437 #: ../fish/guestfish.pod:212
22438 msgid ""
22439 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
22440 "to hit the tab key to complete paths on the guest filesystem, but this "
22441 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
22442 "allow this feature to be disabled."
22443 msgstr ""
22444
22445 # type: =item
22446 #. type: =item
22447 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:120
22448 msgid "B<--echo-keys>"
22449 msgstr ""
22450
22451 # type: textblock
22452 #. type: textblock
22453 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:122
22454 msgid ""
22455 "When prompting for keys and passphrases, guestfish normally turns echoing "
22456 "off so you cannot see what you are typing.  If you are not worried about "
22457 "Tempest attacks and there is no one else in the room you can specify this "
22458 "flag to see what you are typing."
22459 msgstr ""
22460
22461 # type: =item
22462 #. type: =item
22463 #: ../fish/guestfish.pod:224
22464 msgid "B<-f file>"
22465 msgstr ""
22466
22467 # type: =item
22468 #. type: =item
22469 #: ../fish/guestfish.pod:226
22470 msgid "B<--file file>"
22471 msgstr ""
22472
22473 # type: textblock
22474 #. type: textblock
22475 #: ../fish/guestfish.pod:228
22476 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
22477 msgstr ""
22478
22479 # type: verbatim
22480 #. type: verbatim
22481 #: ../fish/guestfish.pod:231
22482 #, no-wrap
22483 msgid ""
22484 " #!/usr/bin/guestfish -f\n"
22485 "\n"
22486 msgstr ""
22487
22488 # type: =item
22489 #. type: =item
22490 #: ../fish/guestfish.pod:233
22491 msgid "B<--format=raw|qcow2|..>"
22492 msgstr ""
22493
22494 # type: =item
22495 #. type: =item
22496 #: ../fish/guestfish.pod:235
22497 msgid "B<--format>"
22498 msgstr ""
22499
22500 # type: textblock
22501 #. type: textblock
22502 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:129
22503 msgid ""
22504 "The default for the I<-a> option is to auto-detect the format of the disk "
22505 "image.  Using this forces the disk format for I<-a> options which follow on "
22506 "the command line.  Using I<--format> with no argument switches back to auto-"
22507 "detection for subsequent I<-a> options."
22508 msgstr ""
22509
22510 # type: verbatim
22511 #. type: verbatim
22512 #: ../fish/guestfish.pod:244
22513 #, no-wrap
22514 msgid ""
22515 " guestfish --format=raw -a disk.img\n"
22516 "\n"
22517 msgstr ""
22518
22519 # type: textblock
22520 #. type: textblock
22521 #: ../fish/guestfish.pod:246
22522 msgid "forces raw format (no auto-detection) for C<disk.img>."
22523 msgstr ""
22524
22525 # type: verbatim
22526 #. type: verbatim
22527 #: ../fish/guestfish.pod:248
22528 #, no-wrap
22529 msgid ""
22530 " guestfish --format=raw -a disk.img --format -a another.img\n"
22531 "\n"
22532 msgstr ""
22533
22534 # type: textblock
22535 #. type: textblock
22536 #: ../fish/guestfish.pod:250
22537 msgid ""
22538 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
22539 "detection for C<another.img>."
22540 msgstr ""
22541
22542 # type: textblock
22543 #. type: textblock
22544 #: ../fish/guestfish.pod:253
22545 msgid ""
22546 "If you have untrusted raw-format guest disk images, you should use this "
22547 "option to specify the disk format.  This avoids a possible security problem "
22548 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
22549 msgstr ""
22550
22551 # type: =item
22552 #. type: =item
22553 #: ../fish/guestfish.pod:258
22554 msgid "B<-i>"
22555 msgstr ""
22556
22557 # type: =item
22558 #. type: =item
22559 #: ../fish/guestfish.pod:260
22560 msgid "B<--inspector>"
22561 msgstr ""
22562
22563 # type: textblock
22564 #. type: textblock
22565 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:149
22566 msgid ""
22567 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
22568 "system and mount filesystems as they would be mounted on the real virtual "
22569 "machine."
22570 msgstr ""
22571
22572 # type: textblock
22573 #. type: textblock
22574 #: ../fish/guestfish.pod:266
22575 msgid "Typical usage is either:"
22576 msgstr ""
22577
22578 # type: verbatim
22579 #. type: verbatim
22580 #: ../fish/guestfish.pod:268
22581 #, no-wrap
22582 msgid ""
22583 " guestfish -d myguest -i\n"
22584 "\n"
22585 msgstr ""
22586
22587 # type: textblock
22588 #. type: textblock
22589 #: ../fish/guestfish.pod:270
22590 msgid "(for an inactive libvirt domain called I<myguest>), or:"
22591 msgstr ""
22592
22593 # type: verbatim
22594 #. type: verbatim
22595 #: ../fish/guestfish.pod:272
22596 #, no-wrap
22597 msgid ""
22598 " guestfish --ro -d myguest -i\n"
22599 "\n"
22600 msgstr ""
22601
22602 # type: textblock
22603 #. type: textblock
22604 #: ../fish/guestfish.pod:274
22605 msgid "(for active domains, readonly), or specify the block device directly:"
22606 msgstr ""
22607
22608 # type: verbatim
22609 #. type: verbatim
22610 #: ../fish/guestfish.pod:276
22611 #, no-wrap
22612 msgid ""
22613 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
22614 "\n"
22615 msgstr ""
22616
22617 # type: textblock
22618 #. type: textblock
22619 #: ../fish/guestfish.pod:278
22620 msgid ""
22621 "Note that the command line syntax changed slightly over older versions of "
22622 "guestfish.  You can still use the old syntax:"
22623 msgstr ""
22624
22625 # type: verbatim
22626 #. type: verbatim
22627 #: ../fish/guestfish.pod:281
22628 #, no-wrap
22629 msgid ""
22630 " guestfish [--ro] -i disk.img\n"
22631 "\n"
22632 msgstr ""
22633
22634 # type: verbatim
22635 #. type: verbatim
22636 #: ../fish/guestfish.pod:283
22637 #, no-wrap
22638 msgid ""
22639 " guestfish [--ro] -i libvirt-domain\n"
22640 "\n"
22641 msgstr ""
22642
22643 # type: textblock
22644 #. type: textblock
22645 #: ../fish/guestfish.pod:285
22646 msgid ""
22647 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
22648 "then using other commands to mount the filesystems that were found."
22649 msgstr ""
22650
22651 # type: =item
22652 #. type: =item
22653 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:153
22654 msgid "B<--keys-from-stdin>"
22655 msgstr ""
22656
22657 # type: textblock
22658 #. type: textblock
22659 #: ../fish/guestfish.pod:291 ../fuse/guestmount.pod:155
22660 msgid ""
22661 "Read key or passphrase parameters from stdin.  The default is to try to read "
22662 "passphrases from the user by opening C</dev/tty>."
22663 msgstr ""
22664
22665 # type: =item
22666 #. type: =item
22667 #: ../fish/guestfish.pod:294
22668 msgid "B<--listen>"
22669 msgstr ""
22670
22671 # type: textblock
22672 #. type: textblock
22673 #: ../fish/guestfish.pod:296
22674 msgid ""
22675 "Fork into the background and listen for remote commands.  See section L</"
22676 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
22677 msgstr ""
22678
22679 #. type: =item
22680 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:158
22681 msgid "B<--live>"
22682 msgstr ""
22683
22684 #. type: textblock
22685 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:160
22686 msgid ""
22687 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
22688 "ATTACHING TO RUNNING DAEMONS>)."
22689 msgstr ""
22690
22691 #. type: =item
22692 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:163
22693 msgid "B<-m dev[:mountpoint[:options]]>"
22694 msgstr ""
22695
22696 #. type: =item
22697 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:165
22698 msgid "B<--mount dev[:mountpoint[:options]]>"
22699 msgstr ""
22700
22701 # type: textblock
22702 #. type: textblock
22703 #: ../fish/guestfish.pod:308
22704 msgid "Mount the named partition or logical volume on the given mountpoint."
22705 msgstr ""
22706
22707 # type: textblock
22708 #. type: textblock
22709 #: ../fish/guestfish.pod:310
22710 msgid "If the mountpoint is omitted, it defaults to C</>."
22711 msgstr ""
22712
22713 # type: textblock
22714 #. type: textblock
22715 #: ../fish/guestfish.pod:312
22716 msgid "You have to mount something on C</> before most commands will work."
22717 msgstr ""
22718
22719 # type: textblock
22720 #. type: textblock
22721 #: ../fish/guestfish.pod:314
22722 msgid ""
22723 "If any I<-m> or I<--mount> options are given, the guest is automatically "
22724 "launched."
22725 msgstr ""
22726
22727 # type: textblock
22728 #. type: textblock
22729 #: ../fish/guestfish.pod:317
22730 msgid ""
22731 "If you don't know what filesystems a disk image contains, you can either run "
22732 "guestfish without this option, then list the partitions, filesystems and LVs "
22733 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
22734 "commands), or you can use the L<virt-filesystems(1)> program."
22735 msgstr ""
22736
22737 #. type: textblock
22738 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:173
22739 msgid ""
22740 "The third (and rarely used) part of the mount parameter is the list of mount "
22741 "options used to mount the underlying filesystem.  If this is not given, then "
22742 "the mount options are either the empty string or C<ro> (the latter if the "
22743 "I<--ro> flag is used).  By specifying the mount options, you override this "
22744 "default choice.  Probably the only time you would use this is to enable ACLs "
22745 "and/or extended attributes if the filesystem can support them:"
22746 msgstr ""
22747
22748 #. type: verbatim
22749 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:181
22750 #, no-wrap
22751 msgid ""
22752 " -m /dev/sda1:/:acl,user_xattr\n"
22753 "\n"
22754 msgstr ""
22755
22756 #. type: textblock
22757 #: ../fish/guestfish.pod:333
22758 msgid "Using this flag is equivalent to using the C<mount-options> command."
22759 msgstr ""
22760
22761 # type: =item
22762 #. type: =item
22763 #: ../fish/guestfish.pod:335
22764 msgid "B<-n>"
22765 msgstr ""
22766
22767 # type: =item
22768 #. type: =item
22769 #: ../fish/guestfish.pod:337
22770 msgid "B<--no-sync>"
22771 msgstr ""
22772
22773 # type: textblock
22774 #. type: textblock
22775 #: ../fish/guestfish.pod:339
22776 msgid ""
22777 "Disable autosync.  This is enabled by default.  See the discussion of "
22778 "autosync in the L<guestfs(3)> manpage."
22779 msgstr ""
22780
22781 # type: =item
22782 #. type: =item
22783 #: ../fish/guestfish.pod:342
22784 msgid "B<-N type>"
22785 msgstr ""
22786
22787 # type: =item
22788 #. type: =item
22789 #: ../fish/guestfish.pod:344
22790 msgid "B<--new type>"
22791 msgstr ""
22792
22793 # type: =item
22794 #. type: =item
22795 #: ../fish/guestfish.pod:346
22796 msgid "B<-N help>"
22797 msgstr ""
22798
22799 # type: textblock
22800 #. type: textblock
22801 #: ../fish/guestfish.pod:348
22802 msgid ""
22803 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
22804 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
22805 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
22806 "IMAGES> below."
22807 msgstr ""
22808
22809 # type: =item
22810 #. type: =item
22811 #: ../fish/guestfish.pod:353
22812 msgid "B<--progress-bars>"
22813 msgstr ""
22814
22815 # type: textblock
22816 #. type: textblock
22817 #: ../fish/guestfish.pod:355
22818 msgid "Enable progress bars, even when guestfish is used non-interactively."
22819 msgstr ""
22820
22821 # type: textblock
22822 #. type: textblock
22823 #: ../fish/guestfish.pod:357
22824 msgid ""
22825 "Progress bars are enabled by default when guestfish is used as an "
22826 "interactive shell."
22827 msgstr ""
22828
22829 # type: =item
22830 #. type: =item
22831 #: ../fish/guestfish.pod:360
22832 msgid "B<--no-progress-bars>"
22833 msgstr ""
22834
22835 # type: textblock
22836 #. type: textblock
22837 #: ../fish/guestfish.pod:362
22838 msgid "Disable progress bars."
22839 msgstr ""
22840
22841 # type: =item
22842 #. type: =item
22843 #: ../fish/guestfish.pod:364
22844 msgid "B<--remote[=pid]>"
22845 msgstr ""
22846
22847 # type: textblock
22848 #. type: textblock
22849 #: ../fish/guestfish.pod:366
22850 msgid ""
22851 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
22852 "CONTROL GUESTFISH OVER A SOCKET> below."
22853 msgstr ""
22854
22855 # type: =item
22856 #. type: =item
22857 #: ../fish/guestfish.pod:369
22858 msgid "B<-r>"
22859 msgstr ""
22860
22861 # type: =item
22862 #. type: =item
22863 #: ../fish/guestfish.pod:371
22864 msgid "B<--ro>"
22865 msgstr ""
22866
22867 # type: textblock
22868 #. type: textblock
22869 #: ../fish/guestfish.pod:373
22870 msgid ""
22871 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
22872 "mounts are done read-only."
22873 msgstr ""
22874
22875 # type: textblock
22876 #. type: textblock
22877 #: ../fish/guestfish.pod:376
22878 msgid ""
22879 "The option must always be used if the disk image or virtual machine might be "
22880 "running, and is generally recommended in cases where you don't need write "
22881 "access to the disk."
22882 msgstr ""
22883
22884 # type: textblock
22885 #. type: textblock
22886 #: ../fish/guestfish.pod:380
22887 msgid ""
22888 "Note that prepared disk images created with I<-N> are not affected by this "
22889 "option.  Also commands like C<add> are not affected - you have to specify "
22890 "the C<readonly:true> option explicitly if you need it."
22891 msgstr ""
22892
22893 # type: textblock
22894 #. type: textblock
22895 #: ../fish/guestfish.pod:384
22896 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
22897 msgstr ""
22898
22899 # type: =item
22900 #. type: =item
22901 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:237
22902 msgid "B<--selinux>"
22903 msgstr ""
22904
22905 # type: textblock
22906 #. type: textblock
22907 #: ../fish/guestfish.pod:388
22908 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
22909 msgstr ""
22910
22911 # type: =item
22912 #. type: =item
22913 #: ../fish/guestfish.pod:390
22914 msgid "B<-v>"
22915 msgstr ""
22916
22917 # type: =item
22918 #. type: =item
22919 #: ../fish/guestfish.pod:392
22920 msgid "B<--verbose>"
22921 msgstr ""
22922
22923 # type: textblock
22924 #. type: textblock
22925 #: ../fish/guestfish.pod:394
22926 msgid ""
22927 "Enable very verbose messages.  This is particularly useful if you find a bug."
22928 msgstr ""
22929
22930 # type: =item
22931 #. type: =item
22932 #: ../fish/guestfish.pod:397
22933 msgid "B<-V>"
22934 msgstr ""
22935
22936 # type: =item
22937 #. type: =item
22938 #: ../fish/guestfish.pod:399 ../tools/virt-win-reg.pl:112
22939 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:119
22940 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
22941 msgid "B<--version>"
22942 msgstr ""
22943
22944 # type: textblock
22945 #. type: textblock
22946 #: ../fish/guestfish.pod:401
22947 msgid "Display the guestfish / libguestfs version number and exit."
22948 msgstr ""
22949
22950 # type: =item
22951 #. type: =item
22952 #: ../fish/guestfish.pod:403
22953 msgid "B<-w>"
22954 msgstr ""
22955
22956 # type: =item
22957 #. type: =item
22958 #: ../fish/guestfish.pod:405
22959 msgid "B<--rw>"
22960 msgstr ""
22961
22962 #. type: textblock
22963 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:251
22964 msgid ""
22965 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
22966 "mounts are done read-write."
22967 msgstr ""
22968
22969 #. type: textblock
22970 #: ../fish/guestfish.pod:410
22971 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
22972 msgstr ""
22973
22974 # type: =item
22975 #. type: =item
22976 #: ../fish/guestfish.pod:412
22977 msgid "B<-x>"
22978 msgstr ""
22979
22980 # type: textblock
22981 #. type: textblock
22982 #: ../fish/guestfish.pod:414
22983 msgid "Echo each command before executing it."
22984 msgstr ""
22985
22986 # type: =head1
22987 #. type: =head1
22988 #: ../fish/guestfish.pod:418
22989 msgid "COMMANDS ON COMMAND LINE"
22990 msgstr ""
22991
22992 # type: textblock
22993 #. type: textblock
22994 #: ../fish/guestfish.pod:420
22995 msgid ""
22996 "Any additional (non-option) arguments are treated as commands to execute."
22997 msgstr ""
22998
22999 # type: textblock
23000 #. type: textblock
23001 #: ../fish/guestfish.pod:423
23002 msgid ""
23003 "Commands to execute should be separated by a colon (C<:>), where the colon "
23004 "is a separate parameter.  Thus:"
23005 msgstr ""
23006
23007 # type: verbatim
23008 #. type: verbatim
23009 #: ../fish/guestfish.pod:426
23010 #, no-wrap
23011 msgid ""
23012 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
23013 "\n"
23014 msgstr ""
23015
23016 # type: textblock
23017 #. type: textblock
23018 #: ../fish/guestfish.pod:428
23019 msgid ""
23020 "If there are no additional arguments, then we enter a shell, either an "
23021 "interactive shell with a prompt (if the input is a terminal) or a non-"
23022 "interactive shell."
23023 msgstr ""
23024
23025 # type: textblock
23026 #. type: textblock
23027 #: ../fish/guestfish.pod:432
23028 msgid ""
23029 "In either command line mode or non-interactive shell, the first command that "
23030 "gives an error causes the whole shell to exit.  In interactive mode (with a "
23031 "prompt) if a command fails, you can continue to enter commands."
23032 msgstr ""
23033
23034 # type: =head1
23035 #. type: =head1
23036 #: ../fish/guestfish.pod:437
23037 msgid "USING launch (OR run)"
23038 msgstr ""
23039
23040 # type: textblock
23041 #. type: textblock
23042 #: ../fish/guestfish.pod:439
23043 msgid ""
23044 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
23045 "then launch it, then mount any disks you need, and finally issue actions/"
23046 "commands.  So the general order of the day is:"
23047 msgstr ""
23048
23049 # type: textblock
23050 #. type: textblock
23051 #: ../fish/guestfish.pod:447
23052 msgid "add or -a/--add"
23053 msgstr ""
23054
23055 # type: textblock
23056 #. type: textblock
23057 #: ../fish/guestfish.pod:451
23058 msgid "launch (aka run)"
23059 msgstr ""
23060
23061 # type: textblock
23062 #. type: textblock
23063 #: ../fish/guestfish.pod:455
23064 msgid "mount or -m/--mount"
23065 msgstr ""
23066
23067 # type: textblock
23068 #. type: textblock
23069 #: ../fish/guestfish.pod:459
23070 msgid "any other commands"
23071 msgstr ""
23072
23073 # type: textblock
23074 #. type: textblock
23075 #: ../fish/guestfish.pod:463
23076 msgid ""
23077 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
23078 "guest before mounting or performing any other commands."
23079 msgstr ""
23080
23081 # type: textblock
23082 #. type: textblock
23083 #: ../fish/guestfish.pod:466
23084 msgid ""
23085 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
23086 "I<--new> options were given then C<run> is done automatically, simply "
23087 "because guestfish can't perform the action you asked for without doing this."
23088 msgstr ""
23089
23090 # type: =head1
23091 #. type: =head1
23092 #: ../fish/guestfish.pod:471
23093 msgid "OPENING DISKS FOR READ AND WRITE"
23094 msgstr ""
23095
23096 #. type: textblock
23097 #: ../fish/guestfish.pod:473
23098 msgid ""
23099 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
23100 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
23101 "I<-i> and I<-m> open disk images read-only or for writing."
23102 msgstr ""
23103
23104 #. type: textblock
23105 #: ../fish/guestfish.pod:478
23106 msgid ""
23107 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
23108 "opening disk images supplied on the command line for write.  To open a disk "
23109 "image read-only you have to do I<-a image --ro>."
23110 msgstr ""
23111
23112 # type: textblock
23113 #. type: textblock
23114 #: ../fish/guestfish.pod:482
23115 msgid ""
23116 "This matters: If you accidentally open a live VM disk image writable then "
23117 "you will cause irreversible disk corruption."
23118 msgstr ""
23119
23120 #. type: textblock
23121 #: ../fish/guestfish.pod:485
23122 msgid ""
23123 "By libguestfs 1.12 we intend to change the default the other way.  Disk "
23124 "images will be opened read-only.  You will have to either specify "
23125 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
23126 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
23127 "access for disk images specified by those other command line options."
23128 msgstr ""
23129
23130 #. type: textblock
23131 #: ../fish/guestfish.pod:492
23132 msgid ""
23133 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
23134 "which does nothing (it is already the default).  However it is highly "
23135 "recommended that you use this option to indicate that you need write access, "
23136 "and prepare your scripts for the day when this option will be required for "
23137 "write access."
23138 msgstr ""
23139
23140 # type: textblock
23141 #. type: textblock
23142 #: ../fish/guestfish.pod:498
23143 msgid ""
23144 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
23145 "other libguestfs program apart from guestfish and guestmount."
23146 msgstr ""
23147
23148 # type: =head1
23149 #. type: =head1
23150 #: ../fish/guestfish.pod:501
23151 msgid "QUOTING"
23152 msgstr ""
23153
23154 # type: textblock
23155 #. type: textblock
23156 #: ../fish/guestfish.pod:503
23157 msgid ""
23158 "You can quote ordinary parameters using either single or double quotes.  For "
23159 "example:"
23160 msgstr ""
23161
23162 # type: verbatim
23163 #. type: verbatim
23164 #: ../fish/guestfish.pod:506
23165 #, no-wrap
23166 msgid ""
23167 " add \"file with a space.img\"\n"
23168 "\n"
23169 msgstr ""
23170
23171 # type: verbatim
23172 #. type: verbatim
23173 #: ../fish/guestfish.pod:508
23174 #, no-wrap
23175 msgid ""
23176 " rm '/file name'\n"
23177 "\n"
23178 msgstr ""
23179
23180 # type: verbatim
23181 #. type: verbatim
23182 #: ../fish/guestfish.pod:510
23183 #, no-wrap
23184 msgid ""
23185 " rm '/\"'\n"
23186 "\n"
23187 msgstr ""
23188
23189 # type: textblock
23190 #. type: textblock
23191 #: ../fish/guestfish.pod:512
23192 msgid ""
23193 "A few commands require a list of strings to be passed.  For these, use a "
23194 "whitespace-separated list, enclosed in quotes.  Strings containing "
23195 "whitespace to be passed through must be enclosed in single quotes.  A "
23196 "literal single quote must be escaped with a backslash."
23197 msgstr ""
23198
23199 # type: verbatim
23200 #. type: verbatim
23201 #: ../fish/guestfish.pod:517
23202 #, no-wrap
23203 msgid ""
23204 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
23205 " command \"/bin/echo 'foo      bar'\"\n"
23206 " command \"/bin/echo \\'foo\\'\"\n"
23207 "\n"
23208 msgstr ""
23209
23210 # type: =head1
23211 #. type: =head1
23212 #: ../fish/guestfish.pod:521
23213 msgid "OPTIONAL ARGUMENTS"
23214 msgstr ""
23215
23216 # type: textblock
23217 #. type: textblock
23218 #: ../fish/guestfish.pod:523
23219 msgid ""
23220 "Some commands take optional arguments.  These arguments appear in this "
23221 "documentation as C<[argname:..]>.  You can use them as in these examples:"
23222 msgstr ""
23223
23224 # type: verbatim
23225 #. type: verbatim
23226 #: ../fish/guestfish.pod:527
23227 #, no-wrap
23228 msgid ""
23229 " add-drive-opts filename\n"
23230 "\n"
23231 msgstr ""
23232
23233 # type: verbatim
23234 #. type: verbatim
23235 #: ../fish/guestfish.pod:529
23236 #, no-wrap
23237 msgid ""
23238 " add-drive-opts filename readonly:true\n"
23239 "\n"
23240 msgstr ""
23241
23242 # type: verbatim
23243 #. type: verbatim
23244 #: ../fish/guestfish.pod:531
23245 #, no-wrap
23246 msgid ""
23247 " add-drive-opts filename format:qcow2 readonly:false\n"
23248 "\n"
23249 msgstr ""
23250
23251 # type: textblock
23252 #. type: textblock
23253 #: ../fish/guestfish.pod:533
23254 msgid ""
23255 "Each optional argument can appear at most once.  All optional arguments must "
23256 "appear after the required ones."
23257 msgstr ""
23258
23259 # type: =head1
23260 #. type: =head1
23261 #: ../fish/guestfish.pod:536
23262 msgid "NUMBERS"
23263 msgstr ""
23264
23265 # type: textblock
23266 #. type: textblock
23267 #: ../fish/guestfish.pod:538
23268 msgid ""
23269 "This section applies to all commands which can take integers as parameters."
23270 msgstr ""
23271
23272 # type: =head2
23273 #. type: =head2
23274 #: ../fish/guestfish.pod:541
23275 msgid "SIZE SUFFIX"
23276 msgstr ""
23277
23278 # type: textblock
23279 #. type: textblock
23280 #: ../fish/guestfish.pod:543
23281 msgid ""
23282 "When the command takes a parameter measured in bytes, you can use one of the "
23283 "following suffixes to specify kilobytes, megabytes and larger sizes:"
23284 msgstr ""
23285
23286 # type: =item
23287 #. type: =item
23288 #: ../fish/guestfish.pod:549
23289 msgid "B<k> or B<K> or B<KiB>"
23290 msgstr ""
23291
23292 # type: textblock
23293 #. type: textblock
23294 #: ../fish/guestfish.pod:551
23295 msgid "The size in kilobytes (multiplied by 1024)."
23296 msgstr ""
23297
23298 # type: =item
23299 #. type: =item
23300 #: ../fish/guestfish.pod:553
23301 msgid "B<KB>"
23302 msgstr ""
23303
23304 # type: textblock
23305 #. type: textblock
23306 #: ../fish/guestfish.pod:555
23307 msgid "The size in SI 1000 byte units."
23308 msgstr ""
23309
23310 # type: =item
23311 #. type: =item
23312 #: ../fish/guestfish.pod:557
23313 msgid "B<M> or B<MiB>"
23314 msgstr ""
23315
23316 # type: textblock
23317 #. type: textblock
23318 #: ../fish/guestfish.pod:559
23319 msgid "The size in megabytes (multiplied by 1048576)."
23320 msgstr ""
23321
23322 # type: =item
23323 #. type: =item
23324 #: ../fish/guestfish.pod:561
23325 msgid "B<MB>"
23326 msgstr ""
23327
23328 # type: textblock
23329 #. type: textblock
23330 #: ../fish/guestfish.pod:563
23331 msgid "The size in SI 1000000 byte units."
23332 msgstr ""
23333
23334 # type: =item
23335 #. type: =item
23336 #: ../fish/guestfish.pod:565
23337 msgid "B<G> or B<GiB>"
23338 msgstr ""
23339
23340 # type: textblock
23341 #. type: textblock
23342 #: ../fish/guestfish.pod:567
23343 msgid "The size in gigabytes (multiplied by 2**30)."
23344 msgstr ""
23345
23346 # type: =item
23347 #. type: =item
23348 #: ../fish/guestfish.pod:569
23349 msgid "B<GB>"
23350 msgstr ""
23351
23352 # type: textblock
23353 #. type: textblock
23354 #: ../fish/guestfish.pod:571
23355 msgid "The size in SI 10**9 byte units."
23356 msgstr ""
23357
23358 # type: =item
23359 #. type: =item
23360 #: ../fish/guestfish.pod:573
23361 msgid "B<T> or B<TiB>"
23362 msgstr ""
23363
23364 # type: textblock
23365 #. type: textblock
23366 #: ../fish/guestfish.pod:575
23367 msgid "The size in terabytes (multiplied by 2**40)."
23368 msgstr ""
23369
23370 # type: =item
23371 #. type: =item
23372 #: ../fish/guestfish.pod:577
23373 msgid "B<TB>"
23374 msgstr ""
23375
23376 # type: textblock
23377 #. type: textblock
23378 #: ../fish/guestfish.pod:579
23379 msgid "The size in SI 10**12 byte units."
23380 msgstr ""
23381
23382 # type: =item
23383 #. type: =item
23384 #: ../fish/guestfish.pod:581
23385 msgid "B<P> or B<PiB>"
23386 msgstr ""
23387
23388 # type: textblock
23389 #. type: textblock
23390 #: ../fish/guestfish.pod:583
23391 msgid "The size in petabytes (multiplied by 2**50)."
23392 msgstr ""
23393
23394 # type: =item
23395 #. type: =item
23396 #: ../fish/guestfish.pod:585
23397 msgid "B<PB>"
23398 msgstr ""
23399
23400 # type: textblock
23401 #. type: textblock
23402 #: ../fish/guestfish.pod:587
23403 msgid "The size in SI 10**15 byte units."
23404 msgstr ""
23405
23406 # type: =item
23407 #. type: =item
23408 #: ../fish/guestfish.pod:589
23409 msgid "B<E> or B<EiB>"
23410 msgstr ""
23411
23412 # type: textblock
23413 #. type: textblock
23414 #: ../fish/guestfish.pod:591
23415 msgid "The size in exabytes (multiplied by 2**60)."
23416 msgstr ""
23417
23418 # type: =item
23419 #. type: =item
23420 #: ../fish/guestfish.pod:593
23421 msgid "B<EB>"
23422 msgstr ""
23423
23424 # type: textblock
23425 #. type: textblock
23426 #: ../fish/guestfish.pod:595
23427 msgid "The size in SI 10**18 byte units."
23428 msgstr ""
23429
23430 # type: =item
23431 #. type: =item
23432 #: ../fish/guestfish.pod:597
23433 msgid "B<Z> or B<ZiB>"
23434 msgstr ""
23435
23436 # type: textblock
23437 #. type: textblock
23438 #: ../fish/guestfish.pod:599
23439 msgid "The size in zettabytes (multiplied by 2**70)."
23440 msgstr ""
23441
23442 # type: =item
23443 #. type: =item
23444 #: ../fish/guestfish.pod:601
23445 msgid "B<ZB>"
23446 msgstr ""
23447
23448 # type: textblock
23449 #. type: textblock
23450 #: ../fish/guestfish.pod:603
23451 msgid "The size in SI 10**21 byte units."
23452 msgstr ""
23453
23454 # type: =item
23455 #. type: =item
23456 #: ../fish/guestfish.pod:605
23457 msgid "B<Y> or B<YiB>"
23458 msgstr ""
23459
23460 # type: textblock
23461 #. type: textblock
23462 #: ../fish/guestfish.pod:607
23463 msgid "The size in yottabytes (multiplied by 2**80)."
23464 msgstr ""
23465
23466 # type: =item
23467 #. type: =item
23468 #: ../fish/guestfish.pod:609
23469 msgid "B<YB>"
23470 msgstr ""
23471
23472 # type: textblock
23473 #. type: textblock
23474 #: ../fish/guestfish.pod:611
23475 msgid "The size in SI 10**24 byte units."
23476 msgstr ""
23477
23478 # type: verbatim
23479 #. type: verbatim
23480 #: ../fish/guestfish.pod:617
23481 #, no-wrap
23482 msgid ""
23483 " truncate-size /file 1G\n"
23484 "\n"
23485 msgstr ""
23486
23487 # type: textblock
23488 #. type: textblock
23489 #: ../fish/guestfish.pod:619
23490 msgid "would truncate the file to 1 gigabyte."
23491 msgstr ""
23492
23493 # type: textblock
23494 #. type: textblock
23495 #: ../fish/guestfish.pod:621
23496 msgid ""
23497 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
23498 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
23499 "suffix will probably not do what you expect."
23500 msgstr ""
23501
23502 # type: =head2
23503 #. type: =head2
23504 #: ../fish/guestfish.pod:625
23505 msgid "OCTAL AND HEXADECIMAL NUMBERS"
23506 msgstr ""
23507
23508 # type: textblock
23509 #. type: textblock
23510 #: ../fish/guestfish.pod:627
23511 msgid ""
23512 "For specifying the radix (base) use the C convention: C<0> to prefix an "
23513 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
23514 msgstr ""
23515
23516 # type: verbatim
23517 #. type: verbatim
23518 #: ../fish/guestfish.pod:630
23519 #, no-wrap
23520 msgid ""
23521 " 1234      decimal number 1234\n"
23522 " 02322     octal number, equivalent to decimal 1234\n"
23523 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
23524 "\n"
23525 msgstr ""
23526
23527 # type: textblock
23528 #. type: textblock
23529 #: ../fish/guestfish.pod:634
23530 msgid ""
23531 "When using the C<chmod> command, you almost always want to specify an octal "
23532 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
23533 "L<chmod(1)> program):"
23534 msgstr ""
23535
23536 # type: verbatim
23537 #. type: verbatim
23538 #: ../fish/guestfish.pod:638
23539 #, no-wrap
23540 msgid ""
23541 " chmod 0777 /public  # OK\n"
23542 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
23543 "\n"
23544 msgstr ""
23545
23546 # type: textblock
23547 #. type: textblock
23548 #: ../fish/guestfish.pod:641
23549 msgid ""
23550 "Commands that return numbers usually print them in decimal, but some "
23551 "commands print numbers in other radices (eg. C<umask> prints the mode in "
23552 "octal, preceeded by C<0>)."
23553 msgstr ""
23554
23555 # type: =head1
23556 #. type: =head1
23557 #: ../fish/guestfish.pod:645
23558 msgid "WILDCARDS AND GLOBBING"
23559 msgstr ""
23560
23561 # type: textblock
23562 #. type: textblock
23563 #: ../fish/guestfish.pod:647
23564 msgid ""
23565 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
23566 "(globbing) by default.  So for example the following will not do what you "
23567 "expect:"
23568 msgstr ""
23569
23570 # type: verbatim
23571 #. type: verbatim
23572 #: ../fish/guestfish.pod:651
23573 #, no-wrap
23574 msgid ""
23575 " rm-rf /home/*\n"
23576 "\n"
23577 msgstr ""
23578
23579 # type: textblock
23580 #. type: textblock
23581 #: ../fish/guestfish.pod:653
23582 msgid ""
23583 "Assuming you don't have a directory called literally C</home/*> then the "
23584 "above command will return an error."
23585 msgstr ""
23586
23587 # type: textblock
23588 #. type: textblock
23589 #: ../fish/guestfish.pod:656
23590 msgid "To perform wildcard expansion, use the C<glob> command."
23591 msgstr ""
23592
23593 # type: verbatim
23594 #. type: verbatim
23595 #: ../fish/guestfish.pod:658
23596 #, no-wrap
23597 msgid ""
23598 " glob rm-rf /home/*\n"
23599 "\n"
23600 msgstr ""
23601
23602 # type: textblock
23603 #. type: textblock
23604 #: ../fish/guestfish.pod:660
23605 msgid ""
23606 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
23607 "many times), equivalent to:"
23608 msgstr ""
23609
23610 # type: verbatim
23611 #. type: verbatim
23612 #: ../fish/guestfish.pod:663
23613 #, no-wrap
23614 msgid ""
23615 " rm-rf /home/jim\n"
23616 " rm-rf /home/joe\n"
23617 " rm-rf /home/mary\n"
23618 "\n"
23619 msgstr ""
23620
23621 # type: textblock
23622 #. type: textblock
23623 #: ../fish/guestfish.pod:667
23624 msgid "C<glob> only works on simple guest paths and not on device names."
23625 msgstr ""
23626
23627 # type: textblock
23628 #. type: textblock
23629 #: ../fish/guestfish.pod:669
23630 msgid ""
23631 "If you have several parameters, each containing a wildcard, then glob will "
23632 "perform a Cartesian product."
23633 msgstr ""
23634
23635 # type: =head1
23636 #. type: =head1
23637 #: ../fish/guestfish.pod:672
23638 msgid "COMMENTS"
23639 msgstr ""
23640
23641 # type: textblock
23642 #. type: textblock
23643 #: ../fish/guestfish.pod:674
23644 msgid ""
23645 "Any line which starts with a I<#> character is treated as a comment and "
23646 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
23647 "a command.  For example:"
23648 msgstr ""
23649
23650 # type: verbatim
23651 #. type: verbatim
23652 #: ../fish/guestfish.pod:678
23653 #, no-wrap
23654 msgid ""
23655 " # this is a comment\n"
23656 "         # this is a comment\n"
23657 " foo # NOT a comment\n"
23658 "\n"
23659 msgstr ""
23660
23661 # type: textblock
23662 #. type: textblock
23663 #: ../fish/guestfish.pod:682
23664 msgid "Blank lines are also ignored."
23665 msgstr ""
23666
23667 # type: =head1
23668 #. type: =head1
23669 #: ../fish/guestfish.pod:684
23670 msgid "RUNNING COMMANDS LOCALLY"
23671 msgstr ""
23672
23673 # type: textblock
23674 #. type: textblock
23675 #: ../fish/guestfish.pod:686
23676 msgid ""
23677 "Any line which starts with a I<!> character is treated as a command sent to "
23678 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
23679 msgstr ""
23680
23681 # type: verbatim
23682 #. type: verbatim
23683 #: ../fish/guestfish.pod:690
23684 #, no-wrap
23685 msgid ""
23686 " !mkdir local\n"
23687 " tgz-out /remote local/remote-data.tar.gz\n"
23688 "\n"
23689 msgstr ""
23690
23691 # type: textblock
23692 #. type: textblock
23693 #: ../fish/guestfish.pod:693
23694 msgid ""
23695 "will create a directory C<local> on the host, and then export the contents "
23696 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
23697 "(See C<tgz-out>)."
23698 msgstr ""
23699
23700 # type: textblock
23701 #. type: textblock
23702 #: ../fish/guestfish.pod:697
23703 msgid ""
23704 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
23705 "effect, due to the way that subprocesses work in Unix."
23706 msgstr ""
23707
23708 #. type: =head2
23709 #: ../fish/guestfish.pod:700
23710 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
23711 msgstr ""
23712
23713 #. type: textblock
23714 #: ../fish/guestfish.pod:702
23715 msgid ""
23716 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
23717 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
23718 "and executed as guestfish commands."
23719 msgstr ""
23720
23721 #. type: textblock
23722 #: ../fish/guestfish.pod:706
23723 msgid ""
23724 "Thus you can use shell script to construct arbitrary guestfish commands "
23725 "which are then parsed by guestfish."
23726 msgstr ""
23727
23728 #. type: textblock
23729 #: ../fish/guestfish.pod:709
23730 msgid ""
23731 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
23732 "through C</foo.100>) using guestfish commands alone.  However this is simple "
23733 "if we use a shell script to create the guestfish commands for us:"
23734 msgstr ""
23735
23736 #. type: verbatim
23737 #: ../fish/guestfish.pod:714
23738 #, no-wrap
23739 msgid ""
23740 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
23741 "\n"
23742 msgstr ""
23743
23744 #. type: textblock
23745 #: ../fish/guestfish.pod:716
23746 msgid "or with names like C</foo.001>:"
23747 msgstr ""
23748
23749 #. type: verbatim
23750 #: ../fish/guestfish.pod:718
23751 #, no-wrap
23752 msgid ""
23753 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
23754 "\n"
23755 msgstr ""
23756
23757 #. type: textblock
23758 #: ../fish/guestfish.pod:720
23759 msgid ""
23760 "When using guestfish interactively it can be helpful to just run the shell "
23761 "script first (ie. remove the initial C<E<lt>> character so it is just an "
23762 "ordinary I<!> local command), see what guestfish commands it would run, and "
23763 "when you are happy with those prepend the C<E<lt>> character to run the "
23764 "guestfish commands for real."
23765 msgstr ""
23766
23767 # type: =head1
23768 #. type: =head1
23769 #: ../fish/guestfish.pod:726
23770 msgid "PIPES"
23771 msgstr ""
23772
23773 # type: textblock
23774 #. type: textblock
23775 #: ../fish/guestfish.pod:728
23776 msgid ""
23777 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
23778 "command (a guestfish command) to the second command (any host command).  For "
23779 "example:"
23780 msgstr ""
23781
23782 # type: verbatim
23783 #. type: verbatim
23784 #: ../fish/guestfish.pod:732
23785 #, no-wrap
23786 msgid ""
23787 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
23788 "\n"
23789 msgstr ""
23790
23791 # type: textblock
23792 #. type: textblock
23793 #: ../fish/guestfish.pod:734
23794 msgid ""
23795 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
23796 "program).  The above command would list all accounts in the guest filesystem "
23797 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
23798 msgstr ""
23799
23800 # type: verbatim
23801 #. type: verbatim
23802 #: ../fish/guestfish.pod:739
23803 #, no-wrap
23804 msgid ""
23805 " hexdump /bin/ls | head\n"
23806 " list-devices | tail -1\n"
23807 " tgz-out / - | tar ztf -\n"
23808 "\n"
23809 msgstr ""
23810
23811 # type: textblock
23812 #. type: textblock
23813 #: ../fish/guestfish.pod:743
23814 msgid ""
23815 "The space before the pipe symbol is required, any space after the pipe "
23816 "symbol is optional.  Everything after the pipe symbol is just passed "
23817 "straight to the host shell, so it can contain redirections, globs and "
23818 "anything else that makes sense on the host side."
23819 msgstr ""
23820
23821 # type: textblock
23822 #. type: textblock
23823 #: ../fish/guestfish.pod:748
23824 msgid ""
23825 "To use a literal argument which begins with a pipe symbol, you have to quote "
23826 "it, eg:"
23827 msgstr ""
23828
23829 # type: verbatim
23830 #. type: verbatim
23831 #: ../fish/guestfish.pod:751
23832 #, no-wrap
23833 msgid ""
23834 " echo \"|\"\n"
23835 "\n"
23836 msgstr ""
23837
23838 # type: =head1
23839 #. type: =head1
23840 #: ../fish/guestfish.pod:753
23841 msgid "HOME DIRECTORIES"
23842 msgstr ""
23843
23844 # type: textblock
23845 #. type: textblock
23846 #: ../fish/guestfish.pod:755
23847 msgid ""
23848 "If a parameter starts with the character C<~> then the tilde may be expanded "
23849 "as a home directory path (either C<~> for the current user's home directory, "
23850 "or C<~user> for another user)."
23851 msgstr ""
23852
23853 # type: textblock
23854 #. type: textblock
23855 #: ../fish/guestfish.pod:759
23856 msgid ""
23857 "Note that home directory expansion happens for users known I<on the host>, "
23858 "not in the guest filesystem."
23859 msgstr ""
23860
23861 # type: textblock
23862 #. type: textblock
23863 #: ../fish/guestfish.pod:762
23864 msgid ""
23865 "To use a literal argument which begins with a tilde, you have to quote it, "
23866 "eg:"
23867 msgstr ""
23868
23869 # type: verbatim
23870 #. type: verbatim
23871 #: ../fish/guestfish.pod:765
23872 #, no-wrap
23873 msgid ""
23874 " echo \"~\"\n"
23875 "\n"
23876 msgstr ""
23877
23878 # type: textblock
23879 #. type: textblock
23880 #: ../fish/guestfish.pod:769
23881 msgid ""
23882 "Libguestfs has some support for Linux guests encrypted according to the "
23883 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
23884 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
23885 "LUKS is supported."
23886 msgstr ""
23887
23888 # type: textblock
23889 #. type: textblock
23890 #: ../fish/guestfish.pod:774
23891 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
23892 msgstr ""
23893
23894 # type: verbatim
23895 #. type: verbatim
23896 #: ../fish/guestfish.pod:776
23897 #, no-wrap
23898 msgid ""
23899 " ><fs> vfs-type /dev/sda2\n"
23900 " crypto_LUKS\n"
23901 "\n"
23902 msgstr ""
23903
23904 # type: textblock
23905 #. type: textblock
23906 #: ../fish/guestfish.pod:779
23907 msgid ""
23908 "Then open those devices using L</luks-open>.  This creates a device-mapper "
23909 "device called C</dev/mapper/luksdev>."
23910 msgstr ""
23911
23912 # type: verbatim
23913 #. type: verbatim
23914 #: ../fish/guestfish.pod:782
23915 #, no-wrap
23916 msgid ""
23917 " ><fs> luks-open /dev/sda2 luksdev\n"
23918 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
23919 "\n"
23920 msgstr ""
23921
23922 # type: textblock
23923 #. type: textblock
23924 #: ../fish/guestfish.pod:785
23925 msgid ""
23926 "Finally you have to tell LVM to scan for volume groups on the newly created "
23927 "mapper device:"
23928 msgstr ""
23929
23930 # type: verbatim
23931 #. type: verbatim
23932 #: ../fish/guestfish.pod:788
23933 #, no-wrap
23934 msgid ""
23935 " vgscan\n"
23936 " vg-activate-all true\n"
23937 "\n"
23938 msgstr ""
23939
23940 # type: textblock
23941 #. type: textblock
23942 #: ../fish/guestfish.pod:791
23943 msgid "The logical volume(s) can now be mounted in the usual way."
23944 msgstr ""
23945
23946 # type: textblock
23947 #. type: textblock
23948 #: ../fish/guestfish.pod:793
23949 msgid ""
23950 "Before closing a LUKS device you must unmount any logical volumes on it and "
23951 "deactivate the volume groups by calling C<vg-activate false VG> on each "
23952 "one.  Then you can close the mapper device:"
23953 msgstr ""
23954
23955 # type: verbatim
23956 #. type: verbatim
23957 #: ../fish/guestfish.pod:797
23958 #, no-wrap
23959 msgid ""
23960 " vg-activate false /dev/VG\n"
23961 " luks-close /dev/mapper/luksdev\n"
23962 "\n"
23963 msgstr ""
23964
23965 # type: =head1
23966 #. type: =head1
23967 #: ../fish/guestfish.pod:800
23968 msgid "WINDOWS PATHS"
23969 msgstr ""
23970
23971 #. type: textblock
23972 #: ../fish/guestfish.pod:802
23973 msgid ""
23974 "If a path is prefixed with C<win:> then you can use Windows-style drive "
23975 "letters and paths (with some limitations).  The following commands are "
23976 "equivalent:"
23977 msgstr ""
23978
23979 # type: verbatim
23980 #. type: verbatim
23981 #: ../fish/guestfish.pod:806
23982 #, no-wrap
23983 msgid ""
23984 " file /WINDOWS/system32/config/system.LOG\n"
23985 "\n"
23986 msgstr ""
23987
23988 # type: verbatim
23989 #. type: verbatim
23990 #: ../fish/guestfish.pod:808
23991 #, no-wrap
23992 msgid ""
23993 " file win:\\windows\\system32\\config\\system.log\n"
23994 "\n"
23995 msgstr ""
23996
23997 #. type: verbatim
23998 #: ../fish/guestfish.pod:810
23999 #, no-wrap
24000 msgid ""
24001 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
24002 "\n"
24003 msgstr ""
24004
24005 #. type: textblock
24006 #: ../fish/guestfish.pod:812
24007 msgid ""
24008 "The parameter is rewritten \"behind the scenes\" by looking up the position "
24009 "where the drive is mounted, prepending that to the path, changing all "
24010 "backslash characters to forward slash, then resolving the result using L</"
24011 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
24012 "the parameter might be rewritten like this:"
24013 msgstr ""
24014
24015 #. type: verbatim
24016 #: ../fish/guestfish.pod:818
24017 #, no-wrap
24018 msgid ""
24019 " win:e:\\foo\\bar => /e/FOO/bar\n"
24020 "\n"
24021 msgstr ""
24022
24023 #. type: textblock
24024 #: ../fish/guestfish.pod:820
24025 msgid "This only works in argument positions that expect a path."
24026 msgstr ""
24027
24028 # type: =head1
24029 #. type: =head1
24030 #: ../fish/guestfish.pod:822
24031 msgid "UPLOADING AND DOWNLOADING FILES"
24032 msgstr ""
24033
24034 # type: textblock
24035 #. type: textblock
24036 #: ../fish/guestfish.pod:824
24037 msgid ""
24038 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
24039 "others which upload from or download to a local file, you can use the "
24040 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
24041 msgstr ""
24042
24043 # type: verbatim
24044 #. type: verbatim
24045 #: ../fish/guestfish.pod:828
24046 #, no-wrap
24047 msgid ""
24048 " upload - /foo\n"
24049 "\n"
24050 msgstr ""
24051
24052 # type: textblock
24053 #. type: textblock
24054 #: ../fish/guestfish.pod:830
24055 msgid ""
24056 "reads stdin and creates from that a file C</foo> in the disk image, and:"
24057 msgstr ""
24058
24059 # type: verbatim
24060 #. type: verbatim
24061 #: ../fish/guestfish.pod:833
24062 #, no-wrap
24063 msgid ""
24064 " tar-out /etc - | tar tf -\n"
24065 "\n"
24066 msgstr ""
24067
24068 # type: textblock
24069 #. type: textblock
24070 #: ../fish/guestfish.pod:835
24071 msgid ""
24072 "writes the tarball to stdout and then pipes that into the external \"tar\" "
24073 "command (see L</PIPES>)."
24074 msgstr ""
24075
24076 # type: textblock
24077 #. type: textblock
24078 #: ../fish/guestfish.pod:838
24079 msgid ""
24080 "When using C<-> to read from stdin, the input is read up to the end of "
24081 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
24082 "some arbitrary end marker:"
24083 msgstr ""
24084
24085 # type: verbatim
24086 #. type: verbatim
24087 #: ../fish/guestfish.pod:842
24088 #, no-wrap
24089 msgid ""
24090 " upload -<<END /foo\n"
24091 " input line 1\n"
24092 " input line 2\n"
24093 " input line 3\n"
24094 " END\n"
24095 "\n"
24096 msgstr ""
24097
24098 # type: textblock
24099 #. type: textblock
24100 #: ../fish/guestfish.pod:848
24101 msgid ""
24102 "Any string of characters can be used instead of C<END>.  The end marker must "
24103 "appear on a line of its own, without any preceeding or following characters "
24104 "(not even spaces)."
24105 msgstr ""
24106
24107 # type: textblock
24108 #. type: textblock
24109 #: ../fish/guestfish.pod:852
24110 msgid ""
24111 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
24112 "upload local files (so-called \"FileIn\" parameters in the generator)."
24113 msgstr ""
24114
24115 # type: =head1
24116 #. type: =head1
24117 #: ../fish/guestfish.pod:855
24118 msgid "EXIT ON ERROR BEHAVIOUR"
24119 msgstr ""
24120
24121 # type: textblock
24122 #. type: textblock
24123 #: ../fish/guestfish.pod:857
24124 msgid ""
24125 "By default, guestfish will ignore any errors when in interactive mode (ie. "
24126 "taking commands from a human over a tty), and will exit on the first error "
24127 "in non-interactive mode (scripts, commands given on the command line)."
24128 msgstr ""
24129
24130 # type: textblock
24131 #. type: textblock
24132 #: ../fish/guestfish.pod:862
24133 msgid ""
24134 "If you prefix a command with a I<-> character, then that command will not "
24135 "cause guestfish to exit, even if that (one) command returns an error."
24136 msgstr ""
24137
24138 # type: =head1
24139 #. type: =head1
24140 #: ../fish/guestfish.pod:866
24141 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
24142 msgstr ""
24143
24144 # type: textblock
24145 #. type: textblock
24146 #: ../fish/guestfish.pod:868
24147 msgid ""
24148 "Guestfish can be remote-controlled over a socket.  This is useful "
24149 "particularly in shell scripts where you want to make several different "
24150 "changes to a filesystem, but you don't want the overhead of starting up a "
24151 "guestfish process each time."
24152 msgstr ""
24153
24154 # type: textblock
24155 #. type: textblock
24156 #: ../fish/guestfish.pod:873
24157 msgid "Start a guestfish server process using:"
24158 msgstr ""
24159
24160 # type: verbatim
24161 #. type: verbatim
24162 #: ../fish/guestfish.pod:875
24163 #, no-wrap
24164 msgid ""
24165 " eval \"`guestfish --listen`\"\n"
24166 "\n"
24167 msgstr ""
24168
24169 # type: textblock
24170 #. type: textblock
24171 #: ../fish/guestfish.pod:877
24172 msgid "and then send it commands by doing:"
24173 msgstr ""
24174
24175 # type: verbatim
24176 #. type: verbatim
24177 #: ../fish/guestfish.pod:879
24178 #, no-wrap
24179 msgid ""
24180 " guestfish --remote cmd [...]\n"
24181 "\n"
24182 msgstr ""
24183
24184 # type: textblock
24185 #. type: textblock
24186 #: ../fish/guestfish.pod:881
24187 msgid "To cause the server to exit, send it the exit command:"
24188 msgstr ""
24189
24190 # type: verbatim
24191 #. type: verbatim
24192 #: ../fish/guestfish.pod:883
24193 #, no-wrap
24194 msgid ""
24195 " guestfish --remote exit\n"
24196 "\n"
24197 msgstr ""
24198
24199 # type: textblock
24200 #. type: textblock
24201 #: ../fish/guestfish.pod:885
24202 msgid ""
24203 "Note that the server will normally exit if there is an error in a command.  "
24204 "You can change this in the usual way.  See section L</EXIT ON ERROR "
24205 "BEHAVIOUR>."
24206 msgstr ""
24207
24208 # type: =head2
24209 #. type: =head2
24210 #: ../fish/guestfish.pod:889
24211 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
24212 msgstr ""
24213
24214 # type: textblock
24215 #. type: textblock
24216 #: ../fish/guestfish.pod:891
24217 msgid ""
24218 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
24219 "is how the I<--remote> option knows where to send the commands.  You can "
24220 "have several guestfish listener processes running using:"
24221 msgstr ""
24222
24223 # type: verbatim
24224 #. type: verbatim
24225 #: ../fish/guestfish.pod:895
24226 #, no-wrap
24227 msgid ""
24228 " eval \"`guestfish --listen`\"\n"
24229 " pid1=$GUESTFISH_PID\n"
24230 " eval \"`guestfish --listen`\"\n"
24231 " pid2=$GUESTFISH_PID\n"
24232 " ...\n"
24233 " guestfish --remote=$pid1 cmd\n"
24234 " guestfish --remote=$pid2 cmd\n"
24235 "\n"
24236 msgstr ""
24237
24238 # type: =head2
24239 #. type: =head2
24240 #: ../fish/guestfish.pod:903
24241 msgid "REMOTE CONTROL AND CSH"
24242 msgstr ""
24243
24244 # type: textblock
24245 #. type: textblock
24246 #: ../fish/guestfish.pod:905
24247 msgid ""
24248 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
24249 "option:"
24250 msgstr ""
24251
24252 # type: verbatim
24253 #. type: verbatim
24254 #: ../fish/guestfish.pod:908
24255 #, no-wrap
24256 msgid ""
24257 " eval \"`guestfish --listen --csh`\"\n"
24258 "\n"
24259 msgstr ""
24260
24261 # type: =head2
24262 #. type: =head2
24263 #: ../fish/guestfish.pod:910
24264 msgid "REMOTE CONTROL DETAILS"
24265 msgstr ""
24266
24267 # type: textblock
24268 #. type: textblock
24269 #: ../fish/guestfish.pod:912
24270 msgid ""
24271 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
24272 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
24273 "and C<$PID> is the process ID of the server."
24274 msgstr ""
24275
24276 # type: textblock
24277 #. type: textblock
24278 #: ../fish/guestfish.pod:916
24279 msgid "Guestfish client and server versions must match exactly."
24280 msgstr ""
24281
24282 # type: =head1
24283 #. type: =head1
24284 #: ../fish/guestfish.pod:918
24285 msgid "PREPARED DISK IMAGES"
24286 msgstr ""
24287
24288 # type: textblock
24289 #. type: textblock
24290 #: ../fish/guestfish.pod:920
24291 msgid ""
24292 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
24293 "preformatted disk images that guestfish can make for you to save typing.  "
24294 "This is particularly useful for testing purposes.  This option is used "
24295 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
24296 "can be mixed with I<-a>)."
24297 msgstr ""
24298
24299 # type: textblock
24300 #. type: textblock
24301 #: ../fish/guestfish.pod:926
24302 msgid ""
24303 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
24304 "the second and so on.  Existing files in the current directory are "
24305 "I<overwritten>."
24306 msgstr ""
24307
24308 # type: textblock
24309 #. type: textblock
24310 #: ../fish/guestfish.pod:930
24311 msgid ""
24312 "The type briefly describes how the disk should be sized, partitioned, how "
24313 "filesystem(s) should be created, and how content should be added.  "
24314 "Optionally the type can be followed by extra parameters, separated by C<:> "
24315 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
24316 "allocated disk, containing a single partition, with the partition formatted "
24317 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
24318 "disk instead."
24319 msgstr ""
24320
24321 # type: textblock
24322 #. type: textblock
24323 #: ../fish/guestfish.pod:938
24324 msgid "To list the available types and any extra parameters they take, run:"
24325 msgstr ""
24326
24327 # type: textblock
24328 #. type: textblock
24329 #: ../fish/guestfish.pod:942
24330 msgid ""
24331 "Note that the prepared filesystem is not mounted.  You would usually have to "
24332 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
24333 msgstr ""
24334
24335 # type: textblock
24336 #. type: textblock
24337 #: ../fish/guestfish.pod:946
24338 msgid ""
24339 "If any I<-N> or I<--new> options are given, the guest is automatically "
24340 "launched."
24341 msgstr ""
24342
24343 # type: textblock
24344 #. type: textblock
24345 #: ../fish/guestfish.pod:951
24346 msgid "Create a 100MB disk with an ext4-formatted partition:"
24347 msgstr ""
24348
24349 # type: verbatim
24350 #. type: verbatim
24351 #: ../fish/guestfish.pod:953
24352 #, no-wrap
24353 msgid ""
24354 " guestfish -N fs:ext4\n"
24355 "\n"
24356 msgstr ""
24357
24358 # type: textblock
24359 #. type: textblock
24360 #: ../fish/guestfish.pod:955
24361 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
24362 msgstr ""
24363
24364 # type: verbatim
24365 #. type: verbatim
24366 #: ../fish/guestfish.pod:957
24367 #, no-wrap
24368 msgid ""
24369 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
24370 "\n"
24371 msgstr ""
24372
24373 # type: textblock
24374 #. type: textblock
24375 #: ../fish/guestfish.pod:959
24376 msgid "Create a blank 200MB disk:"
24377 msgstr ""
24378
24379 # type: verbatim
24380 #. type: verbatim
24381 #: ../fish/guestfish.pod:961
24382 #, no-wrap
24383 msgid ""
24384 " guestfish -N disk:200M\n"
24385 "\n"
24386 msgstr ""
24387
24388 # type: =head1
24389 #. type: =head1
24390 #: ../fish/guestfish.pod:963
24391 msgid "PROGRESS BARS"
24392 msgstr ""
24393
24394 # type: textblock
24395 #. type: textblock
24396 #: ../fish/guestfish.pod:965
24397 msgid ""
24398 "Some (not all) long-running commands send progress notification messages as "
24399 "they are running.  Guestfish turns these messages into progress bars."
24400 msgstr ""
24401
24402 # type: textblock
24403 #. type: textblock
24404 #: ../fish/guestfish.pod:969
24405 msgid ""
24406 "When a command that supports progress bars takes longer than two seconds to "
24407 "run, and if progress bars are enabled, then you will see one appearing below "
24408 "the command:"
24409 msgstr ""
24410
24411 # type: verbatim
24412 #. type: verbatim
24413 #: ../fish/guestfish.pod:973
24414 #, no-wrap
24415 msgid ""
24416 " ><fs> copy-size /large-file /another-file 2048M\n"
24417 " / 10% [#####-----------------------------------------] 00:30\n"
24418 "\n"
24419 msgstr ""
24420
24421 # type: textblock
24422 #. type: textblock
24423 #: ../fish/guestfish.pod:976
24424 msgid ""
24425 "The spinner on the left hand side moves round once for every progress "
24426 "notification received from the backend.  This is a (reasonably) golden "
24427 "assurance that the command is \"doing something\" even if the progress bar "
24428 "is not moving, because the command is able to send the progress "
24429 "notifications.  When the bar reaches 100% and the command finishes, the "
24430 "spinner disappears."
24431 msgstr ""
24432
24433 # type: textblock
24434 #. type: textblock
24435 #: ../fish/guestfish.pod:983
24436 msgid ""
24437 "Progress bars are enabled by default when guestfish is used interactively.  "
24438 "You can enable them even for non-interactive modes using I<--progress-bars>, "
24439 "and you can disable them completely using I<--no-progress-bars>."
24440 msgstr ""
24441
24442 # type: =head1
24443 #. type: =head1
24444 #: ../fish/guestfish.pod:988
24445 msgid "GUESTFISH COMMANDS"
24446 msgstr ""
24447
24448 # type: textblock
24449 #. type: textblock
24450 #: ../fish/guestfish.pod:990
24451 msgid ""
24452 "The commands in this section are guestfish convenience commands, in other "
24453 "words, they are not part of the L<guestfs(3)> API."
24454 msgstr ""
24455
24456 # type: =head2
24457 #. type: =head2
24458 #: ../fish/guestfish.pod:993
24459 msgid "help"
24460 msgstr ""
24461
24462 # type: verbatim
24463 #. type: verbatim
24464 #: ../fish/guestfish.pod:995
24465 #, no-wrap
24466 msgid ""
24467 " help\n"
24468 " help cmd\n"
24469 "\n"
24470 msgstr ""
24471
24472 # type: textblock
24473 #. type: textblock
24474 #: ../fish/guestfish.pod:998
24475 msgid "Without any parameter, this provides general help."
24476 msgstr ""
24477
24478 # type: textblock
24479 #. type: textblock
24480 #: ../fish/guestfish.pod:1000
24481 msgid "With a C<cmd> parameter, this displays detailed help for that command."
24482 msgstr ""
24483
24484 # type: =head2
24485 #. type: =head2
24486 #: ../fish/guestfish.pod:1002
24487 msgid "quit | exit"
24488 msgstr ""
24489
24490 # type: textblock
24491 #. type: textblock
24492 #: ../fish/guestfish.pod:1004
24493 msgid "This exits guestfish.  You can also use C<^D> key."
24494 msgstr ""
24495
24496 # type: textblock
24497 #. type: textblock
24498 #: ../fish/guestfish.pod:1006
24499 msgid "@FISH_COMMANDS@"
24500 msgstr ""
24501
24502 # type: =head1
24503 #. type: =head1
24504 #: ../fish/guestfish.pod:1008
24505 msgid "COMMANDS"
24506 msgstr ""
24507
24508 # type: =head1
24509 #. type: =head1
24510 #: ../fish/guestfish.pod:1012 ../test-tool/libguestfs-test-tool.pod:77
24511 msgid "EXIT CODE"
24512 msgstr ""
24513
24514 # type: textblock
24515 #. type: textblock
24516 #: ../fish/guestfish.pod:1014
24517 msgid ""
24518 "guestfish returns 0 if the commands completed without error, or 1 if there "
24519 "was an error."
24520 msgstr ""
24521
24522 # type: =item
24523 #. type: =item
24524 #: ../fish/guestfish.pod:1021
24525 msgid "EDITOR"
24526 msgstr ""
24527
24528 # type: textblock
24529 #. type: textblock
24530 #: ../fish/guestfish.pod:1023
24531 msgid ""
24532 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
24533 "C<vi>."
24534 msgstr ""
24535
24536 #. type: =item
24537 #: ../fish/guestfish.pod:1026
24538 msgid "GUESTFISH_DISPLAY_IMAGE"
24539 msgstr ""
24540
24541 #. type: textblock
24542 #: ../fish/guestfish.pod:1028
24543 msgid ""
24544 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
24545 "If not set, it uses L<display(1)>."
24546 msgstr ""
24547
24548 # type: =item
24549 #. type: =item
24550 #: ../fish/guestfish.pod:1031
24551 msgid "GUESTFISH_PID"
24552 msgstr ""
24553
24554 # type: textblock
24555 #. type: textblock
24556 #: ../fish/guestfish.pod:1033
24557 msgid ""
24558 "Used with the I<--remote> option to specify the remote guestfish process to "
24559 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
24560 msgstr ""
24561
24562 # type: =item
24563 #. type: =item
24564 #: ../fish/guestfish.pod:1037
24565 msgid "HEXEDITOR"
24566 msgstr ""
24567
24568 # type: textblock
24569 #. type: textblock
24570 #: ../fish/guestfish.pod:1039
24571 msgid ""
24572 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
24573 "not specified, the external L<hexedit(1)> program is used."
24574 msgstr ""
24575
24576 # type: =item
24577 #. type: =item
24578 #: ../fish/guestfish.pod:1043
24579 msgid "HOME"
24580 msgstr ""
24581
24582 # type: textblock
24583 #. type: textblock
24584 #: ../fish/guestfish.pod:1045
24585 msgid ""
24586 "If compiled with GNU readline support, various files in the home directory "
24587 "can be used.  See L</FILES>."
24588 msgstr ""
24589
24590 # type: textblock
24591 #. type: textblock
24592 #: ../fish/guestfish.pod:1054
24593 msgid ""
24594 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
24595 "effect as using the B<-v> option."
24596 msgstr ""
24597
24598 # type: textblock
24599 #. type: textblock
24600 #: ../fish/guestfish.pod:1066
24601 msgid ""
24602 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
24603 "the discussion of paths in L<guestfs(3)>."
24604 msgstr ""
24605
24606 # type: textblock
24607 #. type: textblock
24608 #: ../fish/guestfish.pod:1077
24609 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
24610 msgstr ""
24611
24612 # type: =item
24613 #. type: =item
24614 #: ../fish/guestfish.pod:1079
24615 msgid "PAGER"
24616 msgstr ""
24617
24618 # type: textblock
24619 #. type: textblock
24620 #: ../fish/guestfish.pod:1081
24621 msgid ""
24622 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
24623 "C<more>."
24624 msgstr ""
24625
24626 # type: =head1
24627 #. type: =head1
24628 #: ../fish/guestfish.pod:1097 ../fuse/guestmount.pod:264
24629 msgid "FILES"
24630 msgstr ""
24631
24632 #. type: =item
24633 #: ../fish/guestfish.pod:1101 ../fuse/guestmount.pod:268
24634 msgid "$HOME/.libguestfs-tools.rc"
24635 msgstr ""
24636
24637 #. type: =item
24638 #: ../fish/guestfish.pod:1103 ../fuse/guestmount.pod:270
24639 msgid "/etc/libguestfs-tools.conf"
24640 msgstr ""
24641
24642 #. type: textblock
24643 #: ../fish/guestfish.pod:1105 ../fuse/guestmount.pod:272
24644 msgid ""
24645 "This configuration file controls the default read-only or read-write mode "
24646 "(I<--ro> or I<--rw>)."
24647 msgstr ""
24648
24649 #. type: textblock
24650 #: ../fish/guestfish.pod:1108
24651 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
24652 msgstr ""
24653
24654 # type: =item
24655 #. type: =item
24656 #: ../fish/guestfish.pod:1110
24657 msgid "$HOME/.guestfish"
24658 msgstr ""
24659
24660 # type: textblock
24661 #. type: textblock
24662 #: ../fish/guestfish.pod:1112
24663 msgid ""
24664 "If compiled with GNU readline support, then the command history is saved in "
24665 "this file."
24666 msgstr ""
24667
24668 # type: =item
24669 #. type: =item
24670 #: ../fish/guestfish.pod:1115
24671 msgid "$HOME/.inputrc"
24672 msgstr ""
24673
24674 # type: =item
24675 #. type: =item
24676 #: ../fish/guestfish.pod:1117
24677 msgid "/etc/inputrc"
24678 msgstr ""
24679
24680 # type: textblock
24681 #. type: textblock
24682 #: ../fish/guestfish.pod:1119
24683 msgid ""
24684 "If compiled with GNU readline support, then these files can be used to "
24685 "configure readline.  For further information, please see L<readline(3)/"
24686 "INITIALIZATION FILE>."
24687 msgstr ""
24688
24689 # type: textblock
24690 #. type: textblock
24691 #: ../fish/guestfish.pod:1123
24692 msgid "To write rules which only apply to guestfish, use:"
24693 msgstr ""
24694
24695 # type: verbatim
24696 #. type: verbatim
24697 #: ../fish/guestfish.pod:1125
24698 #, no-wrap
24699 msgid ""
24700 " $if guestfish\n"
24701 " ...\n"
24702 " $endif\n"
24703 "\n"
24704 msgstr ""
24705
24706 # type: textblock
24707 #. type: textblock
24708 #: ../fish/guestfish.pod:1129
24709 msgid ""
24710 "Variables that you can set in inputrc that change the behaviour of guestfish "
24711 "in useful ways include:"
24712 msgstr ""
24713
24714 # type: =item
24715 #. type: =item
24716 #: ../fish/guestfish.pod:1134
24717 msgid "completion-ignore-case (default: on)"
24718 msgstr ""
24719
24720 # type: textblock
24721 #. type: textblock
24722 #: ../fish/guestfish.pod:1136
24723 msgid ""
24724 "By default, guestfish will ignore case when tab-completing paths on the "
24725 "disk.  Use:"
24726 msgstr ""
24727
24728 # type: verbatim
24729 #. type: verbatim
24730 #: ../fish/guestfish.pod:1139
24731 #, no-wrap
24732 msgid ""
24733 " set completion-ignore-case off\n"
24734 "\n"
24735 msgstr ""
24736
24737 # type: textblock
24738 #. type: textblock
24739 #: ../fish/guestfish.pod:1141
24740 msgid "to make guestfish case sensitive."
24741 msgstr ""
24742
24743 # type: =item
24744 #. type: =item
24745 #: ../fish/guestfish.pod:1145
24746 msgid "test1.img"
24747 msgstr ""
24748
24749 # type: =item
24750 #. type: =item
24751 #: ../fish/guestfish.pod:1147
24752 msgid "test2.img (etc)"
24753 msgstr ""
24754
24755 #. type: textblock
24756 #: ../fish/guestfish.pod:1149
24757 msgid ""
24758 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
24759 "will be created in the file C<test1.img> in the current directory.  The "
24760 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
24761 "the same name will be overwritten."
24762 msgstr ""
24763
24764 #. type: textblock
24765 #: ../fish/guestfish.pod:1158
24766 msgid ""
24767 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
24768 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
24769 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
24770 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
24771 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
24772 ">, L<display(1)>, L<hexedit(1)>."
24773 msgstr ""
24774
24775 # type: textblock
24776 #. type: textblock
24777 #: ../fish/guestfish.pod:1189 ../test-tool/libguestfs-test-tool.pod:102
24778 #: ../fuse/guestmount.pod:299 ../tools/virt-win-reg.pl:778
24779 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:309
24780 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:277
24781 msgid ""
24782 "This program is free software; you can redistribute it and/or modify it "
24783 "under the terms of the GNU General Public License as published by the Free "
24784 "Software Foundation; either version 2 of the License, or (at your option) "
24785 "any later version."
24786 msgstr ""
24787
24788 # type: textblock
24789 #. type: textblock
24790 #: ../fish/guestfish.pod:1194 ../test-tool/libguestfs-test-tool.pod:107
24791 #: ../fuse/guestmount.pod:304 ../tools/virt-win-reg.pl:783
24792 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:314
24793 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:282
24794 msgid ""
24795 "This program is distributed in the hope that it will be useful, but WITHOUT "
24796 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
24797 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
24798 "more details."
24799 msgstr ""
24800
24801 # type: textblock
24802 #. type: textblock
24803 #: ../fish/guestfish.pod:1199 ../test-tool/libguestfs-test-tool.pod:112
24804 #: ../fuse/guestmount.pod:309 ../tools/virt-win-reg.pl:788
24805 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:319
24806 #: ../tools/virt-make-fs.pl:582 ../tools/virt-list-partitions.pl:287
24807 msgid ""
24808 "You should have received a copy of the GNU General Public License along with "
24809 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
24810 "Ave, Cambridge, MA 02139, USA."
24811 msgstr ""
24812
24813 # type: =head2
24814 #. type: =head2
24815 #: ../fish/guestfish-actions.pod:1
24816 msgid "add-cdrom"
24817 msgstr ""
24818
24819 # type: verbatim
24820 #. type: verbatim
24821 #: ../fish/guestfish-actions.pod:3
24822 #, no-wrap
24823 msgid ""
24824 " add-cdrom filename\n"
24825 "\n"
24826 msgstr ""
24827
24828 # type: textblock
24829 #. type: textblock
24830 #: ../fish/guestfish-actions.pod:15
24831 msgid ""
24832 "This call checks for the existence of C<filename>.  This stops you from "
24833 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24834 "and C<http:> URLs.  To specify those, use the general L</config> call "
24835 "instead."
24836 msgstr ""
24837
24838 # type: textblock
24839 #. type: textblock
24840 #: ../fish/guestfish-actions.pod:22
24841 msgid ""
24842 "If you just want to add an ISO file (often you use this as an efficient way "
24843 "to transfer large files into the guest), then you should probably use L</add-"
24844 "drive-ro> instead."
24845 msgstr ""
24846
24847 # type: =head2
24848 #. type: =head2
24849 #: ../fish/guestfish-actions.pod:35
24850 msgid "add-domain"
24851 msgstr ""
24852
24853 # type: =head2
24854 #. type: =head2
24855 #: ../fish/guestfish-actions.pod:37
24856 msgid "domain"
24857 msgstr ""
24858
24859 #. type: verbatim
24860 #: ../fish/guestfish-actions.pod:39
24861 #, no-wrap
24862 msgid ""
24863 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
24864 "\n"
24865 msgstr ""
24866
24867 # type: textblock
24868 #. type: textblock
24869 #: ../fish/guestfish-actions.pod:41
24870 msgid ""
24871 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
24872 "It works by connecting to libvirt, requesting the domain and domain XML from "
24873 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
24874 msgstr ""
24875
24876 # type: textblock
24877 #. type: textblock
24878 #: ../fish/guestfish-actions.pod:76
24879 msgid ""
24880 "The other optional parameters are passed directly through to L</add-drive-"
24881 "opts>."
24882 msgstr ""
24883
24884 # type: textblock
24885 #. type: textblock
24886 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
24887 #: ../fish/guestfish-actions.pod:1937 ../fish/guestfish-actions.pod:3087
24888 #: ../fish/guestfish-actions.pod:3260
24889 msgid ""
24890 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
24891 msgstr ""
24892
24893 # type: =head2
24894 #. type: =head2
24895 #: ../fish/guestfish-actions.pod:81
24896 msgid "add-drive"
24897 msgstr ""
24898
24899 # type: verbatim
24900 #. type: verbatim
24901 #: ../fish/guestfish-actions.pod:83
24902 #, no-wrap
24903 msgid ""
24904 " add-drive filename\n"
24905 "\n"
24906 msgstr ""
24907
24908 # type: textblock
24909 #. type: textblock
24910 #: ../fish/guestfish-actions.pod:85
24911 msgid ""
24912 "This function is the equivalent of calling L</add-drive-opts> with no "
24913 "optional parameters, so the disk is added writable, with the format being "
24914 "detected automatically."
24915 msgstr ""
24916
24917 # type: textblock
24918 #. type: textblock
24919 #: ../fish/guestfish-actions.pod:89
24920 msgid ""
24921 "Automatic detection of the format opens you up to a potential security hole "
24922 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
24923 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
24924 "you should think about replacing calls to this function with calls to L</add-"
24925 "drive-opts>, and specifying the format."
24926 msgstr ""
24927
24928 # type: =head2
24929 #. type: =head2
24930 #: ../fish/guestfish-actions.pod:96
24931 msgid "add-drive-opts"
24932 msgstr ""
24933
24934 # type: =head2
24935 #. type: =head2
24936 #: ../fish/guestfish-actions.pod:98
24937 msgid "add"
24938 msgstr ""
24939
24940 # type: verbatim
24941 #. type: verbatim
24942 #: ../fish/guestfish-actions.pod:100
24943 #, no-wrap
24944 msgid ""
24945 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
24946 "\n"
24947 msgstr ""
24948
24949 # type: textblock
24950 #. type: textblock
24951 #: ../fish/guestfish-actions.pod:127
24952 msgid ""
24953 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
24954 "add-drive-ro>) then the format is automatically detected.  Possible formats "
24955 "include C<raw> and C<qcow2>."
24956 msgstr ""
24957
24958 # type: textblock
24959 #. type: textblock
24960 #: ../fish/guestfish-actions.pod:138
24961 msgid ""
24962 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
24963 "add-drive-with-if> call (q.v.)"
24964 msgstr ""
24965
24966 # type: =head2
24967 #. type: =head2
24968 #: ../fish/guestfish-actions.pod:145
24969 msgid "add-drive-ro"
24970 msgstr ""
24971
24972 # type: =head2
24973 #. type: =head2
24974 #: ../fish/guestfish-actions.pod:147
24975 msgid "add-ro"
24976 msgstr ""
24977
24978 # type: verbatim
24979 #. type: verbatim
24980 #: ../fish/guestfish-actions.pod:149
24981 #, no-wrap
24982 msgid ""
24983 " add-drive-ro filename\n"
24984 "\n"
24985 msgstr ""
24986
24987 # type: textblock
24988 #. type: textblock
24989 #: ../fish/guestfish-actions.pod:151
24990 msgid ""
24991 "This function is the equivalent of calling L</add-drive-opts> with the "
24992 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
24993 "is added read-only, with the format being detected automatically."
24994 msgstr ""
24995
24996 # type: =head2
24997 #. type: =head2
24998 #: ../fish/guestfish-actions.pod:156
24999 msgid "add-drive-ro-with-if"
25000 msgstr ""
25001
25002 # type: verbatim
25003 #. type: verbatim
25004 #: ../fish/guestfish-actions.pod:158
25005 #, no-wrap
25006 msgid ""
25007 " add-drive-ro-with-if filename iface\n"
25008 "\n"
25009 msgstr ""
25010
25011 # type: textblock
25012 #. type: textblock
25013 #: ../fish/guestfish-actions.pod:160
25014 msgid ""
25015 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
25016 "interface emulation to use at run time."
25017 msgstr ""
25018
25019 # type: =head2
25020 #. type: =head2
25021 #: ../fish/guestfish-actions.pod:170
25022 msgid "add-drive-with-if"
25023 msgstr ""
25024
25025 # type: verbatim
25026 #. type: verbatim
25027 #: ../fish/guestfish-actions.pod:172
25028 #, no-wrap
25029 msgid ""
25030 " add-drive-with-if filename iface\n"
25031 "\n"
25032 msgstr ""
25033
25034 # type: textblock
25035 #. type: textblock
25036 #: ../fish/guestfish-actions.pod:174
25037 msgid ""
25038 "This is the same as L</add-drive> but it allows you to specify the QEMU "
25039 "interface emulation to use at run time."
25040 msgstr ""
25041
25042 # type: =head2
25043 #. type: =head2
25044 #: ../fish/guestfish-actions.pod:184
25045 msgid "aug-clear"
25046 msgstr ""
25047
25048 # type: verbatim
25049 #. type: verbatim
25050 #: ../fish/guestfish-actions.pod:186
25051 #, no-wrap
25052 msgid ""
25053 " aug-clear augpath\n"
25054 "\n"
25055 msgstr ""
25056
25057 # type: =head2
25058 #. type: =head2
25059 #: ../fish/guestfish-actions.pod:191
25060 msgid "aug-close"
25061 msgstr ""
25062
25063 # type: verbatim
25064 #. type: verbatim
25065 #: ../fish/guestfish-actions.pod:193
25066 #, no-wrap
25067 msgid ""
25068 " aug-close\n"
25069 "\n"
25070 msgstr ""
25071
25072 # type: textblock
25073 #. type: textblock
25074 #: ../fish/guestfish-actions.pod:195
25075 msgid ""
25076 "Close the current Augeas handle and free up any resources used by it.  After "
25077 "calling this, you have to call L</aug-init> again before you can use any "
25078 "other Augeas functions."
25079 msgstr ""
25080
25081 # type: =head2
25082 #. type: =head2
25083 #: ../fish/guestfish-actions.pod:200
25084 msgid "aug-defnode"
25085 msgstr ""
25086
25087 # type: verbatim
25088 #. type: verbatim
25089 #: ../fish/guestfish-actions.pod:202
25090 #, no-wrap
25091 msgid ""
25092 " aug-defnode name expr val\n"
25093 "\n"
25094 msgstr ""
25095
25096 # type: textblock
25097 #. type: textblock
25098 #: ../fish/guestfish-actions.pod:207
25099 msgid ""
25100 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25101 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
25102 "containing that single node."
25103 msgstr ""
25104
25105 # type: =head2
25106 #. type: =head2
25107 #: ../fish/guestfish-actions.pod:215
25108 msgid "aug-defvar"
25109 msgstr ""
25110
25111 # type: verbatim
25112 #. type: verbatim
25113 #: ../fish/guestfish-actions.pod:217
25114 #, no-wrap
25115 msgid ""
25116 " aug-defvar name expr\n"
25117 "\n"
25118 msgstr ""
25119
25120 # type: =head2
25121 #. type: =head2
25122 #: ../fish/guestfish-actions.pod:226
25123 msgid "aug-get"
25124 msgstr ""
25125
25126 # type: verbatim
25127 #. type: verbatim
25128 #: ../fish/guestfish-actions.pod:228
25129 #, no-wrap
25130 msgid ""
25131 " aug-get augpath\n"
25132 "\n"
25133 msgstr ""
25134
25135 # type: =head2
25136 #. type: =head2
25137 #: ../fish/guestfish-actions.pod:233
25138 msgid "aug-init"
25139 msgstr ""
25140
25141 # type: verbatim
25142 #. type: verbatim
25143 #: ../fish/guestfish-actions.pod:235
25144 #, no-wrap
25145 msgid ""
25146 " aug-init root flags\n"
25147 "\n"
25148 msgstr ""
25149
25150 # type: textblock
25151 #. type: textblock
25152 #: ../fish/guestfish-actions.pod:241
25153 msgid "You must call this before using any other L</aug-*> commands."
25154 msgstr ""
25155
25156 # type: textblock
25157 #. type: textblock
25158 #: ../fish/guestfish-actions.pod:276
25159 msgid "Do not load the tree in L</aug-init>."
25160 msgstr ""
25161
25162 # type: textblock
25163 #. type: textblock
25164 #: ../fish/guestfish-actions.pod:280
25165 msgid "To close the handle, you can call L</aug-close>."
25166 msgstr ""
25167
25168 # type: =head2
25169 #. type: =head2
25170 #: ../fish/guestfish-actions.pod:284
25171 msgid "aug-insert"
25172 msgstr ""
25173
25174 # type: verbatim
25175 #. type: verbatim
25176 #: ../fish/guestfish-actions.pod:286
25177 #, no-wrap
25178 msgid ""
25179 " aug-insert augpath label true|false\n"
25180 "\n"
25181 msgstr ""
25182
25183 # type: =head2
25184 #. type: =head2
25185 #: ../fish/guestfish-actions.pod:296
25186 msgid "aug-load"
25187 msgstr ""
25188
25189 # type: verbatim
25190 #. type: verbatim
25191 #: ../fish/guestfish-actions.pod:298
25192 #, no-wrap
25193 msgid ""
25194 " aug-load\n"
25195 "\n"
25196 msgstr ""
25197
25198 # type: =head2
25199 #. type: =head2
25200 #: ../fish/guestfish-actions.pod:305
25201 msgid "aug-ls"
25202 msgstr ""
25203
25204 # type: verbatim
25205 #. type: verbatim
25206 #: ../fish/guestfish-actions.pod:307
25207 #, no-wrap
25208 msgid ""
25209 " aug-ls augpath\n"
25210 "\n"
25211 msgstr ""
25212
25213 # type: textblock
25214 #. type: textblock
25215 #: ../fish/guestfish-actions.pod:309
25216 msgid ""
25217 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
25218 "resulting nodes into alphabetical order."
25219 msgstr ""
25220
25221 # type: =head2
25222 #. type: =head2
25223 #: ../fish/guestfish-actions.pod:312
25224 msgid "aug-match"
25225 msgstr ""
25226
25227 # type: verbatim
25228 #. type: verbatim
25229 #: ../fish/guestfish-actions.pod:314
25230 #, no-wrap
25231 msgid ""
25232 " aug-match augpath\n"
25233 "\n"
25234 msgstr ""
25235
25236 # type: =head2
25237 #. type: =head2
25238 #: ../fish/guestfish-actions.pod:320
25239 msgid "aug-mv"
25240 msgstr ""
25241
25242 # type: verbatim
25243 #. type: verbatim
25244 #: ../fish/guestfish-actions.pod:322
25245 #, no-wrap
25246 msgid ""
25247 " aug-mv src dest\n"
25248 "\n"
25249 msgstr ""
25250
25251 # type: =head2
25252 #. type: =head2
25253 #: ../fish/guestfish-actions.pod:327
25254 msgid "aug-rm"
25255 msgstr ""
25256
25257 # type: verbatim
25258 #. type: verbatim
25259 #: ../fish/guestfish-actions.pod:329
25260 #, no-wrap
25261 msgid ""
25262 " aug-rm augpath\n"
25263 "\n"
25264 msgstr ""
25265
25266 # type: =head2
25267 #. type: =head2
25268 #: ../fish/guestfish-actions.pod:335
25269 msgid "aug-save"
25270 msgstr ""
25271
25272 # type: verbatim
25273 #. type: verbatim
25274 #: ../fish/guestfish-actions.pod:337
25275 #, no-wrap
25276 msgid ""
25277 " aug-save\n"
25278 "\n"
25279 msgstr ""
25280
25281 # type: textblock
25282 #. type: textblock
25283 #: ../fish/guestfish-actions.pod:341
25284 msgid ""
25285 "The flags which were passed to L</aug-init> affect exactly how files are "
25286 "saved."
25287 msgstr ""
25288
25289 # type: =head2
25290 #. type: =head2
25291 #: ../fish/guestfish-actions.pod:344
25292 msgid "aug-set"
25293 msgstr ""
25294
25295 # type: verbatim
25296 #. type: verbatim
25297 #: ../fish/guestfish-actions.pod:346
25298 #, no-wrap
25299 msgid ""
25300 " aug-set augpath val\n"
25301 "\n"
25302 msgstr ""
25303
25304 # type: textblock
25305 #. type: textblock
25306 #: ../fish/guestfish-actions.pod:350
25307 msgid ""
25308 "In the Augeas API, it is possible to clear a node by setting the value to "
25309 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
25310 "this call.  Instead you must use the L</aug-clear> call."
25311 msgstr ""
25312
25313 # type: =head2
25314 #. type: =head2
25315 #: ../fish/guestfish-actions.pod:355
25316 msgid "available"
25317 msgstr ""
25318
25319 # type: verbatim
25320 #. type: verbatim
25321 #: ../fish/guestfish-actions.pod:357
25322 #, no-wrap
25323 msgid ""
25324 " available 'groups ...'\n"
25325 "\n"
25326 msgstr ""
25327
25328 # type: textblock
25329 #. type: textblock
25330 #: ../fish/guestfish-actions.pod:363
25331 msgid ""
25332 "The libguestfs groups, and the functions that those groups correspond to, "
25333 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25334 "runtime by calling L</available-all-groups>."
25335 msgstr ""
25336
25337 # type: textblock
25338 #. type: textblock
25339 #: ../fish/guestfish-actions.pod:387
25340 msgid "You must call L</launch> before calling this function."
25341 msgstr ""
25342
25343 # type: textblock
25344 #. type: textblock
25345 #: ../fish/guestfish-actions.pod:409
25346 msgid ""
25347 "This call was added in version C<1.0.80>.  In previous versions of "
25348 "libguestfs all you could do would be to speculatively execute a command to "
25349 "find out if the daemon implemented it.  See also L</version>."
25350 msgstr ""
25351
25352 # type: =head2
25353 #. type: =head2
25354 #: ../fish/guestfish-actions.pod:416
25355 msgid "available-all-groups"
25356 msgstr ""
25357
25358 # type: verbatim
25359 #. type: verbatim
25360 #: ../fish/guestfish-actions.pod:418
25361 #, no-wrap
25362 msgid ""
25363 " available-all-groups\n"
25364 "\n"
25365 msgstr ""
25366
25367 # type: textblock
25368 #. type: textblock
25369 #: ../fish/guestfish-actions.pod:420
25370 msgid ""
25371 "This command returns a list of all optional groups that this daemon knows "
25372 "about.  Note this returns both supported and unsupported groups.  To find "
25373 "out which ones the daemon can actually support you have to call L</"
25374 "available> on each member of the returned list."
25375 msgstr ""
25376
25377 # type: textblock
25378 #. type: textblock
25379 #: ../fish/guestfish-actions.pod:426
25380 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
25381 msgstr ""
25382
25383 # type: =head2
25384 #. type: =head2
25385 #: ../fish/guestfish-actions.pod:428
25386 msgid "base64-in"
25387 msgstr ""
25388
25389 # type: verbatim
25390 #. type: verbatim
25391 #: ../fish/guestfish-actions.pod:430
25392 #, no-wrap
25393 msgid ""
25394 " base64-in (base64file|-) filename\n"
25395 "\n"
25396 msgstr ""
25397
25398 # type: textblock
25399 #. type: textblock
25400 #: ../fish/guestfish-actions.pod:435 ../fish/guestfish-actions.pod:444
25401 #: ../fish/guestfish-actions.pod:668 ../fish/guestfish-actions.pod:837
25402 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:1230
25403 #: ../fish/guestfish-actions.pod:4533 ../fish/guestfish-actions.pod:4545
25404 #: ../fish/guestfish-actions.pod:4556 ../fish/guestfish-actions.pod:4567
25405 #: ../fish/guestfish-actions.pod:4619 ../fish/guestfish-actions.pod:4628
25406 #: ../fish/guestfish-actions.pod:4682 ../fish/guestfish-actions.pod:4705
25407 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
25408 msgstr ""
25409
25410 # type: =head2
25411 #. type: =head2
25412 #: ../fish/guestfish-actions.pod:437
25413 msgid "base64-out"
25414 msgstr ""
25415
25416 # type: verbatim
25417 #. type: verbatim
25418 #: ../fish/guestfish-actions.pod:439
25419 #, no-wrap
25420 msgid ""
25421 " base64-out filename (base64file|-)\n"
25422 "\n"
25423 msgstr ""
25424
25425 # type: =head2
25426 #. type: =head2
25427 #: ../fish/guestfish-actions.pod:446
25428 msgid "blockdev-flushbufs"
25429 msgstr ""
25430
25431 # type: verbatim
25432 #. type: verbatim
25433 #: ../fish/guestfish-actions.pod:448
25434 #, no-wrap
25435 msgid ""
25436 " blockdev-flushbufs device\n"
25437 "\n"
25438 msgstr ""
25439
25440 # type: =head2
25441 #. type: =head2
25442 #: ../fish/guestfish-actions.pod:455
25443 msgid "blockdev-getbsz"
25444 msgstr ""
25445
25446 # type: verbatim
25447 #. type: verbatim
25448 #: ../fish/guestfish-actions.pod:457
25449 #, no-wrap
25450 msgid ""
25451 " blockdev-getbsz device\n"
25452 "\n"
25453 msgstr ""
25454
25455 # type: =head2
25456 #. type: =head2
25457 #: ../fish/guestfish-actions.pod:466
25458 msgid "blockdev-getro"
25459 msgstr ""
25460
25461 # type: verbatim
25462 #. type: verbatim
25463 #: ../fish/guestfish-actions.pod:468
25464 #, no-wrap
25465 msgid ""
25466 " blockdev-getro device\n"
25467 "\n"
25468 msgstr ""
25469
25470 # type: =head2
25471 #. type: =head2
25472 #: ../fish/guestfish-actions.pod:475
25473 msgid "blockdev-getsize64"
25474 msgstr ""
25475
25476 # type: verbatim
25477 #. type: verbatim
25478 #: ../fish/guestfish-actions.pod:477
25479 #, no-wrap
25480 msgid ""
25481 " blockdev-getsize64 device\n"
25482 "\n"
25483 msgstr ""
25484
25485 # type: textblock
25486 #. type: textblock
25487 #: ../fish/guestfish-actions.pod:481
25488 msgid "See also L</blockdev-getsz>."
25489 msgstr ""
25490
25491 # type: =head2
25492 #. type: =head2
25493 #: ../fish/guestfish-actions.pod:485
25494 msgid "blockdev-getss"
25495 msgstr ""
25496
25497 # type: verbatim
25498 #. type: verbatim
25499 #: ../fish/guestfish-actions.pod:487
25500 #, no-wrap
25501 msgid ""
25502 " blockdev-getss device\n"
25503 "\n"
25504 msgstr ""
25505
25506 # type: textblock
25507 #. type: textblock
25508 #: ../fish/guestfish-actions.pod:492
25509 msgid ""
25510 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
25511 msgstr ""
25512
25513 # type: =head2
25514 #. type: =head2
25515 #: ../fish/guestfish-actions.pod:497
25516 msgid "blockdev-getsz"
25517 msgstr ""
25518
25519 # type: verbatim
25520 #. type: verbatim
25521 #: ../fish/guestfish-actions.pod:499
25522 #, no-wrap
25523 msgid ""
25524 " blockdev-getsz device\n"
25525 "\n"
25526 msgstr ""
25527
25528 # type: textblock
25529 #. type: textblock
25530 #: ../fish/guestfish-actions.pod:504
25531 msgid ""
25532 "See also L</blockdev-getss> for the real sector size of the device, and L</"
25533 "blockdev-getsize64> for the more useful I<size in bytes>."
25534 msgstr ""
25535
25536 # type: =head2
25537 #. type: =head2
25538 #: ../fish/guestfish-actions.pod:510
25539 msgid "blockdev-rereadpt"
25540 msgstr ""
25541
25542 # type: verbatim
25543 #. type: verbatim
25544 #: ../fish/guestfish-actions.pod:512
25545 #, no-wrap
25546 msgid ""
25547 " blockdev-rereadpt device\n"
25548 "\n"
25549 msgstr ""
25550
25551 # type: =head2
25552 #. type: =head2
25553 #: ../fish/guestfish-actions.pod:518
25554 msgid "blockdev-setbsz"
25555 msgstr ""
25556
25557 # type: verbatim
25558 #. type: verbatim
25559 #: ../fish/guestfish-actions.pod:520
25560 #, no-wrap
25561 msgid ""
25562 " blockdev-setbsz device blocksize\n"
25563 "\n"
25564 msgstr ""
25565
25566 # type: =head2
25567 #. type: =head2
25568 #: ../fish/guestfish-actions.pod:529
25569 msgid "blockdev-setro"
25570 msgstr ""
25571
25572 # type: verbatim
25573 #. type: verbatim
25574 #: ../fish/guestfish-actions.pod:531
25575 #, no-wrap
25576 msgid ""
25577 " blockdev-setro device\n"
25578 "\n"
25579 msgstr ""
25580
25581 # type: =head2
25582 #. type: =head2
25583 #: ../fish/guestfish-actions.pod:537
25584 msgid "blockdev-setrw"
25585 msgstr ""
25586
25587 # type: verbatim
25588 #. type: verbatim
25589 #: ../fish/guestfish-actions.pod:539
25590 #, no-wrap
25591 msgid ""
25592 " blockdev-setrw device\n"
25593 "\n"
25594 msgstr ""
25595
25596 # type: =head2
25597 #. type: =head2
25598 #: ../fish/guestfish-actions.pod:545
25599 msgid "case-sensitive-path"
25600 msgstr ""
25601
25602 # type: verbatim
25603 #. type: verbatim
25604 #: ../fish/guestfish-actions.pod:547
25605 #, no-wrap
25606 msgid ""
25607 " case-sensitive-path path\n"
25608 "\n"
25609 msgstr ""
25610
25611 # type: textblock
25612 #. type: textblock
25613 #: ../fish/guestfish-actions.pod:571
25614 msgid ""
25615 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
25616 "WINDOWS/system32\"> (the exact return value would depend on details of how "
25617 "the directories were originally created under Windows)."
25618 msgstr ""
25619
25620 # type: textblock
25621 #. type: textblock
25622 #: ../fish/guestfish-actions.pod:579
25623 msgid "See also L</realpath>."
25624 msgstr ""
25625
25626 # type: =head2
25627 #. type: =head2
25628 #: ../fish/guestfish-actions.pod:581
25629 msgid "cat"
25630 msgstr ""
25631
25632 # type: verbatim
25633 #. type: verbatim
25634 #: ../fish/guestfish-actions.pod:583
25635 #, no-wrap
25636 msgid ""
25637 " cat path\n"
25638 "\n"
25639 msgstr ""
25640
25641 # type: textblock
25642 #. type: textblock
25643 #: ../fish/guestfish-actions.pod:587
25644 msgid ""
25645 "Note that this function cannot correctly handle binary files (specifically, "
25646 "files containing C<\\0> character which is treated as end of string).  For "
25647 "those you need to use the L</read-file> or L</download> functions which have "
25648 "a more complex interface."
25649 msgstr ""
25650
25651 # type: =head2
25652 #. type: =head2
25653 #: ../fish/guestfish-actions.pod:595
25654 msgid "checksum"
25655 msgstr ""
25656
25657 # type: verbatim
25658 #. type: verbatim
25659 #: ../fish/guestfish-actions.pod:597
25660 #, no-wrap
25661 msgid ""
25662 " checksum csumtype path\n"
25663 "\n"
25664 msgstr ""
25665
25666 # type: textblock
25667 #. type: textblock
25668 #: ../fish/guestfish-actions.pod:640
25669 msgid "To get the checksum for a device, use L</checksum-device>."
25670 msgstr ""
25671
25672 # type: textblock
25673 #. type: textblock
25674 #: ../fish/guestfish-actions.pod:642
25675 msgid "To get the checksums for many files, use L</checksums-out>."
25676 msgstr ""
25677
25678 # type: =head2
25679 #. type: =head2
25680 #: ../fish/guestfish-actions.pod:644
25681 msgid "checksum-device"
25682 msgstr ""
25683
25684 # type: verbatim
25685 #. type: verbatim
25686 #: ../fish/guestfish-actions.pod:646
25687 #, no-wrap
25688 msgid ""
25689 " checksum-device csumtype device\n"
25690 "\n"
25691 msgstr ""
25692
25693 # type: textblock
25694 #. type: textblock
25695 #: ../fish/guestfish-actions.pod:648
25696 msgid ""
25697 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
25698 "device named C<device>.  For the types of checksums supported see the L</"
25699 "checksum> command."
25700 msgstr ""
25701
25702 # type: =head2
25703 #. type: =head2
25704 #: ../fish/guestfish-actions.pod:652
25705 msgid "checksums-out"
25706 msgstr ""
25707
25708 # type: verbatim
25709 #. type: verbatim
25710 #: ../fish/guestfish-actions.pod:654
25711 #, no-wrap
25712 msgid ""
25713 " checksums-out csumtype directory (sumsfile|-)\n"
25714 "\n"
25715 msgstr ""
25716
25717 # type: =head2
25718 #. type: =head2
25719 #: ../fish/guestfish-actions.pod:670
25720 msgid "chmod"
25721 msgstr ""
25722
25723 # type: verbatim
25724 #. type: verbatim
25725 #: ../fish/guestfish-actions.pod:672
25726 #, no-wrap
25727 msgid ""
25728 " chmod mode path\n"
25729 "\n"
25730 msgstr ""
25731
25732 # type: =head2
25733 #. type: =head2
25734 #: ../fish/guestfish-actions.pod:683
25735 msgid "chown"
25736 msgstr ""
25737
25738 # type: verbatim
25739 #. type: verbatim
25740 #: ../fish/guestfish-actions.pod:685
25741 #, no-wrap
25742 msgid ""
25743 " chown owner group path\n"
25744 "\n"
25745 msgstr ""
25746
25747 # type: =head2
25748 #. type: =head2
25749 #: ../fish/guestfish-actions.pod:693
25750 msgid "command"
25751 msgstr ""
25752
25753 # type: verbatim
25754 #. type: verbatim
25755 #: ../fish/guestfish-actions.pod:695
25756 #, no-wrap
25757 msgid ""
25758 " command 'arguments ...'\n"
25759 "\n"
25760 msgstr ""
25761
25762 # type: textblock
25763 #. type: textblock
25764 #: ../fish/guestfish-actions.pod:702
25765 msgid ""
25766 "The single parameter is an argv-style list of arguments.  The first element "
25767 "is the name of the program to run.  Subsequent elements are parameters.  The "
25768 "list must be non-empty (ie. must contain a program name).  Note that the "
25769 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
25770 msgstr ""
25771
25772 # type: =head2
25773 #. type: =head2
25774 #: ../fish/guestfish-actions.pod:730
25775 msgid "command-lines"
25776 msgstr ""
25777
25778 # type: verbatim
25779 #. type: verbatim
25780 #: ../fish/guestfish-actions.pod:732
25781 #, no-wrap
25782 msgid ""
25783 " command-lines 'arguments ...'\n"
25784 "\n"
25785 msgstr ""
25786
25787 # type: textblock
25788 #. type: textblock
25789 #: ../fish/guestfish-actions.pod:734
25790 msgid ""
25791 "This is the same as L</command>, but splits the result into a list of lines."
25792 msgstr ""
25793
25794 # type: textblock
25795 #. type: textblock
25796 #: ../fish/guestfish-actions.pod:737
25797 msgid "See also: L</sh-lines>"
25798 msgstr ""
25799
25800 # type: =head2
25801 #. type: =head2
25802 #: ../fish/guestfish-actions.pod:742
25803 msgid "config"
25804 msgstr ""
25805
25806 # type: verbatim
25807 #. type: verbatim
25808 #: ../fish/guestfish-actions.pod:744
25809 #, no-wrap
25810 msgid ""
25811 " config qemuparam qemuvalue\n"
25812 "\n"
25813 msgstr ""
25814
25815 # type: =head2
25816 #. type: =head2
25817 #: ../fish/guestfish-actions.pod:755
25818 msgid "copy-size"
25819 msgstr ""
25820
25821 # type: verbatim
25822 #. type: verbatim
25823 #: ../fish/guestfish-actions.pod:757
25824 #, no-wrap
25825 msgid ""
25826 " copy-size src dest size\n"
25827 "\n"
25828 msgstr ""
25829
25830 # type: =head2
25831 #. type: =head2
25832 #: ../fish/guestfish-actions.pod:765
25833 msgid "cp"
25834 msgstr ""
25835
25836 # type: verbatim
25837 #. type: verbatim
25838 #: ../fish/guestfish-actions.pod:767
25839 #, no-wrap
25840 msgid ""
25841 " cp src dest\n"
25842 "\n"
25843 msgstr ""
25844
25845 # type: =head2
25846 #. type: =head2
25847 #: ../fish/guestfish-actions.pod:772
25848 msgid "cp-a"
25849 msgstr ""
25850
25851 # type: verbatim
25852 #. type: verbatim
25853 #: ../fish/guestfish-actions.pod:774
25854 #, no-wrap
25855 msgid ""
25856 " cp-a src dest\n"
25857 "\n"
25858 msgstr ""
25859
25860 # type: =head2
25861 #. type: =head2
25862 #: ../fish/guestfish-actions.pod:779
25863 msgid "dd"
25864 msgstr ""
25865
25866 # type: verbatim
25867 #. type: verbatim
25868 #: ../fish/guestfish-actions.pod:781
25869 #, no-wrap
25870 msgid ""
25871 " dd src dest\n"
25872 "\n"
25873 msgstr ""
25874
25875 # type: textblock
25876 #. type: textblock
25877 #: ../fish/guestfish-actions.pod:788
25878 msgid ""
25879 "If the destination is a device, it must be as large or larger than the "
25880 "source file or device, otherwise the copy will fail.  This command cannot do "
25881 "partial copies (see L</copy-size>)."
25882 msgstr ""
25883
25884 # type: =head2
25885 #. type: =head2
25886 #: ../fish/guestfish-actions.pod:792
25887 msgid "df"
25888 msgstr ""
25889
25890 # type: verbatim
25891 #. type: verbatim
25892 #: ../fish/guestfish-actions.pod:794
25893 #, no-wrap
25894 msgid ""
25895 " df\n"
25896 "\n"
25897 msgstr ""
25898
25899 # type: textblock
25900 #. type: textblock
25901 #: ../fish/guestfish-actions.pod:798 ../fish/guestfish-actions.pod:809
25902 msgid ""
25903 "This command is mostly useful for interactive sessions.  It is I<not> "
25904 "intended that you try to parse the output string.  Use L</statvfs> from "
25905 "programs."
25906 msgstr ""
25907
25908 # type: =head2
25909 #. type: =head2
25910 #: ../fish/guestfish-actions.pod:802
25911 msgid "df-h"
25912 msgstr ""
25913
25914 # type: verbatim
25915 #. type: verbatim
25916 #: ../fish/guestfish-actions.pod:804
25917 #, no-wrap
25918 msgid ""
25919 " df-h\n"
25920 "\n"
25921 msgstr ""
25922
25923 # type: =head2
25924 #. type: =head2
25925 #: ../fish/guestfish-actions.pod:813
25926 msgid "dmesg"
25927 msgstr ""
25928
25929 # type: verbatim
25930 #. type: verbatim
25931 #: ../fish/guestfish-actions.pod:815
25932 #, no-wrap
25933 msgid ""
25934 " dmesg\n"
25935 "\n"
25936 msgstr ""
25937
25938 # type: textblock
25939 #. type: textblock
25940 #: ../fish/guestfish-actions.pod:821
25941 msgid ""
25942 "Another way to get the same information is to enable verbose messages with "
25943 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
25944 "before running the program."
25945 msgstr ""
25946
25947 # type: =head2
25948 #. type: =head2
25949 #: ../fish/guestfish-actions.pod:826
25950 msgid "download"
25951 msgstr ""
25952
25953 # type: verbatim
25954 #. type: verbatim
25955 #: ../fish/guestfish-actions.pod:828
25956 #, no-wrap
25957 msgid ""
25958 " download remotefilename (filename|-)\n"
25959 "\n"
25960 msgstr ""
25961
25962 # type: textblock
25963 #. type: textblock
25964 #: ../fish/guestfish-actions.pod:835
25965 msgid "See also L</upload>, L</cat>."
25966 msgstr ""
25967
25968 # type: =head2
25969 #. type: =head2
25970 #: ../fish/guestfish-actions.pod:839
25971 msgid "download-offset"
25972 msgstr ""
25973
25974 # type: verbatim
25975 #. type: verbatim
25976 #: ../fish/guestfish-actions.pod:841
25977 #, no-wrap
25978 msgid ""
25979 " download-offset remotefilename (filename|-) offset size\n"
25980 "\n"
25981 msgstr ""
25982
25983 # type: textblock
25984 #. type: textblock
25985 #: ../fish/guestfish-actions.pod:849
25986 msgid ""
25987 "Note that there is no limit on the amount of data that can be downloaded "
25988 "with this call, unlike with L</pread>, and this call always reads the full "
25989 "amount unless an error occurs."
25990 msgstr ""
25991
25992 # type: textblock
25993 #. type: textblock
25994 #: ../fish/guestfish-actions.pod:854
25995 msgid "See also L</download>, L</pread>."
25996 msgstr ""
25997
25998 # type: =head2
25999 #. type: =head2
26000 #: ../fish/guestfish-actions.pod:858
26001 msgid "drop-caches"
26002 msgstr ""
26003
26004 # type: verbatim
26005 #. type: verbatim
26006 #: ../fish/guestfish-actions.pod:860
26007 #, no-wrap
26008 msgid ""
26009 " drop-caches whattodrop\n"
26010 "\n"
26011 msgstr ""
26012
26013 # type: =head2
26014 #. type: =head2
26015 #: ../fish/guestfish-actions.pod:872
26016 msgid "du"
26017 msgstr ""
26018
26019 # type: verbatim
26020 #. type: verbatim
26021 #: ../fish/guestfish-actions.pod:874
26022 #, no-wrap
26023 msgid ""
26024 " du path\n"
26025 "\n"
26026 msgstr ""
26027
26028 # type: =head2
26029 #. type: =head2
26030 #: ../fish/guestfish-actions.pod:886
26031 msgid "e2fsck-f"
26032 msgstr ""
26033
26034 # type: verbatim
26035 #. type: verbatim
26036 #: ../fish/guestfish-actions.pod:888
26037 #, no-wrap
26038 msgid ""
26039 " e2fsck-f device\n"
26040 "\n"
26041 msgstr ""
26042
26043 # type: textblock
26044 #. type: textblock
26045 #: ../fish/guestfish-actions.pod:894
26046 msgid ""
26047 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
26048 "should use L</fsck>."
26049 msgstr ""
26050
26051 # type: =head2
26052 #. type: =head2
26053 #: ../fish/guestfish-actions.pod:897
26054 msgid "echo-daemon"
26055 msgstr ""
26056
26057 # type: verbatim
26058 #. type: verbatim
26059 #: ../fish/guestfish-actions.pod:899
26060 #, no-wrap
26061 msgid ""
26062 " echo-daemon 'words ...'\n"
26063 "\n"
26064 msgstr ""
26065
26066 # type: textblock
26067 #. type: textblock
26068 #: ../fish/guestfish-actions.pod:906
26069 msgid "See also L</ping-daemon>."
26070 msgstr ""
26071
26072 # type: =head2
26073 #. type: =head2
26074 #: ../fish/guestfish-actions.pod:908
26075 msgid "egrep"
26076 msgstr ""
26077
26078 # type: verbatim
26079 #. type: verbatim
26080 #: ../fish/guestfish-actions.pod:910
26081 #, no-wrap
26082 msgid ""
26083 " egrep regex path\n"
26084 "\n"
26085 msgstr ""
26086
26087 # type: =head2
26088 #. type: =head2
26089 #: ../fish/guestfish-actions.pod:918
26090 msgid "egrepi"
26091 msgstr ""
26092
26093 # type: verbatim
26094 #. type: verbatim
26095 #: ../fish/guestfish-actions.pod:920
26096 #, no-wrap
26097 msgid ""
26098 " egrepi regex path\n"
26099 "\n"
26100 msgstr ""
26101
26102 # type: =head2
26103 #. type: =head2
26104 #: ../fish/guestfish-actions.pod:928
26105 msgid "equal"
26106 msgstr ""
26107
26108 # type: verbatim
26109 #. type: verbatim
26110 #: ../fish/guestfish-actions.pod:930
26111 #, no-wrap
26112 msgid ""
26113 " equal file1 file2\n"
26114 "\n"
26115 msgstr ""
26116
26117 # type: =head2
26118 #. type: =head2
26119 #: ../fish/guestfish-actions.pod:937
26120 msgid "exists"
26121 msgstr ""
26122
26123 # type: verbatim
26124 #. type: verbatim
26125 #: ../fish/guestfish-actions.pod:939
26126 #, no-wrap
26127 msgid ""
26128 " exists path\n"
26129 "\n"
26130 msgstr ""
26131
26132 # type: textblock
26133 #. type: textblock
26134 #: ../fish/guestfish-actions.pod:944
26135 msgid "See also L</is-file>, L</is-dir>, L</stat>."
26136 msgstr ""
26137
26138 # type: =head2
26139 #. type: =head2
26140 #: ../fish/guestfish-actions.pod:946
26141 msgid "fallocate"
26142 msgstr ""
26143
26144 # type: verbatim
26145 #. type: verbatim
26146 #: ../fish/guestfish-actions.pod:948
26147 #, no-wrap
26148 msgid ""
26149 " fallocate path len\n"
26150 "\n"
26151 msgstr ""
26152
26153 # type: =head2
26154 #. type: =head2
26155 #: ../fish/guestfish-actions.pod:965
26156 msgid "fallocate64"
26157 msgstr ""
26158
26159 # type: verbatim
26160 #. type: verbatim
26161 #: ../fish/guestfish-actions.pod:967
26162 #, no-wrap
26163 msgid ""
26164 " fallocate64 path len\n"
26165 "\n"
26166 msgstr ""
26167
26168 # type: textblock
26169 #. type: textblock
26170 #: ../fish/guestfish-actions.pod:973
26171 msgid ""
26172 "Note that this call allocates disk blocks for the file.  To create a sparse "
26173 "file use L</truncate-size> instead."
26174 msgstr ""
26175
26176 # type: textblock
26177 #. type: textblock
26178 #: ../fish/guestfish-actions.pod:976
26179 msgid ""
26180 "The deprecated call L</fallocate> does the same, but owing to an oversight "
26181 "it only allowed 30 bit lengths to be specified, effectively limiting the "
26182 "maximum size of files created through that call to 1GB."
26183 msgstr ""
26184
26185 # type: =head2
26186 #. type: =head2
26187 #: ../fish/guestfish-actions.pod:985
26188 msgid "fgrep"
26189 msgstr ""
26190
26191 # type: verbatim
26192 #. type: verbatim
26193 #: ../fish/guestfish-actions.pod:987
26194 #, no-wrap
26195 msgid ""
26196 " fgrep pattern path\n"
26197 "\n"
26198 msgstr ""
26199
26200 # type: =head2
26201 #. type: =head2
26202 #: ../fish/guestfish-actions.pod:995
26203 msgid "fgrepi"
26204 msgstr ""
26205
26206 # type: verbatim
26207 #. type: verbatim
26208 #: ../fish/guestfish-actions.pod:997
26209 #, no-wrap
26210 msgid ""
26211 " fgrepi pattern path\n"
26212 "\n"
26213 msgstr ""
26214
26215 # type: =head2
26216 #. type: =head2
26217 #: ../fish/guestfish-actions.pod:1005
26218 msgid "file"
26219 msgstr ""
26220
26221 # type: verbatim
26222 #. type: verbatim
26223 #: ../fish/guestfish-actions.pod:1007
26224 #, no-wrap
26225 msgid ""
26226 " file path\n"
26227 "\n"
26228 msgstr ""
26229
26230 #. type: textblock
26231 #: ../fish/guestfish-actions.pod:1023
26232 msgid ""
26233 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
26234 "(etc), L</is-zero>."
26235 msgstr ""
26236
26237 # type: =head2
26238 #. type: =head2
26239 #: ../fish/guestfish-actions.pod:1026
26240 msgid "file-architecture"
26241 msgstr ""
26242
26243 # type: verbatim
26244 #. type: verbatim
26245 #: ../fish/guestfish-actions.pod:1028
26246 #, no-wrap
26247 msgid ""
26248 " file-architecture filename\n"
26249 "\n"
26250 msgstr ""
26251
26252 # type: =head2
26253 #. type: =head2
26254 #: ../fish/guestfish-actions.pod:1131
26255 msgid "filesize"
26256 msgstr ""
26257
26258 # type: verbatim
26259 #. type: verbatim
26260 #: ../fish/guestfish-actions.pod:1133
26261 #, no-wrap
26262 msgid ""
26263 " filesize file\n"
26264 "\n"
26265 msgstr ""
26266
26267 # type: textblock
26268 #. type: textblock
26269 #: ../fish/guestfish-actions.pod:1137
26270 msgid ""
26271 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
26272 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
26273 msgstr ""
26274
26275 # type: =head2
26276 #. type: =head2
26277 #: ../fish/guestfish-actions.pod:1141
26278 msgid "fill"
26279 msgstr ""
26280
26281 # type: verbatim
26282 #. type: verbatim
26283 #: ../fish/guestfish-actions.pod:1143
26284 #, no-wrap
26285 msgid ""
26286 " fill c len path\n"
26287 "\n"
26288 msgstr ""
26289
26290 # type: textblock
26291 #. type: textblock
26292 #: ../fish/guestfish-actions.pod:1149
26293 msgid ""
26294 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
26295 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
26296 "L</fill-pattern>."
26297 msgstr ""
26298
26299 # type: =head2
26300 #. type: =head2
26301 #: ../fish/guestfish-actions.pod:1154
26302 msgid "fill-pattern"
26303 msgstr ""
26304
26305 # type: verbatim
26306 #. type: verbatim
26307 #: ../fish/guestfish-actions.pod:1156
26308 #, no-wrap
26309 msgid ""
26310 " fill-pattern pattern len path\n"
26311 "\n"
26312 msgstr ""
26313
26314 # type: textblock
26315 #. type: textblock
26316 #: ../fish/guestfish-actions.pod:1158
26317 msgid ""
26318 "This function is like L</fill> except that it creates a new file of length "
26319 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
26320 "is truncated if necessary to ensure the length of the file is exactly C<len> "
26321 "bytes."
26322 msgstr ""
26323
26324 # type: =head2
26325 #. type: =head2
26326 #: ../fish/guestfish-actions.pod:1163
26327 msgid "find"
26328 msgstr ""
26329
26330 # type: verbatim
26331 #. type: verbatim
26332 #: ../fish/guestfish-actions.pod:1165
26333 #, no-wrap
26334 msgid ""
26335 " find directory\n"
26336 "\n"
26337 msgstr ""
26338
26339 # type: textblock
26340 #. type: textblock
26341 #: ../fish/guestfish-actions.pod:1179
26342 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
26343 msgstr ""
26344
26345 # type: textblock
26346 #. type: textblock
26347 #: ../fish/guestfish-actions.pod:1192
26348 msgid "See also L</find0>."
26349 msgstr ""
26350
26351 # type: =head2
26352 #. type: =head2
26353 #: ../fish/guestfish-actions.pod:1197
26354 msgid "find0"
26355 msgstr ""
26356
26357 # type: verbatim
26358 #. type: verbatim
26359 #: ../fish/guestfish-actions.pod:1199
26360 #, no-wrap
26361 msgid ""
26362 " find0 directory (files|-)\n"
26363 "\n"
26364 msgstr ""
26365
26366 # type: textblock
26367 #. type: textblock
26368 #: ../fish/guestfish-actions.pod:1205
26369 msgid ""
26370 "This command works the same way as L</find> with the following exceptions:"
26371 msgstr ""
26372
26373 # type: =head2
26374 #. type: =head2
26375 #: ../fish/guestfish-actions.pod:1232
26376 msgid "findfs-label"
26377 msgstr ""
26378
26379 # type: verbatim
26380 #. type: verbatim
26381 #: ../fish/guestfish-actions.pod:1234
26382 #, no-wrap
26383 msgid ""
26384 " findfs-label label\n"
26385 "\n"
26386 msgstr ""
26387
26388 # type: textblock
26389 #. type: textblock
26390 #: ../fish/guestfish-actions.pod:1240
26391 msgid "To find the label of a filesystem, use L</vfs-label>."
26392 msgstr ""
26393
26394 # type: =head2
26395 #. type: =head2
26396 #: ../fish/guestfish-actions.pod:1242
26397 msgid "findfs-uuid"
26398 msgstr ""
26399
26400 # type: verbatim
26401 #. type: verbatim
26402 #: ../fish/guestfish-actions.pod:1244
26403 #, no-wrap
26404 msgid ""
26405 " findfs-uuid uuid\n"
26406 "\n"
26407 msgstr ""
26408
26409 # type: textblock
26410 #. type: textblock
26411 #: ../fish/guestfish-actions.pod:1250
26412 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
26413 msgstr ""
26414
26415 # type: =head2
26416 #. type: =head2
26417 #: ../fish/guestfish-actions.pod:1252
26418 msgid "fsck"
26419 msgstr ""
26420
26421 # type: verbatim
26422 #. type: verbatim
26423 #: ../fish/guestfish-actions.pod:1254
26424 #, no-wrap
26425 msgid ""
26426 " fsck fstype device\n"
26427 "\n"
26428 msgstr ""
26429
26430 # type: =head2
26431 #. type: =head2
26432 #: ../fish/guestfish-actions.pod:1284
26433 msgid "get-append"
26434 msgstr ""
26435
26436 # type: verbatim
26437 #. type: verbatim
26438 #: ../fish/guestfish-actions.pod:1286
26439 #, no-wrap
26440 msgid ""
26441 " get-append\n"
26442 "\n"
26443 msgstr ""
26444
26445 #. type: =head2
26446 #: ../fish/guestfish-actions.pod:1293
26447 msgid "get-attach-method"
26448 msgstr ""
26449
26450 #. type: verbatim
26451 #: ../fish/guestfish-actions.pod:1295
26452 #, no-wrap
26453 msgid ""
26454 " get-attach-method\n"
26455 "\n"
26456 msgstr ""
26457
26458 #. type: textblock
26459 #: ../fish/guestfish-actions.pod:1297
26460 msgid "Return the current attach method.  See L</set-attach-method>."
26461 msgstr ""
26462
26463 # type: =head2
26464 #. type: =head2
26465 #: ../fish/guestfish-actions.pod:1299
26466 msgid "get-autosync"
26467 msgstr ""
26468
26469 # type: verbatim
26470 #. type: verbatim
26471 #: ../fish/guestfish-actions.pod:1301
26472 #, no-wrap
26473 msgid ""
26474 " get-autosync\n"
26475 "\n"
26476 msgstr ""
26477
26478 # type: =head2
26479 #. type: =head2
26480 #: ../fish/guestfish-actions.pod:1305
26481 msgid "get-direct"
26482 msgstr ""
26483
26484 # type: verbatim
26485 #. type: verbatim
26486 #: ../fish/guestfish-actions.pod:1307
26487 #, no-wrap
26488 msgid ""
26489 " get-direct\n"
26490 "\n"
26491 msgstr ""
26492
26493 # type: =head2
26494 #. type: =head2
26495 #: ../fish/guestfish-actions.pod:1311
26496 msgid "get-e2label"
26497 msgstr ""
26498
26499 # type: verbatim
26500 #. type: verbatim
26501 #: ../fish/guestfish-actions.pod:1313
26502 #, no-wrap
26503 msgid ""
26504 " get-e2label device\n"
26505 "\n"
26506 msgstr ""
26507
26508 # type: =head2
26509 #. type: =head2
26510 #: ../fish/guestfish-actions.pod:1325
26511 msgid "get-e2uuid"
26512 msgstr ""
26513
26514 # type: verbatim
26515 #. type: verbatim
26516 #: ../fish/guestfish-actions.pod:1327
26517 #, no-wrap
26518 msgid ""
26519 " get-e2uuid device\n"
26520 "\n"
26521 msgstr ""
26522
26523 # type: =head2
26524 #. type: =head2
26525 #: ../fish/guestfish-actions.pod:1339
26526 msgid "get-memsize"
26527 msgstr ""
26528
26529 # type: verbatim
26530 #. type: verbatim
26531 #: ../fish/guestfish-actions.pod:1341
26532 #, no-wrap
26533 msgid ""
26534 " get-memsize\n"
26535 "\n"
26536 msgstr ""
26537
26538 # type: textblock
26539 #. type: textblock
26540 #: ../fish/guestfish-actions.pod:1346
26541 msgid ""
26542 "If L</set-memsize> was not called on this handle, and if "
26543 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
26544 "value for memsize."
26545 msgstr ""
26546
26547 # type: =head2
26548 #. type: =head2
26549 #: ../fish/guestfish-actions.pod:1353
26550 msgid "get-network"
26551 msgstr ""
26552
26553 # type: verbatim
26554 #. type: verbatim
26555 #: ../fish/guestfish-actions.pod:1355
26556 #, no-wrap
26557 msgid ""
26558 " get-network\n"
26559 "\n"
26560 msgstr ""
26561
26562 # type: =head2
26563 #. type: =head2
26564 #: ../fish/guestfish-actions.pod:1359
26565 msgid "get-path"
26566 msgstr ""
26567
26568 # type: verbatim
26569 #. type: verbatim
26570 #: ../fish/guestfish-actions.pod:1361
26571 #, no-wrap
26572 msgid ""
26573 " get-path\n"
26574 "\n"
26575 msgstr ""
26576
26577 # type: =head2
26578 #. type: =head2
26579 #: ../fish/guestfish-actions.pod:1368
26580 msgid "get-pid"
26581 msgstr ""
26582
26583 # type: =head2
26584 #. type: =head2
26585 #: ../fish/guestfish-actions.pod:1370
26586 msgid "pid"
26587 msgstr ""
26588
26589 # type: verbatim
26590 #. type: verbatim
26591 #: ../fish/guestfish-actions.pod:1372
26592 #, no-wrap
26593 msgid ""
26594 " get-pid\n"
26595 "\n"
26596 msgstr ""
26597
26598 # type: =head2
26599 #. type: =head2
26600 #: ../fish/guestfish-actions.pod:1379
26601 msgid "get-qemu"
26602 msgstr ""
26603
26604 # type: verbatim
26605 #. type: verbatim
26606 #: ../fish/guestfish-actions.pod:1381
26607 #, no-wrap
26608 msgid ""
26609 " get-qemu\n"
26610 "\n"
26611 msgstr ""
26612
26613 # type: =head2
26614 #. type: =head2
26615 #: ../fish/guestfish-actions.pod:1388
26616 msgid "get-recovery-proc"
26617 msgstr ""
26618
26619 # type: verbatim
26620 #. type: verbatim
26621 #: ../fish/guestfish-actions.pod:1390
26622 #, no-wrap
26623 msgid ""
26624 " get-recovery-proc\n"
26625 "\n"
26626 msgstr ""
26627
26628 # type: =head2
26629 #. type: =head2
26630 #: ../fish/guestfish-actions.pod:1394
26631 msgid "get-selinux"
26632 msgstr ""
26633
26634 # type: verbatim
26635 #. type: verbatim
26636 #: ../fish/guestfish-actions.pod:1396
26637 #, no-wrap
26638 msgid ""
26639 " get-selinux\n"
26640 "\n"
26641 msgstr ""
26642
26643 # type: textblock
26644 #. type: textblock
26645 #: ../fish/guestfish-actions.pod:1398
26646 msgid ""
26647 "This returns the current setting of the selinux flag which is passed to the "
26648 "appliance at boot time.  See L</set-selinux>."
26649 msgstr ""
26650
26651 # type: =head2
26652 #. type: =head2
26653 #: ../fish/guestfish-actions.pod:1404
26654 msgid "get-state"
26655 msgstr ""
26656
26657 # type: verbatim
26658 #. type: verbatim
26659 #: ../fish/guestfish-actions.pod:1406
26660 #, no-wrap
26661 msgid ""
26662 " get-state\n"
26663 "\n"
26664 msgstr ""
26665
26666 # type: =head2
26667 #. type: =head2
26668 #: ../fish/guestfish-actions.pod:1413
26669 msgid "get-trace"
26670 msgstr ""
26671
26672 # type: verbatim
26673 #. type: verbatim
26674 #: ../fish/guestfish-actions.pod:1415
26675 #, no-wrap
26676 msgid ""
26677 " get-trace\n"
26678 "\n"
26679 msgstr ""
26680
26681 # type: =head2
26682 #. type: =head2
26683 #: ../fish/guestfish-actions.pod:1419
26684 msgid "get-umask"
26685 msgstr ""
26686
26687 # type: verbatim
26688 #. type: verbatim
26689 #: ../fish/guestfish-actions.pod:1421
26690 #, no-wrap
26691 msgid ""
26692 " get-umask\n"
26693 "\n"
26694 msgstr ""
26695
26696 # type: textblock
26697 #. type: textblock
26698 #: ../fish/guestfish-actions.pod:1423
26699 msgid ""
26700 "Return the current umask.  By default the umask is C<022> unless it has been "
26701 "set by calling L</umask>."
26702 msgstr ""
26703
26704 # type: =head2
26705 #. type: =head2
26706 #: ../fish/guestfish-actions.pod:1426
26707 msgid "get-verbose"
26708 msgstr ""
26709
26710 # type: verbatim
26711 #. type: verbatim
26712 #: ../fish/guestfish-actions.pod:1428
26713 #, no-wrap
26714 msgid ""
26715 " get-verbose\n"
26716 "\n"
26717 msgstr ""
26718
26719 # type: =head2
26720 #. type: =head2
26721 #: ../fish/guestfish-actions.pod:1432
26722 msgid "getcon"
26723 msgstr ""
26724
26725 # type: verbatim
26726 #. type: verbatim
26727 #: ../fish/guestfish-actions.pod:1434
26728 #, no-wrap
26729 msgid ""
26730 " getcon\n"
26731 "\n"
26732 msgstr ""
26733
26734 # type: textblock
26735 #. type: textblock
26736 #: ../fish/guestfish-actions.pod:1438
26737 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
26738 msgstr ""
26739
26740 # type: =head2
26741 #. type: =head2
26742 #: ../fish/guestfish-actions.pod:1441
26743 msgid "getxattr"
26744 msgstr ""
26745
26746 # type: verbatim
26747 #. type: verbatim
26748 #: ../fish/guestfish-actions.pod:1443
26749 #, no-wrap
26750 msgid ""
26751 " getxattr path name\n"
26752 "\n"
26753 msgstr ""
26754
26755 # type: textblock
26756 #. type: textblock
26757 #: ../fish/guestfish-actions.pod:1445
26758 msgid ""
26759 "Get a single extended attribute from file C<path> named C<name>.  This call "
26760 "follows symlinks.  If you want to lookup an extended attribute for the "
26761 "symlink itself, use L</lgetxattr>."
26762 msgstr ""
26763
26764 # type: textblock
26765 #. type: textblock
26766 #: ../fish/guestfish-actions.pod:1449 ../fish/guestfish-actions.pod:2476
26767 msgid ""
26768 "Normally it is better to get all extended attributes from a file in one go "
26769 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
26770 "buggy and do not provide a way to list out attributes.  For these "
26771 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
26772 "attributes you want in advance and call this function."
26773 msgstr ""
26774
26775 # type: textblock
26776 #. type: textblock
26777 #: ../fish/guestfish-actions.pod:1459
26778 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
26779 msgstr ""
26780
26781 # type: =head2
26782 #. type: =head2
26783 #: ../fish/guestfish-actions.pod:1461
26784 msgid "getxattrs"
26785 msgstr ""
26786
26787 # type: verbatim
26788 #. type: verbatim
26789 #: ../fish/guestfish-actions.pod:1463
26790 #, no-wrap
26791 msgid ""
26792 " getxattrs path\n"
26793 "\n"
26794 msgstr ""
26795
26796 # type: textblock
26797 #. type: textblock
26798 #: ../fish/guestfish-actions.pod:1471
26799 msgid "See also: L</lgetxattrs>, L<attr(5)>."
26800 msgstr ""
26801
26802 # type: =head2
26803 #. type: =head2
26804 #: ../fish/guestfish-actions.pod:1473
26805 msgid "glob-expand"
26806 msgstr ""
26807
26808 # type: verbatim
26809 #. type: verbatim
26810 #: ../fish/guestfish-actions.pod:1475
26811 #, no-wrap
26812 msgid ""
26813 " glob-expand pattern\n"
26814 "\n"
26815 msgstr ""
26816
26817 # type: =head2
26818 #. type: =head2
26819 #: ../fish/guestfish-actions.pod:1488
26820 msgid "grep"
26821 msgstr ""
26822
26823 # type: verbatim
26824 #. type: verbatim
26825 #: ../fish/guestfish-actions.pod:1490
26826 #, no-wrap
26827 msgid ""
26828 " grep regex path\n"
26829 "\n"
26830 msgstr ""
26831
26832 # type: =head2
26833 #. type: =head2
26834 #: ../fish/guestfish-actions.pod:1498
26835 msgid "grepi"
26836 msgstr ""
26837
26838 # type: verbatim
26839 #. type: verbatim
26840 #: ../fish/guestfish-actions.pod:1500
26841 #, no-wrap
26842 msgid ""
26843 " grepi regex path\n"
26844 "\n"
26845 msgstr ""
26846
26847 # type: =head2
26848 #. type: =head2
26849 #: ../fish/guestfish-actions.pod:1508
26850 msgid "grub-install"
26851 msgstr ""
26852
26853 # type: verbatim
26854 #. type: verbatim
26855 #: ../fish/guestfish-actions.pod:1510
26856 #, no-wrap
26857 msgid ""
26858 " grub-install root device\n"
26859 "\n"
26860 msgstr ""
26861
26862 # type: =head2
26863 #. type: =head2
26864 #: ../fish/guestfish-actions.pod:1526
26865 msgid "head"
26866 msgstr ""
26867
26868 # type: verbatim
26869 #. type: verbatim
26870 #: ../fish/guestfish-actions.pod:1528
26871 #, no-wrap
26872 msgid ""
26873 " head path\n"
26874 "\n"
26875 msgstr ""
26876
26877 # type: =head2
26878 #. type: =head2
26879 #: ../fish/guestfish-actions.pod:1536
26880 msgid "head-n"
26881 msgstr ""
26882
26883 # type: verbatim
26884 #. type: verbatim
26885 #: ../fish/guestfish-actions.pod:1538
26886 #, no-wrap
26887 msgid ""
26888 " head-n nrlines path\n"
26889 "\n"
26890 msgstr ""
26891
26892 # type: =head2
26893 #. type: =head2
26894 #: ../fish/guestfish-actions.pod:1551
26895 msgid "hexdump"
26896 msgstr ""
26897
26898 # type: verbatim
26899 #. type: verbatim
26900 #: ../fish/guestfish-actions.pod:1553
26901 #, no-wrap
26902 msgid ""
26903 " hexdump path\n"
26904 "\n"
26905 msgstr ""
26906
26907 # type: =head2
26908 #. type: =head2
26909 #: ../fish/guestfish-actions.pod:1561
26910 msgid "initrd-cat"
26911 msgstr ""
26912
26913 # type: verbatim
26914 #. type: verbatim
26915 #: ../fish/guestfish-actions.pod:1563
26916 #, no-wrap
26917 msgid ""
26918 " initrd-cat initrdpath filename\n"
26919 "\n"
26920 msgstr ""
26921
26922 # type: textblock
26923 #. type: textblock
26924 #: ../fish/guestfish-actions.pod:1575
26925 msgid "See also L</initrd-list>."
26926 msgstr ""
26927
26928 # type: =head2
26929 #. type: =head2
26930 #: ../fish/guestfish-actions.pod:1580
26931 msgid "initrd-list"
26932 msgstr ""
26933
26934 # type: verbatim
26935 #. type: verbatim
26936 #: ../fish/guestfish-actions.pod:1582
26937 #, no-wrap
26938 msgid ""
26939 " initrd-list path\n"
26940 "\n"
26941 msgstr ""
26942
26943 # type: =head2
26944 #. type: =head2
26945 #: ../fish/guestfish-actions.pod:1594
26946 msgid "inotify-add-watch"
26947 msgstr ""
26948
26949 # type: verbatim
26950 #. type: verbatim
26951 #: ../fish/guestfish-actions.pod:1596
26952 #, no-wrap
26953 msgid ""
26954 " inotify-add-watch path mask\n"
26955 "\n"
26956 msgstr ""
26957
26958 # type: =head2
26959 #. type: =head2
26960 #: ../fish/guestfish-actions.pod:1608
26961 msgid "inotify-close"
26962 msgstr ""
26963
26964 # type: verbatim
26965 #. type: verbatim
26966 #: ../fish/guestfish-actions.pod:1610
26967 #, no-wrap
26968 msgid ""
26969 " inotify-close\n"
26970 "\n"
26971 msgstr ""
26972
26973 # type: =head2
26974 #. type: =head2
26975 #: ../fish/guestfish-actions.pod:1616
26976 msgid "inotify-files"
26977 msgstr ""
26978
26979 # type: verbatim
26980 #. type: verbatim
26981 #: ../fish/guestfish-actions.pod:1618
26982 #, no-wrap
26983 msgid ""
26984 " inotify-files\n"
26985 "\n"
26986 msgstr ""
26987
26988 # type: textblock
26989 #. type: textblock
26990 #: ../fish/guestfish-actions.pod:1620
26991 msgid ""
26992 "This function is a helpful wrapper around L</inotify-read> which just "
26993 "returns a list of pathnames of objects that were touched.  The returned "
26994 "pathnames are sorted and deduplicated."
26995 msgstr ""
26996
26997 # type: =head2
26998 #. type: =head2
26999 #: ../fish/guestfish-actions.pod:1624
27000 msgid "inotify-init"
27001 msgstr ""
27002
27003 # type: verbatim
27004 #. type: verbatim
27005 #: ../fish/guestfish-actions.pod:1626
27006 #, no-wrap
27007 msgid ""
27008 " inotify-init maxevents\n"
27009 "\n"
27010 msgstr ""
27011
27012 # type: textblock
27013 #. type: textblock
27014 #: ../fish/guestfish-actions.pod:1632
27015 msgid ""
27016 "C<maxevents> is the maximum number of events which will be queued up between "
27017 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
27018 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
27019 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
27020 "but records the fact that it threw them away by setting a flag "
27021 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
27022 msgstr ""
27023
27024 # type: textblock
27025 #. type: textblock
27026 #: ../fish/guestfish-actions.pod:1642
27027 msgid ""
27028 "Before any events are generated, you have to add some watches to the "
27029 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
27030 "L</inotify-watch-all>."
27031 msgstr ""
27032
27033 # type: textblock
27034 #. type: textblock
27035 #: ../fish/guestfish-actions.pod:1648
27036 msgid ""
27037 "Queued up events should be read periodically by calling L</inotify-read> (or "
27038 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
27039 "If you don't read the events out often enough then you risk the internal "
27040 "queue overflowing."
27041 msgstr ""
27042
27043 # type: textblock
27044 #. type: textblock
27045 #: ../fish/guestfish-actions.pod:1655
27046 msgid ""
27047 "The handle should be closed after use by calling L</inotify-close>.  This "
27048 "also removes any watches automatically."
27049 msgstr ""
27050
27051 # type: =head2
27052 #. type: =head2
27053 #: ../fish/guestfish-actions.pod:1664
27054 msgid "inotify-read"
27055 msgstr ""
27056
27057 # type: verbatim
27058 #. type: verbatim
27059 #: ../fish/guestfish-actions.pod:1666
27060 #, no-wrap
27061 msgid ""
27062 " inotify-read\n"
27063 "\n"
27064 msgstr ""
27065
27066 # type: =head2
27067 #. type: =head2
27068 #: ../fish/guestfish-actions.pod:1679
27069 msgid "inotify-rm-watch"
27070 msgstr ""
27071
27072 # type: verbatim
27073 #. type: verbatim
27074 #: ../fish/guestfish-actions.pod:1681
27075 #, no-wrap
27076 msgid ""
27077 " inotify-rm-watch wd\n"
27078 "\n"
27079 msgstr ""
27080
27081 # type: textblock
27082 #. type: textblock
27083 #: ../fish/guestfish-actions.pod:1683
27084 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
27085 msgstr ""
27086
27087 # type: =head2
27088 #. type: =head2
27089 #: ../fish/guestfish-actions.pod:1686
27090 msgid "inspect-get-arch"
27091 msgstr ""
27092
27093 # type: verbatim
27094 #. type: verbatim
27095 #: ../fish/guestfish-actions.pod:1688
27096 #, no-wrap
27097 msgid ""
27098 " inspect-get-arch root\n"
27099 "\n"
27100 msgstr ""
27101
27102 # type: textblock
27103 #. type: textblock
27104 #: ../fish/guestfish-actions.pod:1690
27105 msgid ""
27106 "This returns the architecture of the inspected operating system.  The "
27107 "possible return values are listed under L</file-architecture>."
27108 msgstr ""
27109
27110 # type: =head2
27111 #. type: =head2
27112 #: ../fish/guestfish-actions.pod:1699
27113 msgid "inspect-get-distro"
27114 msgstr ""
27115
27116 # type: verbatim
27117 #. type: verbatim
27118 #: ../fish/guestfish-actions.pod:1701
27119 #, no-wrap
27120 msgid ""
27121 " inspect-get-distro root\n"
27122 "\n"
27123 msgstr ""
27124
27125 #. type: =head2
27126 #: ../fish/guestfish-actions.pod:1782
27127 msgid "inspect-get-drive-mappings"
27128 msgstr ""
27129
27130 #. type: verbatim
27131 #: ../fish/guestfish-actions.pod:1784
27132 #, no-wrap
27133 msgid ""
27134 " inspect-get-drive-mappings root\n"
27135 "\n"
27136 msgstr ""
27137
27138 #. type: textblock
27139 #: ../fish/guestfish-actions.pod:1811
27140 msgid ""
27141 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
27142 "get-mountpoints>, L</inspect-get-filesystems>."
27143 msgstr ""
27144
27145 # type: =head2
27146 #. type: =head2
27147 #: ../fish/guestfish-actions.pod:1815
27148 msgid "inspect-get-filesystems"
27149 msgstr ""
27150
27151 # type: verbatim
27152 #. type: verbatim
27153 #: ../fish/guestfish-actions.pod:1817
27154 #, no-wrap
27155 msgid ""
27156 " inspect-get-filesystems root\n"
27157 "\n"
27158 msgstr ""
27159
27160 # type: textblock
27161 #. type: textblock
27162 #: ../fish/guestfish-actions.pod:1827
27163 msgid ""
27164 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
27165 "get-mountpoints>."
27166 msgstr ""
27167
27168 #. type: =head2
27169 #: ../fish/guestfish-actions.pod:1830
27170 msgid "inspect-get-format"
27171 msgstr ""
27172
27173 #. type: verbatim
27174 #: ../fish/guestfish-actions.pod:1832
27175 #, no-wrap
27176 msgid ""
27177 " inspect-get-format root\n"
27178 "\n"
27179 msgstr ""
27180
27181 # type: =head2
27182 #. type: =head2
27183 #: ../fish/guestfish-actions.pod:1861
27184 msgid "inspect-get-hostname"
27185 msgstr ""
27186
27187 # type: verbatim
27188 #. type: verbatim
27189 #: ../fish/guestfish-actions.pod:1863
27190 #, no-wrap
27191 msgid ""
27192 " inspect-get-hostname root\n"
27193 "\n"
27194 msgstr ""
27195
27196 #. type: =head2
27197 #: ../fish/guestfish-actions.pod:1873
27198 msgid "inspect-get-icon"
27199 msgstr ""
27200
27201 #. type: verbatim
27202 #: ../fish/guestfish-actions.pod:1875
27203 #, no-wrap
27204 msgid ""
27205 " inspect-get-icon root [favicon:..] [highquality:..]\n"
27206 "\n"
27207 msgstr ""
27208
27209 # type: =head2
27210 #. type: =head2
27211 #: ../fish/guestfish-actions.pod:1939
27212 msgid "inspect-get-major-version"
27213 msgstr ""
27214
27215 # type: verbatim
27216 #. type: verbatim
27217 #: ../fish/guestfish-actions.pod:1941
27218 #, no-wrap
27219 msgid ""
27220 " inspect-get-major-version root\n"
27221 "\n"
27222 msgstr ""
27223
27224 # type: =head2
27225 #. type: =head2
27226 #: ../fish/guestfish-actions.pod:1957
27227 msgid "inspect-get-minor-version"
27228 msgstr ""
27229
27230 # type: verbatim
27231 #. type: verbatim
27232 #: ../fish/guestfish-actions.pod:1959
27233 #, no-wrap
27234 msgid ""
27235 " inspect-get-minor-version root\n"
27236 "\n"
27237 msgstr ""
27238
27239 # type: textblock
27240 #. type: textblock
27241 #: ../fish/guestfish-actions.pod:1966
27242 msgid ""
27243 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
27244 "get-major-version>."
27245 msgstr ""
27246
27247 # type: =head2
27248 #. type: =head2
27249 #: ../fish/guestfish-actions.pod:1969
27250 msgid "inspect-get-mountpoints"
27251 msgstr ""
27252
27253 # type: verbatim
27254 #. type: verbatim
27255 #: ../fish/guestfish-actions.pod:1971
27256 #, no-wrap
27257 msgid ""
27258 " inspect-get-mountpoints root\n"
27259 "\n"
27260 msgstr ""
27261
27262 #. type: textblock
27263 #: ../fish/guestfish-actions.pod:1990
27264 msgid ""
27265 "For operating systems like Windows which still use drive letters, this call "
27266 "will only return an entry for the first drive \"mounted on\" C</>.  For "
27267 "information about the mapping of drive letters to partitions, see L</inspect-"
27268 "get-drive-mappings>."
27269 msgstr ""
27270
27271 # type: textblock
27272 #. type: textblock
27273 #: ../fish/guestfish-actions.pod:1996
27274 msgid ""
27275 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
27276 "get-filesystems>."
27277 msgstr ""
27278
27279 # type: =head2
27280 #. type: =head2
27281 #: ../fish/guestfish-actions.pod:1999
27282 msgid "inspect-get-package-format"
27283 msgstr ""
27284
27285 # type: verbatim
27286 #. type: verbatim
27287 #: ../fish/guestfish-actions.pod:2001
27288 #, no-wrap
27289 msgid ""
27290 " inspect-get-package-format root\n"
27291 "\n"
27292 msgstr ""
27293
27294 # type: textblock
27295 #. type: textblock
27296 #: ../fish/guestfish-actions.pod:2003
27297 msgid ""
27298 "This function and L</inspect-get-package-management> return the package "
27299 "format and package management tool used by the inspected operating system.  "
27300 "For example for Fedora these functions would return C<rpm> (package format) "
27301 "and C<yum> (package management)."
27302 msgstr ""
27303
27304 # type: =head2
27305 #. type: =head2
27306 #: ../fish/guestfish-actions.pod:2018
27307 msgid "inspect-get-package-management"
27308 msgstr ""
27309
27310 # type: verbatim
27311 #. type: verbatim
27312 #: ../fish/guestfish-actions.pod:2020
27313 #, no-wrap
27314 msgid ""
27315 " inspect-get-package-management root\n"
27316 "\n"
27317 msgstr ""
27318
27319 # type: textblock
27320 #. type: textblock
27321 #: ../fish/guestfish-actions.pod:2022
27322 msgid ""
27323 "L</inspect-get-package-format> and this function return the package format "
27324 "and package management tool used by the inspected operating system.  For "
27325 "example for Fedora these functions would return C<rpm> (package format) and "
27326 "C<yum> (package management)."
27327 msgstr ""
27328
27329 # type: =head2
27330 #. type: =head2
27331 #: ../fish/guestfish-actions.pod:2039
27332 msgid "inspect-get-product-name"
27333 msgstr ""
27334
27335 # type: verbatim
27336 #. type: verbatim
27337 #: ../fish/guestfish-actions.pod:2041
27338 #, no-wrap
27339 msgid ""
27340 " inspect-get-product-name root\n"
27341 "\n"
27342 msgstr ""
27343
27344 #. type: =head2
27345 #: ../fish/guestfish-actions.pod:2053
27346 msgid "inspect-get-product-variant"
27347 msgstr ""
27348
27349 #. type: verbatim
27350 #: ../fish/guestfish-actions.pod:2055
27351 #, no-wrap
27352 msgid ""
27353 " inspect-get-product-variant root\n"
27354 "\n"
27355 msgstr ""
27356
27357 #. type: textblock
27358 #: ../fish/guestfish-actions.pod:2076
27359 msgid ""
27360 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
27361 "get-product-name>, L</inspect-get-major-version>."
27362 msgstr ""
27363
27364 # type: =head2
27365 #. type: =head2
27366 #: ../fish/guestfish-actions.pod:2080
27367 msgid "inspect-get-roots"
27368 msgstr ""
27369
27370 # type: verbatim
27371 #. type: verbatim
27372 #: ../fish/guestfish-actions.pod:2082
27373 #, no-wrap
27374 msgid ""
27375 " inspect-get-roots\n"
27376 "\n"
27377 msgstr ""
27378
27379 # type: textblock
27380 #. type: textblock
27381 #: ../fish/guestfish-actions.pod:2084
27382 msgid ""
27383 "This function is a convenient way to get the list of root devices, as "
27384 "returned from a previous call to L</inspect-os>, but without redoing the "
27385 "whole inspection process."
27386 msgstr ""
27387
27388 # type: textblock
27389 #. type: textblock
27390 #: ../fish/guestfish-actions.pod:2088
27391 msgid ""
27392 "This returns an empty list if either no root devices were found or the "
27393 "caller has not called L</inspect-os>."
27394 msgstr ""
27395
27396 # type: =head2
27397 #. type: =head2
27398 #: ../fish/guestfish-actions.pod:2093
27399 msgid "inspect-get-type"
27400 msgstr ""
27401
27402 # type: verbatim
27403 #. type: verbatim
27404 #: ../fish/guestfish-actions.pod:2095
27405 #, no-wrap
27406 msgid ""
27407 " inspect-get-type root\n"
27408 "\n"
27409 msgstr ""
27410
27411 #. type: =head2
27412 #: ../fish/guestfish-actions.pod:2125
27413 msgid "inspect-get-windows-current-control-set"
27414 msgstr ""
27415
27416 #. type: verbatim
27417 #: ../fish/guestfish-actions.pod:2127
27418 #, no-wrap
27419 msgid ""
27420 " inspect-get-windows-current-control-set root\n"
27421 "\n"
27422 msgstr ""
27423
27424 # type: =head2
27425 #. type: =head2
27426 #: ../fish/guestfish-actions.pod:2138
27427 msgid "inspect-get-windows-systemroot"
27428 msgstr ""
27429
27430 # type: verbatim
27431 #. type: verbatim
27432 #: ../fish/guestfish-actions.pod:2140
27433 #, no-wrap
27434 msgid ""
27435 " inspect-get-windows-systemroot root\n"
27436 "\n"
27437 msgstr ""
27438
27439 #. type: =head2
27440 #: ../fish/guestfish-actions.pod:2151
27441 msgid "inspect-is-live"
27442 msgstr ""
27443
27444 #. type: verbatim
27445 #: ../fish/guestfish-actions.pod:2153
27446 #, no-wrap
27447 msgid ""
27448 " inspect-is-live root\n"
27449 "\n"
27450 msgstr ""
27451
27452 #. type: textblock
27453 #: ../fish/guestfish-actions.pod:2155
27454 msgid ""
27455 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
27456 "then this returns true if a live image was detected on the disk."
27457 msgstr ""
27458
27459 #. type: =head2
27460 #: ../fish/guestfish-actions.pod:2161
27461 msgid "inspect-is-multipart"
27462 msgstr ""
27463
27464 #. type: verbatim
27465 #: ../fish/guestfish-actions.pod:2163
27466 #, no-wrap
27467 msgid ""
27468 " inspect-is-multipart root\n"
27469 "\n"
27470 msgstr ""
27471
27472 #. type: textblock
27473 #: ../fish/guestfish-actions.pod:2165
27474 msgid ""
27475 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
27476 "then this returns true if the disk is part of a set."
27477 msgstr ""
27478
27479 #. type: =head2
27480 #: ../fish/guestfish-actions.pod:2171
27481 msgid "inspect-is-netinst"
27482 msgstr ""
27483
27484 #. type: verbatim
27485 #: ../fish/guestfish-actions.pod:2173
27486 #, no-wrap
27487 msgid ""
27488 " inspect-is-netinst root\n"
27489 "\n"
27490 msgstr ""
27491
27492 #. type: textblock
27493 #: ../fish/guestfish-actions.pod:2175
27494 msgid ""
27495 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
27496 "then this returns true if the disk is a network installer, ie. not a self-"
27497 "contained install CD but one which is likely to require network access to "
27498 "complete the install."
27499 msgstr ""
27500
27501 # type: =head2
27502 #. type: =head2
27503 #: ../fish/guestfish-actions.pod:2183
27504 msgid "inspect-list-applications"
27505 msgstr ""
27506
27507 # type: verbatim
27508 #. type: verbatim
27509 #: ../fish/guestfish-actions.pod:2185
27510 #, no-wrap
27511 msgid ""
27512 " inspect-list-applications root\n"
27513 "\n"
27514 msgstr ""
27515
27516 # type: textblock
27517 #. type: textblock
27518 #: ../fish/guestfish-actions.pod:2189
27519 msgid ""
27520 "I<Note:> This call works differently from other parts of the inspection "
27521 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
27522 "then mount up the disks, before calling this.  Listing applications is a "
27523 "significantly more difficult operation which requires access to the full "
27524 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
27525 "are just returning data cached in the libguestfs handle, this call actually "
27526 "reads parts of the mounted filesystems during the call."
27527 msgstr ""
27528
27529 # type: =head2
27530 #. type: =head2
27531 #: ../fish/guestfish-actions.pod:2279
27532 msgid "inspect-os"
27533 msgstr ""
27534
27535 # type: verbatim
27536 #. type: verbatim
27537 #: ../fish/guestfish-actions.pod:2281
27538 #, no-wrap
27539 msgid ""
27540 " inspect-os\n"
27541 "\n"
27542 msgstr ""
27543
27544 # type: textblock
27545 #. type: textblock
27546 #: ../fish/guestfish-actions.pod:2296
27547 msgid ""
27548 "You can pass the root string(s) returned to other L</inspect-get-*> "
27549 "functions in order to query further information about each operating system, "
27550 "such as the name and version."
27551 msgstr ""
27552
27553 # type: textblock
27554 #. type: textblock
27555 #: ../fish/guestfish-actions.pod:2301
27556 msgid ""
27557 "This function uses other libguestfs features such as L</mount-ro> and L</"
27558 "umount-all> in order to mount and unmount filesystems and look at the "
27559 "contents.  This should be called with no disks currently mounted.  The "
27560 "function may also use Augeas, so any existing Augeas handle will be closed."
27561 msgstr ""
27562
27563 # type: textblock
27564 #. type: textblock
27565 #: ../fish/guestfish-actions.pod:2313 ../fish/guestfish-actions.pod:2511
27566 #: ../fish/guestfish-actions.pod:2557
27567 msgid "See also L</list-filesystems>."
27568 msgstr ""
27569
27570 # type: =head2
27571 #. type: =head2
27572 #: ../fish/guestfish-actions.pod:2315
27573 msgid "is-blockdev"
27574 msgstr ""
27575
27576 # type: verbatim
27577 #. type: verbatim
27578 #: ../fish/guestfish-actions.pod:2317
27579 #, no-wrap
27580 msgid ""
27581 " is-blockdev path\n"
27582 "\n"
27583 msgstr ""
27584
27585 # type: textblock
27586 #. type: textblock
27587 #: ../fish/guestfish-actions.pod:2322 ../fish/guestfish-actions.pod:2340
27588 #: ../fish/guestfish-actions.pod:2359 ../fish/guestfish-actions.pod:2368
27589 #: ../fish/guestfish-actions.pod:2378 ../fish/guestfish-actions.pod:2412
27590 #: ../fish/guestfish-actions.pod:2421
27591 msgid "See also L</stat>."
27592 msgstr ""
27593
27594 # type: =head2
27595 #. type: =head2
27596 #: ../fish/guestfish-actions.pod:2324
27597 msgid "is-busy"
27598 msgstr ""
27599
27600 # type: verbatim
27601 #. type: verbatim
27602 #: ../fish/guestfish-actions.pod:2326
27603 #, no-wrap
27604 msgid ""
27605 " is-busy\n"
27606 "\n"
27607 msgstr ""
27608
27609 # type: =head2
27610 #. type: =head2
27611 #: ../fish/guestfish-actions.pod:2333
27612 msgid "is-chardev"
27613 msgstr ""
27614
27615 # type: verbatim
27616 #. type: verbatim
27617 #: ../fish/guestfish-actions.pod:2335
27618 #, no-wrap
27619 msgid ""
27620 " is-chardev path\n"
27621 "\n"
27622 msgstr ""
27623
27624 # type: =head2
27625 #. type: =head2
27626 #: ../fish/guestfish-actions.pod:2342
27627 msgid "is-config"
27628 msgstr ""
27629
27630 # type: verbatim
27631 #. type: verbatim
27632 #: ../fish/guestfish-actions.pod:2344
27633 #, no-wrap
27634 msgid ""
27635 " is-config\n"
27636 "\n"
27637 msgstr ""
27638
27639 # type: =head2
27640 #. type: =head2
27641 #: ../fish/guestfish-actions.pod:2351
27642 msgid "is-dir"
27643 msgstr ""
27644
27645 # type: verbatim
27646 #. type: verbatim
27647 #: ../fish/guestfish-actions.pod:2353
27648 #, no-wrap
27649 msgid ""
27650 " is-dir path\n"
27651 "\n"
27652 msgstr ""
27653
27654 # type: =head2
27655 #. type: =head2
27656 #: ../fish/guestfish-actions.pod:2361
27657 msgid "is-fifo"
27658 msgstr ""
27659
27660 # type: verbatim
27661 #. type: verbatim
27662 #: ../fish/guestfish-actions.pod:2363
27663 #, no-wrap
27664 msgid ""
27665 " is-fifo path\n"
27666 "\n"
27667 msgstr ""
27668
27669 # type: =head2
27670 #. type: =head2
27671 #: ../fish/guestfish-actions.pod:2370
27672 msgid "is-file"
27673 msgstr ""
27674
27675 # type: verbatim
27676 #. type: verbatim
27677 #: ../fish/guestfish-actions.pod:2372
27678 #, no-wrap
27679 msgid ""
27680 " is-file path\n"
27681 "\n"
27682 msgstr ""
27683
27684 # type: =head2
27685 #. type: =head2
27686 #: ../fish/guestfish-actions.pod:2380
27687 msgid "is-launching"
27688 msgstr ""
27689
27690 # type: verbatim
27691 #. type: verbatim
27692 #: ../fish/guestfish-actions.pod:2382
27693 #, no-wrap
27694 msgid ""
27695 " is-launching\n"
27696 "\n"
27697 msgstr ""
27698
27699 # type: =head2
27700 #. type: =head2
27701 #: ../fish/guestfish-actions.pod:2389
27702 msgid "is-lv"
27703 msgstr ""
27704
27705 # type: verbatim
27706 #. type: verbatim
27707 #: ../fish/guestfish-actions.pod:2391
27708 #, no-wrap
27709 msgid ""
27710 " is-lv device\n"
27711 "\n"
27712 msgstr ""
27713
27714 # type: =head2
27715 #. type: =head2
27716 #: ../fish/guestfish-actions.pod:2396
27717 msgid "is-ready"
27718 msgstr ""
27719
27720 # type: verbatim
27721 #. type: verbatim
27722 #: ../fish/guestfish-actions.pod:2398
27723 #, no-wrap
27724 msgid ""
27725 " is-ready\n"
27726 "\n"
27727 msgstr ""
27728
27729 # type: =head2
27730 #. type: =head2
27731 #: ../fish/guestfish-actions.pod:2405
27732 msgid "is-socket"
27733 msgstr ""
27734
27735 # type: verbatim
27736 #. type: verbatim
27737 #: ../fish/guestfish-actions.pod:2407
27738 #, no-wrap
27739 msgid ""
27740 " is-socket path\n"
27741 "\n"
27742 msgstr ""
27743
27744 # type: =head2
27745 #. type: =head2
27746 #: ../fish/guestfish-actions.pod:2414
27747 msgid "is-symlink"
27748 msgstr ""
27749
27750 # type: verbatim
27751 #. type: verbatim
27752 #: ../fish/guestfish-actions.pod:2416
27753 #, no-wrap
27754 msgid ""
27755 " is-symlink path\n"
27756 "\n"
27757 msgstr ""
27758
27759 #. type: =head2
27760 #: ../fish/guestfish-actions.pod:2423
27761 msgid "is-zero"
27762 msgstr ""
27763
27764 #. type: verbatim
27765 #: ../fish/guestfish-actions.pod:2425
27766 #, no-wrap
27767 msgid ""
27768 " is-zero path\n"
27769 "\n"
27770 msgstr ""
27771
27772 #. type: =head2
27773 #: ../fish/guestfish-actions.pod:2430
27774 msgid "is-zero-device"
27775 msgstr ""
27776
27777 #. type: verbatim
27778 #: ../fish/guestfish-actions.pod:2432
27779 #, no-wrap
27780 msgid ""
27781 " is-zero-device device\n"
27782 "\n"
27783 msgstr ""
27784
27785 # type: =head2
27786 #. type: =head2
27787 #: ../fish/guestfish-actions.pod:2438
27788 msgid "kill-subprocess"
27789 msgstr ""
27790
27791 # type: verbatim
27792 #. type: verbatim
27793 #: ../fish/guestfish-actions.pod:2440
27794 #, no-wrap
27795 msgid ""
27796 " kill-subprocess\n"
27797 "\n"
27798 msgstr ""
27799
27800 # type: =head2
27801 #. type: =head2
27802 #: ../fish/guestfish-actions.pod:2444
27803 msgid "launch"
27804 msgstr ""
27805
27806 # type: =head2
27807 #. type: =head2
27808 #: ../fish/guestfish-actions.pod:2446
27809 msgid "run"
27810 msgstr ""
27811
27812 # type: verbatim
27813 #. type: verbatim
27814 #: ../fish/guestfish-actions.pod:2448
27815 #, no-wrap
27816 msgid ""
27817 " launch\n"
27818 "\n"
27819 msgstr ""
27820
27821 # type: =head2
27822 #. type: =head2
27823 #: ../fish/guestfish-actions.pod:2456
27824 msgid "lchown"
27825 msgstr ""
27826
27827 # type: verbatim
27828 #. type: verbatim
27829 #: ../fish/guestfish-actions.pod:2458
27830 #, no-wrap
27831 msgid ""
27832 " lchown owner group path\n"
27833 "\n"
27834 msgstr ""
27835
27836 # type: textblock
27837 #. type: textblock
27838 #: ../fish/guestfish-actions.pod:2460
27839 msgid ""
27840 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
27841 "chown> but if C<path> is a symlink then the link itself is changed, not the "
27842 "target."
27843 msgstr ""
27844
27845 # type: =head2
27846 #. type: =head2
27847 #: ../fish/guestfish-actions.pod:2468
27848 msgid "lgetxattr"
27849 msgstr ""
27850
27851 # type: verbatim
27852 #. type: verbatim
27853 #: ../fish/guestfish-actions.pod:2470
27854 #, no-wrap
27855 msgid ""
27856 " lgetxattr path name\n"
27857 "\n"
27858 msgstr ""
27859
27860 # type: textblock
27861 #. type: textblock
27862 #: ../fish/guestfish-actions.pod:2486
27863 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
27864 msgstr ""
27865
27866 # type: =head2
27867 #. type: =head2
27868 #: ../fish/guestfish-actions.pod:2488
27869 msgid "lgetxattrs"
27870 msgstr ""
27871
27872 # type: verbatim
27873 #. type: verbatim
27874 #: ../fish/guestfish-actions.pod:2490
27875 #, no-wrap
27876 msgid ""
27877 " lgetxattrs path\n"
27878 "\n"
27879 msgstr ""
27880
27881 # type: textblock
27882 #. type: textblock
27883 #: ../fish/guestfish-actions.pod:2492
27884 msgid ""
27885 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
27886 "it returns the extended attributes of the link itself."
27887 msgstr ""
27888
27889 #. type: =head2
27890 #: ../fish/guestfish-actions.pod:2496
27891 msgid "list-9p"
27892 msgstr ""
27893
27894 #. type: verbatim
27895 #: ../fish/guestfish-actions.pod:2498
27896 #, no-wrap
27897 msgid ""
27898 " list-9p\n"
27899 "\n"
27900 msgstr ""
27901
27902 # type: =head2
27903 #. type: =head2
27904 #: ../fish/guestfish-actions.pod:2503
27905 msgid "list-devices"
27906 msgstr ""
27907
27908 # type: verbatim
27909 #. type: verbatim
27910 #: ../fish/guestfish-actions.pod:2505
27911 #, no-wrap
27912 msgid ""
27913 " list-devices\n"
27914 "\n"
27915 msgstr ""
27916
27917 # type: =head2
27918 #. type: =head2
27919 #: ../fish/guestfish-actions.pod:2513
27920 msgid "list-filesystems"
27921 msgstr ""
27922
27923 # type: verbatim
27924 #. type: verbatim
27925 #: ../fish/guestfish-actions.pod:2515
27926 #, no-wrap
27927 msgid ""
27928 " list-filesystems\n"
27929 "\n"
27930 msgstr ""
27931
27932 # type: textblock
27933 #. type: textblock
27934 #: ../fish/guestfish-actions.pod:2534
27935 msgid ""
27936 "This command runs other libguestfs commands, which might include L</mount> "
27937 "and L</umount>, and therefore you should use this soon after launch and only "
27938 "when nothing is mounted."
27939 msgstr ""
27940
27941 # type: textblock
27942 #. type: textblock
27943 #: ../fish/guestfish-actions.pod:2538
27944 msgid ""
27945 "Not all of the filesystems returned will be mountable.  In particular, swap "
27946 "partitions are returned in the list.  Also this command does not check that "
27947 "each filesystem found is valid and mountable, and some filesystems might be "
27948 "mountable but require special options.  Filesystems may not all belong to a "
27949 "single logical operating system (use L</inspect-os> to look for OSes)."
27950 msgstr ""
27951
27952 # type: =head2
27953 #. type: =head2
27954 #: ../fish/guestfish-actions.pod:2546
27955 msgid "list-partitions"
27956 msgstr ""
27957
27958 # type: verbatim
27959 #. type: verbatim
27960 #: ../fish/guestfish-actions.pod:2548
27961 #, no-wrap
27962 msgid ""
27963 " list-partitions\n"
27964 "\n"
27965 msgstr ""
27966
27967 # type: textblock
27968 #. type: textblock
27969 #: ../fish/guestfish-actions.pod:2554
27970 msgid ""
27971 "This does not return logical volumes.  For that you will need to call L</"
27972 "lvs>."
27973 msgstr ""
27974
27975 # type: =head2
27976 #. type: =head2
27977 #: ../fish/guestfish-actions.pod:2559
27978 msgid "ll"
27979 msgstr ""
27980
27981 # type: verbatim
27982 #. type: verbatim
27983 #: ../fish/guestfish-actions.pod:2561
27984 #, no-wrap
27985 msgid ""
27986 " ll directory\n"
27987 "\n"
27988 msgstr ""
27989
27990 # type: =head2
27991 #. type: =head2
27992 #: ../fish/guestfish-actions.pod:2569
27993 msgid "ln"
27994 msgstr ""
27995
27996 # type: verbatim
27997 #. type: verbatim
27998 #: ../fish/guestfish-actions.pod:2571
27999 #, no-wrap
28000 msgid ""
28001 " ln target linkname\n"
28002 "\n"
28003 msgstr ""
28004
28005 # type: =head2
28006 #. type: =head2
28007 #: ../fish/guestfish-actions.pod:2575
28008 msgid "ln-f"
28009 msgstr ""
28010
28011 # type: verbatim
28012 #. type: verbatim
28013 #: ../fish/guestfish-actions.pod:2577
28014 #, no-wrap
28015 msgid ""
28016 " ln-f target linkname\n"
28017 "\n"
28018 msgstr ""
28019
28020 # type: =head2
28021 #. type: =head2
28022 #: ../fish/guestfish-actions.pod:2582
28023 msgid "ln-s"
28024 msgstr ""
28025
28026 # type: verbatim
28027 #. type: verbatim
28028 #: ../fish/guestfish-actions.pod:2584
28029 #, no-wrap
28030 msgid ""
28031 " ln-s target linkname\n"
28032 "\n"
28033 msgstr ""
28034
28035 # type: =head2
28036 #. type: =head2
28037 #: ../fish/guestfish-actions.pod:2588
28038 msgid "ln-sf"
28039 msgstr ""
28040
28041 # type: verbatim
28042 #. type: verbatim
28043 #: ../fish/guestfish-actions.pod:2590
28044 #, no-wrap
28045 msgid ""
28046 " ln-sf target linkname\n"
28047 "\n"
28048 msgstr ""
28049
28050 # type: =head2
28051 #. type: =head2
28052 #: ../fish/guestfish-actions.pod:2595
28053 msgid "lremovexattr"
28054 msgstr ""
28055
28056 # type: verbatim
28057 #. type: verbatim
28058 #: ../fish/guestfish-actions.pod:2597
28059 #, no-wrap
28060 msgid ""
28061 " lremovexattr xattr path\n"
28062 "\n"
28063 msgstr ""
28064
28065 # type: textblock
28066 #. type: textblock
28067 #: ../fish/guestfish-actions.pod:2599
28068 msgid ""
28069 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
28070 "it removes an extended attribute of the link itself."
28071 msgstr ""
28072
28073 # type: =head2
28074 #. type: =head2
28075 #: ../fish/guestfish-actions.pod:2603
28076 msgid "ls"
28077 msgstr ""
28078
28079 # type: verbatim
28080 #. type: verbatim
28081 #: ../fish/guestfish-actions.pod:2605
28082 #, no-wrap
28083 msgid ""
28084 " ls directory\n"
28085 "\n"
28086 msgstr ""
28087
28088 # type: textblock
28089 #. type: textblock
28090 #: ../fish/guestfish-actions.pod:2611
28091 msgid ""
28092 "This command is mostly useful for interactive sessions.  Programs should "
28093 "probably use L</readdir> instead."
28094 msgstr ""
28095
28096 # type: =head2
28097 #. type: =head2
28098 #: ../fish/guestfish-actions.pod:2614
28099 msgid "lsetxattr"
28100 msgstr ""
28101
28102 # type: verbatim
28103 #. type: verbatim
28104 #: ../fish/guestfish-actions.pod:2616
28105 #, no-wrap
28106 msgid ""
28107 " lsetxattr xattr val vallen path\n"
28108 "\n"
28109 msgstr ""
28110
28111 # type: textblock
28112 #. type: textblock
28113 #: ../fish/guestfish-actions.pod:2618
28114 msgid ""
28115 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
28116 "sets an extended attribute of the link itself."
28117 msgstr ""
28118
28119 # type: =head2
28120 #. type: =head2
28121 #: ../fish/guestfish-actions.pod:2622
28122 msgid "lstat"
28123 msgstr ""
28124
28125 # type: verbatim
28126 #. type: verbatim
28127 #: ../fish/guestfish-actions.pod:2624
28128 #, no-wrap
28129 msgid ""
28130 " lstat path\n"
28131 "\n"
28132 msgstr ""
28133
28134 # type: textblock
28135 #. type: textblock
28136 #: ../fish/guestfish-actions.pod:2628
28137 msgid ""
28138 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
28139 "the link is stat-ed, not the file it refers to."
28140 msgstr ""
28141
28142 # type: =head2
28143 #. type: =head2
28144 #: ../fish/guestfish-actions.pod:2634
28145 msgid "lstatlist"
28146 msgstr ""
28147
28148 # type: verbatim
28149 #. type: verbatim
28150 #: ../fish/guestfish-actions.pod:2636
28151 #, no-wrap
28152 msgid ""
28153 " lstatlist path 'names ...'\n"
28154 "\n"
28155 msgstr ""
28156
28157 # type: textblock
28158 #. type: textblock
28159 #: ../fish/guestfish-actions.pod:2638
28160 msgid ""
28161 "This call allows you to perform the L</lstat> operation on multiple files, "
28162 "where all files are in the directory C<path>.  C<names> is the list of files "
28163 "from this directory."
28164 msgstr ""
28165
28166 # type: textblock
28167 #. type: textblock
28168 #: ../fish/guestfish-actions.pod:2647
28169 msgid ""
28170 "This call is intended for programs that want to efficiently list a directory "
28171 "contents without making many round-trips.  See also L</lxattrlist> for a "
28172 "similarly efficient call for getting extended attributes.  Very long "
28173 "directory listings might cause the protocol message size to be exceeded, "
28174 "causing this call to fail.  The caller must split up such requests into "
28175 "smaller groups of names."
28176 msgstr ""
28177
28178 # type: =head2
28179 #. type: =head2
28180 #: ../fish/guestfish-actions.pod:2655
28181 msgid "luks-add-key"
28182 msgstr ""
28183
28184 # type: verbatim
28185 #. type: verbatim
28186 #: ../fish/guestfish-actions.pod:2657
28187 #, no-wrap
28188 msgid ""
28189 " luks-add-key device keyslot\n"
28190 "\n"
28191 msgstr ""
28192
28193 # type: textblock
28194 #. type: textblock
28195 #: ../fish/guestfish-actions.pod:2664
28196 msgid ""
28197 "Note that if C<keyslot> already contains a key, then this command will "
28198 "fail.  You have to use L</luks-kill-slot> first to remove that key."
28199 msgstr ""
28200
28201 # type: textblock
28202 #. type: textblock
28203 #: ../fish/guestfish-actions.pod:2668 ../fish/guestfish-actions.pod:2690
28204 #: ../fish/guestfish-actions.pod:2703 ../fish/guestfish-actions.pod:2717
28205 #: ../fish/guestfish-actions.pod:2740 ../fish/guestfish-actions.pod:2750
28206 msgid ""
28207 "This command has one or more key or passphrase parameters.  Guestfish will "
28208 "prompt for these separately."
28209 msgstr ""
28210
28211 # type: =head2
28212 #. type: =head2
28213 #: ../fish/guestfish-actions.pod:2671
28214 msgid "luks-close"
28215 msgstr ""
28216
28217 # type: verbatim
28218 #. type: verbatim
28219 #: ../fish/guestfish-actions.pod:2673
28220 #, no-wrap
28221 msgid ""
28222 " luks-close device\n"
28223 "\n"
28224 msgstr ""
28225
28226 # type: textblock
28227 #. type: textblock
28228 #: ../fish/guestfish-actions.pod:2675
28229 msgid ""
28230 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
28231 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
28232 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
28233 "block device."
28234 msgstr ""
28235
28236 # type: =head2
28237 #. type: =head2
28238 #: ../fish/guestfish-actions.pod:2681
28239 msgid "luks-format"
28240 msgstr ""
28241
28242 # type: verbatim
28243 #. type: verbatim
28244 #: ../fish/guestfish-actions.pod:2683
28245 #, no-wrap
28246 msgid ""
28247 " luks-format device keyslot\n"
28248 "\n"
28249 msgstr ""
28250
28251 # type: =head2
28252 #. type: =head2
28253 #: ../fish/guestfish-actions.pod:2696
28254 msgid "luks-format-cipher"
28255 msgstr ""
28256
28257 # type: verbatim
28258 #. type: verbatim
28259 #: ../fish/guestfish-actions.pod:2698
28260 #, no-wrap
28261 msgid ""
28262 " luks-format-cipher device keyslot cipher\n"
28263 "\n"
28264 msgstr ""
28265
28266 # type: textblock
28267 #. type: textblock
28268 #: ../fish/guestfish-actions.pod:2700
28269 msgid ""
28270 "This command is the same as L</luks-format> but it also allows you to set "
28271 "the C<cipher> used."
28272 msgstr ""
28273
28274 # type: =head2
28275 #. type: =head2
28276 #: ../fish/guestfish-actions.pod:2709
28277 msgid "luks-kill-slot"
28278 msgstr ""
28279
28280 # type: verbatim
28281 #. type: verbatim
28282 #: ../fish/guestfish-actions.pod:2711
28283 #, no-wrap
28284 msgid ""
28285 " luks-kill-slot device keyslot\n"
28286 "\n"
28287 msgstr ""
28288
28289 # type: =head2
28290 #. type: =head2
28291 #: ../fish/guestfish-actions.pod:2720
28292 msgid "luks-open"
28293 msgstr ""
28294
28295 # type: verbatim
28296 #. type: verbatim
28297 #: ../fish/guestfish-actions.pod:2722
28298 #, no-wrap
28299 msgid ""
28300 " luks-open device mapname\n"
28301 "\n"
28302 msgstr ""
28303
28304 # type: textblock
28305 #. type: textblock
28306 #: ../fish/guestfish-actions.pod:2736
28307 msgid ""
28308 "If this block device contains LVM volume groups, then calling L</vgscan> "
28309 "followed by L</vg-activate-all> will make them visible."
28310 msgstr ""
28311
28312 # type: =head2
28313 #. type: =head2
28314 #: ../fish/guestfish-actions.pod:2743
28315 msgid "luks-open-ro"
28316 msgstr ""
28317
28318 # type: verbatim
28319 #. type: verbatim
28320 #: ../fish/guestfish-actions.pod:2745
28321 #, no-wrap
28322 msgid ""
28323 " luks-open-ro device mapname\n"
28324 "\n"
28325 msgstr ""
28326
28327 # type: textblock
28328 #. type: textblock
28329 #: ../fish/guestfish-actions.pod:2747
28330 msgid ""
28331 "This is the same as L</luks-open> except that a read-only mapping is created."
28332 msgstr ""
28333
28334 # type: =head2
28335 #. type: =head2
28336 #: ../fish/guestfish-actions.pod:2753
28337 msgid "lvcreate"
28338 msgstr ""
28339
28340 # type: verbatim
28341 #. type: verbatim
28342 #: ../fish/guestfish-actions.pod:2755
28343 #, no-wrap
28344 msgid ""
28345 " lvcreate logvol volgroup mbytes\n"
28346 "\n"
28347 msgstr ""
28348
28349 # type: =head2
28350 #. type: =head2
28351 #: ../fish/guestfish-actions.pod:2760
28352 msgid "lvm-canonical-lv-name"
28353 msgstr ""
28354
28355 # type: verbatim
28356 #. type: verbatim
28357 #: ../fish/guestfish-actions.pod:2762
28358 #, no-wrap
28359 msgid ""
28360 " lvm-canonical-lv-name lvname\n"
28361 "\n"
28362 msgstr ""
28363
28364 # type: textblock
28365 #. type: textblock
28366 #: ../fish/guestfish-actions.pod:2771
28367 msgid "See also L</is-lv>."
28368 msgstr ""
28369
28370 # type: =head2
28371 #. type: =head2
28372 #: ../fish/guestfish-actions.pod:2773
28373 msgid "lvm-clear-filter"
28374 msgstr ""
28375
28376 # type: verbatim
28377 #. type: verbatim
28378 #: ../fish/guestfish-actions.pod:2775
28379 #, no-wrap
28380 msgid ""
28381 " lvm-clear-filter\n"
28382 "\n"
28383 msgstr ""
28384
28385 # type: textblock
28386 #. type: textblock
28387 #: ../fish/guestfish-actions.pod:2777
28388 msgid ""
28389 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
28390 "block device."
28391 msgstr ""
28392
28393 # type: =head2
28394 #. type: =head2
28395 #: ../fish/guestfish-actions.pod:2783
28396 msgid "lvm-remove-all"
28397 msgstr ""
28398
28399 # type: verbatim
28400 #. type: verbatim
28401 #: ../fish/guestfish-actions.pod:2785
28402 #, no-wrap
28403 msgid ""
28404 " lvm-remove-all\n"
28405 "\n"
28406 msgstr ""
28407
28408 # type: =head2
28409 #. type: =head2
28410 #: ../fish/guestfish-actions.pod:2793
28411 msgid "lvm-set-filter"
28412 msgstr ""
28413
28414 # type: verbatim
28415 #. type: verbatim
28416 #: ../fish/guestfish-actions.pod:2795
28417 #, no-wrap
28418 msgid ""
28419 " lvm-set-filter 'devices ...'\n"
28420 "\n"
28421 msgstr ""
28422
28423 # type: =head2
28424 #. type: =head2
28425 #: ../fish/guestfish-actions.pod:2820
28426 msgid "lvremove"
28427 msgstr ""
28428
28429 # type: verbatim
28430 #. type: verbatim
28431 #: ../fish/guestfish-actions.pod:2822
28432 #, no-wrap
28433 msgid ""
28434 " lvremove device\n"
28435 "\n"
28436 msgstr ""
28437
28438 # type: =head2
28439 #. type: =head2
28440 #: ../fish/guestfish-actions.pod:2830
28441 msgid "lvrename"
28442 msgstr ""
28443
28444 # type: verbatim
28445 #. type: verbatim
28446 #: ../fish/guestfish-actions.pod:2832
28447 #, no-wrap
28448 msgid ""
28449 " lvrename logvol newlogvol\n"
28450 "\n"
28451 msgstr ""
28452
28453 # type: =head2
28454 #. type: =head2
28455 #: ../fish/guestfish-actions.pod:2836
28456 msgid "lvresize"
28457 msgstr ""
28458
28459 # type: verbatim
28460 #. type: verbatim
28461 #: ../fish/guestfish-actions.pod:2838
28462 #, no-wrap
28463 msgid ""
28464 " lvresize device mbytes\n"
28465 "\n"
28466 msgstr ""
28467
28468 # type: =head2
28469 #. type: =head2
28470 #: ../fish/guestfish-actions.pod:2844
28471 msgid "lvresize-free"
28472 msgstr ""
28473
28474 # type: verbatim
28475 #. type: verbatim
28476 #: ../fish/guestfish-actions.pod:2846
28477 #, no-wrap
28478 msgid ""
28479 " lvresize-free lv percent\n"
28480 "\n"
28481 msgstr ""
28482
28483 # type: =head2
28484 #. type: =head2
28485 #: ../fish/guestfish-actions.pod:2854
28486 msgid "lvs"
28487 msgstr ""
28488
28489 # type: verbatim
28490 #. type: verbatim
28491 #: ../fish/guestfish-actions.pod:2856
28492 #, no-wrap
28493 msgid ""
28494 " lvs\n"
28495 "\n"
28496 msgstr ""
28497
28498 # type: textblock
28499 #. type: textblock
28500 #: ../fish/guestfish-actions.pod:2864
28501 msgid "See also L</lvs-full>, L</list-filesystems>."
28502 msgstr ""
28503
28504 # type: =head2
28505 #. type: =head2
28506 #: ../fish/guestfish-actions.pod:2866
28507 msgid "lvs-full"
28508 msgstr ""
28509
28510 # type: verbatim
28511 #. type: verbatim
28512 #: ../fish/guestfish-actions.pod:2868
28513 #, no-wrap
28514 msgid ""
28515 " lvs-full\n"
28516 "\n"
28517 msgstr ""
28518
28519 # type: =head2
28520 #. type: =head2
28521 #: ../fish/guestfish-actions.pod:2873
28522 msgid "lvuuid"
28523 msgstr ""
28524
28525 # type: verbatim
28526 #. type: verbatim
28527 #: ../fish/guestfish-actions.pod:2875
28528 #, no-wrap
28529 msgid ""
28530 " lvuuid device\n"
28531 "\n"
28532 msgstr ""
28533
28534 # type: =head2
28535 #. type: =head2
28536 #: ../fish/guestfish-actions.pod:2879
28537 msgid "lxattrlist"
28538 msgstr ""
28539
28540 # type: verbatim
28541 #. type: verbatim
28542 #: ../fish/guestfish-actions.pod:2881
28543 #, no-wrap
28544 msgid ""
28545 " lxattrlist path 'names ...'\n"
28546 "\n"
28547 msgstr ""
28548
28549 # type: textblock
28550 #. type: textblock
28551 #: ../fish/guestfish-actions.pod:2897
28552 msgid ""
28553 "This call is intended for programs that want to efficiently list a directory "
28554 "contents without making many round-trips.  See also L</lstatlist> for a "
28555 "similarly efficient call for getting standard stats.  Very long directory "
28556 "listings might cause the protocol message size to be exceeded, causing this "
28557 "call to fail.  The caller must split up such requests into smaller groups of "
28558 "names."
28559 msgstr ""
28560
28561 # type: =head2
28562 #. type: =head2
28563 #: ../fish/guestfish-actions.pod:2905
28564 msgid "mkdir"
28565 msgstr ""
28566
28567 # type: verbatim
28568 #. type: verbatim
28569 #: ../fish/guestfish-actions.pod:2907
28570 #, no-wrap
28571 msgid ""
28572 " mkdir path\n"
28573 "\n"
28574 msgstr ""
28575
28576 # type: =head2
28577 #. type: =head2
28578 #: ../fish/guestfish-actions.pod:2911
28579 msgid "mkdir-mode"
28580 msgstr ""
28581
28582 # type: verbatim
28583 #. type: verbatim
28584 #: ../fish/guestfish-actions.pod:2913
28585 #, no-wrap
28586 msgid ""
28587 " mkdir-mode path mode\n"
28588 "\n"
28589 msgstr ""
28590
28591 # type: textblock
28592 #. type: textblock
28593 #: ../fish/guestfish-actions.pod:2922
28594 msgid "See also L</mkdir>, L</umask>"
28595 msgstr ""
28596
28597 # type: =head2
28598 #. type: =head2
28599 #: ../fish/guestfish-actions.pod:2924
28600 msgid "mkdir-p"
28601 msgstr ""
28602
28603 # type: verbatim
28604 #. type: verbatim
28605 #: ../fish/guestfish-actions.pod:2926
28606 #, no-wrap
28607 msgid ""
28608 " mkdir-p path\n"
28609 "\n"
28610 msgstr ""
28611
28612 # type: =head2
28613 #. type: =head2
28614 #: ../fish/guestfish-actions.pod:2931
28615 msgid "mkdtemp"
28616 msgstr ""
28617
28618 # type: verbatim
28619 #. type: verbatim
28620 #: ../fish/guestfish-actions.pod:2933
28621 #, no-wrap
28622 msgid ""
28623 " mkdtemp template\n"
28624 "\n"
28625 msgstr ""
28626
28627 # type: =head2
28628 #. type: =head2
28629 #: ../fish/guestfish-actions.pod:2954
28630 msgid "mke2fs-J"
28631 msgstr ""
28632
28633 # type: verbatim
28634 #. type: verbatim
28635 #: ../fish/guestfish-actions.pod:2956
28636 #, no-wrap
28637 msgid ""
28638 " mke2fs-J fstype blocksize device journal\n"
28639 "\n"
28640 msgstr ""
28641
28642 # type: textblock
28643 #. type: textblock
28644 #: ../fish/guestfish-actions.pod:2964
28645 msgid "See also L</mke2journal>."
28646 msgstr ""
28647
28648 # type: =head2
28649 #. type: =head2
28650 #: ../fish/guestfish-actions.pod:2966
28651 msgid "mke2fs-JL"
28652 msgstr ""
28653
28654 # type: verbatim
28655 #. type: verbatim
28656 #: ../fish/guestfish-actions.pod:2968
28657 #, no-wrap
28658 msgid ""
28659 " mke2fs-JL fstype blocksize device label\n"
28660 "\n"
28661 msgstr ""
28662
28663 # type: textblock
28664 #. type: textblock
28665 #: ../fish/guestfish-actions.pod:2973
28666 msgid "See also L</mke2journal-L>."
28667 msgstr ""
28668
28669 # type: =head2
28670 #. type: =head2
28671 #: ../fish/guestfish-actions.pod:2975
28672 msgid "mke2fs-JU"
28673 msgstr ""
28674
28675 # type: verbatim
28676 #. type: verbatim
28677 #: ../fish/guestfish-actions.pod:2977
28678 #, no-wrap
28679 msgid ""
28680 " mke2fs-JU fstype blocksize device uuid\n"
28681 "\n"
28682 msgstr ""
28683
28684 # type: textblock
28685 #. type: textblock
28686 #: ../fish/guestfish-actions.pod:2982
28687 msgid "See also L</mke2journal-U>."
28688 msgstr ""
28689
28690 # type: =head2
28691 #. type: =head2
28692 #: ../fish/guestfish-actions.pod:2984
28693 msgid "mke2journal"
28694 msgstr ""
28695
28696 # type: verbatim
28697 #. type: verbatim
28698 #: ../fish/guestfish-actions.pod:2986
28699 #, no-wrap
28700 msgid ""
28701 " mke2journal blocksize device\n"
28702 "\n"
28703 msgstr ""
28704
28705 # type: =head2
28706 #. type: =head2
28707 #: ../fish/guestfish-actions.pod:2993
28708 msgid "mke2journal-L"
28709 msgstr ""
28710
28711 # type: verbatim
28712 #. type: verbatim
28713 #: ../fish/guestfish-actions.pod:2995
28714 #, no-wrap
28715 msgid ""
28716 " mke2journal-L blocksize label device\n"
28717 "\n"
28718 msgstr ""
28719
28720 # type: =head2
28721 #. type: =head2
28722 #: ../fish/guestfish-actions.pod:2999
28723 msgid "mke2journal-U"
28724 msgstr ""
28725
28726 # type: verbatim
28727 #. type: verbatim
28728 #: ../fish/guestfish-actions.pod:3001
28729 #, no-wrap
28730 msgid ""
28731 " mke2journal-U blocksize uuid device\n"
28732 "\n"
28733 msgstr ""
28734
28735 # type: =head2
28736 #. type: =head2
28737 #: ../fish/guestfish-actions.pod:3005
28738 msgid "mkfifo"
28739 msgstr ""
28740
28741 # type: verbatim
28742 #. type: verbatim
28743 #: ../fish/guestfish-actions.pod:3007
28744 #, no-wrap
28745 msgid ""
28746 " mkfifo mode path\n"
28747 "\n"
28748 msgstr ""
28749
28750 # type: textblock
28751 #. type: textblock
28752 #: ../fish/guestfish-actions.pod:3009
28753 msgid ""
28754 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
28755 "is just a convenient wrapper around L</mknod>."
28756 msgstr ""
28757
28758 # type: =head2
28759 #. type: =head2
28760 #: ../fish/guestfish-actions.pod:3015
28761 msgid "mkfs"
28762 msgstr ""
28763
28764 # type: verbatim
28765 #. type: verbatim
28766 #: ../fish/guestfish-actions.pod:3017
28767 #, no-wrap
28768 msgid ""
28769 " mkfs fstype device\n"
28770 "\n"
28771 msgstr ""
28772
28773 # type: =head2
28774 #. type: =head2
28775 #: ../fish/guestfish-actions.pod:3023
28776 msgid "mkfs-b"
28777 msgstr ""
28778
28779 # type: verbatim
28780 #. type: verbatim
28781 #: ../fish/guestfish-actions.pod:3025
28782 #, no-wrap
28783 msgid ""
28784 " mkfs-b fstype blocksize device\n"
28785 "\n"
28786 msgstr ""
28787
28788 # type: textblock
28789 #. type: textblock
28790 #: ../fish/guestfish-actions.pod:3027
28791 msgid ""
28792 "This call is similar to L</mkfs>, but it allows you to control the block "
28793 "size of the resulting filesystem.  Supported block sizes depend on the "
28794 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28795 msgstr ""
28796
28797 # type: =head2
28798 #. type: =head2
28799 #: ../fish/guestfish-actions.pod:3042
28800 msgid "mkfs-opts"
28801 msgstr ""
28802
28803 #. type: verbatim
28804 #: ../fish/guestfish-actions.pod:3044
28805 #, no-wrap
28806 msgid ""
28807 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
28808 "\n"
28809 msgstr ""
28810
28811 # type: =head2
28812 #. type: =head2
28813 #: ../fish/guestfish-actions.pod:3089
28814 msgid "mkmountpoint"
28815 msgstr ""
28816
28817 # type: verbatim
28818 #. type: verbatim
28819 #: ../fish/guestfish-actions.pod:3091
28820 #, no-wrap
28821 msgid ""
28822 " mkmountpoint exemptpath\n"
28823 "\n"
28824 msgstr ""
28825
28826 # type: textblock
28827 #. type: textblock
28828 #: ../fish/guestfish-actions.pod:3093
28829 msgid ""
28830 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
28831 "to create extra mountpoints before mounting the first filesystem."
28832 msgstr ""
28833
28834 # type: textblock
28835 #. type: textblock
28836 #: ../fish/guestfish-actions.pod:3117
28837 msgid ""
28838 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
28839 "unexpected errors if you try to mix these calls.  It is safest to manually "
28840 "unmount filesystems and remove mountpoints after use."
28841 msgstr ""
28842
28843 # type: textblock
28844 #. type: textblock
28845 #: ../fish/guestfish-actions.pod:3121
28846 msgid ""
28847 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
28848 "for this to work for manual mountpoints, you must ensure that the innermost "
28849 "mountpoints have the longest pathnames, as in the example code above."
28850 msgstr ""
28851
28852 #. type: textblock
28853 #: ../fish/guestfish-actions.pod:3128
28854 msgid ""
28855 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
28856 "L</umount-all> to be called when the handle is closed which can also trigger "
28857 "these issues."
28858 msgstr ""
28859
28860 # type: =head2
28861 #. type: =head2
28862 #: ../fish/guestfish-actions.pod:3132
28863 msgid "mknod"
28864 msgstr ""
28865
28866 # type: verbatim
28867 #. type: verbatim
28868 #: ../fish/guestfish-actions.pod:3134
28869 #, no-wrap
28870 msgid ""
28871 " mknod mode devmajor devminor path\n"
28872 "\n"
28873 msgstr ""
28874
28875 # type: textblock
28876 #. type: textblock
28877 #: ../fish/guestfish-actions.pod:3144
28878 msgid ""
28879 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28880 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28881 "regular file).  These constants are available in the standard Linux header "
28882 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
28883 "wrappers around this command which bitwise OR in the appropriate constant "
28884 "for you."
28885 msgstr ""
28886
28887 # type: =head2
28888 #. type: =head2
28889 #: ../fish/guestfish-actions.pod:3154
28890 msgid "mknod-b"
28891 msgstr ""
28892
28893 # type: verbatim
28894 #. type: verbatim
28895 #: ../fish/guestfish-actions.pod:3156
28896 #, no-wrap
28897 msgid ""
28898 " mknod-b mode devmajor devminor path\n"
28899 "\n"
28900 msgstr ""
28901
28902 # type: textblock
28903 #. type: textblock
28904 #: ../fish/guestfish-actions.pod:3158
28905 msgid ""
28906 "This call creates a block device node called C<path> with mode C<mode> and "
28907 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28908 "wrapper around L</mknod>."
28909 msgstr ""
28910
28911 # type: =head2
28912 #. type: =head2
28913 #: ../fish/guestfish-actions.pod:3164
28914 msgid "mknod-c"
28915 msgstr ""
28916
28917 # type: verbatim
28918 #. type: verbatim
28919 #: ../fish/guestfish-actions.pod:3166
28920 #, no-wrap
28921 msgid ""
28922 " mknod-c mode devmajor devminor path\n"
28923 "\n"
28924 msgstr ""
28925
28926 # type: textblock
28927 #. type: textblock
28928 #: ../fish/guestfish-actions.pod:3168
28929 msgid ""
28930 "This call creates a char device node called C<path> with mode C<mode> and "
28931 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28932 "wrapper around L</mknod>."
28933 msgstr ""
28934
28935 # type: =head2
28936 #. type: =head2
28937 #: ../fish/guestfish-actions.pod:3174
28938 msgid "mkswap"
28939 msgstr ""
28940
28941 # type: verbatim
28942 #. type: verbatim
28943 #: ../fish/guestfish-actions.pod:3176
28944 #, no-wrap
28945 msgid ""
28946 " mkswap device\n"
28947 "\n"
28948 msgstr ""
28949
28950 # type: =head2
28951 #. type: =head2
28952 #: ../fish/guestfish-actions.pod:3180
28953 msgid "mkswap-L"
28954 msgstr ""
28955
28956 # type: verbatim
28957 #. type: verbatim
28958 #: ../fish/guestfish-actions.pod:3182
28959 #, no-wrap
28960 msgid ""
28961 " mkswap-L label device\n"
28962 "\n"
28963 msgstr ""
28964
28965 # type: =head2
28966 #. type: =head2
28967 #: ../fish/guestfish-actions.pod:3190
28968 msgid "mkswap-U"
28969 msgstr ""
28970
28971 # type: verbatim
28972 #. type: verbatim
28973 #: ../fish/guestfish-actions.pod:3192
28974 #, no-wrap
28975 msgid ""
28976 " mkswap-U uuid device\n"
28977 "\n"
28978 msgstr ""
28979
28980 # type: =head2
28981 #. type: =head2
28982 #: ../fish/guestfish-actions.pod:3196
28983 msgid "mkswap-file"
28984 msgstr ""
28985
28986 # type: verbatim
28987 #. type: verbatim
28988 #: ../fish/guestfish-actions.pod:3198
28989 #, no-wrap
28990 msgid ""
28991 " mkswap-file path\n"
28992 "\n"
28993 msgstr ""
28994
28995 # type: textblock
28996 #. type: textblock
28997 #: ../fish/guestfish-actions.pod:3202
28998 msgid ""
28999 "This command just writes a swap file signature to an existing file.  To "
29000 "create the file itself, use something like L</fallocate>."
29001 msgstr ""
29002
29003 # type: =head2
29004 #. type: =head2
29005 #: ../fish/guestfish-actions.pod:3205
29006 msgid "modprobe"
29007 msgstr ""
29008
29009 # type: verbatim
29010 #. type: verbatim
29011 #: ../fish/guestfish-actions.pod:3207
29012 #, no-wrap
29013 msgid ""
29014 " modprobe modulename\n"
29015 "\n"
29016 msgstr ""
29017
29018 # type: =head2
29019 #. type: =head2
29020 #: ../fish/guestfish-actions.pod:3214
29021 msgid "mount"
29022 msgstr ""
29023
29024 # type: verbatim
29025 #. type: verbatim
29026 #: ../fish/guestfish-actions.pod:3216
29027 #, no-wrap
29028 msgid ""
29029 " mount device mountpoint\n"
29030 "\n"
29031 msgstr ""
29032
29033 # type: textblock
29034 #. type: textblock
29035 #: ../fish/guestfish-actions.pod:3232
29036 msgid ""
29037 "B<Important note:> When you use this call, the filesystem options C<sync> "
29038 "and C<noatime> are set implicitly.  This was originally done because we "
29039 "thought it would improve reliability, but it turns out that I<-o sync> has a "
29040 "very large negative performance impact and negligible effect on "
29041 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
29042 "code that needs performance, and instead use L</mount-options> (use an empty "
29043 "string for the first parameter if you don't want any options)."
29044 msgstr ""
29045
29046 #. type: =head2
29047 #: ../fish/guestfish-actions.pod:3249
29048 msgid "mount-9p"
29049 msgstr ""
29050
29051 #. type: verbatim
29052 #: ../fish/guestfish-actions.pod:3251
29053 #, no-wrap
29054 msgid ""
29055 " mount-9p mounttag mountpoint [options:..]\n"
29056 "\n"
29057 msgstr ""
29058
29059 # type: =head2
29060 #. type: =head2
29061 #: ../fish/guestfish-actions.pod:3262
29062 msgid "mount-loop"
29063 msgstr ""
29064
29065 # type: verbatim
29066 #. type: verbatim
29067 #: ../fish/guestfish-actions.pod:3264
29068 #, no-wrap
29069 msgid ""
29070 " mount-loop file mountpoint\n"
29071 "\n"
29072 msgstr ""
29073
29074 # type: =head2
29075 #. type: =head2
29076 #: ../fish/guestfish-actions.pod:3270
29077 msgid "mount-options"
29078 msgstr ""
29079
29080 # type: verbatim
29081 #. type: verbatim
29082 #: ../fish/guestfish-actions.pod:3272
29083 #, no-wrap
29084 msgid ""
29085 " mount-options options device mountpoint\n"
29086 "\n"
29087 msgstr ""
29088
29089 # type: textblock
29090 #. type: textblock
29091 #: ../fish/guestfish-actions.pod:3274
29092 msgid ""
29093 "This is the same as the L</mount> command, but it allows you to set the "
29094 "mount options as for the L<mount(8)> I<-o> flag."
29095 msgstr ""
29096
29097 # type: =head2
29098 #. type: =head2
29099 #: ../fish/guestfish-actions.pod:3282
29100 msgid "mount-ro"
29101 msgstr ""
29102
29103 # type: verbatim
29104 #. type: verbatim
29105 #: ../fish/guestfish-actions.pod:3284
29106 #, no-wrap
29107 msgid ""
29108 " mount-ro device mountpoint\n"
29109 "\n"
29110 msgstr ""
29111
29112 # type: textblock
29113 #. type: textblock
29114 #: ../fish/guestfish-actions.pod:3286
29115 msgid ""
29116 "This is the same as the L</mount> command, but it mounts the filesystem with "
29117 "the read-only (I<-o ro>) flag."
29118 msgstr ""
29119
29120 # type: =head2
29121 #. type: =head2
29122 #: ../fish/guestfish-actions.pod:3289
29123 msgid "mount-vfs"
29124 msgstr ""
29125
29126 # type: verbatim
29127 #. type: verbatim
29128 #: ../fish/guestfish-actions.pod:3291
29129 #, no-wrap
29130 msgid ""
29131 " mount-vfs options vfstype device mountpoint\n"
29132 "\n"
29133 msgstr ""
29134
29135 # type: textblock
29136 #. type: textblock
29137 #: ../fish/guestfish-actions.pod:3293
29138 msgid ""
29139 "This is the same as the L</mount> command, but it allows you to set both the "
29140 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
29141 msgstr ""
29142
29143 # type: =head2
29144 #. type: =head2
29145 #: ../fish/guestfish-actions.pod:3297
29146 msgid "mountpoints"
29147 msgstr ""
29148
29149 # type: verbatim
29150 #. type: verbatim
29151 #: ../fish/guestfish-actions.pod:3299
29152 #, no-wrap
29153 msgid ""
29154 " mountpoints\n"
29155 "\n"
29156 msgstr ""
29157
29158 # type: textblock
29159 #. type: textblock
29160 #: ../fish/guestfish-actions.pod:3301
29161 msgid ""
29162 "This call is similar to L</mounts>.  That call returns a list of devices.  "
29163 "This one returns a hash table (map) of device name to directory where the "
29164 "device is mounted."
29165 msgstr ""
29166
29167 # type: =head2
29168 #. type: =head2
29169 #: ../fish/guestfish-actions.pod:3305
29170 msgid "mounts"
29171 msgstr ""
29172
29173 # type: verbatim
29174 #. type: verbatim
29175 #: ../fish/guestfish-actions.pod:3307
29176 #, no-wrap
29177 msgid ""
29178 " mounts\n"
29179 "\n"
29180 msgstr ""
29181
29182 # type: textblock
29183 #. type: textblock
29184 #: ../fish/guestfish-actions.pod:3314
29185 msgid "See also: L</mountpoints>"
29186 msgstr ""
29187
29188 # type: =head2
29189 #. type: =head2
29190 #: ../fish/guestfish-actions.pod:3316
29191 msgid "mv"
29192 msgstr ""
29193
29194 # type: verbatim
29195 #. type: verbatim
29196 #: ../fish/guestfish-actions.pod:3318
29197 #, no-wrap
29198 msgid ""
29199 " mv src dest\n"
29200 "\n"
29201 msgstr ""
29202
29203 # type: =head2
29204 #. type: =head2
29205 #: ../fish/guestfish-actions.pod:3323
29206 msgid "ntfs-3g-probe"
29207 msgstr ""
29208
29209 # type: verbatim
29210 #. type: verbatim
29211 #: ../fish/guestfish-actions.pod:3325
29212 #, no-wrap
29213 msgid ""
29214 " ntfs-3g-probe true|false device\n"
29215 "\n"
29216 msgstr ""
29217
29218 # type: =head2
29219 #. type: =head2
29220 #: ../fish/guestfish-actions.pod:3339
29221 msgid "ntfsresize"
29222 msgstr ""
29223
29224 # type: verbatim
29225 #. type: verbatim
29226 #: ../fish/guestfish-actions.pod:3341
29227 #, no-wrap
29228 msgid ""
29229 " ntfsresize device\n"
29230 "\n"
29231 msgstr ""
29232
29233 # type: =head2
29234 #. type: =head2
29235 #: ../fish/guestfish-actions.pod:3347
29236 msgid "ntfsresize-size"
29237 msgstr ""
29238
29239 # type: verbatim
29240 #. type: verbatim
29241 #: ../fish/guestfish-actions.pod:3349
29242 #, no-wrap
29243 msgid ""
29244 " ntfsresize-size device size\n"
29245 "\n"
29246 msgstr ""
29247
29248 # type: textblock
29249 #. type: textblock
29250 #: ../fish/guestfish-actions.pod:3351
29251 msgid ""
29252 "This command is the same as L</ntfsresize> except that it allows you to "
29253 "specify the new size (in bytes) explicitly."
29254 msgstr ""
29255
29256 # type: =head2
29257 #. type: =head2
29258 #: ../fish/guestfish-actions.pod:3354
29259 msgid "part-add"
29260 msgstr ""
29261
29262 # type: verbatim
29263 #. type: verbatim
29264 #: ../fish/guestfish-actions.pod:3356
29265 #, no-wrap
29266 msgid ""
29267 " part-add device prlogex startsect endsect\n"
29268 "\n"
29269 msgstr ""
29270
29271 # type: textblock
29272 #. type: textblock
29273 #: ../fish/guestfish-actions.pod:3358
29274 msgid ""
29275 "This command adds a partition to C<device>.  If there is no partition table "
29276 "on the device, call L</part-init> first."
29277 msgstr ""
29278
29279 # type: textblock
29280 #. type: textblock
29281 #: ../fish/guestfish-actions.pod:3370
29282 msgid ""
29283 "Creating a partition which covers the whole disk is not so easy.  Use L</"
29284 "part-disk> to do that."
29285 msgstr ""
29286
29287 # type: =head2
29288 #. type: =head2
29289 #: ../fish/guestfish-actions.pod:3373
29290 msgid "part-del"
29291 msgstr ""
29292
29293 # type: verbatim
29294 #. type: verbatim
29295 #: ../fish/guestfish-actions.pod:3375
29296 #, no-wrap
29297 msgid ""
29298 " part-del device partnum\n"
29299 "\n"
29300 msgstr ""
29301
29302 # type: =head2
29303 #. type: =head2
29304 #: ../fish/guestfish-actions.pod:3383
29305 msgid "part-disk"
29306 msgstr ""
29307
29308 # type: verbatim
29309 #. type: verbatim
29310 #: ../fish/guestfish-actions.pod:3385
29311 #, no-wrap
29312 msgid ""
29313 " part-disk device parttype\n"
29314 "\n"
29315 msgstr ""
29316
29317 # type: textblock
29318 #. type: textblock
29319 #: ../fish/guestfish-actions.pod:3387
29320 msgid ""
29321 "This command is simply a combination of L</part-init> followed by L</part-"
29322 "add> to create a single primary partition covering the whole disk."
29323 msgstr ""
29324
29325 # type: textblock
29326 #. type: textblock
29327 #: ../fish/guestfish-actions.pod:3391
29328 msgid ""
29329 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
29330 "possible values are described in L</part-init>."
29331 msgstr ""
29332
29333 # type: =head2
29334 #. type: =head2
29335 #: ../fish/guestfish-actions.pod:3397
29336 msgid "part-get-bootable"
29337 msgstr ""
29338
29339 # type: verbatim
29340 #. type: verbatim
29341 #: ../fish/guestfish-actions.pod:3399
29342 #, no-wrap
29343 msgid ""
29344 " part-get-bootable device partnum\n"
29345 "\n"
29346 msgstr ""
29347
29348 # type: textblock
29349 #. type: textblock
29350 #: ../fish/guestfish-actions.pod:3404
29351 msgid "See also L</part-set-bootable>."
29352 msgstr ""
29353
29354 # type: =head2
29355 #. type: =head2
29356 #: ../fish/guestfish-actions.pod:3406
29357 msgid "part-get-mbr-id"
29358 msgstr ""
29359
29360 # type: verbatim
29361 #. type: verbatim
29362 #: ../fish/guestfish-actions.pod:3408
29363 #, no-wrap
29364 msgid ""
29365 " part-get-mbr-id device partnum\n"
29366 "\n"
29367 msgstr ""
29368
29369 # type: textblock
29370 #. type: textblock
29371 #: ../fish/guestfish-actions.pod:3413 ../fish/guestfish-actions.pod:3551
29372 msgid ""
29373 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
29374 "undefined results for other partition table types (see L</part-get-"
29375 "parttype>)."
29376 msgstr ""
29377
29378 # type: =head2
29379 #. type: =head2
29380 #: ../fish/guestfish-actions.pod:3417
29381 msgid "part-get-parttype"
29382 msgstr ""
29383
29384 # type: verbatim
29385 #. type: verbatim
29386 #: ../fish/guestfish-actions.pod:3419
29387 #, no-wrap
29388 msgid ""
29389 " part-get-parttype device\n"
29390 "\n"
29391 msgstr ""
29392
29393 # type: textblock
29394 #. type: textblock
29395 #: ../fish/guestfish-actions.pod:3424
29396 msgid ""
29397 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29398 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
29399 "possible, although unusual.  See L</part-init> for a full list."
29400 msgstr ""
29401
29402 # type: =head2
29403 #. type: =head2
29404 #: ../fish/guestfish-actions.pod:3429
29405 msgid "part-init"
29406 msgstr ""
29407
29408 # type: verbatim
29409 #. type: verbatim
29410 #: ../fish/guestfish-actions.pod:3431
29411 #, no-wrap
29412 msgid ""
29413 " part-init device parttype\n"
29414 "\n"
29415 msgstr ""
29416
29417 # type: textblock
29418 #. type: textblock
29419 #: ../fish/guestfish-actions.pod:3437
29420 msgid ""
29421 "Initially there are no partitions.  Following this, you should call L</part-"
29422 "add> for each partition required."
29423 msgstr ""
29424
29425 # type: =head2
29426 #. type: =head2
29427 #: ../fish/guestfish-actions.pod:3500
29428 msgid "part-list"
29429 msgstr ""
29430
29431 # type: verbatim
29432 #. type: verbatim
29433 #: ../fish/guestfish-actions.pod:3502
29434 #, no-wrap
29435 msgid ""
29436 " part-list device\n"
29437 "\n"
29438 msgstr ""
29439
29440 # type: textblock
29441 #. type: textblock
29442 #: ../fish/guestfish-actions.pod:3517
29443 msgid ""
29444 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
29445 "the device's sector size, see L</blockdev-getss>."
29446 msgstr ""
29447
29448 # type: =head2
29449 #. type: =head2
29450 #: ../fish/guestfish-actions.pod:3530
29451 msgid "part-set-bootable"
29452 msgstr ""
29453
29454 # type: verbatim
29455 #. type: verbatim
29456 #: ../fish/guestfish-actions.pod:3532
29457 #, no-wrap
29458 msgid ""
29459 " part-set-bootable device partnum true|false\n"
29460 "\n"
29461 msgstr ""
29462
29463 # type: =head2
29464 #. type: =head2
29465 #: ../fish/guestfish-actions.pod:3541
29466 msgid "part-set-mbr-id"
29467 msgstr ""
29468
29469 # type: verbatim
29470 #. type: verbatim
29471 #: ../fish/guestfish-actions.pod:3543
29472 #, no-wrap
29473 msgid ""
29474 " part-set-mbr-id device partnum idbyte\n"
29475 "\n"
29476 msgstr ""
29477
29478 # type: =head2
29479 #. type: =head2
29480 #: ../fish/guestfish-actions.pod:3555
29481 msgid "part-set-name"
29482 msgstr ""
29483
29484 # type: verbatim
29485 #. type: verbatim
29486 #: ../fish/guestfish-actions.pod:3557
29487 #, no-wrap
29488 msgid ""
29489 " part-set-name device partnum name\n"
29490 "\n"
29491 msgstr ""
29492
29493 # type: =head2
29494 #. type: =head2
29495 #: ../fish/guestfish-actions.pod:3565
29496 msgid "part-to-dev"
29497 msgstr ""
29498
29499 # type: verbatim
29500 #. type: verbatim
29501 #: ../fish/guestfish-actions.pod:3567
29502 #, no-wrap
29503 msgid ""
29504 " part-to-dev partition\n"
29505 "\n"
29506 msgstr ""
29507
29508 # type: textblock
29509 #. type: textblock
29510 #: ../fish/guestfish-actions.pod:3573
29511 msgid ""
29512 "The named partition must exist, for example as a string returned from L</"
29513 "list-partitions>."
29514 msgstr ""
29515
29516 # type: =head2
29517 #. type: =head2
29518 #: ../fish/guestfish-actions.pod:3576
29519 msgid "ping-daemon"
29520 msgstr ""
29521
29522 # type: verbatim
29523 #. type: verbatim
29524 #: ../fish/guestfish-actions.pod:3578
29525 #, no-wrap
29526 msgid ""
29527 " ping-daemon\n"
29528 "\n"
29529 msgstr ""
29530
29531 # type: =head2
29532 #. type: =head2
29533 #: ../fish/guestfish-actions.pod:3585
29534 msgid "pread"
29535 msgstr ""
29536
29537 # type: verbatim
29538 #. type: verbatim
29539 #: ../fish/guestfish-actions.pod:3587
29540 #, no-wrap
29541 msgid ""
29542 " pread path count offset\n"
29543 "\n"
29544 msgstr ""
29545
29546 # type: textblock
29547 #. type: textblock
29548 #: ../fish/guestfish-actions.pod:3595
29549 msgid "See also L</pwrite>, L</pread-device>."
29550 msgstr ""
29551
29552 # type: =head2
29553 #. type: =head2
29554 #: ../fish/guestfish-actions.pod:3600
29555 msgid "pread-device"
29556 msgstr ""
29557
29558 # type: verbatim
29559 #. type: verbatim
29560 #: ../fish/guestfish-actions.pod:3602
29561 #, no-wrap
29562 msgid ""
29563 " pread-device device count offset\n"
29564 "\n"
29565 msgstr ""
29566
29567 # type: textblock
29568 #. type: textblock
29569 #: ../fish/guestfish-actions.pod:3610
29570 msgid "See also L</pread>."
29571 msgstr ""
29572
29573 # type: =head2
29574 #. type: =head2
29575 #: ../fish/guestfish-actions.pod:3615
29576 msgid "pvcreate"
29577 msgstr ""
29578
29579 # type: verbatim
29580 #. type: verbatim
29581 #: ../fish/guestfish-actions.pod:3617
29582 #, no-wrap
29583 msgid ""
29584 " pvcreate device\n"
29585 "\n"
29586 msgstr ""
29587
29588 # type: =head2
29589 #. type: =head2
29590 #: ../fish/guestfish-actions.pod:3623
29591 msgid "pvremove"
29592 msgstr ""
29593
29594 # type: verbatim
29595 #. type: verbatim
29596 #: ../fish/guestfish-actions.pod:3625
29597 #, no-wrap
29598 msgid ""
29599 " pvremove device\n"
29600 "\n"
29601 msgstr ""
29602
29603 # type: =head2
29604 #. type: =head2
29605 #: ../fish/guestfish-actions.pod:3634
29606 msgid "pvresize"
29607 msgstr ""
29608
29609 # type: verbatim
29610 #. type: verbatim
29611 #: ../fish/guestfish-actions.pod:3636
29612 #, no-wrap
29613 msgid ""
29614 " pvresize device\n"
29615 "\n"
29616 msgstr ""
29617
29618 # type: =head2
29619 #. type: =head2
29620 #: ../fish/guestfish-actions.pod:3641
29621 msgid "pvresize-size"
29622 msgstr ""
29623
29624 # type: verbatim
29625 #. type: verbatim
29626 #: ../fish/guestfish-actions.pod:3643
29627 #, no-wrap
29628 msgid ""
29629 " pvresize-size device size\n"
29630 "\n"
29631 msgstr ""
29632
29633 # type: textblock
29634 #. type: textblock
29635 #: ../fish/guestfish-actions.pod:3645
29636 msgid ""
29637 "This command is the same as L</pvresize> except that it allows you to "
29638 "specify the new size (in bytes) explicitly."
29639 msgstr ""
29640
29641 # type: =head2
29642 #. type: =head2
29643 #: ../fish/guestfish-actions.pod:3648
29644 msgid "pvs"
29645 msgstr ""
29646
29647 # type: verbatim
29648 #. type: verbatim
29649 #: ../fish/guestfish-actions.pod:3650
29650 #, no-wrap
29651 msgid ""
29652 " pvs\n"
29653 "\n"
29654 msgstr ""
29655
29656 # type: textblock
29657 #. type: textblock
29658 #: ../fish/guestfish-actions.pod:3658
29659 msgid "See also L</pvs-full>."
29660 msgstr ""
29661
29662 # type: =head2
29663 #. type: =head2
29664 #: ../fish/guestfish-actions.pod:3660
29665 msgid "pvs-full"
29666 msgstr ""
29667
29668 # type: verbatim
29669 #. type: verbatim
29670 #: ../fish/guestfish-actions.pod:3662
29671 #, no-wrap
29672 msgid ""
29673 " pvs-full\n"
29674 "\n"
29675 msgstr ""
29676
29677 # type: =head2
29678 #. type: =head2
29679 #: ../fish/guestfish-actions.pod:3667
29680 msgid "pvuuid"
29681 msgstr ""
29682
29683 # type: verbatim
29684 #. type: verbatim
29685 #: ../fish/guestfish-actions.pod:3669
29686 #, no-wrap
29687 msgid ""
29688 " pvuuid device\n"
29689 "\n"
29690 msgstr ""
29691
29692 # type: =head2
29693 #. type: =head2
29694 #: ../fish/guestfish-actions.pod:3673
29695 msgid "pwrite"
29696 msgstr ""
29697
29698 # type: verbatim
29699 #. type: verbatim
29700 #: ../fish/guestfish-actions.pod:3675
29701 #, no-wrap
29702 msgid ""
29703 " pwrite path content offset\n"
29704 "\n"
29705 msgstr ""
29706
29707 # type: textblock
29708 #. type: textblock
29709 #: ../fish/guestfish-actions.pod:3686
29710 msgid "See also L</pread>, L</pwrite-device>."
29711 msgstr ""
29712
29713 # type: =head2
29714 #. type: =head2
29715 #: ../fish/guestfish-actions.pod:3691
29716 msgid "pwrite-device"
29717 msgstr ""
29718
29719 # type: verbatim
29720 #. type: verbatim
29721 #: ../fish/guestfish-actions.pod:3693
29722 #, no-wrap
29723 msgid ""
29724 " pwrite-device device content offset\n"
29725 "\n"
29726 msgstr ""
29727
29728 # type: textblock
29729 #. type: textblock
29730 #: ../fish/guestfish-actions.pod:3703
29731 msgid "See also L</pwrite>."
29732 msgstr ""
29733
29734 # type: =head2
29735 #. type: =head2
29736 #: ../fish/guestfish-actions.pod:3708
29737 msgid "read-file"
29738 msgstr ""
29739
29740 # type: verbatim
29741 #. type: verbatim
29742 #: ../fish/guestfish-actions.pod:3710
29743 #, no-wrap
29744 msgid ""
29745 " read-file path\n"
29746 "\n"
29747 msgstr ""
29748
29749 # type: textblock
29750 #. type: textblock
29751 #: ../fish/guestfish-actions.pod:3715
29752 msgid ""
29753 "Unlike L</cat>, this function can correctly handle files that contain "
29754 "embedded ASCII NUL characters.  However unlike L</download>, this function "
29755 "is limited in the total size of file that can be handled."
29756 msgstr ""
29757
29758 # type: =head2
29759 #. type: =head2
29760 #: ../fish/guestfish-actions.pod:3723
29761 msgid "read-lines"
29762 msgstr ""
29763
29764 # type: verbatim
29765 #. type: verbatim
29766 #: ../fish/guestfish-actions.pod:3725
29767 #, no-wrap
29768 msgid ""
29769 " read-lines path\n"
29770 "\n"
29771 msgstr ""
29772
29773 # type: textblock
29774 #. type: textblock
29775 #: ../fish/guestfish-actions.pod:3732
29776 msgid ""
29777 "Note that this function cannot correctly handle binary files (specifically, "
29778 "files containing C<\\0> character which is treated as end of line).  For "
29779 "those you need to use the L</read-file> function which has a more complex "
29780 "interface."
29781 msgstr ""
29782
29783 # type: =head2
29784 #. type: =head2
29785 #: ../fish/guestfish-actions.pod:3737
29786 msgid "readdir"
29787 msgstr ""
29788
29789 # type: verbatim
29790 #. type: verbatim
29791 #: ../fish/guestfish-actions.pod:3739
29792 #, no-wrap
29793 msgid ""
29794 " readdir dir\n"
29795 "\n"
29796 msgstr ""
29797
29798 # type: textblock
29799 #. type: textblock
29800 #: ../fish/guestfish-actions.pod:3791
29801 msgid ""
29802 "This function is primarily intended for use by programs.  To get a simple "
29803 "list of names, use L</ls>.  To get a printable directory for human "
29804 "consumption, use L</ll>."
29805 msgstr ""
29806
29807 # type: =head2
29808 #. type: =head2
29809 #: ../fish/guestfish-actions.pod:3795
29810 msgid "readlink"
29811 msgstr ""
29812
29813 # type: verbatim
29814 #. type: verbatim
29815 #: ../fish/guestfish-actions.pod:3797
29816 #, no-wrap
29817 msgid ""
29818 " readlink path\n"
29819 "\n"
29820 msgstr ""
29821
29822 # type: =head2
29823 #. type: =head2
29824 #: ../fish/guestfish-actions.pod:3801
29825 msgid "readlinklist"
29826 msgstr ""
29827
29828 # type: verbatim
29829 #. type: verbatim
29830 #: ../fish/guestfish-actions.pod:3803
29831 #, no-wrap
29832 msgid ""
29833 " readlinklist path 'names ...'\n"
29834 "\n"
29835 msgstr ""
29836
29837 # type: =head2
29838 #. type: =head2
29839 #: ../fish/guestfish-actions.pod:3827
29840 msgid "realpath"
29841 msgstr ""
29842
29843 # type: verbatim
29844 #. type: verbatim
29845 #: ../fish/guestfish-actions.pod:3829
29846 #, no-wrap
29847 msgid ""
29848 " realpath path\n"
29849 "\n"
29850 msgstr ""
29851
29852 # type: =head2
29853 #. type: =head2
29854 #: ../fish/guestfish-actions.pod:3834
29855 msgid "removexattr"
29856 msgstr ""
29857
29858 # type: verbatim
29859 #. type: verbatim
29860 #: ../fish/guestfish-actions.pod:3836
29861 #, no-wrap
29862 msgid ""
29863 " removexattr xattr path\n"
29864 "\n"
29865 msgstr ""
29866
29867 # type: textblock
29868 #. type: textblock
29869 #: ../fish/guestfish-actions.pod:3841
29870 msgid "See also: L</lremovexattr>, L<attr(5)>."
29871 msgstr ""
29872
29873 # type: =head2
29874 #. type: =head2
29875 #: ../fish/guestfish-actions.pod:3843
29876 msgid "resize2fs"
29877 msgstr ""
29878
29879 # type: verbatim
29880 #. type: verbatim
29881 #: ../fish/guestfish-actions.pod:3845
29882 #, no-wrap
29883 msgid ""
29884 " resize2fs device\n"
29885 "\n"
29886 msgstr ""
29887
29888 # type: textblock
29889 #. type: textblock
29890 #: ../fish/guestfish-actions.pod:3850
29891 msgid ""
29892 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
29893 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
29894 "gives an error about this and sometimes not.  In any case, it is always safe "
29895 "to call L</e2fsck-f> before calling this function."
29896 msgstr ""
29897
29898 #. type: =head2
29899 #: ../fish/guestfish-actions.pod:3856
29900 msgid "resize2fs-M"
29901 msgstr ""
29902
29903 #. type: verbatim
29904 #: ../fish/guestfish-actions.pod:3858
29905 #, no-wrap
29906 msgid ""
29907 " resize2fs-M device\n"
29908 "\n"
29909 msgstr ""
29910
29911 #. type: textblock
29912 #: ../fish/guestfish-actions.pod:3860
29913 msgid ""
29914 "This command is the same as L</resize2fs>, but the filesystem is resized to "
29915 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
29916 "command."
29917 msgstr ""
29918
29919 #. type: textblock
29920 #: ../fish/guestfish-actions.pod:3864
29921 msgid ""
29922 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
29923 "and read the C<Block size> and C<Block count> values.  These two numbers, "
29924 "multiplied together, give the resulting size of the minimal filesystem in "
29925 "bytes."
29926 msgstr ""
29927
29928 # type: =head2
29929 #. type: =head2
29930 #: ../fish/guestfish-actions.pod:3869
29931 msgid "resize2fs-size"
29932 msgstr ""
29933
29934 # type: verbatim
29935 #. type: verbatim
29936 #: ../fish/guestfish-actions.pod:3871
29937 #, no-wrap
29938 msgid ""
29939 " resize2fs-size device size\n"
29940 "\n"
29941 msgstr ""
29942
29943 # type: textblock
29944 #. type: textblock
29945 #: ../fish/guestfish-actions.pod:3873
29946 msgid ""
29947 "This command is the same as L</resize2fs> except that it allows you to "
29948 "specify the new size (in bytes) explicitly."
29949 msgstr ""
29950
29951 # type: =head2
29952 #. type: =head2
29953 #: ../fish/guestfish-actions.pod:3876
29954 msgid "rm"
29955 msgstr ""
29956
29957 # type: verbatim
29958 #. type: verbatim
29959 #: ../fish/guestfish-actions.pod:3878
29960 #, no-wrap
29961 msgid ""
29962 " rm path\n"
29963 "\n"
29964 msgstr ""
29965
29966 # type: =head2
29967 #. type: =head2
29968 #: ../fish/guestfish-actions.pod:3882
29969 msgid "rm-rf"
29970 msgstr ""
29971
29972 # type: verbatim
29973 #. type: verbatim
29974 #: ../fish/guestfish-actions.pod:3884
29975 #, no-wrap
29976 msgid ""
29977 " rm-rf path\n"
29978 "\n"
29979 msgstr ""
29980
29981 # type: =head2
29982 #. type: =head2
29983 #: ../fish/guestfish-actions.pod:3890
29984 msgid "rmdir"
29985 msgstr ""
29986
29987 # type: verbatim
29988 #. type: verbatim
29989 #: ../fish/guestfish-actions.pod:3892
29990 #, no-wrap
29991 msgid ""
29992 " rmdir path\n"
29993 "\n"
29994 msgstr ""
29995
29996 # type: =head2
29997 #. type: =head2
29998 #: ../fish/guestfish-actions.pod:3896
29999 msgid "rmmountpoint"
30000 msgstr ""
30001
30002 # type: verbatim
30003 #. type: verbatim
30004 #: ../fish/guestfish-actions.pod:3898
30005 #, no-wrap
30006 msgid ""
30007 " rmmountpoint exemptpath\n"
30008 "\n"
30009 msgstr ""
30010
30011 # type: textblock
30012 #. type: textblock
30013 #: ../fish/guestfish-actions.pod:3900
30014 msgid ""
30015 "This calls removes a mountpoint that was previously created with L</"
30016 "mkmountpoint>.  See L</mkmountpoint> for full details."
30017 msgstr ""
30018
30019 # type: =head2
30020 #. type: =head2
30021 #: ../fish/guestfish-actions.pod:3904
30022 msgid "scrub-device"
30023 msgstr ""
30024
30025 # type: verbatim
30026 #. type: verbatim
30027 #: ../fish/guestfish-actions.pod:3906
30028 #, no-wrap
30029 msgid ""
30030 " scrub-device device\n"
30031 "\n"
30032 msgstr ""
30033
30034 # type: =head2
30035 #. type: =head2
30036 #: ../fish/guestfish-actions.pod:3917
30037 msgid "scrub-file"
30038 msgstr ""
30039
30040 # type: verbatim
30041 #. type: verbatim
30042 #: ../fish/guestfish-actions.pod:3919
30043 #, no-wrap
30044 msgid ""
30045 " scrub-file file\n"
30046 "\n"
30047 msgstr ""
30048
30049 # type: =head2
30050 #. type: =head2
30051 #: ../fish/guestfish-actions.pod:3929
30052 msgid "scrub-freespace"
30053 msgstr ""
30054
30055 # type: verbatim
30056 #. type: verbatim
30057 #: ../fish/guestfish-actions.pod:3931
30058 #, no-wrap
30059 msgid ""
30060 " scrub-freespace dir\n"
30061 "\n"
30062 msgstr ""
30063
30064 # type: textblock
30065 #. type: textblock
30066 #: ../fish/guestfish-actions.pod:3933
30067 msgid ""
30068 "This command creates the directory C<dir> and then fills it with files until "
30069 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
30070 "deletes them.  The intention is to scrub any free space on the partition "
30071 "containing C<dir>."
30072 msgstr ""
30073
30074 # type: =head2
30075 #. type: =head2
30076 #: ../fish/guestfish-actions.pod:3942
30077 msgid "set-append"
30078 msgstr ""
30079
30080 # type: =head2
30081 #. type: =head2
30082 #: ../fish/guestfish-actions.pod:3944
30083 msgid "append"
30084 msgstr ""
30085
30086 # type: verbatim
30087 #. type: verbatim
30088 #: ../fish/guestfish-actions.pod:3946
30089 #, no-wrap
30090 msgid ""
30091 " set-append append\n"
30092 "\n"
30093 msgstr ""
30094
30095 #. type: =head2
30096 #: ../fish/guestfish-actions.pod:3957
30097 msgid "set-attach-method"
30098 msgstr ""
30099
30100 #. type: =head2
30101 #: ../fish/guestfish-actions.pod:3959
30102 msgid "attach-method"
30103 msgstr ""
30104
30105 #. type: verbatim
30106 #: ../fish/guestfish-actions.pod:3961
30107 #, no-wrap
30108 msgid ""
30109 " set-attach-method attachmethod\n"
30110 "\n"
30111 msgstr ""
30112
30113 # type: =head2
30114 #. type: =head2
30115 #: ../fish/guestfish-actions.pod:3983
30116 msgid "set-autosync"
30117 msgstr ""
30118
30119 # type: =head2
30120 #. type: =head2
30121 #: ../fish/guestfish-actions.pod:3985
30122 msgid "autosync"
30123 msgstr ""
30124
30125 # type: verbatim
30126 #. type: verbatim
30127 #: ../fish/guestfish-actions.pod:3987
30128 #, no-wrap
30129 msgid ""
30130 " set-autosync true|false\n"
30131 "\n"
30132 msgstr ""
30133
30134 # type: =head2
30135 #. type: =head2
30136 #: ../fish/guestfish-actions.pod:3997
30137 msgid "set-direct"
30138 msgstr ""
30139
30140 # type: =head2
30141 #. type: =head2
30142 #: ../fish/guestfish-actions.pod:3999
30143 msgid "direct"
30144 msgstr ""
30145
30146 # type: verbatim
30147 #. type: verbatim
30148 #: ../fish/guestfish-actions.pod:4001
30149 #, no-wrap
30150 msgid ""
30151 " set-direct true|false\n"
30152 "\n"
30153 msgstr ""
30154
30155 # type: textblock
30156 #. type: textblock
30157 #: ../fish/guestfish-actions.pod:4007
30158 msgid ""
30159 "One consequence of this is that log messages aren't caught by the library "
30160 "and handled by L</set-log-message-callback>, but go straight to stdout."
30161 msgstr ""
30162
30163 # type: =head2
30164 #. type: =head2
30165 #: ../fish/guestfish-actions.pod:4016
30166 msgid "set-e2label"
30167 msgstr ""
30168
30169 # type: verbatim
30170 #. type: verbatim
30171 #: ../fish/guestfish-actions.pod:4018
30172 #, no-wrap
30173 msgid ""
30174 " set-e2label device label\n"
30175 "\n"
30176 msgstr ""
30177
30178 # type: textblock
30179 #. type: textblock
30180 #: ../fish/guestfish-actions.pod:4024
30181 msgid ""
30182 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
30183 "label on a filesystem."
30184 msgstr ""
30185
30186 # type: =head2
30187 #. type: =head2
30188 #: ../fish/guestfish-actions.pod:4027
30189 msgid "set-e2uuid"
30190 msgstr ""
30191
30192 # type: verbatim
30193 #. type: verbatim
30194 #: ../fish/guestfish-actions.pod:4029
30195 #, no-wrap
30196 msgid ""
30197 " set-e2uuid device uuid\n"
30198 "\n"
30199 msgstr ""
30200
30201 # type: textblock
30202 #. type: textblock
30203 #: ../fish/guestfish-actions.pod:4036
30204 msgid ""
30205 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
30206 "UUID of a filesystem."
30207 msgstr ""
30208
30209 # type: =head2
30210 #. type: =head2
30211 #: ../fish/guestfish-actions.pod:4039
30212 msgid "set-memsize"
30213 msgstr ""
30214
30215 # type: =head2
30216 #. type: =head2
30217 #: ../fish/guestfish-actions.pod:4041
30218 msgid "memsize"
30219 msgstr ""
30220
30221 # type: verbatim
30222 #. type: verbatim
30223 #: ../fish/guestfish-actions.pod:4043
30224 #, no-wrap
30225 msgid ""
30226 " set-memsize memsize\n"
30227 "\n"
30228 msgstr ""
30229
30230 # type: textblock
30231 #. type: textblock
30232 #: ../fish/guestfish-actions.pod:4045
30233 msgid ""
30234 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
30235 "This only has any effect if called before L</launch>."
30236 msgstr ""
30237
30238 # type: =head2
30239 #. type: =head2
30240 #: ../fish/guestfish-actions.pod:4056
30241 msgid "set-network"
30242 msgstr ""
30243
30244 # type: =head2
30245 #. type: =head2
30246 #: ../fish/guestfish-actions.pod:4058
30247 msgid "network"
30248 msgstr ""
30249
30250 # type: verbatim
30251 #. type: verbatim
30252 #: ../fish/guestfish-actions.pod:4060
30253 #, no-wrap
30254 msgid ""
30255 " set-network true|false\n"
30256 "\n"
30257 msgstr ""
30258
30259 # type: textblock
30260 #. type: textblock
30261 #: ../fish/guestfish-actions.pod:4068
30262 msgid ""
30263 "You must call this before calling L</launch>, otherwise it has no effect."
30264 msgstr ""
30265
30266 # type: =head2
30267 #. type: =head2
30268 #: ../fish/guestfish-actions.pod:4071
30269 msgid "set-path"
30270 msgstr ""
30271
30272 # type: =head2
30273 #. type: =head2
30274 #: ../fish/guestfish-actions.pod:4073
30275 msgid "path"
30276 msgstr ""
30277
30278 # type: verbatim
30279 #. type: verbatim
30280 #: ../fish/guestfish-actions.pod:4075
30281 #, no-wrap
30282 msgid ""
30283 " set-path searchpath\n"
30284 "\n"
30285 msgstr ""
30286
30287 # type: =head2
30288 #. type: =head2
30289 #: ../fish/guestfish-actions.pod:4084
30290 msgid "set-qemu"
30291 msgstr ""
30292
30293 # type: =head2
30294 #. type: =head2
30295 #: ../fish/guestfish-actions.pod:4086
30296 msgid "qemu"
30297 msgstr ""
30298
30299 # type: verbatim
30300 #. type: verbatim
30301 #: ../fish/guestfish-actions.pod:4088
30302 #, no-wrap
30303 msgid ""
30304 " set-qemu qemu\n"
30305 "\n"
30306 msgstr ""
30307
30308 # type: =head2
30309 #. type: =head2
30310 #: ../fish/guestfish-actions.pod:4108
30311 msgid "set-recovery-proc"
30312 msgstr ""
30313
30314 # type: =head2
30315 #. type: =head2
30316 #: ../fish/guestfish-actions.pod:4110
30317 msgid "recovery-proc"
30318 msgstr ""
30319
30320 # type: verbatim
30321 #. type: verbatim
30322 #: ../fish/guestfish-actions.pod:4112
30323 #, no-wrap
30324 msgid ""
30325 " set-recovery-proc true|false\n"
30326 "\n"
30327 msgstr ""
30328
30329 # type: textblock
30330 #. type: textblock
30331 #: ../fish/guestfish-actions.pod:4114
30332 msgid ""
30333 "If this is called with the parameter C<false> then L</launch> does not "
30334 "create a recovery process.  The purpose of the recovery process is to stop "
30335 "runaway qemu processes in the case where the main program aborts abruptly."
30336 msgstr ""
30337
30338 # type: textblock
30339 #. type: textblock
30340 #: ../fish/guestfish-actions.pod:4119
30341 msgid ""
30342 "This only has any effect if called before L</launch>, and the default is "
30343 "true."
30344 msgstr ""
30345
30346 # type: =head2
30347 #. type: =head2
30348 #: ../fish/guestfish-actions.pod:4128
30349 msgid "set-selinux"
30350 msgstr ""
30351
30352 # type: =head2
30353 #. type: =head2
30354 #: ../fish/guestfish-actions.pod:4130
30355 msgid "selinux"
30356 msgstr ""
30357
30358 # type: verbatim
30359 #. type: verbatim
30360 #: ../fish/guestfish-actions.pod:4132
30361 #, no-wrap
30362 msgid ""
30363 " set-selinux true|false\n"
30364 "\n"
30365 msgstr ""
30366
30367 # type: =head2
30368 #. type: =head2
30369 #: ../fish/guestfish-actions.pod:4143
30370 msgid "set-trace"
30371 msgstr ""
30372
30373 # type: =head2
30374 #. type: =head2
30375 #: ../fish/guestfish-actions.pod:4145
30376 msgid "trace"
30377 msgstr ""
30378
30379 # type: verbatim
30380 #. type: verbatim
30381 #: ../fish/guestfish-actions.pod:4147
30382 #, no-wrap
30383 msgid ""
30384 " set-trace true|false\n"
30385 "\n"
30386 msgstr ""
30387
30388 #. type: textblock
30389 #: ../fish/guestfish-actions.pod:4159
30390 msgid ""
30391 "Trace messages are normally sent to C<stderr>, unless you register a "
30392 "callback to send them somewhere else (see L</set-event-callback>)."
30393 msgstr ""
30394
30395 # type: =head2
30396 #. type: =head2
30397 #: ../fish/guestfish-actions.pod:4163
30398 msgid "set-verbose"
30399 msgstr ""
30400
30401 # type: =head2
30402 #. type: =head2
30403 #: ../fish/guestfish-actions.pod:4165
30404 msgid "verbose"
30405 msgstr ""
30406
30407 # type: verbatim
30408 #. type: verbatim
30409 #: ../fish/guestfish-actions.pod:4167
30410 #, no-wrap
30411 msgid ""
30412 " set-verbose true|false\n"
30413 "\n"
30414 msgstr ""
30415
30416 #. type: textblock
30417 #: ../fish/guestfish-actions.pod:4174
30418 msgid ""
30419 "Verbose messages are normally sent to C<stderr>, unless you register a "
30420 "callback to send them somewhere else (see L</set-event-callback>)."
30421 msgstr ""
30422
30423 # type: =head2
30424 #. type: =head2
30425 #: ../fish/guestfish-actions.pod:4178
30426 msgid "setcon"
30427 msgstr ""
30428
30429 # type: verbatim
30430 #. type: verbatim
30431 #: ../fish/guestfish-actions.pod:4180
30432 #, no-wrap
30433 msgid ""
30434 " setcon context\n"
30435 "\n"
30436 msgstr ""
30437
30438 # type: =head2
30439 #. type: =head2
30440 #: ../fish/guestfish-actions.pod:4187
30441 msgid "setxattr"
30442 msgstr ""
30443
30444 # type: verbatim
30445 #. type: verbatim
30446 #: ../fish/guestfish-actions.pod:4189
30447 #, no-wrap
30448 msgid ""
30449 " setxattr xattr val vallen path\n"
30450 "\n"
30451 msgstr ""
30452
30453 # type: textblock
30454 #. type: textblock
30455 #: ../fish/guestfish-actions.pod:4195
30456 msgid "See also: L</lsetxattr>, L<attr(5)>."
30457 msgstr ""
30458
30459 # type: =head2
30460 #. type: =head2
30461 #: ../fish/guestfish-actions.pod:4197
30462 msgid "sfdisk"
30463 msgstr ""
30464
30465 # type: verbatim
30466 #. type: verbatim
30467 #: ../fish/guestfish-actions.pod:4199
30468 #, no-wrap
30469 msgid ""
30470 " sfdisk device cyls heads sectors 'lines ...'\n"
30471 "\n"
30472 msgstr ""
30473
30474 # type: textblock
30475 #. type: textblock
30476 #: ../fish/guestfish-actions.pod:4221
30477 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
30478 msgstr ""
30479
30480 # type: =head2
30481 #. type: =head2
30482 #: ../fish/guestfish-actions.pod:4234
30483 msgid "sfdiskM"
30484 msgstr ""
30485
30486 # type: verbatim
30487 #. type: verbatim
30488 #: ../fish/guestfish-actions.pod:4236
30489 #, no-wrap
30490 msgid ""
30491 " sfdiskM device 'lines ...'\n"
30492 "\n"
30493 msgstr ""
30494
30495 # type: textblock
30496 #. type: textblock
30497 #: ../fish/guestfish-actions.pod:4238
30498 msgid ""
30499 "This is a simplified interface to the L</sfdisk> command, where partition "
30500 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
30501 "you don't need to specify the cyls, heads and sectors parameters which were "
30502 "rarely if ever used anyway."
30503 msgstr ""
30504
30505 # type: textblock
30506 #. type: textblock
30507 #: ../fish/guestfish-actions.pod:4244
30508 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
30509 msgstr ""
30510
30511 # type: =head2
30512 #. type: =head2
30513 #: ../fish/guestfish-actions.pod:4257
30514 msgid "sfdisk-N"
30515 msgstr ""
30516
30517 # type: verbatim
30518 #. type: verbatim
30519 #: ../fish/guestfish-actions.pod:4259
30520 #, no-wrap
30521 msgid ""
30522 " sfdisk-N device partnum cyls heads sectors line\n"
30523 "\n"
30524 msgstr ""
30525
30526 # type: textblock
30527 #. type: textblock
30528 #: ../fish/guestfish-actions.pod:4264
30529 msgid ""
30530 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
30531 "cyls/heads/sectors parameters."
30532 msgstr ""
30533
30534 # type: textblock
30535 #. type: textblock
30536 #: ../fish/guestfish-actions.pod:4267
30537 msgid "See also: L</part-add>"
30538 msgstr ""
30539
30540 # type: =head2
30541 #. type: =head2
30542 #: ../fish/guestfish-actions.pod:4279
30543 msgid "sfdisk-disk-geometry"
30544 msgstr ""
30545
30546 # type: verbatim
30547 #. type: verbatim
30548 #: ../fish/guestfish-actions.pod:4281
30549 #, no-wrap
30550 msgid ""
30551 " sfdisk-disk-geometry device\n"
30552 "\n"
30553 msgstr ""
30554
30555 # type: textblock
30556 #. type: textblock
30557 #: ../fish/guestfish-actions.pod:4283
30558 msgid ""
30559 "This displays the disk geometry of C<device> read from the partition table.  "
30560 "Especially in the case where the underlying block device has been resized, "
30561 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
30562 "kernel-geometry>)."
30563 msgstr ""
30564
30565 # type: =head2
30566 #. type: =head2
30567 #: ../fish/guestfish-actions.pod:4291
30568 msgid "sfdisk-kernel-geometry"
30569 msgstr ""
30570
30571 # type: verbatim
30572 #. type: verbatim
30573 #: ../fish/guestfish-actions.pod:4293
30574 #, no-wrap
30575 msgid ""
30576 " sfdisk-kernel-geometry device\n"
30577 "\n"
30578 msgstr ""
30579
30580 # type: =head2
30581 #. type: =head2
30582 #: ../fish/guestfish-actions.pod:4300
30583 msgid "sfdisk-l"
30584 msgstr ""
30585
30586 # type: verbatim
30587 #. type: verbatim
30588 #: ../fish/guestfish-actions.pod:4302
30589 #, no-wrap
30590 msgid ""
30591 " sfdisk-l device\n"
30592 "\n"
30593 msgstr ""
30594
30595 # type: textblock
30596 #. type: textblock
30597 #: ../fish/guestfish-actions.pod:4308
30598 msgid "See also: L</part-list>"
30599 msgstr ""
30600
30601 # type: =head2
30602 #. type: =head2
30603 #: ../fish/guestfish-actions.pod:4317
30604 msgid "sh"
30605 msgstr ""
30606
30607 # type: verbatim
30608 #. type: verbatim
30609 #: ../fish/guestfish-actions.pod:4319
30610 #, no-wrap
30611 msgid ""
30612 " sh command\n"
30613 "\n"
30614 msgstr ""
30615
30616 # type: textblock
30617 #. type: textblock
30618 #: ../fish/guestfish-actions.pod:4324
30619 msgid "This is like L</command>, but passes the command to:"
30620 msgstr ""
30621
30622 # type: textblock
30623 #. type: textblock
30624 #: ../fish/guestfish-actions.pod:4332
30625 msgid "All the provisos about L</command> apply to this call."
30626 msgstr ""
30627
30628 # type: =head2
30629 #. type: =head2
30630 #: ../fish/guestfish-actions.pod:4334
30631 msgid "sh-lines"
30632 msgstr ""
30633
30634 # type: verbatim
30635 #. type: verbatim
30636 #: ../fish/guestfish-actions.pod:4336
30637 #, no-wrap
30638 msgid ""
30639 " sh-lines command\n"
30640 "\n"
30641 msgstr ""
30642
30643 # type: textblock
30644 #. type: textblock
30645 #: ../fish/guestfish-actions.pod:4338
30646 msgid "This is the same as L</sh>, but splits the result into a list of lines."
30647 msgstr ""
30648
30649 # type: textblock
30650 #. type: textblock
30651 #: ../fish/guestfish-actions.pod:4341
30652 msgid "See also: L</command-lines>"
30653 msgstr ""
30654
30655 # type: =head2
30656 #. type: =head2
30657 #: ../fish/guestfish-actions.pod:4343
30658 msgid "sleep"
30659 msgstr ""
30660
30661 # type: verbatim
30662 #. type: verbatim
30663 #: ../fish/guestfish-actions.pod:4345
30664 #, no-wrap
30665 msgid ""
30666 " sleep secs\n"
30667 "\n"
30668 msgstr ""
30669
30670 # type: =head2
30671 #. type: =head2
30672 #: ../fish/guestfish-actions.pod:4349
30673 msgid "stat"
30674 msgstr ""
30675
30676 # type: verbatim
30677 #. type: verbatim
30678 #: ../fish/guestfish-actions.pod:4351
30679 #, no-wrap
30680 msgid ""
30681 " stat path\n"
30682 "\n"
30683 msgstr ""
30684
30685 # type: =head2
30686 #. type: =head2
30687 #: ../fish/guestfish-actions.pod:4357
30688 msgid "statvfs"
30689 msgstr ""
30690
30691 # type: verbatim
30692 #. type: verbatim
30693 #: ../fish/guestfish-actions.pod:4359
30694 #, no-wrap
30695 msgid ""
30696 " statvfs path\n"
30697 "\n"
30698 msgstr ""
30699
30700 # type: =head2
30701 #. type: =head2
30702 #: ../fish/guestfish-actions.pod:4367
30703 msgid "strings"
30704 msgstr ""
30705
30706 # type: verbatim
30707 #. type: verbatim
30708 #: ../fish/guestfish-actions.pod:4369
30709 #, no-wrap
30710 msgid ""
30711 " strings path\n"
30712 "\n"
30713 msgstr ""
30714
30715 # type: =head2
30716 #. type: =head2
30717 #: ../fish/guestfish-actions.pod:4377
30718 msgid "strings-e"
30719 msgstr ""
30720
30721 # type: verbatim
30722 #. type: verbatim
30723 #: ../fish/guestfish-actions.pod:4379
30724 #, no-wrap
30725 msgid ""
30726 " strings-e encoding path\n"
30727 "\n"
30728 msgstr ""
30729
30730 # type: textblock
30731 #. type: textblock
30732 #: ../fish/guestfish-actions.pod:4381
30733 msgid ""
30734 "This is like the L</strings> command, but allows you to specify the encoding "
30735 "of strings that are looked for in the source file C<path>."
30736 msgstr ""
30737
30738 # type: textblock
30739 #. type: textblock
30740 #: ../fish/guestfish-actions.pod:4391
30741 msgid ""
30742 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30743 "ISO-8859-X (this is what L</strings> uses)."
30744 msgstr ""
30745
30746 # type: =head2
30747 #. type: =head2
30748 #: ../fish/guestfish-actions.pod:4423
30749 msgid "swapoff-device"
30750 msgstr ""
30751
30752 # type: verbatim
30753 #. type: verbatim
30754 #: ../fish/guestfish-actions.pod:4425
30755 #, no-wrap
30756 msgid ""
30757 " swapoff-device device\n"
30758 "\n"
30759 msgstr ""
30760
30761 # type: textblock
30762 #. type: textblock
30763 #: ../fish/guestfish-actions.pod:4427
30764 msgid ""
30765 "This command disables the libguestfs appliance swap device or partition "
30766 "named C<device>.  See L</swapon-device>."
30767 msgstr ""
30768
30769 # type: =head2
30770 #. type: =head2
30771 #: ../fish/guestfish-actions.pod:4431
30772 msgid "swapoff-file"
30773 msgstr ""
30774
30775 # type: verbatim
30776 #. type: verbatim
30777 #: ../fish/guestfish-actions.pod:4433
30778 #, no-wrap
30779 msgid ""
30780 " swapoff-file file\n"
30781 "\n"
30782 msgstr ""
30783
30784 # type: =head2
30785 #. type: =head2
30786 #: ../fish/guestfish-actions.pod:4437
30787 msgid "swapoff-label"
30788 msgstr ""
30789
30790 # type: verbatim
30791 #. type: verbatim
30792 #: ../fish/guestfish-actions.pod:4439
30793 #, no-wrap
30794 msgid ""
30795 " swapoff-label label\n"
30796 "\n"
30797 msgstr ""
30798
30799 # type: =head2
30800 #. type: =head2
30801 #: ../fish/guestfish-actions.pod:4444
30802 msgid "swapoff-uuid"
30803 msgstr ""
30804
30805 # type: verbatim
30806 #. type: verbatim
30807 #: ../fish/guestfish-actions.pod:4446
30808 #, no-wrap
30809 msgid ""
30810 " swapoff-uuid uuid\n"
30811 "\n"
30812 msgstr ""
30813
30814 # type: =head2
30815 #. type: =head2
30816 #: ../fish/guestfish-actions.pod:4451
30817 msgid "swapon-device"
30818 msgstr ""
30819
30820 # type: verbatim
30821 #. type: verbatim
30822 #: ../fish/guestfish-actions.pod:4453
30823 #, no-wrap
30824 msgid ""
30825 " swapon-device device\n"
30826 "\n"
30827 msgstr ""
30828
30829 # type: textblock
30830 #. type: textblock
30831 #: ../fish/guestfish-actions.pod:4455
30832 msgid ""
30833 "This command enables the libguestfs appliance to use the swap device or "
30834 "partition named C<device>.  The increased memory is made available for all "
30835 "commands, for example those run using L</command> or L</sh>."
30836 msgstr ""
30837
30838 # type: =head2
30839 #. type: =head2
30840 #: ../fish/guestfish-actions.pod:4467
30841 msgid "swapon-file"
30842 msgstr ""
30843
30844 # type: verbatim
30845 #. type: verbatim
30846 #: ../fish/guestfish-actions.pod:4469
30847 #, no-wrap
30848 msgid ""
30849 " swapon-file file\n"
30850 "\n"
30851 msgstr ""
30852
30853 # type: textblock
30854 #. type: textblock
30855 #: ../fish/guestfish-actions.pod:4471
30856 msgid ""
30857 "This command enables swap to a file.  See L</swapon-device> for other notes."
30858 msgstr ""
30859
30860 # type: =head2
30861 #. type: =head2
30862 #: ../fish/guestfish-actions.pod:4474
30863 msgid "swapon-label"
30864 msgstr ""
30865
30866 # type: verbatim
30867 #. type: verbatim
30868 #: ../fish/guestfish-actions.pod:4476
30869 #, no-wrap
30870 msgid ""
30871 " swapon-label label\n"
30872 "\n"
30873 msgstr ""
30874
30875 # type: textblock
30876 #. type: textblock
30877 #: ../fish/guestfish-actions.pod:4478
30878 msgid ""
30879 "This command enables swap to a labeled swap partition.  See L</swapon-"
30880 "device> for other notes."
30881 msgstr ""
30882
30883 # type: =head2
30884 #. type: =head2
30885 #: ../fish/guestfish-actions.pod:4481
30886 msgid "swapon-uuid"
30887 msgstr ""
30888
30889 # type: verbatim
30890 #. type: verbatim
30891 #: ../fish/guestfish-actions.pod:4483
30892 #, no-wrap
30893 msgid ""
30894 " swapon-uuid uuid\n"
30895 "\n"
30896 msgstr ""
30897
30898 # type: textblock
30899 #. type: textblock
30900 #: ../fish/guestfish-actions.pod:4485
30901 msgid ""
30902 "This command enables swap to a swap partition with the given UUID.  See L</"
30903 "swapon-device> for other notes."
30904 msgstr ""
30905
30906 # type: =head2
30907 #. type: =head2
30908 #: ../fish/guestfish-actions.pod:4488
30909 msgid "sync"
30910 msgstr ""
30911
30912 # type: verbatim
30913 #. type: verbatim
30914 #: ../fish/guestfish-actions.pod:4490
30915 #, no-wrap
30916 msgid ""
30917 " sync\n"
30918 "\n"
30919 msgstr ""
30920
30921 # type: =head2
30922 #. type: =head2
30923 #: ../fish/guestfish-actions.pod:4498
30924 msgid "tail"
30925 msgstr ""
30926
30927 # type: verbatim
30928 #. type: verbatim
30929 #: ../fish/guestfish-actions.pod:4500
30930 #, no-wrap
30931 msgid ""
30932 " tail path\n"
30933 "\n"
30934 msgstr ""
30935
30936 # type: =head2
30937 #. type: =head2
30938 #: ../fish/guestfish-actions.pod:4508
30939 msgid "tail-n"
30940 msgstr ""
30941
30942 # type: verbatim
30943 #. type: verbatim
30944 #: ../fish/guestfish-actions.pod:4510
30945 #, no-wrap
30946 msgid ""
30947 " tail-n nrlines path\n"
30948 "\n"
30949 msgstr ""
30950
30951 # type: =head2
30952 #. type: =head2
30953 #: ../fish/guestfish-actions.pod:4523
30954 msgid "tar-in"
30955 msgstr ""
30956
30957 # type: verbatim
30958 #. type: verbatim
30959 #: ../fish/guestfish-actions.pod:4525
30960 #, no-wrap
30961 msgid ""
30962 " tar-in (tarfile|-) directory\n"
30963 "\n"
30964 msgstr ""
30965
30966 # type: textblock
30967 #. type: textblock
30968 #: ../fish/guestfish-actions.pod:4530
30969 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
30970 msgstr ""
30971
30972 # type: =head2
30973 #. type: =head2
30974 #: ../fish/guestfish-actions.pod:4535
30975 msgid "tar-out"
30976 msgstr ""
30977
30978 # type: verbatim
30979 #. type: verbatim
30980 #: ../fish/guestfish-actions.pod:4537
30981 #, no-wrap
30982 msgid ""
30983 " tar-out directory (tarfile|-)\n"
30984 "\n"
30985 msgstr ""
30986
30987 # type: textblock
30988 #. type: textblock
30989 #: ../fish/guestfish-actions.pod:4542
30990 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
30991 msgstr ""
30992
30993 # type: =head2
30994 #. type: =head2
30995 #: ../fish/guestfish-actions.pod:4547
30996 msgid "tgz-in"
30997 msgstr ""
30998
30999 # type: verbatim
31000 #. type: verbatim
31001 #: ../fish/guestfish-actions.pod:4549
31002 #, no-wrap
31003 msgid ""
31004 " tgz-in (tarball|-) directory\n"
31005 "\n"
31006 msgstr ""
31007
31008 # type: textblock
31009 #. type: textblock
31010 #: ../fish/guestfish-actions.pod:4554
31011 msgid "To upload an uncompressed tarball, use L</tar-in>."
31012 msgstr ""
31013
31014 # type: =head2
31015 #. type: =head2
31016 #: ../fish/guestfish-actions.pod:4558
31017 msgid "tgz-out"
31018 msgstr ""
31019
31020 # type: verbatim
31021 #. type: verbatim
31022 #: ../fish/guestfish-actions.pod:4560
31023 #, no-wrap
31024 msgid ""
31025 " tgz-out directory (tarball|-)\n"
31026 "\n"
31027 msgstr ""
31028
31029 # type: textblock
31030 #. type: textblock
31031 #: ../fish/guestfish-actions.pod:4565
31032 msgid "To download an uncompressed tarball, use L</tar-out>."
31033 msgstr ""
31034
31035 # type: =head2
31036 #. type: =head2
31037 #: ../fish/guestfish-actions.pod:4569
31038 msgid "touch"
31039 msgstr ""
31040
31041 # type: verbatim
31042 #. type: verbatim
31043 #: ../fish/guestfish-actions.pod:4571
31044 #, no-wrap
31045 msgid ""
31046 " touch path\n"
31047 "\n"
31048 msgstr ""
31049
31050 # type: =head2
31051 #. type: =head2
31052 #: ../fish/guestfish-actions.pod:4580
31053 msgid "truncate"
31054 msgstr ""
31055
31056 # type: verbatim
31057 #. type: verbatim
31058 #: ../fish/guestfish-actions.pod:4582
31059 #, no-wrap
31060 msgid ""
31061 " truncate path\n"
31062 "\n"
31063 msgstr ""
31064
31065 # type: =head2
31066 #. type: =head2
31067 #: ../fish/guestfish-actions.pod:4587
31068 msgid "truncate-size"
31069 msgstr ""
31070
31071 # type: verbatim
31072 #. type: verbatim
31073 #: ../fish/guestfish-actions.pod:4589
31074 #, no-wrap
31075 msgid ""
31076 " truncate-size path size\n"
31077 "\n"
31078 msgstr ""
31079
31080 # type: textblock
31081 #. type: textblock
31082 #: ../fish/guestfish-actions.pod:4594
31083 msgid ""
31084 "If the current file size is less than C<size> then the file is extended to "
31085 "the required size with zero bytes.  This creates a sparse file (ie. disk "
31086 "blocks are not allocated for the file until you write to it).  To create a "
31087 "non-sparse file of zeroes, use L</fallocate64> instead."
31088 msgstr ""
31089
31090 # type: =head2
31091 #. type: =head2
31092 #: ../fish/guestfish-actions.pod:4600
31093 msgid "tune2fs-l"
31094 msgstr ""
31095
31096 # type: verbatim
31097 #. type: verbatim
31098 #: ../fish/guestfish-actions.pod:4602
31099 #, no-wrap
31100 msgid ""
31101 " tune2fs-l device\n"
31102 "\n"
31103 msgstr ""
31104
31105 # type: =head2
31106 #. type: =head2
31107 #: ../fish/guestfish-actions.pod:4612
31108 msgid "txz-in"
31109 msgstr ""
31110
31111 # type: verbatim
31112 #. type: verbatim
31113 #: ../fish/guestfish-actions.pod:4614
31114 #, no-wrap
31115 msgid ""
31116 " txz-in (tarball|-) directory\n"
31117 "\n"
31118 msgstr ""
31119
31120 # type: =head2
31121 #. type: =head2
31122 #: ../fish/guestfish-actions.pod:4621
31123 msgid "txz-out"
31124 msgstr ""
31125
31126 # type: verbatim
31127 #. type: verbatim
31128 #: ../fish/guestfish-actions.pod:4623
31129 #, no-wrap
31130 msgid ""
31131 " txz-out directory (tarball|-)\n"
31132 "\n"
31133 msgstr ""
31134
31135 # type: =head2
31136 #. type: =head2
31137 #: ../fish/guestfish-actions.pod:4630
31138 msgid "umask"
31139 msgstr ""
31140
31141 # type: verbatim
31142 #. type: verbatim
31143 #: ../fish/guestfish-actions.pod:4632
31144 #, no-wrap
31145 msgid ""
31146 " umask mask\n"
31147 "\n"
31148 msgstr ""
31149
31150 # type: textblock
31151 #. type: textblock
31152 #: ../fish/guestfish-actions.pod:4646
31153 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
31154 msgstr ""
31155
31156 # type: =head2
31157 #. type: =head2
31158 #: ../fish/guestfish-actions.pod:4651
31159 msgid "umount"
31160 msgstr ""
31161
31162 # type: =head2
31163 #. type: =head2
31164 #: ../fish/guestfish-actions.pod:4653
31165 msgid "unmount"
31166 msgstr ""
31167
31168 # type: verbatim
31169 #. type: verbatim
31170 #: ../fish/guestfish-actions.pod:4655
31171 #, no-wrap
31172 msgid ""
31173 " umount pathordevice\n"
31174 "\n"
31175 msgstr ""
31176
31177 # type: =head2
31178 #. type: =head2
31179 #: ../fish/guestfish-actions.pod:4661
31180 msgid "umount-all"
31181 msgstr ""
31182
31183 # type: =head2
31184 #. type: =head2
31185 #: ../fish/guestfish-actions.pod:4663
31186 msgid "unmount-all"
31187 msgstr ""
31188
31189 # type: verbatim
31190 #. type: verbatim
31191 #: ../fish/guestfish-actions.pod:4665
31192 #, no-wrap
31193 msgid ""
31194 " umount-all\n"
31195 "\n"
31196 msgstr ""
31197
31198 # type: =head2
31199 #. type: =head2
31200 #: ../fish/guestfish-actions.pod:4671
31201 msgid "upload"
31202 msgstr ""
31203
31204 # type: verbatim
31205 #. type: verbatim
31206 #: ../fish/guestfish-actions.pod:4673
31207 #, no-wrap
31208 msgid ""
31209 " upload (filename|-) remotefilename\n"
31210 "\n"
31211 msgstr ""
31212
31213 # type: textblock
31214 #. type: textblock
31215 #: ../fish/guestfish-actions.pod:4680
31216 msgid "See also L</download>."
31217 msgstr ""
31218
31219 # type: =head2
31220 #. type: =head2
31221 #: ../fish/guestfish-actions.pod:4684
31222 msgid "upload-offset"
31223 msgstr ""
31224
31225 # type: verbatim
31226 #. type: verbatim
31227 #: ../fish/guestfish-actions.pod:4686
31228 #, no-wrap
31229 msgid ""
31230 " upload-offset (filename|-) remotefilename offset\n"
31231 "\n"
31232 msgstr ""
31233
31234 # type: textblock
31235 #. type: textblock
31236 #: ../fish/guestfish-actions.pod:4698
31237 msgid ""
31238 "Note that there is no limit on the amount of data that can be uploaded with "
31239 "this call, unlike with L</pwrite>, and this call always writes the full "
31240 "amount unless an error occurs."
31241 msgstr ""
31242
31243 # type: textblock
31244 #. type: textblock
31245 #: ../fish/guestfish-actions.pod:4703
31246 msgid "See also L</upload>, L</pwrite>."
31247 msgstr ""
31248
31249 # type: =head2
31250 #. type: =head2
31251 #: ../fish/guestfish-actions.pod:4707
31252 msgid "utimens"
31253 msgstr ""
31254
31255 # type: verbatim
31256 #. type: verbatim
31257 #: ../fish/guestfish-actions.pod:4709
31258 #, no-wrap
31259 msgid ""
31260 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
31261 "\n"
31262 msgstr ""
31263
31264 # type: =head2
31265 #. type: =head2
31266 #: ../fish/guestfish-actions.pod:4728
31267 msgid "version"
31268 msgstr ""
31269
31270 # type: verbatim
31271 #. type: verbatim
31272 #: ../fish/guestfish-actions.pod:4730
31273 #, no-wrap
31274 msgid ""
31275 " version\n"
31276 "\n"
31277 msgstr ""
31278
31279 # type: textblock
31280 #. type: textblock
31281 #: ../fish/guestfish-actions.pod:4757
31282 msgid ""
31283 "I<Note:> Don't use this call to test for availability of features.  In "
31284 "enterprise distributions we backport features from later versions into "
31285 "earlier versions, making this an unreliable way to test for features.  Use "
31286 "L</available> instead."
31287 msgstr ""
31288
31289 # type: =head2
31290 #. type: =head2
31291 #: ../fish/guestfish-actions.pod:4763
31292 msgid "vfs-label"
31293 msgstr ""
31294
31295 # type: verbatim
31296 #. type: verbatim
31297 #: ../fish/guestfish-actions.pod:4765
31298 #, no-wrap
31299 msgid ""
31300 " vfs-label device\n"
31301 "\n"
31302 msgstr ""
31303
31304 # type: textblock
31305 #. type: textblock
31306 #: ../fish/guestfish-actions.pod:4772
31307 msgid "To find a filesystem from the label, use L</findfs-label>."
31308 msgstr ""
31309
31310 # type: =head2
31311 #. type: =head2
31312 #: ../fish/guestfish-actions.pod:4774
31313 msgid "vfs-type"
31314 msgstr ""
31315
31316 # type: verbatim
31317 #. type: verbatim
31318 #: ../fish/guestfish-actions.pod:4776
31319 #, no-wrap
31320 msgid ""
31321 " vfs-type device\n"
31322 "\n"
31323 msgstr ""
31324
31325 # type: =head2
31326 #. type: =head2
31327 #: ../fish/guestfish-actions.pod:4786
31328 msgid "vfs-uuid"
31329 msgstr ""
31330
31331 # type: verbatim
31332 #. type: verbatim
31333 #: ../fish/guestfish-actions.pod:4788
31334 #, no-wrap
31335 msgid ""
31336 " vfs-uuid device\n"
31337 "\n"
31338 msgstr ""
31339
31340 # type: textblock
31341 #. type: textblock
31342 #: ../fish/guestfish-actions.pod:4795
31343 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
31344 msgstr ""
31345
31346 # type: =head2
31347 #. type: =head2
31348 #: ../fish/guestfish-actions.pod:4797
31349 msgid "vg-activate"
31350 msgstr ""
31351
31352 # type: verbatim
31353 #. type: verbatim
31354 #: ../fish/guestfish-actions.pod:4799
31355 #, no-wrap
31356 msgid ""
31357 " vg-activate true|false 'volgroups ...'\n"
31358 "\n"
31359 msgstr ""
31360
31361 # type: =head2
31362 #. type: =head2
31363 #: ../fish/guestfish-actions.pod:4812
31364 msgid "vg-activate-all"
31365 msgstr ""
31366
31367 # type: verbatim
31368 #. type: verbatim
31369 #: ../fish/guestfish-actions.pod:4814
31370 #, no-wrap
31371 msgid ""
31372 " vg-activate-all true|false\n"
31373 "\n"
31374 msgstr ""
31375
31376 # type: =head2
31377 #. type: =head2
31378 #: ../fish/guestfish-actions.pod:4824
31379 msgid "vgcreate"
31380 msgstr ""
31381
31382 # type: verbatim
31383 #. type: verbatim
31384 #: ../fish/guestfish-actions.pod:4826
31385 #, no-wrap
31386 msgid ""
31387 " vgcreate volgroup 'physvols ...'\n"
31388 "\n"
31389 msgstr ""
31390
31391 # type: =head2
31392 #. type: =head2
31393 #: ../fish/guestfish-actions.pod:4831
31394 msgid "vglvuuids"
31395 msgstr ""
31396
31397 # type: verbatim
31398 #. type: verbatim
31399 #: ../fish/guestfish-actions.pod:4833
31400 #, no-wrap
31401 msgid ""
31402 " vglvuuids vgname\n"
31403 "\n"
31404 msgstr ""
31405
31406 # type: textblock
31407 #. type: textblock
31408 #: ../fish/guestfish-actions.pod:4838
31409 msgid ""
31410 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
31411 "logical volumes and volume groups."
31412 msgstr ""
31413
31414 # type: textblock
31415 #. type: textblock
31416 #: ../fish/guestfish-actions.pod:4841
31417 msgid "See also L</vgpvuuids>."
31418 msgstr ""
31419
31420 # type: =head2
31421 #. type: =head2
31422 #: ../fish/guestfish-actions.pod:4843
31423 msgid "vgpvuuids"
31424 msgstr ""
31425
31426 # type: verbatim
31427 #. type: verbatim
31428 #: ../fish/guestfish-actions.pod:4845
31429 #, no-wrap
31430 msgid ""
31431 " vgpvuuids vgname\n"
31432 "\n"
31433 msgstr ""
31434
31435 # type: textblock
31436 #. type: textblock
31437 #: ../fish/guestfish-actions.pod:4850
31438 msgid ""
31439 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
31440 "physical volumes and volume groups."
31441 msgstr ""
31442
31443 # type: textblock
31444 #. type: textblock
31445 #: ../fish/guestfish-actions.pod:4853
31446 msgid "See also L</vglvuuids>."
31447 msgstr ""
31448
31449 # type: =head2
31450 #. type: =head2
31451 #: ../fish/guestfish-actions.pod:4855
31452 msgid "vgremove"
31453 msgstr ""
31454
31455 # type: verbatim
31456 #. type: verbatim
31457 #: ../fish/guestfish-actions.pod:4857
31458 #, no-wrap
31459 msgid ""
31460 " vgremove vgname\n"
31461 "\n"
31462 msgstr ""
31463
31464 # type: =head2
31465 #. type: =head2
31466 #: ../fish/guestfish-actions.pod:4864
31467 msgid "vgrename"
31468 msgstr ""
31469
31470 # type: verbatim
31471 #. type: verbatim
31472 #: ../fish/guestfish-actions.pod:4866
31473 #, no-wrap
31474 msgid ""
31475 " vgrename volgroup newvolgroup\n"
31476 "\n"
31477 msgstr ""
31478
31479 # type: =head2
31480 #. type: =head2
31481 #: ../fish/guestfish-actions.pod:4870
31482 msgid "vgs"
31483 msgstr ""
31484
31485 # type: verbatim
31486 #. type: verbatim
31487 #: ../fish/guestfish-actions.pod:4872
31488 #, no-wrap
31489 msgid ""
31490 " vgs\n"
31491 "\n"
31492 msgstr ""
31493
31494 # type: textblock
31495 #. type: textblock
31496 #: ../fish/guestfish-actions.pod:4880
31497 msgid "See also L</vgs-full>."
31498 msgstr ""
31499
31500 # type: =head2
31501 #. type: =head2
31502 #: ../fish/guestfish-actions.pod:4882
31503 msgid "vgs-full"
31504 msgstr ""
31505
31506 # type: verbatim
31507 #. type: verbatim
31508 #: ../fish/guestfish-actions.pod:4884
31509 #, no-wrap
31510 msgid ""
31511 " vgs-full\n"
31512 "\n"
31513 msgstr ""
31514
31515 # type: =head2
31516 #. type: =head2
31517 #: ../fish/guestfish-actions.pod:4889
31518 msgid "vgscan"
31519 msgstr ""
31520
31521 # type: verbatim
31522 #. type: verbatim
31523 #: ../fish/guestfish-actions.pod:4891
31524 #, no-wrap
31525 msgid ""
31526 " vgscan\n"
31527 "\n"
31528 msgstr ""
31529
31530 # type: =head2
31531 #. type: =head2
31532 #: ../fish/guestfish-actions.pod:4896
31533 msgid "vguuid"
31534 msgstr ""
31535
31536 # type: verbatim
31537 #. type: verbatim
31538 #: ../fish/guestfish-actions.pod:4898
31539 #, no-wrap
31540 msgid ""
31541 " vguuid vgname\n"
31542 "\n"
31543 msgstr ""
31544
31545 # type: =head2
31546 #. type: =head2
31547 #: ../fish/guestfish-actions.pod:4902
31548 msgid "wc-c"
31549 msgstr ""
31550
31551 # type: verbatim
31552 #. type: verbatim
31553 #: ../fish/guestfish-actions.pod:4904
31554 #, no-wrap
31555 msgid ""
31556 " wc-c path\n"
31557 "\n"
31558 msgstr ""
31559
31560 # type: =head2
31561 #. type: =head2
31562 #: ../fish/guestfish-actions.pod:4909
31563 msgid "wc-l"
31564 msgstr ""
31565
31566 # type: verbatim
31567 #. type: verbatim
31568 #: ../fish/guestfish-actions.pod:4911
31569 #, no-wrap
31570 msgid ""
31571 " wc-l path\n"
31572 "\n"
31573 msgstr ""
31574
31575 # type: =head2
31576 #. type: =head2
31577 #: ../fish/guestfish-actions.pod:4916
31578 msgid "wc-w"
31579 msgstr ""
31580
31581 # type: verbatim
31582 #. type: verbatim
31583 #: ../fish/guestfish-actions.pod:4918
31584 #, no-wrap
31585 msgid ""
31586 " wc-w path\n"
31587 "\n"
31588 msgstr ""
31589
31590 # type: =head2
31591 #. type: =head2
31592 #: ../fish/guestfish-actions.pod:4923
31593 msgid "write"
31594 msgstr ""
31595
31596 # type: verbatim
31597 #. type: verbatim
31598 #: ../fish/guestfish-actions.pod:4925
31599 #, no-wrap
31600 msgid ""
31601 " write path content\n"
31602 "\n"
31603 msgstr ""
31604
31605 # type: =head2
31606 #. type: =head2
31607 #: ../fish/guestfish-actions.pod:4933
31608 msgid "write-file"
31609 msgstr ""
31610
31611 # type: verbatim
31612 #. type: verbatim
31613 #: ../fish/guestfish-actions.pod:4935
31614 #, no-wrap
31615 msgid ""
31616 " write-file path content size\n"
31617 "\n"
31618 msgstr ""
31619
31620 # type: =head2
31621 #. type: =head2
31622 #: ../fish/guestfish-actions.pod:4958
31623 msgid "zegrep"
31624 msgstr ""
31625
31626 # type: verbatim
31627 #. type: verbatim
31628 #: ../fish/guestfish-actions.pod:4960
31629 #, no-wrap
31630 msgid ""
31631 " zegrep regex path\n"
31632 "\n"
31633 msgstr ""
31634
31635 # type: =head2
31636 #. type: =head2
31637 #: ../fish/guestfish-actions.pod:4968
31638 msgid "zegrepi"
31639 msgstr ""
31640
31641 # type: verbatim
31642 #. type: verbatim
31643 #: ../fish/guestfish-actions.pod:4970
31644 #, no-wrap
31645 msgid ""
31646 " zegrepi regex path\n"
31647 "\n"
31648 msgstr ""
31649
31650 # type: =head2
31651 #. type: =head2
31652 #: ../fish/guestfish-actions.pod:4978
31653 msgid "zero"
31654 msgstr ""
31655
31656 # type: verbatim
31657 #. type: verbatim
31658 #: ../fish/guestfish-actions.pod:4980
31659 #, no-wrap
31660 msgid ""
31661 " zero device\n"
31662 "\n"
31663 msgstr ""
31664
31665 #. type: textblock
31666 #: ../fish/guestfish-actions.pod:4988
31667 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
31668 msgstr ""
31669
31670 # type: =head2
31671 #. type: =head2
31672 #: ../fish/guestfish-actions.pod:4991
31673 msgid "zero-device"
31674 msgstr ""
31675
31676 # type: verbatim
31677 #. type: verbatim
31678 #: ../fish/guestfish-actions.pod:4993
31679 #, no-wrap
31680 msgid ""
31681 " zero-device device\n"
31682 "\n"
31683 msgstr ""
31684
31685 # type: textblock
31686 #. type: textblock
31687 #: ../fish/guestfish-actions.pod:4995
31688 msgid ""
31689 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
31690 "which just zeroes the first few blocks of a device."
31691 msgstr ""
31692
31693 # type: =head2
31694 #. type: =head2
31695 #: ../fish/guestfish-actions.pod:5002
31696 msgid "zerofree"
31697 msgstr ""
31698
31699 # type: verbatim
31700 #. type: verbatim
31701 #: ../fish/guestfish-actions.pod:5004
31702 #, no-wrap
31703 msgid ""
31704 " zerofree device\n"
31705 "\n"
31706 msgstr ""
31707
31708 # type: =head2
31709 #. type: =head2
31710 #: ../fish/guestfish-actions.pod:5017
31711 msgid "zfgrep"
31712 msgstr ""
31713
31714 # type: verbatim
31715 #. type: verbatim
31716 #: ../fish/guestfish-actions.pod:5019
31717 #, no-wrap
31718 msgid ""
31719 " zfgrep pattern path\n"
31720 "\n"
31721 msgstr ""
31722
31723 # type: =head2
31724 #. type: =head2
31725 #: ../fish/guestfish-actions.pod:5027
31726 msgid "zfgrepi"
31727 msgstr ""
31728
31729 # type: verbatim
31730 #. type: verbatim
31731 #: ../fish/guestfish-actions.pod:5029
31732 #, no-wrap
31733 msgid ""
31734 " zfgrepi pattern path\n"
31735 "\n"
31736 msgstr ""
31737
31738 # type: =head2
31739 #. type: =head2
31740 #: ../fish/guestfish-actions.pod:5037
31741 msgid "zfile"
31742 msgstr ""
31743
31744 # type: verbatim
31745 #. type: verbatim
31746 #: ../fish/guestfish-actions.pod:5039
31747 #, no-wrap
31748 msgid ""
31749 " zfile meth path\n"
31750 "\n"
31751 msgstr ""
31752
31753 # type: textblock
31754 #. type: textblock
31755 #: ../fish/guestfish-actions.pod:5046
31756 msgid ""
31757 "Since 1.0.63, use L</file> instead which can now process compressed files."
31758 msgstr ""
31759
31760 # type: =head2
31761 #. type: =head2
31762 #: ../fish/guestfish-actions.pod:5056
31763 msgid "zgrep"
31764 msgstr ""
31765
31766 # type: verbatim
31767 #. type: verbatim
31768 #: ../fish/guestfish-actions.pod:5058
31769 #, no-wrap
31770 msgid ""
31771 " zgrep regex path\n"
31772 "\n"
31773 msgstr ""
31774
31775 # type: =head2
31776 #. type: =head2
31777 #: ../fish/guestfish-actions.pod:5066
31778 msgid "zgrepi"
31779 msgstr ""
31780
31781 # type: verbatim
31782 #. type: verbatim
31783 #: ../fish/guestfish-actions.pod:5068
31784 #, no-wrap
31785 msgid ""
31786 " zgrepi regex path\n"
31787 "\n"
31788 msgstr ""
31789
31790 # type: =head2
31791 #. type: =head2
31792 #: ../fish/guestfish-commands.pod:1
31793 msgid "alloc"
31794 msgstr ""
31795
31796 # type: =head2
31797 #. type: =head2
31798 #: ../fish/guestfish-commands.pod:3
31799 msgid "allocate"
31800 msgstr ""
31801
31802 # type: verbatim
31803 #. type: verbatim
31804 #: ../fish/guestfish-commands.pod:5
31805 #, no-wrap
31806 msgid ""
31807 " alloc filename size\n"
31808 "\n"
31809 msgstr ""
31810
31811 # type: textblock
31812 #. type: textblock
31813 #: ../fish/guestfish-commands.pod:7
31814 msgid ""
31815 "This creates an empty (zeroed) file of the given size, and then adds so it "
31816 "can be further examined."
31817 msgstr ""
31818
31819 # type: textblock
31820 #. type: textblock
31821 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:182
31822 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
31823 msgstr ""
31824
31825 # type: textblock
31826 #. type: textblock
31827 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:184
31828 msgid "Size can be specified using standard suffixes, eg. C<1M>."
31829 msgstr ""
31830
31831 # type: textblock
31832 #. type: textblock
31833 #: ../fish/guestfish-commands.pod:14
31834 msgid ""
31835 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
31836 "image, see L</PREPARED DISK IMAGES>."
31837 msgstr ""
31838
31839 # type: =head2
31840 #. type: =head2
31841 #: ../fish/guestfish-commands.pod:17
31842 msgid "copy-in"
31843 msgstr ""
31844
31845 # type: verbatim
31846 #. type: verbatim
31847 #: ../fish/guestfish-commands.pod:19
31848 #, no-wrap
31849 msgid ""
31850 " copy-in local [local ...] /remotedir\n"
31851 "\n"
31852 msgstr ""
31853
31854 # type: textblock
31855 #. type: textblock
31856 #: ../fish/guestfish-commands.pod:21
31857 msgid ""
31858 "C<copy-in> copies local files or directories recursively into the disk "
31859 "image, placing them in the directory called C</remotedir> (which must "
31860 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
31861 "other commands as necessary."
31862 msgstr ""
31863
31864 # type: textblock
31865 #. type: textblock
31866 #: ../fish/guestfish-commands.pod:26
31867 msgid ""
31868 "Multiple local files and directories can be specified, but the last "
31869 "parameter must always be a remote directory.  Wildcards cannot be used."
31870 msgstr ""
31871
31872 # type: =head2
31873 #. type: =head2
31874 #: ../fish/guestfish-commands.pod:30
31875 msgid "copy-out"
31876 msgstr ""
31877
31878 # type: verbatim
31879 #. type: verbatim
31880 #: ../fish/guestfish-commands.pod:32
31881 #, no-wrap
31882 msgid ""
31883 " copy-out remote [remote ...] localdir\n"
31884 "\n"
31885 msgstr ""
31886
31887 # type: textblock
31888 #. type: textblock
31889 #: ../fish/guestfish-commands.pod:34
31890 msgid ""
31891 "C<copy-out> copies remote files or directories recursively out of the disk "
31892 "image, placing them on the host disk in a local directory called C<localdir> "
31893 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
31894 "download>, L</tar-out> and other commands as necessary."
31895 msgstr ""
31896
31897 # type: textblock
31898 #. type: textblock
31899 #: ../fish/guestfish-commands.pod:40
31900 msgid ""
31901 "Multiple remote files and directories can be specified, but the last "
31902 "parameter must always be a local directory.  To download to the current "
31903 "directory, use C<.> as in:"
31904 msgstr ""
31905
31906 # type: verbatim
31907 #. type: verbatim
31908 #: ../fish/guestfish-commands.pod:44
31909 #, no-wrap
31910 msgid ""
31911 " copy-out /home .\n"
31912 "\n"
31913 msgstr ""
31914
31915 # type: textblock
31916 #. type: textblock
31917 #: ../fish/guestfish-commands.pod:46
31918 msgid ""
31919 "Wildcards cannot be used in the ordinary command, but you can use them with "
31920 "the help of L</glob> like this:"
31921 msgstr ""
31922
31923 # type: verbatim
31924 #. type: verbatim
31925 #: ../fish/guestfish-commands.pod:49
31926 #, no-wrap
31927 msgid ""
31928 " glob copy-out /home/* .\n"
31929 "\n"
31930 msgstr ""
31931
31932 #. type: =head2
31933 #: ../fish/guestfish-commands.pod:51
31934 msgid "display"
31935 msgstr ""
31936
31937 #. type: verbatim
31938 #: ../fish/guestfish-commands.pod:53
31939 #, no-wrap
31940 msgid ""
31941 " display filename\n"
31942 "\n"
31943 msgstr ""
31944
31945 #. type: textblock
31946 #: ../fish/guestfish-commands.pod:55
31947 msgid ""
31948 "Use C<display> (a graphical display program) to display an image file.  It "
31949 "downloads the file, and runs C<display> on it."
31950 msgstr ""
31951
31952 #. type: textblock
31953 #: ../fish/guestfish-commands.pod:58
31954 msgid ""
31955 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
31956 "environment variable.  For example to use the GNOME display program:"
31957 msgstr ""
31958
31959 #. type: verbatim
31960 #: ../fish/guestfish-commands.pod:61
31961 #, no-wrap
31962 msgid ""
31963 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
31964 "\n"
31965 msgstr ""
31966
31967 #. type: textblock
31968 #: ../fish/guestfish-commands.pod:63
31969 msgid "See also L<display(1)>."
31970 msgstr ""
31971
31972 # type: =head2
31973 #. type: =head2
31974 #: ../fish/guestfish-commands.pod:65
31975 msgid "echo"
31976 msgstr ""
31977
31978 # type: verbatim
31979 #. type: verbatim
31980 #: ../fish/guestfish-commands.pod:67
31981 #, no-wrap
31982 msgid ""
31983 " echo [params ...]\n"
31984 "\n"
31985 msgstr ""
31986
31987 # type: textblock
31988 #. type: textblock
31989 #: ../fish/guestfish-commands.pod:69
31990 msgid "This echos the parameters to the terminal."
31991 msgstr ""
31992
31993 # type: =head2
31994 #. type: =head2
31995 #: ../fish/guestfish-commands.pod:71
31996 msgid "edit"
31997 msgstr ""
31998
31999 # type: =head2
32000 #. type: =head2
32001 #: ../fish/guestfish-commands.pod:73
32002 msgid "vi"
32003 msgstr ""
32004
32005 # type: =head2
32006 #. type: =head2
32007 #: ../fish/guestfish-commands.pod:75
32008 msgid "emacs"
32009 msgstr ""
32010
32011 # type: verbatim
32012 #. type: verbatim
32013 #: ../fish/guestfish-commands.pod:77
32014 #, no-wrap
32015 msgid ""
32016 " edit filename\n"
32017 "\n"
32018 msgstr ""
32019
32020 # type: textblock
32021 #. type: textblock
32022 #: ../fish/guestfish-commands.pod:79
32023 msgid ""
32024 "This is used to edit a file.  It downloads the file, edits it locally using "
32025 "your editor, then uploads the result."
32026 msgstr ""
32027
32028 # type: textblock
32029 #. type: textblock
32030 #: ../fish/guestfish-commands.pod:82
32031 msgid ""
32032 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
32033 "or C<emacs> you will get those corresponding editors."
32034 msgstr ""
32035
32036 # type: =head2
32037 #. type: =head2
32038 #: ../fish/guestfish-commands.pod:86
32039 msgid "glob"
32040 msgstr ""
32041
32042 # type: verbatim
32043 #. type: verbatim
32044 #: ../fish/guestfish-commands.pod:88
32045 #, no-wrap
32046 msgid ""
32047 " glob command args...\n"
32048 "\n"
32049 msgstr ""
32050
32051 # type: textblock
32052 #. type: textblock
32053 #: ../fish/guestfish-commands.pod:90
32054 msgid ""
32055 "Expand wildcards in any paths in the args list, and run C<command> "
32056 "repeatedly on each matching path."
32057 msgstr ""
32058
32059 # type: textblock
32060 #. type: textblock
32061 #: ../fish/guestfish-commands.pod:93
32062 msgid "See L</WILDCARDS AND GLOBBING>."
32063 msgstr ""
32064
32065 # type: =head2
32066 #. type: =head2
32067 #: ../fish/guestfish-commands.pod:95
32068 msgid "hexedit"
32069 msgstr ""
32070
32071 # type: verbatim
32072 #. type: verbatim
32073 #: ../fish/guestfish-commands.pod:97
32074 #, no-wrap
32075 msgid ""
32076 " hexedit <filename|device>\n"
32077 " hexedit <filename|device> <max>\n"
32078 " hexedit <filename|device> <start> <max>\n"
32079 "\n"
32080 msgstr ""
32081
32082 # type: textblock
32083 #. type: textblock
32084 #: ../fish/guestfish-commands.pod:101
32085 msgid ""
32086 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
32087 "device."
32088 msgstr ""
32089
32090 # type: textblock
32091 #. type: textblock
32092 #: ../fish/guestfish-commands.pod:104
32093 msgid ""
32094 "This command works by downloading potentially the whole file or device, "
32095 "editing it locally, then uploading it.  If the file or device is large, you "
32096 "have to specify which part you wish to edit by using C<max> and/or C<start> "
32097 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
32098 "usual modifiers allowed such as C<1M> (1 megabyte)."
32099 msgstr ""
32100
32101 # type: textblock
32102 #. type: textblock
32103 #: ../fish/guestfish-commands.pod:111
32104 msgid "For example to edit the first few sectors of a disk you might do:"
32105 msgstr ""
32106
32107 # type: verbatim
32108 #. type: verbatim
32109 #: ../fish/guestfish-commands.pod:114
32110 #, no-wrap
32111 msgid ""
32112 " hexedit /dev/sda 1M\n"
32113 "\n"
32114 msgstr ""
32115
32116 # type: textblock
32117 #. type: textblock
32118 #: ../fish/guestfish-commands.pod:116
32119 msgid ""
32120 "which would allow you to edit anywhere within the first megabyte of the disk."
32121 msgstr ""
32122
32123 # type: textblock
32124 #. type: textblock
32125 #: ../fish/guestfish-commands.pod:119
32126 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
32127 msgstr ""
32128
32129 # type: verbatim
32130 #. type: verbatim
32131 #: ../fish/guestfish-commands.pod:121
32132 #, no-wrap
32133 msgid ""
32134 " hexedit /dev/sda1 0x400 0x400\n"
32135 "\n"
32136 msgstr ""
32137
32138 # type: textblock
32139 #. type: textblock
32140 #: ../fish/guestfish-commands.pod:123
32141 msgid "(assuming the superblock is in the standard location)."
32142 msgstr ""
32143
32144 # type: textblock
32145 #. type: textblock
32146 #: ../fish/guestfish-commands.pod:125
32147 msgid ""
32148 "This command requires the external L<hexedit(1)> program.  You can specify "
32149 "another program to use by setting the C<HEXEDITOR> environment variable."
32150 msgstr ""
32151
32152 # type: textblock
32153 #. type: textblock
32154 #: ../fish/guestfish-commands.pod:129
32155 msgid "See also L</hexdump>."
32156 msgstr ""
32157
32158 # type: =head2
32159 #. type: =head2
32160 #: ../fish/guestfish-commands.pod:131
32161 msgid "lcd"
32162 msgstr ""
32163
32164 # type: verbatim
32165 #. type: verbatim
32166 #: ../fish/guestfish-commands.pod:133
32167 #, no-wrap
32168 msgid ""
32169 " lcd directory\n"
32170 "\n"
32171 msgstr ""
32172
32173 # type: textblock
32174 #. type: textblock
32175 #: ../fish/guestfish-commands.pod:135
32176 msgid ""
32177 "Change the local directory, ie. the current directory of guestfish itself."
32178 msgstr ""
32179
32180 # type: textblock
32181 #. type: textblock
32182 #: ../fish/guestfish-commands.pod:138
32183 msgid "Note that C<!cd> won't do what you might expect."
32184 msgstr ""
32185
32186 # type: =head2
32187 #. type: =head2
32188 #: ../fish/guestfish-commands.pod:140
32189 msgid "man"
32190 msgstr ""
32191
32192 # type: =head2
32193 #. type: =head2
32194 #: ../fish/guestfish-commands.pod:142
32195 msgid "manual"
32196 msgstr ""
32197
32198 # type: verbatim
32199 #. type: verbatim
32200 #: ../fish/guestfish-commands.pod:144
32201 #, no-wrap
32202 msgid ""
32203 "  man\n"
32204 "\n"
32205 msgstr ""
32206
32207 # type: textblock
32208 #. type: textblock
32209 #: ../fish/guestfish-commands.pod:146
32210 msgid "Opens the manual page for guestfish."
32211 msgstr ""
32212
32213 # type: =head2
32214 #. type: =head2
32215 #: ../fish/guestfish-commands.pod:148
32216 msgid "more"
32217 msgstr ""
32218
32219 # type: =head2
32220 #. type: =head2
32221 #: ../fish/guestfish-commands.pod:150
32222 msgid "less"
32223 msgstr ""
32224
32225 # type: verbatim
32226 #. type: verbatim
32227 #: ../fish/guestfish-commands.pod:152
32228 #, no-wrap
32229 msgid ""
32230 " more filename\n"
32231 "\n"
32232 msgstr ""
32233
32234 # type: verbatim
32235 #. type: verbatim
32236 #: ../fish/guestfish-commands.pod:154
32237 #, no-wrap
32238 msgid ""
32239 " less filename\n"
32240 "\n"
32241 msgstr ""
32242
32243 # type: textblock
32244 #. type: textblock
32245 #: ../fish/guestfish-commands.pod:156
32246 msgid "This is used to view a file."
32247 msgstr ""
32248
32249 # type: textblock
32250 #. type: textblock
32251 #: ../fish/guestfish-commands.pod:158
32252 msgid ""
32253 "The default viewer is C<$PAGER>.  However if you use the alternate command "
32254 "C<less> you will get the C<less> command specifically."
32255 msgstr ""
32256
32257 # type: =head2
32258 #. type: =head2
32259 #: ../fish/guestfish-commands.pod:161
32260 msgid "reopen"
32261 msgstr ""
32262
32263 # type: verbatim
32264 #. type: verbatim
32265 #: ../fish/guestfish-commands.pod:163
32266 #, no-wrap
32267 msgid ""
32268 "  reopen\n"
32269 "\n"
32270 msgstr ""
32271
32272 # type: textblock
32273 #. type: textblock
32274 #: ../fish/guestfish-commands.pod:165
32275 msgid ""
32276 "Close and reopen the libguestfs handle.  It is not necessary to use this "
32277 "normally, because the handle is closed properly when guestfish exits.  "
32278 "However this is occasionally useful for testing."
32279 msgstr ""
32280
32281 # type: =head2
32282 #. type: =head2
32283 #: ../fish/guestfish-commands.pod:169
32284 msgid "sparse"
32285 msgstr ""
32286
32287 # type: verbatim
32288 #. type: verbatim
32289 #: ../fish/guestfish-commands.pod:171
32290 #, no-wrap
32291 msgid ""
32292 " sparse filename size\n"
32293 "\n"
32294 msgstr ""
32295
32296 # type: textblock
32297 #. type: textblock
32298 #: ../fish/guestfish-commands.pod:173
32299 msgid ""
32300 "This creates an empty sparse file of the given size, and then adds so it can "
32301 "be further examined."
32302 msgstr ""
32303
32304 # type: textblock
32305 #. type: textblock
32306 #: ../fish/guestfish-commands.pod:176
32307 msgid ""
32308 "In all respects it works the same as the L</alloc> command, except that the "
32309 "image file is allocated sparsely, which means that disk blocks are not "
32310 "assigned to the file until they are needed.  Sparse disk files only use "
32311 "space when written to, but they are slower and there is a danger you could "
32312 "run out of real disk space during a write operation."
32313 msgstr ""
32314
32315 # type: =head2
32316 #. type: =head2
32317 #: ../fish/guestfish-commands.pod:186
32318 msgid "supported"
32319 msgstr ""
32320
32321 # type: verbatim
32322 #. type: verbatim
32323 #: ../fish/guestfish-commands.pod:188
32324 #, no-wrap
32325 msgid ""
32326 " supported\n"
32327 "\n"
32328 msgstr ""
32329
32330 # type: textblock
32331 #. type: textblock
32332 #: ../fish/guestfish-commands.pod:190
32333 msgid ""
32334 "This command returns a list of the optional groups known to the daemon, and "
32335 "indicates which ones are supported by this build of the libguestfs appliance."
32336 msgstr ""
32337
32338 # type: textblock
32339 #. type: textblock
32340 #: ../fish/guestfish-commands.pod:194
32341 msgid "See also L<guestfs(3)/AVAILABILITY>."
32342 msgstr ""
32343
32344 # type: =head2
32345 #. type: =head2
32346 #: ../fish/guestfish-commands.pod:196
32347 msgid "time"
32348 msgstr ""
32349
32350 # type: verbatim
32351 #. type: verbatim
32352 #: ../fish/guestfish-commands.pod:198
32353 #, no-wrap
32354 msgid ""
32355 " time command args...\n"
32356 "\n"
32357 msgstr ""
32358
32359 # type: textblock
32360 #. type: textblock
32361 #: ../fish/guestfish-commands.pod:200
32362 msgid ""
32363 "Run the command as usual, but print the elapsed time afterwards.  This can "
32364 "be useful for benchmarking operations."
32365 msgstr ""
32366
32367 # type: textblock
32368 #. type: textblock
32369 #: ../test-tool/libguestfs-test-tool.pod:5
32370 msgid "libguestfs-test-tool - End user tests for libguestfs"
32371 msgstr ""
32372
32373 # type: verbatim
32374 #. type: verbatim
32375 #: ../test-tool/libguestfs-test-tool.pod:9
32376 #, no-wrap
32377 msgid ""
32378 " libguestfs-test-tool [--options]\n"
32379 "\n"
32380 msgstr ""
32381
32382 # type: textblock
32383 #. type: textblock
32384 #: ../test-tool/libguestfs-test-tool.pod:13
32385 msgid ""
32386 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
32387 "and developers, to allow them to check basic libguestfs functionality is "
32388 "working.  This is needed because libguestfs occasionally breaks for reasons "
32389 "beyond our control: usually because of changes in the underlying qemu or "
32390 "kernel packages, or the host environment."
32391 msgstr ""
32392
32393 # type: textblock
32394 #. type: textblock
32395 #: ../test-tool/libguestfs-test-tool.pod:20
32396 msgid "If you suspect a problem in libguestfs, then just run:"
32397 msgstr ""
32398
32399 # type: verbatim
32400 #. type: verbatim
32401 #: ../test-tool/libguestfs-test-tool.pod:22
32402 #, no-wrap
32403 msgid ""
32404 " libguestfs-test-tool\n"
32405 "\n"
32406 msgstr ""
32407
32408 # type: textblock
32409 #. type: textblock
32410 #: ../test-tool/libguestfs-test-tool.pod:24
32411 msgid "It will print lots of diagnostic messages."
32412 msgstr ""
32413
32414 # type: textblock
32415 #. type: textblock
32416 #: ../test-tool/libguestfs-test-tool.pod:26
32417 msgid "If it runs to completion successfully, you will see this near the end:"
32418 msgstr ""
32419
32420 # type: verbatim
32421 #. type: verbatim
32422 #: ../test-tool/libguestfs-test-tool.pod:28
32423 #, no-wrap
32424 msgid ""
32425 " ===== TEST FINISHED OK =====\n"
32426 "\n"
32427 msgstr ""
32428
32429 # type: textblock
32430 #. type: textblock
32431 #: ../test-tool/libguestfs-test-tool.pod:30
32432 msgid "and the test tool will exit with code 0."
32433 msgstr ""
32434
32435 # type: textblock
32436 #. type: textblock
32437 #: ../test-tool/libguestfs-test-tool.pod:32
32438 msgid ""
32439 "If it fails (and/or exits with non-zero error code), please paste the "
32440 "B<complete, unedited> output of the test tool into a bug report.  More "
32441 "information about reporting bugs can be found on the L<http://libguestfs.org/"
32442 "> website."
32443 msgstr ""
32444
32445 # type: =item
32446 #. type: =item
32447 #: ../test-tool/libguestfs-test-tool.pod:41
32448 msgid "I<--help>"
32449 msgstr ""
32450
32451 # type: textblock
32452 #. type: textblock
32453 #: ../test-tool/libguestfs-test-tool.pod:43
32454 msgid "Display short usage information and exit."
32455 msgstr ""
32456
32457 # type: =item
32458 #. type: =item
32459 #: ../test-tool/libguestfs-test-tool.pod:45
32460 msgid "I<--qemu qemu_binary>"
32461 msgstr ""
32462
32463 # type: textblock
32464 #. type: textblock
32465 #: ../test-tool/libguestfs-test-tool.pod:47
32466 msgid ""
32467 "If you have downloaded another qemu binary, point this option at the full "
32468 "path of the binary to try it."
32469 msgstr ""
32470
32471 # type: =item
32472 #. type: =item
32473 #: ../test-tool/libguestfs-test-tool.pod:50
32474 msgid "I<--qemudir qemu_source_dir>"
32475 msgstr ""
32476
32477 # type: textblock
32478 #. type: textblock
32479 #: ../test-tool/libguestfs-test-tool.pod:52
32480 msgid ""
32481 "If you have compiled qemu from source, point this option at the source "
32482 "directory to try it."
32483 msgstr ""
32484
32485 # type: =item
32486 #. type: =item
32487 #: ../test-tool/libguestfs-test-tool.pod:55
32488 msgid "I<--timeout N>"
32489 msgstr ""
32490
32491 # type: textblock
32492 #. type: textblock
32493 #: ../test-tool/libguestfs-test-tool.pod:57
32494 msgid ""
32495 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
32496 "does not usually need to be adjusted unless your machine is very slow."
32497 msgstr ""
32498
32499 # type: =head1
32500 #. type: =head1
32501 #: ../test-tool/libguestfs-test-tool.pod:63
32502 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
32503 msgstr ""
32504
32505 # type: textblock
32506 #. type: textblock
32507 #: ../test-tool/libguestfs-test-tool.pod:65
32508 msgid ""
32509 "If you have compiled another version of qemu from source and would like to "
32510 "try that, then you can use the I<--qemudir> option to point to the qemu "
32511 "source directory."
32512 msgstr ""
32513
32514 # type: textblock
32515 #. type: textblock
32516 #: ../test-tool/libguestfs-test-tool.pod:69
32517 msgid ""
32518 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
32519 "option to point to the binary."
32520 msgstr ""
32521
32522 # type: textblock
32523 #. type: textblock
32524 #: ../test-tool/libguestfs-test-tool.pod:72
32525 msgid ""
32526 "When using an alternate qemu with libguestfs, usually you would need to "
32527 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
32528 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
32529 "use either of the I<--qemudir> or I<--qemu> options."
32530 msgstr ""
32531
32532 # type: textblock
32533 #. type: textblock
32534 #: ../test-tool/libguestfs-test-tool.pod:79
32535 msgid ""
32536 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
32537 "I<1> if there was an error."
32538 msgstr ""
32539
32540 # type: textblock
32541 #. type: textblock
32542 #: ../test-tool/libguestfs-test-tool.pod:84
32543 msgid ""
32544 "For the full list of environment variables which may affect libguestfs, "
32545 "please see the L<guestfs(3)> manual page."
32546 msgstr ""
32547
32548 # type: textblock
32549 #. type: textblock
32550 #: ../test-tool/libguestfs-test-tool.pod:89
32551 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
32552 msgstr ""
32553
32554 # type: textblock
32555 #. type: textblock
32556 #: ../fuse/guestmount.pod:5
32557 msgid ""
32558 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
32559 msgstr ""
32560
32561 # type: verbatim
32562 #. type: verbatim
32563 #: ../fuse/guestmount.pod:9
32564 #, no-wrap
32565 msgid ""
32566 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
32567 "\n"
32568 msgstr ""
32569
32570 # type: verbatim
32571 #. type: verbatim
32572 #: ../fuse/guestmount.pod:11
32573 #, no-wrap
32574 msgid ""
32575 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
32576 "\n"
32577 msgstr ""
32578
32579 # type: verbatim
32580 #. type: verbatim
32581 #: ../fuse/guestmount.pod:13
32582 #, no-wrap
32583 msgid ""
32584 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
32585 "\n"
32586 msgstr ""
32587
32588 # type: textblock
32589 #. type: textblock
32590 #: ../fuse/guestmount.pod:17
32591 msgid ""
32592 "You must I<not> use C<guestmount> in read-write mode on live virtual "
32593 "machines.  If you do this, you risk disk corruption in the VM."
32594 msgstr ""
32595
32596 # type: textblock
32597 #. type: textblock
32598 #: ../fuse/guestmount.pod:22
32599 msgid ""
32600 "The guestmount program can be used to mount virtual machine filesystems and "
32601 "other disk images on the host.  It uses libguestfs for access to the guest "
32602 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
32603 "a mountable device."
32604 msgstr ""
32605
32606 # type: textblock
32607 #. type: textblock
32608 #: ../fuse/guestmount.pod:27
32609 msgid ""
32610 "Along with other options, you have to give at least one device (I<-a> "
32611 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
32612 "option) or use the I<-i> inspection option.  How this works is better "
32613 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
32614 "below."
32615 msgstr ""
32616
32617 # type: textblock
32618 #. type: textblock
32619 #: ../fuse/guestmount.pod:33
32620 msgid ""
32621 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
32622 "by you, and the filesystem will not be visible to any other users unless you "
32623 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
32624 "the filesystem, use the C<fusermount -u> command."
32625 msgstr ""
32626
32627 # type: textblock
32628 #. type: textblock
32629 #: ../fuse/guestmount.pod:41
32630 msgid ""
32631 "For a typical Windows guest which has its main filesystem on the first "
32632 "partition:"
32633 msgstr ""
32634
32635 # type: verbatim
32636 #. type: verbatim
32637 #: ../fuse/guestmount.pod:44
32638 #, no-wrap
32639 msgid ""
32640 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
32641 "\n"
32642 msgstr ""
32643
32644 # type: textblock
32645 #. type: textblock
32646 #: ../fuse/guestmount.pod:46
32647 msgid ""
32648 "For a typical Linux guest which has a /boot filesystem on the first "
32649 "partition, and the root filesystem on a logical volume:"
32650 msgstr ""
32651
32652 # type: verbatim
32653 #. type: verbatim
32654 #: ../fuse/guestmount.pod:49
32655 #, no-wrap
32656 msgid ""
32657 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
32658 "\n"
32659 msgstr ""
32660
32661 # type: textblock
32662 #. type: textblock
32663 #: ../fuse/guestmount.pod:51
32664 msgid "To get libguestfs to detect guest mountpoints for you:"
32665 msgstr ""
32666
32667 # type: verbatim
32668 #. type: verbatim
32669 #: ../fuse/guestmount.pod:53
32670 #, no-wrap
32671 msgid ""
32672 " guestmount -a guest.img -i --ro /mnt\n"
32673 "\n"
32674 msgstr ""
32675
32676 # type: textblock
32677 #. type: textblock
32678 #: ../fuse/guestmount.pod:55
32679 msgid "For a libvirt guest called \"Guest\" you could do:"
32680 msgstr ""
32681
32682 # type: verbatim
32683 #. type: verbatim
32684 #: ../fuse/guestmount.pod:57
32685 #, no-wrap
32686 msgid ""
32687 " guestmount -d Guest -i --ro /mnt\n"
32688 "\n"
32689 msgstr ""
32690
32691 # type: textblock
32692 #. type: textblock
32693 #: ../fuse/guestmount.pod:59
32694 msgid ""
32695 "If you don't know what filesystems are contained in a guest or disk image, "
32696 "use L<virt-filesystems(1)> first:"
32697 msgstr ""
32698
32699 # type: verbatim
32700 #. type: verbatim
32701 #: ../fuse/guestmount.pod:62
32702 #, no-wrap
32703 msgid ""
32704 " virt-filesystems MyGuest\n"
32705 "\n"
32706 msgstr ""
32707
32708 # type: textblock
32709 #. type: textblock
32710 #: ../fuse/guestmount.pod:64
32711 msgid ""
32712 "If you want to trace the libguestfs calls but without excessive debugging "
32713 "information, we recommend:"
32714 msgstr ""
32715
32716 # type: verbatim
32717 #. type: verbatim
32718 #: ../fuse/guestmount.pod:67
32719 #, no-wrap
32720 msgid ""
32721 " guestmount [...] --trace /mnt\n"
32722 "\n"
32723 msgstr ""
32724
32725 # type: textblock
32726 #. type: textblock
32727 #: ../fuse/guestmount.pod:69
32728 msgid "If you want to debug the program, we recommend:"
32729 msgstr ""
32730
32731 # type: verbatim
32732 #. type: verbatim
32733 #: ../fuse/guestmount.pod:71
32734 #, no-wrap
32735 msgid ""
32736 " guestmount [...] --trace --verbose /mnt\n"
32737 "\n"
32738 msgstr ""
32739
32740 #. type: =head1
32741 #: ../fuse/guestmount.pod:73
32742 msgid "NOTES"
32743 msgstr ""
32744
32745 #. type: =head2
32746 #: ../fuse/guestmount.pod:75
32747 msgid "Other users cannot see the filesystem by default"
32748 msgstr ""
32749
32750 #. type: textblock
32751 #: ../fuse/guestmount.pod:77
32752 msgid ""
32753 "If you mount a filesystem as one user (eg. root), then other users will not "
32754 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
32755 "option when mounting:"
32756 msgstr ""
32757
32758 #. type: verbatim
32759 #: ../fuse/guestmount.pod:81
32760 #, no-wrap
32761 msgid ""
32762 " sudo guestmount [...] -o allow_other /mnt\n"
32763 "\n"
32764 msgstr ""
32765
32766 # type: =item
32767 #. type: =item
32768 #: ../fuse/guestmount.pod:87
32769 msgid "B<-a image> | B<--add image>"
32770 msgstr ""
32771
32772 # type: textblock
32773 #. type: textblock
32774 #: ../fuse/guestmount.pod:89
32775 msgid "Add a block device or virtual machine image."
32776 msgstr ""
32777
32778 # type: =item
32779 #. type: =item
32780 #: ../fuse/guestmount.pod:94
32781 msgid "B<-c URI> | B<--connect URI>"
32782 msgstr ""
32783
32784 # type: =item
32785 #. type: =item
32786 #: ../fuse/guestmount.pod:100
32787 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
32788 msgstr ""
32789
32790 # type: =item
32791 #. type: =item
32792 #: ../fuse/guestmount.pod:108
32793 msgid "B<--dir-cache-timeout N>"
32794 msgstr ""
32795
32796 # type: textblock
32797 #. type: textblock
32798 #: ../fuse/guestmount.pod:110
32799 msgid ""
32800 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
32801 "seconds.  The readdir cache [actually, there are several semi-independent "
32802 "caches] is populated after a readdir(2) call with the stat and extended "
32803 "attributes of the files in the directory, in anticipation that they will be "
32804 "requested soon after."
32805 msgstr ""
32806
32807 # type: textblock
32808 #. type: textblock
32809 #: ../fuse/guestmount.pod:116
32810 msgid ""
32811 "There is also a different attribute cache implemented by FUSE (see the FUSE "
32812 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
32813 "requests, only cache existing ones."
32814 msgstr ""
32815
32816 # type: =item
32817 #. type: =item
32818 #: ../fuse/guestmount.pod:127
32819 msgid "B<--format=raw|qcow2|..> | B<--format>"
32820 msgstr ""
32821
32822 # type: textblock
32823 #. type: textblock
32824 #: ../fuse/guestmount.pod:134
32825 msgid ""
32826 "If you have untrusted raw-format guest disk images, you should use this "
32827 "option to specify the disk format.  This avoids a possible security problem "
32828 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
32829 "guestfs_add_drive_opts>."
32830 msgstr ""
32831
32832 # type: =item
32833 #. type: =item
32834 #: ../fuse/guestmount.pod:139
32835 msgid "B<--fuse-help>"
32836 msgstr ""
32837
32838 # type: textblock
32839 #. type: textblock
32840 #: ../fuse/guestmount.pod:141
32841 msgid "Display help on special FUSE options (see I<-o> below)."
32842 msgstr ""
32843
32844 # type: textblock
32845 #. type: textblock
32846 #: ../fuse/guestmount.pod:145
32847 msgid "Display brief help and exit."
32848 msgstr ""
32849
32850 # type: =item
32851 #. type: =item
32852 #: ../fuse/guestmount.pod:147
32853 msgid "B<-i> | B<--inspector>"
32854 msgstr ""
32855
32856 # type: textblock
32857 #. type: textblock
32858 #: ../fuse/guestmount.pod:167
32859 msgid ""
32860 "Mount the named partition or logical volume on the given mountpoint B<in the "
32861 "guest> (this has nothing to do with mountpoints in the host)."
32862 msgstr ""
32863
32864 # type: textblock
32865 #. type: textblock
32866 #: ../fuse/guestmount.pod:170
32867 msgid ""
32868 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
32869 "something on C</>."
32870 msgstr ""
32871
32872 # type: =item
32873 #. type: =item
32874 #: ../fuse/guestmount.pod:183
32875 msgid "B<-n> | B<--no-sync>"
32876 msgstr ""
32877
32878 # type: textblock
32879 #. type: textblock
32880 #: ../fuse/guestmount.pod:185
32881 msgid ""
32882 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
32883 "unmounted.  If you specify this option, then we don't attempt to sync the "
32884 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
32885 msgstr ""
32886
32887 # type: =item
32888 #. type: =item
32889 #: ../fuse/guestmount.pod:190
32890 msgid "B<-o option> | B<--option option>"
32891 msgstr ""
32892
32893 # type: textblock
32894 #. type: textblock
32895 #: ../fuse/guestmount.pod:192
32896 msgid "Pass extra options to FUSE."
32897 msgstr ""
32898
32899 # type: textblock
32900 #. type: textblock
32901 #: ../fuse/guestmount.pod:194
32902 msgid ""
32903 "To get a list of all the extra options supported by FUSE, use the command "
32904 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
32905 "of them are a good idea."
32906 msgstr ""
32907
32908 # type: verbatim
32909 #. type: verbatim
32910 #: ../fuse/guestmount.pod:198
32911 #, no-wrap
32912 msgid ""
32913 " guestmount --fuse-help\n"
32914 "\n"
32915 msgstr ""
32916
32917 # type: textblock
32918 #. type: textblock
32919 #: ../fuse/guestmount.pod:200
32920 msgid "Some potentially useful FUSE options:"
32921 msgstr ""
32922
32923 # type: =item
32924 #. type: =item
32925 #: ../fuse/guestmount.pod:204
32926 msgid "B<-o allow_other>"
32927 msgstr ""
32928
32929 # type: textblock
32930 #. type: textblock
32931 #: ../fuse/guestmount.pod:206
32932 msgid "Allow other users to see the filesystem."
32933 msgstr ""
32934
32935 # type: =item
32936 #. type: =item
32937 #: ../fuse/guestmount.pod:208
32938 msgid "B<-o attr_timeout=N>"
32939 msgstr ""
32940
32941 # type: textblock
32942 #. type: textblock
32943 #: ../fuse/guestmount.pod:210
32944 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
32945 msgstr ""
32946
32947 # type: =item
32948 #. type: =item
32949 #: ../fuse/guestmount.pod:212
32950 msgid "B<-o kernel_cache>"
32951 msgstr ""
32952
32953 # type: textblock
32954 #. type: textblock
32955 #: ../fuse/guestmount.pod:214
32956 msgid ""
32957 "Allow the kernel to cache files (reduces the number of reads that have to go "
32958 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
32959 "afford the extra memory usage."
32960 msgstr ""
32961
32962 # type: =item
32963 #. type: =item
32964 #: ../fuse/guestmount.pod:218
32965 msgid "B<-o uid=N> B<-o gid=N>"
32966 msgstr ""
32967
32968 # type: textblock
32969 #. type: textblock
32970 #: ../fuse/guestmount.pod:220
32971 msgid ""
32972 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
32973 "the chosen values."
32974 msgstr ""
32975
32976 # type: =item
32977 #. type: =item
32978 #: ../fuse/guestmount.pod:225
32979 msgid "B<-r> | B<--ro>"
32980 msgstr ""
32981
32982 # type: textblock
32983 #. type: textblock
32984 #: ../fuse/guestmount.pod:227
32985 msgid ""
32986 "Add devices and mount everything read-only.  Also disallow writes and make "
32987 "the disk appear read-only to FUSE."
32988 msgstr ""
32989
32990 # type: textblock
32991 #. type: textblock
32992 #: ../fuse/guestmount.pod:230
32993 msgid ""
32994 "This is highly recommended if you are not going to edit the guest disk.  If "
32995 "the guest is running and this option is I<not> supplied, then there is a "
32996 "strong risk of disk corruption in the guest.  We try to prevent this from "
32997 "happening, but it is not always possible."
32998 msgstr ""
32999
33000 # type: textblock
33001 #. type: textblock
33002 #: ../fuse/guestmount.pod:235
33003 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
33004 msgstr ""
33005
33006 # type: textblock
33007 #. type: textblock
33008 #: ../fuse/guestmount.pod:239
33009 msgid "Enable SELinux support for the guest."
33010 msgstr ""
33011
33012 # type: =item
33013 #. type: =item
33014 #: ../fuse/guestmount.pod:241
33015 msgid "B<-v> | B<--verbose>"
33016 msgstr ""
33017
33018 # type: textblock
33019 #. type: textblock
33020 #: ../fuse/guestmount.pod:243
33021 msgid "Enable verbose messages from underlying libguestfs."
33022 msgstr ""
33023
33024 # type: =item
33025 #. type: =item
33026 #: ../fuse/guestmount.pod:245
33027 msgid "B<-V> | B<--version>"
33028 msgstr ""
33029
33030 # type: textblock
33031 #. type: textblock
33032 #: ../fuse/guestmount.pod:247
33033 msgid "Display the program version and exit."
33034 msgstr ""
33035
33036 # type: =item
33037 #. type: =item
33038 #: ../fuse/guestmount.pod:249
33039 msgid "B<-w> | B<--rw>"
33040 msgstr ""
33041
33042 #. type: textblock
33043 #: ../fuse/guestmount.pod:254 ../fuse/guestmount.pod:275
33044 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
33045 msgstr ""
33046
33047 # type: =item
33048 #. type: =item
33049 #: ../fuse/guestmount.pod:256
33050 msgid "B<-x> | B<--trace>"
33051 msgstr ""
33052
33053 # type: textblock
33054 #. type: textblock
33055 #: ../fuse/guestmount.pod:258
33056 msgid "Trace libguestfs calls and entry into each FUSE function."
33057 msgstr ""
33058
33059 # type: textblock
33060 #. type: textblock
33061 #: ../fuse/guestmount.pod:260
33062 msgid "This also stops the daemon from forking into the background."
33063 msgstr ""
33064
33065 # type: textblock
33066 #. type: textblock
33067 #: ../fuse/guestmount.pod:281
33068 msgid ""
33069 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
33070 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
33071 "net/>."
33072 msgstr ""
33073
33074 # type: textblock
33075 #. type: textblock
33076 #: ../fuse/guestmount.pod:296
33077 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
33078 msgstr ""
33079
33080 # type: textblock
33081 #. type: textblock
33082 #: ../tools/virt-win-reg.pl:37
33083 msgid ""
33084 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
33085 msgstr ""
33086
33087 # type: verbatim
33088 #. type: verbatim
33089 #: ../tools/virt-win-reg.pl:41
33090 #, no-wrap
33091 msgid ""
33092 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
33093 "\n"
33094 msgstr ""
33095
33096 # type: verbatim
33097 #. type: verbatim
33098 #: ../tools/virt-win-reg.pl:43
33099 #, no-wrap
33100 msgid ""
33101 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
33102 "\n"
33103 msgstr ""
33104
33105 # type: verbatim
33106 #. type: verbatim
33107 #: ../tools/virt-win-reg.pl:45
33108 #, no-wrap
33109 msgid ""
33110 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
33111 "\n"
33112 msgstr ""
33113
33114 # type: verbatim
33115 #. type: verbatim
33116 #: ../tools/virt-win-reg.pl:47
33117 #, no-wrap
33118 msgid ""
33119 " virt-win-reg --merge domname [input.reg ...]\n"
33120 "\n"
33121 msgstr ""
33122
33123 # type: verbatim
33124 #. type: verbatim
33125 #: ../tools/virt-win-reg.pl:49
33126 #, no-wrap
33127 msgid ""
33128 " virt-win-reg [--options] disk.img ... # instead of domname\n"
33129 "\n"
33130 msgstr ""
33131
33132 #. type: textblock
33133 #: ../tools/virt-win-reg.pl:53
33134 msgid ""
33135 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
33136 "virtual machines.  If you do this, you I<will> get irreversible disk "
33137 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
33138 "but doesn't catch all cases."
33139 msgstr ""
33140
33141 #. type: textblock
33142 #: ../tools/virt-win-reg.pl:58
33143 msgid ""
33144 "Modifying the Windows Registry is an inherently risky operation.  The format "
33145 "is deliberately obscure and undocumented, and Registry changes can leave the "
33146 "system unbootable.  Therefore when using the I<--merge> option, make sure "
33147 "you have a reliable backup first."
33148 msgstr ""
33149
33150 # type: textblock
33151 #. type: textblock
33152 #: ../tools/virt-win-reg.pl:65
33153 msgid ""
33154 "This program can export and merge Windows Registry entries from a Windows "
33155 "guest."
33156 msgstr ""
33157
33158 # type: textblock
33159 #. type: textblock
33160 #: ../tools/virt-win-reg.pl:68
33161 msgid ""
33162 "The first parameter is the libvirt guest name or the raw disk image of a "
33163 "Windows guest."
33164 msgstr ""
33165
33166 #. type: textblock
33167 #: ../tools/virt-win-reg.pl:71
33168 msgid ""
33169 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
33170 "exported (recursively).  For example:"
33171 msgstr ""
33172
33173 # type: verbatim
33174 #. type: verbatim
33175 #: ../tools/virt-win-reg.pl:74
33176 #, no-wrap
33177 msgid ""
33178 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
33179 "\n"
33180 msgstr ""
33181
33182 # type: textblock
33183 #. type: textblock
33184 #: ../tools/virt-win-reg.pl:76
33185 msgid ""
33186 "You can also display single values from within registry keys, for example:"
33187 msgstr ""
33188
33189 # type: verbatim
33190 #. type: verbatim
33191 #: ../tools/virt-win-reg.pl:79
33192 #, no-wrap
33193 msgid ""
33194 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
33195 " $ virt-win-reg Windows7 $cvkey ProductName\n"
33196 " Windows 7 Enterprise\n"
33197 "\n"
33198 msgstr ""
33199
33200 #. type: textblock
33201 #: ../tools/virt-win-reg.pl:83
33202 msgid ""
33203 "With I<--merge>, you can merge a textual regedit file into the Windows "
33204 "Registry:"
33205 msgstr ""
33206
33207 # type: verbatim
33208 #. type: verbatim
33209 #: ../tools/virt-win-reg.pl:86
33210 #, no-wrap
33211 msgid ""
33212 " $ virt-win-reg --merge Windows7 changes.reg\n"
33213 "\n"
33214 msgstr ""
33215
33216 # type: =head2
33217 #. type: =head1
33218 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
33219 msgid "NOTE"
33220 msgstr ""
33221
33222 # type: textblock
33223 #. type: textblock
33224 #: ../tools/virt-win-reg.pl:90
33225 msgid ""
33226 "This program is only meant for simple access to the registry.  If you want "
33227 "to do complicated things with the registry, we suggest you download the "
33228 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
33229 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
33230 "L<hivexregedit(1)>."
33231 msgstr ""
33232
33233 # type: textblock
33234 #. type: textblock
33235 #: ../tools/virt-win-reg.pl:106 ../tools/virt-list-filesystems.pl:63
33236 #: ../tools/virt-tar.pl:113 ../tools/virt-make-fs.pl:163
33237 #: ../tools/virt-list-partitions.pl:64
33238 msgid "Display brief help."
33239 msgstr ""
33240
33241 # type: textblock
33242 #. type: textblock
33243 #: ../tools/virt-win-reg.pl:114 ../tools/virt-list-filesystems.pl:71
33244 #: ../tools/virt-tar.pl:121 ../tools/virt-make-fs.pl:171
33245 #: ../tools/virt-list-partitions.pl:72
33246 msgid "Display version number and exit."
33247 msgstr ""
33248
33249 # type: =item
33250 #. type: =item
33251 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
33252 msgid "B<--debug>"
33253 msgstr ""
33254
33255 # type: textblock
33256 #. type: textblock
33257 #: ../tools/virt-win-reg.pl:122
33258 msgid "Enable debugging messages."
33259 msgstr ""
33260
33261 # type: =item
33262 #. type: =item
33263 #: ../tools/virt-win-reg.pl:128 ../tools/virt-list-filesystems.pl:77
33264 #: ../tools/virt-tar.pl:127 ../tools/virt-list-partitions.pl:78
33265 msgid "B<--connect URI> | B<-c URI>"
33266 msgstr ""
33267
33268 # type: textblock
33269 #. type: textblock
33270 #: ../tools/virt-win-reg.pl:130 ../tools/virt-list-filesystems.pl:79
33271 #: ../tools/virt-tar.pl:129 ../tools/virt-list-partitions.pl:80
33272 msgid ""
33273 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
33274 "to the default libvirt hypervisor."
33275 msgstr ""
33276
33277 # type: textblock
33278 #. type: textblock
33279 #: ../tools/virt-win-reg.pl:133 ../tools/virt-list-filesystems.pl:82
33280 #: ../tools/virt-tar.pl:132 ../tools/virt-list-partitions.pl:83
33281 msgid ""
33282 "If you specify guest block devices directly, then libvirt is not used at all."
33283 msgstr ""
33284
33285 # type: =item
33286 #. type: =item
33287 #: ../tools/virt-win-reg.pl:140 ../tools/virt-list-filesystems.pl:89
33288 #: ../tools/virt-tar.pl:139 ../tools/virt-list-partitions.pl:90
33289 msgid "B<--format> raw"
33290 msgstr ""
33291
33292 # type: textblock
33293 #. type: textblock
33294 #: ../tools/virt-win-reg.pl:142 ../tools/virt-list-filesystems.pl:91
33295 #: ../tools/virt-tar.pl:141 ../tools/virt-list-partitions.pl:92
33296 msgid ""
33297 "Specify the format of disk images given on the command line.  If this is "
33298 "omitted then the format is autodetected from the content of the disk image."
33299 msgstr ""
33300
33301 # type: textblock
33302 #. type: textblock
33303 #: ../tools/virt-win-reg.pl:146 ../tools/virt-list-filesystems.pl:95
33304 #: ../tools/virt-tar.pl:145 ../tools/virt-list-partitions.pl:96
33305 msgid ""
33306 "If disk images are requested from libvirt, then this program asks libvirt "
33307 "for this information.  In this case, the value of the format parameter is "
33308 "ignored."
33309 msgstr ""
33310
33311 # type: textblock
33312 #. type: textblock
33313 #: ../tools/virt-win-reg.pl:150 ../tools/virt-list-filesystems.pl:99
33314 #: ../tools/virt-tar.pl:149 ../tools/virt-list-partitions.pl:100
33315 msgid ""
33316 "If working with untrusted raw-format guest disk images, you should ensure "
33317 "the format is always specified."
33318 msgstr ""
33319
33320 # type: =item
33321 #. type: =item
33322 #: ../tools/virt-win-reg.pl:157
33323 msgid "B<--merge>"
33324 msgstr ""
33325
33326 # type: textblock
33327 #. type: textblock
33328 #: ../tools/virt-win-reg.pl:159
33329 msgid ""
33330 "In merge mode, this merges a textual regedit file into the Windows Registry "
33331 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
33332 "displays or exports Registry entries instead."
33333 msgstr ""
33334
33335 #. type: textblock
33336 #: ../tools/virt-win-reg.pl:163
33337 msgid ""
33338 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
33339 "result in disk corruption.  However exporting (without this flag)  is always "
33340 "safe."
33341 msgstr ""
33342
33343 # type: =item
33344 #. type: =item
33345 #: ../tools/virt-win-reg.pl:171
33346 msgid "B<--encoding> UTF-16LE|ASCII"
33347 msgstr ""
33348
33349 # type: textblock
33350 #. type: textblock
33351 #: ../tools/virt-win-reg.pl:173
33352 msgid ""
33353 "When merging (only), you may need to specify the encoding for strings to be "
33354 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
33355 "(3)/ENCODING STRINGS>."
33356 msgstr ""
33357
33358 # type: textblock
33359 #. type: textblock
33360 #: ../tools/virt-win-reg.pl:177
33361 msgid ""
33362 "The default is to use UTF-16LE, which should work with recent versions of "
33363 "Windows."
33364 msgstr ""
33365
33366 #. type: =item
33367 #: ../tools/virt-win-reg.pl:184
33368 msgid "B<--unsafe-printable-strings>"
33369 msgstr ""
33370
33371 #. type: textblock
33372 #: ../tools/virt-win-reg.pl:186
33373 msgid ""
33374 "When exporting (only), assume strings are UTF-16LE and print them as strings "
33375 "instead of hex sequences.  Remove the final zero codepoint from strings if "
33376 "present."
33377 msgstr ""
33378
33379 #. type: textblock
33380 #: ../tools/virt-win-reg.pl:190
33381 msgid ""
33382 "This is unsafe and does not preserve the fidelity of strings in the original "
33383 "Registry for various reasons:"
33384 msgstr ""
33385
33386 #. type: textblock
33387 #: ../tools/virt-win-reg.pl:197
33388 msgid ""
33389 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
33390 "other encodings will be corrupted by this transformation."
33391 msgstr ""
33392
33393 #. type: textblock
33394 #: ../tools/virt-win-reg.pl:202
33395 msgid ""
33396 "Assumes that everything which has type 1 or 2 is really a string and that "
33397 "everything else is not a string, but the type field in real Registries is "
33398 "not reliable."
33399 msgstr ""
33400
33401 #. type: textblock
33402 #: ../tools/virt-win-reg.pl:208
33403 msgid ""
33404 "Loses information about whether a zero codepoint followed the string in the "
33405 "Registry or not."
33406 msgstr ""
33407
33408 #. type: textblock
33409 #: ../tools/virt-win-reg.pl:213
33410 msgid ""
33411 "This all happens because the Registry itself contains no information about "
33412 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
33413 msgstr ""
33414
33415 #. type: textblock
33416 #: ../tools/virt-win-reg.pl:217
33417 msgid ""
33418 "You should only use this option for quick hacking and debugging of the "
33419 "Registry contents, and I<never> use it if the output is going to be passed "
33420 "into another program or stored in another Registry."
33421 msgstr ""
33422
33423 # type: =head2
33424 #. type: =head1
33425 #: ../tools/virt-win-reg.pl:554
33426 msgid "SUPPORTED SYSTEMS"
33427 msgstr ""
33428
33429 # type: textblock
33430 #. type: textblock
33431 #: ../tools/virt-win-reg.pl:556
33432 msgid ""
33433 "The program currently supports Windows NT-derived guests starting with "
33434 "Windows XP through to at least Windows 7."
33435 msgstr ""
33436
33437 #. type: textblock
33438 #: ../tools/virt-win-reg.pl:559
33439 msgid "The following Registry keys are supported:"
33440 msgstr ""
33441
33442 #. type: =item
33443 #: ../tools/virt-win-reg.pl:563
33444 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
33445 msgstr ""
33446
33447 #. type: =item
33448 #: ../tools/virt-win-reg.pl:565
33449 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
33450 msgstr ""
33451
33452 #. type: =item
33453 #: ../tools/virt-win-reg.pl:567
33454 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
33455 msgstr ""
33456
33457 #. type: =item
33458 #: ../tools/virt-win-reg.pl:569
33459 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
33460 msgstr ""
33461
33462 #. type: =item
33463 #: ../tools/virt-win-reg.pl:571
33464 msgid "C<HKEY_USERS\\.DEFAULT>"
33465 msgstr ""
33466
33467 #. type: =item
33468 #: ../tools/virt-win-reg.pl:573
33469 msgid "C<HKEY_USERS\\I<SID>>"
33470 msgstr ""
33471
33472 #. type: textblock
33473 #: ../tools/virt-win-reg.pl:575
33474 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
33475 msgstr ""
33476
33477 #. type: =item
33478 #: ../tools/virt-win-reg.pl:577
33479 msgid "C<HKEY_USERS\\I<username>>"
33480 msgstr ""
33481
33482 #. type: textblock
33483 #: ../tools/virt-win-reg.pl:579
33484 msgid ""
33485 "where I<username> is a local user name (this is a libguestfs extension)."
33486 msgstr ""
33487
33488 # type: textblock
33489 #. type: textblock
33490 #: ../tools/virt-win-reg.pl:583
33491 msgid ""
33492 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
33493 "C<HKEY_USERS>."
33494 msgstr ""
33495
33496 #. type: textblock
33497 #: ../tools/virt-win-reg.pl:586
33498 msgid ""
33499 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
33500 "supported (there is no \"current user\")."
33501 msgstr ""
33502
33503 # type: =head2
33504 #. type: =head1
33505 #: ../tools/virt-win-reg.pl:589
33506 msgid "ENCODING"
33507 msgstr ""
33508
33509 # type: textblock
33510 #. type: textblock
33511 #: ../tools/virt-win-reg.pl:591
33512 msgid ""
33513 "C<virt-win-reg> expects that regedit files have already been reencoded in "
33514 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
33515 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
33516 "Windows-style line endings, you may need to reencode the whole file before "
33517 "or after processing."
33518 msgstr ""
33519
33520 #. type: textblock
33521 #: ../tools/virt-win-reg.pl:597
33522 msgid ""
33523 "To reencode a file from Windows format to Linux (before processing it with "
33524 "the I<--merge> option), you would do something like this:"
33525 msgstr ""
33526
33527 # type: verbatim
33528 #. type: verbatim
33529 #: ../tools/virt-win-reg.pl:600
33530 #, no-wrap
33531 msgid ""
33532 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
33533 "\n"
33534 msgstr ""
33535
33536 # type: textblock
33537 #. type: textblock
33538 #: ../tools/virt-win-reg.pl:602
33539 msgid ""
33540 "To go in the opposite direction, after exporting and before sending the file "
33541 "to a Windows user, do something like this:"
33542 msgstr ""
33543
33544 # type: verbatim
33545 #. type: verbatim
33546 #: ../tools/virt-win-reg.pl:605
33547 #, no-wrap
33548 msgid ""
33549 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
33550 "\n"
33551 msgstr ""
33552
33553 # type: textblock
33554 #. type: textblock
33555 #: ../tools/virt-win-reg.pl:607
33556 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
33557 msgstr ""
33558
33559 # type: textblock
33560 #. type: textblock
33561 #: ../tools/virt-win-reg.pl:609
33562 msgid ""
33563 "If you are unsure about the current encoding, use the L<file(1)> command.  "
33564 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
33565 "style (CRLF) line endings, like this:"
33566 msgstr ""
33567
33568 # type: verbatim
33569 #. type: verbatim
33570 #: ../tools/virt-win-reg.pl:613
33571 #, no-wrap
33572 msgid ""
33573 " $ file software.reg\n"
33574 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
33575 " with CRLF line terminators\n"
33576 "\n"
33577 msgstr ""
33578
33579 #. type: textblock
33580 #: ../tools/virt-win-reg.pl:617
33581 msgid "This file would need conversion before you could I<--merge> it."
33582 msgstr ""
33583
33584 # type: =head2
33585 #. type: =head1
33586 #: ../tools/virt-win-reg.pl:619
33587 msgid "CurrentControlSet etc."
33588 msgstr ""
33589
33590 # type: textblock
33591 #. type: textblock
33592 #: ../tools/virt-win-reg.pl:621
33593 msgid ""
33594 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
33595 "Registry at the level of the hive file, and therefore you cannot modify "
33596 "these."
33597 msgstr ""
33598
33599 # type: textblock
33600 #. type: textblock
33601 #: ../tools/virt-win-reg.pl:625
33602 msgid ""
33603 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
33604 "circumstances it might refer to another control set.  The way to find out is "
33605 "to look at the C<HKLM\\SYSTEM\\Select> key:"
33606 msgstr ""
33607
33608 # type: verbatim
33609 #. type: verbatim
33610 #: ../tools/virt-win-reg.pl:629
33611 #, no-wrap
33612 msgid ""
33613 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
33614 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
33615 " \"Current\"=dword:00000001\n"
33616 " \"Default\"=dword:00000001\n"
33617 " \"Failed\"=dword:00000000\n"
33618 " \"LastKnownGood\"=dword:00000002\n"
33619 "\n"
33620 msgstr ""
33621
33622 # type: textblock
33623 #. type: textblock
33624 #: ../tools/virt-win-reg.pl:636
33625 msgid "\"Current\" is the one which Windows will choose when it boots."
33626 msgstr ""
33627
33628 # type: textblock
33629 #. type: textblock
33630 #: ../tools/virt-win-reg.pl:638
33631 msgid ""
33632 "Similarly, other C<Current...> keys in the path may need to be replaced."
33633 msgstr ""
33634
33635 # type: =head1
33636 #. type: =head1
33637 #: ../tools/virt-win-reg.pl:641
33638 msgid "WINDOWS TIPS"
33639 msgstr ""
33640
33641 # type: textblock
33642 #. type: textblock
33643 #: ../tools/virt-win-reg.pl:643
33644 msgid ""
33645 "Note that some of these tips modify the guest disk image.  The guest I<must> "
33646 "be shut off, else you will get disk corruption."
33647 msgstr ""
33648
33649 # type: =head2
33650 #. type: =head2
33651 #: ../tools/virt-win-reg.pl:646
33652 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
33653 msgstr ""
33654
33655 # type: textblock
33656 #. type: textblock
33657 #: ../tools/virt-win-reg.pl:648
33658 msgid ""
33659 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
33660 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
33661 "is uploaded into C<C:\\>:"
33662 msgstr ""
33663
33664 # type: verbatim
33665 #. type: verbatim
33666 #: ../tools/virt-win-reg.pl:652
33667 #, no-wrap
33668 msgid ""
33669 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
33670 "\n"
33671 msgstr ""
33672
33673 # type: textblock
33674 #. type: textblock
33675 #: ../tools/virt-win-reg.pl:654
33676 msgid "Prepare a regedit file containing the registry change:"
33677 msgstr ""
33678
33679 # type: verbatim
33680 #. type: verbatim
33681 #: ../tools/virt-win-reg.pl:656
33682 #, no-wrap
33683 msgid ""
33684 " cat > test.reg <<'EOF'\n"
33685 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
33686 " \"Test\"=\"c:\\\\test.bat\"\n"
33687 " EOF\n"
33688 "\n"
33689 msgstr ""
33690
33691 # type: textblock
33692 #. type: textblock
33693 #: ../tools/virt-win-reg.pl:661
33694 msgid ""
33695 "In this example we use the key C<RunOnce> which means that the script will "
33696 "run precisely once when the first user logs in.  If you want it to run every "
33697 "time a user logs in, replace C<RunOnce> with C<Run>."
33698 msgstr ""
33699
33700 # type: textblock
33701 #. type: textblock
33702 #: ../tools/virt-win-reg.pl:665
33703 msgid "Now update the registry:"
33704 msgstr ""
33705
33706 # type: verbatim
33707 #. type: verbatim
33708 #: ../tools/virt-win-reg.pl:667
33709 #, no-wrap
33710 msgid ""
33711 " virt-win-reg --merge WindowsGuest test.reg\n"
33712 "\n"
33713 msgstr ""
33714
33715 # type: =head2
33716 #. type: =head2
33717 #: ../tools/virt-win-reg.pl:669
33718 msgid "INSTALLING A SERVICE"
33719 msgstr ""
33720
33721 # type: textblock
33722 #. type: textblock
33723 #: ../tools/virt-win-reg.pl:671
33724 msgid ""
33725 "This section assumes you are familiar with Windows services, and you either "
33726 "have a program which handles the Windows Service Control Protocol directly "
33727 "or you want to run any program using a service wrapper like SrvAny or the "
33728 "free RHSrvAny."
33729 msgstr ""
33730
33731 # type: textblock
33732 #. type: textblock
33733 #: ../tools/virt-win-reg.pl:676
33734 msgid ""
33735 "First upload the program and optionally the service wrapper.  In this case "
33736 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
33737 msgstr ""
33738
33739 # type: verbatim
33740 #. type: verbatim
33741 #: ../tools/virt-win-reg.pl:680
33742 #, no-wrap
33743 msgid ""
33744 " guestfish -i -d WindowsGuest <<EOF\n"
33745 "   upload rhsrvany.exe /rhsrvany.exe\n"
33746 "   upload test.exe /test.exe\n"
33747 " EOF\n"
33748 "\n"
33749 msgstr ""
33750
33751 # type: textblock
33752 #. type: textblock
33753 #: ../tools/virt-win-reg.pl:685
33754 msgid ""
33755 "Prepare a regedit file containing the registry changes.  In this example, "
33756 "the first registry change is needed for the service itself or the service "
33757 "wrapper (if used).  The second registry change is only needed because I am "
33758 "using the RHSrvAny service wrapper."
33759 msgstr ""
33760
33761 # type: verbatim
33762 #. type: verbatim
33763 #: ../tools/virt-win-reg.pl:690
33764 #, no-wrap
33765 msgid ""
33766 " cat > service.reg <<'EOF'\n"
33767 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
33768 " \"Type\"=dword:00000010\n"
33769 " \"Start\"=dword:00000002\n"
33770 " \"ErrorControl\"=dword:00000001\n"
33771 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
33772 " \"DisplayName\"=\"RHSrvAny\"\n"
33773 " \"ObjectName\"=\"NetworkService\"\n"
33774 " \n"
33775 msgstr ""
33776
33777 # type: verbatim
33778 #. type: verbatim
33779 #: ../tools/virt-win-reg.pl:699
33780 #, no-wrap
33781 msgid ""
33782 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
33783 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
33784 " \"PWD\"=\"c:\\\\Temp\"\n"
33785 " EOF\n"
33786 "\n"
33787 msgstr ""
33788
33789 # type: textblock
33790 #. type: textblock
33791 #: ../tools/virt-win-reg.pl:710
33792 msgid ""
33793 "For use of C<ControlSet001> see the section above in this manual page.  You "
33794 "may need to adjust this according to the control set that is in use by the "
33795 "guest."
33796 msgstr ""
33797
33798 # type: textblock
33799 #. type: textblock
33800 #: ../tools/virt-win-reg.pl:716
33801 msgid ""
33802 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
33803 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
33804 "privileged account."
33805 msgstr ""
33806
33807 # type: textblock
33808 #. type: textblock
33809 #: ../tools/virt-win-reg.pl:722
33810 msgid ""
33811 "For the meaning of the magic numbers, see this Microsoft KB article: "
33812 "L<http://support.microsoft.com/kb/103000>."
33813 msgstr ""
33814
33815 # type: textblock
33816 #. type: textblock
33817 #: ../tools/virt-win-reg.pl:727
33818 msgid "Update the registry:"
33819 msgstr ""
33820
33821 # type: verbatim
33822 #. type: verbatim
33823 #: ../tools/virt-win-reg.pl:729
33824 #, no-wrap
33825 msgid ""
33826 " virt-win-reg --merge WindowsGuest service.reg\n"
33827 "\n"
33828 msgstr ""
33829
33830 # type: =head2
33831 #. type: =head1
33832 #: ../tools/virt-win-reg.pl:731 ../tools/virt-list-filesystems.pl:182
33833 #: ../tools/virt-tar.pl:279 ../tools/virt-make-fs.pl:532
33834 #: ../tools/virt-list-partitions.pl:250
33835 msgid "SHELL QUOTING"
33836 msgstr ""
33837
33838 # type: textblock
33839 #. type: textblock
33840 #: ../tools/virt-win-reg.pl:733
33841 msgid ""
33842 "Be careful when passing parameters containing C<\\> (backslash) in the "
33843 "shell.  Usually you will have to use 'single quotes' or double backslashes "
33844 "(but not both) to protect them from the shell."
33845 msgstr ""
33846
33847 # type: textblock
33848 #. type: textblock
33849 #: ../tools/virt-win-reg.pl:737
33850 msgid "Paths and value names are case-insensitive."
33851 msgstr ""
33852
33853 # type: textblock
33854 #. type: textblock
33855 #: ../tools/virt-win-reg.pl:739 ../tools/virt-list-filesystems.pl:184
33856 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534
33857 #: ../tools/virt-list-partitions.pl:252
33858 msgid ""
33859 "Libvirt guest names can contain arbitrary characters, some of which have "
33860 "meaning to the shell such as C<#> and space.  You may need to quote or "
33861 "escape these characters on the command line.  See the shell manual page L<sh"
33862 "(1)> for details."
33863 msgstr ""
33864
33865 # type: textblock
33866 #. type: textblock
33867 #: ../tools/virt-win-reg.pl:746
33868 msgid ""
33869 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
33870 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
33871 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
33872 msgstr ""
33873
33874 # type: textblock
33875 #. type: textblock
33876 #: ../tools/virt-win-reg.pl:761 ../tools/virt-make-fs.pl:555
33877 msgid ""
33878 "When reporting bugs, please enable debugging and capture the I<complete> "
33879 "output:"
33880 msgstr ""
33881
33882 # type: verbatim
33883 #. type: verbatim
33884 #: ../tools/virt-win-reg.pl:764
33885 #, no-wrap
33886 msgid ""
33887 " export LIBGUESTFS_DEBUG=1\n"
33888 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
33889 "\n"
33890 msgstr ""
33891
33892 # type: textblock
33893 #. type: textblock
33894 #: ../tools/virt-win-reg.pl:767
33895 msgid ""
33896 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
33897 "redhat.com/>"
33898 msgstr ""
33899
33900 # type: =head1
33901 #. type: =head1
33902 #: ../tools/virt-win-reg.pl:770 ../tools/virt-list-filesystems.pl:202
33903 #: ../tools/virt-tar.pl:301 ../tools/virt-make-fs.pl:564
33904 #: ../tools/virt-list-partitions.pl:269
33905 msgid "AUTHOR"
33906 msgstr ""
33907
33908 # type: textblock
33909 #. type: textblock
33910 #: ../tools/virt-win-reg.pl:772 ../tools/virt-list-filesystems.pl:204
33911 #: ../tools/virt-tar.pl:303 ../tools/virt-make-fs.pl:566
33912 #: ../tools/virt-list-partitions.pl:271
33913 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
33914 msgstr ""
33915
33916 # type: textblock
33917 #. type: textblock
33918 #: ../tools/virt-win-reg.pl:776 ../tools/virt-make-fs.pl:570
33919 msgid "Copyright (C) 2010 Red Hat Inc."
33920 msgstr ""
33921
33922 # type: textblock
33923 #. type: textblock
33924 #: ../tools/virt-list-filesystems.pl:32
33925 msgid ""
33926 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
33927 msgstr ""
33928
33929 # type: verbatim
33930 #. type: verbatim
33931 #: ../tools/virt-list-filesystems.pl:36
33932 #, no-wrap
33933 msgid ""
33934 " virt-list-filesystems [--options] domname\n"
33935 "\n"
33936 msgstr ""
33937
33938 # type: verbatim
33939 #. type: verbatim
33940 #: ../tools/virt-list-filesystems.pl:38
33941 #, no-wrap
33942 msgid ""
33943 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
33944 "\n"
33945 msgstr ""
33946
33947 # type: textblock
33948 #. type: textblock
33949 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
33950 msgid ""
33951 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
33952 "replacement."
33953 msgstr ""
33954
33955 # type: textblock
33956 #. type: textblock
33957 #: ../tools/virt-list-filesystems.pl:45
33958 msgid ""
33959 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
33960 "are contained in a virtual machine or disk image."
33961 msgstr ""
33962
33963 # type: textblock
33964 #. type: textblock
33965 #: ../tools/virt-list-filesystems.pl:49
33966 msgid ""
33967 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
33968 "functionality.  For more complex cases you should look at the L<guestfish(1)"
33969 "> tool."
33970 msgstr ""
33971
33972 # type: =item
33973 #. type: =item
33974 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
33975 msgid "B<-l> | B<--long>"
33976 msgstr ""
33977
33978 # type: textblock
33979 #. type: textblock
33980 #: ../tools/virt-list-filesystems.pl:108
33981 msgid ""
33982 "With this option, C<virt-list-filesystems> displays the type of each "
33983 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
33984 msgstr ""
33985
33986 # type: =item
33987 #. type: =item
33988 #: ../tools/virt-list-filesystems.pl:115
33989 msgid "B<-a> | B<--all>"
33990 msgstr ""
33991
33992 # type: textblock
33993 #. type: textblock
33994 #: ../tools/virt-list-filesystems.pl:117
33995 msgid ""
33996 "Normally we only show mountable filesystems.  If this option is given then "
33997 "swap devices are shown too."
33998 msgstr ""
33999
34000 # type: textblock
34001 #. type: textblock
34002 #: ../tools/virt-list-filesystems.pl:191
34003 msgid ""
34004 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
34005 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
34006 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
34007 msgstr ""
34008
34009 # type: textblock
34010 #. type: textblock
34011 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:307
34012 msgid "Copyright (C) 2009 Red Hat Inc."
34013 msgstr ""
34014
34015 # type: textblock
34016 #. type: textblock
34017 #: ../tools/virt-tar.pl:33
34018 msgid "virt-tar - Extract or upload files to a virtual machine"
34019 msgstr ""
34020
34021 # type: verbatim
34022 #. type: verbatim
34023 #: ../tools/virt-tar.pl:37
34024 #, no-wrap
34025 msgid ""
34026 " virt-tar [--options] -x domname directory tarball\n"
34027 "\n"
34028 msgstr ""
34029
34030 # type: verbatim
34031 #. type: verbatim
34032 #: ../tools/virt-tar.pl:39
34033 #, no-wrap
34034 msgid ""
34035 " virt-tar [--options] -u domname tarball directory\n"
34036 "\n"
34037 msgstr ""
34038
34039 # type: verbatim
34040 #. type: verbatim
34041 #: ../tools/virt-tar.pl:41
34042 #, no-wrap
34043 msgid ""
34044 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
34045 "\n"
34046 msgstr ""
34047
34048 # type: verbatim
34049 #. type: verbatim
34050 #: ../tools/virt-tar.pl:43
34051 #, no-wrap
34052 msgid ""
34053 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
34054 "\n"
34055 msgstr ""
34056
34057 #. type: textblock
34058 #: ../tools/virt-tar.pl:47
34059 msgid ""
34060 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
34061 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
34062 msgstr ""
34063
34064 # type: textblock
34065 #. type: textblock
34066 #: ../tools/virt-tar.pl:52
34067 msgid "Download C</home> from the VM into a local tarball:"
34068 msgstr ""
34069
34070 # type: verbatim
34071 #. type: verbatim
34072 #: ../tools/virt-tar.pl:54
34073 #, no-wrap
34074 msgid ""
34075 " virt-tar -x domname /home home.tar\n"
34076 "\n"
34077 msgstr ""
34078
34079 # type: verbatim
34080 #. type: verbatim
34081 #: ../tools/virt-tar.pl:56
34082 #, no-wrap
34083 msgid ""
34084 " virt-tar -zx domname /home home.tar.gz\n"
34085 "\n"
34086 msgstr ""
34087
34088 # type: textblock
34089 #. type: textblock
34090 #: ../tools/virt-tar.pl:58
34091 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
34092 msgstr ""
34093
34094 # type: verbatim
34095 #. type: verbatim
34096 #: ../tools/virt-tar.pl:60
34097 #, no-wrap
34098 msgid ""
34099 " virt-tar -u domname uploadstuff.tar /tmp\n"
34100 "\n"
34101 msgstr ""
34102
34103 # type: verbatim
34104 #. type: verbatim
34105 #: ../tools/virt-tar.pl:62
34106 #, no-wrap
34107 msgid ""
34108 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
34109 "\n"
34110 msgstr ""
34111
34112 #. type: textblock
34113 #: ../tools/virt-tar.pl:66
34114 msgid ""
34115 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
34116 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
34117 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
34118 msgstr ""
34119
34120 #. type: textblock
34121 #: ../tools/virt-tar.pl:71
34122 msgid ""
34123 "You can use I<-x> (extract) on live virtual machines, but you might get "
34124 "inconsistent results or errors if there is filesystem activity inside the "
34125 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
34126 "work, but the only way to guarantee consistent results is if the virtual "
34127 "machine is shut down."
34128 msgstr ""
34129
34130 # type: textblock
34131 #. type: textblock
34132 #: ../tools/virt-tar.pl:79
34133 msgid ""
34134 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
34135 "parts of a guest filesystem.  There are many possibilities: making backups, "
34136 "uploading data files, snooping on guest activity, fixing or customizing "
34137 "guests, etc."
34138 msgstr ""
34139
34140 # type: textblock
34141 #. type: textblock
34142 #: ../tools/virt-tar.pl:84
34143 msgid ""
34144 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
34145 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
34146 "should look at the L<guestfish(1)> tool."
34147 msgstr ""
34148
34149 #. type: textblock
34150 #: ../tools/virt-tar.pl:88
34151 msgid ""
34152 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
34153 "its contents (recursively) from the virtual machine into a local tarball.  "
34154 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
34155 "virtual machine.  You cannot use these two options together."
34156 msgstr ""
34157
34158 #. type: textblock
34159 #: ../tools/virt-tar.pl:94
34160 msgid ""
34161 "In addition, you may need to use the I<-z> (gZip) option to enable "
34162 "compression.  When uploading, you have to specify I<-z> if the upload file "
34163 "is compressed because virt-tar won't detect this on its own."
34164 msgstr ""
34165
34166 # type: textblock
34167 #. type: textblock
34168 #: ../tools/virt-tar.pl:98
34169 msgid ""
34170 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
34171 "example it cannot do PKZip files or bzip2 compression.  If you want that "
34172 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
34173 "the L<libguestfs(3)> API)."
34174 msgstr ""
34175
34176 # type: =item
34177 #. type: =item
34178 #: ../tools/virt-tar.pl:156
34179 msgid "B<-x> | B<--extract> | B<--download>"
34180 msgstr ""
34181
34182 # type: =item
34183 #. type: =item
34184 #: ../tools/virt-tar.pl:158
34185 msgid "B<-u> | B<--upload>"
34186 msgstr ""
34187
34188 #. type: textblock
34189 #: ../tools/virt-tar.pl:160
34190 msgid ""
34191 "Use I<-x> to extract (download) a directory from a virtual machine to a "
34192 "local tarball."
34193 msgstr ""
34194
34195 #. type: textblock
34196 #: ../tools/virt-tar.pl:163
34197 msgid ""
34198 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
34199 "Please read the L</WARNING> section above before using this option."
34200 msgstr ""
34201
34202 # type: textblock
34203 #. type: textblock
34204 #: ../tools/virt-tar.pl:167
34205 msgid "You must specify exactly one of these options."
34206 msgstr ""
34207
34208 # type: =item
34209 #. type: =item
34210 #: ../tools/virt-tar.pl:173
34211 msgid "B<-z> | B<--gzip>"
34212 msgstr ""
34213
34214 # type: textblock
34215 #. type: textblock
34216 #: ../tools/virt-tar.pl:175
34217 msgid "Specify that the input or output tarball is gzip-compressed."
34218 msgstr ""
34219
34220 #. type: textblock
34221 #: ../tools/virt-tar.pl:288
34222 msgid ""
34223 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
34224 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
34225 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
34226 "org/>."
34227 msgstr ""
34228
34229 # type: textblock
34230 #. type: textblock
34231 #: ../tools/virt-make-fs.pl:37
34232 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
34233 msgstr ""
34234
34235 # type: verbatim
34236 #. type: verbatim
34237 #: ../tools/virt-make-fs.pl:41
34238 #, no-wrap
34239 msgid ""
34240 " virt-make-fs [--options] input.tar output.img\n"
34241 "\n"
34242 msgstr ""
34243
34244 # type: verbatim
34245 #. type: verbatim
34246 #: ../tools/virt-make-fs.pl:43
34247 #, no-wrap
34248 msgid ""
34249 " virt-make-fs [--options] input.tar.gz output.img\n"
34250 "\n"
34251 msgstr ""
34252
34253 # type: verbatim
34254 #. type: verbatim
34255 #: ../tools/virt-make-fs.pl:45
34256 #, no-wrap
34257 msgid ""
34258 " virt-make-fs [--options] directory output.img\n"
34259 "\n"
34260 msgstr ""
34261
34262 # type: textblock
34263 #. type: textblock
34264 #: ../tools/virt-make-fs.pl:49
34265 msgid ""
34266 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
34267 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
34268 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
34269 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
34270 "you want to attach these filesystems to existing virtual machines (eg. to "
34271 "import large amounts of read-only data to a VM)."
34272 msgstr ""
34273
34274 # type: textblock
34275 #. type: textblock
34276 #: ../tools/virt-make-fs.pl:57
34277 msgid "Basic usage is:"
34278 msgstr ""
34279
34280 # type: verbatim
34281 #. type: verbatim
34282 #: ../tools/virt-make-fs.pl:59
34283 #, no-wrap
34284 msgid ""
34285 " virt-make-fs input output\n"
34286 "\n"
34287 msgstr ""
34288
34289 # type: textblock
34290 #. type: textblock
34291 #: ../tools/virt-make-fs.pl:61
34292 msgid ""
34293 "where C<input> is either a directory containing files that you want to add, "
34294 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
34295 "C<output> is a disk image.  The input type is detected automatically.  The "
34296 "output disk image defaults to a raw ext2 image unless you specify extra "
34297 "flags (see L</OPTIONS> below)."
34298 msgstr ""
34299
34300 # type: =head2
34301 #. type: =head2
34302 #: ../tools/virt-make-fs.pl:67
34303 msgid "EXTRA SPACE"
34304 msgstr ""
34305
34306 #. type: textblock
34307 #: ../tools/virt-make-fs.pl:69
34308 msgid ""
34309 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
34310 "the files that it contains, but might have extra space.  Depending on how "
34311 "you are going to use the output, you might think this extra space is wasted "
34312 "and want to minimize it, or you might want to leave space so that more files "
34313 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
34314 "but you can use the I<--size> flag to leave space in the filesystem if you "
34315 "want it."
34316 msgstr ""
34317
34318 #. type: textblock
34319 #: ../tools/virt-make-fs.pl:77
34320 msgid ""
34321 "An alternative way to leave extra space but not make the output image any "
34322 "bigger is to use an alternative disk image format (instead of the default "
34323 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
34324 "image format (check your hypervisor supports this before using it).  This "
34325 "allows you to choose a large I<--size> but the extra space won't actually be "
34326 "allocated in the image until you try to store something in it."
34327 msgstr ""
34328
34329 #. type: textblock
34330 #: ../tools/virt-make-fs.pl:85
34331 msgid ""
34332 "Don't forget that you can also use local commands including L<resize2fs(8)> "
34333 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
34334 "to build another image from scratch."
34335 msgstr ""
34336
34337 # type: =head3
34338 #. type: =head3
34339 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
34340 #: ../tools/virt-make-fs.pl:142
34341 msgid "EXAMPLE"
34342 msgstr ""
34343
34344 # type: verbatim
34345 #. type: verbatim
34346 #: ../tools/virt-make-fs.pl:91
34347 #, no-wrap
34348 msgid ""
34349 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
34350 "\n"
34351 msgstr ""
34352
34353 # type: =head2
34354 #. type: =head2
34355 #: ../tools/virt-make-fs.pl:93
34356 msgid "FILESYSTEM TYPE"
34357 msgstr ""
34358
34359 # type: textblock
34360 #. type: textblock
34361 #: ../tools/virt-make-fs.pl:95
34362 msgid ""
34363 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
34364 "libguestfs supports can be used (but I<not> read-only formats like "
34365 "ISO9660).  Here are some of the more common choices:"
34366 msgstr ""
34367
34368 # type: =item
34369 #. type: =item
34370 #: ../tools/virt-make-fs.pl:101
34371 msgid "I<ext3>"
34372 msgstr ""
34373
34374 # type: textblock
34375 #. type: textblock
34376 #: ../tools/virt-make-fs.pl:103
34377 msgid ""
34378 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
34379 "you are not going to use the filesystem in a way that requires the journal, "
34380 "then this is just wasted overhead."
34381 msgstr ""
34382
34383 # type: =item
34384 #. type: =item
34385 #: ../tools/virt-make-fs.pl:107
34386 msgid "I<ntfs> or I<vfat>"
34387 msgstr ""
34388
34389 # type: textblock
34390 #. type: textblock
34391 #: ../tools/virt-make-fs.pl:109
34392 msgid "Useful if exporting data to a Windows guest."
34393 msgstr ""
34394
34395 # type: textblock
34396 #. type: textblock
34397 #: ../tools/virt-make-fs.pl:111
34398 msgid ""
34399 "I<Note for vfat>: The tar archive or local directory must only contain files "
34400 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
34401 "program running within libguestfs is unable to change the ownership of non-"
34402 "root files, since vfat itself does not support this."
34403 msgstr ""
34404
34405 # type: =item
34406 #. type: =item
34407 #: ../tools/virt-make-fs.pl:116
34408 msgid "I<minix>"
34409 msgstr ""
34410
34411 # type: textblock
34412 #. type: textblock
34413 #: ../tools/virt-make-fs.pl:118
34414 msgid ""
34415 "Lower overhead than C<ext2>, but certain limitations on filename length and "
34416 "total filesystem size."
34417 msgstr ""
34418
34419 # type: verbatim
34420 #. type: verbatim
34421 #: ../tools/virt-make-fs.pl:125
34422 #, no-wrap
34423 msgid ""
34424 " virt-make-fs --type=minix input minixfs.img\n"
34425 "\n"
34426 msgstr ""
34427
34428 # type: =head2
34429 #. type: =head2
34430 #: ../tools/virt-make-fs.pl:127
34431 msgid "TO PARTITION OR NOT TO PARTITION"
34432 msgstr ""
34433
34434 # type: textblock
34435 #. type: textblock
34436 #: ../tools/virt-make-fs.pl:129
34437 msgid "Optionally virt-make-fs can add a partition table to the output disk."
34438 msgstr ""
34439
34440 # type: textblock
34441 #. type: textblock
34442 #: ../tools/virt-make-fs.pl:131
34443 msgid ""
34444 "Adding a partition can make the disk image more compatible with certain "
34445 "virtualized operating systems which don't expect to see a filesystem "
34446 "directly located on a block device (Linux doesn't care and will happily "
34447 "handle both types)."
34448 msgstr ""
34449
34450 # type: textblock
34451 #. type: textblock
34452 #: ../tools/virt-make-fs.pl:136
34453 msgid ""
34454 "On the other hand, if you have a partition table then the output image is no "
34455 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
34456 "directly on a partitioned disk image.  (However libguestfs tools such as "
34457 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
34458 msgstr ""
34459
34460 # type: textblock
34461 #. type: textblock
34462 #: ../tools/virt-make-fs.pl:144
34463 msgid "Add an MBR partition:"
34464 msgstr ""
34465
34466 # type: verbatim
34467 #. type: verbatim
34468 #: ../tools/virt-make-fs.pl:146
34469 #, no-wrap
34470 msgid ""
34471 " virt-make-fs --partition -- input disk.img\n"
34472 "\n"
34473 msgstr ""
34474
34475 # type: textblock
34476 #. type: textblock
34477 #: ../tools/virt-make-fs.pl:148
34478 msgid ""
34479 "If the output disk image could be terabyte-sized or larger, it's better to "
34480 "use an EFI/GPT-compatible partition table:"
34481 msgstr ""
34482
34483 # type: verbatim
34484 #. type: verbatim
34485 #: ../tools/virt-make-fs.pl:151
34486 #, no-wrap
34487 msgid ""
34488 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
34489 "\n"
34490 msgstr ""
34491
34492 # type: textblock
34493 #. type: textblock
34494 #: ../tools/virt-make-fs.pl:179
34495 msgid "Enable debugging information."
34496 msgstr ""
34497
34498 # type: =item
34499 #. type: =item
34500 #: ../tools/virt-make-fs.pl:185
34501 msgid "B<--size=E<lt>NE<gt>>"
34502 msgstr ""
34503
34504 # type: =item
34505 #. type: =item
34506 #: ../tools/virt-make-fs.pl:187
34507 msgid "B<--size=+E<lt>NE<gt>>"
34508 msgstr ""
34509
34510 # type: =item
34511 #. type: =item
34512 #: ../tools/virt-make-fs.pl:189
34513 msgid "B<-s E<lt>NE<gt>>"
34514 msgstr ""
34515
34516 # type: =item
34517 #. type: =item
34518 #: ../tools/virt-make-fs.pl:191
34519 msgid "B<-s +E<lt>NE<gt>>"
34520 msgstr ""
34521
34522 #. type: textblock
34523 #: ../tools/virt-make-fs.pl:193
34524 msgid ""
34525 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
34526 msgstr ""
34527
34528 # type: textblock
34529 #. type: textblock
34530 #: ../tools/virt-make-fs.pl:196
34531 msgid ""
34532 "If this option is I<not> given, then the output image will be just large "
34533 "enough to contain all the files, with not much wasted space."
34534 msgstr ""
34535
34536 # type: textblock
34537 #. type: textblock
34538 #: ../tools/virt-make-fs.pl:199
34539 msgid ""
34540 "To choose a fixed size output disk, specify an absolute number followed by b/"
34541 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
34542 "Petabytes or Exabytes.  This must be large enough to contain all the input "
34543 "files, else you will get an error."
34544 msgstr ""
34545
34546 #. type: textblock
34547 #: ../tools/virt-make-fs.pl:204
34548 msgid ""
34549 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
34550 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
34551 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
34552 "the input files, and (approximately) an extra 200 MB free space."
34553 msgstr ""
34554
34555 # type: textblock
34556 #. type: textblock
34557 #: ../tools/virt-make-fs.pl:210
34558 msgid ""
34559 "Note that virt-make-fs estimates free space, and therefore will not produce "
34560 "filesystems containing precisely the free space requested.  (It is much more "
34561 "expensive and time-consuming to produce a filesystem which has precisely the "
34562 "desired free space)."
34563 msgstr ""
34564
34565 # type: =item
34566 #. type: =item
34567 #: ../tools/virt-make-fs.pl:219
34568 msgid "B<--format=E<lt>fmtE<gt>>"
34569 msgstr ""
34570
34571 # type: =item
34572 #. type: =item
34573 #: ../tools/virt-make-fs.pl:221
34574 msgid "B<-F E<lt>fmtE<gt>>"
34575 msgstr ""
34576
34577 # type: textblock
34578 #. type: textblock
34579 #: ../tools/virt-make-fs.pl:223
34580 msgid "Choose the output disk image format."
34581 msgstr ""
34582
34583 # type: textblock
34584 #. type: textblock
34585 #: ../tools/virt-make-fs.pl:225
34586 msgid "The default is C<raw> (raw disk image)."
34587 msgstr ""
34588
34589 # type: textblock
34590 #. type: textblock
34591 #: ../tools/virt-make-fs.pl:227
34592 msgid ""
34593 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
34594 "that would really make sense here is C<qcow2>."
34595 msgstr ""
34596
34597 # type: =item
34598 #. type: =item
34599 #: ../tools/virt-make-fs.pl:234
34600 msgid "B<--type=E<lt>fsE<gt>>"
34601 msgstr ""
34602
34603 # type: =item
34604 #. type: =item
34605 #: ../tools/virt-make-fs.pl:236
34606 msgid "B<-t E<lt>fsE<gt>>"
34607 msgstr ""
34608
34609 # type: textblock
34610 #. type: textblock
34611 #: ../tools/virt-make-fs.pl:238
34612 msgid "Choose the output filesystem type."
34613 msgstr ""
34614
34615 # type: textblock
34616 #. type: textblock
34617 #: ../tools/virt-make-fs.pl:240
34618 msgid "The default is C<ext2>."
34619 msgstr ""
34620
34621 # type: textblock
34622 #. type: textblock
34623 #: ../tools/virt-make-fs.pl:242
34624 msgid ""
34625 "Any filesystem which is supported read-write by libguestfs can be used here."
34626 msgstr ""
34627
34628 # type: =item
34629 #. type: =item
34630 #: ../tools/virt-make-fs.pl:249
34631 msgid "B<--partition>"
34632 msgstr ""
34633
34634 # type: =item
34635 #. type: =item
34636 #: ../tools/virt-make-fs.pl:251
34637 msgid "B<--partition=E<lt>parttypeE<gt>>"
34638 msgstr ""
34639
34640 # type: textblock
34641 #. type: textblock
34642 #: ../tools/virt-make-fs.pl:253
34643 msgid ""
34644 "If specified, this flag adds an MBR partition table to the output disk image."
34645 msgstr ""
34646
34647 #. type: textblock
34648 #: ../tools/virt-make-fs.pl:256
34649 msgid ""
34650 "You can change the partition table type, eg. I<--partition=gpt> for large "
34651 "disks."
34652 msgstr ""
34653
34654 #. type: textblock
34655 #: ../tools/virt-make-fs.pl:259
34656 msgid ""
34657 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
34658 "might consider the next parameter to be the partition type.  For example:"
34659 msgstr ""
34660
34661 # type: verbatim
34662 #. type: verbatim
34663 #: ../tools/virt-make-fs.pl:263
34664 #, no-wrap
34665 msgid ""
34666 " virt-make-fs --partition input.tar ...\n"
34667 "\n"
34668 msgstr ""
34669
34670 #. type: textblock
34671 #: ../tools/virt-make-fs.pl:265
34672 msgid ""
34673 "would cause virt-make-fs to think you wanted to use a partition type of "
34674 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
34675 "dash) between options and the input file argument:"
34676 msgstr ""
34677
34678 # type: verbatim
34679 #. type: verbatim
34680 #: ../tools/virt-make-fs.pl:269
34681 #, no-wrap
34682 msgid ""
34683 " virt-make-fs --partition -- input.tar ...\n"
34684 "\n"
34685 msgstr ""
34686
34687 #. type: textblock
34688 #: ../tools/virt-make-fs.pl:541
34689 msgid ""
34690 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
34691 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
34692 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
34693 msgstr ""
34694
34695 # type: verbatim
34696 #. type: verbatim
34697 #: ../tools/virt-make-fs.pl:558
34698 #, no-wrap
34699 msgid ""
34700 " export LIBGUESTFS_DEBUG=1\n"
34701 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
34702 "\n"
34703 msgstr ""
34704
34705 # type: textblock
34706 #. type: textblock
34707 #: ../tools/virt-make-fs.pl:561
34708 msgid ""
34709 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
34710 "redhat.com/>"
34711 msgstr ""
34712
34713 # type: textblock
34714 #. type: textblock
34715 #: ../tools/virt-list-partitions.pl:32
34716 msgid ""
34717 "virt-list-partitions - List partitions in a virtual machine or disk image"
34718 msgstr ""
34719
34720 # type: verbatim
34721 #. type: verbatim
34722 #: ../tools/virt-list-partitions.pl:36
34723 #, no-wrap
34724 msgid ""
34725 " virt-list-partitions [--options] domname\n"
34726 "\n"
34727 msgstr ""
34728
34729 # type: verbatim
34730 #. type: verbatim
34731 #: ../tools/virt-list-partitions.pl:38
34732 #, no-wrap
34733 msgid ""
34734 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
34735 "\n"
34736 msgstr ""
34737
34738 # type: textblock
34739 #. type: textblock
34740 #: ../tools/virt-list-partitions.pl:45
34741 msgid ""
34742 "C<virt-list-partitions> is a command line tool to list the partitions that "
34743 "are contained in a virtual machine or disk image.  It is mainly useful as a "
34744 "first step to using L<virt-resize(1)>."
34745 msgstr ""
34746
34747 # type: textblock
34748 #. type: textblock
34749 #: ../tools/virt-list-partitions.pl:50
34750 msgid ""
34751 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
34752 "functionality.  For more complex cases you should look at the L<guestfish(1)"
34753 "> tool."
34754 msgstr ""
34755
34756 # type: =item
34757 #. type: =item
34758 #: ../tools/virt-list-partitions.pl:107
34759 msgid "B<-h> | B<--human-readable>"
34760 msgstr ""
34761
34762 # type: textblock
34763 #. type: textblock
34764 #: ../tools/virt-list-partitions.pl:109
34765 msgid "Show sizes in human-readable form (eg. \"1G\")."
34766 msgstr ""
34767
34768 # type: textblock
34769 #. type: textblock
34770 #: ../tools/virt-list-partitions.pl:117
34771 msgid ""
34772 "With this option, C<virt-list-partitions> displays the type and size of each "
34773 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
34774 msgstr ""
34775
34776 # type: =item
34777 #. type: =item
34778 #: ../tools/virt-list-partitions.pl:124
34779 msgid "B<-t> | B<--total>"
34780 msgstr ""
34781
34782 # type: textblock
34783 #. type: textblock
34784 #: ../tools/virt-list-partitions.pl:126
34785 msgid ""
34786 "Display the total size of each block device (as a separate row or rows)."
34787 msgstr ""
34788
34789 # type: textblock
34790 #. type: textblock
34791 #: ../tools/virt-list-partitions.pl:259
34792 msgid ""
34793 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
34794 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
34795 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
34796 msgstr ""
34797
34798 # type: textblock
34799 #. type: textblock
34800 #: ../tools/virt-list-partitions.pl:275
34801 msgid "Copyright (C) 2009-2010 Red Hat Inc."
34802 msgstr ""