Version 1.11.16.
[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-13 15:55+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:6106
5577 #: ../fish/guestfish-actions.pod:4041
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:3780 ../src/guestfs-actions.pod:3794
6430 #: ../src/guestfs-actions.pod:3807 ../src/guestfs-actions.pod:3821
6431 #: ../src/guestfs-actions.pod:3836 ../src/guestfs-actions.pod:3872
6432 #: ../src/guestfs-actions.pod:3944 ../src/guestfs-actions.pod:3964
6433 #: ../src/guestfs-actions.pod:3981 ../src/guestfs-actions.pod:4004
6434 #: ../src/guestfs-actions.pod:4027 ../src/guestfs-actions.pod:4062
6435 #: ../src/guestfs-actions.pod:4081 ../src/guestfs-actions.pod:4100
6436 #: ../src/guestfs-actions.pod:4135 ../src/guestfs-actions.pod:4147
6437 #: ../src/guestfs-actions.pod:4183 ../src/guestfs-actions.pod:4199
6438 #: ../src/guestfs-actions.pod:4212 ../src/guestfs-actions.pod:4227
6439 #: ../src/guestfs-actions.pod:4244 ../src/guestfs-actions.pod:4337
6440 #: ../src/guestfs-actions.pod:4357 ../src/guestfs-actions.pod:4370
6441 #: ../src/guestfs-actions.pod:4421 ../src/guestfs-actions.pod:4439
6442 #: ../src/guestfs-actions.pod:4457 ../src/guestfs-actions.pod:4473
6443 #: ../src/guestfs-actions.pod:4487 ../src/guestfs-actions.pod:4501
6444 #: ../src/guestfs-actions.pod:4518 ../src/guestfs-actions.pod:4533
6445 #: ../src/guestfs-actions.pod:4553 ../src/guestfs-actions.pod:4623
6446 #: ../src/guestfs-actions.pod:4696 ../src/guestfs-actions.pod:4727
6447 #: ../src/guestfs-actions.pod:4746 ../src/guestfs-actions.pod:4765
6448 #: ../src/guestfs-actions.pod:4777 ../src/guestfs-actions.pod:4794
6449 #: ../src/guestfs-actions.pod:4807 ../src/guestfs-actions.pod:4822
6450 #: ../src/guestfs-actions.pod:4837 ../src/guestfs-actions.pod:4872
6451 #: ../src/guestfs-actions.pod:4905 ../src/guestfs-actions.pod:4944
6452 #: ../src/guestfs-actions.pod:4964 ../src/guestfs-actions.pod:4978
6453 #: ../src/guestfs-actions.pod:4995 ../src/guestfs-actions.pod:5044
6454 #: ../src/guestfs-actions.pod:5090 ../src/guestfs-actions.pod:5144
6455 #: ../src/guestfs-actions.pod:5180 ../src/guestfs-actions.pod:5215
6456 #: ../src/guestfs-actions.pod:5232 ../src/guestfs-actions.pod:5250
6457 #: ../src/guestfs-actions.pod:5384 ../src/guestfs-actions.pod:5441
6458 #: ../src/guestfs-actions.pod:5463 ../src/guestfs-actions.pod:5481
6459 #: ../src/guestfs-actions.pod:5513 ../src/guestfs-actions.pod:5579
6460 #: ../src/guestfs-actions.pod:5596 ../src/guestfs-actions.pod:5609
6461 #: ../src/guestfs-actions.pod:5623 ../src/guestfs-actions.pod:5912
6462 #: ../src/guestfs-actions.pod:5931 ../src/guestfs-actions.pod:5950
6463 #: ../src/guestfs-actions.pod:5964 ../src/guestfs-actions.pod:5976
6464 #: ../src/guestfs-actions.pod:5990 ../src/guestfs-actions.pod:6002
6465 #: ../src/guestfs-actions.pod:6016 ../src/guestfs-actions.pod:6032
6466 #: ../src/guestfs-actions.pod:6053 ../src/guestfs-actions.pod:6072
6467 #: ../src/guestfs-actions.pod:6091 ../src/guestfs-actions.pod:6121
6468 #: ../src/guestfs-actions.pod:6139 ../src/guestfs-actions.pod:6162
6469 #: ../src/guestfs-actions.pod:6180 ../src/guestfs-actions.pod:6199
6470 #: ../src/guestfs-actions.pod:6220 ../src/guestfs-actions.pod:6239
6471 #: ../src/guestfs-actions.pod:6256 ../src/guestfs-actions.pod:6284
6472 #: ../src/guestfs-actions.pod:6308 ../src/guestfs-actions.pod:6327
6473 #: ../src/guestfs-actions.pod:6351 ../src/guestfs-actions.pod:6370
6474 #: ../src/guestfs-actions.pod:6385 ../src/guestfs-actions.pod:6404
6475 #: ../src/guestfs-actions.pod:6441 ../src/guestfs-actions.pod:6471
6476 #: ../src/guestfs-actions.pod:6504 ../src/guestfs-actions.pod:6626
6477 #: ../src/guestfs-actions.pod:6747 ../src/guestfs-actions.pod:6759
6478 #: ../src/guestfs-actions.pod:6772 ../src/guestfs-actions.pod:6785
6479 #: ../src/guestfs-actions.pod:6807 ../src/guestfs-actions.pod:6820
6480 #: ../src/guestfs-actions.pod:6833 ../src/guestfs-actions.pod:6846
6481 #: ../src/guestfs-actions.pod:6861 ../src/guestfs-actions.pod:6920
6482 #: ../src/guestfs-actions.pod:6937 ../src/guestfs-actions.pod:6953
6483 #: ../src/guestfs-actions.pod:6969 ../src/guestfs-actions.pod:6986
6484 #: ../src/guestfs-actions.pod:6999 ../src/guestfs-actions.pod:7019
6485 #: ../src/guestfs-actions.pod:7055 ../src/guestfs-actions.pod:7069
6486 #: ../src/guestfs-actions.pod:7110 ../src/guestfs-actions.pod:7123
6487 #: ../src/guestfs-actions.pod:7141 ../src/guestfs-actions.pod:7175
6488 #: ../src/guestfs-actions.pod:7211 ../src/guestfs-actions.pod:7327
6489 #: ../src/guestfs-actions.pod:7342 ../src/guestfs-actions.pod:7356
6490 #: ../src/guestfs-actions.pod:7411 ../src/guestfs-actions.pod:7424
6491 #: ../src/guestfs-actions.pod:7469 ../src/guestfs-actions.pod:7502
6492 #: ../src/guestfs-actions.pod:7563 ../src/guestfs-actions.pod:7589
6493 #: ../src/guestfs-actions.pod:7656 ../src/guestfs-actions.pod:7675
6494 #: ../src/guestfs-actions.pod:7704
6495 msgid "This function returns 0 on success or -1 on error."
6496 msgstr ""
6497
6498 # type: textblock
6499 #. type: textblock
6500 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:254
6501 #: ../src/guestfs-actions.pod:275 ../fish/guestfish-actions.pod:28
6502 #: ../fish/guestfish-actions.pod:163 ../fish/guestfish-actions.pod:177
6503 msgid ""
6504 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
6505 "instead."
6506 msgstr ""
6507
6508 # type: textblock
6509 #. type: textblock
6510 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257
6511 #: ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1454
6512 #: ../src/guestfs-actions.pod:1949 ../src/guestfs-actions.pod:1970
6513 #: ../src/guestfs-actions.pod:4558 ../src/guestfs-actions.pod:4877
6514 #: ../src/guestfs-actions.pod:5095 ../src/guestfs-actions.pod:5185
6515 #: ../src/guestfs-actions.pod:6449 ../src/guestfs-actions.pod:6479
6516 #: ../src/guestfs-actions.pod:6512 ../src/guestfs-actions.pod:6571
6517 #: ../src/guestfs-actions.pod:7507 ../src/guestfs-actions.pod:7597
6518 #: ../src/guestfs-actions.pod:7767 ../fish/guestfish-actions.pod:31
6519 #: ../fish/guestfish-actions.pod:166 ../fish/guestfish-actions.pod:180
6520 #: ../fish/guestfish-actions.pod:961 ../fish/guestfish-actions.pod:1321
6521 #: ../fish/guestfish-actions.pod:1335 ../fish/guestfish-actions.pod:3054
6522 #: ../fish/guestfish-actions.pod:3261 ../fish/guestfish-actions.pod:3375
6523 #: ../fish/guestfish-actions.pod:3423 ../fish/guestfish-actions.pod:4303
6524 #: ../fish/guestfish-actions.pod:4326 ../fish/guestfish-actions.pod:4348
6525 #: ../fish/guestfish-actions.pod:4386 ../fish/guestfish-actions.pod:5021
6526 #: ../fish/guestfish-actions.pod:5119
6527 msgid ""
6528 "Deprecated functions will not be removed from the API, but the fact that "
6529 "they are deprecated indicates that there are problems with correct use of "
6530 "these functions."
6531 msgstr ""
6532
6533 # type: textblock
6534 #. type: textblock
6535 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
6536 #: ../src/guestfs-actions.pod:1106 ../src/guestfs-actions.pod:1921
6537 #: ../src/guestfs-actions.pod:2019 ../src/guestfs-actions.pod:2122
6538 #: ../src/guestfs-actions.pod:3553 ../src/guestfs-actions.pod:3573
6539 #: ../src/guestfs-actions.pod:4881 ../src/guestfs-actions.pod:6141
6540 #: ../src/guestfs-actions.pod:6258 ../src/guestfs-actions.pod:6372
6541 #: ../src/guestfs-actions.pod:6863 ../src/guestfs-actions.pod:6988
6542 #: ../src/guestfs-actions.pod:7511
6543 msgid "(Added in 0.3)"
6544 msgstr ""
6545
6546 # type: =head2
6547 #. type: =head2
6548 #: ../src/guestfs-actions.pod:41
6549 msgid "guestfs_add_domain"
6550 msgstr ""
6551
6552 # type: verbatim
6553 #. type: verbatim
6554 #: ../src/guestfs-actions.pod:43
6555 #, no-wrap
6556 msgid ""
6557 " int\n"
6558 " guestfs_add_domain (guestfs_h *g,\n"
6559 "                     const char *dom,\n"
6560 "                     ...);\n"
6561 "\n"
6562 msgstr ""
6563
6564 # type: textblock
6565 #. type: textblock
6566 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
6567 #: ../src/guestfs-actions.pod:2756 ../src/guestfs-actions.pod:4572
6568 #: ../src/guestfs-actions.pod:4891 ../src/guestfs-actions.pod:5108
6569 msgid ""
6570 "You may supply a list of optional arguments to this call.  Use zero or more "
6571 "of the following pairs of parameters, and terminate the list with C<-1> on "
6572 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
6573 msgstr ""
6574
6575 #. type: verbatim
6576 #: ../src/guestfs-actions.pod:53
6577 #, no-wrap
6578 msgid ""
6579 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
6580 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
6581 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
6582 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
6583 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
6584 "\n"
6585 msgstr ""
6586
6587 # type: textblock
6588 #. type: textblock
6589 #: ../src/guestfs-actions.pod:59
6590 msgid ""
6591 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6592 "It works by connecting to libvirt, requesting the domain and domain XML from "
6593 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
6594 "one."
6595 msgstr ""
6596
6597 # type: textblock
6598 #. type: textblock
6599 #: ../src/guestfs-actions.pod:64 ../fish/guestfish-actions.pod:46
6600 msgid ""
6601 "The number of disks added is returned.  This operation is atomic: if an "
6602 "error is returned, then no disks are added."
6603 msgstr ""
6604
6605 # type: textblock
6606 #. type: textblock
6607 #: ../src/guestfs-actions.pod:67 ../fish/guestfish-actions.pod:49
6608 msgid ""
6609 "This function does some minimal checks to make sure the libvirt domain is "
6610 "not running (unless C<readonly> is true).  In a future version we will try "
6611 "to acquire the libvirt lock on each disk."
6612 msgstr ""
6613
6614 # type: textblock
6615 #. type: textblock
6616 #: ../src/guestfs-actions.pod:71 ../fish/guestfish-actions.pod:53
6617 msgid ""
6618 "Disks must be accessible locally.  This often means that adding disks from a "
6619 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6620 "unless those disks are accessible via the same device path locally too."
6621 msgstr ""
6622
6623 #. type: textblock
6624 #: ../src/guestfs-actions.pod:76 ../fish/guestfish-actions.pod:58
6625 msgid ""
6626 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6627 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
6628 "libvirt URI (or one set through an environment variable, see the libvirt "
6629 "documentation for full details)."
6630 msgstr ""
6631
6632 #. type: textblock
6633 #: ../src/guestfs-actions.pod:82 ../fish/guestfish-actions.pod:64
6634 msgid ""
6635 "The optional C<live> flag controls whether this call will try to connect to "
6636 "a running virtual machine C<guestfsd> process if it sees a suitable "
6637 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6638 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6639 "DAEMONS> for more information."
6640 msgstr ""
6641
6642 #. type: textblock
6643 #: ../src/guestfs-actions.pod:89 ../fish/guestfish-actions.pod:71
6644 msgid ""
6645 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6646 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6647 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6648 "as usual."
6649 msgstr ""
6650
6651 # type: textblock
6652 #. type: textblock
6653 #: ../src/guestfs-actions.pod:94
6654 msgid ""
6655 "The other optional parameters are passed directly through to "
6656 "C<guestfs_add_drive_opts>."
6657 msgstr ""
6658
6659 # type: textblock
6660 #. type: textblock
6661 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
6662 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:693
6663 #: ../src/guestfs-actions.pod:724 ../src/guestfs-actions.pod:742
6664 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:1321
6665 #: ../src/guestfs-actions.pod:1677 ../src/guestfs-actions.pod:1880
6666 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:2031
6667 #: ../src/guestfs-actions.pod:2086 ../src/guestfs-actions.pod:2109
6668 #: ../src/guestfs-actions.pod:2402 ../src/guestfs-actions.pod:2874
6669 #: ../src/guestfs-actions.pod:2892 ../src/guestfs-actions.pod:5067
6670 #: ../src/guestfs-actions.pod:5287 ../src/guestfs-actions.pod:5693
6671 #: ../src/guestfs-actions.pod:5719 ../src/guestfs-actions.pod:7096
6672 #: ../src/guestfs-actions.pod:7522 ../src/guestfs-actions.pod:7535
6673 #: ../src/guestfs-actions.pod:7548
6674 msgid "On error this function returns -1."
6675 msgstr ""
6676
6677 # type: textblock
6678 #. type: textblock
6679 #: ../src/guestfs-actions.pod:99
6680 msgid "(Added in 1.7.4)"
6681 msgstr ""
6682
6683 # type: =head2
6684 #. type: =head2
6685 #: ../src/guestfs-actions.pod:101
6686 msgid "guestfs_add_domain_va"
6687 msgstr ""
6688
6689 # type: verbatim
6690 #. type: verbatim
6691 #: ../src/guestfs-actions.pod:103
6692 #, no-wrap
6693 msgid ""
6694 " int\n"
6695 " guestfs_add_domain_va (guestfs_h *g,\n"
6696 "                        const char *dom,\n"
6697 "                        va_list args);\n"
6698 "\n"
6699 msgstr ""
6700
6701 # type: textblock
6702 #. type: textblock
6703 #: ../src/guestfs-actions.pod:108
6704 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
6705 msgstr ""
6706
6707 # type: textblock
6708 #. type: textblock
6709 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
6710 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
6711 #: ../src/guestfs-actions.pod:2840 ../src/guestfs-actions.pod:2852
6712 #: ../src/guestfs-actions.pod:4637 ../src/guestfs-actions.pod:4649
6713 #: ../src/guestfs-actions.pod:4919 ../src/guestfs-actions.pod:4931
6714 #: ../src/guestfs-actions.pod:5157 ../src/guestfs-actions.pod:5168
6715 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
6716 msgstr ""
6717
6718 # type: =head2
6719 #. type: =head2
6720 #: ../src/guestfs-actions.pod:112
6721 msgid "guestfs_add_domain_argv"
6722 msgstr ""
6723
6724 # type: verbatim
6725 #. type: verbatim
6726 #: ../src/guestfs-actions.pod:114
6727 #, no-wrap
6728 msgid ""
6729 " int\n"
6730 " guestfs_add_domain_argv (guestfs_h *g,\n"
6731 "                          const char *dom,\n"
6732 "                          const struct guestfs_add_domain_argv *optargs);\n"
6733 "\n"
6734 msgstr ""
6735
6736 # type: textblock
6737 #. type: textblock
6738 #: ../src/guestfs-actions.pod:119
6739 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
6740 msgstr ""
6741
6742 # type: =head2
6743 #. type: =head2
6744 #: ../src/guestfs-actions.pod:123
6745 msgid "guestfs_add_drive"
6746 msgstr ""
6747
6748 # type: verbatim
6749 #. type: verbatim
6750 #: ../src/guestfs-actions.pod:125
6751 #, no-wrap
6752 msgid ""
6753 " int\n"
6754 " guestfs_add_drive (guestfs_h *g,\n"
6755 "                    const char *filename);\n"
6756 "\n"
6757 msgstr ""
6758
6759 # type: textblock
6760 #. type: textblock
6761 #: ../src/guestfs-actions.pod:129
6762 msgid ""
6763 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
6764 "optional parameters, so the disk is added writable, with the format being "
6765 "detected automatically."
6766 msgstr ""
6767
6768 # type: textblock
6769 #. type: textblock
6770 #: ../src/guestfs-actions.pod:133
6771 msgid ""
6772 "Automatic detection of the format opens you up to a potential security hole "
6773 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6774 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6775 "you should think about replacing calls to this function with calls to "
6776 "C<guestfs_add_drive_opts>, and specifying the format."
6777 msgstr ""
6778
6779 # type: =head2
6780 #. type: =head2
6781 #: ../src/guestfs-actions.pod:144
6782 msgid "guestfs_add_drive_opts"
6783 msgstr ""
6784
6785 # type: verbatim
6786 #. type: verbatim
6787 #: ../src/guestfs-actions.pod:146
6788 #, no-wrap
6789 msgid ""
6790 " int\n"
6791 " guestfs_add_drive_opts (guestfs_h *g,\n"
6792 "                         const char *filename,\n"
6793 "                         ...);\n"
6794 "\n"
6795 msgstr ""
6796
6797 # type: verbatim
6798 #. type: verbatim
6799 #: ../src/guestfs-actions.pod:156
6800 #, no-wrap
6801 msgid ""
6802 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
6803 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
6804 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
6805 "\n"
6806 msgstr ""
6807
6808 # type: textblock
6809 #. type: textblock
6810 #: ../src/guestfs-actions.pod:160 ../fish/guestfish-actions.pod:102
6811 msgid ""
6812 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6813 "The first time you call this function, the disk appears as C</dev/sda>, the "
6814 "second time as C</dev/sdb>, and so on."
6815 msgstr ""
6816
6817 # type: textblock
6818 #. type: textblock
6819 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:107
6820 msgid ""
6821 "You don't necessarily need to be root when using libguestfs.  However you "
6822 "obviously do need sufficient permissions to access the filename for whatever "
6823 "operations you want to perform (ie. read access if you just want to read the "
6824 "image or write access if you want to modify the image)."
6825 msgstr ""
6826
6827 # type: textblock
6828 #. type: textblock
6829 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:113
6830 msgid "This call checks that C<filename> exists."
6831 msgstr ""
6832
6833 # type: textblock
6834 #. type: textblock
6835 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4585
6836 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3065
6837 msgid "The optional arguments are:"
6838 msgstr ""
6839
6840 # type: =item
6841 #. type: =item
6842 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:119
6843 msgid "C<readonly>"
6844 msgstr ""
6845
6846 # type: textblock
6847 #. type: textblock
6848 #: ../src/guestfs-actions.pod:179 ../fish/guestfish-actions.pod:121
6849 msgid ""
6850 "If true then the image is treated as read-only.  Writes are still allowed, "
6851 "but they are stored in a temporary snapshot overlay which is discarded at "
6852 "the end.  The disk that you add is not modified."
6853 msgstr ""
6854
6855 # type: =item
6856 #. type: =item
6857 #: ../src/guestfs-actions.pod:183 ../fish/guestfish-actions.pod:125
6858 msgid "C<format>"
6859 msgstr ""
6860
6861 # type: textblock
6862 #. type: textblock
6863 #: ../src/guestfs-actions.pod:185
6864 msgid ""
6865 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
6866 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
6867 "Possible formats include C<raw> and C<qcow2>."
6868 msgstr ""
6869
6870 # type: textblock
6871 #. type: textblock
6872 #: ../src/guestfs-actions.pod:189 ../fish/guestfish-actions.pod:131
6873 msgid ""
6874 "Automatic detection of the format opens you up to a potential security hole "
6875 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6876 "RHBZ#642934.  Specifying the format closes this security hole."
6877 msgstr ""
6878
6879 # type: =item
6880 #. type: =item
6881 #: ../src/guestfs-actions.pod:194 ../fish/guestfish-actions.pod:136
6882 msgid "C<iface>"
6883 msgstr ""
6884
6885 # type: textblock
6886 #. type: textblock
6887 #: ../src/guestfs-actions.pod:196
6888 msgid ""
6889 "This rarely-used option lets you emulate the behaviour of the deprecated "
6890 "C<guestfs_add_drive_with_if> call (q.v.)"
6891 msgstr ""
6892
6893 # type: textblock
6894 #. type: textblock
6895 #: ../src/guestfs-actions.pod:203
6896 msgid "(Added in 1.5.23)"
6897 msgstr ""
6898
6899 # type: =head2
6900 #. type: =head2
6901 #: ../src/guestfs-actions.pod:205
6902 msgid "guestfs_add_drive_opts_va"
6903 msgstr ""
6904
6905 # type: verbatim
6906 #. type: verbatim
6907 #: ../src/guestfs-actions.pod:207
6908 #, no-wrap
6909 msgid ""
6910 " int\n"
6911 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
6912 "                            const char *filename,\n"
6913 "                            va_list args);\n"
6914 "\n"
6915 msgstr ""
6916
6917 # type: textblock
6918 #. type: textblock
6919 #: ../src/guestfs-actions.pod:212
6920 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
6921 msgstr ""
6922
6923 # type: =head2
6924 #. type: =head2
6925 #: ../src/guestfs-actions.pod:216
6926 msgid "guestfs_add_drive_opts_argv"
6927 msgstr ""
6928
6929 # type: verbatim
6930 #. type: verbatim
6931 #: ../src/guestfs-actions.pod:218
6932 #, no-wrap
6933 msgid ""
6934 " int\n"
6935 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
6936 "                              const char *filename,\n"
6937 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
6938 "\n"
6939 msgstr ""
6940
6941 # type: textblock
6942 #. type: textblock
6943 #: ../src/guestfs-actions.pod:223
6944 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
6945 msgstr ""
6946
6947 # type: =head2
6948 #. type: =head2
6949 #: ../src/guestfs-actions.pod:227
6950 msgid "guestfs_add_drive_ro"
6951 msgstr ""
6952
6953 # type: verbatim
6954 #. type: verbatim
6955 #: ../src/guestfs-actions.pod:229
6956 #, no-wrap
6957 msgid ""
6958 " int\n"
6959 " guestfs_add_drive_ro (guestfs_h *g,\n"
6960 "                       const char *filename);\n"
6961 "\n"
6962 msgstr ""
6963
6964 # type: textblock
6965 #. type: textblock
6966 #: ../src/guestfs-actions.pod:233
6967 msgid ""
6968 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
6969 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
6970 "disk is added read-only, with the format being detected automatically."
6971 msgstr ""
6972
6973 # type: textblock
6974 #. type: textblock
6975 #: ../src/guestfs-actions.pod:240
6976 msgid "(Added in 1.0.38)"
6977 msgstr ""
6978
6979 # type: =head2
6980 #. type: =head2
6981 #: ../src/guestfs-actions.pod:242
6982 msgid "guestfs_add_drive_ro_with_if"
6983 msgstr ""
6984
6985 # type: verbatim
6986 #. type: verbatim
6987 #: ../src/guestfs-actions.pod:244
6988 #, no-wrap
6989 msgid ""
6990 " int\n"
6991 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
6992 "                               const char *filename,\n"
6993 "                               const char *iface);\n"
6994 "\n"
6995 msgstr ""
6996
6997 # type: textblock
6998 #. type: textblock
6999 #: ../src/guestfs-actions.pod:249
7000 msgid ""
7001 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
7002 "QEMU interface emulation to use at run time."
7003 msgstr ""
7004
7005 # type: textblock
7006 #. type: textblock
7007 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
7008 #: ../src/guestfs-actions.pod:2361
7009 msgid "(Added in 1.0.84)"
7010 msgstr ""
7011
7012 # type: =head2
7013 #. type: =head2
7014 #: ../src/guestfs-actions.pod:263
7015 msgid "guestfs_add_drive_with_if"
7016 msgstr ""
7017
7018 # type: verbatim
7019 #. type: verbatim
7020 #: ../src/guestfs-actions.pod:265
7021 #, no-wrap
7022 msgid ""
7023 " int\n"
7024 " guestfs_add_drive_with_if (guestfs_h *g,\n"
7025 "                            const char *filename,\n"
7026 "                            const char *iface);\n"
7027 "\n"
7028 msgstr ""
7029
7030 # type: textblock
7031 #. type: textblock
7032 #: ../src/guestfs-actions.pod:270
7033 msgid ""
7034 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
7035 "QEMU interface emulation to use at run time."
7036 msgstr ""
7037
7038 # type: =head2
7039 #. type: =head2
7040 #: ../src/guestfs-actions.pod:284
7041 msgid "guestfs_aug_clear"
7042 msgstr ""
7043
7044 # type: verbatim
7045 #. type: verbatim
7046 #: ../src/guestfs-actions.pod:286
7047 #, no-wrap
7048 msgid ""
7049 " int\n"
7050 " guestfs_aug_clear (guestfs_h *g,\n"
7051 "                    const char *augpath);\n"
7052 "\n"
7053 msgstr ""
7054
7055 # type: textblock
7056 #. type: textblock
7057 #: ../src/guestfs-actions.pod:290 ../fish/guestfish-actions.pod:188
7058 msgid ""
7059 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
7060 "L<augtool(1)> C<clear> command."
7061 msgstr ""
7062
7063 # type: textblock
7064 #. type: textblock
7065 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2111
7066 msgid "(Added in 1.3.4)"
7067 msgstr ""
7068
7069 # type: =head2
7070 #. type: =head2
7071 #: ../src/guestfs-actions.pod:297
7072 msgid "guestfs_aug_close"
7073 msgstr ""
7074
7075 # type: verbatim
7076 #. type: verbatim
7077 #: ../src/guestfs-actions.pod:299
7078 #, no-wrap
7079 msgid ""
7080 " int\n"
7081 " guestfs_aug_close (guestfs_h *g);\n"
7082 "\n"
7083 msgstr ""
7084
7085 # type: textblock
7086 #. type: textblock
7087 #: ../src/guestfs-actions.pod:302
7088 msgid ""
7089 "Close the current Augeas handle and free up any resources used by it.  After "
7090 "calling this, you have to call C<guestfs_aug_init> again before you can use "
7091 "any other Augeas functions."
7092 msgstr ""
7093
7094 # type: textblock
7095 #. type: textblock
7096 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
7097 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
7098 #: ../src/guestfs-actions.pod:424 ../src/guestfs-actions.pod:444
7099 #: ../src/guestfs-actions.pod:458 ../src/guestfs-actions.pod:489
7100 #: ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:517
7101 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:549
7102 #: ../src/guestfs-actions.pod:5770
7103 msgid "(Added in 0.7)"
7104 msgstr ""
7105
7106 # type: =head2
7107 #. type: =head2
7108 #: ../src/guestfs-actions.pod:311
7109 msgid "guestfs_aug_defnode"
7110 msgstr ""
7111
7112 # type: verbatim
7113 #. type: verbatim
7114 #: ../src/guestfs-actions.pod:313
7115 #, no-wrap
7116 msgid ""
7117 " struct guestfs_int_bool *\n"
7118 " guestfs_aug_defnode (guestfs_h *g,\n"
7119 "                      const char *name,\n"
7120 "                      const char *expr,\n"
7121 "                      const char *val);\n"
7122 "\n"
7123 msgstr ""
7124
7125 # type: textblock
7126 #. type: textblock
7127 #: ../src/guestfs-actions.pod:319 ../fish/guestfish-actions.pod:204
7128 msgid ""
7129 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
7130 msgstr ""
7131
7132 # type: textblock
7133 #. type: textblock
7134 #: ../src/guestfs-actions.pod:322
7135 msgid ""
7136 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
7137 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
7138 "containing that single node."
7139 msgstr ""
7140
7141 # type: textblock
7142 #. type: textblock
7143 #: ../src/guestfs-actions.pod:326 ../fish/guestfish-actions.pod:211
7144 msgid ""
7145 "On success this returns a pair containing the number of nodes in the "
7146 "nodeset, and a boolean flag if a node was created."
7147 msgstr ""
7148
7149 # type: textblock
7150 #. type: textblock
7151 #: ../src/guestfs-actions.pod:330
7152 msgid ""
7153 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
7154 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
7155 msgstr ""
7156
7157 # type: =head2
7158 #. type: =head2
7159 #: ../src/guestfs-actions.pod:336
7160 msgid "guestfs_aug_defvar"
7161 msgstr ""
7162
7163 # type: verbatim
7164 #. type: verbatim
7165 #: ../src/guestfs-actions.pod:338
7166 #, no-wrap
7167 msgid ""
7168 " int\n"
7169 " guestfs_aug_defvar (guestfs_h *g,\n"
7170 "                     const char *name,\n"
7171 "                     const char *expr);\n"
7172 "\n"
7173 msgstr ""
7174
7175 # type: textblock
7176 #. type: textblock
7177 #: ../src/guestfs-actions.pod:343 ../fish/guestfish-actions.pod:219
7178 msgid ""
7179 "Defines an Augeas variable C<name> whose value is the result of evaluating "
7180 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
7181 msgstr ""
7182
7183 # type: textblock
7184 #. type: textblock
7185 #: ../src/guestfs-actions.pod:347 ../fish/guestfish-actions.pod:223
7186 msgid ""
7187 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
7188 "evaluates to something which is not a nodeset."
7189 msgstr ""
7190
7191 # type: =head2
7192 #. type: =head2
7193 #: ../src/guestfs-actions.pod:354
7194 msgid "guestfs_aug_get"
7195 msgstr ""
7196
7197 # type: verbatim
7198 #. type: verbatim
7199 #: ../src/guestfs-actions.pod:356
7200 #, no-wrap
7201 msgid ""
7202 " char *\n"
7203 " guestfs_aug_get (guestfs_h *g,\n"
7204 "                  const char *augpath);\n"
7205 "\n"
7206 msgstr ""
7207
7208 # type: textblock
7209 #. type: textblock
7210 #: ../src/guestfs-actions.pod:360 ../fish/guestfish-actions.pod:230
7211 msgid ""
7212 "Look up the value associated with C<path>.  If C<path> matches exactly one "
7213 "node, the C<value> is returned."
7214 msgstr ""
7215
7216 # type: textblock
7217 #. type: textblock
7218 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:863
7219 #: ../src/guestfs-actions.pod:881 ../src/guestfs-actions.pod:941
7220 #: ../src/guestfs-actions.pod:957 ../src/guestfs-actions.pod:1060
7221 #: ../src/guestfs-actions.pod:1190 ../src/guestfs-actions.pod:1207
7222 #: ../src/guestfs-actions.pod:1226 ../src/guestfs-actions.pod:1360
7223 #: ../src/guestfs-actions.pod:1548 ../src/guestfs-actions.pod:1660
7224 #: ../src/guestfs-actions.pod:1823 ../src/guestfs-actions.pod:1840
7225 #: ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:1943
7226 #: ../src/guestfs-actions.pod:1964 ../src/guestfs-actions.pod:2134
7227 #: ../src/guestfs-actions.pod:2326 ../src/guestfs-actions.pod:2530
7228 #: ../src/guestfs-actions.pod:2620 ../src/guestfs-actions.pod:2724
7229 #: ../src/guestfs-actions.pod:2743 ../src/guestfs-actions.pod:2957
7230 #: ../src/guestfs-actions.pod:2985 ../src/guestfs-actions.pod:3006
7231 #: ../src/guestfs-actions.pod:3040 ../src/guestfs-actions.pod:3099
7232 #: ../src/guestfs-actions.pod:3119 ../src/guestfs-actions.pod:3139
7233 #: ../src/guestfs-actions.pod:3766 ../src/guestfs-actions.pod:4119
7234 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:4399
7235 #: ../src/guestfs-actions.pod:5305 ../src/guestfs-actions.pod:5498
7236 #: ../src/guestfs-actions.pod:5668 ../src/guestfs-actions.pod:5846
7237 #: ../src/guestfs-actions.pod:5895 ../src/guestfs-actions.pod:6532
7238 #: ../src/guestfs-actions.pod:6548 ../src/guestfs-actions.pod:6565
7239 #: ../src/guestfs-actions.pod:6596 ../src/guestfs-actions.pod:7270
7240 #: ../src/guestfs-actions.pod:7289 ../src/guestfs-actions.pod:7307
7241 #: ../src/guestfs-actions.pod:7481 ../src/guestfs-actions.pod:7761
7242 msgid ""
7243 "This function returns a string, or NULL on error.  I<The caller must free "
7244 "the returned string after use>."
7245 msgstr ""
7246
7247 # type: =head2
7248 #. type: =head2
7249 #: ../src/guestfs-actions.pod:368
7250 msgid "guestfs_aug_init"
7251 msgstr ""
7252
7253 # type: verbatim
7254 #. type: verbatim
7255 #: ../src/guestfs-actions.pod:370
7256 #, no-wrap
7257 msgid ""
7258 " int\n"
7259 " guestfs_aug_init (guestfs_h *g,\n"
7260 "                   const char *root,\n"
7261 "                   int flags);\n"
7262 "\n"
7263 msgstr ""
7264
7265 # type: textblock
7266 #. type: textblock
7267 #: ../src/guestfs-actions.pod:375 ../fish/guestfish-actions.pod:237
7268 msgid ""
7269 "Create a new Augeas handle for editing configuration files.  If there was "
7270 "any previous Augeas handle associated with this guestfs session, then it is "
7271 "closed."
7272 msgstr ""
7273
7274 # type: textblock
7275 #. type: textblock
7276 #: ../src/guestfs-actions.pod:379
7277 msgid "You must call this before using any other C<guestfs_aug_*> commands."
7278 msgstr ""
7279
7280 # type: textblock
7281 #. type: textblock
7282 #: ../src/guestfs-actions.pod:382 ../fish/guestfish-actions.pod:244
7283 msgid ""
7284 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
7285 msgstr ""
7286
7287 # type: textblock
7288 #. type: textblock
7289 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:247
7290 msgid ""
7291 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
7292 "logical I<or> of the following integers:"
7293 msgstr ""
7294
7295 # type: =item
7296 #. type: =item
7297 #: ../src/guestfs-actions.pod:391 ../fish/guestfish-actions.pod:253
7298 msgid "C<AUG_SAVE_BACKUP> = 1"
7299 msgstr ""
7300
7301 # type: textblock
7302 #. type: textblock
7303 #: ../src/guestfs-actions.pod:393 ../fish/guestfish-actions.pod:255
7304 msgid "Keep the original file with a C<.augsave> extension."
7305 msgstr ""
7306
7307 # type: =item
7308 #. type: =item
7309 #: ../src/guestfs-actions.pod:395 ../fish/guestfish-actions.pod:257
7310 msgid "C<AUG_SAVE_NEWFILE> = 2"
7311 msgstr ""
7312
7313 # type: textblock
7314 #. type: textblock
7315 #: ../src/guestfs-actions.pod:397 ../fish/guestfish-actions.pod:259
7316 msgid ""
7317 "Save changes into a file with extension C<.augnew>, and do not overwrite "
7318 "original.  Overrides C<AUG_SAVE_BACKUP>."
7319 msgstr ""
7320
7321 # type: =item
7322 #. type: =item
7323 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:262
7324 msgid "C<AUG_TYPE_CHECK> = 4"
7325 msgstr ""
7326
7327 # type: textblock
7328 #. type: textblock
7329 #: ../src/guestfs-actions.pod:402 ../fish/guestfish-actions.pod:264
7330 msgid "Typecheck lenses (can be expensive)."
7331 msgstr ""
7332
7333 # type: =item
7334 #. type: =item
7335 #: ../src/guestfs-actions.pod:404 ../fish/guestfish-actions.pod:266
7336 msgid "C<AUG_NO_STDINC> = 8"
7337 msgstr ""
7338
7339 # type: textblock
7340 #. type: textblock
7341 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:268
7342 msgid "Do not use standard load path for modules."
7343 msgstr ""
7344
7345 # type: =item
7346 #. type: =item
7347 #: ../src/guestfs-actions.pod:408 ../fish/guestfish-actions.pod:270
7348 msgid "C<AUG_SAVE_NOOP> = 16"
7349 msgstr ""
7350
7351 # type: textblock
7352 #. type: textblock
7353 #: ../src/guestfs-actions.pod:410 ../fish/guestfish-actions.pod:272
7354 msgid "Make save a no-op, just record what would have been changed."
7355 msgstr ""
7356
7357 # type: =item
7358 #. type: =item
7359 #: ../src/guestfs-actions.pod:412 ../fish/guestfish-actions.pod:274
7360 msgid "C<AUG_NO_LOAD> = 32"
7361 msgstr ""
7362
7363 # type: textblock
7364 #. type: textblock
7365 #: ../src/guestfs-actions.pod:414
7366 msgid "Do not load the tree in C<guestfs_aug_init>."
7367 msgstr ""
7368
7369 # type: textblock
7370 #. type: textblock
7371 #: ../src/guestfs-actions.pod:418
7372 msgid "To close the handle, you can call C<guestfs_aug_close>."
7373 msgstr ""
7374
7375 # type: textblock
7376 #. type: textblock
7377 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:282
7378 msgid "To find out more about Augeas, see L<http://augeas.net/>."
7379 msgstr ""
7380
7381 # type: =head2
7382 #. type: =head2
7383 #: ../src/guestfs-actions.pod:426
7384 msgid "guestfs_aug_insert"
7385 msgstr ""
7386
7387 # type: verbatim
7388 #. type: verbatim
7389 #: ../src/guestfs-actions.pod:428
7390 #, no-wrap
7391 msgid ""
7392 " int\n"
7393 " guestfs_aug_insert (guestfs_h *g,\n"
7394 "                     const char *augpath,\n"
7395 "                     const char *label,\n"
7396 "                     int before);\n"
7397 "\n"
7398 msgstr ""
7399
7400 # type: textblock
7401 #. type: textblock
7402 #: ../src/guestfs-actions.pod:434 ../fish/guestfish-actions.pod:288
7403 msgid ""
7404 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
7405 "or after C<path> (depending on the boolean flag C<before>)."
7406 msgstr ""
7407
7408 # type: textblock
7409 #. type: textblock
7410 #: ../src/guestfs-actions.pod:438 ../fish/guestfish-actions.pod:292
7411 msgid ""
7412 "C<path> must match exactly one existing node in the tree, and C<label> must "
7413 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
7414 msgstr ""
7415
7416 # type: =head2
7417 #. type: =head2
7418 #: ../src/guestfs-actions.pod:446
7419 msgid "guestfs_aug_load"
7420 msgstr ""
7421
7422 # type: verbatim
7423 #. type: verbatim
7424 #: ../src/guestfs-actions.pod:448
7425 #, no-wrap
7426 msgid ""
7427 " int\n"
7428 " guestfs_aug_load (guestfs_h *g);\n"
7429 "\n"
7430 msgstr ""
7431
7432 # type: textblock
7433 #. type: textblock
7434 #: ../src/guestfs-actions.pod:451 ../fish/guestfish-actions.pod:300
7435 msgid "Load files into the tree."
7436 msgstr ""
7437
7438 # type: textblock
7439 #. type: textblock
7440 #: ../src/guestfs-actions.pod:453 ../fish/guestfish-actions.pod:302
7441 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
7442 msgstr ""
7443
7444 # type: =head2
7445 #. type: =head2
7446 #: ../src/guestfs-actions.pod:460
7447 msgid "guestfs_aug_ls"
7448 msgstr ""
7449
7450 # type: verbatim
7451 #. type: verbatim
7452 #: ../src/guestfs-actions.pod:462
7453 #, no-wrap
7454 msgid ""
7455 " char **\n"
7456 " guestfs_aug_ls (guestfs_h *g,\n"
7457 "                 const char *augpath);\n"
7458 "\n"
7459 msgstr ""
7460
7461 # type: textblock
7462 #. type: textblock
7463 #: ../src/guestfs-actions.pod:466
7464 msgid ""
7465 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
7466 "sorting the resulting nodes into alphabetical order."
7467 msgstr ""
7468
7469 # type: textblock
7470 #. type: textblock
7471 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:485
7472 #: ../src/guestfs-actions.pod:631 ../src/guestfs-actions.pod:1079
7473 #: ../src/guestfs-actions.pod:1375 ../src/guestfs-actions.pod:1394
7474 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1516
7475 #: ../src/guestfs-actions.pod:1762 ../src/guestfs-actions.pod:2206
7476 #: ../src/guestfs-actions.pod:2222 ../src/guestfs-actions.pod:2241
7477 #: ../src/guestfs-actions.pod:2284 ../src/guestfs-actions.pod:2308
7478 #: ../src/guestfs-actions.pod:2379 ../src/guestfs-actions.pod:2428
7479 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:3059
7480 #: ../src/guestfs-actions.pod:3335 ../src/guestfs-actions.pod:3649
7481 #: ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:3686
7482 #: ../src/guestfs-actions.pod:3748 ../src/guestfs-actions.pod:3853
7483 #: ../src/guestfs-actions.pod:4261 ../src/guestfs-actions.pod:5028
7484 #: ../src/guestfs-actions.pod:5640 ../src/guestfs-actions.pod:5766
7485 #: ../src/guestfs-actions.pod:5880 ../src/guestfs-actions.pod:6612
7486 #: ../src/guestfs-actions.pod:6673 ../src/guestfs-actions.pod:6728
7487 #: ../src/guestfs-actions.pod:6874 ../src/guestfs-actions.pod:6898
7488 #: ../src/guestfs-actions.pod:7374 ../src/guestfs-actions.pod:7394
7489 #: ../src/guestfs-actions.pod:7441 ../src/guestfs-actions.pod:7613
7490 #: ../src/guestfs-actions.pod:7632 ../src/guestfs-actions.pod:7718
7491 #: ../src/guestfs-actions.pod:7737 ../src/guestfs-actions.pod:7783
7492 #: ../src/guestfs-actions.pod:7802
7493 msgid ""
7494 "This function returns a NULL-terminated array of strings (like L<environ(3)"
7495 ">), or NULL if there was an error.  I<The caller must free the strings and "
7496 "the array after use>."
7497 msgstr ""
7498
7499 # type: textblock
7500 #. type: textblock
7501 #: ../src/guestfs-actions.pod:473 ../src/guestfs-actions.pod:1004
7502 #: ../src/guestfs-actions.pod:1022 ../src/guestfs-actions.pod:1432
7503 #: ../src/guestfs-actions.pod:3413 ../src/guestfs-actions.pod:3444
7504 #: ../src/guestfs-actions.pod:4102 ../src/guestfs-actions.pod:4152
7505 #: ../src/guestfs-actions.pod:4339 ../src/guestfs-actions.pod:4372
7506 #: ../src/guestfs-actions.pod:4535 ../src/guestfs-actions.pod:5032
7507 #: ../src/guestfs-actions.pod:5581 ../src/guestfs-actions.pod:5978
7508 #: ../src/guestfs-actions.pod:5992 ../src/guestfs-actions.pod:6004
7509 #: ../src/guestfs-actions.pod:6453 ../src/guestfs-actions.pod:7112
7510 #: ../src/guestfs-actions.pod:7125 ../src/guestfs-actions.pod:7358
7511 #: ../src/guestfs-actions.pod:7601
7512 msgid "(Added in 0.8)"
7513 msgstr ""
7514
7515 # type: =head2
7516 #. type: =head2
7517 #: ../src/guestfs-actions.pod:475
7518 msgid "guestfs_aug_match"
7519 msgstr ""
7520
7521 # type: verbatim
7522 #. type: verbatim
7523 #: ../src/guestfs-actions.pod:477
7524 #, no-wrap
7525 msgid ""
7526 " char **\n"
7527 " guestfs_aug_match (guestfs_h *g,\n"
7528 "                    const char *augpath);\n"
7529 "\n"
7530 msgstr ""
7531
7532 # type: textblock
7533 #. type: textblock
7534 #: ../src/guestfs-actions.pod:481 ../fish/guestfish-actions.pod:316
7535 msgid ""
7536 "Returns a list of paths which match the path expression C<path>.  The "
7537 "returned paths are sufficiently qualified so that they match exactly one "
7538 "node in the current tree."
7539 msgstr ""
7540
7541 # type: =head2
7542 #. type: =head2
7543 #: ../src/guestfs-actions.pod:491
7544 msgid "guestfs_aug_mv"
7545 msgstr ""
7546
7547 # type: verbatim
7548 #. type: verbatim
7549 #: ../src/guestfs-actions.pod:493
7550 #, no-wrap
7551 msgid ""
7552 " int\n"
7553 " guestfs_aug_mv (guestfs_h *g,\n"
7554 "                 const char *src,\n"
7555 "                 const char *dest);\n"
7556 "\n"
7557 msgstr ""
7558
7559 # type: textblock
7560 #. type: textblock
7561 #: ../src/guestfs-actions.pod:498 ../fish/guestfish-actions.pod:324
7562 msgid ""
7563 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
7564 "C<dest> is overwritten if it exists."
7565 msgstr ""
7566
7567 # type: =head2
7568 #. type: =head2
7569 #: ../src/guestfs-actions.pod:505
7570 msgid "guestfs_aug_rm"
7571 msgstr ""
7572
7573 # type: verbatim
7574 #. type: verbatim
7575 #: ../src/guestfs-actions.pod:507
7576 #, no-wrap
7577 msgid ""
7578 " int\n"
7579 " guestfs_aug_rm (guestfs_h *g,\n"
7580 "                 const char *augpath);\n"
7581 "\n"
7582 msgstr ""
7583
7584 # type: textblock
7585 #. type: textblock
7586 #: ../src/guestfs-actions.pod:511 ../fish/guestfish-actions.pod:331
7587 msgid "Remove C<path> and all of its children."
7588 msgstr ""
7589
7590 # type: textblock
7591 #. type: textblock
7592 #: ../src/guestfs-actions.pod:513 ../fish/guestfish-actions.pod:333
7593 msgid "On success this returns the number of entries which were removed."
7594 msgstr ""
7595
7596 # type: =head2
7597 #. type: =head2
7598 #: ../src/guestfs-actions.pod:519
7599 msgid "guestfs_aug_save"
7600 msgstr ""
7601
7602 # type: verbatim
7603 #. type: verbatim
7604 #: ../src/guestfs-actions.pod:521
7605 #, no-wrap
7606 msgid ""
7607 " int\n"
7608 " guestfs_aug_save (guestfs_h *g);\n"
7609 "\n"
7610 msgstr ""
7611
7612 # type: textblock
7613 #. type: textblock
7614 #: ../src/guestfs-actions.pod:524 ../fish/guestfish-actions.pod:339
7615 msgid "This writes all pending changes to disk."
7616 msgstr ""
7617
7618 # type: textblock
7619 #. type: textblock
7620 #: ../src/guestfs-actions.pod:526
7621 msgid ""
7622 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
7623 "are saved."
7624 msgstr ""
7625
7626 # type: =head2
7627 #. type: =head2
7628 #: ../src/guestfs-actions.pod:533
7629 msgid "guestfs_aug_set"
7630 msgstr ""
7631
7632 # type: verbatim
7633 #. type: verbatim
7634 #: ../src/guestfs-actions.pod:535
7635 #, no-wrap
7636 msgid ""
7637 " int\n"
7638 " guestfs_aug_set (guestfs_h *g,\n"
7639 "                  const char *augpath,\n"
7640 "                  const char *val);\n"
7641 "\n"
7642 msgstr ""
7643
7644 # type: textblock
7645 #. type: textblock
7646 #: ../src/guestfs-actions.pod:540 ../fish/guestfish-actions.pod:348
7647 msgid "Set the value associated with C<path> to C<val>."
7648 msgstr ""
7649
7650 # type: textblock
7651 #. type: textblock
7652 #: ../src/guestfs-actions.pod:542
7653 msgid ""
7654 "In the Augeas API, it is possible to clear a node by setting the value to "
7655 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
7656 "this call.  Instead you must use the C<guestfs_aug_clear> call."
7657 msgstr ""
7658
7659 # type: =head2
7660 #. type: =head2
7661 #: ../src/guestfs-actions.pod:551
7662 msgid "guestfs_available"
7663 msgstr ""
7664
7665 # type: verbatim
7666 #. type: verbatim
7667 #: ../src/guestfs-actions.pod:553
7668 #, no-wrap
7669 msgid ""
7670 " int\n"
7671 " guestfs_available (guestfs_h *g,\n"
7672 "                    char *const *groups);\n"
7673 "\n"
7674 msgstr ""
7675
7676 # type: textblock
7677 #. type: textblock
7678 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:359
7679 msgid ""
7680 "This command is used to check the availability of some groups of "
7681 "functionality in the appliance, which not all builds of the libguestfs "
7682 "appliance will be able to provide."
7683 msgstr ""
7684
7685 # type: textblock
7686 #. type: textblock
7687 #: ../src/guestfs-actions.pod:561
7688 msgid ""
7689 "The libguestfs groups, and the functions that those groups correspond to, "
7690 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
7691 "runtime by calling C<guestfs_available_all_groups>."
7692 msgstr ""
7693
7694 # type: textblock
7695 #. type: textblock
7696 #: ../src/guestfs-actions.pod:566 ../fish/guestfish-actions.pod:368
7697 msgid ""
7698 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
7699 "\"]> would check for the availability of the Linux inotify functions and "
7700 "Augeas (configuration file editing) functions."
7701 msgstr ""
7702
7703 # type: textblock
7704 #. type: textblock
7705 #: ../src/guestfs-actions.pod:571 ../fish/guestfish-actions.pod:373
7706 msgid "The command returns no error if I<all> requested groups are available."
7707 msgstr ""
7708
7709 # type: textblock
7710 #. type: textblock
7711 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:375
7712 msgid ""
7713 "It fails with an error if one or more of the requested groups is unavailable "
7714 "in the appliance."
7715 msgstr ""
7716
7717 # type: textblock
7718 #. type: textblock
7719 #: ../src/guestfs-actions.pod:576 ../fish/guestfish-actions.pod:378
7720 msgid ""
7721 "If an unknown group name is included in the list of groups then an error is "
7722 "always returned."
7723 msgstr ""
7724
7725 # type: textblock
7726 #. type: textblock
7727 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:381
7728 msgid "I<Notes:>"
7729 msgstr ""
7730
7731 # type: textblock
7732 #. type: textblock
7733 #: ../src/guestfs-actions.pod:585
7734 msgid "You must call C<guestfs_launch> before calling this function."
7735 msgstr ""
7736
7737 # type: textblock
7738 #. type: textblock
7739 #: ../src/guestfs-actions.pod:587 ../fish/guestfish-actions.pod:389
7740 msgid ""
7741 "The reason is because we don't know what groups are supported by the "
7742 "appliance/daemon until it is running and can be queried."
7743 msgstr ""
7744
7745 # type: textblock
7746 #. type: textblock
7747 #: ../src/guestfs-actions.pod:593 ../fish/guestfish-actions.pod:395
7748 msgid ""
7749 "If a group of functions is available, this does not necessarily mean that "
7750 "they will work.  You still have to check for errors when calling individual "
7751 "API functions even if they are available."
7752 msgstr ""
7753
7754 # type: textblock
7755 #. type: textblock
7756 #: ../src/guestfs-actions.pod:600 ../fish/guestfish-actions.pod:402
7757 msgid ""
7758 "It is usually the job of distro packagers to build complete functionality "
7759 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
7760 "with all requirements satisfied, will support everything."
7761 msgstr ""
7762
7763 # type: textblock
7764 #. type: textblock
7765 #: ../src/guestfs-actions.pod:607
7766 msgid ""
7767 "This call was added in version C<1.0.80>.  In previous versions of "
7768 "libguestfs all you could do would be to speculatively execute a command to "
7769 "find out if the daemon implemented it.  See also C<guestfs_version>."
7770 msgstr ""
7771
7772 # type: textblock
7773 #. type: textblock
7774 #: ../src/guestfs-actions.pod:616 ../src/guestfs-actions.pod:1177
7775 msgid "(Added in 1.0.80)"
7776 msgstr ""
7777
7778 # type: =head2
7779 #. type: =head2
7780 #: ../src/guestfs-actions.pod:618
7781 msgid "guestfs_available_all_groups"
7782 msgstr ""
7783
7784 # type: verbatim
7785 #. type: verbatim
7786 #: ../src/guestfs-actions.pod:620
7787 #, no-wrap
7788 msgid ""
7789 " char **\n"
7790 " guestfs_available_all_groups (guestfs_h *g);\n"
7791 "\n"
7792 msgstr ""
7793
7794 # type: textblock
7795 #. type: textblock
7796 #: ../src/guestfs-actions.pod:623
7797 msgid ""
7798 "This command returns a list of all optional groups that this daemon knows "
7799 "about.  Note this returns both supported and unsupported groups.  To find "
7800 "out which ones the daemon can actually support you have to call "
7801 "C<guestfs_available> on each member of the returned list."
7802 msgstr ""
7803
7804 # type: textblock
7805 #. type: textblock
7806 #: ../src/guestfs-actions.pod:629
7807 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
7808 msgstr ""
7809
7810 # type: textblock
7811 #. type: textblock
7812 #: ../src/guestfs-actions.pod:635
7813 msgid "(Added in 1.3.15)"
7814 msgstr ""
7815
7816 # type: =head2
7817 #. type: =head2
7818 #: ../src/guestfs-actions.pod:637
7819 msgid "guestfs_base64_in"
7820 msgstr ""
7821
7822 # type: verbatim
7823 #. type: verbatim
7824 #: ../src/guestfs-actions.pod:639
7825 #, no-wrap
7826 msgid ""
7827 " int\n"
7828 " guestfs_base64_in (guestfs_h *g,\n"
7829 "                    const char *base64file,\n"
7830 "                    const char *filename);\n"
7831 "\n"
7832 msgstr ""
7833
7834 # type: textblock
7835 #. type: textblock
7836 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:432
7837 msgid ""
7838 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7839 msgstr ""
7840
7841 # type: textblock
7842 #. type: textblock
7843 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:663
7844 msgid "(Added in 1.3.5)"
7845 msgstr ""
7846
7847 # type: =head2
7848 #. type: =head2
7849 #: ../src/guestfs-actions.pod:651
7850 msgid "guestfs_base64_out"
7851 msgstr ""
7852
7853 # type: verbatim
7854 #. type: verbatim
7855 #: ../src/guestfs-actions.pod:653
7856 #, no-wrap
7857 msgid ""
7858 " int\n"
7859 " guestfs_base64_out (guestfs_h *g,\n"
7860 "                     const char *filename,\n"
7861 "                     const char *base64file);\n"
7862 "\n"
7863 msgstr ""
7864
7865 # type: textblock
7866 #. type: textblock
7867 #: ../src/guestfs-actions.pod:658 ../fish/guestfish-actions.pod:441
7868 msgid ""
7869 "This command downloads the contents of C<filename>, writing it out to local "
7870 "file C<base64file> encoded as base64."
7871 msgstr ""
7872
7873 # type: =head2
7874 #. type: =head2
7875 #: ../src/guestfs-actions.pod:665
7876 msgid "guestfs_blockdev_flushbufs"
7877 msgstr ""
7878
7879 # type: verbatim
7880 #. type: verbatim
7881 #: ../src/guestfs-actions.pod:667
7882 #, no-wrap
7883 msgid ""
7884 " int\n"
7885 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
7886 "                             const char *device);\n"
7887 "\n"
7888 msgstr ""
7889
7890 # type: textblock
7891 #. type: textblock
7892 #: ../src/guestfs-actions.pod:671 ../fish/guestfish-actions.pod:450
7893 msgid ""
7894 "This tells the kernel to flush internal buffers associated with C<device>."
7895 msgstr ""
7896
7897 # type: textblock
7898 #. type: textblock
7899 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:691
7900 #: ../src/guestfs-actions.pod:706 ../src/guestfs-actions.pod:722
7901 #: ../src/guestfs-actions.pod:740 ../src/guestfs-actions.pod:759
7902 #: ../src/guestfs-actions.pod:773 ../src/guestfs-actions.pod:791
7903 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:819
7904 #: ../fish/guestfish-actions.pod:453 ../fish/guestfish-actions.pod:464
7905 #: ../fish/guestfish-actions.pod:473 ../fish/guestfish-actions.pod:483
7906 #: ../fish/guestfish-actions.pod:495 ../fish/guestfish-actions.pod:508
7907 #: ../fish/guestfish-actions.pod:516 ../fish/guestfish-actions.pod:527
7908 #: ../fish/guestfish-actions.pod:535 ../fish/guestfish-actions.pod:543
7909 msgid "This uses the L<blockdev(8)> command."
7910 msgstr ""
7911
7912 # type: textblock
7913 #. type: textblock
7914 #: ../src/guestfs-actions.pod:678 ../src/guestfs-actions.pod:695
7915 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:726
7916 #: ../src/guestfs-actions.pod:744 ../src/guestfs-actions.pod:763
7917 #: ../src/guestfs-actions.pod:777 ../src/guestfs-actions.pod:795
7918 #: ../src/guestfs-actions.pod:809 ../src/guestfs-actions.pod:823
7919 msgid "(Added in 0.9.3)"
7920 msgstr ""
7921
7922 # type: =head2
7923 #. type: =head2
7924 #: ../src/guestfs-actions.pod:680
7925 msgid "guestfs_blockdev_getbsz"
7926 msgstr ""
7927
7928 # type: verbatim
7929 #. type: verbatim
7930 #: ../src/guestfs-actions.pod:682
7931 #, no-wrap
7932 msgid ""
7933 " int\n"
7934 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
7935 "                          const char *device);\n"
7936 "\n"
7937 msgstr ""
7938
7939 # type: textblock
7940 #. type: textblock
7941 #: ../src/guestfs-actions.pod:686 ../fish/guestfish-actions.pod:459
7942 msgid "This returns the block size of a device."
7943 msgstr ""
7944
7945 # type: textblock
7946 #. type: textblock
7947 #: ../src/guestfs-actions.pod:688 ../src/guestfs-actions.pod:788
7948 #: ../fish/guestfish-actions.pod:461 ../fish/guestfish-actions.pod:524
7949 msgid ""
7950 "(Note this is different from both I<size in blocks> and I<filesystem block "
7951 "size>)."
7952 msgstr ""
7953
7954 # type: =head2
7955 #. type: =head2
7956 #: ../src/guestfs-actions.pod:697
7957 msgid "guestfs_blockdev_getro"
7958 msgstr ""
7959
7960 # type: verbatim
7961 #. type: verbatim
7962 #: ../src/guestfs-actions.pod:699
7963 #, no-wrap
7964 msgid ""
7965 " int\n"
7966 " guestfs_blockdev_getro (guestfs_h *g,\n"
7967 "                         const char *device);\n"
7968 "\n"
7969 msgstr ""
7970
7971 # type: textblock
7972 #. type: textblock
7973 #: ../src/guestfs-actions.pod:703 ../fish/guestfish-actions.pod:470
7974 msgid ""
7975 "Returns a boolean indicating if the block device is read-only (true if read-"
7976 "only, false if not)."
7977 msgstr ""
7978
7979 # type: textblock
7980 #. type: textblock
7981 #: ../src/guestfs-actions.pod:708 ../src/guestfs-actions.pod:1415
7982 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1919
7983 #: ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:2002
7984 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:2072
7985 #: ../src/guestfs-actions.pod:2097 ../src/guestfs-actions.pod:2120
7986 #: ../src/guestfs-actions.pod:3156 ../src/guestfs-actions.pod:3172
7987 #: ../src/guestfs-actions.pod:3190 ../src/guestfs-actions.pod:3352
7988 #: ../src/guestfs-actions.pod:3366 ../src/guestfs-actions.pod:3381
7989 #: ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:3411
7990 #: ../src/guestfs-actions.pod:3426 ../src/guestfs-actions.pod:3442
7991 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:3469
7992 #: ../src/guestfs-actions.pod:3483 ../src/guestfs-actions.pod:3498
7993 #: ../src/guestfs-actions.pod:3513 ../src/guestfs-actions.pod:3526
7994 #: ../src/guestfs-actions.pod:3540 ../src/guestfs-actions.pod:5269
7995 msgid "This function returns a C truth value on success or -1 on error."
7996 msgstr ""
7997
7998 # type: =head2
7999 #. type: =head2
8000 #: ../src/guestfs-actions.pod:712
8001 msgid "guestfs_blockdev_getsize64"
8002 msgstr ""
8003
8004 # type: verbatim
8005 #. type: verbatim
8006 #: ../src/guestfs-actions.pod:714
8007 #, no-wrap
8008 msgid ""
8009 " int64_t\n"
8010 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
8011 "                             const char *device);\n"
8012 "\n"
8013 msgstr ""
8014
8015 # type: textblock
8016 #. type: textblock
8017 #: ../src/guestfs-actions.pod:718 ../fish/guestfish-actions.pod:479
8018 msgid "This returns the size of the device in bytes."
8019 msgstr ""
8020
8021 # type: textblock
8022 #. type: textblock
8023 #: ../src/guestfs-actions.pod:720
8024 msgid "See also C<guestfs_blockdev_getsz>."
8025 msgstr ""
8026
8027 # type: =head2
8028 #. type: =head2
8029 #: ../src/guestfs-actions.pod:728
8030 msgid "guestfs_blockdev_getss"
8031 msgstr ""
8032
8033 # type: verbatim
8034 #. type: verbatim
8035 #: ../src/guestfs-actions.pod:730
8036 #, no-wrap
8037 msgid ""
8038 " int\n"
8039 " guestfs_blockdev_getss (guestfs_h *g,\n"
8040 "                         const char *device);\n"
8041 "\n"
8042 msgstr ""
8043
8044 # type: textblock
8045 #. type: textblock
8046 #: ../src/guestfs-actions.pod:734 ../fish/guestfish-actions.pod:489
8047 msgid ""
8048 "This returns the size of sectors on a block device.  Usually 512, but can be "
8049 "larger for modern devices."
8050 msgstr ""
8051
8052 # type: textblock
8053 #. type: textblock
8054 #: ../src/guestfs-actions.pod:737
8055 msgid ""
8056 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
8057 "that)."
8058 msgstr ""
8059
8060 # type: =head2
8061 #. type: =head2
8062 #: ../src/guestfs-actions.pod:746
8063 msgid "guestfs_blockdev_getsz"
8064 msgstr ""
8065
8066 # type: verbatim
8067 #. type: verbatim
8068 #: ../src/guestfs-actions.pod:748
8069 #, no-wrap
8070 msgid ""
8071 " int64_t\n"
8072 " guestfs_blockdev_getsz (guestfs_h *g,\n"
8073 "                         const char *device);\n"
8074 "\n"
8075 msgstr ""
8076
8077 # type: textblock
8078 #. type: textblock
8079 #: ../src/guestfs-actions.pod:752 ../fish/guestfish-actions.pod:501
8080 msgid ""
8081 "This returns the size of the device in units of 512-byte sectors (even if "
8082 "the sectorsize isn't 512 bytes ... weird)."
8083 msgstr ""
8084
8085 # type: textblock
8086 #. type: textblock
8087 #: ../src/guestfs-actions.pod:755
8088 msgid ""
8089 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
8090 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
8091 msgstr ""
8092
8093 # type: =head2
8094 #. type: =head2
8095 #: ../src/guestfs-actions.pod:765
8096 msgid "guestfs_blockdev_rereadpt"
8097 msgstr ""
8098
8099 # type: verbatim
8100 #. type: verbatim
8101 #: ../src/guestfs-actions.pod:767
8102 #, no-wrap
8103 msgid ""
8104 " int\n"
8105 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
8106 "                            const char *device);\n"
8107 "\n"
8108 msgstr ""
8109
8110 # type: textblock
8111 #. type: textblock
8112 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:514
8113 msgid "Reread the partition table on C<device>."
8114 msgstr ""
8115
8116 # type: =head2
8117 #. type: =head2
8118 #: ../src/guestfs-actions.pod:779
8119 msgid "guestfs_blockdev_setbsz"
8120 msgstr ""
8121
8122 # type: verbatim
8123 #. type: verbatim
8124 #: ../src/guestfs-actions.pod:781
8125 #, no-wrap
8126 msgid ""
8127 " int\n"
8128 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
8129 "                          const char *device,\n"
8130 "                          int blocksize);\n"
8131 "\n"
8132 msgstr ""
8133
8134 # type: textblock
8135 #. type: textblock
8136 #: ../src/guestfs-actions.pod:786 ../fish/guestfish-actions.pod:522
8137 msgid "This sets the block size of a device."
8138 msgstr ""
8139
8140 # type: =head2
8141 #. type: =head2
8142 #: ../src/guestfs-actions.pod:797
8143 msgid "guestfs_blockdev_setro"
8144 msgstr ""
8145
8146 # type: verbatim
8147 #. type: verbatim
8148 #: ../src/guestfs-actions.pod:799
8149 #, no-wrap
8150 msgid ""
8151 " int\n"
8152 " guestfs_blockdev_setro (guestfs_h *g,\n"
8153 "                         const char *device);\n"
8154 "\n"
8155 msgstr ""
8156
8157 # type: textblock
8158 #. type: textblock
8159 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:533
8160 msgid "Sets the block device named C<device> to read-only."
8161 msgstr ""
8162
8163 # type: =head2
8164 #. type: =head2
8165 #: ../src/guestfs-actions.pod:811
8166 msgid "guestfs_blockdev_setrw"
8167 msgstr ""
8168
8169 # type: verbatim
8170 #. type: verbatim
8171 #: ../src/guestfs-actions.pod:813
8172 #, no-wrap
8173 msgid ""
8174 " int\n"
8175 " guestfs_blockdev_setrw (guestfs_h *g,\n"
8176 "                         const char *device);\n"
8177 "\n"
8178 msgstr ""
8179
8180 # type: textblock
8181 #. type: textblock
8182 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:541
8183 msgid "Sets the block device named C<device> to read-write."
8184 msgstr ""
8185
8186 # type: =head2
8187 #. type: =head2
8188 #: ../src/guestfs-actions.pod:825
8189 msgid "guestfs_case_sensitive_path"
8190 msgstr ""
8191
8192 # type: verbatim
8193 #. type: verbatim
8194 #: ../src/guestfs-actions.pod:827
8195 #, no-wrap
8196 msgid ""
8197 " char *\n"
8198 " guestfs_case_sensitive_path (guestfs_h *g,\n"
8199 "                              const char *path);\n"
8200 "\n"
8201 msgstr ""
8202
8203 # type: textblock
8204 #. type: textblock
8205 #: ../src/guestfs-actions.pod:831 ../fish/guestfish-actions.pod:549
8206 msgid ""
8207 "This can be used to resolve case insensitive paths on a filesystem which is "
8208 "case sensitive.  The use case is to resolve paths which you have read from "
8209 "Windows configuration files or the Windows Registry, to the true path."
8210 msgstr ""
8211
8212 # type: textblock
8213 #. type: textblock
8214 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:554
8215 msgid ""
8216 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
8217 "(and probably others), which is that although the underlying filesystem is "
8218 "case-insensitive, the driver exports the filesystem to Linux as case-"
8219 "sensitive."
8220 msgstr ""
8221
8222 # type: textblock
8223 #. type: textblock
8224 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:559
8225 msgid ""
8226 "One consequence of this is that special directories such as C<c:\\windows> "
8227 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
8228 "precise details of how they were created.  In Windows itself this would not "
8229 "be a problem."
8230 msgstr ""
8231
8232 # type: textblock
8233 #. type: textblock
8234 #: ../src/guestfs-actions.pod:847 ../fish/guestfish-actions.pod:565
8235 msgid ""
8236 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
8237 "#posixfilenames1>"
8238 msgstr ""
8239
8240 # type: textblock
8241 #. type: textblock
8242 #: ../src/guestfs-actions.pod:850 ../fish/guestfish-actions.pod:568
8243 msgid ""
8244 "This function resolves the true case of each element in the path and returns "
8245 "the case-sensitive path."
8246 msgstr ""
8247
8248 # type: textblock
8249 #. type: textblock
8250 #: ../src/guestfs-actions.pod:853
8251 msgid ""
8252 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
8253 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
8254 "how the directories were originally created under Windows)."
8255 msgstr ""
8256
8257 # type: textblock
8258 #. type: textblock
8259 #: ../src/guestfs-actions.pod:858 ../fish/guestfish-actions.pod:576
8260 msgid "I<Note>: This function does not handle drive names, backslashes etc."
8261 msgstr ""
8262
8263 # type: textblock
8264 #. type: textblock
8265 #: ../src/guestfs-actions.pod:861
8266 msgid "See also C<guestfs_realpath>."
8267 msgstr ""
8268
8269 # type: textblock
8270 #. type: textblock
8271 #: ../src/guestfs-actions.pod:866 ../src/guestfs-actions.pod:7292
8272 msgid "(Added in 1.0.75)"
8273 msgstr ""
8274
8275 # type: =head2
8276 #. type: =head2
8277 #: ../src/guestfs-actions.pod:868
8278 msgid "guestfs_cat"
8279 msgstr ""
8280
8281 # type: verbatim
8282 #. type: verbatim
8283 #: ../src/guestfs-actions.pod:870
8284 #, no-wrap
8285 msgid ""
8286 " char *\n"
8287 " guestfs_cat (guestfs_h *g,\n"
8288 "              const char *path);\n"
8289 "\n"
8290 msgstr ""
8291
8292 # type: textblock
8293 #. type: textblock
8294 #: ../src/guestfs-actions.pod:874 ../src/guestfs-actions.pod:5756
8295 #: ../fish/guestfish-actions.pod:585 ../fish/guestfish-actions.pod:3800
8296 msgid "Return the contents of the file named C<path>."
8297 msgstr ""
8298
8299 # type: textblock
8300 #. type: textblock
8301 #: ../src/guestfs-actions.pod:876
8302 msgid ""
8303 "Note that this function cannot correctly handle binary files (specifically, "
8304 "files containing C<\\0> character which is treated as end of string).  For "
8305 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
8306 "functions which have a more complex interface."
8307 msgstr ""
8308
8309 # type: textblock
8310 #. type: textblock
8311 #: ../src/guestfs-actions.pod:884 ../src/guestfs-actions.pod:1063
8312 #: ../src/guestfs-actions.pod:1083 ../src/guestfs-actions.pod:1379
8313 #: ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:1501
8314 #: ../src/guestfs-actions.pod:1520 ../src/guestfs-actions.pod:1766
8315 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:2245
8316 #: ../src/guestfs-actions.pod:2288 ../src/guestfs-actions.pod:2312
8317 #: ../src/guestfs-actions.pod:2329 ../src/guestfs-actions.pod:2358
8318 #: ../src/guestfs-actions.pod:5538 ../src/guestfs-actions.pod:5564
8319 #: ../src/guestfs-actions.pod:5695 ../src/guestfs-actions.pod:5721
8320 #: ../src/guestfs-actions.pod:5745 ../src/guestfs-actions.pod:6677
8321 #: ../src/guestfs-actions.pod:6732 ../src/guestfs-actions.pod:6878
8322 #: ../src/guestfs-actions.pod:6902 ../src/guestfs-actions.pod:7565
8323 #: ../src/guestfs-actions.pod:7591 ../src/guestfs-actions.pod:7617
8324 #: ../src/guestfs-actions.pod:7636 ../src/guestfs-actions.pod:7722
8325 #: ../src/guestfs-actions.pod:7741 ../src/guestfs-actions.pod:7787
8326 #: ../src/guestfs-actions.pod:7806 ../fish/guestfish-actions.pod:592
8327 #: ../fish/guestfish-actions.pod:727 ../fish/guestfish-actions.pod:739
8328 #: ../fish/guestfish-actions.pod:915 ../fish/guestfish-actions.pod:925
8329 #: ../fish/guestfish-actions.pod:992 ../fish/guestfish-actions.pod:1002
8330 #: ../fish/guestfish-actions.pod:1194 ../fish/guestfish-actions.pod:1495
8331 #: ../fish/guestfish-actions.pod:1505 ../fish/guestfish-actions.pod:1533
8332 #: ../fish/guestfish-actions.pod:1548 ../fish/guestfish-actions.pod:1558
8333 #: ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:3670
8334 #: ../fish/guestfish-actions.pod:3685 ../fish/guestfish-actions.pod:3761
8335 #: ../fish/guestfish-actions.pod:3778 ../fish/guestfish-actions.pod:3793
8336 #: ../fish/guestfish-actions.pod:4447 ../fish/guestfish-actions.pod:4493
8337 #: ../fish/guestfish-actions.pod:4578 ../fish/guestfish-actions.pod:4593
8338 #: ../fish/guestfish-actions.pod:4997 ../fish/guestfish-actions.pod:5015
8339 #: ../fish/guestfish-actions.pod:5032 ../fish/guestfish-actions.pod:5042
8340 #: ../fish/guestfish-actions.pod:5091 ../fish/guestfish-actions.pod:5101
8341 #: ../fish/guestfish-actions.pod:5130 ../fish/guestfish-actions.pod:5140
8342 msgid ""
8343 "Because of the message protocol, there is a transfer limit of somewhere "
8344 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
8345 msgstr ""
8346
8347 # type: textblock
8348 #. type: textblock
8349 #: ../src/guestfs-actions.pod:887 ../src/guestfs-actions.pod:3670
8350 #: ../src/guestfs-actions.pod:3752 ../src/guestfs-actions.pod:3769
8351 #: ../src/guestfs-actions.pod:3857 ../src/guestfs-actions.pod:4265
8352 #: ../src/guestfs-actions.pod:4279 ../src/guestfs-actions.pod:5644
8353 #: ../src/guestfs-actions.pod:5658 ../src/guestfs-actions.pod:7445
8354 #: ../src/guestfs-actions.pod:7459
8355 msgid "(Added in 0.4)"
8356 msgstr ""
8357
8358 # type: =head2
8359 #. type: =head2
8360 #: ../src/guestfs-actions.pod:889
8361 msgid "guestfs_checksum"
8362 msgstr ""
8363
8364 # type: verbatim
8365 #. type: verbatim
8366 #: ../src/guestfs-actions.pod:891
8367 #, no-wrap
8368 msgid ""
8369 " char *\n"
8370 " guestfs_checksum (guestfs_h *g,\n"
8371 "                   const char *csumtype,\n"
8372 "                   const char *path);\n"
8373 "\n"
8374 msgstr ""
8375
8376 # type: textblock
8377 #. type: textblock
8378 #: ../src/guestfs-actions.pod:896 ../fish/guestfish-actions.pod:599
8379 msgid ""
8380 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
8381 msgstr ""
8382
8383 # type: textblock
8384 #. type: textblock
8385 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:602
8386 msgid ""
8387 "The type of checksum to compute is given by the C<csumtype> parameter which "
8388 "must have one of the following values:"
8389 msgstr ""
8390
8391 # type: =item
8392 #. type: =item
8393 #: ../src/guestfs-actions.pod:904 ../fish/guestfish-actions.pod:607
8394 msgid "C<crc>"
8395 msgstr ""
8396
8397 # type: textblock
8398 #. type: textblock
8399 #: ../src/guestfs-actions.pod:906 ../fish/guestfish-actions.pod:609
8400 msgid ""
8401 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
8402 "C<cksum> command."
8403 msgstr ""
8404
8405 # type: =item
8406 #. type: =item
8407 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:612
8408 msgid "C<md5>"
8409 msgstr ""
8410
8411 # type: textblock
8412 #. type: textblock
8413 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:614
8414 msgid "Compute the MD5 hash (using the C<md5sum> program)."
8415 msgstr ""
8416
8417 # type: =item
8418 #. type: =item
8419 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:616
8420 msgid "C<sha1>"
8421 msgstr ""
8422
8423 # type: textblock
8424 #. type: textblock
8425 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:618
8426 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
8427 msgstr ""
8428
8429 # type: =item
8430 #. type: =item
8431 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:620
8432 msgid "C<sha224>"
8433 msgstr ""
8434
8435 # type: textblock
8436 #. type: textblock
8437 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:622
8438 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
8439 msgstr ""
8440
8441 # type: =item
8442 #. type: =item
8443 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:624
8444 msgid "C<sha256>"
8445 msgstr ""
8446
8447 # type: textblock
8448 #. type: textblock
8449 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:626
8450 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
8451 msgstr ""
8452
8453 # type: =item
8454 #. type: =item
8455 #: ../src/guestfs-actions.pod:925 ../fish/guestfish-actions.pod:628
8456 msgid "C<sha384>"
8457 msgstr ""
8458
8459 # type: textblock
8460 #. type: textblock
8461 #: ../src/guestfs-actions.pod:927 ../fish/guestfish-actions.pod:630
8462 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
8463 msgstr ""
8464
8465 # type: =item
8466 #. type: =item
8467 #: ../src/guestfs-actions.pod:929 ../fish/guestfish-actions.pod:632
8468 msgid "C<sha512>"
8469 msgstr ""
8470
8471 # type: textblock
8472 #. type: textblock
8473 #: ../src/guestfs-actions.pod:931 ../fish/guestfish-actions.pod:634
8474 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
8475 msgstr ""
8476
8477 # type: textblock
8478 #. type: textblock
8479 #: ../src/guestfs-actions.pod:935 ../fish/guestfish-actions.pod:638
8480 msgid "The checksum is returned as a printable string."
8481 msgstr ""
8482
8483 # type: textblock
8484 #. type: textblock
8485 #: ../src/guestfs-actions.pod:937
8486 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
8487 msgstr ""
8488
8489 # type: textblock
8490 #. type: textblock
8491 #: ../src/guestfs-actions.pod:939
8492 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
8493 msgstr ""
8494
8495 # type: textblock
8496 #. type: textblock
8497 #: ../src/guestfs-actions.pod:944 ../src/guestfs-actions.pod:1252
8498 #: ../src/guestfs-actions.pod:2088 ../src/guestfs-actions.pod:3368
8499 #: ../src/guestfs-actions.pod:3397 ../src/guestfs-actions.pod:3458
8500 #: ../src/guestfs-actions.pod:3485 ../src/guestfs-actions.pod:7148
8501 msgid "(Added in 1.0.2)"
8502 msgstr ""
8503
8504 # type: =head2
8505 #. type: =head2
8506 #: ../src/guestfs-actions.pod:946
8507 msgid "guestfs_checksum_device"
8508 msgstr ""
8509
8510 # type: verbatim
8511 #. type: verbatim
8512 #: ../src/guestfs-actions.pod:948
8513 #, no-wrap
8514 msgid ""
8515 " char *\n"
8516 " guestfs_checksum_device (guestfs_h *g,\n"
8517 "                          const char *csumtype,\n"
8518 "                          const char *device);\n"
8519 "\n"
8520 msgstr ""
8521
8522 # type: textblock
8523 #. type: textblock
8524 #: ../src/guestfs-actions.pod:953
8525 msgid ""
8526 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
8527 "device named C<device>.  For the types of checksums supported see the "
8528 "C<guestfs_checksum> command."
8529 msgstr ""
8530
8531 # type: textblock
8532 #. type: textblock
8533 #: ../src/guestfs-actions.pod:960 ../src/guestfs-actions.pod:5099
8534 #: ../src/guestfs-actions.pod:5234 ../src/guestfs-actions.pod:5271
8535 #: ../src/guestfs-actions.pod:5289 ../src/guestfs-actions.pod:5465
8536 #: ../src/guestfs-actions.pod:7057 ../src/guestfs-actions.pod:7071
8537 #: ../src/guestfs-actions.pod:7471
8538 msgid "(Added in 1.3.2)"
8539 msgstr ""
8540
8541 # type: =head2
8542 #. type: =head2
8543 #: ../src/guestfs-actions.pod:962
8544 msgid "guestfs_checksums_out"
8545 msgstr ""
8546
8547 # type: verbatim
8548 #. type: verbatim
8549 #: ../src/guestfs-actions.pod:964
8550 #, no-wrap
8551 msgid ""
8552 " int\n"
8553 " guestfs_checksums_out (guestfs_h *g,\n"
8554 "                        const char *csumtype,\n"
8555 "                        const char *directory,\n"
8556 "                        const char *sumsfile);\n"
8557 "\n"
8558 msgstr ""
8559
8560 # type: textblock
8561 #. type: textblock
8562 #: ../src/guestfs-actions.pod:970 ../fish/guestfish-actions.pod:656
8563 msgid ""
8564 "This command computes the checksums of all regular files in C<directory> and "
8565 "then emits a list of those checksums to the local output file C<sumsfile>."
8566 msgstr ""
8567
8568 # type: textblock
8569 #. type: textblock
8570 #: ../src/guestfs-actions.pod:974 ../fish/guestfish-actions.pod:660
8571 msgid ""
8572 "This can be used for verifying the integrity of a virtual machine.  However "
8573 "to be properly secure you should pay attention to the output of the checksum "
8574 "command (it uses the ones from GNU coreutils).  In particular when the "
8575 "filename is not printable, coreutils uses a special backslash syntax.  For "
8576 "more information, see the GNU coreutils info file."
8577 msgstr ""
8578
8579 # type: textblock
8580 #. type: textblock
8581 #: ../src/guestfs-actions.pod:984
8582 msgid "(Added in 1.3.7)"
8583 msgstr ""
8584
8585 # type: =head2
8586 #. type: =head2
8587 #: ../src/guestfs-actions.pod:986
8588 msgid "guestfs_chmod"
8589 msgstr ""
8590
8591 # type: verbatim
8592 #. type: verbatim
8593 #: ../src/guestfs-actions.pod:988
8594 #, no-wrap
8595 msgid ""
8596 " int\n"
8597 " guestfs_chmod (guestfs_h *g,\n"
8598 "                int mode,\n"
8599 "                const char *path);\n"
8600 "\n"
8601 msgstr ""
8602
8603 # type: textblock
8604 #. type: textblock
8605 #: ../src/guestfs-actions.pod:993 ../fish/guestfish-actions.pod:674
8606 msgid ""
8607 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
8608 "supported."
8609 msgstr ""
8610
8611 # type: textblock
8612 #. type: textblock
8613 #: ../src/guestfs-actions.pod:996 ../fish/guestfish-actions.pod:677
8614 msgid ""
8615 "I<Note>: When using this command from guestfish, C<mode> by default would be "
8616 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
8617 "C<700>."
8618 msgstr ""
8619
8620 # type: textblock
8621 #. type: textblock
8622 #: ../src/guestfs-actions.pod:1000 ../src/guestfs-actions.pod:4516
8623 #: ../src/guestfs-actions.pod:4725 ../src/guestfs-actions.pod:4744
8624 #: ../src/guestfs-actions.pod:4763 ../fish/guestfish-actions.pod:681
8625 #: ../fish/guestfish-actions.pod:3029 ../fish/guestfish-actions.pod:3168
8626 #: ../fish/guestfish-actions.pod:3178 ../fish/guestfish-actions.pod:3188
8627 msgid "The mode actually set is affected by the umask."
8628 msgstr ""
8629
8630 # type: =head2
8631 #. type: =head2
8632 #: ../src/guestfs-actions.pod:1006
8633 msgid "guestfs_chown"
8634 msgstr ""
8635
8636 # type: verbatim
8637 #. type: verbatim
8638 #: ../src/guestfs-actions.pod:1008
8639 #, no-wrap
8640 msgid ""
8641 " int\n"
8642 " guestfs_chown (guestfs_h *g,\n"
8643 "                int owner,\n"
8644 "                int group,\n"
8645 "                const char *path);\n"
8646 "\n"
8647 msgstr ""
8648
8649 # type: textblock
8650 #. type: textblock
8651 #: ../src/guestfs-actions.pod:1014 ../fish/guestfish-actions.pod:687
8652 msgid "Change the file owner to C<owner> and group to C<group>."
8653 msgstr ""
8654
8655 # type: textblock
8656 #. type: textblock
8657 #: ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:3587
8658 #: ../fish/guestfish-actions.pod:689 ../fish/guestfish-actions.pod:2464
8659 msgid ""
8660 "Only numeric uid and gid are supported.  If you want to use names, you will "
8661 "need to locate and parse the password file yourself (Augeas support makes "
8662 "this relatively easy)."
8663 msgstr ""
8664
8665 # type: =head2
8666 #. type: =head2
8667 #: ../src/guestfs-actions.pod:1024
8668 msgid "guestfs_command"
8669 msgstr ""
8670
8671 # type: verbatim
8672 #. type: verbatim
8673 #: ../src/guestfs-actions.pod:1026
8674 #, no-wrap
8675 msgid ""
8676 " char *\n"
8677 " guestfs_command (guestfs_h *g,\n"
8678 "                  char *const *arguments);\n"
8679 "\n"
8680 msgstr ""
8681
8682 # type: textblock
8683 #. type: textblock
8684 #: ../src/guestfs-actions.pod:1030 ../fish/guestfish-actions.pod:697
8685 msgid ""
8686 "This call runs a command from the guest filesystem.  The filesystem must be "
8687 "mounted, and must contain a compatible operating system (ie. something "
8688 "Linux, with the same or compatible processor architecture)."
8689 msgstr ""
8690
8691 # type: textblock
8692 #. type: textblock
8693 #: ../src/guestfs-actions.pod:1035
8694 msgid ""
8695 "The single parameter is an argv-style list of arguments.  The first element "
8696 "is the name of the program to run.  Subsequent elements are parameters.  The "
8697 "list must be non-empty (ie. must contain a program name).  Note that the "
8698 "command runs directly, and is I<not> invoked via the shell (see "
8699 "C<guestfs_sh>)."
8700 msgstr ""
8701
8702 # type: textblock
8703 #. type: textblock
8704 #: ../src/guestfs-actions.pod:1042 ../fish/guestfish-actions.pod:709
8705 msgid "The return value is anything printed to I<stdout> by the command."
8706 msgstr ""
8707
8708 # type: textblock
8709 #. type: textblock
8710 #: ../src/guestfs-actions.pod:1045 ../fish/guestfish-actions.pod:712
8711 msgid ""
8712 "If the command returns a non-zero exit status, then this function returns an "
8713 "error message.  The error message string is the content of I<stderr> from "
8714 "the command."
8715 msgstr ""
8716
8717 # type: textblock
8718 #. type: textblock
8719 #: ../src/guestfs-actions.pod:1049 ../fish/guestfish-actions.pod:716
8720 msgid ""
8721 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
8722 "bin>.  If you require a program from another location, you should provide "
8723 "the full path in the first parameter."
8724 msgstr ""
8725
8726 # type: textblock
8727 #. type: textblock
8728 #: ../src/guestfs-actions.pod:1054 ../fish/guestfish-actions.pod:721
8729 msgid ""
8730 "Shared libraries and data files required by the program must be available on "
8731 "filesystems which are mounted in the correct places.  It is the caller's "
8732 "responsibility to ensure all filesystems that are needed are mounted at the "
8733 "right locations."
8734 msgstr ""
8735
8736 # type: textblock
8737 #. type: textblock
8738 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1086
8739 #: ../src/guestfs-actions.pod:1551
8740 msgid "(Added in 0.9.1)"
8741 msgstr ""
8742
8743 # type: =head2
8744 #. type: =head2
8745 #: ../src/guestfs-actions.pod:1068
8746 msgid "guestfs_command_lines"
8747 msgstr ""
8748
8749 # type: verbatim
8750 #. type: verbatim
8751 #: ../src/guestfs-actions.pod:1070
8752 #, no-wrap
8753 msgid ""
8754 " char **\n"
8755 " guestfs_command_lines (guestfs_h *g,\n"
8756 "                        char *const *arguments);\n"
8757 "\n"
8758 msgstr ""
8759
8760 # type: textblock
8761 #. type: textblock
8762 #: ../src/guestfs-actions.pod:1074
8763 msgid ""
8764 "This is the same as C<guestfs_command>, but splits the result into a list of "
8765 "lines."
8766 msgstr ""
8767
8768 # type: textblock
8769 #. type: textblock
8770 #: ../src/guestfs-actions.pod:1077
8771 msgid "See also: C<guestfs_sh_lines>"
8772 msgstr ""
8773
8774 # type: =head2
8775 #. type: =head2
8776 #: ../src/guestfs-actions.pod:1088
8777 msgid "guestfs_config"
8778 msgstr ""
8779
8780 # type: verbatim
8781 #. type: verbatim
8782 #: ../src/guestfs-actions.pod:1090
8783 #, no-wrap
8784 msgid ""
8785 " int\n"
8786 " guestfs_config (guestfs_h *g,\n"
8787 "                 const char *qemuparam,\n"
8788 "                 const char *qemuvalue);\n"
8789 "\n"
8790 msgstr ""
8791
8792 #. type: textblock
8793 #: ../src/guestfs-actions.pod:1095 ../fish/guestfish-actions.pod:746
8794 msgid ""
8795 "This can be used to add arbitrary qemu command line parameters of the form "
8796 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8797 "setting some parameters which would interfere with parameters that we use."
8798 msgstr ""
8799
8800 # type: textblock
8801 #. type: textblock
8802 #: ../src/guestfs-actions.pod:1100 ../fish/guestfish-actions.pod:751
8803 msgid "The first character of C<param> string must be a C<-> (dash)."
8804 msgstr ""
8805
8806 # type: textblock
8807 #. type: textblock
8808 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:753
8809 msgid "C<value> can be NULL."
8810 msgstr ""
8811
8812 # type: =head2
8813 #. type: =head2
8814 #: ../src/guestfs-actions.pod:1108
8815 msgid "guestfs_copy_size"
8816 msgstr ""
8817
8818 # type: verbatim
8819 #. type: verbatim
8820 #: ../src/guestfs-actions.pod:1110
8821 #, no-wrap
8822 msgid ""
8823 " int\n"
8824 " guestfs_copy_size (guestfs_h *g,\n"
8825 "                    const char *src,\n"
8826 "                    const char *dest,\n"
8827 "                    int64_t size);\n"
8828 "\n"
8829 msgstr ""
8830
8831 # type: textblock
8832 #. type: textblock
8833 #: ../src/guestfs-actions.pod:1116 ../fish/guestfish-actions.pod:759
8834 msgid ""
8835 "This command copies exactly C<size> bytes from one source device or file "
8836 "C<src> to another destination device or file C<dest>."
8837 msgstr ""
8838
8839 # type: textblock
8840 #. type: textblock
8841 #: ../src/guestfs-actions.pod:1119 ../fish/guestfish-actions.pod:762
8842 msgid ""
8843 "Note this will fail if the source is too short or if the destination is not "
8844 "large enough."
8845 msgstr ""
8846
8847 #. type: textblock
8848 #: ../src/guestfs-actions.pod:1124 ../src/guestfs-actions.pod:1247
8849 #: ../src/guestfs-actions.pod:1278 ../src/guestfs-actions.pod:1323
8850 #: ../src/guestfs-actions.pod:1700 ../src/guestfs-actions.pod:1722
8851 #: ../src/guestfs-actions.pod:3568 ../src/guestfs-actions.pod:7143
8852 #: ../src/guestfs-actions.pod:7177 ../src/guestfs-actions.pod:7658
8853 #: ../src/guestfs-actions.pod:7677
8854 msgid ""
8855 "This long-running command can generate progress notification messages so "
8856 "that the caller can display a progress bar or indicator.  To receive these "
8857 "messages, the caller must register a progress event callback.  See L<guestfs"
8858 "(3)/GUESTFS_EVENT_PROGRESS>."
8859 msgstr ""
8860
8861 # type: textblock
8862 #. type: textblock
8863 #: ../src/guestfs-actions.pod:1129 ../src/guestfs-actions.pod:4292
8864 #: ../src/guestfs-actions.pod:5671 ../src/guestfs-actions.pod:7378
8865 #: ../src/guestfs-actions.pod:7398 ../src/guestfs-actions.pod:7484
8866 msgid "(Added in 1.0.87)"
8867 msgstr ""
8868
8869 # type: =head2
8870 #. type: =head2
8871 #: ../src/guestfs-actions.pod:1131
8872 msgid "guestfs_cp"
8873 msgstr ""
8874
8875 # type: verbatim
8876 #. type: verbatim
8877 #: ../src/guestfs-actions.pod:1133
8878 #, no-wrap
8879 msgid ""
8880 " int\n"
8881 " guestfs_cp (guestfs_h *g,\n"
8882 "             const char *src,\n"
8883 "             const char *dest);\n"
8884 "\n"
8885 msgstr ""
8886
8887 # type: textblock
8888 #. type: textblock
8889 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:769
8890 msgid ""
8891 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8892 "destination filename or destination directory."
8893 msgstr ""
8894
8895 # type: textblock
8896 #. type: textblock
8897 #: ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1157
8898 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1303
8899 #: ../src/guestfs-actions.pod:1417 ../src/guestfs-actions.pod:5046
8900 #: ../src/guestfs-actions.pod:5515
8901 msgid "(Added in 1.0.18)"
8902 msgstr ""
8903
8904 # type: =head2
8905 #. type: =head2
8906 #: ../src/guestfs-actions.pod:1145
8907 msgid "guestfs_cp_a"
8908 msgstr ""
8909
8910 # type: verbatim
8911 #. type: verbatim
8912 #: ../src/guestfs-actions.pod:1147
8913 #, no-wrap
8914 msgid ""
8915 " int\n"
8916 " guestfs_cp_a (guestfs_h *g,\n"
8917 "               const char *src,\n"
8918 "               const char *dest);\n"
8919 "\n"
8920 msgstr ""
8921
8922 # type: textblock
8923 #. type: textblock
8924 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:776
8925 msgid ""
8926 "This copies a file or directory from C<src> to C<dest> recursively using the "
8927 "C<cp -a> command."
8928 msgstr ""
8929
8930 # type: =head2
8931 #. type: =head2
8932 #: ../src/guestfs-actions.pod:1159
8933 msgid "guestfs_dd"
8934 msgstr ""
8935
8936 # type: verbatim
8937 #. type: verbatim
8938 #: ../src/guestfs-actions.pod:1161
8939 #, no-wrap
8940 msgid ""
8941 " int\n"
8942 " guestfs_dd (guestfs_h *g,\n"
8943 "             const char *src,\n"
8944 "             const char *dest);\n"
8945 "\n"
8946 msgstr ""
8947
8948 # type: textblock
8949 #. type: textblock
8950 #: ../src/guestfs-actions.pod:1166 ../fish/guestfish-actions.pod:783
8951 msgid ""
8952 "This command copies from one source device or file C<src> to another "
8953 "destination device or file C<dest>.  Normally you would use this to copy to "
8954 "or from a device or partition, for example to duplicate a filesystem."
8955 msgstr ""
8956
8957 # type: textblock
8958 #. type: textblock
8959 #: ../src/guestfs-actions.pod:1171
8960 msgid ""
8961 "If the destination is a device, it must be as large or larger than the "
8962 "source file or device, otherwise the copy will fail.  This command cannot do "
8963 "partial copies (see C<guestfs_copy_size>)."
8964 msgstr ""
8965
8966 # type: =head2
8967 #. type: =head2
8968 #: ../src/guestfs-actions.pod:1179
8969 msgid "guestfs_df"
8970 msgstr ""
8971
8972 # type: verbatim
8973 #. type: verbatim
8974 #: ../src/guestfs-actions.pod:1181
8975 #, no-wrap
8976 msgid ""
8977 " char *\n"
8978 " guestfs_df (guestfs_h *g);\n"
8979 "\n"
8980 msgstr ""
8981
8982 # type: textblock
8983 #. type: textblock
8984 #: ../src/guestfs-actions.pod:1184 ../fish/guestfish-actions.pod:796
8985 msgid "This command runs the C<df> command to report disk space used."
8986 msgstr ""
8987
8988 # type: textblock
8989 #. type: textblock
8990 #: ../src/guestfs-actions.pod:1186 ../src/guestfs-actions.pod:1203
8991 msgid ""
8992 "This command is mostly useful for interactive sessions.  It is I<not> "
8993 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
8994 "from programs."
8995 msgstr ""
8996
8997 # type: textblock
8998 #. type: textblock
8999 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:1210
9000 #: ../src/guestfs-actions.pod:1328 ../src/guestfs-actions.pod:2291
9001 #: ../src/guestfs-actions.pod:2315 ../src/guestfs-actions.pod:2383
9002 #: ../src/guestfs-actions.pod:4402 ../src/guestfs-actions.pod:4946
9003 #: ../src/guestfs-actions.pod:6881 ../src/guestfs-actions.pod:6905
9004 #: ../src/guestfs-actions.pod:7524 ../src/guestfs-actions.pod:7537
9005 #: ../src/guestfs-actions.pod:7550
9006 msgid "(Added in 1.0.54)"
9007 msgstr ""
9008
9009 # type: =head2
9010 #. type: =head2
9011 #: ../src/guestfs-actions.pod:1195
9012 msgid "guestfs_df_h"
9013 msgstr ""
9014
9015 # type: verbatim
9016 #. type: verbatim
9017 #: ../src/guestfs-actions.pod:1197
9018 #, no-wrap
9019 msgid ""
9020 " char *\n"
9021 " guestfs_df_h (guestfs_h *g);\n"
9022 "\n"
9023 msgstr ""
9024
9025 # type: textblock
9026 #. type: textblock
9027 #: ../src/guestfs-actions.pod:1200 ../fish/guestfish-actions.pod:806
9028 msgid ""
9029 "This command runs the C<df -h> command to report disk space used in human-"
9030 "readable format."
9031 msgstr ""
9032
9033 # type: =head2
9034 #. type: =head2
9035 #: ../src/guestfs-actions.pod:1212
9036 msgid "guestfs_dmesg"
9037 msgstr ""
9038
9039 # type: verbatim
9040 #. type: verbatim
9041 #: ../src/guestfs-actions.pod:1214
9042 #, no-wrap
9043 msgid ""
9044 " char *\n"
9045 " guestfs_dmesg (guestfs_h *g);\n"
9046 "\n"
9047 msgstr ""
9048
9049 # type: textblock
9050 #. type: textblock
9051 #: ../src/guestfs-actions.pod:1217 ../fish/guestfish-actions.pod:817
9052 msgid ""
9053 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
9054 "This is sometimes useful for extended debugging of problems."
9055 msgstr ""
9056
9057 # type: textblock
9058 #. type: textblock
9059 #: ../src/guestfs-actions.pod:1221
9060 msgid ""
9061 "Another way to get the same information is to enable verbose messages with "
9062 "C<guestfs_set_verbose> or by setting the environment variable "
9063 "C<LIBGUESTFS_DEBUG=1> before running the program."
9064 msgstr ""
9065
9066 # type: =head2
9067 #. type: =head2
9068 #: ../src/guestfs-actions.pod:1231
9069 msgid "guestfs_download"
9070 msgstr ""
9071
9072 # type: verbatim
9073 #. type: verbatim
9074 #: ../src/guestfs-actions.pod:1233
9075 #, no-wrap
9076 msgid ""
9077 " int\n"
9078 " guestfs_download (guestfs_h *g,\n"
9079 "                   const char *remotefilename,\n"
9080 "                   const char *filename);\n"
9081 "\n"
9082 msgstr ""
9083
9084 # type: textblock
9085 #. type: textblock
9086 #: ../src/guestfs-actions.pod:1238 ../src/guestfs-actions.pod:1263
9087 #: ../fish/guestfish-actions.pod:830 ../fish/guestfish-actions.pod:843
9088 msgid ""
9089 "Download file C<remotefilename> and save it as C<filename> on the local "
9090 "machine."
9091 msgstr ""
9092
9093 # type: textblock
9094 #. type: textblock
9095 #: ../src/guestfs-actions.pod:1241 ../src/guestfs-actions.pod:7137
9096 #: ../fish/guestfish-actions.pod:833 ../fish/guestfish-actions.pod:4751
9097 msgid "C<filename> can also be a named pipe."
9098 msgstr ""
9099
9100 # type: textblock
9101 #. type: textblock
9102 #: ../src/guestfs-actions.pod:1243
9103 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
9104 msgstr ""
9105
9106 # type: =head2
9107 #. type: =head2
9108 #: ../src/guestfs-actions.pod:1254
9109 msgid "guestfs_download_offset"
9110 msgstr ""
9111
9112 # type: verbatim
9113 #. type: verbatim
9114 #: ../src/guestfs-actions.pod:1256
9115 #, no-wrap
9116 msgid ""
9117 " int\n"
9118 " guestfs_download_offset (guestfs_h *g,\n"
9119 "                          const char *remotefilename,\n"
9120 "                          const char *filename,\n"
9121 "                          int64_t offset,\n"
9122 "                          int64_t size);\n"
9123 "\n"
9124 msgstr ""
9125
9126 # type: textblock
9127 #. type: textblock
9128 #: ../src/guestfs-actions.pod:1266 ../fish/guestfish-actions.pod:846
9129 msgid ""
9130 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
9131 "region must be within the file or device)."
9132 msgstr ""
9133
9134 # type: textblock
9135 #. type: textblock
9136 #: ../src/guestfs-actions.pod:1269
9137 msgid ""
9138 "Note that there is no limit on the amount of data that can be downloaded "
9139 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
9140 "full amount unless an error occurs."
9141 msgstr ""
9142
9143 # type: textblock
9144 #. type: textblock
9145 #: ../src/guestfs-actions.pod:1274
9146 msgid "See also C<guestfs_download>, C<guestfs_pread>."
9147 msgstr ""
9148
9149 # type: textblock
9150 #. type: textblock
9151 #: ../src/guestfs-actions.pod:1283 ../src/guestfs-actions.pod:7182
9152 msgid "(Added in 1.5.17)"
9153 msgstr ""
9154
9155 # type: =head2
9156 #. type: =head2
9157 #: ../src/guestfs-actions.pod:1285
9158 msgid "guestfs_drop_caches"
9159 msgstr ""
9160
9161 # type: verbatim
9162 #. type: verbatim
9163 #: ../src/guestfs-actions.pod:1287
9164 #, no-wrap
9165 msgid ""
9166 " int\n"
9167 " guestfs_drop_caches (guestfs_h *g,\n"
9168 "                      int whattodrop);\n"
9169 "\n"
9170 msgstr ""
9171
9172 # type: textblock
9173 #. type: textblock
9174 #: ../src/guestfs-actions.pod:1291 ../fish/guestfish-actions.pod:862
9175 msgid ""
9176 "This instructs the guest kernel to drop its page cache, and/or dentries and "
9177 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
9178 "to drop, see L<http://linux-mm.org/Drop_Caches>"
9179 msgstr ""
9180
9181 # type: textblock
9182 #. type: textblock
9183 #: ../src/guestfs-actions.pod:1296 ../fish/guestfish-actions.pod:867
9184 msgid "Setting C<whattodrop> to 3 should drop everything."
9185 msgstr ""
9186
9187 # type: textblock
9188 #. type: textblock
9189 #: ../src/guestfs-actions.pod:1298 ../fish/guestfish-actions.pod:869
9190 msgid ""
9191 "This automatically calls L<sync(2)> before the operation, so that the "
9192 "maximum guest memory is freed."
9193 msgstr ""
9194
9195 # type: =head2
9196 #. type: =head2
9197 #: ../src/guestfs-actions.pod:1305
9198 msgid "guestfs_du"
9199 msgstr ""
9200
9201 # type: verbatim
9202 #. type: verbatim
9203 #: ../src/guestfs-actions.pod:1307
9204 #, no-wrap
9205 msgid ""
9206 " int64_t\n"
9207 " guestfs_du (guestfs_h *g,\n"
9208 "             const char *path);\n"
9209 "\n"
9210 msgstr ""
9211
9212 # type: textblock
9213 #. type: textblock
9214 #: ../src/guestfs-actions.pod:1311 ../fish/guestfish-actions.pod:876
9215 msgid ""
9216 "This command runs the C<du -s> command to estimate file space usage for "
9217 "C<path>."
9218 msgstr ""
9219
9220 # type: textblock
9221 #. type: textblock
9222 #: ../src/guestfs-actions.pod:1314 ../fish/guestfish-actions.pod:879
9223 msgid ""
9224 "C<path> can be a file or a directory.  If C<path> is a directory then the "
9225 "estimate includes the contents of the directory and all subdirectories "
9226 "(recursively)."
9227 msgstr ""
9228
9229 # type: textblock
9230 #. type: textblock
9231 #: ../src/guestfs-actions.pod:1318 ../fish/guestfish-actions.pod:883
9232 msgid ""
9233 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
9234 msgstr ""
9235
9236 # type: =head2
9237 #. type: =head2
9238 #: ../src/guestfs-actions.pod:1330
9239 msgid "guestfs_e2fsck_f"
9240 msgstr ""
9241
9242 # type: verbatim
9243 #. type: verbatim
9244 #: ../src/guestfs-actions.pod:1332
9245 #, no-wrap
9246 msgid ""
9247 " int\n"
9248 " guestfs_e2fsck_f (guestfs_h *g,\n"
9249 "                   const char *device);\n"
9250 "\n"
9251 msgstr ""
9252
9253 #. type: textblock
9254 #: ../src/guestfs-actions.pod:1336 ../fish/guestfish-actions.pod:890
9255 msgid ""
9256 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
9257 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
9258 "clean (I<-f>)."
9259 msgstr ""
9260
9261 # type: textblock
9262 #. type: textblock
9263 #: ../src/guestfs-actions.pod:1340
9264 msgid ""
9265 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
9266 "Normally you should use C<guestfs_fsck>."
9267 msgstr ""
9268
9269 # type: textblock
9270 #. type: textblock
9271 #: ../src/guestfs-actions.pod:1345
9272 msgid "(Added in 1.0.29)"
9273 msgstr ""
9274
9275 # type: =head2
9276 #. type: =head2
9277 #: ../src/guestfs-actions.pod:1347
9278 msgid "guestfs_echo_daemon"
9279 msgstr ""
9280
9281 # type: verbatim
9282 #. type: verbatim
9283 #: ../src/guestfs-actions.pod:1349
9284 #, no-wrap
9285 msgid ""
9286 " char *\n"
9287 " guestfs_echo_daemon (guestfs_h *g,\n"
9288 "                      char *const *words);\n"
9289 "\n"
9290 msgstr ""
9291
9292 # type: textblock
9293 #. type: textblock
9294 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:901
9295 msgid ""
9296 "This command concatenates the list of C<words> passed with single spaces "
9297 "between them and returns the resulting string."
9298 msgstr ""
9299
9300 # type: textblock
9301 #. type: textblock
9302 #: ../src/guestfs-actions.pod:1356 ../fish/guestfish-actions.pod:904
9303 msgid "You can use this command to test the connection through to the daemon."
9304 msgstr ""
9305
9306 # type: textblock
9307 #. type: textblock
9308 #: ../src/guestfs-actions.pod:1358
9309 msgid "See also C<guestfs_ping_daemon>."
9310 msgstr ""
9311
9312 # type: textblock
9313 #. type: textblock
9314 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:2099
9315 #: ../src/guestfs-actions.pod:6353
9316 msgid "(Added in 1.0.69)"
9317 msgstr ""
9318
9319 # type: =head2
9320 #. type: =head2
9321 #: ../src/guestfs-actions.pod:1365
9322 msgid "guestfs_egrep"
9323 msgstr ""
9324
9325 # type: verbatim
9326 #. type: verbatim
9327 #: ../src/guestfs-actions.pod:1367
9328 #, no-wrap
9329 msgid ""
9330 " char **\n"
9331 " guestfs_egrep (guestfs_h *g,\n"
9332 "                const char *regex,\n"
9333 "                const char *path);\n"
9334 "\n"
9335 msgstr ""
9336
9337 # type: textblock
9338 #. type: textblock
9339 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:912
9340 msgid ""
9341 "This calls the external C<egrep> program and returns the matching lines."
9342 msgstr ""
9343
9344 # type: textblock
9345 #. type: textblock
9346 #: ../src/guestfs-actions.pod:1382 ../src/guestfs-actions.pod:1401
9347 #: ../src/guestfs-actions.pod:1458 ../src/guestfs-actions.pod:1504
9348 #: ../src/guestfs-actions.pod:1523 ../src/guestfs-actions.pod:2229
9349 #: ../src/guestfs-actions.pod:2248 ../src/guestfs-actions.pod:2404
9350 #: ../src/guestfs-actions.pod:2417 ../src/guestfs-actions.pod:2432
9351 #: ../src/guestfs-actions.pod:2478 ../src/guestfs-actions.pod:2500
9352 #: ../src/guestfs-actions.pod:2513 ../src/guestfs-actions.pod:3782
9353 #: ../src/guestfs-actions.pod:3796 ../src/guestfs-actions.pod:3809
9354 #: ../src/guestfs-actions.pod:3823 ../src/guestfs-actions.pod:4824
9355 #: ../src/guestfs-actions.pod:5849 ../src/guestfs-actions.pod:5898
9356 #: ../src/guestfs-actions.pod:6749 ../src/guestfs-actions.pod:6761
9357 #: ../src/guestfs-actions.pod:6774 ../src/guestfs-actions.pod:6787
9358 #: ../src/guestfs-actions.pod:6809 ../src/guestfs-actions.pod:6822
9359 #: ../src/guestfs-actions.pod:6835 ../src/guestfs-actions.pod:6848
9360 #: ../src/guestfs-actions.pod:7620 ../src/guestfs-actions.pod:7639
9361 #: ../src/guestfs-actions.pod:7725 ../src/guestfs-actions.pod:7744
9362 #: ../src/guestfs-actions.pod:7790 ../src/guestfs-actions.pod:7809
9363 msgid "(Added in 1.0.66)"
9364 msgstr ""
9365
9366 # type: =head2
9367 #. type: =head2
9368 #: ../src/guestfs-actions.pod:1384
9369 msgid "guestfs_egrepi"
9370 msgstr ""
9371
9372 # type: verbatim
9373 #. type: verbatim
9374 #: ../src/guestfs-actions.pod:1386
9375 #, no-wrap
9376 msgid ""
9377 " char **\n"
9378 " guestfs_egrepi (guestfs_h *g,\n"
9379 "                 const char *regex,\n"
9380 "                 const char *path);\n"
9381 "\n"
9382 msgstr ""
9383
9384 # type: textblock
9385 #. type: textblock
9386 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:922
9387 msgid ""
9388 "This calls the external C<egrep -i> program and returns the matching lines."
9389 msgstr ""
9390
9391 # type: =head2
9392 #. type: =head2
9393 #: ../src/guestfs-actions.pod:1403
9394 msgid "guestfs_equal"
9395 msgstr ""
9396
9397 # type: verbatim
9398 #. type: verbatim
9399 #: ../src/guestfs-actions.pod:1405
9400 #, no-wrap
9401 msgid ""
9402 " int\n"
9403 " guestfs_equal (guestfs_h *g,\n"
9404 "                const char *file1,\n"
9405 "                const char *file2);\n"
9406 "\n"
9407 msgstr ""
9408
9409 # type: textblock
9410 #. type: textblock
9411 #: ../src/guestfs-actions.pod:1410 ../fish/guestfish-actions.pod:932
9412 msgid ""
9413 "This compares the two files C<file1> and C<file2> and returns true if their "
9414 "content is exactly equal, or false otherwise."
9415 msgstr ""
9416
9417 # type: textblock
9418 #. type: textblock
9419 #: ../src/guestfs-actions.pod:1413 ../fish/guestfish-actions.pod:935
9420 msgid "The external L<cmp(1)> program is used for the comparison."
9421 msgstr ""
9422
9423 # type: =head2
9424 #. type: =head2
9425 #: ../src/guestfs-actions.pod:1419
9426 msgid "guestfs_exists"
9427 msgstr ""
9428
9429 # type: verbatim
9430 #. type: verbatim
9431 #: ../src/guestfs-actions.pod:1421
9432 #, no-wrap
9433 msgid ""
9434 " int\n"
9435 " guestfs_exists (guestfs_h *g,\n"
9436 "                 const char *path);\n"
9437 "\n"
9438 msgstr ""
9439
9440 # type: textblock
9441 #. type: textblock
9442 #: ../src/guestfs-actions.pod:1425 ../fish/guestfish-actions.pod:941
9443 msgid ""
9444 "This returns C<true> if and only if there is a file, directory (or anything) "
9445 "with the given C<path> name."
9446 msgstr ""
9447
9448 # type: textblock
9449 #. type: textblock
9450 #: ../src/guestfs-actions.pod:1428
9451 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
9452 msgstr ""
9453
9454 # type: =head2
9455 #. type: =head2
9456 #: ../src/guestfs-actions.pod:1434
9457 msgid "guestfs_fallocate"
9458 msgstr ""
9459
9460 # type: verbatim
9461 #. type: verbatim
9462 #: ../src/guestfs-actions.pod:1436
9463 #, no-wrap
9464 msgid ""
9465 " int\n"
9466 " guestfs_fallocate (guestfs_h *g,\n"
9467 "                    const char *path,\n"
9468 "                    int len);\n"
9469 "\n"
9470 msgstr ""
9471
9472 # type: textblock
9473 #. type: textblock
9474 #: ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1467
9475 #: ../fish/guestfish-actions.pod:950 ../fish/guestfish-actions.pod:969
9476 msgid ""
9477 "This command preallocates a file (containing zero bytes) named C<path> of "
9478 "size C<len> bytes.  If the file exists already, it is overwritten."
9479 msgstr ""
9480
9481 # type: textblock
9482 #. type: textblock
9483 #: ../src/guestfs-actions.pod:1445 ../fish/guestfish-actions.pod:954
9484 msgid ""
9485 "Do not confuse this with the guestfish-specific C<alloc> command which "
9486 "allocates a file in the host and attaches it as a device."
9487 msgstr ""
9488
9489 # type: textblock
9490 #. type: textblock
9491 #: ../src/guestfs-actions.pod:1451 ../fish/guestfish-actions.pod:958
9492 msgid ""
9493 "This function is deprecated.  In new code, use the C<fallocate64> call "
9494 "instead."
9495 msgstr ""
9496
9497 # type: =head2
9498 #. type: =head2
9499 #: ../src/guestfs-actions.pod:1460
9500 msgid "guestfs_fallocate64"
9501 msgstr ""
9502
9503 # type: verbatim
9504 #. type: verbatim
9505 #: ../src/guestfs-actions.pod:1462
9506 #, no-wrap
9507 msgid ""
9508 " int\n"
9509 " guestfs_fallocate64 (guestfs_h *g,\n"
9510 "                      const char *path,\n"
9511 "                      int64_t len);\n"
9512 "\n"
9513 msgstr ""
9514
9515 # type: textblock
9516 #. type: textblock
9517 #: ../src/guestfs-actions.pod:1471
9518 msgid ""
9519 "Note that this call allocates disk blocks for the file.  To create a sparse "
9520 "file use C<guestfs_truncate_size> instead."
9521 msgstr ""
9522
9523 # type: textblock
9524 #. type: textblock
9525 #: ../src/guestfs-actions.pod:1474
9526 msgid ""
9527 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
9528 "oversight it only allowed 30 bit lengths to be specified, effectively "
9529 "limiting the maximum size of files created through that call to 1GB."
9530 msgstr ""
9531
9532 # type: textblock
9533 #. type: textblock
9534 #: ../src/guestfs-actions.pod:1479 ../fish/guestfish-actions.pod:981
9535 msgid ""
9536 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
9537 "commands which create a file in the host and attach it as a device."
9538 msgstr ""
9539
9540 # type: textblock
9541 #. type: textblock
9542 #: ../src/guestfs-actions.pod:1485
9543 msgid "(Added in 1.3.17)"
9544 msgstr ""
9545
9546 # type: =head2
9547 #. type: =head2
9548 #: ../src/guestfs-actions.pod:1487
9549 msgid "guestfs_fgrep"
9550 msgstr ""
9551
9552 # type: verbatim
9553 #. type: verbatim
9554 #: ../src/guestfs-actions.pod:1489
9555 #, no-wrap
9556 msgid ""
9557 " char **\n"
9558 " guestfs_fgrep (guestfs_h *g,\n"
9559 "                const char *pattern,\n"
9560 "                const char *path);\n"
9561 "\n"
9562 msgstr ""
9563
9564 # type: textblock
9565 #. type: textblock
9566 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:989
9567 msgid ""
9568 "This calls the external C<fgrep> program and returns the matching lines."
9569 msgstr ""
9570
9571 # type: =head2
9572 #. type: =head2
9573 #: ../src/guestfs-actions.pod:1506
9574 msgid "guestfs_fgrepi"
9575 msgstr ""
9576
9577 # type: verbatim
9578 #. type: verbatim
9579 #: ../src/guestfs-actions.pod:1508
9580 #, no-wrap
9581 msgid ""
9582 " char **\n"
9583 " guestfs_fgrepi (guestfs_h *g,\n"
9584 "                 const char *pattern,\n"
9585 "                 const char *path);\n"
9586 "\n"
9587 msgstr ""
9588
9589 # type: textblock
9590 #. type: textblock
9591 #: ../src/guestfs-actions.pod:1513 ../fish/guestfish-actions.pod:999
9592 msgid ""
9593 "This calls the external C<fgrep -i> program and returns the matching lines."
9594 msgstr ""
9595
9596 # type: =head2
9597 #. type: =head2
9598 #: ../src/guestfs-actions.pod:1525
9599 msgid "guestfs_file"
9600 msgstr ""
9601
9602 # type: verbatim
9603 #. type: verbatim
9604 #: ../src/guestfs-actions.pod:1527
9605 #, no-wrap
9606 msgid ""
9607 " char *\n"
9608 " guestfs_file (guestfs_h *g,\n"
9609 "               const char *path);\n"
9610 "\n"
9611 msgstr ""
9612
9613 # type: textblock
9614 #. type: textblock
9615 #: ../src/guestfs-actions.pod:1531 ../fish/guestfish-actions.pod:1009
9616 msgid ""
9617 "This call uses the standard L<file(1)> command to determine the type or "
9618 "contents of the file."
9619 msgstr ""
9620
9621 # type: textblock
9622 #. type: textblock
9623 #: ../src/guestfs-actions.pod:1534 ../fish/guestfish-actions.pod:1012
9624 msgid ""
9625 "This call will also transparently look inside various types of compressed "
9626 "file."
9627 msgstr ""
9628
9629 #. type: textblock
9630 #: ../src/guestfs-actions.pod:1537 ../fish/guestfish-actions.pod:1015
9631 msgid ""
9632 "The exact command which runs is C<file -zb path>.  Note in particular that "
9633 "the filename is not prepended to the output (the I<-b> option)."
9634 msgstr ""
9635
9636 #. type: textblock
9637 #: ../src/guestfs-actions.pod:1541 ../fish/guestfish-actions.pod:1019
9638 msgid ""
9639 "The output depends on the output of the underlying L<file(1)> command and it "
9640 "can change in future in ways beyond our control.  In other words, the output "
9641 "is not guaranteed by the ABI."
9642 msgstr ""
9643
9644 #. type: textblock
9645 #: ../src/guestfs-actions.pod:1545
9646 msgid ""
9647 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
9648 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
9649 msgstr ""
9650
9651 # type: =head2
9652 #. type: =head2
9653 #: ../src/guestfs-actions.pod:1553
9654 msgid "guestfs_file_architecture"
9655 msgstr ""
9656
9657 # type: verbatim
9658 #. type: verbatim
9659 #: ../src/guestfs-actions.pod:1555
9660 #, no-wrap
9661 msgid ""
9662 " char *\n"
9663 " guestfs_file_architecture (guestfs_h *g,\n"
9664 "                            const char *filename);\n"
9665 "\n"
9666 msgstr ""
9667
9668 # type: textblock
9669 #. type: textblock
9670 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1030
9671 msgid ""
9672 "This detects the architecture of the binary C<filename>, and returns it if "
9673 "known."
9674 msgstr ""
9675
9676 # type: textblock
9677 #. type: textblock
9678 #: ../src/guestfs-actions.pod:1562 ../fish/guestfish-actions.pod:1033
9679 msgid "Currently defined architectures are:"
9680 msgstr ""
9681
9682 # type: =item
9683 #. type: =item
9684 #: ../src/guestfs-actions.pod:1566 ../fish/guestfish-actions.pod:1037
9685 msgid "\"i386\""
9686 msgstr ""
9687
9688 # type: textblock
9689 #. type: textblock
9690 #: ../src/guestfs-actions.pod:1568 ../fish/guestfish-actions.pod:1039
9691 msgid ""
9692 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
9693 "irrespective of the precise processor requirements of the binary."
9694 msgstr ""
9695
9696 # type: =item
9697 #. type: =item
9698 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1042
9699 msgid "\"x86_64\""
9700 msgstr ""
9701
9702 # type: textblock
9703 #. type: textblock
9704 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1044
9705 msgid "64 bit x86-64."
9706 msgstr ""
9707
9708 # type: =item
9709 #. type: =item
9710 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1046
9711 msgid "\"sparc\""
9712 msgstr ""
9713
9714 # type: textblock
9715 #. type: textblock
9716 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1048
9717 msgid "32 bit SPARC."
9718 msgstr ""
9719
9720 # type: =item
9721 #. type: =item
9722 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1050
9723 msgid "\"sparc64\""
9724 msgstr ""
9725
9726 # type: textblock
9727 #. type: textblock
9728 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1052
9729 msgid "64 bit SPARC V9 and above."
9730 msgstr ""
9731
9732 # type: =item
9733 #. type: =item
9734 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1054
9735 msgid "\"ia64\""
9736 msgstr ""
9737
9738 # type: textblock
9739 #. type: textblock
9740 #: ../src/guestfs-actions.pod:1585 ../fish/guestfish-actions.pod:1056
9741 msgid "Intel Itanium."
9742 msgstr ""
9743
9744 # type: =item
9745 #. type: =item
9746 #: ../src/guestfs-actions.pod:1587 ../fish/guestfish-actions.pod:1058
9747 msgid "\"ppc\""
9748 msgstr ""
9749
9750 # type: textblock
9751 #. type: textblock
9752 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1060
9753 msgid "32 bit Power PC."
9754 msgstr ""
9755
9756 # type: =item
9757 #. type: =item
9758 #: ../src/guestfs-actions.pod:1591 ../fish/guestfish-actions.pod:1062
9759 msgid "\"ppc64\""
9760 msgstr ""
9761
9762 # type: textblock
9763 #. type: textblock
9764 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1064
9765 msgid "64 bit Power PC."
9766 msgstr ""
9767
9768 # type: textblock
9769 #. type: textblock
9770 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1068
9771 msgid "Libguestfs may return other architecture strings in future."
9772 msgstr ""
9773
9774 # type: textblock
9775 #. type: textblock
9776 #: ../src/guestfs-actions.pod:1599 ../fish/guestfish-actions.pod:1070
9777 msgid "The function works on at least the following types of files:"
9778 msgstr ""
9779
9780 # type: textblock
9781 #. type: textblock
9782 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1076
9783 msgid "many types of Un*x and Linux binary"
9784 msgstr ""
9785
9786 # type: textblock
9787 #. type: textblock
9788 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1080
9789 msgid "many types of Un*x and Linux shared library"
9790 msgstr ""
9791
9792 # type: textblock
9793 #. type: textblock
9794 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1084
9795 msgid "Windows Win32 and Win64 binaries"
9796 msgstr ""
9797
9798 # type: textblock
9799 #. type: textblock
9800 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1088
9801 msgid "Windows Win32 and Win64 DLLs"
9802 msgstr ""
9803
9804 # type: textblock
9805 #. type: textblock
9806 #: ../src/guestfs-actions.pod:1619 ../fish/guestfish-actions.pod:1090
9807 msgid "Win32 binaries and DLLs return C<i386>."
9808 msgstr ""
9809
9810 # type: textblock
9811 #. type: textblock
9812 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1092
9813 msgid "Win64 binaries and DLLs return C<x86_64>."
9814 msgstr ""
9815
9816 # type: textblock
9817 #. type: textblock
9818 #: ../src/guestfs-actions.pod:1625 ../fish/guestfish-actions.pod:1096
9819 msgid "Linux kernel modules"
9820 msgstr ""
9821
9822 # type: textblock
9823 #. type: textblock
9824 #: ../src/guestfs-actions.pod:1629 ../fish/guestfish-actions.pod:1100
9825 msgid "Linux new-style initrd images"
9826 msgstr ""
9827
9828 # type: textblock
9829 #. type: textblock
9830 #: ../src/guestfs-actions.pod:1633 ../fish/guestfish-actions.pod:1104
9831 msgid "some non-x86 Linux vmlinuz kernels"
9832 msgstr ""
9833
9834 # type: textblock
9835 #. type: textblock
9836 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1108
9837 msgid "What it can't do currently:"
9838 msgstr ""
9839
9840 # type: textblock
9841 #. type: textblock
9842 #: ../src/guestfs-actions.pod:1643 ../fish/guestfish-actions.pod:1114
9843 msgid "static libraries (libfoo.a)"
9844 msgstr ""
9845
9846 # type: textblock
9847 #. type: textblock
9848 #: ../src/guestfs-actions.pod:1647 ../fish/guestfish-actions.pod:1118
9849 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9850 msgstr ""
9851
9852 # type: textblock
9853 #. type: textblock
9854 #: ../src/guestfs-actions.pod:1651 ../fish/guestfish-actions.pod:1122
9855 msgid "x86 Linux vmlinuz kernels"
9856 msgstr ""
9857
9858 # type: textblock
9859 #. type: textblock
9860 #: ../src/guestfs-actions.pod:1653 ../fish/guestfish-actions.pod:1124
9861 msgid ""
9862 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
9863 "compressed code, and are horribly hard to unpack.  If you want to find the "
9864 "architecture of a kernel, use the architecture of the associated initrd or "
9865 "kernel module(s) instead."
9866 msgstr ""
9867
9868 # type: textblock
9869 #. type: textblock
9870 #: ../src/guestfs-actions.pod:1663 ../src/guestfs-actions.pod:1826
9871 #: ../src/guestfs-actions.pod:1843 ../src/guestfs-actions.pod:2533
9872 #: ../src/guestfs-actions.pod:2623 ../src/guestfs-actions.pod:2689
9873 #: ../src/guestfs-actions.pod:2876 ../src/guestfs-actions.pod:2894
9874 #: ../src/guestfs-actions.pod:2934 ../src/guestfs-actions.pod:3009
9875 #: ../src/guestfs-actions.pod:3102 ../src/guestfs-actions.pod:3339
9876 #: ../src/guestfs-actions.pod:3471
9877 msgid "(Added in 1.5.3)"
9878 msgstr ""
9879
9880 # type: =head2
9881 #. type: =head2
9882 #: ../src/guestfs-actions.pod:1665
9883 msgid "guestfs_filesize"
9884 msgstr ""
9885
9886 # type: verbatim
9887 #. type: verbatim
9888 #: ../src/guestfs-actions.pod:1667
9889 #, no-wrap
9890 msgid ""
9891 " int64_t\n"
9892 " guestfs_filesize (guestfs_h *g,\n"
9893 "                   const char *file);\n"
9894 "\n"
9895 msgstr ""
9896
9897 # type: textblock
9898 #. type: textblock
9899 #: ../src/guestfs-actions.pod:1671 ../fish/guestfish-actions.pod:1135
9900 msgid "This command returns the size of C<file> in bytes."
9901 msgstr ""
9902
9903 # type: textblock
9904 #. type: textblock
9905 #: ../src/guestfs-actions.pod:1673
9906 msgid ""
9907 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
9908 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
9909 "devices, use C<guestfs_blockdev_getsize64>."
9910 msgstr ""
9911
9912 # type: textblock
9913 #. type: textblock
9914 #: ../src/guestfs-actions.pod:1679
9915 msgid "(Added in 1.0.82)"
9916 msgstr ""
9917
9918 # type: =head2
9919 #. type: =head2
9920 #: ../src/guestfs-actions.pod:1681
9921 msgid "guestfs_fill"
9922 msgstr ""
9923
9924 # type: verbatim
9925 #. type: verbatim
9926 #: ../src/guestfs-actions.pod:1683
9927 #, no-wrap
9928 msgid ""
9929 " int\n"
9930 " guestfs_fill (guestfs_h *g,\n"
9931 "               int c,\n"
9932 "               int len,\n"
9933 "               const char *path);\n"
9934 "\n"
9935 msgstr ""
9936
9937 # type: textblock
9938 #. type: textblock
9939 #: ../src/guestfs-actions.pod:1689 ../fish/guestfish-actions.pod:1145
9940 msgid ""
9941 "This command creates a new file called C<path>.  The initial content of the "
9942 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9943 "[0..255]>."
9944 msgstr ""
9945
9946 # type: textblock
9947 #. type: textblock
9948 #: ../src/guestfs-actions.pod:1693
9949 msgid ""
9950 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9951 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
9952 "bytes use C<guestfs_fill_pattern>."
9953 msgstr ""
9954
9955 # type: textblock
9956 #. type: textblock
9957 #: ../src/guestfs-actions.pod:1705
9958 msgid "(Added in 1.0.79)"
9959 msgstr ""
9960
9961 # type: =head2
9962 #. type: =head2
9963 #: ../src/guestfs-actions.pod:1707
9964 msgid "guestfs_fill_pattern"
9965 msgstr ""
9966
9967 # type: verbatim
9968 #. type: verbatim
9969 #: ../src/guestfs-actions.pod:1709
9970 #, no-wrap
9971 msgid ""
9972 " int\n"
9973 " guestfs_fill_pattern (guestfs_h *g,\n"
9974 "                       const char *pattern,\n"
9975 "                       int len,\n"
9976 "                       const char *path);\n"
9977 "\n"
9978 msgstr ""
9979
9980 # type: textblock
9981 #. type: textblock
9982 #: ../src/guestfs-actions.pod:1715
9983 msgid ""
9984 "This function is like C<guestfs_fill> except that it creates a new file of "
9985 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
9986 "pattern is truncated if necessary to ensure the length of the file is "
9987 "exactly C<len> bytes."
9988 msgstr ""
9989
9990 # type: textblock
9991 #. type: textblock
9992 #: ../src/guestfs-actions.pod:1727
9993 msgid "(Added in 1.3.12)"
9994 msgstr ""
9995
9996 # type: =head2
9997 #. type: =head2
9998 #: ../src/guestfs-actions.pod:1729
9999 msgid "guestfs_find"
10000 msgstr ""
10001
10002 # type: verbatim
10003 #. type: verbatim
10004 #: ../src/guestfs-actions.pod:1731
10005 #, no-wrap
10006 msgid ""
10007 " char **\n"
10008 " guestfs_find (guestfs_h *g,\n"
10009 "               const char *directory);\n"
10010 "\n"
10011 msgstr ""
10012
10013 # type: textblock
10014 #. type: textblock
10015 #: ../src/guestfs-actions.pod:1735 ../fish/guestfish-actions.pod:1167
10016 msgid ""
10017 "This command lists out all files and directories, recursively, starting at "
10018 "C<directory>.  It is essentially equivalent to running the shell command "
10019 "C<find directory -print> but some post-processing happens on the output, "
10020 "described below."
10021 msgstr ""
10022
10023 # type: textblock
10024 #. type: textblock
10025 #: ../src/guestfs-actions.pod:1740 ../fish/guestfish-actions.pod:1172
10026 msgid ""
10027 "This returns a list of strings I<without any prefix>.  Thus if the directory "
10028 "structure was:"
10029 msgstr ""
10030
10031 # type: verbatim
10032 #. type: verbatim
10033 #: ../src/guestfs-actions.pod:1743 ../fish/guestfish-actions.pod:1175
10034 #, no-wrap
10035 msgid ""
10036 " /tmp/a\n"
10037 " /tmp/b\n"
10038 " /tmp/c/d\n"
10039 "\n"
10040 msgstr ""
10041
10042 # type: textblock
10043 #. type: textblock
10044 #: ../src/guestfs-actions.pod:1747
10045 msgid ""
10046 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
10047 msgstr ""
10048
10049 # type: verbatim
10050 #. type: verbatim
10051 #: ../src/guestfs-actions.pod:1750 ../fish/guestfish-actions.pod:1182
10052 #, no-wrap
10053 msgid ""
10054 " a\n"
10055 " b\n"
10056 " c\n"
10057 " c/d\n"
10058 "\n"
10059 msgstr ""
10060
10061 # type: textblock
10062 #. type: textblock
10063 #: ../src/guestfs-actions.pod:1755 ../fish/guestfish-actions.pod:1187
10064 msgid "If C<directory> is not a directory, then this command returns an error."
10065 msgstr ""
10066
10067 # type: textblock
10068 #. type: textblock
10069 #: ../src/guestfs-actions.pod:1758 ../fish/guestfish-actions.pod:1190
10070 msgid "The returned list is sorted."
10071 msgstr ""
10072
10073 # type: textblock
10074 #. type: textblock
10075 #: ../src/guestfs-actions.pod:1760
10076 msgid "See also C<guestfs_find0>."
10077 msgstr ""
10078
10079 # type: textblock
10080 #. type: textblock
10081 #: ../src/guestfs-actions.pod:1769 ../src/guestfs-actions.pod:4229
10082 #: ../src/guestfs-actions.pod:5933
10083 msgid "(Added in 1.0.27)"
10084 msgstr ""
10085
10086 # type: =head2
10087 #. type: =head2
10088 #: ../src/guestfs-actions.pod:1771
10089 msgid "guestfs_find0"
10090 msgstr ""
10091
10092 # type: verbatim
10093 #. type: verbatim
10094 #: ../src/guestfs-actions.pod:1773
10095 #, no-wrap
10096 msgid ""
10097 " int\n"
10098 " guestfs_find0 (guestfs_h *g,\n"
10099 "                const char *directory,\n"
10100 "                const char *files);\n"
10101 "\n"
10102 msgstr ""
10103
10104 # type: textblock
10105 #. type: textblock
10106 #: ../src/guestfs-actions.pod:1778 ../fish/guestfish-actions.pod:1201
10107 msgid ""
10108 "This command lists out all files and directories, recursively, starting at "
10109 "C<directory>, placing the resulting list in the external file called "
10110 "C<files>."
10111 msgstr ""
10112
10113 # type: textblock
10114 #. type: textblock
10115 #: ../src/guestfs-actions.pod:1782
10116 msgid ""
10117 "This command works the same way as C<guestfs_find> with the following "
10118 "exceptions:"
10119 msgstr ""
10120
10121 # type: textblock
10122 #. type: textblock
10123 #: ../src/guestfs-actions.pod:1789 ../fish/guestfish-actions.pod:1212
10124 msgid "The resulting list is written to an external file."
10125 msgstr ""
10126
10127 # type: textblock
10128 #. type: textblock
10129 #: ../src/guestfs-actions.pod:1793 ../fish/guestfish-actions.pod:1216
10130 msgid ""
10131 "Items (filenames) in the result are separated by C<\\0> characters.  See "
10132 "L<find(1)> option I<-print0>."
10133 msgstr ""
10134
10135 # type: textblock
10136 #. type: textblock
10137 #: ../src/guestfs-actions.pod:1798 ../fish/guestfish-actions.pod:1221
10138 msgid "This command is not limited in the number of names that it can return."
10139 msgstr ""
10140
10141 # type: textblock
10142 #. type: textblock
10143 #: ../src/guestfs-actions.pod:1803 ../fish/guestfish-actions.pod:1226
10144 msgid "The result list is not sorted."
10145 msgstr ""
10146
10147 # type: textblock
10148 #. type: textblock
10149 #: ../src/guestfs-actions.pod:1809
10150 msgid "(Added in 1.0.74)"
10151 msgstr ""
10152
10153 # type: =head2
10154 #. type: =head2
10155 #: ../src/guestfs-actions.pod:1811
10156 msgid "guestfs_findfs_label"
10157 msgstr ""
10158
10159 # type: verbatim
10160 #. type: verbatim
10161 #: ../src/guestfs-actions.pod:1813
10162 #, no-wrap
10163 msgid ""
10164 " char *\n"
10165 " guestfs_findfs_label (guestfs_h *g,\n"
10166 "                       const char *label);\n"
10167 "\n"
10168 msgstr ""
10169
10170 # type: textblock
10171 #. type: textblock
10172 #: ../src/guestfs-actions.pod:1817 ../fish/guestfish-actions.pod:1236
10173 msgid ""
10174 "This command searches the filesystems and returns the one which has the "
10175 "given label.  An error is returned if no such filesystem can be found."
10176 msgstr ""
10177
10178 # type: textblock
10179 #. type: textblock
10180 #: ../src/guestfs-actions.pod:1821
10181 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
10182 msgstr ""
10183
10184 # type: =head2
10185 #. type: =head2
10186 #: ../src/guestfs-actions.pod:1828
10187 msgid "guestfs_findfs_uuid"
10188 msgstr ""
10189
10190 # type: verbatim
10191 #. type: verbatim
10192 #: ../src/guestfs-actions.pod:1830
10193 #, no-wrap
10194 msgid ""
10195 " char *\n"
10196 " guestfs_findfs_uuid (guestfs_h *g,\n"
10197 "                      const char *uuid);\n"
10198 "\n"
10199 msgstr ""
10200
10201 # type: textblock
10202 #. type: textblock
10203 #: ../src/guestfs-actions.pod:1834 ../fish/guestfish-actions.pod:1246
10204 msgid ""
10205 "This command searches the filesystems and returns the one which has the "
10206 "given UUID.  An error is returned if no such filesystem can be found."
10207 msgstr ""
10208
10209 # type: textblock
10210 #. type: textblock
10211 #: ../src/guestfs-actions.pod:1838
10212 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
10213 msgstr ""
10214
10215 # type: =head2
10216 #. type: =head2
10217 #: ../src/guestfs-actions.pod:1845
10218 msgid "guestfs_fsck"
10219 msgstr ""
10220
10221 # type: verbatim
10222 #. type: verbatim
10223 #: ../src/guestfs-actions.pod:1847
10224 #, no-wrap
10225 msgid ""
10226 " int\n"
10227 " guestfs_fsck (guestfs_h *g,\n"
10228 "               const char *fstype,\n"
10229 "               const char *device);\n"
10230 "\n"
10231 msgstr ""
10232
10233 # type: textblock
10234 #. type: textblock
10235 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1256
10236 msgid ""
10237 "This runs the filesystem checker (fsck) on C<device> which should have "
10238 "filesystem type C<fstype>."
10239 msgstr ""
10240
10241 # type: textblock
10242 #. type: textblock
10243 #: ../src/guestfs-actions.pod:1855 ../fish/guestfish-actions.pod:1259
10244 msgid ""
10245 "The returned integer is the status.  See L<fsck(8)> for the list of status "
10246 "codes from C<fsck>."
10247 msgstr ""
10248
10249 # type: textblock
10250 #. type: textblock
10251 #: ../src/guestfs-actions.pod:1864 ../fish/guestfish-actions.pod:1268
10252 msgid "Multiple status codes can be summed together."
10253 msgstr ""
10254
10255 # type: textblock
10256 #. type: textblock
10257 #: ../src/guestfs-actions.pod:1868 ../fish/guestfish-actions.pod:1272
10258 msgid ""
10259 "A non-zero return code can mean \"success\", for example if errors have been "
10260 "corrected on the filesystem."
10261 msgstr ""
10262
10263 # type: textblock
10264 #. type: textblock
10265 #: ../src/guestfs-actions.pod:1873 ../fish/guestfish-actions.pod:1277
10266 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
10267 msgstr ""
10268
10269 # type: textblock
10270 #. type: textblock
10271 #: ../src/guestfs-actions.pod:1878 ../fish/guestfish-actions.pod:1282
10272 msgid ""
10273 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
10274 msgstr ""
10275
10276 # type: textblock
10277 #. type: textblock
10278 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:7663
10279 msgid "(Added in 1.0.16)"
10280 msgstr ""
10281
10282 # type: =head2
10283 #. type: =head2
10284 #: ../src/guestfs-actions.pod:1884
10285 msgid "guestfs_get_append"
10286 msgstr ""
10287
10288 # type: verbatim
10289 #. type: verbatim
10290 #: ../src/guestfs-actions.pod:1886
10291 #, no-wrap
10292 msgid ""
10293 " const char *\n"
10294 " guestfs_get_append (guestfs_h *g);\n"
10295 "\n"
10296 msgstr ""
10297
10298 # type: textblock
10299 #. type: textblock
10300 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1288
10301 msgid ""
10302 "Return the additional kernel options which are added to the guest kernel "
10303 "command line."
10304 msgstr ""
10305
10306 # type: textblock
10307 #. type: textblock
10308 #: ../src/guestfs-actions.pod:1892 ../fish/guestfish-actions.pod:1291
10309 msgid "If C<NULL> then no options are added."
10310 msgstr ""
10311
10312 # type: textblock
10313 #. type: textblock
10314 #: ../src/guestfs-actions.pod:1894
10315 msgid ""
10316 "This function returns a string which may be NULL.  There is no way to return "
10317 "an error from this function.  The string is owned by the guest handle and "
10318 "must I<not> be freed."
10319 msgstr ""
10320
10321 # type: textblock
10322 #. type: textblock
10323 #: ../src/guestfs-actions.pod:1898 ../src/guestfs-actions.pod:5611
10324 #: ../src/guestfs-actions.pod:6093 ../src/guestfs-actions.pod:6516
10325 #: ../src/guestfs-actions.pod:6535 ../src/guestfs-actions.pod:6551
10326 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:7329
10327 #: ../src/guestfs-actions.pod:7344 ../src/guestfs-actions.pod:7706
10328 msgid "(Added in 1.0.26)"
10329 msgstr ""
10330
10331 #. type: =head2
10332 #: ../src/guestfs-actions.pod:1900
10333 msgid "guestfs_get_attach_method"
10334 msgstr ""
10335
10336 #. type: verbatim
10337 #: ../src/guestfs-actions.pod:1902
10338 #, no-wrap
10339 msgid ""
10340 " char *\n"
10341 " guestfs_get_attach_method (guestfs_h *g);\n"
10342 "\n"
10343 msgstr ""
10344
10345 #. type: textblock
10346 #: ../src/guestfs-actions.pod:1905
10347 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
10348 msgstr ""
10349
10350 #. type: textblock
10351 #: ../src/guestfs-actions.pod:1910 ../src/guestfs-actions.pod:6123
10352 msgid "(Added in 1.9.8)"
10353 msgstr ""
10354
10355 # type: =head2
10356 #. type: =head2
10357 #: ../src/guestfs-actions.pod:1912
10358 msgid "guestfs_get_autosync"
10359 msgstr ""
10360
10361 # type: verbatim
10362 #. type: verbatim
10363 #: ../src/guestfs-actions.pod:1914
10364 #, no-wrap
10365 msgid ""
10366 " int\n"
10367 " guestfs_get_autosync (guestfs_h *g);\n"
10368 "\n"
10369 msgstr ""
10370
10371 # type: textblock
10372 #. type: textblock
10373 #: ../src/guestfs-actions.pod:1917 ../fish/guestfish-actions.pod:1303
10374 msgid "Get the autosync flag."
10375 msgstr ""
10376
10377 # type: =head2
10378 #. type: =head2
10379 #: ../src/guestfs-actions.pod:1923
10380 msgid "guestfs_get_direct"
10381 msgstr ""
10382
10383 # type: verbatim
10384 #. type: verbatim
10385 #: ../src/guestfs-actions.pod:1925
10386 #, no-wrap
10387 msgid ""
10388 " int\n"
10389 " guestfs_get_direct (guestfs_h *g);\n"
10390 "\n"
10391 msgstr ""
10392
10393 # type: textblock
10394 #. type: textblock
10395 #: ../src/guestfs-actions.pod:1928 ../fish/guestfish-actions.pod:1309
10396 msgid "Return the direct appliance mode flag."
10397 msgstr ""
10398
10399 # type: textblock
10400 #. type: textblock
10401 #: ../src/guestfs-actions.pod:1932 ../src/guestfs-actions.pod:6164
10402 msgid "(Added in 1.0.72)"
10403 msgstr ""
10404
10405 # type: =head2
10406 #. type: =head2
10407 #: ../src/guestfs-actions.pod:1934
10408 msgid "guestfs_get_e2label"
10409 msgstr ""
10410
10411 # type: verbatim
10412 #. type: verbatim
10413 #: ../src/guestfs-actions.pod:1936
10414 #, no-wrap
10415 msgid ""
10416 " char *\n"
10417 " guestfs_get_e2label (guestfs_h *g,\n"
10418 "                      const char *device);\n"
10419 "\n"
10420 msgstr ""
10421
10422 # type: textblock
10423 #. type: textblock
10424 #: ../src/guestfs-actions.pod:1940 ../fish/guestfish-actions.pod:1315
10425 msgid ""
10426 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
10427 msgstr ""
10428
10429 # type: textblock
10430 #. type: textblock
10431 #: ../src/guestfs-actions.pod:1946 ../fish/guestfish-actions.pod:1318
10432 msgid ""
10433 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
10434 msgstr ""
10435
10436 # type: textblock
10437 #. type: textblock
10438 #: ../src/guestfs-actions.pod:1953 ../src/guestfs-actions.pod:1974
10439 #: ../src/guestfs-actions.pod:6182 ../src/guestfs-actions.pod:6201
10440 msgid "(Added in 1.0.15)"
10441 msgstr ""
10442
10443 # type: =head2
10444 #. type: =head2
10445 #: ../src/guestfs-actions.pod:1955
10446 msgid "guestfs_get_e2uuid"
10447 msgstr ""
10448
10449 # type: verbatim
10450 #. type: verbatim
10451 #: ../src/guestfs-actions.pod:1957
10452 #, no-wrap
10453 msgid ""
10454 " char *\n"
10455 " guestfs_get_e2uuid (guestfs_h *g,\n"
10456 "                     const char *device);\n"
10457 "\n"
10458 msgstr ""
10459
10460 # type: textblock
10461 #. type: textblock
10462 #: ../src/guestfs-actions.pod:1961 ../fish/guestfish-actions.pod:1329
10463 msgid ""
10464 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
10465 msgstr ""
10466
10467 # type: textblock
10468 #. type: textblock
10469 #: ../src/guestfs-actions.pod:1967 ../fish/guestfish-actions.pod:1332
10470 msgid ""
10471 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
10472 msgstr ""
10473
10474 # type: =head2
10475 #. type: =head2
10476 #: ../src/guestfs-actions.pod:1976
10477 msgid "guestfs_get_memsize"
10478 msgstr ""
10479
10480 # type: verbatim
10481 #. type: verbatim
10482 #: ../src/guestfs-actions.pod:1978
10483 #, no-wrap
10484 msgid ""
10485 " int\n"
10486 " guestfs_get_memsize (guestfs_h *g);\n"
10487 "\n"
10488 msgstr ""
10489
10490 # type: textblock
10491 #. type: textblock
10492 #: ../src/guestfs-actions.pod:1981 ../fish/guestfish-actions.pod:1343
10493 msgid ""
10494 "This gets the memory size in megabytes allocated to the qemu subprocess."
10495 msgstr ""
10496
10497 # type: textblock
10498 #. type: textblock
10499 #: ../src/guestfs-actions.pod:1984
10500 msgid ""
10501 "If C<guestfs_set_memsize> was not called on this handle, and if "
10502 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
10503 "value for memsize."
10504 msgstr ""
10505
10506 # type: textblock
10507 #. type: textblock
10508 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2069
10509 #: ../src/guestfs-actions.pod:6217 ../src/guestfs-actions.pod:6324
10510 #: ../fish/guestfish-actions.pod:1350 ../fish/guestfish-actions.pod:1401
10511 #: ../fish/guestfish-actions.pod:4126 ../fish/guestfish-actions.pod:4213
10512 msgid ""
10513 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
10514 msgstr ""
10515
10516 # type: textblock
10517 #. type: textblock
10518 #: ../src/guestfs-actions.pod:1993 ../src/guestfs-actions.pod:4520
10519 #: ../src/guestfs-actions.pod:4729 ../src/guestfs-actions.pod:4748
10520 #: ../src/guestfs-actions.pod:4767 ../src/guestfs-actions.pod:4779
10521 #: ../src/guestfs-actions.pod:4796 ../src/guestfs-actions.pod:4809
10522 #: ../src/guestfs-actions.pod:5836 ../src/guestfs-actions.pod:6222
10523 #: ../src/guestfs-actions.pod:6483 ../src/guestfs-actions.pod:7098
10524 msgid "(Added in 1.0.55)"
10525 msgstr ""
10526
10527 # type: =head2
10528 #. type: =head2
10529 #: ../src/guestfs-actions.pod:1995
10530 msgid "guestfs_get_network"
10531 msgstr ""
10532
10533 # type: verbatim
10534 #. type: verbatim
10535 #: ../src/guestfs-actions.pod:1997
10536 #, no-wrap
10537 msgid ""
10538 " int\n"
10539 " guestfs_get_network (guestfs_h *g);\n"
10540 "\n"
10541 msgstr ""
10542
10543 # type: textblock
10544 #. type: textblock
10545 #: ../src/guestfs-actions.pod:2000 ../fish/guestfish-actions.pod:1357
10546 msgid "This returns the enable network flag."
10547 msgstr ""
10548
10549 # type: textblock
10550 #. type: textblock
10551 #: ../src/guestfs-actions.pod:2004 ../src/guestfs-actions.pod:6241
10552 msgid "(Added in 1.5.4)"
10553 msgstr ""
10554
10555 # type: =head2
10556 #. type: =head2
10557 #: ../src/guestfs-actions.pod:2006
10558 msgid "guestfs_get_path"
10559 msgstr ""
10560
10561 # type: verbatim
10562 #. type: verbatim
10563 #: ../src/guestfs-actions.pod:2008
10564 #, no-wrap
10565 msgid ""
10566 " const char *\n"
10567 " guestfs_get_path (guestfs_h *g);\n"
10568 "\n"
10569 msgstr ""
10570
10571 # type: textblock
10572 #. type: textblock
10573 #: ../src/guestfs-actions.pod:2011 ../fish/guestfish-actions.pod:1363
10574 msgid "Return the current search path."
10575 msgstr ""
10576
10577 # type: textblock
10578 #. type: textblock
10579 #: ../src/guestfs-actions.pod:2013 ../fish/guestfish-actions.pod:1365
10580 msgid ""
10581 "This is always non-NULL.  If it wasn't set already, then this will return "
10582 "the default path."
10583 msgstr ""
10584
10585 # type: textblock
10586 #. type: textblock
10587 #: ../src/guestfs-actions.pod:2016 ../src/guestfs-actions.pod:2045
10588 msgid ""
10589 "This function returns a string, or NULL on error.  The string is owned by "
10590 "the guest handle and must I<not> be freed."
10591 msgstr ""
10592
10593 # type: =head2
10594 #. type: =head2
10595 #: ../src/guestfs-actions.pod:2021
10596 msgid "guestfs_get_pid"
10597 msgstr ""
10598
10599 # type: verbatim
10600 #. type: verbatim
10601 #: ../src/guestfs-actions.pod:2023
10602 #, no-wrap
10603 msgid ""
10604 " int\n"
10605 " guestfs_get_pid (guestfs_h *g);\n"
10606 "\n"
10607 msgstr ""
10608
10609 # type: textblock
10610 #. type: textblock
10611 #: ../src/guestfs-actions.pod:2026 ../fish/guestfish-actions.pod:1374
10612 msgid ""
10613 "Return the process ID of the qemu subprocess.  If there is no qemu "
10614 "subprocess, then this will return an error."
10615 msgstr ""
10616
10617 # type: textblock
10618 #. type: textblock
10619 #: ../src/guestfs-actions.pod:2029 ../fish/guestfish-actions.pod:1377
10620 msgid "This is an internal call used for debugging and testing."
10621 msgstr ""
10622
10623 # type: textblock
10624 #. type: textblock
10625 #: ../src/guestfs-actions.pod:2033
10626 msgid "(Added in 1.0.56)"
10627 msgstr ""
10628
10629 # type: =head2
10630 #. type: =head2
10631 #: ../src/guestfs-actions.pod:2035
10632 msgid "guestfs_get_qemu"
10633 msgstr ""
10634
10635 # type: verbatim
10636 #. type: verbatim
10637 #: ../src/guestfs-actions.pod:2037
10638 #, no-wrap
10639 msgid ""
10640 " const char *\n"
10641 " guestfs_get_qemu (guestfs_h *g);\n"
10642 "\n"
10643 msgstr ""
10644
10645 # type: textblock
10646 #. type: textblock
10647 #: ../src/guestfs-actions.pod:2040 ../fish/guestfish-actions.pod:1383
10648 msgid "Return the current qemu binary."
10649 msgstr ""
10650
10651 # type: textblock
10652 #. type: textblock
10653 #: ../src/guestfs-actions.pod:2042 ../fish/guestfish-actions.pod:1385
10654 msgid ""
10655 "This is always non-NULL.  If it wasn't set already, then this will return "
10656 "the default qemu binary name."
10657 msgstr ""
10658
10659 # type: textblock
10660 #. type: textblock
10661 #: ../src/guestfs-actions.pod:2048 ../src/guestfs-actions.pod:6286
10662 msgid "(Added in 1.0.6)"
10663 msgstr ""
10664
10665 # type: =head2
10666 #. type: =head2
10667 #: ../src/guestfs-actions.pod:2050
10668 msgid "guestfs_get_recovery_proc"
10669 msgstr ""
10670
10671 # type: verbatim
10672 #. type: verbatim
10673 #: ../src/guestfs-actions.pod:2052
10674 #, no-wrap
10675 msgid ""
10676 " int\n"
10677 " guestfs_get_recovery_proc (guestfs_h *g);\n"
10678 "\n"
10679 msgstr ""
10680
10681 # type: textblock
10682 #. type: textblock
10683 #: ../src/guestfs-actions.pod:2055 ../fish/guestfish-actions.pod:1392
10684 msgid "Return the recovery process enabled flag."
10685 msgstr ""
10686
10687 # type: textblock
10688 #. type: textblock
10689 #: ../src/guestfs-actions.pod:2059 ../src/guestfs-actions.pod:3593
10690 #: ../src/guestfs-actions.pod:3924 ../src/guestfs-actions.pod:4327
10691 #: ../src/guestfs-actions.pod:4359 ../src/guestfs-actions.pod:5541
10692 #: ../src/guestfs-actions.pod:5884 ../src/guestfs-actions.pod:6310
10693 #: ../src/guestfs-actions.pod:7001 ../src/guestfs-actions.pod:7021
10694 #: ../src/guestfs-actions.pod:7213
10695 msgid "(Added in 1.0.77)"
10696 msgstr ""
10697
10698 # type: =head2
10699 #. type: =head2
10700 #: ../src/guestfs-actions.pod:2061
10701 msgid "guestfs_get_selinux"
10702 msgstr ""
10703
10704 # type: verbatim
10705 #. type: verbatim
10706 #: ../src/guestfs-actions.pod:2063
10707 #, no-wrap
10708 msgid ""
10709 " int\n"
10710 " guestfs_get_selinux (guestfs_h *g);\n"
10711 "\n"
10712 msgstr ""
10713
10714 # type: textblock
10715 #. type: textblock
10716 #: ../src/guestfs-actions.pod:2066
10717 msgid ""
10718 "This returns the current setting of the selinux flag which is passed to the "
10719 "appliance at boot time.  See C<guestfs_set_selinux>."
10720 msgstr ""
10721
10722 # type: textblock
10723 #. type: textblock
10724 #: ../src/guestfs-actions.pod:2074 ../src/guestfs-actions.pod:2137
10725 #: ../src/guestfs-actions.pod:6329 ../src/guestfs-actions.pod:6387
10726 msgid "(Added in 1.0.67)"
10727 msgstr ""
10728
10729 # type: =head2
10730 #. type: =head2
10731 #: ../src/guestfs-actions.pod:2076
10732 msgid "guestfs_get_state"
10733 msgstr ""
10734
10735 # type: verbatim
10736 #. type: verbatim
10737 #: ../src/guestfs-actions.pod:2078
10738 #, no-wrap
10739 msgid ""
10740 " int\n"
10741 " guestfs_get_state (guestfs_h *g);\n"
10742 "\n"
10743 msgstr ""
10744
10745 # type: textblock
10746 #. type: textblock
10747 #: ../src/guestfs-actions.pod:2081 ../fish/guestfish-actions.pod:1408
10748 msgid ""
10749 "This returns the current state as an opaque integer.  This is only useful "
10750 "for printing debug and internal error messages."
10751 msgstr ""
10752
10753 # type: textblock
10754 #. type: textblock
10755 #: ../src/guestfs-actions.pod:2084 ../src/guestfs-actions.pod:3364
10756 #: ../src/guestfs-actions.pod:3393 ../src/guestfs-actions.pod:3454
10757 #: ../src/guestfs-actions.pod:3481 ../fish/guestfish-actions.pod:1411
10758 #: ../fish/guestfish-actions.pod:2331 ../fish/guestfish-actions.pod:2349
10759 #: ../fish/guestfish-actions.pod:2387 ../fish/guestfish-actions.pod:2403
10760 msgid "For more information on states, see L<guestfs(3)>."
10761 msgstr ""
10762
10763 # type: =head2
10764 #. type: =head2
10765 #: ../src/guestfs-actions.pod:2090
10766 msgid "guestfs_get_trace"
10767 msgstr ""
10768
10769 # type: verbatim
10770 #. type: verbatim
10771 #: ../src/guestfs-actions.pod:2092
10772 #, no-wrap
10773 msgid ""
10774 " int\n"
10775 " guestfs_get_trace (guestfs_h *g);\n"
10776 "\n"
10777 msgstr ""
10778
10779 # type: textblock
10780 #. type: textblock
10781 #: ../src/guestfs-actions.pod:2095 ../fish/guestfish-actions.pod:1417
10782 msgid "Return the command trace flag."
10783 msgstr ""
10784
10785 # type: =head2
10786 #. type: =head2
10787 #: ../src/guestfs-actions.pod:2101
10788 msgid "guestfs_get_umask"
10789 msgstr ""
10790
10791 # type: verbatim
10792 #. type: verbatim
10793 #: ../src/guestfs-actions.pod:2103
10794 #, no-wrap
10795 msgid ""
10796 " int\n"
10797 " guestfs_get_umask (guestfs_h *g);\n"
10798 "\n"
10799 msgstr ""
10800
10801 # type: textblock
10802 #. type: textblock
10803 #: ../src/guestfs-actions.pod:2106
10804 msgid ""
10805 "Return the current umask.  By default the umask is C<022> unless it has been "
10806 "set by calling C<guestfs_umask>."
10807 msgstr ""
10808
10809 # type: =head2
10810 #. type: =head2
10811 #: ../src/guestfs-actions.pod:2113
10812 msgid "guestfs_get_verbose"
10813 msgstr ""
10814
10815 # type: verbatim
10816 #. type: verbatim
10817 #: ../src/guestfs-actions.pod:2115
10818 #, no-wrap
10819 msgid ""
10820 " int\n"
10821 " guestfs_get_verbose (guestfs_h *g);\n"
10822 "\n"
10823 msgstr ""
10824
10825 # type: textblock
10826 #. type: textblock
10827 #: ../src/guestfs-actions.pod:2118 ../fish/guestfish-actions.pod:1430
10828 msgid "This returns the verbose messages flag."
10829 msgstr ""
10830
10831 # type: =head2
10832 #. type: =head2
10833 #: ../src/guestfs-actions.pod:2124
10834 msgid "guestfs_getcon"
10835 msgstr ""
10836
10837 # type: verbatim
10838 #. type: verbatim
10839 #: ../src/guestfs-actions.pod:2126
10840 #, no-wrap
10841 msgid ""
10842 " char *\n"
10843 " guestfs_getcon (guestfs_h *g);\n"
10844 "\n"
10845 msgstr ""
10846
10847 # type: textblock
10848 #. type: textblock
10849 #: ../src/guestfs-actions.pod:2129 ../fish/guestfish-actions.pod:1436
10850 msgid "This gets the SELinux security context of the daemon."
10851 msgstr ""
10852
10853 # type: textblock
10854 #. type: textblock
10855 #: ../src/guestfs-actions.pod:2131
10856 msgid ""
10857 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
10858 msgstr ""
10859
10860 # type: =head2
10861 #. type: =head2
10862 #: ../src/guestfs-actions.pod:2139
10863 msgid "guestfs_getxattr"
10864 msgstr ""
10865
10866 # type: verbatim
10867 #. type: verbatim
10868 #: ../src/guestfs-actions.pod:2141
10869 #, no-wrap
10870 msgid ""
10871 " char *\n"
10872 " guestfs_getxattr (guestfs_h *g,\n"
10873 "                   const char *path,\n"
10874 "                   const char *name,\n"
10875 "                   size_t *size_r);\n"
10876 "\n"
10877 msgstr ""
10878
10879 # type: textblock
10880 #. type: textblock
10881 #: ../src/guestfs-actions.pod:2147
10882 msgid ""
10883 "Get a single extended attribute from file C<path> named C<name>.  This call "
10884 "follows symlinks.  If you want to lookup an extended attribute for the "
10885 "symlink itself, use C<guestfs_lgetxattr>."
10886 msgstr ""
10887
10888 # type: textblock
10889 #. type: textblock
10890 #: ../src/guestfs-actions.pod:2151 ../src/guestfs-actions.pod:3607
10891 msgid ""
10892 "Normally it is better to get all extended attributes from a file in one go "
10893 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
10894 "implementations are buggy and do not provide a way to list out attributes.  "
10895 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
10896 "extended attributes you want in advance and call this function."
10897 msgstr ""
10898
10899 # type: textblock
10900 #. type: textblock
10901 #: ../src/guestfs-actions.pod:2158 ../src/guestfs-actions.pod:3614
10902 #: ../fish/guestfish-actions.pod:1456 ../fish/guestfish-actions.pod:2483
10903 msgid ""
10904 "Extended attribute values are blobs of binary data.  If there is no extended "
10905 "attribute named C<name>, this returns an error."
10906 msgstr ""
10907
10908 # type: textblock
10909 #. type: textblock
10910 #: ../src/guestfs-actions.pod:2161
10911 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
10912 msgstr ""
10913
10914 # type: textblock
10915 #. type: textblock
10916 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:2354
10917 #: ../src/guestfs-actions.pod:2824 ../src/guestfs-actions.pod:3619
10918 #: ../src/guestfs-actions.pod:5534 ../src/guestfs-actions.pod:5560
10919 #: ../src/guestfs-actions.pod:5741
10920 msgid ""
10921 "This function returns a buffer, or NULL on error.  The size of the returned "
10922 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
10923 "after use>."
10924 msgstr ""
10925
10926 #. type: textblock
10927 #: ../src/guestfs-actions.pod:2167 ../src/guestfs-actions.pod:3623
10928 msgid "(Added in 1.7.24)"
10929 msgstr ""
10930
10931 # type: =head2
10932 #. type: =head2
10933 #: ../src/guestfs-actions.pod:2169
10934 msgid "guestfs_getxattrs"
10935 msgstr ""
10936
10937 # type: verbatim
10938 #. type: verbatim
10939 #: ../src/guestfs-actions.pod:2171
10940 #, no-wrap
10941 msgid ""
10942 " struct guestfs_xattr_list *\n"
10943 " guestfs_getxattrs (guestfs_h *g,\n"
10944 "                    const char *path);\n"
10945 "\n"
10946 msgstr ""
10947
10948 # type: textblock
10949 #. type: textblock
10950 #: ../src/guestfs-actions.pod:2175 ../fish/guestfish-actions.pod:1465
10951 msgid ""
10952 "This call lists the extended attributes of the file or directory C<path>."
10953 msgstr ""
10954
10955 # type: textblock
10956 #. type: textblock
10957 #: ../src/guestfs-actions.pod:2178 ../fish/guestfish-actions.pod:1468
10958 msgid ""
10959 "At the system call level, this is a combination of the L<listxattr(2)> and "
10960 "L<getxattr(2)> calls."
10961 msgstr ""
10962
10963 # type: textblock
10964 #. type: textblock
10965 #: ../src/guestfs-actions.pod:2181
10966 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
10967 msgstr ""
10968
10969 # type: textblock
10970 #. type: textblock
10971 #: ../src/guestfs-actions.pod:2183 ../src/guestfs-actions.pod:3635
10972 #: ../src/guestfs-actions.pod:4323
10973 msgid ""
10974 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
10975 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
10976 msgstr ""
10977
10978 # type: textblock
10979 #. type: textblock
10980 #: ../src/guestfs-actions.pod:2187 ../src/guestfs-actions.pod:3639
10981 #: ../src/guestfs-actions.pod:3838 ../src/guestfs-actions.pod:3874
10982 #: ../src/guestfs-actions.pod:5914 ../src/guestfs-actions.pod:6406
10983 #: ../src/guestfs-actions.pod:7771
10984 msgid "(Added in 1.0.59)"
10985 msgstr ""
10986
10987 # type: =head2
10988 #. type: =head2
10989 #: ../src/guestfs-actions.pod:2189
10990 msgid "guestfs_glob_expand"
10991 msgstr ""
10992
10993 # type: verbatim
10994 #. type: verbatim
10995 #: ../src/guestfs-actions.pod:2191
10996 #, no-wrap
10997 msgid ""
10998 " char **\n"
10999 " guestfs_glob_expand (guestfs_h *g,\n"
11000 "                      const char *pattern);\n"
11001 "\n"
11002 msgstr ""
11003
11004 # type: textblock
11005 #. type: textblock
11006 #: ../src/guestfs-actions.pod:2195 ../fish/guestfish-actions.pod:1477
11007 msgid ""
11008 "This command searches for all the pathnames matching C<pattern> according to "
11009 "the wildcard expansion rules used by the shell."
11010 msgstr ""
11011
11012 # type: textblock
11013 #. type: textblock
11014 #: ../src/guestfs-actions.pod:2199 ../fish/guestfish-actions.pod:1481
11015 msgid ""
11016 "If no paths match, then this returns an empty list (note: not an error)."
11017 msgstr ""
11018
11019 # type: textblock
11020 #. type: textblock
11021 #: ../src/guestfs-actions.pod:2202 ../fish/guestfish-actions.pod:1484
11022 msgid ""
11023 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
11024 "GLOB_BRACE>.  See that manual page for more details."
11025 msgstr ""
11026
11027 # type: textblock
11028 #. type: textblock
11029 #: ../src/guestfs-actions.pod:2210 ../src/guestfs-actions.pod:6599
11030 #: ../src/guestfs-actions.pod:6616
11031 msgid "(Added in 1.0.50)"
11032 msgstr ""
11033
11034 # type: =head2
11035 #. type: =head2
11036 #: ../src/guestfs-actions.pod:2212
11037 msgid "guestfs_grep"
11038 msgstr ""
11039
11040 # type: verbatim
11041 #. type: verbatim
11042 #: ../src/guestfs-actions.pod:2214
11043 #, no-wrap
11044 msgid ""
11045 " char **\n"
11046 " guestfs_grep (guestfs_h *g,\n"
11047 "               const char *regex,\n"
11048 "               const char *path);\n"
11049 "\n"
11050 msgstr ""
11051
11052 # type: textblock
11053 #. type: textblock
11054 #: ../src/guestfs-actions.pod:2219 ../fish/guestfish-actions.pod:1492
11055 msgid "This calls the external C<grep> program and returns the matching lines."
11056 msgstr ""
11057
11058 # type: =head2
11059 #. type: =head2
11060 #: ../src/guestfs-actions.pod:2231
11061 msgid "guestfs_grepi"
11062 msgstr ""
11063
11064 # type: verbatim
11065 #. type: verbatim
11066 #: ../src/guestfs-actions.pod:2233
11067 #, no-wrap
11068 msgid ""
11069 " char **\n"
11070 " guestfs_grepi (guestfs_h *g,\n"
11071 "                const char *regex,\n"
11072 "                const char *path);\n"
11073 "\n"
11074 msgstr ""
11075
11076 # type: textblock
11077 #. type: textblock
11078 #: ../src/guestfs-actions.pod:2238 ../fish/guestfish-actions.pod:1502
11079 msgid ""
11080 "This calls the external C<grep -i> program and returns the matching lines."
11081 msgstr ""
11082
11083 # type: =head2
11084 #. type: =head2
11085 #: ../src/guestfs-actions.pod:2250
11086 msgid "guestfs_grub_install"
11087 msgstr ""
11088
11089 # type: verbatim
11090 #. type: verbatim
11091 #: ../src/guestfs-actions.pod:2252
11092 #, no-wrap
11093 msgid ""
11094 " int\n"
11095 " guestfs_grub_install (guestfs_h *g,\n"
11096 "                       const char *root,\n"
11097 "                       const char *device);\n"
11098 "\n"
11099 msgstr ""
11100
11101 # type: textblock
11102 #. type: textblock
11103 #: ../src/guestfs-actions.pod:2257 ../fish/guestfish-actions.pod:1512
11104 msgid ""
11105 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
11106 "the root directory being C<root>."
11107 msgstr ""
11108
11109 # type: textblock
11110 #. type: textblock
11111 #: ../src/guestfs-actions.pod:2260 ../fish/guestfish-actions.pod:1515
11112 msgid ""
11113 "Note: If grub-install reports the error \"No suitable drive was found in the "
11114 "generated device map.\" it may be that you need to create a C</boot/grub/"
11115 "device.map> file first that contains the mapping between grub device names "
11116 "and Linux device names.  It is usually sufficient to create a file "
11117 "containing:"
11118 msgstr ""
11119
11120 # type: verbatim
11121 #. type: verbatim
11122 #: ../src/guestfs-actions.pod:2267 ../fish/guestfish-actions.pod:1522
11123 #, no-wrap
11124 msgid ""
11125 " (hd0) /dev/vda\n"
11126 "\n"
11127 msgstr ""
11128
11129 # type: textblock
11130 #. type: textblock
11131 #: ../src/guestfs-actions.pod:2269 ../fish/guestfish-actions.pod:1524
11132 msgid "replacing C</dev/vda> with the name of the installation device."
11133 msgstr ""
11134
11135 # type: textblock
11136 #. type: textblock
11137 #: ../src/guestfs-actions.pod:2273
11138 msgid "(Added in 1.0.17)"
11139 msgstr ""
11140
11141 # type: =head2
11142 #. type: =head2
11143 #: ../src/guestfs-actions.pod:2275
11144 msgid "guestfs_head"
11145 msgstr ""
11146
11147 # type: verbatim
11148 #. type: verbatim
11149 #: ../src/guestfs-actions.pod:2277
11150 #, no-wrap
11151 msgid ""
11152 " char **\n"
11153 " guestfs_head (guestfs_h *g,\n"
11154 "               const char *path);\n"
11155 "\n"
11156 msgstr ""
11157
11158 # type: textblock
11159 #. type: textblock
11160 #: ../src/guestfs-actions.pod:2281 ../fish/guestfish-actions.pod:1530
11161 msgid ""
11162 "This command returns up to the first 10 lines of a file as a list of strings."
11163 msgstr ""
11164
11165 # type: =head2
11166 #. type: =head2
11167 #: ../src/guestfs-actions.pod:2293
11168 msgid "guestfs_head_n"
11169 msgstr ""
11170
11171 # type: verbatim
11172 #. type: verbatim
11173 #: ../src/guestfs-actions.pod:2295
11174 #, no-wrap
11175 msgid ""
11176 " char **\n"
11177 " guestfs_head_n (guestfs_h *g,\n"
11178 "                 int nrlines,\n"
11179 "                 const char *path);\n"
11180 "\n"
11181 msgstr ""
11182
11183 # type: textblock
11184 #. type: textblock
11185 #: ../src/guestfs-actions.pod:2300 ../fish/guestfish-actions.pod:1540
11186 msgid ""
11187 "If the parameter C<nrlines> is a positive number, this returns the first "
11188 "C<nrlines> lines of the file C<path>."
11189 msgstr ""
11190
11191 # type: textblock
11192 #. type: textblock
11193 #: ../src/guestfs-actions.pod:2303 ../fish/guestfish-actions.pod:1543
11194 msgid ""
11195 "If the parameter C<nrlines> is a negative number, this returns lines from "
11196 "the file C<path>, excluding the last C<nrlines> lines."
11197 msgstr ""
11198
11199 # type: textblock
11200 #. type: textblock
11201 #: ../src/guestfs-actions.pod:2306 ../src/guestfs-actions.pod:6896
11202 #: ../fish/guestfish-actions.pod:1546 ../fish/guestfish-actions.pod:4591
11203 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
11204 msgstr ""
11205
11206 # type: =head2
11207 #. type: =head2
11208 #: ../src/guestfs-actions.pod:2317
11209 msgid "guestfs_hexdump"
11210 msgstr ""
11211
11212 # type: verbatim
11213 #. type: verbatim
11214 #: ../src/guestfs-actions.pod:2319
11215 #, no-wrap
11216 msgid ""
11217 " char *\n"
11218 " guestfs_hexdump (guestfs_h *g,\n"
11219 "                  const char *path);\n"
11220 "\n"
11221 msgstr ""
11222
11223 # type: textblock
11224 #. type: textblock
11225 #: ../src/guestfs-actions.pod:2323 ../fish/guestfish-actions.pod:1555
11226 msgid ""
11227 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
11228 "readable, canonical hex dump of the file."
11229 msgstr ""
11230
11231 # type: textblock
11232 #. type: textblock
11233 #: ../src/guestfs-actions.pod:2332 ../src/guestfs-actions.pod:6680
11234 #: ../src/guestfs-actions.pod:6735
11235 msgid "(Added in 1.0.22)"
11236 msgstr ""
11237
11238 # type: =head2
11239 #. type: =head2
11240 #: ../src/guestfs-actions.pod:2334
11241 msgid "guestfs_initrd_cat"
11242 msgstr ""
11243
11244 # type: verbatim
11245 #. type: verbatim
11246 #: ../src/guestfs-actions.pod:2336
11247 #, no-wrap
11248 msgid ""
11249 " char *\n"
11250 " guestfs_initrd_cat (guestfs_h *g,\n"
11251 "                     const char *initrdpath,\n"
11252 "                     const char *filename,\n"
11253 "                     size_t *size_r);\n"
11254 "\n"
11255 msgstr ""
11256
11257 # type: textblock
11258 #. type: textblock
11259 #: ../src/guestfs-actions.pod:2342 ../fish/guestfish-actions.pod:1565
11260 msgid ""
11261 "This command unpacks the file C<filename> from the initrd file called "
11262 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
11263 "character."
11264 msgstr ""
11265
11266 # type: textblock
11267 #. type: textblock
11268 #: ../src/guestfs-actions.pod:2346 ../fish/guestfish-actions.pod:1569
11269 msgid ""
11270 "For example, in guestfish you could use the following command to examine the "
11271 "boot script (usually called C</init>)  contained in a Linux initrd or "
11272 "initramfs image:"
11273 msgstr ""
11274
11275 # type: verbatim
11276 #. type: verbatim
11277 #: ../src/guestfs-actions.pod:2350 ../fish/guestfish-actions.pod:1573
11278 #, no-wrap
11279 msgid ""
11280 " initrd-cat /boot/initrd-<version>.img init\n"
11281 "\n"
11282 msgstr ""
11283
11284 # type: textblock
11285 #. type: textblock
11286 #: ../src/guestfs-actions.pod:2352
11287 msgid "See also C<guestfs_initrd_list>."
11288 msgstr ""
11289
11290 # type: =head2
11291 #. type: =head2
11292 #: ../src/guestfs-actions.pod:2363
11293 msgid "guestfs_initrd_list"
11294 msgstr ""
11295
11296 # type: verbatim
11297 #. type: verbatim
11298 #: ../src/guestfs-actions.pod:2365
11299 #, no-wrap
11300 msgid ""
11301 " char **\n"
11302 " guestfs_initrd_list (guestfs_h *g,\n"
11303 "                      const char *path);\n"
11304 "\n"
11305 msgstr ""
11306
11307 # type: textblock
11308 #. type: textblock
11309 #: ../src/guestfs-actions.pod:2369 ../fish/guestfish-actions.pod:1584
11310 msgid "This command lists out files contained in an initrd."
11311 msgstr ""
11312
11313 # type: textblock
11314 #. type: textblock
11315 #: ../src/guestfs-actions.pod:2371 ../fish/guestfish-actions.pod:1586
11316 msgid ""
11317 "The files are listed without any initial C</> character.  The files are "
11318 "listed in the order they appear (not necessarily alphabetical).  Directory "
11319 "names are listed as separate items."
11320 msgstr ""
11321
11322 # type: textblock
11323 #. type: textblock
11324 #: ../src/guestfs-actions.pod:2375 ../fish/guestfish-actions.pod:1590
11325 msgid ""
11326 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
11327 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
11328 "files)."
11329 msgstr ""
11330
11331 # type: =head2
11332 #. type: =head2
11333 #: ../src/guestfs-actions.pod:2385
11334 msgid "guestfs_inotify_add_watch"
11335 msgstr ""
11336
11337 # type: verbatim
11338 #. type: verbatim
11339 #: ../src/guestfs-actions.pod:2387
11340 #, no-wrap
11341 msgid ""
11342 " int64_t\n"
11343 " guestfs_inotify_add_watch (guestfs_h *g,\n"
11344 "                            const char *path,\n"
11345 "                            int mask);\n"
11346 "\n"
11347 msgstr ""
11348
11349 # type: textblock
11350 #. type: textblock
11351 #: ../src/guestfs-actions.pod:2392 ../fish/guestfish-actions.pod:1598
11352 msgid "Watch C<path> for the events listed in C<mask>."
11353 msgstr ""
11354
11355 # type: textblock
11356 #. type: textblock
11357 #: ../src/guestfs-actions.pod:2394 ../fish/guestfish-actions.pod:1600
11358 msgid ""
11359 "Note that if C<path> is a directory then events within that directory are "
11360 "watched, but this does I<not> happen recursively (in subdirectories)."
11361 msgstr ""
11362
11363 # type: textblock
11364 #. type: textblock
11365 #: ../src/guestfs-actions.pod:2398 ../fish/guestfish-actions.pod:1604
11366 msgid ""
11367 "Note for non-C or non-Linux callers: the inotify events are defined by the "
11368 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
11369 msgstr ""
11370
11371 # type: =head2
11372 #. type: =head2
11373 #: ../src/guestfs-actions.pod:2406
11374 msgid "guestfs_inotify_close"
11375 msgstr ""
11376
11377 # type: verbatim
11378 #. type: verbatim
11379 #: ../src/guestfs-actions.pod:2408
11380 #, no-wrap
11381 msgid ""
11382 " int\n"
11383 " guestfs_inotify_close (guestfs_h *g);\n"
11384 "\n"
11385 msgstr ""
11386
11387 # type: textblock
11388 #. type: textblock
11389 #: ../src/guestfs-actions.pod:2411 ../fish/guestfish-actions.pod:1612
11390 msgid ""
11391 "This closes the inotify handle which was previously opened by inotify_init.  "
11392 "It removes all watches, throws away any pending events, and deallocates all "
11393 "resources."
11394 msgstr ""
11395
11396 # type: =head2
11397 #. type: =head2
11398 #: ../src/guestfs-actions.pod:2419
11399 msgid "guestfs_inotify_files"
11400 msgstr ""
11401
11402 # type: verbatim
11403 #. type: verbatim
11404 #: ../src/guestfs-actions.pod:2421
11405 #, no-wrap
11406 msgid ""
11407 " char **\n"
11408 " guestfs_inotify_files (guestfs_h *g);\n"
11409 "\n"
11410 msgstr ""
11411
11412 # type: textblock
11413 #. type: textblock
11414 #: ../src/guestfs-actions.pod:2424
11415 msgid ""
11416 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
11417 "returns a list of pathnames of objects that were touched.  The returned "
11418 "pathnames are sorted and deduplicated."
11419 msgstr ""
11420
11421 # type: =head2
11422 #. type: =head2
11423 #: ../src/guestfs-actions.pod:2434
11424 msgid "guestfs_inotify_init"
11425 msgstr ""
11426
11427 # type: verbatim
11428 #. type: verbatim
11429 #: ../src/guestfs-actions.pod:2436
11430 #, no-wrap
11431 msgid ""
11432 " int\n"
11433 " guestfs_inotify_init (guestfs_h *g,\n"
11434 "                       int maxevents);\n"
11435 "\n"
11436 msgstr ""
11437
11438 # type: textblock
11439 #. type: textblock
11440 #: ../src/guestfs-actions.pod:2440 ../fish/guestfish-actions.pod:1628
11441 msgid ""
11442 "This command creates a new inotify handle.  The inotify subsystem can be "
11443 "used to notify events which happen to objects in the guest filesystem."
11444 msgstr ""
11445
11446 # type: textblock
11447 #. type: textblock
11448 #: ../src/guestfs-actions.pod:2444
11449 msgid ""
11450 "C<maxevents> is the maximum number of events which will be queued up between "
11451 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
11452 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
11453 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
11454 "throws away events, but records the fact that it threw them away by setting "
11455 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
11456 "C<guestfs_inotify_read>)."
11457 msgstr ""
11458
11459 # type: textblock
11460 #. type: textblock
11461 #: ../src/guestfs-actions.pod:2454
11462 msgid ""
11463 "Before any events are generated, you have to add some watches to the "
11464 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
11465 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
11466 msgstr ""
11467
11468 # type: textblock
11469 #. type: textblock
11470 #: ../src/guestfs-actions.pod:2460
11471 msgid ""
11472 "Queued up events should be read periodically by calling "
11473 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
11474 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
11475 "often enough then you risk the internal queue overflowing."
11476 msgstr ""
11477
11478 # type: textblock
11479 #. type: textblock
11480 #: ../src/guestfs-actions.pod:2467
11481 msgid ""
11482 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
11483 "This also removes any watches automatically."
11484 msgstr ""
11485
11486 # type: textblock
11487 #. type: textblock
11488 #: ../src/guestfs-actions.pod:2471 ../fish/guestfish-actions.pod:1659
11489 msgid ""
11490 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
11491 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
11492 "that there is one global inotify handle per libguestfs instance."
11493 msgstr ""
11494
11495 # type: =head2
11496 #. type: =head2
11497 #: ../src/guestfs-actions.pod:2480
11498 msgid "guestfs_inotify_read"
11499 msgstr ""
11500
11501 # type: verbatim
11502 #. type: verbatim
11503 #: ../src/guestfs-actions.pod:2482
11504 #, no-wrap
11505 msgid ""
11506 " struct guestfs_inotify_event_list *\n"
11507 " guestfs_inotify_read (guestfs_h *g);\n"
11508 "\n"
11509 msgstr ""
11510
11511 # type: textblock
11512 #. type: textblock
11513 #: ../src/guestfs-actions.pod:2485 ../fish/guestfish-actions.pod:1668
11514 msgid ""
11515 "Return the complete queue of events that have happened since the previous "
11516 "read call."
11517 msgstr ""
11518
11519 # type: textblock
11520 #. type: textblock
11521 #: ../src/guestfs-actions.pod:2488 ../fish/guestfish-actions.pod:1671
11522 msgid "If no events have happened, this returns an empty list."
11523 msgstr ""
11524
11525 # type: textblock
11526 #. type: textblock
11527 #: ../src/guestfs-actions.pod:2490 ../fish/guestfish-actions.pod:1673
11528 msgid ""
11529 "I<Note>: In order to make sure that all events have been read, you must call "
11530 "this function repeatedly until it returns an empty list.  The reason is that "
11531 "the call will read events up to the maximum appliance-to-host message size "
11532 "and leave remaining events in the queue."
11533 msgstr ""
11534
11535 # type: textblock
11536 #. type: textblock
11537 #: ../src/guestfs-actions.pod:2496
11538 msgid ""
11539 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
11540 "there was an error.  I<The caller must call "
11541 "C<guestfs_free_inotify_event_list> after use>."
11542 msgstr ""
11543
11544 # type: =head2
11545 #. type: =head2
11546 #: ../src/guestfs-actions.pod:2502
11547 msgid "guestfs_inotify_rm_watch"
11548 msgstr ""
11549
11550 # type: verbatim
11551 #. type: verbatim
11552 #: ../src/guestfs-actions.pod:2504
11553 #, no-wrap
11554 msgid ""
11555 " int\n"
11556 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
11557 "                           int wd);\n"
11558 "\n"
11559 msgstr ""
11560
11561 # type: textblock
11562 #. type: textblock
11563 #: ../src/guestfs-actions.pod:2508
11564 msgid ""
11565 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
11566 msgstr ""
11567
11568 # type: =head2
11569 #. type: =head2
11570 #: ../src/guestfs-actions.pod:2515
11571 msgid "guestfs_inspect_get_arch"
11572 msgstr ""
11573
11574 # type: verbatim
11575 #. type: verbatim
11576 #: ../src/guestfs-actions.pod:2517
11577 #, no-wrap
11578 msgid ""
11579 " char *\n"
11580 " guestfs_inspect_get_arch (guestfs_h *g,\n"
11581 "                           const char *root);\n"
11582 "\n"
11583 msgstr ""
11584
11585 # type: textblock
11586 #. type: textblock
11587 #: ../src/guestfs-actions.pod:2521
11588 msgid ""
11589 "This returns the architecture of the inspected operating system.  The "
11590 "possible return values are listed under C<guestfs_file_architecture>."
11591 msgstr ""
11592
11593 # type: textblock
11594 #. type: textblock
11595 #: ../src/guestfs-actions.pod:2525 ../fish/guestfish-actions.pod:1694
11596 msgid ""
11597 "If the architecture could not be determined, then the string C<unknown> is "
11598 "returned."
11599 msgstr ""
11600
11601 # type: textblock
11602 #. type: textblock
11603 #: ../src/guestfs-actions.pod:2528 ../src/guestfs-actions.pod:2618
11604 #: ../src/guestfs-actions.pod:2722 ../src/guestfs-actions.pod:2741
11605 #: ../src/guestfs-actions.pod:2872 ../src/guestfs-actions.pod:2955
11606 #: ../src/guestfs-actions.pod:2983 ../src/guestfs-actions.pod:3004
11607 #: ../src/guestfs-actions.pod:3057 ../src/guestfs-actions.pod:3097
11608 #: ../src/guestfs-actions.pod:3117 ../src/guestfs-actions.pod:3137
11609 #: ../src/guestfs-actions.pod:3154 ../src/guestfs-actions.pod:3170
11610 #: ../src/guestfs-actions.pod:3188 ../src/guestfs-actions.pod:3290
11611 #: ../src/guestfs-actions.pod:3331 ../fish/guestfish-actions.pod:1697
11612 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1859
11613 #: ../fish/guestfish-actions.pod:1871 ../fish/guestfish-actions.pod:1955
11614 #: ../fish/guestfish-actions.pod:2016 ../fish/guestfish-actions.pod:2037
11615 #: ../fish/guestfish-actions.pod:2051 ../fish/guestfish-actions.pod:2091
11616 #: ../fish/guestfish-actions.pod:2123 ../fish/guestfish-actions.pod:2136
11617 #: ../fish/guestfish-actions.pod:2149 ../fish/guestfish-actions.pod:2159
11618 #: ../fish/guestfish-actions.pod:2169 ../fish/guestfish-actions.pod:2181
11619 #: ../fish/guestfish-actions.pod:2277 ../fish/guestfish-actions.pod:2311
11620 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
11621 msgstr ""
11622
11623 # type: =head2
11624 #. type: =head2
11625 #: ../src/guestfs-actions.pod:2535
11626 msgid "guestfs_inspect_get_distro"
11627 msgstr ""
11628
11629 # type: verbatim
11630 #. type: verbatim
11631 #: ../src/guestfs-actions.pod:2537
11632 #, no-wrap
11633 msgid ""
11634 " char *\n"
11635 " guestfs_inspect_get_distro (guestfs_h *g,\n"
11636 "                             const char *root);\n"
11637 "\n"
11638 msgstr ""
11639
11640 # type: textblock
11641 #. type: textblock
11642 #: ../src/guestfs-actions.pod:2541 ../fish/guestfish-actions.pod:1703
11643 msgid ""
11644 "This returns the distro (distribution) of the inspected operating system."
11645 msgstr ""
11646
11647 # type: textblock
11648 #. type: textblock
11649 #: ../src/guestfs-actions.pod:2544 ../fish/guestfish-actions.pod:1706
11650 msgid "Currently defined distros are:"
11651 msgstr ""
11652
11653 # type: =item
11654 #. type: =item
11655 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1710
11656 msgid "\"archlinux\""
11657 msgstr ""
11658
11659 # type: textblock
11660 #. type: textblock
11661 #: ../src/guestfs-actions.pod:2550 ../fish/guestfish-actions.pod:1712
11662 msgid "Arch Linux."
11663 msgstr ""
11664
11665 #. type: =item
11666 #: ../src/guestfs-actions.pod:2552 ../fish/guestfish-actions.pod:1714
11667 msgid "\"centos\""
11668 msgstr ""
11669
11670 #. type: textblock
11671 #: ../src/guestfs-actions.pod:2554 ../fish/guestfish-actions.pod:1716
11672 msgid "CentOS."
11673 msgstr ""
11674
11675 # type: =item
11676 #. type: =item
11677 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:1718
11678 msgid "\"debian\""
11679 msgstr ""
11680
11681 # type: textblock
11682 #. type: textblock
11683 #: ../src/guestfs-actions.pod:2558 ../fish/guestfish-actions.pod:1720
11684 msgid "Debian."
11685 msgstr ""
11686
11687 # type: =item
11688 #. type: =item
11689 #: ../src/guestfs-actions.pod:2560 ../fish/guestfish-actions.pod:1722
11690 msgid "\"fedora\""
11691 msgstr ""
11692
11693 # type: textblock
11694 #. type: textblock
11695 #: ../src/guestfs-actions.pod:2562 ../fish/guestfish-actions.pod:1724
11696 msgid "Fedora."
11697 msgstr ""
11698
11699 # type: =item
11700 #. type: =item
11701 #: ../src/guestfs-actions.pod:2564 ../fish/guestfish-actions.pod:1726
11702 msgid "\"gentoo\""
11703 msgstr ""
11704
11705 # type: textblock
11706 #. type: textblock
11707 #: ../src/guestfs-actions.pod:2566 ../fish/guestfish-actions.pod:1728
11708 msgid "Gentoo."
11709 msgstr ""
11710
11711 # type: =item
11712 #. type: =item
11713 #: ../src/guestfs-actions.pod:2568 ../fish/guestfish-actions.pod:1730
11714 msgid "\"linuxmint\""
11715 msgstr ""
11716
11717 # type: textblock
11718 #. type: textblock
11719 #: ../src/guestfs-actions.pod:2570 ../fish/guestfish-actions.pod:1732
11720 msgid "Linux Mint."
11721 msgstr ""
11722
11723 # type: =item
11724 #. type: =item
11725 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:1734
11726 msgid "\"mandriva\""
11727 msgstr ""
11728
11729 # type: textblock
11730 #. type: textblock
11731 #: ../src/guestfs-actions.pod:2574 ../fish/guestfish-actions.pod:1736
11732 msgid "Mandriva."
11733 msgstr ""
11734
11735 # type: =item
11736 #. type: =item
11737 #: ../src/guestfs-actions.pod:2576 ../fish/guestfish-actions.pod:1738
11738 msgid "\"meego\""
11739 msgstr ""
11740
11741 # type: textblock
11742 #. type: textblock
11743 #: ../src/guestfs-actions.pod:2578 ../fish/guestfish-actions.pod:1740
11744 msgid "MeeGo."
11745 msgstr ""
11746
11747 # type: =item
11748 #. type: =item
11749 #: ../src/guestfs-actions.pod:2580 ../fish/guestfish-actions.pod:1742
11750 msgid "\"pardus\""
11751 msgstr ""
11752
11753 # type: textblock
11754 #. type: textblock
11755 #: ../src/guestfs-actions.pod:2582 ../fish/guestfish-actions.pod:1744
11756 msgid "Pardus."
11757 msgstr ""
11758
11759 # type: =item
11760 #. type: =item
11761 #: ../src/guestfs-actions.pod:2584 ../fish/guestfish-actions.pod:1746
11762 msgid "\"redhat-based\""
11763 msgstr ""
11764
11765 # type: textblock
11766 #. type: textblock
11767 #: ../src/guestfs-actions.pod:2586 ../fish/guestfish-actions.pod:1748
11768 msgid "Some Red Hat-derived distro."
11769 msgstr ""
11770
11771 # type: =item
11772 #. type: =item
11773 #: ../src/guestfs-actions.pod:2588 ../fish/guestfish-actions.pod:1750
11774 msgid "\"rhel\""
11775 msgstr ""
11776
11777 #. type: textblock
11778 #: ../src/guestfs-actions.pod:2590 ../fish/guestfish-actions.pod:1752
11779 msgid "Red Hat Enterprise Linux."
11780 msgstr ""
11781
11782 #. type: =item
11783 #: ../src/guestfs-actions.pod:2592 ../fish/guestfish-actions.pod:1754
11784 msgid "\"scientificlinux\""
11785 msgstr ""
11786
11787 #. type: textblock
11788 #: ../src/guestfs-actions.pod:2594 ../fish/guestfish-actions.pod:1756
11789 msgid "Scientific Linux."
11790 msgstr ""
11791
11792 #. type: =item
11793 #: ../src/guestfs-actions.pod:2596 ../fish/guestfish-actions.pod:1758
11794 msgid "\"slackware\""
11795 msgstr ""
11796
11797 #. type: textblock
11798 #: ../src/guestfs-actions.pod:2598 ../fish/guestfish-actions.pod:1760
11799 msgid "Slackware."
11800 msgstr ""
11801
11802 # type: =item
11803 #. type: =item
11804 #: ../src/guestfs-actions.pod:2600 ../fish/guestfish-actions.pod:1762
11805 msgid "\"ubuntu\""
11806 msgstr ""
11807
11808 # type: textblock
11809 #. type: textblock
11810 #: ../src/guestfs-actions.pod:2602 ../fish/guestfish-actions.pod:1764
11811 msgid "Ubuntu."
11812 msgstr ""
11813
11814 # type: =item
11815 #. type: =item
11816 #: ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2713
11817 #: ../src/guestfs-actions.pod:3088 ../fish/guestfish-actions.pod:1766
11818 #: ../fish/guestfish-actions.pod:1850 ../fish/guestfish-actions.pod:2114
11819 msgid "\"unknown\""
11820 msgstr ""
11821
11822 # type: textblock
11823 #. type: textblock
11824 #: ../src/guestfs-actions.pod:2606 ../fish/guestfish-actions.pod:1768
11825 msgid "The distro could not be determined."
11826 msgstr ""
11827
11828 # type: =item
11829 #. type: =item
11830 #: ../src/guestfs-actions.pod:2608 ../src/guestfs-actions.pod:3080
11831 #: ../fish/guestfish-actions.pod:1770 ../fish/guestfish-actions.pod:2106
11832 msgid "\"windows\""
11833 msgstr ""
11834
11835 # type: textblock
11836 #. type: textblock
11837 #: ../src/guestfs-actions.pod:2610 ../fish/guestfish-actions.pod:1772
11838 msgid ""
11839 "Windows does not have distributions.  This string is returned if the OS type "
11840 "is Windows."
11841 msgstr ""
11842
11843 # type: textblock
11844 #. type: textblock
11845 #: ../src/guestfs-actions.pod:2615 ../src/guestfs-actions.pod:2719
11846 #: ../src/guestfs-actions.pod:3094 ../fish/guestfish-actions.pod:1777
11847 #: ../fish/guestfish-actions.pod:1856 ../fish/guestfish-actions.pod:2120
11848 msgid ""
11849 "Future versions of libguestfs may return other strings here.  The caller "
11850 "should be prepared to handle any string."
11851 msgstr ""
11852
11853 #. type: =head2
11854 #: ../src/guestfs-actions.pod:2625
11855 msgid "guestfs_inspect_get_drive_mappings"
11856 msgstr ""
11857
11858 #. type: verbatim
11859 #: ../src/guestfs-actions.pod:2627
11860 #, no-wrap
11861 msgid ""
11862 " char **\n"
11863 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
11864 "                                     const char *root);\n"
11865 "\n"
11866 msgstr ""
11867
11868 #. type: textblock
11869 #: ../src/guestfs-actions.pod:2631 ../fish/guestfish-actions.pod:1786
11870 msgid ""
11871 "This call is useful for Windows which uses a primitive system of assigning "
11872 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
11873 "Windows Registry to find out how disks/partitions are mapped to drive "
11874 "letters, and returns a hash table as in the example below:"
11875 msgstr ""
11876
11877 #. type: verbatim
11878 #: ../src/guestfs-actions.pod:2637 ../fish/guestfish-actions.pod:1792
11879 #, no-wrap
11880 msgid ""
11881 " C      =>     /dev/vda2\n"
11882 " E      =>     /dev/vdb1\n"
11883 " F      =>     /dev/vdc1\n"
11884 "\n"
11885 msgstr ""
11886
11887 #. type: textblock
11888 #: ../src/guestfs-actions.pod:2641 ../fish/guestfish-actions.pod:1796
11889 msgid ""
11890 "Note that keys are drive letters.  For Windows, the key is case insensitive "
11891 "and just contains the drive letter, without the customary colon separator "
11892 "character."
11893 msgstr ""
11894
11895 #. type: textblock
11896 #: ../src/guestfs-actions.pod:2645 ../fish/guestfish-actions.pod:1800
11897 msgid ""
11898 "In future we may support other operating systems that also used drive "
11899 "letters, but the keys for those might not be case insensitive and might be "
11900 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
11901 "C<h1> etc."
11902 msgstr ""
11903
11904 #. type: textblock
11905 #: ../src/guestfs-actions.pod:2650 ../fish/guestfish-actions.pod:1805
11906 msgid ""
11907 "For Windows guests, currently only hard drive mappings are returned.  "
11908 "Removable disks (eg. DVD-ROMs) are ignored."
11909 msgstr ""
11910
11911 #. type: textblock
11912 #: ../src/guestfs-actions.pod:2653 ../fish/guestfish-actions.pod:1808
11913 msgid ""
11914 "For guests that do not use drive mappings, or if the drive mappings could "
11915 "not be determined, this returns an empty hash table."
11916 msgstr ""
11917
11918 #. type: textblock
11919 #: ../src/guestfs-actions.pod:2656
11920 msgid ""
11921 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11922 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
11923 msgstr ""
11924
11925 # type: textblock
11926 #. type: textblock
11927 #: ../src/guestfs-actions.pod:2660 ../src/guestfs-actions.pod:2928
11928 #: ../src/guestfs-actions.pod:3726 ../src/guestfs-actions.pod:5008
11929 #: ../src/guestfs-actions.pod:7037
11930 msgid ""
11931 "This function returns a NULL-terminated array of strings, or NULL if there "
11932 "was an error.  The array of strings will always have length C<2n+1>, where "
11933 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
11934 "caller must free the strings and the array after use>."
11935 msgstr ""
11936
11937 #. type: textblock
11938 #: ../src/guestfs-actions.pod:2666 ../src/guestfs-actions.pod:3122
11939 msgid "(Added in 1.9.17)"
11940 msgstr ""
11941
11942 # type: =head2
11943 #. type: =head2
11944 #: ../src/guestfs-actions.pod:2668
11945 msgid "guestfs_inspect_get_filesystems"
11946 msgstr ""
11947
11948 # type: verbatim
11949 #. type: verbatim
11950 #: ../src/guestfs-actions.pod:2670
11951 #, no-wrap
11952 msgid ""
11953 " char **\n"
11954 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
11955 "                                  const char *root);\n"
11956 "\n"
11957 msgstr ""
11958
11959 # type: textblock
11960 #. type: textblock
11961 #: ../src/guestfs-actions.pod:2674 ../fish/guestfish-actions.pod:1819
11962 msgid ""
11963 "This returns a list of all the filesystems that we think are associated with "
11964 "this operating system.  This includes the root filesystem, other ordinary "
11965 "filesystems, and non-mounted devices like swap partitions."
11966 msgstr ""
11967
11968 # type: textblock
11969 #. type: textblock
11970 #: ../src/guestfs-actions.pod:2679 ../fish/guestfish-actions.pod:1824
11971 msgid ""
11972 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
11973 "to be shared between operating systems."
11974 msgstr ""
11975
11976 # type: textblock
11977 #. type: textblock
11978 #: ../src/guestfs-actions.pod:2682
11979 msgid ""
11980 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11981 "C<guestfs_inspect_get_mountpoints>."
11982 msgstr ""
11983
11984 #. type: =head2
11985 #: ../src/guestfs-actions.pod:2691
11986 msgid "guestfs_inspect_get_format"
11987 msgstr ""
11988
11989 #. type: verbatim
11990 #: ../src/guestfs-actions.pod:2693
11991 #, no-wrap
11992 msgid ""
11993 " char *\n"
11994 " guestfs_inspect_get_format (guestfs_h *g,\n"
11995 "                             const char *root);\n"
11996 "\n"
11997 msgstr ""
11998
11999 #. type: textblock
12000 #: ../src/guestfs-actions.pod:2697 ../fish/guestfish-actions.pod:1834
12001 msgid ""
12002 "This returns the format of the inspected operating system.  You can use it "
12003 "to detect install images, live CDs and similar."
12004 msgstr ""
12005
12006 #. type: textblock
12007 #: ../src/guestfs-actions.pod:2700 ../fish/guestfish-actions.pod:1837
12008 msgid "Currently defined formats are:"
12009 msgstr ""
12010
12011 #. type: =item
12012 #: ../src/guestfs-actions.pod:2704 ../fish/guestfish-actions.pod:1841
12013 msgid "\"installed\""
12014 msgstr ""
12015
12016 #. type: textblock
12017 #: ../src/guestfs-actions.pod:2706 ../fish/guestfish-actions.pod:1843
12018 msgid "This is an installed operating system."
12019 msgstr ""
12020
12021 #. type: =item
12022 #: ../src/guestfs-actions.pod:2708 ../fish/guestfish-actions.pod:1845
12023 msgid "\"installer\""
12024 msgstr ""
12025
12026 #. type: textblock
12027 #: ../src/guestfs-actions.pod:2710 ../fish/guestfish-actions.pod:1847
12028 msgid ""
12029 "The disk image being inspected is not an installed operating system, but a "
12030 "I<bootable> install disk, live CD, or similar."
12031 msgstr ""
12032
12033 #. type: textblock
12034 #: ../src/guestfs-actions.pod:2715 ../fish/guestfish-actions.pod:1852
12035 msgid "The format of this disk image is not known."
12036 msgstr ""
12037
12038 #. type: textblock
12039 #: ../src/guestfs-actions.pod:2727 ../src/guestfs-actions.pod:3158
12040 #: ../src/guestfs-actions.pod:3174 ../src/guestfs-actions.pod:3192
12041 #: ../src/guestfs-actions.pod:5952
12042 msgid "(Added in 1.9.4)"
12043 msgstr ""
12044
12045 # type: =head2
12046 #. type: =head2
12047 #: ../src/guestfs-actions.pod:2729
12048 msgid "guestfs_inspect_get_hostname"
12049 msgstr ""
12050
12051 # type: verbatim
12052 #. type: verbatim
12053 #: ../src/guestfs-actions.pod:2731
12054 #, no-wrap
12055 msgid ""
12056 " char *\n"
12057 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
12058 "                               const char *root);\n"
12059 "\n"
12060 msgstr ""
12061
12062 # type: textblock
12063 #. type: textblock
12064 #: ../src/guestfs-actions.pod:2735 ../fish/guestfish-actions.pod:1865
12065 msgid ""
12066 "This function returns the hostname of the operating system as found by "
12067 "inspection of the guest's configuration files."
12068 msgstr ""
12069
12070 # type: textblock
12071 #. type: textblock
12072 #: ../src/guestfs-actions.pod:2738 ../fish/guestfish-actions.pod:1868
12073 msgid ""
12074 "If the hostname could not be determined, then the string C<unknown> is "
12075 "returned."
12076 msgstr ""
12077
12078 # type: textblock
12079 #. type: textblock
12080 #: ../src/guestfs-actions.pod:2746
12081 msgid "(Added in 1.7.9)"
12082 msgstr ""
12083
12084 #. type: =head2
12085 #: ../src/guestfs-actions.pod:2748
12086 msgid "guestfs_inspect_get_icon"
12087 msgstr ""
12088
12089 #. type: verbatim
12090 #: ../src/guestfs-actions.pod:2750
12091 #, no-wrap
12092 msgid ""
12093 " char *\n"
12094 " guestfs_inspect_get_icon (guestfs_h *g,\n"
12095 "                           const char *root,\n"
12096 "                           size_t *size_r,\n"
12097 "                           ...);\n"
12098 "\n"
12099 msgstr ""
12100
12101 #. type: verbatim
12102 #: ../src/guestfs-actions.pod:2761
12103 #, no-wrap
12104 msgid ""
12105 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
12106 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
12107 "\n"
12108 msgstr ""
12109
12110 #. type: textblock
12111 #: ../src/guestfs-actions.pod:2764 ../fish/guestfish-actions.pod:1877
12112 msgid ""
12113 "This function returns an icon corresponding to the inspected operating "
12114 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
12115 "to PNG if necessary)."
12116 msgstr ""
12117
12118 #. type: textblock
12119 #: ../src/guestfs-actions.pod:2768 ../fish/guestfish-actions.pod:1881
12120 msgid ""
12121 "If it was not possible to get an icon this function returns a zero-length "
12122 "(non-NULL) buffer.  I<Callers must check for this case>."
12123 msgstr ""
12124
12125 #. type: textblock
12126 #: ../src/guestfs-actions.pod:2771 ../fish/guestfish-actions.pod:1884
12127 msgid ""
12128 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
12129 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
12130 "this file will be returned.  You can disable favicons by passing the "
12131 "optional C<favicon> boolean as false (default is true)."
12132 msgstr ""
12133
12134 #. type: textblock
12135 #: ../src/guestfs-actions.pod:2777 ../fish/guestfish-actions.pod:1890
12136 msgid ""
12137 "If finding the favicon fails, then we look in other places in the guest for "
12138 "a suitable icon."
12139 msgstr ""
12140
12141 #. type: textblock
12142 #: ../src/guestfs-actions.pod:2780 ../fish/guestfish-actions.pod:1893
12143 msgid ""
12144 "If the optional C<highquality> boolean is true then only high quality icons "
12145 "are returned, which means only icons of high resolution with an alpha "
12146 "channel.  The default (false) is to return any icon we can, even if it is of "
12147 "substandard quality."
12148 msgstr ""
12149
12150 #. type: textblock
12151 #: ../src/guestfs-actions.pod:2791 ../fish/guestfish-actions.pod:1904
12152 msgid ""
12153 "Unlike most other inspection API calls, the guest's disks must be mounted up "
12154 "before you call this, since it needs to read information from the guest "
12155 "filesystem during the call."
12156 msgstr ""
12157
12158 #. type: textblock
12159 #: ../src/guestfs-actions.pod:2797 ../fish/guestfish-actions.pod:1910
12160 msgid ""
12161 "B<Security:> The icon data comes from the untrusted guest, and should be "
12162 "treated with caution.  PNG files have been known to contain exploits.  "
12163 "Ensure that libpng (or other relevant libraries) are fully up to date before "
12164 "trying to process or display the icon."
12165 msgstr ""
12166
12167 #. type: textblock
12168 #: ../src/guestfs-actions.pod:2805 ../fish/guestfish-actions.pod:1918
12169 msgid ""
12170 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
12171 "tries to return the largest, highest quality icon available.  The "
12172 "application must scale the icon to the required size."
12173 msgstr ""
12174
12175 #. type: textblock
12176 #: ../src/guestfs-actions.pod:2812 ../fish/guestfish-actions.pod:1925
12177 msgid ""
12178 "Extracting icons from Windows guests requires the external C<wrestool> "
12179 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
12180 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
12181 "installed separately."
12182 msgstr ""
12183
12184 #. type: textblock
12185 #: ../src/guestfs-actions.pod:2819 ../fish/guestfish-actions.pod:1932
12186 msgid ""
12187 "Operating system icons are usually trademarks.  Seek legal advice before "
12188 "using trademarks in applications."
12189 msgstr ""
12190
12191 #. type: textblock
12192 #: ../src/guestfs-actions.pod:2828 ../src/guestfs-actions.pod:3653
12193 #: ../src/guestfs-actions.pod:4907
12194 msgid "(Added in 1.11.12)"
12195 msgstr ""
12196
12197 #. type: =head2
12198 #: ../src/guestfs-actions.pod:2830
12199 msgid "guestfs_inspect_get_icon_va"
12200 msgstr ""
12201
12202 #. type: verbatim
12203 #: ../src/guestfs-actions.pod:2832
12204 #, no-wrap
12205 msgid ""
12206 " char *\n"
12207 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
12208 "                              const char *root,\n"
12209 "                              size_t *size_r,\n"
12210 "                              va_list args);\n"
12211 "\n"
12212 msgstr ""
12213
12214 #. type: textblock
12215 #: ../src/guestfs-actions.pod:2838
12216 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
12217 msgstr ""
12218
12219 #. type: =head2
12220 #: ../src/guestfs-actions.pod:2842
12221 msgid "guestfs_inspect_get_icon_argv"
12222 msgstr ""
12223
12224 #. type: verbatim
12225 #: ../src/guestfs-actions.pod:2844
12226 #, no-wrap
12227 msgid ""
12228 " char *\n"
12229 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
12230 "                                const char *root,\n"
12231 "                                size_t *size_r,\n"
12232 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
12233 "\n"
12234 msgstr ""
12235
12236 #. type: textblock
12237 #: ../src/guestfs-actions.pod:2850
12238 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
12239 msgstr ""
12240
12241 # type: =head2
12242 #. type: =head2
12243 #: ../src/guestfs-actions.pod:2854
12244 msgid "guestfs_inspect_get_major_version"
12245 msgstr ""
12246
12247 # type: verbatim
12248 #. type: verbatim
12249 #: ../src/guestfs-actions.pod:2856
12250 #, no-wrap
12251 msgid ""
12252 " int\n"
12253 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
12254 "                                    const char *root);\n"
12255 "\n"
12256 msgstr ""
12257
12258 # type: textblock
12259 #. type: textblock
12260 #: ../src/guestfs-actions.pod:2860 ../fish/guestfish-actions.pod:1943
12261 msgid ""
12262 "This returns the major version number of the inspected operating system."
12263 msgstr ""
12264
12265 # type: textblock
12266 #. type: textblock
12267 #: ../src/guestfs-actions.pod:2863 ../fish/guestfish-actions.pod:1946
12268 msgid ""
12269 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
12270 "popular public names used by the operating system.  Notably the operating "
12271 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
12272 "1).  You can find out the real versions corresponding to releases of Windows "
12273 "by consulting Wikipedia or MSDN."
12274 msgstr ""
12275
12276 # type: textblock
12277 #. type: textblock
12278 #: ../src/guestfs-actions.pod:2870 ../src/guestfs-actions.pod:2887
12279 #: ../fish/guestfish-actions.pod:1953 ../fish/guestfish-actions.pod:1964
12280 msgid "If the version could not be determined, then C<0> is returned."
12281 msgstr ""
12282
12283 # type: =head2
12284 #. type: =head2
12285 #: ../src/guestfs-actions.pod:2878
12286 msgid "guestfs_inspect_get_minor_version"
12287 msgstr ""
12288
12289 # type: verbatim
12290 #. type: verbatim
12291 #: ../src/guestfs-actions.pod:2880
12292 #, no-wrap
12293 msgid ""
12294 " int\n"
12295 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
12296 "                                    const char *root);\n"
12297 "\n"
12298 msgstr ""
12299
12300 # type: textblock
12301 #. type: textblock
12302 #: ../src/guestfs-actions.pod:2884 ../fish/guestfish-actions.pod:1961
12303 msgid ""
12304 "This returns the minor version number of the inspected operating system."
12305 msgstr ""
12306
12307 # type: textblock
12308 #. type: textblock
12309 #: ../src/guestfs-actions.pod:2889
12310 msgid ""
12311 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
12312 "C<guestfs_inspect_get_major_version>."
12313 msgstr ""
12314
12315 # type: =head2
12316 #. type: =head2
12317 #: ../src/guestfs-actions.pod:2896
12318 msgid "guestfs_inspect_get_mountpoints"
12319 msgstr ""
12320
12321 # type: verbatim
12322 #. type: verbatim
12323 #: ../src/guestfs-actions.pod:2898
12324 #, no-wrap
12325 msgid ""
12326 " char **\n"
12327 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
12328 "                                  const char *root);\n"
12329 "\n"
12330 msgstr ""
12331
12332 #. type: textblock
12333 #: ../src/guestfs-actions.pod:2902 ../fish/guestfish-actions.pod:1973
12334 msgid ""
12335 "This returns a hash of where we think the filesystems associated with this "
12336 "operating system should be mounted.  Callers should note that this is at "
12337 "best an educated guess made by reading configuration files such as C</etc/"
12338 "fstab>.  I<In particular note> that this may return filesystems which are "
12339 "non-existent or not mountable and callers should be prepared to handle or "
12340 "ignore failures if they try to mount them."
12341 msgstr ""
12342
12343 # type: textblock
12344 #. type: textblock
12345 #: ../src/guestfs-actions.pod:2911 ../fish/guestfish-actions.pod:1982
12346 msgid ""
12347 "Each element in the returned hashtable has a key which is the path of the "
12348 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
12349 "mounted there (eg. C</dev/sda1>)."
12350 msgstr ""
12351
12352 # type: textblock
12353 #. type: textblock
12354 #: ../src/guestfs-actions.pod:2916 ../fish/guestfish-actions.pod:1987
12355 msgid ""
12356 "Non-mounted devices such as swap devices are I<not> returned in this list."
12357 msgstr ""
12358
12359 #. type: textblock
12360 #: ../src/guestfs-actions.pod:2919
12361 msgid ""
12362 "For operating systems like Windows which still use drive letters, this call "
12363 "will only return an entry for the first drive \"mounted on\" C</>.  For "
12364 "information about the mapping of drive letters to partitions, see "
12365 "C<guestfs_inspect_get_drive_mappings>."
12366 msgstr ""
12367
12368 # type: textblock
12369 #. type: textblock
12370 #: ../src/guestfs-actions.pod:2925
12371 msgid ""
12372 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
12373 "C<guestfs_inspect_get_filesystems>."
12374 msgstr ""
12375
12376 # type: =head2
12377 #. type: =head2
12378 #: ../src/guestfs-actions.pod:2936
12379 msgid "guestfs_inspect_get_package_format"
12380 msgstr ""
12381
12382 # type: verbatim
12383 #. type: verbatim
12384 #: ../src/guestfs-actions.pod:2938
12385 #, no-wrap
12386 msgid ""
12387 " char *\n"
12388 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
12389 "                                     const char *root);\n"
12390 "\n"
12391 msgstr ""
12392
12393 # type: textblock
12394 #. type: textblock
12395 #: ../src/guestfs-actions.pod:2942
12396 msgid ""
12397 "This function and C<guestfs_inspect_get_package_management> return the "
12398 "package format and package management tool used by the inspected operating "
12399 "system.  For example for Fedora these functions would return C<rpm> (package "
12400 "format) and C<yum> (package management)."
12401 msgstr ""
12402
12403 # type: textblock
12404 #. type: textblock
12405 #: ../src/guestfs-actions.pod:2948 ../fish/guestfish-actions.pod:2009
12406 msgid ""
12407 "This returns the string C<unknown> if we could not determine the package "
12408 "format I<or> if the operating system does not have a real packaging system "
12409 "(eg. Windows)."
12410 msgstr ""
12411
12412 # type: textblock
12413 #. type: textblock
12414 #: ../src/guestfs-actions.pod:2952 ../fish/guestfish-actions.pod:2013
12415 msgid ""
12416 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
12417 "Future versions of libguestfs may return other strings."
12418 msgstr ""
12419
12420 # type: textblock
12421 #. type: textblock
12422 #: ../src/guestfs-actions.pod:2960 ../src/guestfs-actions.pod:2988
12423 msgid "(Added in 1.7.5)"
12424 msgstr ""
12425
12426 # type: =head2
12427 #. type: =head2
12428 #: ../src/guestfs-actions.pod:2962
12429 msgid "guestfs_inspect_get_package_management"
12430 msgstr ""
12431
12432 # type: verbatim
12433 #. type: verbatim
12434 #: ../src/guestfs-actions.pod:2964
12435 #, no-wrap
12436 msgid ""
12437 " char *\n"
12438 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
12439 "                                         const char *root);\n"
12440 "\n"
12441 msgstr ""
12442
12443 # type: textblock
12444 #. type: textblock
12445 #: ../src/guestfs-actions.pod:2968
12446 msgid ""
12447 "C<guestfs_inspect_get_package_format> and this function return the package "
12448 "format and package management tool used by the inspected operating system.  "
12449 "For example for Fedora these functions would return C<rpm> (package format) "
12450 "and C<yum> (package management)."
12451 msgstr ""
12452
12453 # type: textblock
12454 #. type: textblock
12455 #: ../src/guestfs-actions.pod:2974 ../fish/guestfish-actions.pod:2028
12456 msgid ""
12457 "This returns the string C<unknown> if we could not determine the package "
12458 "management tool I<or> if the operating system does not have a real packaging "
12459 "system (eg. Windows)."
12460 msgstr ""
12461
12462 # type: textblock
12463 #. type: textblock
12464 #: ../src/guestfs-actions.pod:2978 ../fish/guestfish-actions.pod:2032
12465 msgid ""
12466 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
12467 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
12468 "libguestfs may return other strings."
12469 msgstr ""
12470
12471 # type: =head2
12472 #. type: =head2
12473 #: ../src/guestfs-actions.pod:2990
12474 msgid "guestfs_inspect_get_product_name"
12475 msgstr ""
12476
12477 # type: verbatim
12478 #. type: verbatim
12479 #: ../src/guestfs-actions.pod:2992
12480 #, no-wrap
12481 msgid ""
12482 " char *\n"
12483 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
12484 "                                   const char *root);\n"
12485 "\n"
12486 msgstr ""
12487
12488 # type: textblock
12489 #. type: textblock
12490 #: ../src/guestfs-actions.pod:2996 ../fish/guestfish-actions.pod:2043
12491 msgid ""
12492 "This returns the product name of the inspected operating system.  The "
12493 "product name is generally some freeform string which can be displayed to the "
12494 "user, but should not be parsed by programs."
12495 msgstr ""
12496
12497 # type: textblock
12498 #. type: textblock
12499 #: ../src/guestfs-actions.pod:3001 ../fish/guestfish-actions.pod:2048
12500 msgid ""
12501 "If the product name could not be determined, then the string C<unknown> is "
12502 "returned."
12503 msgstr ""
12504
12505 #. type: =head2
12506 #: ../src/guestfs-actions.pod:3011
12507 msgid "guestfs_inspect_get_product_variant"
12508 msgstr ""
12509
12510 #. type: verbatim
12511 #: ../src/guestfs-actions.pod:3013
12512 #, no-wrap
12513 msgid ""
12514 " char *\n"
12515 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
12516 "                                      const char *root);\n"
12517 "\n"
12518 msgstr ""
12519
12520 #. type: textblock
12521 #: ../src/guestfs-actions.pod:3017 ../fish/guestfish-actions.pod:2057
12522 msgid "This returns the product variant of the inspected operating system."
12523 msgstr ""
12524
12525 #. type: textblock
12526 #: ../src/guestfs-actions.pod:3020 ../fish/guestfish-actions.pod:2060
12527 msgid ""
12528 "For Windows guests, this returns the contents of the Registry key C<HKLM"
12529 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
12530 "is usually a string such as C<Client> or C<Server> (other values are "
12531 "possible).  This can be used to distinguish consumer and enterprise versions "
12532 "of Windows that have the same version number (for example, Windows 7 and "
12533 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
12534 "the latter is C<Server>)."
12535 msgstr ""
12536
12537 #. type: textblock
12538 #: ../src/guestfs-actions.pod:3029 ../fish/guestfish-actions.pod:2069
12539 msgid ""
12540 "For enterprise Linux guests, in future we intend this to return the product "
12541 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
12542 "implemented at present."
12543 msgstr ""
12544
12545 #. type: textblock
12546 #: ../src/guestfs-actions.pod:3033 ../fish/guestfish-actions.pod:2073
12547 msgid ""
12548 "If the product variant could not be determined, then the string C<unknown> "
12549 "is returned."
12550 msgstr ""
12551
12552 #. type: textblock
12553 #: ../src/guestfs-actions.pod:3036
12554 msgid ""
12555 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
12556 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
12557 msgstr ""
12558
12559 #. type: textblock
12560 #: ../src/guestfs-actions.pod:3043
12561 msgid "(Added in 1.9.13)"
12562 msgstr ""
12563
12564 # type: =head2
12565 #. type: =head2
12566 #: ../src/guestfs-actions.pod:3045
12567 msgid "guestfs_inspect_get_roots"
12568 msgstr ""
12569
12570 # type: verbatim
12571 #. type: verbatim
12572 #: ../src/guestfs-actions.pod:3047
12573 #, no-wrap
12574 msgid ""
12575 " char **\n"
12576 " guestfs_inspect_get_roots (guestfs_h *g);\n"
12577 "\n"
12578 msgstr ""
12579
12580 # type: textblock
12581 #. type: textblock
12582 #: ../src/guestfs-actions.pod:3050
12583 msgid ""
12584 "This function is a convenient way to get the list of root devices, as "
12585 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
12586 "the whole inspection process."
12587 msgstr ""
12588
12589 # type: textblock
12590 #. type: textblock
12591 #: ../src/guestfs-actions.pod:3054
12592 msgid ""
12593 "This returns an empty list if either no root devices were found or the "
12594 "caller has not called C<guestfs_inspect_os>."
12595 msgstr ""
12596
12597 # type: textblock
12598 #. type: textblock
12599 #: ../src/guestfs-actions.pod:3063
12600 msgid "(Added in 1.7.3)"
12601 msgstr ""
12602
12603 # type: =head2
12604 #. type: =head2
12605 #: ../src/guestfs-actions.pod:3065
12606 msgid "guestfs_inspect_get_type"
12607 msgstr ""
12608
12609 # type: verbatim
12610 #. type: verbatim
12611 #: ../src/guestfs-actions.pod:3067
12612 #, no-wrap
12613 msgid ""
12614 " char *\n"
12615 " guestfs_inspect_get_type (guestfs_h *g,\n"
12616 "                           const char *root);\n"
12617 "\n"
12618 msgstr ""
12619
12620 # type: textblock
12621 #. type: textblock
12622 #: ../src/guestfs-actions.pod:3071 ../fish/guestfish-actions.pod:2097
12623 msgid ""
12624 "This returns the type of the inspected operating system.  Currently defined "
12625 "types are:"
12626 msgstr ""
12627
12628 # type: =item
12629 #. type: =item
12630 #: ../src/guestfs-actions.pod:3076 ../fish/guestfish-actions.pod:2102
12631 msgid "\"linux\""
12632 msgstr ""
12633
12634 # type: textblock
12635 #. type: textblock
12636 #: ../src/guestfs-actions.pod:3078 ../fish/guestfish-actions.pod:2104
12637 msgid "Any Linux-based operating system."
12638 msgstr ""
12639
12640 # type: textblock
12641 #. type: textblock
12642 #: ../src/guestfs-actions.pod:3082 ../fish/guestfish-actions.pod:2108
12643 msgid "Any Microsoft Windows operating system."
12644 msgstr ""
12645
12646 # type: =item
12647 #. type: =item
12648 #: ../src/guestfs-actions.pod:3084 ../fish/guestfish-actions.pod:2110
12649 msgid "\"freebsd\""
12650 msgstr ""
12651
12652 # type: textblock
12653 #. type: textblock
12654 #: ../src/guestfs-actions.pod:3086 ../fish/guestfish-actions.pod:2112
12655 msgid "FreeBSD."
12656 msgstr ""
12657
12658 # type: textblock
12659 #. type: textblock
12660 #: ../src/guestfs-actions.pod:3090 ../fish/guestfish-actions.pod:2116
12661 msgid "The operating system type could not be determined."
12662 msgstr ""
12663
12664 #. type: =head2
12665 #: ../src/guestfs-actions.pod:3104
12666 msgid "guestfs_inspect_get_windows_current_control_set"
12667 msgstr ""
12668
12669 #. type: verbatim
12670 #: ../src/guestfs-actions.pod:3106
12671 #, no-wrap
12672 msgid ""
12673 " char *\n"
12674 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
12675 "                                                  const char *root);\n"
12676 "\n"
12677 msgstr ""
12678
12679 #. type: textblock
12680 #: ../src/guestfs-actions.pod:3110 ../fish/guestfish-actions.pod:2129
12681 msgid ""
12682 "This returns the Windows CurrentControlSet of the inspected guest.  The "
12683 "CurrentControlSet is a registry key name such as C<ControlSet001>."
12684 msgstr ""
12685
12686 #. type: textblock
12687 #: ../src/guestfs-actions.pod:3113 ../fish/guestfish-actions.pod:2132
12688 msgid ""
12689 "This call assumes that the guest is Windows and that the Registry could be "
12690 "examined by inspection.  If this is not the case then an error is returned."
12691 msgstr ""
12692
12693 # type: =head2
12694 #. type: =head2
12695 #: ../src/guestfs-actions.pod:3124
12696 msgid "guestfs_inspect_get_windows_systemroot"
12697 msgstr ""
12698
12699 # type: verbatim
12700 #. type: verbatim
12701 #: ../src/guestfs-actions.pod:3126
12702 #, no-wrap
12703 msgid ""
12704 " char *\n"
12705 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
12706 "                                         const char *root);\n"
12707 "\n"
12708 msgstr ""
12709
12710 # type: textblock
12711 #. type: textblock
12712 #: ../src/guestfs-actions.pod:3130 ../fish/guestfish-actions.pod:2142
12713 msgid ""
12714 "This returns the Windows systemroot of the inspected guest.  The systemroot "
12715 "is a directory path such as C</WINDOWS>."
12716 msgstr ""
12717
12718 # type: textblock
12719 #. type: textblock
12720 #: ../src/guestfs-actions.pod:3133 ../fish/guestfish-actions.pod:2145
12721 msgid ""
12722 "This call assumes that the guest is Windows and that the systemroot could be "
12723 "determined by inspection.  If this is not the case then an error is returned."
12724 msgstr ""
12725
12726 # type: textblock
12727 #. type: textblock
12728 #: ../src/guestfs-actions.pod:3142
12729 msgid "(Added in 1.5.25)"
12730 msgstr ""
12731
12732 #. type: =head2
12733 #: ../src/guestfs-actions.pod:3144
12734 msgid "guestfs_inspect_is_live"
12735 msgstr ""
12736
12737 #. type: verbatim
12738 #: ../src/guestfs-actions.pod:3146
12739 #, no-wrap
12740 msgid ""
12741 " int\n"
12742 " guestfs_inspect_is_live (guestfs_h *g,\n"
12743 "                          const char *root);\n"
12744 "\n"
12745 msgstr ""
12746
12747 #. type: textblock
12748 #: ../src/guestfs-actions.pod:3150
12749 msgid ""
12750 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12751 "disk), then this returns true if a live image was detected on the disk."
12752 msgstr ""
12753
12754 #. type: =head2
12755 #: ../src/guestfs-actions.pod:3160
12756 msgid "guestfs_inspect_is_multipart"
12757 msgstr ""
12758
12759 #. type: verbatim
12760 #: ../src/guestfs-actions.pod:3162
12761 #, no-wrap
12762 msgid ""
12763 " int\n"
12764 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
12765 "                               const char *root);\n"
12766 "\n"
12767 msgstr ""
12768
12769 #. type: textblock
12770 #: ../src/guestfs-actions.pod:3166
12771 msgid ""
12772 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12773 "disk), then this returns true if the disk is part of a set."
12774 msgstr ""
12775
12776 #. type: =head2
12777 #: ../src/guestfs-actions.pod:3176
12778 msgid "guestfs_inspect_is_netinst"
12779 msgstr ""
12780
12781 #. type: verbatim
12782 #: ../src/guestfs-actions.pod:3178
12783 #, no-wrap
12784 msgid ""
12785 " int\n"
12786 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
12787 "                             const char *root);\n"
12788 "\n"
12789 msgstr ""
12790
12791 #. type: textblock
12792 #: ../src/guestfs-actions.pod:3182
12793 msgid ""
12794 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12795 "disk), then this returns true if the disk is a network installer, ie. not a "
12796 "self-contained install CD but one which is likely to require network access "
12797 "to complete the install."
12798 msgstr ""
12799
12800 # type: =head2
12801 #. type: =head2
12802 #: ../src/guestfs-actions.pod:3194
12803 msgid "guestfs_inspect_list_applications"
12804 msgstr ""
12805
12806 # type: verbatim
12807 #. type: verbatim
12808 #: ../src/guestfs-actions.pod:3196
12809 #, no-wrap
12810 msgid ""
12811 " struct guestfs_application_list *\n"
12812 " guestfs_inspect_list_applications (guestfs_h *g,\n"
12813 "                                    const char *root);\n"
12814 "\n"
12815 msgstr ""
12816
12817 # type: textblock
12818 #. type: textblock
12819 #: ../src/guestfs-actions.pod:3200 ../fish/guestfish-actions.pod:2187
12820 msgid "Return the list of applications installed in the operating system."
12821 msgstr ""
12822
12823 # type: textblock
12824 #. type: textblock
12825 #: ../src/guestfs-actions.pod:3202
12826 msgid ""
12827 "I<Note:> This call works differently from other parts of the inspection "
12828 "API.  You have to call C<guestfs_inspect_os>, then "
12829 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
12830 "this.  Listing applications is a significantly more difficult operation "
12831 "which requires access to the full filesystem.  Also note that unlike the "
12832 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
12833 "the libguestfs handle, this call actually reads parts of the mounted "
12834 "filesystems during the call."
12835 msgstr ""
12836
12837 # type: textblock
12838 #. type: textblock
12839 #: ../src/guestfs-actions.pod:3212 ../fish/guestfish-actions.pod:2199
12840 msgid ""
12841 "This returns an empty list if the inspection code was not able to determine "
12842 "the list of applications."
12843 msgstr ""
12844
12845 # type: textblock
12846 #. type: textblock
12847 #: ../src/guestfs-actions.pod:3215 ../fish/guestfish-actions.pod:2202
12848 msgid "The application structure contains the following fields:"
12849 msgstr ""
12850
12851 # type: =item
12852 #. type: =item
12853 #: ../src/guestfs-actions.pod:3219 ../fish/guestfish-actions.pod:2206
12854 msgid "C<app_name>"
12855 msgstr ""
12856
12857 # type: textblock
12858 #. type: textblock
12859 #: ../src/guestfs-actions.pod:3221 ../fish/guestfish-actions.pod:2208
12860 msgid ""
12861 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
12862 "guests, this is the package name."
12863 msgstr ""
12864
12865 # type: =item
12866 #. type: =item
12867 #: ../src/guestfs-actions.pod:3224 ../fish/guestfish-actions.pod:2211
12868 msgid "C<app_display_name>"
12869 msgstr ""
12870
12871 # type: textblock
12872 #. type: textblock
12873 #: ../src/guestfs-actions.pod:3226 ../fish/guestfish-actions.pod:2213
12874 msgid ""
12875 "The display name of the application, sometimes localized to the install "
12876 "language of the guest operating system."
12877 msgstr ""
12878
12879 # type: textblock
12880 #. type: textblock
12881 #: ../src/guestfs-actions.pod:3229 ../fish/guestfish-actions.pod:2216
12882 msgid ""
12883 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
12884 "to display something can use C<app_name> instead."
12885 msgstr ""
12886
12887 # type: =item
12888 #. type: =item
12889 #: ../src/guestfs-actions.pod:3232 ../fish/guestfish-actions.pod:2219
12890 msgid "C<app_epoch>"
12891 msgstr ""
12892
12893 # type: textblock
12894 #. type: textblock
12895 #: ../src/guestfs-actions.pod:3234 ../fish/guestfish-actions.pod:2221
12896 msgid ""
12897 "For package managers which use epochs, this contains the epoch of the "
12898 "package (an integer).  If unavailable, this is returned as C<0>."
12899 msgstr ""
12900
12901 # type: =item
12902 #. type: =item
12903 #: ../src/guestfs-actions.pod:3237 ../fish/guestfish-actions.pod:2224
12904 msgid "C<app_version>"
12905 msgstr ""
12906
12907 # type: textblock
12908 #. type: textblock
12909 #: ../src/guestfs-actions.pod:3239 ../fish/guestfish-actions.pod:2226
12910 msgid ""
12911 "The version string of the application or package.  If unavailable this is "
12912 "returned as an empty string C<\"\">."
12913 msgstr ""
12914
12915 # type: =item
12916 #. type: =item
12917 #: ../src/guestfs-actions.pod:3242 ../fish/guestfish-actions.pod:2229
12918 msgid "C<app_release>"
12919 msgstr ""
12920
12921 # type: textblock
12922 #. type: textblock
12923 #: ../src/guestfs-actions.pod:3244 ../fish/guestfish-actions.pod:2231
12924 msgid ""
12925 "The release string of the application or package, for package managers that "
12926 "use this.  If unavailable this is returned as an empty string C<\"\">."
12927 msgstr ""
12928
12929 # type: =item
12930 #. type: =item
12931 #: ../src/guestfs-actions.pod:3248 ../fish/guestfish-actions.pod:2235
12932 msgid "C<app_install_path>"
12933 msgstr ""
12934
12935 # type: textblock
12936 #. type: textblock
12937 #: ../src/guestfs-actions.pod:3250 ../fish/guestfish-actions.pod:2237
12938 msgid ""
12939 "The installation path of the application (on operating systems such as "
12940 "Windows which use installation paths).  This path is in the format used by "
12941 "the guest operating system, it is not a libguestfs path."
12942 msgstr ""
12943
12944 # type: textblock
12945 #. type: textblock
12946 #: ../src/guestfs-actions.pod:3255 ../fish/guestfish-actions.pod:2242
12947 msgid "If unavailable this is returned as an empty string C<\"\">."
12948 msgstr ""
12949
12950 # type: =item
12951 #. type: =item
12952 #: ../src/guestfs-actions.pod:3257 ../fish/guestfish-actions.pod:2244
12953 msgid "C<app_trans_path>"
12954 msgstr ""
12955
12956 # type: textblock
12957 #. type: textblock
12958 #: ../src/guestfs-actions.pod:3259 ../fish/guestfish-actions.pod:2246
12959 msgid ""
12960 "The install path translated into a libguestfs path.  If unavailable this is "
12961 "returned as an empty string C<\"\">."
12962 msgstr ""
12963
12964 # type: =item
12965 #. type: =item
12966 #: ../src/guestfs-actions.pod:3262 ../fish/guestfish-actions.pod:2249
12967 msgid "C<app_publisher>"
12968 msgstr ""
12969
12970 # type: textblock
12971 #. type: textblock
12972 #: ../src/guestfs-actions.pod:3264 ../fish/guestfish-actions.pod:2251
12973 msgid ""
12974 "The name of the publisher of the application, for package managers that use "
12975 "this.  If unavailable this is returned as an empty string C<\"\">."
12976 msgstr ""
12977
12978 # type: =item
12979 #. type: =item
12980 #: ../src/guestfs-actions.pod:3268 ../fish/guestfish-actions.pod:2255
12981 msgid "C<app_url>"
12982 msgstr ""
12983
12984 # type: textblock
12985 #. type: textblock
12986 #: ../src/guestfs-actions.pod:3270 ../fish/guestfish-actions.pod:2257
12987 msgid ""
12988 "The URL (eg. upstream URL) of the application.  If unavailable this is "
12989 "returned as an empty string C<\"\">."
12990 msgstr ""
12991
12992 # type: =item
12993 #. type: =item
12994 #: ../src/guestfs-actions.pod:3273 ../fish/guestfish-actions.pod:2260
12995 msgid "C<app_source_package>"
12996 msgstr ""
12997
12998 # type: textblock
12999 #. type: textblock
13000 #: ../src/guestfs-actions.pod:3275 ../fish/guestfish-actions.pod:2262
13001 msgid ""
13002 "For packaging systems which support this, the name of the source package.  "
13003 "If unavailable this is returned as an empty string C<\"\">."
13004 msgstr ""
13005
13006 # type: =item
13007 #. type: =item
13008 #: ../src/guestfs-actions.pod:3278 ../fish/guestfish-actions.pod:2265
13009 msgid "C<app_summary>"
13010 msgstr ""
13011
13012 # type: textblock
13013 #. type: textblock
13014 #: ../src/guestfs-actions.pod:3280 ../fish/guestfish-actions.pod:2267
13015 msgid ""
13016 "A short (usually one line) description of the application or package.  If "
13017 "unavailable this is returned as an empty string C<\"\">."
13018 msgstr ""
13019
13020 # type: =item
13021 #. type: =item
13022 #: ../src/guestfs-actions.pod:3283 ../fish/guestfish-actions.pod:2270
13023 msgid "C<app_description>"
13024 msgstr ""
13025
13026 # type: textblock
13027 #. type: textblock
13028 #: ../src/guestfs-actions.pod:3285 ../fish/guestfish-actions.pod:2272
13029 msgid ""
13030 "A longer description of the application or package.  If unavailable this is "
13031 "returned as an empty string C<\"\">."
13032 msgstr ""
13033
13034 # type: textblock
13035 #. type: textblock
13036 #: ../src/guestfs-actions.pod:3292
13037 msgid ""
13038 "This function returns a C<struct guestfs_application_list *>, or NULL if "
13039 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
13040 "after use>."
13041 msgstr ""
13042
13043 # type: textblock
13044 #. type: textblock
13045 #: ../src/guestfs-actions.pod:3296
13046 msgid "(Added in 1.7.8)"
13047 msgstr ""
13048
13049 # type: =head2
13050 #. type: =head2
13051 #: ../src/guestfs-actions.pod:3298
13052 msgid "guestfs_inspect_os"
13053 msgstr ""
13054
13055 # type: verbatim
13056 #. type: verbatim
13057 #: ../src/guestfs-actions.pod:3300
13058 #, no-wrap
13059 msgid ""
13060 " char **\n"
13061 " guestfs_inspect_os (guestfs_h *g);\n"
13062 "\n"
13063 msgstr ""
13064
13065 # type: textblock
13066 #. type: textblock
13067 #: ../src/guestfs-actions.pod:3303 ../fish/guestfish-actions.pod:2283
13068 msgid ""
13069 "This function uses other libguestfs functions and certain heuristics to "
13070 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
13071 "for operating systems."
13072 msgstr ""
13073
13074 # type: textblock
13075 #. type: textblock
13076 #: ../src/guestfs-actions.pod:3307 ../fish/guestfish-actions.pod:2287
13077 msgid "The list returned is empty if no operating systems were found."
13078 msgstr ""
13079
13080 # type: textblock
13081 #. type: textblock
13082 #: ../src/guestfs-actions.pod:3309 ../fish/guestfish-actions.pod:2289
13083 msgid ""
13084 "If one operating system was found, then this returns a list with a single "
13085 "element, which is the name of the root filesystem of this operating system.  "
13086 "It is also possible for this function to return a list containing more than "
13087 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
13088 "element being the root filesystem of one of the operating systems."
13089 msgstr ""
13090
13091 # type: textblock
13092 #. type: textblock
13093 #: ../src/guestfs-actions.pod:3316
13094 msgid ""
13095 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
13096 "functions in order to query further information about each operating system, "
13097 "such as the name and version."
13098 msgstr ""
13099
13100 # type: textblock
13101 #. type: textblock
13102 #: ../src/guestfs-actions.pod:3321
13103 msgid ""
13104 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
13105 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
13106 "the contents.  This should be called with no disks currently mounted.  The "
13107 "function may also use Augeas, so any existing Augeas handle will be closed."
13108 msgstr ""
13109
13110 # type: textblock
13111 #. type: textblock
13112 #: ../src/guestfs-actions.pod:3327 ../fish/guestfish-actions.pod:2307
13113 msgid ""
13114 "This function cannot decrypt encrypted disks.  The caller must do that first "
13115 "(supplying the necessary keys) if the disk is encrypted."
13116 msgstr ""
13117
13118 # type: textblock
13119 #. type: textblock
13120 #: ../src/guestfs-actions.pod:3333 ../src/guestfs-actions.pod:3664
13121 #: ../src/guestfs-actions.pod:3746
13122 msgid "See also C<guestfs_list_filesystems>."
13123 msgstr ""
13124
13125 # type: =head2
13126 #. type: =head2
13127 #: ../src/guestfs-actions.pod:3341
13128 msgid "guestfs_is_blockdev"
13129 msgstr ""
13130
13131 # type: verbatim
13132 #. type: verbatim
13133 #: ../src/guestfs-actions.pod:3343
13134 #, no-wrap
13135 msgid ""
13136 " int\n"
13137 " guestfs_is_blockdev (guestfs_h *g,\n"
13138 "                      const char *path);\n"
13139 "\n"
13140 msgstr ""
13141
13142 # type: textblock
13143 #. type: textblock
13144 #: ../src/guestfs-actions.pod:3347 ../fish/guestfish-actions.pod:2319
13145 msgid ""
13146 "This returns C<true> if and only if there is a block device with the given "
13147 "C<path> name."
13148 msgstr ""
13149
13150 # type: textblock
13151 #. type: textblock
13152 #: ../src/guestfs-actions.pod:3350 ../src/guestfs-actions.pod:3379
13153 #: ../src/guestfs-actions.pod:3409 ../src/guestfs-actions.pod:3424
13154 #: ../src/guestfs-actions.pod:3440 ../src/guestfs-actions.pod:3496
13155 #: ../src/guestfs-actions.pod:3511
13156 msgid "See also C<guestfs_stat>."
13157 msgstr ""
13158
13159 # type: textblock
13160 #. type: textblock
13161 #: ../src/guestfs-actions.pod:3354 ../src/guestfs-actions.pod:3383
13162 #: ../src/guestfs-actions.pod:3428 ../src/guestfs-actions.pod:3500
13163 #: ../src/guestfs-actions.pod:3515
13164 msgid "(Added in 1.5.10)"
13165 msgstr ""
13166
13167 # type: =head2
13168 #. type: =head2
13169 #: ../src/guestfs-actions.pod:3356
13170 msgid "guestfs_is_busy"
13171 msgstr ""
13172
13173 # type: verbatim
13174 #. type: verbatim
13175 #: ../src/guestfs-actions.pod:3358
13176 #, no-wrap
13177 msgid ""
13178 " int\n"
13179 " guestfs_is_busy (guestfs_h *g);\n"
13180 "\n"
13181 msgstr ""
13182
13183 # type: textblock
13184 #. type: textblock
13185 #: ../src/guestfs-actions.pod:3361 ../fish/guestfish-actions.pod:2328
13186 msgid ""
13187 "This returns true iff this handle is busy processing a command (in the "
13188 "C<BUSY> state)."
13189 msgstr ""
13190
13191 # type: =head2
13192 #. type: =head2
13193 #: ../src/guestfs-actions.pod:3370
13194 msgid "guestfs_is_chardev"
13195 msgstr ""
13196
13197 # type: verbatim
13198 #. type: verbatim
13199 #: ../src/guestfs-actions.pod:3372
13200 #, no-wrap
13201 msgid ""
13202 " int\n"
13203 " guestfs_is_chardev (guestfs_h *g,\n"
13204 "                     const char *path);\n"
13205 "\n"
13206 msgstr ""
13207
13208 # type: textblock
13209 #. type: textblock
13210 #: ../src/guestfs-actions.pod:3376 ../fish/guestfish-actions.pod:2337
13211 msgid ""
13212 "This returns C<true> if and only if there is a character device with the "
13213 "given C<path> name."
13214 msgstr ""
13215
13216 # type: =head2
13217 #. type: =head2
13218 #: ../src/guestfs-actions.pod:3385
13219 msgid "guestfs_is_config"
13220 msgstr ""
13221
13222 # type: verbatim
13223 #. type: verbatim
13224 #: ../src/guestfs-actions.pod:3387
13225 #, no-wrap
13226 msgid ""
13227 " int\n"
13228 " guestfs_is_config (guestfs_h *g);\n"
13229 "\n"
13230 msgstr ""
13231
13232 # type: textblock
13233 #. type: textblock
13234 #: ../src/guestfs-actions.pod:3390 ../fish/guestfish-actions.pod:2346
13235 msgid ""
13236 "This returns true iff this handle is being configured (in the C<CONFIG> "
13237 "state)."
13238 msgstr ""
13239
13240 # type: =head2
13241 #. type: =head2
13242 #: ../src/guestfs-actions.pod:3399
13243 msgid "guestfs_is_dir"
13244 msgstr ""
13245
13246 # type: verbatim
13247 #. type: verbatim
13248 #: ../src/guestfs-actions.pod:3401
13249 #, no-wrap
13250 msgid ""
13251 " int\n"
13252 " guestfs_is_dir (guestfs_h *g,\n"
13253 "                 const char *path);\n"
13254 "\n"
13255 msgstr ""
13256
13257 # type: textblock
13258 #. type: textblock
13259 #: ../src/guestfs-actions.pod:3405 ../fish/guestfish-actions.pod:2355
13260 msgid ""
13261 "This returns C<true> if and only if there is a directory with the given "
13262 "C<path> name.  Note that it returns false for other objects like files."
13263 msgstr ""
13264
13265 # type: =head2
13266 #. type: =head2
13267 #: ../src/guestfs-actions.pod:3415
13268 msgid "guestfs_is_fifo"
13269 msgstr ""
13270
13271 # type: verbatim
13272 #. type: verbatim
13273 #: ../src/guestfs-actions.pod:3417
13274 #, no-wrap
13275 msgid ""
13276 " int\n"
13277 " guestfs_is_fifo (guestfs_h *g,\n"
13278 "                  const char *path);\n"
13279 "\n"
13280 msgstr ""
13281
13282 # type: textblock
13283 #. type: textblock
13284 #: ../src/guestfs-actions.pod:3421 ../fish/guestfish-actions.pod:2365
13285 msgid ""
13286 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
13287 "given C<path> name."
13288 msgstr ""
13289
13290 # type: =head2
13291 #. type: =head2
13292 #: ../src/guestfs-actions.pod:3430
13293 msgid "guestfs_is_file"
13294 msgstr ""
13295
13296 # type: verbatim
13297 #. type: verbatim
13298 #: ../src/guestfs-actions.pod:3432
13299 #, no-wrap
13300 msgid ""
13301 " int\n"
13302 " guestfs_is_file (guestfs_h *g,\n"
13303 "                  const char *path);\n"
13304 "\n"
13305 msgstr ""
13306
13307 # type: textblock
13308 #. type: textblock
13309 #: ../src/guestfs-actions.pod:3436 ../fish/guestfish-actions.pod:2374
13310 msgid ""
13311 "This returns C<true> if and only if there is a regular file with the given "
13312 "C<path> name.  Note that it returns false for other objects like directories."
13313 msgstr ""
13314
13315 # type: =head2
13316 #. type: =head2
13317 #: ../src/guestfs-actions.pod:3446
13318 msgid "guestfs_is_launching"
13319 msgstr ""
13320
13321 # type: verbatim
13322 #. type: verbatim
13323 #: ../src/guestfs-actions.pod:3448
13324 #, no-wrap
13325 msgid ""
13326 " int\n"
13327 " guestfs_is_launching (guestfs_h *g);\n"
13328 "\n"
13329 msgstr ""
13330
13331 # type: textblock
13332 #. type: textblock
13333 #: ../src/guestfs-actions.pod:3451 ../fish/guestfish-actions.pod:2384
13334 msgid ""
13335 "This returns true iff this handle is launching the subprocess (in the "
13336 "C<LAUNCHING> state)."
13337 msgstr ""
13338
13339 # type: =head2
13340 #. type: =head2
13341 #: ../src/guestfs-actions.pod:3460
13342 msgid "guestfs_is_lv"
13343 msgstr ""
13344
13345 # type: verbatim
13346 #. type: verbatim
13347 #: ../src/guestfs-actions.pod:3462
13348 #, no-wrap
13349 msgid ""
13350 " int\n"
13351 " guestfs_is_lv (guestfs_h *g,\n"
13352 "                const char *device);\n"
13353 "\n"
13354 msgstr ""
13355
13356 # type: textblock
13357 #. type: textblock
13358 #: ../src/guestfs-actions.pod:3466 ../fish/guestfish-actions.pod:2393
13359 msgid ""
13360 "This command tests whether C<device> is a logical volume, and returns true "
13361 "iff this is the case."
13362 msgstr ""
13363
13364 # type: =head2
13365 #. type: =head2
13366 #: ../src/guestfs-actions.pod:3473
13367 msgid "guestfs_is_ready"
13368 msgstr ""
13369
13370 # type: verbatim
13371 #. type: verbatim
13372 #: ../src/guestfs-actions.pod:3475
13373 #, no-wrap
13374 msgid ""
13375 " int\n"
13376 " guestfs_is_ready (guestfs_h *g);\n"
13377 "\n"
13378 msgstr ""
13379
13380 # type: textblock
13381 #. type: textblock
13382 #: ../src/guestfs-actions.pod:3478 ../fish/guestfish-actions.pod:2400
13383 msgid ""
13384 "This returns true iff this handle is ready to accept commands (in the "
13385 "C<READY> state)."
13386 msgstr ""
13387
13388 # type: =head2
13389 #. type: =head2
13390 #: ../src/guestfs-actions.pod:3487
13391 msgid "guestfs_is_socket"
13392 msgstr ""
13393
13394 # type: verbatim
13395 #. type: verbatim
13396 #: ../src/guestfs-actions.pod:3489
13397 #, no-wrap
13398 msgid ""
13399 " int\n"
13400 " guestfs_is_socket (guestfs_h *g,\n"
13401 "                    const char *path);\n"
13402 "\n"
13403 msgstr ""
13404
13405 # type: textblock
13406 #. type: textblock
13407 #: ../src/guestfs-actions.pod:3493 ../fish/guestfish-actions.pod:2409
13408 msgid ""
13409 "This returns C<true> if and only if there is a Unix domain socket with the "
13410 "given C<path> name."
13411 msgstr ""
13412
13413 # type: =head2
13414 #. type: =head2
13415 #: ../src/guestfs-actions.pod:3502
13416 msgid "guestfs_is_symlink"
13417 msgstr ""
13418
13419 # type: verbatim
13420 #. type: verbatim
13421 #: ../src/guestfs-actions.pod:3504
13422 #, no-wrap
13423 msgid ""
13424 " int\n"
13425 " guestfs_is_symlink (guestfs_h *g,\n"
13426 "                     const char *path);\n"
13427 "\n"
13428 msgstr ""
13429
13430 # type: textblock
13431 #. type: textblock
13432 #: ../src/guestfs-actions.pod:3508 ../fish/guestfish-actions.pod:2418
13433 msgid ""
13434 "This returns C<true> if and only if there is a symbolic link with the given "
13435 "C<path> name."
13436 msgstr ""
13437
13438 #. type: =head2
13439 #: ../src/guestfs-actions.pod:3517
13440 msgid "guestfs_is_zero"
13441 msgstr ""
13442
13443 #. type: verbatim
13444 #: ../src/guestfs-actions.pod:3519
13445 #, no-wrap
13446 msgid ""
13447 " int\n"
13448 " guestfs_is_zero (guestfs_h *g,\n"
13449 "                  const char *path);\n"
13450 "\n"
13451 msgstr ""
13452
13453 #. type: textblock
13454 #: ../src/guestfs-actions.pod:3523 ../fish/guestfish-actions.pod:2427
13455 msgid ""
13456 "This returns true iff the file exists and the file is empty or it contains "
13457 "all zero bytes."
13458 msgstr ""
13459
13460 #. type: textblock
13461 #: ../src/guestfs-actions.pod:3528 ../src/guestfs-actions.pod:3542
13462 msgid "(Added in 1.11.8)"
13463 msgstr ""
13464
13465 #. type: =head2
13466 #: ../src/guestfs-actions.pod:3530
13467 msgid "guestfs_is_zero_device"
13468 msgstr ""
13469
13470 #. type: verbatim
13471 #: ../src/guestfs-actions.pod:3532
13472 #, no-wrap
13473 msgid ""
13474 " int\n"
13475 " guestfs_is_zero_device (guestfs_h *g,\n"
13476 "                         const char *device);\n"
13477 "\n"
13478 msgstr ""
13479
13480 #. type: textblock
13481 #: ../src/guestfs-actions.pod:3536 ../fish/guestfish-actions.pod:2434
13482 msgid "This returns true iff the device exists and contains all zero bytes."
13483 msgstr ""
13484
13485 #. type: textblock
13486 #: ../src/guestfs-actions.pod:3538 ../fish/guestfish-actions.pod:2436
13487 msgid "Note that for large devices this can take a long time to run."
13488 msgstr ""
13489
13490 # type: =head2
13491 #. type: =head2
13492 #: ../src/guestfs-actions.pod:3544
13493 msgid "guestfs_kill_subprocess"
13494 msgstr ""
13495
13496 # type: verbatim
13497 #. type: verbatim
13498 #: ../src/guestfs-actions.pod:3546
13499 #, no-wrap
13500 msgid ""
13501 " int\n"
13502 " guestfs_kill_subprocess (guestfs_h *g);\n"
13503 "\n"
13504 msgstr ""
13505
13506 # type: textblock
13507 #. type: textblock
13508 #: ../src/guestfs-actions.pod:3549 ../fish/guestfish-actions.pod:2442
13509 msgid "This kills the qemu subprocess.  You should never need to call this."
13510 msgstr ""
13511
13512 # type: =head2
13513 #. type: =head2
13514 #: ../src/guestfs-actions.pod:3555
13515 msgid "guestfs_launch"
13516 msgstr ""
13517
13518 # type: verbatim
13519 #. type: verbatim
13520 #: ../src/guestfs-actions.pod:3557
13521 #, no-wrap
13522 msgid ""
13523 " int\n"
13524 " guestfs_launch (guestfs_h *g);\n"
13525 "\n"
13526 msgstr ""
13527
13528 # type: textblock
13529 #. type: textblock
13530 #: ../src/guestfs-actions.pod:3560 ../fish/guestfish-actions.pod:2450
13531 msgid ""
13532 "Internally libguestfs is implemented by running a virtual machine using "
13533 "L<qemu(1)>."
13534 msgstr ""
13535
13536 # type: textblock
13537 #. type: textblock
13538 #: ../src/guestfs-actions.pod:3563 ../fish/guestfish-actions.pod:2453
13539 msgid ""
13540 "You should call this after configuring the handle (eg. adding drives) but "
13541 "before performing any actions."
13542 msgstr ""
13543
13544 # type: =head2
13545 #. type: =head2
13546 #: ../src/guestfs-actions.pod:3575
13547 msgid "guestfs_lchown"
13548 msgstr ""
13549
13550 # type: verbatim
13551 #. type: verbatim
13552 #: ../src/guestfs-actions.pod:3577
13553 #, no-wrap
13554 msgid ""
13555 " int\n"
13556 " guestfs_lchown (guestfs_h *g,\n"
13557 "                 int owner,\n"
13558 "                 int group,\n"
13559 "                 const char *path);\n"
13560 "\n"
13561 msgstr ""
13562
13563 # type: textblock
13564 #. type: textblock
13565 #: ../src/guestfs-actions.pod:3583
13566 msgid ""
13567 "Change the file owner to C<owner> and group to C<group>.  This is like "
13568 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
13569 "changed, not the target."
13570 msgstr ""
13571
13572 # type: =head2
13573 #. type: =head2
13574 #: ../src/guestfs-actions.pod:3595
13575 msgid "guestfs_lgetxattr"
13576 msgstr ""
13577
13578 # type: verbatim
13579 #. type: verbatim
13580 #: ../src/guestfs-actions.pod:3597
13581 #, no-wrap
13582 msgid ""
13583 " char *\n"
13584 " guestfs_lgetxattr (guestfs_h *g,\n"
13585 "                    const char *path,\n"
13586 "                    const char *name,\n"
13587 "                    size_t *size_r);\n"
13588 "\n"
13589 msgstr ""
13590
13591 # type: textblock
13592 #. type: textblock
13593 #: ../src/guestfs-actions.pod:3603 ../fish/guestfish-actions.pod:2472
13594 msgid ""
13595 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
13596 "is a symlink, then this call returns an extended attribute from the symlink."
13597 msgstr ""
13598
13599 # type: textblock
13600 #. type: textblock
13601 #: ../src/guestfs-actions.pod:3617
13602 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
13603 msgstr ""
13604
13605 # type: =head2
13606 #. type: =head2
13607 #: ../src/guestfs-actions.pod:3625
13608 msgid "guestfs_lgetxattrs"
13609 msgstr ""
13610
13611 # type: verbatim
13612 #. type: verbatim
13613 #: ../src/guestfs-actions.pod:3627
13614 #, no-wrap
13615 msgid ""
13616 " struct guestfs_xattr_list *\n"
13617 " guestfs_lgetxattrs (guestfs_h *g,\n"
13618 "                     const char *path);\n"
13619 "\n"
13620 msgstr ""
13621
13622 # type: textblock
13623 #. type: textblock
13624 #: ../src/guestfs-actions.pod:3631
13625 msgid ""
13626 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
13627 "then it returns the extended attributes of the link itself."
13628 msgstr ""
13629
13630 #. type: =head2
13631 #: ../src/guestfs-actions.pod:3641
13632 msgid "guestfs_list_9p"
13633 msgstr ""
13634
13635 #. type: verbatim
13636 #: ../src/guestfs-actions.pod:3643
13637 #, no-wrap
13638 msgid ""
13639 " char **\n"
13640 " guestfs_list_9p (guestfs_h *g);\n"
13641 "\n"
13642 msgstr ""
13643
13644 #. type: textblock
13645 #: ../src/guestfs-actions.pod:3646 ../fish/guestfish-actions.pod:2500
13646 msgid ""
13647 "List all 9p filesystems attached to the guest.  A list of mount tags is "
13648 "returned."
13649 msgstr ""
13650
13651 # type: =head2
13652 #. type: =head2
13653 #: ../src/guestfs-actions.pod:3655
13654 msgid "guestfs_list_devices"
13655 msgstr ""
13656
13657 # type: verbatim
13658 #. type: verbatim
13659 #: ../src/guestfs-actions.pod:3657
13660 #, no-wrap
13661 msgid ""
13662 " char **\n"
13663 " guestfs_list_devices (guestfs_h *g);\n"
13664 "\n"
13665 msgstr ""
13666
13667 # type: textblock
13668 #. type: textblock
13669 #: ../src/guestfs-actions.pod:3660 ../fish/guestfish-actions.pod:2507
13670 msgid "List all the block devices."
13671 msgstr ""
13672
13673 # type: textblock
13674 #. type: textblock
13675 #: ../src/guestfs-actions.pod:3662 ../fish/guestfish-actions.pod:2509
13676 msgid "The full block device names are returned, eg. C</dev/sda>."
13677 msgstr ""
13678
13679 #. type: =head2
13680 #: ../src/guestfs-actions.pod:3672
13681 msgid "guestfs_list_dm_devices"
13682 msgstr ""
13683
13684 #. type: verbatim
13685 #: ../src/guestfs-actions.pod:3674
13686 #, no-wrap
13687 msgid ""
13688 " char **\n"
13689 " guestfs_list_dm_devices (guestfs_h *g);\n"
13690 "\n"
13691 msgstr ""
13692
13693 #. type: textblock
13694 #: ../src/guestfs-actions.pod:3677 ../fish/guestfish-actions.pod:2517
13695 msgid "List all device mapper devices."
13696 msgstr ""
13697
13698 #. type: textblock
13699 #: ../src/guestfs-actions.pod:3679
13700 msgid ""
13701 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
13702 "previous call to C<guestfs_luks_open>."
13703 msgstr ""
13704
13705 #. type: textblock
13706 #: ../src/guestfs-actions.pod:3682
13707 msgid ""
13708 "Device mapper devices which correspond to logical volumes are I<not> "
13709 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
13710 "volumes."
13711 msgstr ""
13712
13713 #. type: textblock
13714 #: ../src/guestfs-actions.pod:3690 ../src/guestfs-actions.pod:5146
13715 msgid "(Added in 1.11.15)"
13716 msgstr ""
13717
13718 # type: =head2
13719 #. type: =head2
13720 #: ../src/guestfs-actions.pod:3692
13721 msgid "guestfs_list_filesystems"
13722 msgstr ""
13723
13724 # type: verbatim
13725 #. type: verbatim
13726 #: ../src/guestfs-actions.pod:3694
13727 #, no-wrap
13728 msgid ""
13729 " char **\n"
13730 " guestfs_list_filesystems (guestfs_h *g);\n"
13731 "\n"
13732 msgstr ""
13733
13734 # type: textblock
13735 #. type: textblock
13736 #: ../src/guestfs-actions.pod:3697 ../fish/guestfish-actions.pod:2530
13737 msgid ""
13738 "This inspection command looks for filesystems on partitions, block devices "
13739 "and logical volumes, returning a list of devices containing filesystems and "
13740 "their type."
13741 msgstr ""
13742
13743 # type: textblock
13744 #. type: textblock
13745 #: ../src/guestfs-actions.pod:3701 ../fish/guestfish-actions.pod:2534
13746 msgid ""
13747 "The return value is a hash, where the keys are the devices containing "
13748 "filesystems, and the values are the filesystem types.  For example:"
13749 msgstr ""
13750
13751 # type: verbatim
13752 #. type: verbatim
13753 #: ../src/guestfs-actions.pod:3705 ../fish/guestfish-actions.pod:2538
13754 #, no-wrap
13755 msgid ""
13756 " \"/dev/sda1\" => \"ntfs\"\n"
13757 " \"/dev/sda2\" => \"ext2\"\n"
13758 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
13759 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
13760 "\n"
13761 msgstr ""
13762
13763 # type: textblock
13764 #. type: textblock
13765 #: ../src/guestfs-actions.pod:3710 ../fish/guestfish-actions.pod:2543
13766 msgid ""
13767 "The value can have the special value \"unknown\", meaning the content of the "
13768 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
13769 msgstr ""
13770
13771 # type: textblock
13772 #. type: textblock
13773 #: ../src/guestfs-actions.pod:3714
13774 msgid ""
13775 "This command runs other libguestfs commands, which might include "
13776 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
13777 "soon after launch and only when nothing is mounted."
13778 msgstr ""
13779
13780 # type: textblock
13781 #. type: textblock
13782 #: ../src/guestfs-actions.pod:3718
13783 msgid ""
13784 "Not all of the filesystems returned will be mountable.  In particular, swap "
13785 "partitions are returned in the list.  Also this command does not check that "
13786 "each filesystem found is valid and mountable, and some filesystems might be "
13787 "mountable but require special options.  Filesystems may not all belong to a "
13788 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
13789 msgstr ""
13790
13791 # type: textblock
13792 #. type: textblock
13793 #: ../src/guestfs-actions.pod:3732 ../src/guestfs-actions.pod:5501
13794 msgid "(Added in 1.5.15)"
13795 msgstr ""
13796
13797 # type: =head2
13798 #. type: =head2
13799 #: ../src/guestfs-actions.pod:3734
13800 msgid "guestfs_list_partitions"
13801 msgstr ""
13802
13803 # type: verbatim
13804 #. type: verbatim
13805 #: ../src/guestfs-actions.pod:3736
13806 #, no-wrap
13807 msgid ""
13808 " char **\n"
13809 " guestfs_list_partitions (guestfs_h *g);\n"
13810 "\n"
13811 msgstr ""
13812
13813 # type: textblock
13814 #. type: textblock
13815 #: ../src/guestfs-actions.pod:3739 ../fish/guestfish-actions.pod:2563
13816 msgid "List all the partitions detected on all block devices."
13817 msgstr ""
13818
13819 # type: textblock
13820 #. type: textblock
13821 #: ../src/guestfs-actions.pod:3741 ../fish/guestfish-actions.pod:2565
13822 msgid "The full partition device names are returned, eg. C</dev/sda1>"
13823 msgstr ""
13824
13825 # type: textblock
13826 #. type: textblock
13827 #: ../src/guestfs-actions.pod:3743
13828 msgid ""
13829 "This does not return logical volumes.  For that you will need to call "
13830 "C<guestfs_lvs>."
13831 msgstr ""
13832
13833 # type: =head2
13834 #. type: =head2
13835 #: ../src/guestfs-actions.pod:3754
13836 msgid "guestfs_ll"
13837 msgstr ""
13838
13839 # type: verbatim
13840 #. type: verbatim
13841 #: ../src/guestfs-actions.pod:3756
13842 #, no-wrap
13843 msgid ""
13844 " char *\n"
13845 " guestfs_ll (guestfs_h *g,\n"
13846 "             const char *directory);\n"
13847 "\n"
13848 msgstr ""
13849
13850 # type: textblock
13851 #. type: textblock
13852 #: ../src/guestfs-actions.pod:3760 ../fish/guestfish-actions.pod:2576
13853 msgid ""
13854 "List the files in C<directory> (relative to the root directory, there is no "
13855 "cwd) in the format of 'ls -la'."
13856 msgstr ""
13857
13858 # type: textblock
13859 #. type: textblock
13860 #: ../src/guestfs-actions.pod:3763 ../fish/guestfish-actions.pod:2579
13861 msgid ""
13862 "This command is mostly useful for interactive sessions.  It is I<not> "
13863 "intended that you try to parse the output string."
13864 msgstr ""
13865
13866 # type: =head2
13867 #. type: =head2
13868 #: ../src/guestfs-actions.pod:3771
13869 msgid "guestfs_ln"
13870 msgstr ""
13871
13872 # type: verbatim
13873 #. type: verbatim
13874 #: ../src/guestfs-actions.pod:3773
13875 #, no-wrap
13876 msgid ""
13877 " int\n"
13878 " guestfs_ln (guestfs_h *g,\n"
13879 "             const char *target,\n"
13880 "             const char *linkname);\n"
13881 "\n"
13882 msgstr ""
13883
13884 # type: textblock
13885 #. type: textblock
13886 #: ../src/guestfs-actions.pod:3778 ../fish/guestfish-actions.pod:2586
13887 msgid "This command creates a hard link using the C<ln> command."
13888 msgstr ""
13889
13890 # type: =head2
13891 #. type: =head2
13892 #: ../src/guestfs-actions.pod:3784
13893 msgid "guestfs_ln_f"
13894 msgstr ""
13895
13896 # type: verbatim
13897 #. type: verbatim
13898 #: ../src/guestfs-actions.pod:3786
13899 #, no-wrap
13900 msgid ""
13901 " int\n"
13902 " guestfs_ln_f (guestfs_h *g,\n"
13903 "               const char *target,\n"
13904 "               const char *linkname);\n"
13905 "\n"
13906 msgstr ""
13907
13908 #. type: textblock
13909 #: ../src/guestfs-actions.pod:3791 ../fish/guestfish-actions.pod:2592
13910 msgid ""
13911 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
13912 "option removes the link (C<linkname>) if it exists already."
13913 msgstr ""
13914
13915 # type: =head2
13916 #. type: =head2
13917 #: ../src/guestfs-actions.pod:3798
13918 msgid "guestfs_ln_s"
13919 msgstr ""
13920
13921 # type: verbatim
13922 #. type: verbatim
13923 #: ../src/guestfs-actions.pod:3800
13924 #, no-wrap
13925 msgid ""
13926 " int\n"
13927 " guestfs_ln_s (guestfs_h *g,\n"
13928 "               const char *target,\n"
13929 "               const char *linkname);\n"
13930 "\n"
13931 msgstr ""
13932
13933 # type: textblock
13934 #. type: textblock
13935 #: ../src/guestfs-actions.pod:3805 ../fish/guestfish-actions.pod:2599
13936 msgid "This command creates a symbolic link using the C<ln -s> command."
13937 msgstr ""
13938
13939 # type: =head2
13940 #. type: =head2
13941 #: ../src/guestfs-actions.pod:3811
13942 msgid "guestfs_ln_sf"
13943 msgstr ""
13944
13945 # type: verbatim
13946 #. type: verbatim
13947 #: ../src/guestfs-actions.pod:3813
13948 #, no-wrap
13949 msgid ""
13950 " int\n"
13951 " guestfs_ln_sf (guestfs_h *g,\n"
13952 "                const char *target,\n"
13953 "                const char *linkname);\n"
13954 "\n"
13955 msgstr ""
13956
13957 #. type: textblock
13958 #: ../src/guestfs-actions.pod:3818 ../fish/guestfish-actions.pod:2605
13959 msgid ""
13960 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
13961 "option removes the link (C<linkname>) if it exists already."
13962 msgstr ""
13963
13964 # type: =head2
13965 #. type: =head2
13966 #: ../src/guestfs-actions.pod:3825
13967 msgid "guestfs_lremovexattr"
13968 msgstr ""
13969
13970 # type: verbatim
13971 #. type: verbatim
13972 #: ../src/guestfs-actions.pod:3827
13973 #, no-wrap
13974 msgid ""
13975 " int\n"
13976 " guestfs_lremovexattr (guestfs_h *g,\n"
13977 "                       const char *xattr,\n"
13978 "                       const char *path);\n"
13979 "\n"
13980 msgstr ""
13981
13982 # type: textblock
13983 #. type: textblock
13984 #: ../src/guestfs-actions.pod:3832
13985 msgid ""
13986 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
13987 "link, then it removes an extended attribute of the link itself."
13988 msgstr ""
13989
13990 # type: =head2
13991 #. type: =head2
13992 #: ../src/guestfs-actions.pod:3840
13993 msgid "guestfs_ls"
13994 msgstr ""
13995
13996 # type: verbatim
13997 #. type: verbatim
13998 #: ../src/guestfs-actions.pod:3842
13999 #, no-wrap
14000 msgid ""
14001 " char **\n"
14002 " guestfs_ls (guestfs_h *g,\n"
14003 "             const char *directory);\n"
14004 "\n"
14005 msgstr ""
14006
14007 # type: textblock
14008 #. type: textblock
14009 #: ../src/guestfs-actions.pod:3846 ../fish/guestfish-actions.pod:2620
14010 msgid ""
14011 "List the files in C<directory> (relative to the root directory, there is no "
14012 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
14013 msgstr ""
14014
14015 # type: textblock
14016 #. type: textblock
14017 #: ../src/guestfs-actions.pod:3850
14018 msgid ""
14019 "This command is mostly useful for interactive sessions.  Programs should "
14020 "probably use C<guestfs_readdir> instead."
14021 msgstr ""
14022
14023 # type: =head2
14024 #. type: =head2
14025 #: ../src/guestfs-actions.pod:3859
14026 msgid "guestfs_lsetxattr"
14027 msgstr ""
14028
14029 # type: verbatim
14030 #. type: verbatim
14031 #: ../src/guestfs-actions.pod:3861
14032 #, no-wrap
14033 msgid ""
14034 " int\n"
14035 " guestfs_lsetxattr (guestfs_h *g,\n"
14036 "                    const char *xattr,\n"
14037 "                    const char *val,\n"
14038 "                    int vallen,\n"
14039 "                    const char *path);\n"
14040 "\n"
14041 msgstr ""
14042
14043 # type: textblock
14044 #. type: textblock
14045 #: ../src/guestfs-actions.pod:3868
14046 msgid ""
14047 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
14048 "then it sets an extended attribute of the link itself."
14049 msgstr ""
14050
14051 # type: =head2
14052 #. type: =head2
14053 #: ../src/guestfs-actions.pod:3876
14054 msgid "guestfs_lstat"
14055 msgstr ""
14056
14057 # type: verbatim
14058 #. type: verbatim
14059 #: ../src/guestfs-actions.pod:3878
14060 #, no-wrap
14061 msgid ""
14062 " struct guestfs_stat *\n"
14063 " guestfs_lstat (guestfs_h *g,\n"
14064 "                const char *path);\n"
14065 "\n"
14066 msgstr ""
14067
14068 # type: textblock
14069 #. type: textblock
14070 #: ../src/guestfs-actions.pod:3882 ../src/guestfs-actions.pod:6636
14071 #: ../fish/guestfish-actions.pod:2639 ../fish/guestfish-actions.pod:4426
14072 msgid "Returns file information for the given C<path>."
14073 msgstr ""
14074
14075 # type: textblock
14076 #. type: textblock
14077 #: ../src/guestfs-actions.pod:3884
14078 msgid ""
14079 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
14080 "link, then the link is stat-ed, not the file it refers to."
14081 msgstr ""
14082
14083 # type: textblock
14084 #. type: textblock
14085 #: ../src/guestfs-actions.pod:3888 ../fish/guestfish-actions.pod:2645
14086 msgid "This is the same as the C<lstat(2)> system call."
14087 msgstr ""
14088
14089 # type: textblock
14090 #. type: textblock
14091 #: ../src/guestfs-actions.pod:3890 ../src/guestfs-actions.pod:6640
14092 msgid ""
14093 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
14094 "error.  I<The caller must call C<guestfs_free_stat> after use>."
14095 msgstr ""
14096
14097 # type: textblock
14098 #. type: textblock
14099 #: ../src/guestfs-actions.pod:3894 ../src/guestfs-actions.pod:6644
14100 #: ../src/guestfs-actions.pod:6662 ../src/guestfs-actions.pod:7043
14101 msgid "(Added in 0.9.2)"
14102 msgstr ""
14103
14104 # type: =head2
14105 #. type: =head2
14106 #: ../src/guestfs-actions.pod:3896
14107 msgid "guestfs_lstatlist"
14108 msgstr ""
14109
14110 # type: verbatim
14111 #. type: verbatim
14112 #: ../src/guestfs-actions.pod:3898
14113 #, no-wrap
14114 msgid ""
14115 " struct guestfs_stat_list *\n"
14116 " guestfs_lstatlist (guestfs_h *g,\n"
14117 "                    const char *path,\n"
14118 "                    char *const *names);\n"
14119 "\n"
14120 msgstr ""
14121
14122 # type: textblock
14123 #. type: textblock
14124 #: ../src/guestfs-actions.pod:3903
14125 msgid ""
14126 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
14127 "files, where all files are in the directory C<path>.  C<names> is the list "
14128 "of files from this directory."
14129 msgstr ""
14130
14131 # type: textblock
14132 #. type: textblock
14133 #: ../src/guestfs-actions.pod:3907 ../fish/guestfish-actions.pod:2655
14134 msgid ""
14135 "On return you get a list of stat structs, with a one-to-one correspondence "
14136 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
14137 "then the C<ino> field of that structure is set to C<-1>."
14138 msgstr ""
14139
14140 # type: textblock
14141 #. type: textblock
14142 #: ../src/guestfs-actions.pod:3912
14143 msgid ""
14144 "This call is intended for programs that want to efficiently list a directory "
14145 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
14146 "for a similarly efficient call for getting extended attributes.  Very long "
14147 "directory listings might cause the protocol message size to be exceeded, "
14148 "causing this call to fail.  The caller must split up such requests into "
14149 "smaller groups of names."
14150 msgstr ""
14151
14152 # type: textblock
14153 #. type: textblock
14154 #: ../src/guestfs-actions.pod:3920
14155 msgid ""
14156 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
14157 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
14158 msgstr ""
14159
14160 # type: =head2
14161 #. type: =head2
14162 #: ../src/guestfs-actions.pod:3926
14163 msgid "guestfs_luks_add_key"
14164 msgstr ""
14165
14166 # type: verbatim
14167 #. type: verbatim
14168 #: ../src/guestfs-actions.pod:3928
14169 #, no-wrap
14170 msgid ""
14171 " int\n"
14172 " guestfs_luks_add_key (guestfs_h *g,\n"
14173 "                       const char *device,\n"
14174 "                       const char *key,\n"
14175 "                       const char *newkey,\n"
14176 "                       int keyslot);\n"
14177 "\n"
14178 msgstr ""
14179
14180 # type: textblock
14181 #. type: textblock
14182 #: ../src/guestfs-actions.pod:3935 ../fish/guestfish-actions.pod:2672
14183 msgid ""
14184 "This command adds a new key on LUKS device C<device>.  C<key> is any "
14185 "existing key, and is used to access the device.  C<newkey> is the new key to "
14186 "add.  C<keyslot> is the key slot that will be replaced."
14187 msgstr ""
14188
14189 # type: textblock
14190 #. type: textblock
14191 #: ../src/guestfs-actions.pod:3940
14192 msgid ""
14193 "Note that if C<keyslot> already contains a key, then this command will "
14194 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
14195 msgstr ""
14196
14197 # type: textblock
14198 #. type: textblock
14199 #: ../src/guestfs-actions.pod:3946 ../src/guestfs-actions.pod:3986
14200 #: ../src/guestfs-actions.pod:4009 ../src/guestfs-actions.pod:4029
14201 #: ../src/guestfs-actions.pod:4064 ../src/guestfs-actions.pod:4083
14202 msgid ""
14203 "This function takes a key or passphrase parameter which could contain "
14204 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
14205 "information."
14206 msgstr ""
14207
14208 # type: textblock
14209 #. type: textblock
14210 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3990
14211 #: ../src/guestfs-actions.pod:4013 ../src/guestfs-actions.pod:4033
14212 msgid "(Added in 1.5.2)"
14213 msgstr ""
14214
14215 # type: =head2
14216 #. type: =head2
14217 #: ../src/guestfs-actions.pod:3952
14218 msgid "guestfs_luks_close"
14219 msgstr ""
14220
14221 # type: verbatim
14222 #. type: verbatim
14223 #: ../src/guestfs-actions.pod:3954
14224 #, no-wrap
14225 msgid ""
14226 " int\n"
14227 " guestfs_luks_close (guestfs_h *g,\n"
14228 "                     const char *device);\n"
14229 "\n"
14230 msgstr ""
14231
14232 # type: textblock
14233 #. type: textblock
14234 #: ../src/guestfs-actions.pod:3958
14235 msgid ""
14236 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
14237 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
14238 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
14239 "underlying block device."
14240 msgstr ""
14241
14242 # type: textblock
14243 #. type: textblock
14244 #: ../src/guestfs-actions.pod:3966 ../src/guestfs-actions.pod:4068
14245 #: ../src/guestfs-actions.pod:4087 ../src/guestfs-actions.pod:4137
14246 #: ../src/guestfs-actions.pod:4185
14247 msgid "(Added in 1.5.1)"
14248 msgstr ""
14249
14250 # type: =head2
14251 #. type: =head2
14252 #: ../src/guestfs-actions.pod:3968
14253 msgid "guestfs_luks_format"
14254 msgstr ""
14255
14256 # type: verbatim
14257 #. type: verbatim
14258 #: ../src/guestfs-actions.pod:3970
14259 #, no-wrap
14260 msgid ""
14261 " int\n"
14262 " guestfs_luks_format (guestfs_h *g,\n"
14263 "                      const char *device,\n"
14264 "                      const char *key,\n"
14265 "                      int keyslot);\n"
14266 "\n"
14267 msgstr ""
14268
14269 # type: textblock
14270 #. type: textblock
14271 #: ../src/guestfs-actions.pod:3976 ../fish/guestfish-actions.pod:2698
14272 msgid ""
14273 "This command erases existing data on C<device> and formats the device as a "
14274 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
14275 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
14276 msgstr ""
14277
14278 # type: textblock
14279 #. type: textblock
14280 #: ../src/guestfs-actions.pod:3983 ../src/guestfs-actions.pod:4006
14281 #: ../src/guestfs-actions.pod:4149 ../src/guestfs-actions.pod:5252
14282 #: ../src/guestfs-actions.pod:6034 ../src/guestfs-actions.pod:6443
14283 #: ../src/guestfs-actions.pod:6473 ../src/guestfs-actions.pod:6506
14284 #: ../src/guestfs-actions.pod:7682 ../fish/guestfish-actions.pod:2706
14285 #: ../fish/guestfish-actions.pod:2719 ../fish/guestfish-actions.pod:2806
14286 #: ../fish/guestfish-actions.pod:3467 ../fish/guestfish-actions.pod:3987
14287 #: ../fish/guestfish-actions.pod:4297 ../fish/guestfish-actions.pod:4320
14288 #: ../fish/guestfish-actions.pod:4342 ../fish/guestfish-actions.pod:5066
14289 msgid ""
14290 "B<This command is dangerous.  Without careful use you can easily destroy all "
14291 "your data>."
14292 msgstr ""
14293
14294 # type: =head2
14295 #. type: =head2
14296 #: ../src/guestfs-actions.pod:3992
14297 msgid "guestfs_luks_format_cipher"
14298 msgstr ""
14299
14300 # type: verbatim
14301 #. type: verbatim
14302 #: ../src/guestfs-actions.pod:3994
14303 #, no-wrap
14304 msgid ""
14305 " int\n"
14306 " guestfs_luks_format_cipher (guestfs_h *g,\n"
14307 "                             const char *device,\n"
14308 "                             const char *key,\n"
14309 "                             int keyslot,\n"
14310 "                             const char *cipher);\n"
14311 "\n"
14312 msgstr ""
14313
14314 # type: textblock
14315 #. type: textblock
14316 #: ../src/guestfs-actions.pod:4001
14317 msgid ""
14318 "This command is the same as C<guestfs_luks_format> but it also allows you to "
14319 "set the C<cipher> used."
14320 msgstr ""
14321
14322 # type: =head2
14323 #. type: =head2
14324 #: ../src/guestfs-actions.pod:4015
14325 msgid "guestfs_luks_kill_slot"
14326 msgstr ""
14327
14328 # type: verbatim
14329 #. type: verbatim
14330 #: ../src/guestfs-actions.pod:4017
14331 #, no-wrap
14332 msgid ""
14333 " int\n"
14334 " guestfs_luks_kill_slot (guestfs_h *g,\n"
14335 "                         const char *device,\n"
14336 "                         const char *key,\n"
14337 "                         int keyslot);\n"
14338 "\n"
14339 msgstr ""
14340
14341 # type: textblock
14342 #. type: textblock
14343 #: ../src/guestfs-actions.pod:4023 ../fish/guestfish-actions.pod:2726
14344 msgid ""
14345 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
14346 "device C<device>.  C<key> must be one of the I<other> keys."
14347 msgstr ""
14348
14349 # type: =head2
14350 #. type: =head2
14351 #: ../src/guestfs-actions.pod:4035
14352 msgid "guestfs_luks_open"
14353 msgstr ""
14354
14355 # type: verbatim
14356 #. type: verbatim
14357 #: ../src/guestfs-actions.pod:4037
14358 #, no-wrap
14359 msgid ""
14360 " int\n"
14361 " guestfs_luks_open (guestfs_h *g,\n"
14362 "                    const char *device,\n"
14363 "                    const char *key,\n"
14364 "                    const char *mapname);\n"
14365 "\n"
14366 msgstr ""
14367
14368 # type: textblock
14369 #. type: textblock
14370 #: ../src/guestfs-actions.pod:4043 ../fish/guestfish-actions.pod:2737
14371 msgid ""
14372 "This command opens a block device which has been encrypted according to the "
14373 "Linux Unified Key Setup (LUKS) standard."
14374 msgstr ""
14375
14376 # type: textblock
14377 #. type: textblock
14378 #: ../src/guestfs-actions.pod:4046 ../fish/guestfish-actions.pod:2740
14379 msgid "C<device> is the encrypted block device or partition."
14380 msgstr ""
14381
14382 # type: textblock
14383 #. type: textblock
14384 #: ../src/guestfs-actions.pod:4048 ../fish/guestfish-actions.pod:2742
14385 msgid ""
14386 "The caller must supply one of the keys associated with the LUKS block "
14387 "device, in the C<key> parameter."
14388 msgstr ""
14389
14390 # type: textblock
14391 #. type: textblock
14392 #: ../src/guestfs-actions.pod:4051 ../fish/guestfish-actions.pod:2745
14393 msgid ""
14394 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
14395 "writes to this block device are decrypted from and encrypted to the "
14396 "underlying C<device> respectively."
14397 msgstr ""
14398
14399 # type: textblock
14400 #. type: textblock
14401 #: ../src/guestfs-actions.pod:4055
14402 msgid ""
14403 "If this block device contains LVM volume groups, then calling "
14404 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
14405 "visible."
14406 msgstr ""
14407
14408 #. type: textblock
14409 #: ../src/guestfs-actions.pod:4059
14410 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
14411 msgstr ""
14412
14413 # type: =head2
14414 #. type: =head2
14415 #: ../src/guestfs-actions.pod:4070
14416 msgid "guestfs_luks_open_ro"
14417 msgstr ""
14418
14419 # type: verbatim
14420 #. type: verbatim
14421 #: ../src/guestfs-actions.pod:4072
14422 #, no-wrap
14423 msgid ""
14424 " int\n"
14425 " guestfs_luks_open_ro (guestfs_h *g,\n"
14426 "                       const char *device,\n"
14427 "                       const char *key,\n"
14428 "                       const char *mapname);\n"
14429 "\n"
14430 msgstr ""
14431
14432 # type: textblock
14433 #. type: textblock
14434 #: ../src/guestfs-actions.pod:4078
14435 msgid ""
14436 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
14437 "created."
14438 msgstr ""
14439
14440 # type: =head2
14441 #. type: =head2
14442 #: ../src/guestfs-actions.pod:4089
14443 msgid "guestfs_lvcreate"
14444 msgstr ""
14445
14446 # type: verbatim
14447 #. type: verbatim
14448 #: ../src/guestfs-actions.pod:4091
14449 #, no-wrap
14450 msgid ""
14451 " int\n"
14452 " guestfs_lvcreate (guestfs_h *g,\n"
14453 "                   const char *logvol,\n"
14454 "                   const char *volgroup,\n"
14455 "                   int mbytes);\n"
14456 "\n"
14457 msgstr ""
14458
14459 # type: textblock
14460 #. type: textblock
14461 #: ../src/guestfs-actions.pod:4097 ../fish/guestfish-actions.pod:2773
14462 msgid ""
14463 "This creates an LVM logical volume called C<logvol> on the volume group "
14464 "C<volgroup>, with C<size> megabytes."
14465 msgstr ""
14466
14467 # type: =head2
14468 #. type: =head2
14469 #: ../src/guestfs-actions.pod:4104
14470 msgid "guestfs_lvm_canonical_lv_name"
14471 msgstr ""
14472
14473 # type: verbatim
14474 #. type: verbatim
14475 #: ../src/guestfs-actions.pod:4106
14476 #, no-wrap
14477 msgid ""
14478 " char *\n"
14479 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
14480 "                                const char *lvname);\n"
14481 "\n"
14482 msgstr ""
14483
14484 # type: textblock
14485 #. type: textblock
14486 #: ../src/guestfs-actions.pod:4110 ../fish/guestfish-actions.pod:2780
14487 msgid ""
14488 "This converts alternative naming schemes for LVs that you might find to the "
14489 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
14490 "LV>."
14491 msgstr ""
14492
14493 # type: textblock
14494 #. type: textblock
14495 #: ../src/guestfs-actions.pod:4114 ../fish/guestfish-actions.pod:2784
14496 msgid ""
14497 "This command returns an error if the C<lvname> parameter does not refer to a "
14498 "logical volume."
14499 msgstr ""
14500
14501 # type: textblock
14502 #. type: textblock
14503 #: ../src/guestfs-actions.pod:4117
14504 msgid "See also C<guestfs_is_lv>."
14505 msgstr ""
14506
14507 # type: textblock
14508 #. type: textblock
14509 #: ../src/guestfs-actions.pod:4122
14510 msgid "(Added in 1.5.24)"
14511 msgstr ""
14512
14513 # type: =head2
14514 #. type: =head2
14515 #: ../src/guestfs-actions.pod:4124
14516 msgid "guestfs_lvm_clear_filter"
14517 msgstr ""
14518
14519 # type: verbatim
14520 #. type: verbatim
14521 #: ../src/guestfs-actions.pod:4126
14522 #, no-wrap
14523 msgid ""
14524 " int\n"
14525 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
14526 "\n"
14527 msgstr ""
14528
14529 # type: textblock
14530 #. type: textblock
14531 #: ../src/guestfs-actions.pod:4129
14532 msgid ""
14533 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
14534 "see every block device."
14535 msgstr ""
14536
14537 # type: textblock
14538 #. type: textblock
14539 #: ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:4174
14540 #: ../fish/guestfish-actions.pod:2796 ../fish/guestfish-actions.pod:2827
14541 msgid ""
14542 "This command also clears the LVM cache and performs a volume group scan."
14543 msgstr ""
14544
14545 # type: =head2
14546 #. type: =head2
14547 #: ../src/guestfs-actions.pod:4139
14548 msgid "guestfs_lvm_remove_all"
14549 msgstr ""
14550
14551 # type: verbatim
14552 #. type: verbatim
14553 #: ../src/guestfs-actions.pod:4141
14554 #, no-wrap
14555 msgid ""
14556 " int\n"
14557 " guestfs_lvm_remove_all (guestfs_h *g);\n"
14558 "\n"
14559 msgstr ""
14560
14561 # type: textblock
14562 #. type: textblock
14563 #: ../src/guestfs-actions.pod:4144 ../fish/guestfish-actions.pod:2803
14564 msgid ""
14565 "This command removes all LVM logical volumes, volume groups and physical "
14566 "volumes."
14567 msgstr ""
14568
14569 # type: =head2
14570 #. type: =head2
14571 #: ../src/guestfs-actions.pod:4154
14572 msgid "guestfs_lvm_set_filter"
14573 msgstr ""
14574
14575 # type: verbatim
14576 #. type: verbatim
14577 #: ../src/guestfs-actions.pod:4156
14578 #, no-wrap
14579 msgid ""
14580 " int\n"
14581 " guestfs_lvm_set_filter (guestfs_h *g,\n"
14582 "                         char *const *devices);\n"
14583 "\n"
14584 msgstr ""
14585
14586 # type: textblock
14587 #. type: textblock
14588 #: ../src/guestfs-actions.pod:4160 ../fish/guestfish-actions.pod:2813
14589 msgid ""
14590 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
14591 "block devices in the list C<devices>, and will ignore all other attached "
14592 "block devices."
14593 msgstr ""
14594
14595 # type: textblock
14596 #. type: textblock
14597 #: ../src/guestfs-actions.pod:4164 ../fish/guestfish-actions.pod:2817
14598 msgid ""
14599 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
14600 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
14601 "there are two types of duplication possible: either cloned PVs/VGs which "
14602 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
14603 "same name.  In normal operation you cannot create this situation, but you "
14604 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
14605 "inside the LVM metadata."
14606 msgstr ""
14607
14608 # type: textblock
14609 #. type: textblock
14610 #: ../src/guestfs-actions.pod:4177 ../fish/guestfish-actions.pod:2830
14611 msgid "You can filter whole block devices or individual partitions."
14612 msgstr ""
14613
14614 # type: textblock
14615 #. type: textblock
14616 #: ../src/guestfs-actions.pod:4179 ../fish/guestfish-actions.pod:2832
14617 msgid ""
14618 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
14619 "filesystem), even if you are not filtering out that VG."
14620 msgstr ""
14621
14622 # type: =head2
14623 #. type: =head2
14624 #: ../src/guestfs-actions.pod:4187
14625 msgid "guestfs_lvremove"
14626 msgstr ""
14627
14628 # type: verbatim
14629 #. type: verbatim
14630 #: ../src/guestfs-actions.pod:4189
14631 #, no-wrap
14632 msgid ""
14633 " int\n"
14634 " guestfs_lvremove (guestfs_h *g,\n"
14635 "                   const char *device);\n"
14636 "\n"
14637 msgstr ""
14638
14639 # type: textblock
14640 #. type: textblock
14641 #: ../src/guestfs-actions.pod:4193 ../fish/guestfish-actions.pod:2840
14642 msgid ""
14643 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
14644 "LV, such as C</dev/VG/LV>."
14645 msgstr ""
14646
14647 # type: textblock
14648 #. type: textblock
14649 #: ../src/guestfs-actions.pod:4196 ../fish/guestfish-actions.pod:2843
14650 msgid ""
14651 "You can also remove all LVs in a volume group by specifying the VG name, C</"
14652 "dev/VG>."
14653 msgstr ""
14654
14655 # type: textblock
14656 #. type: textblock
14657 #: ../src/guestfs-actions.pod:4201 ../src/guestfs-actions.pod:5598
14658 #: ../src/guestfs-actions.pod:7413
14659 msgid "(Added in 1.0.13)"
14660 msgstr ""
14661
14662 # type: =head2
14663 #. type: =head2
14664 #: ../src/guestfs-actions.pod:4203
14665 msgid "guestfs_lvrename"
14666 msgstr ""
14667
14668 # type: verbatim
14669 #. type: verbatim
14670 #: ../src/guestfs-actions.pod:4205
14671 #, no-wrap
14672 msgid ""
14673 " int\n"
14674 " guestfs_lvrename (guestfs_h *g,\n"
14675 "                   const char *logvol,\n"
14676 "                   const char *newlogvol);\n"
14677 "\n"
14678 msgstr ""
14679
14680 # type: textblock
14681 #. type: textblock
14682 #: ../src/guestfs-actions.pod:4210 ../fish/guestfish-actions.pod:2850
14683 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
14684 msgstr ""
14685
14686 # type: textblock
14687 #. type: textblock
14688 #: ../src/guestfs-actions.pod:4214 ../src/guestfs-actions.pod:7426
14689 msgid "(Added in 1.0.83)"
14690 msgstr ""
14691
14692 # type: =head2
14693 #. type: =head2
14694 #: ../src/guestfs-actions.pod:4216
14695 msgid "guestfs_lvresize"
14696 msgstr ""
14697
14698 # type: verbatim
14699 #. type: verbatim
14700 #: ../src/guestfs-actions.pod:4218
14701 #, no-wrap
14702 msgid ""
14703 " int\n"
14704 " guestfs_lvresize (guestfs_h *g,\n"
14705 "                   const char *device,\n"
14706 "                   int mbytes);\n"
14707 "\n"
14708 msgstr ""
14709
14710 # type: textblock
14711 #. type: textblock
14712 #: ../src/guestfs-actions.pod:4223 ../fish/guestfish-actions.pod:2856
14713 msgid ""
14714 "This resizes (expands or shrinks) an existing LVM logical volume to "
14715 "C<mbytes>.  When reducing, data in the reduced part is lost."
14716 msgstr ""
14717
14718 # type: =head2
14719 #. type: =head2
14720 #: ../src/guestfs-actions.pod:4231
14721 msgid "guestfs_lvresize_free"
14722 msgstr ""
14723
14724 # type: verbatim
14725 #. type: verbatim
14726 #: ../src/guestfs-actions.pod:4233
14727 #, no-wrap
14728 msgid ""
14729 " int\n"
14730 " guestfs_lvresize_free (guestfs_h *g,\n"
14731 "                        const char *lv,\n"
14732 "                        int percent);\n"
14733 "\n"
14734 msgstr ""
14735
14736 # type: textblock
14737 #. type: textblock
14738 #: ../src/guestfs-actions.pod:4238 ../fish/guestfish-actions.pod:2864
14739 msgid ""
14740 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
14741 "remaining free space in the volume group.  Commonly you would call this with "
14742 "pc = 100 which expands the logical volume as much as possible, using all "
14743 "remaining free space in the volume group."
14744 msgstr ""
14745
14746 # type: textblock
14747 #. type: textblock
14748 #: ../src/guestfs-actions.pod:4246
14749 msgid "(Added in 1.3.3)"
14750 msgstr ""
14751
14752 # type: =head2
14753 #. type: =head2
14754 #: ../src/guestfs-actions.pod:4248
14755 msgid "guestfs_lvs"
14756 msgstr ""
14757
14758 # type: verbatim
14759 #. type: verbatim
14760 #: ../src/guestfs-actions.pod:4250
14761 #, no-wrap
14762 msgid ""
14763 " char **\n"
14764 " guestfs_lvs (guestfs_h *g);\n"
14765 "\n"
14766 msgstr ""
14767
14768 # type: textblock
14769 #. type: textblock
14770 #: ../src/guestfs-actions.pod:4253 ../fish/guestfish-actions.pod:2874
14771 msgid ""
14772 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
14773 "(8)> command."
14774 msgstr ""
14775
14776 # type: textblock
14777 #. type: textblock
14778 #: ../src/guestfs-actions.pod:4256 ../fish/guestfish-actions.pod:2877
14779 msgid ""
14780 "This returns a list of the logical volume device names (eg. C</dev/"
14781 "VolGroup00/LogVol00>)."
14782 msgstr ""
14783
14784 # type: textblock
14785 #. type: textblock
14786 #: ../src/guestfs-actions.pod:4259
14787 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
14788 msgstr ""
14789
14790 # type: =head2
14791 #. type: =head2
14792 #: ../src/guestfs-actions.pod:4267
14793 msgid "guestfs_lvs_full"
14794 msgstr ""
14795
14796 # type: verbatim
14797 #. type: verbatim
14798 #: ../src/guestfs-actions.pod:4269
14799 #, no-wrap
14800 msgid ""
14801 " struct guestfs_lvm_lv_list *\n"
14802 " guestfs_lvs_full (guestfs_h *g);\n"
14803 "\n"
14804 msgstr ""
14805
14806 # type: textblock
14807 #. type: textblock
14808 #: ../src/guestfs-actions.pod:4272 ../fish/guestfish-actions.pod:2886
14809 msgid ""
14810 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
14811 "(8)> command.  The \"full\" version includes all fields."
14812 msgstr ""
14813
14814 # type: textblock
14815 #. type: textblock
14816 #: ../src/guestfs-actions.pod:4275
14817 msgid ""
14818 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
14819 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
14820 msgstr ""
14821
14822 # type: =head2
14823 #. type: =head2
14824 #: ../src/guestfs-actions.pod:4281
14825 msgid "guestfs_lvuuid"
14826 msgstr ""
14827
14828 # type: verbatim
14829 #. type: verbatim
14830 #: ../src/guestfs-actions.pod:4283
14831 #, no-wrap
14832 msgid ""
14833 " char *\n"
14834 " guestfs_lvuuid (guestfs_h *g,\n"
14835 "                 const char *device);\n"
14836 "\n"
14837 msgstr ""
14838
14839 # type: textblock
14840 #. type: textblock
14841 #: ../src/guestfs-actions.pod:4287 ../fish/guestfish-actions.pod:2893
14842 msgid "This command returns the UUID of the LVM LV C<device>."
14843 msgstr ""
14844
14845 # type: =head2
14846 #. type: =head2
14847 #: ../src/guestfs-actions.pod:4294
14848 msgid "guestfs_lxattrlist"
14849 msgstr ""
14850
14851 # type: verbatim
14852 #. type: verbatim
14853 #: ../src/guestfs-actions.pod:4296
14854 #, no-wrap
14855 msgid ""
14856 " struct guestfs_xattr_list *\n"
14857 " guestfs_lxattrlist (guestfs_h *g,\n"
14858 "                     const char *path,\n"
14859 "                     char *const *names);\n"
14860 "\n"
14861 msgstr ""
14862
14863 # type: textblock
14864 #. type: textblock
14865 #: ../src/guestfs-actions.pod:4301 ../fish/guestfish-actions.pod:2899
14866 msgid ""
14867 "This call allows you to get the extended attributes of multiple files, where "
14868 "all files are in the directory C<path>.  C<names> is the list of files from "
14869 "this directory."
14870 msgstr ""
14871
14872 # type: textblock
14873 #. type: textblock
14874 #: ../src/guestfs-actions.pod:4305 ../fish/guestfish-actions.pod:2903
14875 msgid ""
14876 "On return you get a flat list of xattr structs which must be interpreted "
14877 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
14878 "C<attrval> in this struct is zero-length to indicate there was an error "
14879 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
14880 "number (the number of following attributes for this file, which could be C<"
14881 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
14882 "for the first named file.  This repeats for the second and subsequent files."
14883 msgstr ""
14884
14885 # type: textblock
14886 #. type: textblock
14887 #: ../src/guestfs-actions.pod:4315
14888 msgid ""
14889 "This call is intended for programs that want to efficiently list a directory "
14890 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
14891 "a similarly efficient call for getting standard stats.  Very long directory "
14892 "listings might cause the protocol message size to be exceeded, causing this "
14893 "call to fail.  The caller must split up such requests into smaller groups of "
14894 "names."
14895 msgstr ""
14896
14897 # type: =head2
14898 #. type: =head2
14899 #: ../src/guestfs-actions.pod:4329
14900 msgid "guestfs_mkdir"
14901 msgstr ""
14902
14903 # type: verbatim
14904 #. type: verbatim
14905 #: ../src/guestfs-actions.pod:4331
14906 #, no-wrap
14907 msgid ""
14908 " int\n"
14909 " guestfs_mkdir (guestfs_h *g,\n"
14910 "                const char *path);\n"
14911 "\n"
14912 msgstr ""
14913
14914 # type: textblock
14915 #. type: textblock
14916 #: ../src/guestfs-actions.pod:4335 ../fish/guestfish-actions.pod:2925
14917 msgid "Create a directory named C<path>."
14918 msgstr ""
14919
14920 # type: =head2
14921 #. type: =head2
14922 #: ../src/guestfs-actions.pod:4341
14923 msgid "guestfs_mkdir_mode"
14924 msgstr ""
14925
14926 # type: verbatim
14927 #. type: verbatim
14928 #: ../src/guestfs-actions.pod:4343
14929 #, no-wrap
14930 msgid ""
14931 " int\n"
14932 " guestfs_mkdir_mode (guestfs_h *g,\n"
14933 "                     const char *path,\n"
14934 "                     int mode);\n"
14935 "\n"
14936 msgstr ""
14937
14938 # type: textblock
14939 #. type: textblock
14940 #: ../src/guestfs-actions.pod:4348 ../fish/guestfish-actions.pod:2931
14941 msgid ""
14942 "This command creates a directory, setting the initial permissions of the "
14943 "directory to C<mode>."
14944 msgstr ""
14945
14946 # type: textblock
14947 #. type: textblock
14948 #: ../src/guestfs-actions.pod:4351 ../fish/guestfish-actions.pod:2934
14949 msgid ""
14950 "For common Linux filesystems, the actual mode which is set will be C<mode & "
14951 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
14952 "other ways."
14953 msgstr ""
14954
14955 # type: textblock
14956 #. type: textblock
14957 #: ../src/guestfs-actions.pod:4355
14958 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
14959 msgstr ""
14960
14961 # type: =head2
14962 #. type: =head2
14963 #: ../src/guestfs-actions.pod:4361
14964 msgid "guestfs_mkdir_p"
14965 msgstr ""
14966
14967 # type: verbatim
14968 #. type: verbatim
14969 #: ../src/guestfs-actions.pod:4363
14970 #, no-wrap
14971 msgid ""
14972 " int\n"
14973 " guestfs_mkdir_p (guestfs_h *g,\n"
14974 "                  const char *path);\n"
14975 "\n"
14976 msgstr ""
14977
14978 # type: textblock
14979 #. type: textblock
14980 #: ../src/guestfs-actions.pod:4367 ../fish/guestfish-actions.pod:2944
14981 msgid ""
14982 "Create a directory named C<path>, creating any parent directories as "
14983 "necessary.  This is like the C<mkdir -p> shell command."
14984 msgstr ""
14985
14986 # type: =head2
14987 #. type: =head2
14988 #: ../src/guestfs-actions.pod:4374
14989 msgid "guestfs_mkdtemp"
14990 msgstr ""
14991
14992 # type: verbatim
14993 #. type: verbatim
14994 #: ../src/guestfs-actions.pod:4376
14995 #, no-wrap
14996 msgid ""
14997 " char *\n"
14998 " guestfs_mkdtemp (guestfs_h *g,\n"
14999 "                  const char *template);\n"
15000 "\n"
15001 msgstr ""
15002
15003 # type: textblock
15004 #. type: textblock
15005 #: ../src/guestfs-actions.pod:4380 ../fish/guestfish-actions.pod:2951
15006 msgid ""
15007 "This command creates a temporary directory.  The C<template> parameter "
15008 "should be a full pathname for the temporary directory name with the final "
15009 "six characters being \"XXXXXX\"."
15010 msgstr ""
15011
15012 # type: textblock
15013 #. type: textblock
15014 #: ../src/guestfs-actions.pod:4385 ../fish/guestfish-actions.pod:2956
15015 msgid ""
15016 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
15017 "being suitable for Windows filesystems."
15018 msgstr ""
15019
15020 # type: textblock
15021 #. type: textblock
15022 #: ../src/guestfs-actions.pod:4388 ../fish/guestfish-actions.pod:2959
15023 msgid "The name of the temporary directory that was created is returned."
15024 msgstr ""
15025
15026 # type: textblock
15027 #. type: textblock
15028 #: ../src/guestfs-actions.pod:4391 ../fish/guestfish-actions.pod:2962
15029 msgid "The temporary directory is created with mode 0700 and is owned by root."
15030 msgstr ""
15031
15032 # type: textblock
15033 #. type: textblock
15034 #: ../src/guestfs-actions.pod:4394 ../fish/guestfish-actions.pod:2965
15035 msgid ""
15036 "The caller is responsible for deleting the temporary directory and its "
15037 "contents after use."
15038 msgstr ""
15039
15040 # type: textblock
15041 #. type: textblock
15042 #: ../src/guestfs-actions.pod:4397 ../fish/guestfish-actions.pod:2968
15043 msgid "See also: L<mkdtemp(3)>"
15044 msgstr ""
15045
15046 # type: =head2
15047 #. type: =head2
15048 #: ../src/guestfs-actions.pod:4404
15049 msgid "guestfs_mke2fs_J"
15050 msgstr ""
15051
15052 # type: verbatim
15053 #. type: verbatim
15054 #: ../src/guestfs-actions.pod:4406
15055 #, no-wrap
15056 msgid ""
15057 " int\n"
15058 " guestfs_mke2fs_J (guestfs_h *g,\n"
15059 "                   const char *fstype,\n"
15060 "                   int blocksize,\n"
15061 "                   const char *device,\n"
15062 "                   const char *journal);\n"
15063 "\n"
15064 msgstr ""
15065
15066 # type: textblock
15067 #. type: textblock
15068 #: ../src/guestfs-actions.pod:4413 ../fish/guestfish-actions.pod:2974
15069 msgid ""
15070 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
15071 "C<journal>.  It is equivalent to the command:"
15072 msgstr ""
15073
15074 # type: verbatim
15075 #. type: verbatim
15076 #: ../src/guestfs-actions.pod:4417 ../fish/guestfish-actions.pod:2978
15077 #, no-wrap
15078 msgid ""
15079 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
15080 "\n"
15081 msgstr ""
15082
15083 # type: textblock
15084 #. type: textblock
15085 #: ../src/guestfs-actions.pod:4419
15086 msgid "See also C<guestfs_mke2journal>."
15087 msgstr ""
15088
15089 # type: textblock
15090 #. type: textblock
15091 #: ../src/guestfs-actions.pod:4423 ../src/guestfs-actions.pod:4441
15092 #: ../src/guestfs-actions.pod:4459 ../src/guestfs-actions.pod:4475
15093 #: ../src/guestfs-actions.pod:4489 ../src/guestfs-actions.pod:4503
15094 #: ../src/guestfs-actions.pod:4562 ../src/guestfs-actions.pod:4839
15095 msgid "(Added in 1.0.68)"
15096 msgstr ""
15097
15098 # type: =head2
15099 #. type: =head2
15100 #: ../src/guestfs-actions.pod:4425
15101 msgid "guestfs_mke2fs_JL"
15102 msgstr ""
15103
15104 # type: verbatim
15105 #. type: verbatim
15106 #: ../src/guestfs-actions.pod:4427
15107 #, no-wrap
15108 msgid ""
15109 " int\n"
15110 " guestfs_mke2fs_JL (guestfs_h *g,\n"
15111 "                    const char *fstype,\n"
15112 "                    int blocksize,\n"
15113 "                    const char *device,\n"
15114 "                    const char *label);\n"
15115 "\n"
15116 msgstr ""
15117
15118 # type: textblock
15119 #. type: textblock
15120 #: ../src/guestfs-actions.pod:4434 ../fish/guestfish-actions.pod:2986
15121 msgid ""
15122 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
15123 "the journal labeled C<label>."
15124 msgstr ""
15125
15126 # type: textblock
15127 #. type: textblock
15128 #: ../src/guestfs-actions.pod:4437
15129 msgid "See also C<guestfs_mke2journal_L>."
15130 msgstr ""
15131
15132 # type: =head2
15133 #. type: =head2
15134 #: ../src/guestfs-actions.pod:4443
15135 msgid "guestfs_mke2fs_JU"
15136 msgstr ""
15137
15138 # type: verbatim
15139 #. type: verbatim
15140 #: ../src/guestfs-actions.pod:4445
15141 #, no-wrap
15142 msgid ""
15143 " int\n"
15144 " guestfs_mke2fs_JU (guestfs_h *g,\n"
15145 "                    const char *fstype,\n"
15146 "                    int blocksize,\n"
15147 "                    const char *device,\n"
15148 "                    const char *uuid);\n"
15149 "\n"
15150 msgstr ""
15151
15152 # type: textblock
15153 #. type: textblock
15154 #: ../src/guestfs-actions.pod:4452 ../fish/guestfish-actions.pod:2995
15155 msgid ""
15156 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
15157 "the journal with UUID C<uuid>."
15158 msgstr ""
15159
15160 # type: textblock
15161 #. type: textblock
15162 #: ../src/guestfs-actions.pod:4455
15163 msgid "See also C<guestfs_mke2journal_U>."
15164 msgstr ""
15165
15166 # type: =head2
15167 #. type: =head2
15168 #: ../src/guestfs-actions.pod:4461
15169 msgid "guestfs_mke2journal"
15170 msgstr ""
15171
15172 # type: verbatim
15173 #. type: verbatim
15174 #: ../src/guestfs-actions.pod:4463
15175 #, no-wrap
15176 msgid ""
15177 " int\n"
15178 " guestfs_mke2journal (guestfs_h *g,\n"
15179 "                      int blocksize,\n"
15180 "                      const char *device);\n"
15181 "\n"
15182 msgstr ""
15183
15184 # type: textblock
15185 #. type: textblock
15186 #: ../src/guestfs-actions.pod:4468 ../fish/guestfish-actions.pod:3004
15187 msgid ""
15188 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
15189 "command:"
15190 msgstr ""
15191
15192 # type: verbatim
15193 #. type: verbatim
15194 #: ../src/guestfs-actions.pod:4471 ../fish/guestfish-actions.pod:3007
15195 #, no-wrap
15196 msgid ""
15197 " mke2fs -O journal_dev -b blocksize device\n"
15198 "\n"
15199 msgstr ""
15200
15201 # type: =head2
15202 #. type: =head2
15203 #: ../src/guestfs-actions.pod:4477
15204 msgid "guestfs_mke2journal_L"
15205 msgstr ""
15206
15207 # type: verbatim
15208 #. type: verbatim
15209 #: ../src/guestfs-actions.pod:4479
15210 #, no-wrap
15211 msgid ""
15212 " int\n"
15213 " guestfs_mke2journal_L (guestfs_h *g,\n"
15214 "                        int blocksize,\n"
15215 "                        const char *label,\n"
15216 "                        const char *device);\n"
15217 "\n"
15218 msgstr ""
15219
15220 # type: textblock
15221 #. type: textblock
15222 #: ../src/guestfs-actions.pod:4485 ../fish/guestfish-actions.pod:3013
15223 msgid "This creates an ext2 external journal on C<device> with label C<label>."
15224 msgstr ""
15225
15226 # type: =head2
15227 #. type: =head2
15228 #: ../src/guestfs-actions.pod:4491
15229 msgid "guestfs_mke2journal_U"
15230 msgstr ""
15231
15232 # type: verbatim
15233 #. type: verbatim
15234 #: ../src/guestfs-actions.pod:4493
15235 #, no-wrap
15236 msgid ""
15237 " int\n"
15238 " guestfs_mke2journal_U (guestfs_h *g,\n"
15239 "                        int blocksize,\n"
15240 "                        const char *uuid,\n"
15241 "                        const char *device);\n"
15242 "\n"
15243 msgstr ""
15244
15245 # type: textblock
15246 #. type: textblock
15247 #: ../src/guestfs-actions.pod:4499 ../fish/guestfish-actions.pod:3019
15248 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
15249 msgstr ""
15250
15251 # type: =head2
15252 #. type: =head2
15253 #: ../src/guestfs-actions.pod:4505
15254 msgid "guestfs_mkfifo"
15255 msgstr ""
15256
15257 # type: verbatim
15258 #. type: verbatim
15259 #: ../src/guestfs-actions.pod:4507
15260 #, no-wrap
15261 msgid ""
15262 " int\n"
15263 " guestfs_mkfifo (guestfs_h *g,\n"
15264 "                 int mode,\n"
15265 "                 const char *path);\n"
15266 "\n"
15267 msgstr ""
15268
15269 # type: textblock
15270 #. type: textblock
15271 #: ../src/guestfs-actions.pod:4512
15272 msgid ""
15273 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
15274 "is just a convenient wrapper around C<guestfs_mknod>."
15275 msgstr ""
15276
15277 # type: =head2
15278 #. type: =head2
15279 #: ../src/guestfs-actions.pod:4522
15280 msgid "guestfs_mkfs"
15281 msgstr ""
15282
15283 # type: verbatim
15284 #. type: verbatim
15285 #: ../src/guestfs-actions.pod:4524
15286 #, no-wrap
15287 msgid ""
15288 " int\n"
15289 " guestfs_mkfs (guestfs_h *g,\n"
15290 "               const char *fstype,\n"
15291 "               const char *device);\n"
15292 "\n"
15293 msgstr ""
15294
15295 # type: textblock
15296 #. type: textblock
15297 #: ../src/guestfs-actions.pod:4529 ../fish/guestfish-actions.pod:3035
15298 msgid ""
15299 "This creates a filesystem on C<device> (usually a partition or LVM logical "
15300 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
15301 msgstr ""
15302
15303 # type: =head2
15304 #. type: =head2
15305 #: ../src/guestfs-actions.pod:4537
15306 msgid "guestfs_mkfs_b"
15307 msgstr ""
15308
15309 # type: verbatim
15310 #. type: verbatim
15311 #: ../src/guestfs-actions.pod:4539
15312 #, no-wrap
15313 msgid ""
15314 " int\n"
15315 " guestfs_mkfs_b (guestfs_h *g,\n"
15316 "                 const char *fstype,\n"
15317 "                 int blocksize,\n"
15318 "                 const char *device);\n"
15319 "\n"
15320 msgstr ""
15321
15322 # type: textblock
15323 #. type: textblock
15324 #: ../src/guestfs-actions.pod:4545
15325 msgid ""
15326 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
15327 "block size of the resulting filesystem.  Supported block sizes depend on the "
15328 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
15329 msgstr ""
15330
15331 # type: textblock
15332 #. type: textblock
15333 #: ../src/guestfs-actions.pod:4550 ../src/guestfs-actions.pod:4595
15334 #: ../fish/guestfish-actions.pod:3048 ../fish/guestfish-actions.pod:3075
15335 msgid ""
15336 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
15337 "cluster size."
15338 msgstr ""
15339
15340 # type: textblock
15341 #. type: textblock
15342 #: ../src/guestfs-actions.pod:4555 ../fish/guestfish-actions.pod:3051
15343 msgid ""
15344 "This function is deprecated.  In new code, use the C<mkfs_opts> call instead."
15345 msgstr ""
15346
15347 # type: =head2
15348 #. type: =head2
15349 #: ../src/guestfs-actions.pod:4564
15350 msgid "guestfs_mkfs_opts"
15351 msgstr ""
15352
15353 # type: verbatim
15354 #. type: verbatim
15355 #: ../src/guestfs-actions.pod:4566
15356 #, no-wrap
15357 msgid ""
15358 " int\n"
15359 " guestfs_mkfs_opts (guestfs_h *g,\n"
15360 "                    const char *fstype,\n"
15361 "                    const char *device,\n"
15362 "                    ...);\n"
15363 "\n"
15364 msgstr ""
15365
15366 #. type: verbatim
15367 #: ../src/guestfs-actions.pod:4577
15368 #, no-wrap
15369 msgid ""
15370 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
15371 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
15372 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
15373 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
15374 "\n"
15375 msgstr ""
15376
15377 # type: textblock
15378 #. type: textblock
15379 #: ../src/guestfs-actions.pod:4582 ../fish/guestfish-actions.pod:3062
15380 msgid ""
15381 "This function creates a filesystem on C<device>.  The filesystem type is "
15382 "C<fstype>, for example C<ext3>."
15383 msgstr ""
15384
15385 # type: =item
15386 #. type: =item
15387 #: ../src/guestfs-actions.pod:4589 ../fish/guestfish-actions.pod:3069
15388 msgid "C<blocksize>"
15389 msgstr ""
15390
15391 # type: textblock
15392 #. type: textblock
15393 #: ../src/guestfs-actions.pod:4591 ../fish/guestfish-actions.pod:3071
15394 msgid ""
15395 "The filesystem block size.  Supported block sizes depend on the filesystem "
15396 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
15397 "filesystems."
15398 msgstr ""
15399
15400 #. type: textblock
15401 #: ../src/guestfs-actions.pod:4598 ../fish/guestfish-actions.pod:3078
15402 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
15403 msgstr ""
15404
15405 #. type: =item
15406 #: ../src/guestfs-actions.pod:4600 ../fish/guestfish-actions.pod:3080
15407 msgid "C<features>"
15408 msgstr ""
15409
15410 #. type: textblock
15411 #: ../src/guestfs-actions.pod:4602 ../fish/guestfish-actions.pod:3082
15412 msgid "This passes the I<-O> parameter to the external mkfs program."
15413 msgstr ""
15414
15415 #. type: textblock
15416 #: ../src/guestfs-actions.pod:4604 ../fish/guestfish-actions.pod:3084
15417 msgid ""
15418 "For certain filesystem types, this allows extra filesystem features to be "
15419 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
15420 msgstr ""
15421
15422 #. type: textblock
15423 #: ../src/guestfs-actions.pod:4608 ../fish/guestfish-actions.pod:3088
15424 msgid ""
15425 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
15426 "type."
15427 msgstr ""
15428
15429 #. type: =item
15430 #: ../src/guestfs-actions.pod:4611 ../fish/guestfish-actions.pod:3091
15431 msgid "C<inode>"
15432 msgstr ""
15433
15434 #. type: textblock
15435 #: ../src/guestfs-actions.pod:4613 ../fish/guestfish-actions.pod:3093
15436 msgid ""
15437 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
15438 "sets the inode size (only for ext2/3/4 filesystems at present)."
15439 msgstr ""
15440
15441 #. type: =item
15442 #: ../src/guestfs-actions.pod:4616 ../fish/guestfish-actions.pod:3096
15443 msgid "C<sectorsize>"
15444 msgstr ""
15445
15446 #. type: textblock
15447 #: ../src/guestfs-actions.pod:4618 ../fish/guestfish-actions.pod:3098
15448 msgid ""
15449 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
15450 "sets sector size for ufs filesystem."
15451 msgstr ""
15452
15453 #. type: textblock
15454 #: ../src/guestfs-actions.pod:4625
15455 msgid "(Added in 1.7.19)"
15456 msgstr ""
15457
15458 # type: =head2
15459 #. type: =head2
15460 #: ../src/guestfs-actions.pod:4627
15461 msgid "guestfs_mkfs_opts_va"
15462 msgstr ""
15463
15464 # type: verbatim
15465 #. type: verbatim
15466 #: ../src/guestfs-actions.pod:4629
15467 #, no-wrap
15468 msgid ""
15469 " int\n"
15470 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
15471 "                       const char *fstype,\n"
15472 "                       const char *device,\n"
15473 "                       va_list args);\n"
15474 "\n"
15475 msgstr ""
15476
15477 # type: textblock
15478 #. type: textblock
15479 #: ../src/guestfs-actions.pod:4635
15480 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
15481 msgstr ""
15482
15483 # type: =head2
15484 #. type: =head2
15485 #: ../src/guestfs-actions.pod:4639
15486 msgid "guestfs_mkfs_opts_argv"
15487 msgstr ""
15488
15489 # type: verbatim
15490 #. type: verbatim
15491 #: ../src/guestfs-actions.pod:4641
15492 #, no-wrap
15493 msgid ""
15494 " int\n"
15495 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
15496 "                         const char *fstype,\n"
15497 "                         const char *device,\n"
15498 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
15499 "\n"
15500 msgstr ""
15501
15502 # type: textblock
15503 #. type: textblock
15504 #: ../src/guestfs-actions.pod:4647
15505 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
15506 msgstr ""
15507
15508 # type: =head2
15509 #. type: =head2
15510 #: ../src/guestfs-actions.pod:4651
15511 msgid "guestfs_mkmountpoint"
15512 msgstr ""
15513
15514 # type: verbatim
15515 #. type: verbatim
15516 #: ../src/guestfs-actions.pod:4653
15517 #, no-wrap
15518 msgid ""
15519 " int\n"
15520 " guestfs_mkmountpoint (guestfs_h *g,\n"
15521 "                       const char *exemptpath);\n"
15522 "\n"
15523 msgstr ""
15524
15525 # type: textblock
15526 #. type: textblock
15527 #: ../src/guestfs-actions.pod:4657
15528 msgid ""
15529 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
15530 "that can be used to create extra mountpoints before mounting the first "
15531 "filesystem."
15532 msgstr ""
15533
15534 # type: textblock
15535 #. type: textblock
15536 #: ../src/guestfs-actions.pod:4661 ../fish/guestfish-actions.pod:3113
15537 msgid ""
15538 "These calls are I<only> necessary in some very limited circumstances, mainly "
15539 "the case where you want to mount a mix of unrelated and/or read-only "
15540 "filesystems together."
15541 msgstr ""
15542
15543 # type: textblock
15544 #. type: textblock
15545 #: ../src/guestfs-actions.pod:4665 ../fish/guestfish-actions.pod:3117
15546 msgid ""
15547 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
15548 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
15549 "inside that.  You can unpack this as follows in guestfish:"
15550 msgstr ""
15551
15552 # type: verbatim
15553 #. type: verbatim
15554 #: ../src/guestfs-actions.pod:4670 ../fish/guestfish-actions.pod:3122
15555 #, no-wrap
15556 msgid ""
15557 " add-ro Fedora-11-i686-Live.iso\n"
15558 " run\n"
15559 " mkmountpoint /cd\n"
15560 " mkmountpoint /sqsh\n"
15561 " mkmountpoint /ext3fs\n"
15562 " mount /dev/sda /cd\n"
15563 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
15564 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
15565 "\n"
15566 msgstr ""
15567
15568 # type: textblock
15569 #. type: textblock
15570 #: ../src/guestfs-actions.pod:4679 ../fish/guestfish-actions.pod:3131
15571 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
15572 msgstr ""
15573
15574 # type: textblock
15575 #. type: textblock
15576 #: ../src/guestfs-actions.pod:4681
15577 msgid ""
15578 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
15579 "may get unexpected errors if you try to mix these calls.  It is safest to "
15580 "manually unmount filesystems and remove mountpoints after use."
15581 msgstr ""
15582
15583 # type: textblock
15584 #. type: textblock
15585 #: ../src/guestfs-actions.pod:4685
15586 msgid ""
15587 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
15588 "first, so for this to work for manual mountpoints, you must ensure that the "
15589 "innermost mountpoints have the longest pathnames, as in the example code "
15590 "above."
15591 msgstr ""
15592
15593 # type: textblock
15594 #. type: textblock
15595 #: ../src/guestfs-actions.pod:4690 ../fish/guestfish-actions.pod:3142
15596 msgid ""
15597 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
15598 msgstr ""
15599
15600 #. type: textblock
15601 #: ../src/guestfs-actions.pod:4692
15602 msgid ""
15603 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
15604 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
15605 "can also trigger these issues."
15606 msgstr ""
15607
15608 # type: textblock
15609 #. type: textblock
15610 #: ../src/guestfs-actions.pod:4698 ../src/guestfs-actions.pod:5014
15611 #: ../src/guestfs-actions.pod:6018
15612 msgid "(Added in 1.0.62)"
15613 msgstr ""
15614
15615 # type: =head2
15616 #. type: =head2
15617 #: ../src/guestfs-actions.pod:4700
15618 msgid "guestfs_mknod"
15619 msgstr ""
15620
15621 # type: verbatim
15622 #. type: verbatim
15623 #: ../src/guestfs-actions.pod:4702
15624 #, no-wrap
15625 msgid ""
15626 " int\n"
15627 " guestfs_mknod (guestfs_h *g,\n"
15628 "                int mode,\n"
15629 "                int devmajor,\n"
15630 "                int devminor,\n"
15631 "                const char *path);\n"
15632 "\n"
15633 msgstr ""
15634
15635 # type: textblock
15636 #. type: textblock
15637 #: ../src/guestfs-actions.pod:4709 ../fish/guestfish-actions.pod:3152
15638 msgid ""
15639 "This call creates block or character special devices, or named pipes (FIFOs)."
15640 msgstr ""
15641
15642 # type: textblock
15643 #. type: textblock
15644 #: ../src/guestfs-actions.pod:4712 ../fish/guestfish-actions.pod:3155
15645 msgid ""
15646 "The C<mode> parameter should be the mode, using the standard constants.  "
15647 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
15648 "used when creating block and character special devices."
15649 msgstr ""
15650
15651 # type: textblock
15652 #. type: textblock
15653 #: ../src/guestfs-actions.pod:4717
15654 msgid ""
15655 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
15656 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
15657 "regular file).  These constants are available in the standard Linux header "
15658 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
15659 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
15660 "the appropriate constant for you."
15661 msgstr ""
15662
15663 # type: =head2
15664 #. type: =head2
15665 #: ../src/guestfs-actions.pod:4731
15666 msgid "guestfs_mknod_b"
15667 msgstr ""
15668
15669 # type: verbatim
15670 #. type: verbatim
15671 #: ../src/guestfs-actions.pod:4733
15672 #, no-wrap
15673 msgid ""
15674 " int\n"
15675 " guestfs_mknod_b (guestfs_h *g,\n"
15676 "                  int mode,\n"
15677 "                  int devmajor,\n"
15678 "                  int devminor,\n"
15679 "                  const char *path);\n"
15680 "\n"
15681 msgstr ""
15682
15683 # type: textblock
15684 #. type: textblock
15685 #: ../src/guestfs-actions.pod:4740
15686 msgid ""
15687 "This call creates a block device node called C<path> with mode C<mode> and "
15688 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
15689 "wrapper around C<guestfs_mknod>."
15690 msgstr ""
15691
15692 # type: =head2
15693 #. type: =head2
15694 #: ../src/guestfs-actions.pod:4750
15695 msgid "guestfs_mknod_c"
15696 msgstr ""
15697
15698 # type: verbatim
15699 #. type: verbatim
15700 #: ../src/guestfs-actions.pod:4752
15701 #, no-wrap
15702 msgid ""
15703 " int\n"
15704 " guestfs_mknod_c (guestfs_h *g,\n"
15705 "                  int mode,\n"
15706 "                  int devmajor,\n"
15707 "                  int devminor,\n"
15708 "                  const char *path);\n"
15709 "\n"
15710 msgstr ""
15711
15712 # type: textblock
15713 #. type: textblock
15714 #: ../src/guestfs-actions.pod:4759
15715 msgid ""
15716 "This call creates a char device node called C<path> with mode C<mode> and "
15717 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
15718 "wrapper around C<guestfs_mknod>."
15719 msgstr ""
15720
15721 # type: =head2
15722 #. type: =head2
15723 #: ../src/guestfs-actions.pod:4769
15724 msgid "guestfs_mkswap"
15725 msgstr ""
15726
15727 # type: verbatim
15728 #. type: verbatim
15729 #: ../src/guestfs-actions.pod:4771
15730 #, no-wrap
15731 msgid ""
15732 " int\n"
15733 " guestfs_mkswap (guestfs_h *g,\n"
15734 "                 const char *device);\n"
15735 "\n"
15736 msgstr ""
15737
15738 # type: textblock
15739 #. type: textblock
15740 #: ../src/guestfs-actions.pod:4775 ../fish/guestfish-actions.pod:3194
15741 msgid "Create a swap partition on C<device>."
15742 msgstr ""
15743
15744 # type: =head2
15745 #. type: =head2
15746 #: ../src/guestfs-actions.pod:4781
15747 msgid "guestfs_mkswap_L"
15748 msgstr ""
15749
15750 # type: verbatim
15751 #. type: verbatim
15752 #: ../src/guestfs-actions.pod:4783
15753 #, no-wrap
15754 msgid ""
15755 " int\n"
15756 " guestfs_mkswap_L (guestfs_h *g,\n"
15757 "                   const char *label,\n"
15758 "                   const char *device);\n"
15759 "\n"
15760 msgstr ""
15761
15762 # type: textblock
15763 #. type: textblock
15764 #: ../src/guestfs-actions.pod:4788 ../fish/guestfish-actions.pod:3200
15765 msgid "Create a swap partition on C<device> with label C<label>."
15766 msgstr ""
15767
15768 # type: textblock
15769 #. type: textblock
15770 #: ../src/guestfs-actions.pod:4790 ../fish/guestfish-actions.pod:3202
15771 msgid ""
15772 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
15773 "sda>), just to a partition.  This appears to be a limitation of the kernel "
15774 "or swap tools."
15775 msgstr ""
15776
15777 # type: =head2
15778 #. type: =head2
15779 #: ../src/guestfs-actions.pod:4798
15780 msgid "guestfs_mkswap_U"
15781 msgstr ""
15782
15783 # type: verbatim
15784 #. type: verbatim
15785 #: ../src/guestfs-actions.pod:4800
15786 #, no-wrap
15787 msgid ""
15788 " int\n"
15789 " guestfs_mkswap_U (guestfs_h *g,\n"
15790 "                   const char *uuid,\n"
15791 "                   const char *device);\n"
15792 "\n"
15793 msgstr ""
15794
15795 # type: textblock
15796 #. type: textblock
15797 #: ../src/guestfs-actions.pod:4805 ../fish/guestfish-actions.pod:3210
15798 msgid "Create a swap partition on C<device> with UUID C<uuid>."
15799 msgstr ""
15800
15801 # type: =head2
15802 #. type: =head2
15803 #: ../src/guestfs-actions.pod:4811
15804 msgid "guestfs_mkswap_file"
15805 msgstr ""
15806
15807 # type: verbatim
15808 #. type: verbatim
15809 #: ../src/guestfs-actions.pod:4813
15810 #, no-wrap
15811 msgid ""
15812 " int\n"
15813 " guestfs_mkswap_file (guestfs_h *g,\n"
15814 "                      const char *path);\n"
15815 "\n"
15816 msgstr ""
15817
15818 # type: textblock
15819 #. type: textblock
15820 #: ../src/guestfs-actions.pod:4817 ../fish/guestfish-actions.pod:3216
15821 msgid "Create a swap file."
15822 msgstr ""
15823
15824 # type: textblock
15825 #. type: textblock
15826 #: ../src/guestfs-actions.pod:4819
15827 msgid ""
15828 "This command just writes a swap file signature to an existing file.  To "
15829 "create the file itself, use something like C<guestfs_fallocate>."
15830 msgstr ""
15831
15832 # type: =head2
15833 #. type: =head2
15834 #: ../src/guestfs-actions.pod:4826
15835 msgid "guestfs_modprobe"
15836 msgstr ""
15837
15838 # type: verbatim
15839 #. type: verbatim
15840 #: ../src/guestfs-actions.pod:4828
15841 #, no-wrap
15842 msgid ""
15843 " int\n"
15844 " guestfs_modprobe (guestfs_h *g,\n"
15845 "                   const char *modulename);\n"
15846 "\n"
15847 msgstr ""
15848
15849 # type: textblock
15850 #. type: textblock
15851 #: ../src/guestfs-actions.pod:4832 ../fish/guestfish-actions.pod:3225
15852 msgid "This loads a kernel module in the appliance."
15853 msgstr ""
15854
15855 # type: textblock
15856 #. type: textblock
15857 #: ../src/guestfs-actions.pod:4834 ../fish/guestfish-actions.pod:3227
15858 msgid ""
15859 "The kernel module must have been whitelisted when libguestfs was built (see "
15860 "C<appliance/kmod.whitelist.in> in the source)."
15861 msgstr ""
15862
15863 # type: =head2
15864 #. type: =head2
15865 #: ../src/guestfs-actions.pod:4841
15866 msgid "guestfs_mount"
15867 msgstr ""
15868
15869 # type: verbatim
15870 #. type: verbatim
15871 #: ../src/guestfs-actions.pod:4843
15872 #, no-wrap
15873 msgid ""
15874 " int\n"
15875 " guestfs_mount (guestfs_h *g,\n"
15876 "                const char *device,\n"
15877 "                const char *mountpoint);\n"
15878 "\n"
15879 msgstr ""
15880
15881 # type: textblock
15882 #. type: textblock
15883 #: ../src/guestfs-actions.pod:4848 ../fish/guestfish-actions.pod:3234
15884 msgid ""
15885 "Mount a guest disk at a position in the filesystem.  Block devices are named "
15886 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
15887 "those block devices contain partitions, they will have the usual names (eg. "
15888 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
15889 msgstr ""
15890
15891 # type: textblock
15892 #. type: textblock
15893 #: ../src/guestfs-actions.pod:4854 ../fish/guestfish-actions.pod:3240
15894 msgid ""
15895 "The rules are the same as for L<mount(2)>: A filesystem must first be "
15896 "mounted on C</> before others can be mounted.  Other filesystems can only be "
15897 "mounted on directories which already exist."
15898 msgstr ""
15899
15900 # type: textblock
15901 #. type: textblock
15902 #: ../src/guestfs-actions.pod:4859 ../fish/guestfish-actions.pod:3245
15903 msgid ""
15904 "The mounted filesystem is writable, if we have sufficient permissions on the "
15905 "underlying device."
15906 msgstr ""
15907
15908 # type: textblock
15909 #. type: textblock
15910 #: ../src/guestfs-actions.pod:4862
15911 msgid ""
15912 "B<Important note:> When you use this call, the filesystem options C<sync> "
15913 "and C<noatime> are set implicitly.  This was originally done because we "
15914 "thought it would improve reliability, but it turns out that I<-o sync> has a "
15915 "very large negative performance impact and negligible effect on "
15916 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
15917 "in any code that needs performance, and instead use C<guestfs_mount_options> "
15918 "(use an empty string for the first parameter if you don't want any options)."
15919 msgstr ""
15920
15921 #. type: textblock
15922 #: ../src/guestfs-actions.pod:4874 ../fish/guestfish-actions.pod:3258
15923 msgid ""
15924 "This function is deprecated.  In new code, use the C<mount_options> call "
15925 "instead."
15926 msgstr ""
15927
15928 #. type: =head2
15929 #: ../src/guestfs-actions.pod:4883
15930 msgid "guestfs_mount_9p"
15931 msgstr ""
15932
15933 #. type: verbatim
15934 #: ../src/guestfs-actions.pod:4885
15935 #, no-wrap
15936 msgid ""
15937 " int\n"
15938 " guestfs_mount_9p (guestfs_h *g,\n"
15939 "                   const char *mounttag,\n"
15940 "                   const char *mountpoint,\n"
15941 "                   ...);\n"
15942 "\n"
15943 msgstr ""
15944
15945 #. type: verbatim
15946 #: ../src/guestfs-actions.pod:4896
15947 #, no-wrap
15948 msgid ""
15949 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
15950 "\n"
15951 msgstr ""
15952
15953 #. type: textblock
15954 #: ../src/guestfs-actions.pod:4898 ../fish/guestfish-actions.pod:3269
15955 msgid ""
15956 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
15957 "C<mountpoint>."
15958 msgstr ""
15959
15960 #. type: textblock
15961 #: ../src/guestfs-actions.pod:4901 ../fish/guestfish-actions.pod:3272
15962 msgid ""
15963 "If required, C<trans=virtio> will be automatically added to the options.  "
15964 "Any other options required can be passed in the optional C<options> "
15965 "parameter."
15966 msgstr ""
15967
15968 #. type: =head2
15969 #: ../src/guestfs-actions.pod:4909
15970 msgid "guestfs_mount_9p_va"
15971 msgstr ""
15972
15973 #. type: verbatim
15974 #: ../src/guestfs-actions.pod:4911
15975 #, no-wrap
15976 msgid ""
15977 " int\n"
15978 " guestfs_mount_9p_va (guestfs_h *g,\n"
15979 "                      const char *mounttag,\n"
15980 "                      const char *mountpoint,\n"
15981 "                      va_list args);\n"
15982 "\n"
15983 msgstr ""
15984
15985 #. type: textblock
15986 #: ../src/guestfs-actions.pod:4917
15987 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
15988 msgstr ""
15989
15990 #. type: =head2
15991 #: ../src/guestfs-actions.pod:4921
15992 msgid "guestfs_mount_9p_argv"
15993 msgstr ""
15994
15995 #. type: verbatim
15996 #: ../src/guestfs-actions.pod:4923
15997 #, no-wrap
15998 msgid ""
15999 " int\n"
16000 " guestfs_mount_9p_argv (guestfs_h *g,\n"
16001 "                        const char *mounttag,\n"
16002 "                        const char *mountpoint,\n"
16003 "                        const struct guestfs_mount_9p_argv *optargs);\n"
16004 "\n"
16005 msgstr ""
16006
16007 #. type: textblock
16008 #: ../src/guestfs-actions.pod:4929
16009 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
16010 msgstr ""
16011
16012 # type: =head2
16013 #. type: =head2
16014 #: ../src/guestfs-actions.pod:4933
16015 msgid "guestfs_mount_loop"
16016 msgstr ""
16017
16018 # type: verbatim
16019 #. type: verbatim
16020 #: ../src/guestfs-actions.pod:4935
16021 #, no-wrap
16022 msgid ""
16023 " int\n"
16024 " guestfs_mount_loop (guestfs_h *g,\n"
16025 "                     const char *file,\n"
16026 "                     const char *mountpoint);\n"
16027 "\n"
16028 msgstr ""
16029
16030 # type: textblock
16031 #. type: textblock
16032 #: ../src/guestfs-actions.pod:4940 ../fish/guestfish-actions.pod:3282
16033 msgid ""
16034 "This command lets you mount C<file> (a filesystem image in a file) on a "
16035 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
16036 "mountpoint>."
16037 msgstr ""
16038
16039 # type: =head2
16040 #. type: =head2
16041 #: ../src/guestfs-actions.pod:4948
16042 msgid "guestfs_mount_options"
16043 msgstr ""
16044
16045 # type: verbatim
16046 #. type: verbatim
16047 #: ../src/guestfs-actions.pod:4950
16048 #, no-wrap
16049 msgid ""
16050 " int\n"
16051 " guestfs_mount_options (guestfs_h *g,\n"
16052 "                        const char *options,\n"
16053 "                        const char *device,\n"
16054 "                        const char *mountpoint);\n"
16055 "\n"
16056 msgstr ""
16057
16058 # type: textblock
16059 #. type: textblock
16060 #: ../src/guestfs-actions.pod:4956
16061 msgid ""
16062 "This is the same as the C<guestfs_mount> command, but it allows you to set "
16063 "the mount options as for the L<mount(8)> I<-o> flag."
16064 msgstr ""
16065
16066 # type: textblock
16067 #. type: textblock
16068 #: ../src/guestfs-actions.pod:4960 ../fish/guestfish-actions.pod:3294
16069 msgid ""
16070 "If the C<options> parameter is an empty string, then no options are passed "
16071 "(all options default to whatever the filesystem uses)."
16072 msgstr ""
16073
16074 # type: textblock
16075 #. type: textblock
16076 #: ../src/guestfs-actions.pod:4966 ../src/guestfs-actions.pod:4980
16077 #: ../src/guestfs-actions.pod:4997
16078 msgid "(Added in 1.0.10)"
16079 msgstr ""
16080
16081 # type: =head2
16082 #. type: =head2
16083 #: ../src/guestfs-actions.pod:4968
16084 msgid "guestfs_mount_ro"
16085 msgstr ""
16086
16087 # type: verbatim
16088 #. type: verbatim
16089 #: ../src/guestfs-actions.pod:4970
16090 #, no-wrap
16091 msgid ""
16092 " int\n"
16093 " guestfs_mount_ro (guestfs_h *g,\n"
16094 "                   const char *device,\n"
16095 "                   const char *mountpoint);\n"
16096 "\n"
16097 msgstr ""
16098
16099 # type: textblock
16100 #. type: textblock
16101 #: ../src/guestfs-actions.pod:4975
16102 msgid ""
16103 "This is the same as the C<guestfs_mount> command, but it mounts the "
16104 "filesystem with the read-only (I<-o ro>) flag."
16105 msgstr ""
16106
16107 # type: =head2
16108 #. type: =head2
16109 #: ../src/guestfs-actions.pod:4982
16110 msgid "guestfs_mount_vfs"
16111 msgstr ""
16112
16113 # type: verbatim
16114 #. type: verbatim
16115 #: ../src/guestfs-actions.pod:4984
16116 #, no-wrap
16117 msgid ""
16118 " int\n"
16119 " guestfs_mount_vfs (guestfs_h *g,\n"
16120 "                    const char *options,\n"
16121 "                    const char *vfstype,\n"
16122 "                    const char *device,\n"
16123 "                    const char *mountpoint);\n"
16124 "\n"
16125 msgstr ""
16126
16127 # type: textblock
16128 #. type: textblock
16129 #: ../src/guestfs-actions.pod:4991
16130 msgid ""
16131 "This is the same as the C<guestfs_mount> command, but it allows you to set "
16132 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
16133 "t> flags."
16134 msgstr ""
16135
16136 # type: =head2
16137 #. type: =head2
16138 #: ../src/guestfs-actions.pod:4999
16139 msgid "guestfs_mountpoints"
16140 msgstr ""
16141
16142 # type: verbatim
16143 #. type: verbatim
16144 #: ../src/guestfs-actions.pod:5001
16145 #, no-wrap
16146 msgid ""
16147 " char **\n"
16148 " guestfs_mountpoints (guestfs_h *g);\n"
16149 "\n"
16150 msgstr ""
16151
16152 # type: textblock
16153 #. type: textblock
16154 #: ../src/guestfs-actions.pod:5004
16155 msgid ""
16156 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
16157 "devices.  This one returns a hash table (map) of device name to directory "
16158 "where the device is mounted."
16159 msgstr ""
16160
16161 # type: =head2
16162 #. type: =head2
16163 #: ../src/guestfs-actions.pod:5016
16164 msgid "guestfs_mounts"
16165 msgstr ""
16166
16167 # type: verbatim
16168 #. type: verbatim
16169 #: ../src/guestfs-actions.pod:5018
16170 #, no-wrap
16171 msgid ""
16172 " char **\n"
16173 " guestfs_mounts (guestfs_h *g);\n"
16174 "\n"
16175 msgstr ""
16176
16177 # type: textblock
16178 #. type: textblock
16179 #: ../src/guestfs-actions.pod:5021 ../fish/guestfish-actions.pod:3325
16180 msgid ""
16181 "This returns the list of currently mounted filesystems.  It returns the list "
16182 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
16183 msgstr ""
16184
16185 # type: textblock
16186 #. type: textblock
16187 #: ../src/guestfs-actions.pod:5024 ../fish/guestfish-actions.pod:3328
16188 msgid "Some internal mounts are not shown."
16189 msgstr ""
16190
16191 # type: textblock
16192 #. type: textblock
16193 #: ../src/guestfs-actions.pod:5026
16194 msgid "See also: C<guestfs_mountpoints>"
16195 msgstr ""
16196
16197 # type: =head2
16198 #. type: =head2
16199 #: ../src/guestfs-actions.pod:5034
16200 msgid "guestfs_mv"
16201 msgstr ""
16202
16203 # type: verbatim
16204 #. type: verbatim
16205 #: ../src/guestfs-actions.pod:5036
16206 #, no-wrap
16207 msgid ""
16208 " int\n"
16209 " guestfs_mv (guestfs_h *g,\n"
16210 "             const char *src,\n"
16211 "             const char *dest);\n"
16212 "\n"
16213 msgstr ""
16214
16215 # type: textblock
16216 #. type: textblock
16217 #: ../src/guestfs-actions.pod:5041 ../fish/guestfish-actions.pod:3336
16218 msgid ""
16219 "This moves a file from C<src> to C<dest> where C<dest> is either a "
16220 "destination filename or destination directory."
16221 msgstr ""
16222
16223 # type: =head2
16224 #. type: =head2
16225 #: ../src/guestfs-actions.pod:5048
16226 msgid "guestfs_ntfs_3g_probe"
16227 msgstr ""
16228
16229 # type: verbatim
16230 #. type: verbatim
16231 #: ../src/guestfs-actions.pod:5050
16232 #, no-wrap
16233 msgid ""
16234 " int\n"
16235 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
16236 "                        int rw,\n"
16237 "                        const char *device);\n"
16238 "\n"
16239 msgstr ""
16240
16241 # type: textblock
16242 #. type: textblock
16243 #: ../src/guestfs-actions.pod:5055 ../fish/guestfish-actions.pod:3343
16244 msgid ""
16245 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
16246 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
16247 "write, and some cannot be mounted at all)."
16248 msgstr ""
16249
16250 # type: textblock
16251 #. type: textblock
16252 #: ../src/guestfs-actions.pod:5059 ../fish/guestfish-actions.pod:3347
16253 msgid ""
16254 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
16255 "can be mounted read-write.  Set it to false if you want to test if the "
16256 "volume can be mounted read-only."
16257 msgstr ""
16258
16259 # type: textblock
16260 #. type: textblock
16261 #: ../src/guestfs-actions.pod:5063 ../fish/guestfish-actions.pod:3351
16262 msgid ""
16263 "The return value is an integer which C<0> if the operation would succeed, or "
16264 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
16265 msgstr ""
16266
16267 # type: textblock
16268 #. type: textblock
16269 #: ../src/guestfs-actions.pod:5069
16270 msgid "(Added in 1.0.43)"
16271 msgstr ""
16272
16273 # type: =head2
16274 #. type: =head2
16275 #: ../src/guestfs-actions.pod:5071
16276 msgid "guestfs_ntfsresize"
16277 msgstr ""
16278
16279 # type: verbatim
16280 #. type: verbatim
16281 #: ../src/guestfs-actions.pod:5073
16282 #, no-wrap
16283 msgid ""
16284 " int\n"
16285 " guestfs_ntfsresize (guestfs_h *g,\n"
16286 "                     const char *device);\n"
16287 "\n"
16288 msgstr ""
16289
16290 #. type: textblock
16291 #: ../src/guestfs-actions.pod:5077 ../src/guestfs-actions.pod:5116
16292 #: ../fish/guestfish-actions.pod:3359 ../fish/guestfish-actions.pod:3383
16293 msgid ""
16294 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
16295 "size of the underlying device."
16296 msgstr ""
16297
16298 #. type: textblock
16299 #: ../src/guestfs-actions.pod:5080 ../fish/guestfish-actions.pod:3362
16300 msgid ""
16301 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
16302 "consistency check (for safety).  You have to boot into Windows to perform "
16303 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
16304 "resize filesystems which have been marked in this way.  So in effect it is "
16305 "not possible to call ntfsresize multiple times on a single filesystem "
16306 "without booting into Windows between each resize."
16307 msgstr ""
16308
16309 #. type: textblock
16310 #: ../src/guestfs-actions.pod:5088 ../src/guestfs-actions.pod:5142
16311 #: ../fish/guestfish-actions.pod:3370 ../fish/guestfish-actions.pod:3409
16312 msgid "See also L<ntfsresize(8)>."
16313 msgstr ""
16314
16315 #. type: textblock
16316 #: ../src/guestfs-actions.pod:5092 ../src/guestfs-actions.pod:5182
16317 #: ../fish/guestfish-actions.pod:3372 ../fish/guestfish-actions.pod:3420
16318 msgid ""
16319 "This function is deprecated.  In new code, use the C<ntfsresize_opts> call "
16320 "instead."
16321 msgstr ""
16322
16323 #. type: =head2
16324 #: ../src/guestfs-actions.pod:5101
16325 msgid "guestfs_ntfsresize_opts"
16326 msgstr ""
16327
16328 #. type: verbatim
16329 #: ../src/guestfs-actions.pod:5103
16330 #, no-wrap
16331 msgid ""
16332 " int\n"
16333 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
16334 "                          const char *device,\n"
16335 "                          ...);\n"
16336 "\n"
16337 msgstr ""
16338
16339 #. type: verbatim
16340 #: ../src/guestfs-actions.pod:5113
16341 #, no-wrap
16342 msgid ""
16343 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
16344 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
16345 "\n"
16346 msgstr ""
16347
16348 #. type: textblock
16349 #: ../src/guestfs-actions.pod:5119 ../fish/guestfish-actions.pod:3386
16350 msgid "The optional parameters are:"
16351 msgstr ""
16352
16353 #. type: =item
16354 #: ../src/guestfs-actions.pod:5123 ../fish/guestfish-actions.pod:3390
16355 msgid "C<size>"
16356 msgstr ""
16357
16358 #. type: textblock
16359 #: ../src/guestfs-actions.pod:5125 ../fish/guestfish-actions.pod:3392
16360 msgid ""
16361 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
16362 "resized to fit the container (eg. partition)."
16363 msgstr ""
16364
16365 #. type: =item
16366 #: ../src/guestfs-actions.pod:5128 ../fish/guestfish-actions.pod:3395
16367 msgid "C<force>"
16368 msgstr ""
16369
16370 #. type: textblock
16371 #: ../src/guestfs-actions.pod:5130 ../fish/guestfish-actions.pod:3397
16372 msgid ""
16373 "If this option is true, then force the resize of the filesystem even if the "
16374 "filesystem is marked as requiring a consistency check."
16375 msgstr ""
16376
16377 #. type: textblock
16378 #: ../src/guestfs-actions.pod:5133
16379 msgid ""
16380 "After the resize operation, the filesystem is always marked as requiring a "
16381 "consistency check (for safety).  You have to boot into Windows to perform "
16382 "this check and clear this condition.  If you I<don't> set the C<force> "
16383 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
16384 "times on a single filesystem without booting into Windows between each "
16385 "resize."
16386 msgstr ""
16387
16388 #. type: =head2
16389 #: ../src/guestfs-actions.pod:5148
16390 msgid "guestfs_ntfsresize_opts_va"
16391 msgstr ""
16392
16393 #. type: verbatim
16394 #: ../src/guestfs-actions.pod:5150
16395 #, no-wrap
16396 msgid ""
16397 " int\n"
16398 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
16399 "                             const char *device,\n"
16400 "                             va_list args);\n"
16401 "\n"
16402 msgstr ""
16403
16404 #. type: textblock
16405 #: ../src/guestfs-actions.pod:5155
16406 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
16407 msgstr ""
16408
16409 #. type: =head2
16410 #: ../src/guestfs-actions.pod:5159
16411 msgid "guestfs_ntfsresize_opts_argv"
16412 msgstr ""
16413
16414 #. type: verbatim
16415 #: ../src/guestfs-actions.pod:5161
16416 #, no-wrap
16417 msgid ""
16418 " int\n"
16419 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
16420 "                               const char *device,\n"
16421 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
16422 "\n"
16423 msgstr ""
16424
16425 #. type: textblock
16426 #: ../src/guestfs-actions.pod:5166
16427 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
16428 msgstr ""
16429
16430 # type: =head2
16431 #. type: =head2
16432 #: ../src/guestfs-actions.pod:5170
16433 msgid "guestfs_ntfsresize_size"
16434 msgstr ""
16435
16436 # type: verbatim
16437 #. type: verbatim
16438 #: ../src/guestfs-actions.pod:5172
16439 #, no-wrap
16440 msgid ""
16441 " int\n"
16442 " guestfs_ntfsresize_size (guestfs_h *g,\n"
16443 "                          const char *device,\n"
16444 "                          int64_t size);\n"
16445 "\n"
16446 msgstr ""
16447
16448 # type: textblock
16449 #. type: textblock
16450 #: ../src/guestfs-actions.pod:5177
16451 msgid ""
16452 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
16453 "to specify the new size (in bytes) explicitly."
16454 msgstr ""
16455
16456 # type: textblock
16457 #. type: textblock
16458 #: ../src/guestfs-actions.pod:5189 ../src/guestfs-actions.pod:5625
16459 #: ../src/guestfs-actions.pod:5698 ../src/guestfs-actions.pod:5966
16460 #: ../src/guestfs-actions.pod:7568
16461 msgid "(Added in 1.3.14)"
16462 msgstr ""
16463
16464 # type: =head2
16465 #. type: =head2
16466 #: ../src/guestfs-actions.pod:5191
16467 msgid "guestfs_part_add"
16468 msgstr ""
16469
16470 # type: verbatim
16471 #. type: verbatim
16472 #: ../src/guestfs-actions.pod:5193
16473 #, no-wrap
16474 msgid ""
16475 " int\n"
16476 " guestfs_part_add (guestfs_h *g,\n"
16477 "                   const char *device,\n"
16478 "                   const char *prlogex,\n"
16479 "                   int64_t startsect,\n"
16480 "                   int64_t endsect);\n"
16481 "\n"
16482 msgstr ""
16483
16484 # type: textblock
16485 #. type: textblock
16486 #: ../src/guestfs-actions.pod:5200
16487 msgid ""
16488 "This command adds a partition to C<device>.  If there is no partition table "
16489 "on the device, call C<guestfs_part_init> first."
16490 msgstr ""
16491
16492 # type: textblock
16493 #. type: textblock
16494 #: ../src/guestfs-actions.pod:5203 ../fish/guestfish-actions.pod:3434
16495 msgid ""
16496 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
16497 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
16498 "C<logical>) and C<e> (or C<extended>) partition types."
16499 msgstr ""
16500
16501 # type: textblock
16502 #. type: textblock
16503 #: ../src/guestfs-actions.pod:5208 ../fish/guestfish-actions.pod:3439
16504 msgid ""
16505 "C<startsect> and C<endsect> are the start and end of the partition in "
16506 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
16507 "from the end of the disk (C<-1> is the last sector)."
16508 msgstr ""
16509
16510 # type: textblock
16511 #. type: textblock
16512 #: ../src/guestfs-actions.pod:5212
16513 msgid ""
16514 "Creating a partition which covers the whole disk is not so easy.  Use "
16515 "C<guestfs_part_disk> to do that."
16516 msgstr ""
16517
16518 # type: textblock
16519 #. type: textblock
16520 #: ../src/guestfs-actions.pod:5217 ../src/guestfs-actions.pod:5255
16521 #: ../src/guestfs-actions.pod:5308 ../src/guestfs-actions.pod:5386
16522 #: ../src/guestfs-actions.pod:5424 ../src/guestfs-actions.pod:5443
16523 #: ../src/guestfs-actions.pod:5483
16524 msgid "(Added in 1.0.78)"
16525 msgstr ""
16526
16527 # type: =head2
16528 #. type: =head2
16529 #: ../src/guestfs-actions.pod:5219
16530 msgid "guestfs_part_del"
16531 msgstr ""
16532
16533 # type: verbatim
16534 #. type: verbatim
16535 #: ../src/guestfs-actions.pod:5221
16536 #, no-wrap
16537 msgid ""
16538 " int\n"
16539 " guestfs_part_del (guestfs_h *g,\n"
16540 "                   const char *device,\n"
16541 "                   int partnum);\n"
16542 "\n"
16543 msgstr ""
16544
16545 # type: textblock
16546 #. type: textblock
16547 #: ../src/guestfs-actions.pod:5226 ../fish/guestfish-actions.pod:3450
16548 msgid "This command deletes the partition numbered C<partnum> on C<device>."
16549 msgstr ""
16550
16551 # type: textblock
16552 #. type: textblock
16553 #: ../src/guestfs-actions.pod:5228 ../fish/guestfish-actions.pod:3452
16554 msgid ""
16555 "Note that in the case of MBR partitioning, deleting an extended partition "
16556 "also deletes any logical partitions it contains."
16557 msgstr ""
16558
16559 # type: =head2
16560 #. type: =head2
16561 #: ../src/guestfs-actions.pod:5236
16562 msgid "guestfs_part_disk"
16563 msgstr ""
16564
16565 # type: verbatim
16566 #. type: verbatim
16567 #: ../src/guestfs-actions.pod:5238
16568 #, no-wrap
16569 msgid ""
16570 " int\n"
16571 " guestfs_part_disk (guestfs_h *g,\n"
16572 "                    const char *device,\n"
16573 "                    const char *parttype);\n"
16574 "\n"
16575 msgstr ""
16576
16577 # type: textblock
16578 #. type: textblock
16579 #: ../src/guestfs-actions.pod:5243
16580 msgid ""
16581 "This command is simply a combination of C<guestfs_part_init> followed by "
16582 "C<guestfs_part_add> to create a single primary partition covering the whole "
16583 "disk."
16584 msgstr ""
16585
16586 # type: textblock
16587 #. type: textblock
16588 #: ../src/guestfs-actions.pod:5247
16589 msgid ""
16590 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
16591 "possible values are described in C<guestfs_part_init>."
16592 msgstr ""
16593
16594 # type: =head2
16595 #. type: =head2
16596 #: ../src/guestfs-actions.pod:5257
16597 msgid "guestfs_part_get_bootable"
16598 msgstr ""
16599
16600 # type: verbatim
16601 #. type: verbatim
16602 #: ../src/guestfs-actions.pod:5259
16603 #, no-wrap
16604 msgid ""
16605 " int\n"
16606 " guestfs_part_get_bootable (guestfs_h *g,\n"
16607 "                            const char *device,\n"
16608 "                            int partnum);\n"
16609 "\n"
16610 msgstr ""
16611
16612 # type: textblock
16613 #. type: textblock
16614 #: ../src/guestfs-actions.pod:5264 ../fish/guestfish-actions.pod:3474
16615 msgid ""
16616 "This command returns true if the partition C<partnum> on C<device> has the "
16617 "bootable flag set."
16618 msgstr ""
16619
16620 # type: textblock
16621 #. type: textblock
16622 #: ../src/guestfs-actions.pod:5267
16623 msgid "See also C<guestfs_part_set_bootable>."
16624 msgstr ""
16625
16626 # type: =head2
16627 #. type: =head2
16628 #: ../src/guestfs-actions.pod:5273
16629 msgid "guestfs_part_get_mbr_id"
16630 msgstr ""
16631
16632 # type: verbatim
16633 #. type: verbatim
16634 #: ../src/guestfs-actions.pod:5275
16635 #, no-wrap
16636 msgid ""
16637 " int\n"
16638 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
16639 "                          const char *device,\n"
16640 "                          int partnum);\n"
16641 "\n"
16642 msgstr ""
16643
16644 # type: textblock
16645 #. type: textblock
16646 #: ../src/guestfs-actions.pod:5280 ../fish/guestfish-actions.pod:3483
16647 msgid ""
16648 "Returns the MBR type byte (also known as the ID byte) from the numbered "
16649 "partition C<partnum>."
16650 msgstr ""
16651
16652 # type: textblock
16653 #. type: textblock
16654 #: ../src/guestfs-actions.pod:5283 ../src/guestfs-actions.pod:5459
16655 msgid ""
16656 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
16657 "undefined results for other partition table types (see "
16658 "C<guestfs_part_get_parttype>)."
16659 msgstr ""
16660
16661 # type: =head2
16662 #. type: =head2
16663 #: ../src/guestfs-actions.pod:5291
16664 msgid "guestfs_part_get_parttype"
16665 msgstr ""
16666
16667 # type: verbatim
16668 #. type: verbatim
16669 #: ../src/guestfs-actions.pod:5293
16670 #, no-wrap
16671 msgid ""
16672 " char *\n"
16673 " guestfs_part_get_parttype (guestfs_h *g,\n"
16674 "                            const char *device);\n"
16675 "\n"
16676 msgstr ""
16677
16678 # type: textblock
16679 #. type: textblock
16680 #: ../src/guestfs-actions.pod:5297 ../fish/guestfish-actions.pod:3494
16681 msgid ""
16682 "This command examines the partition table on C<device> and returns the "
16683 "partition table type (format) being used."
16684 msgstr ""
16685
16686 # type: textblock
16687 #. type: textblock
16688 #: ../src/guestfs-actions.pod:5300
16689 msgid ""
16690 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
16691 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
16692 "possible, although unusual.  See C<guestfs_part_init> for a full list."
16693 msgstr ""
16694
16695 # type: =head2
16696 #. type: =head2
16697 #: ../src/guestfs-actions.pod:5310
16698 msgid "guestfs_part_init"
16699 msgstr ""
16700
16701 # type: verbatim
16702 #. type: verbatim
16703 #: ../src/guestfs-actions.pod:5312
16704 #, no-wrap
16705 msgid ""
16706 " int\n"
16707 " guestfs_part_init (guestfs_h *g,\n"
16708 "                    const char *device,\n"
16709 "                    const char *parttype);\n"
16710 "\n"
16711 msgstr ""
16712
16713 # type: textblock
16714 #. type: textblock
16715 #: ../src/guestfs-actions.pod:5317 ../fish/guestfish-actions.pod:3506
16716 msgid ""
16717 "This creates an empty partition table on C<device> of one of the partition "
16718 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
16719 "(for large disks)."
16720 msgstr ""
16721
16722 # type: textblock
16723 #. type: textblock
16724 #: ../src/guestfs-actions.pod:5321
16725 msgid ""
16726 "Initially there are no partitions.  Following this, you should call "
16727 "C<guestfs_part_add> for each partition required."
16728 msgstr ""
16729
16730 # type: textblock
16731 #. type: textblock
16732 #: ../src/guestfs-actions.pod:5324 ../fish/guestfish-actions.pod:3513
16733 msgid "Possible values for C<parttype> are:"
16734 msgstr ""
16735
16736 # type: =item
16737 #. type: =item
16738 #: ../src/guestfs-actions.pod:5328 ../fish/guestfish-actions.pod:3517
16739 msgid "B<efi> | B<gpt>"
16740 msgstr ""
16741
16742 # type: textblock
16743 #. type: textblock
16744 #: ../src/guestfs-actions.pod:5330 ../fish/guestfish-actions.pod:3519
16745 msgid "Intel EFI / GPT partition table."
16746 msgstr ""
16747
16748 # type: textblock
16749 #. type: textblock
16750 #: ../src/guestfs-actions.pod:5332 ../fish/guestfish-actions.pod:3521
16751 msgid ""
16752 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
16753 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
16754 "the C<mbr> format."
16755 msgstr ""
16756
16757 # type: =item
16758 #. type: =item
16759 #: ../src/guestfs-actions.pod:5336 ../fish/guestfish-actions.pod:3525
16760 msgid "B<mbr> | B<msdos>"
16761 msgstr ""
16762
16763 # type: textblock
16764 #. type: textblock
16765 #: ../src/guestfs-actions.pod:5338 ../fish/guestfish-actions.pod:3527
16766 msgid ""
16767 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
16768 "Windows.  This partition type will B<only> work for device sizes up to 2 "
16769 "TB.  For large disks we recommend using C<gpt>."
16770 msgstr ""
16771
16772 # type: textblock
16773 #. type: textblock
16774 #: ../src/guestfs-actions.pod:5345 ../fish/guestfish-actions.pod:3534
16775 msgid ""
16776 "Other partition table types that may work but are not supported include:"
16777 msgstr ""
16778
16779 # type: =item
16780 #. type: =item
16781 #: ../src/guestfs-actions.pod:5350 ../fish/guestfish-actions.pod:3539
16782 msgid "B<aix>"
16783 msgstr ""
16784
16785 # type: textblock
16786 #. type: textblock
16787 #: ../src/guestfs-actions.pod:5352 ../fish/guestfish-actions.pod:3541
16788 msgid "AIX disk labels."
16789 msgstr ""
16790
16791 # type: =item
16792 #. type: =item
16793 #: ../src/guestfs-actions.pod:5354 ../fish/guestfish-actions.pod:3543
16794 msgid "B<amiga> | B<rdb>"
16795 msgstr ""
16796
16797 # type: textblock
16798 #. type: textblock
16799 #: ../src/guestfs-actions.pod:5356 ../fish/guestfish-actions.pod:3545
16800 msgid "Amiga \"Rigid Disk Block\" format."
16801 msgstr ""
16802
16803 # type: =item
16804 #. type: =item
16805 #: ../src/guestfs-actions.pod:5358 ../fish/guestfish-actions.pod:3547
16806 msgid "B<bsd>"
16807 msgstr ""
16808
16809 # type: textblock
16810 #. type: textblock
16811 #: ../src/guestfs-actions.pod:5360 ../fish/guestfish-actions.pod:3549
16812 msgid "BSD disk labels."
16813 msgstr ""
16814
16815 # type: =item
16816 #. type: =item
16817 #: ../src/guestfs-actions.pod:5362 ../fish/guestfish-actions.pod:3551
16818 msgid "B<dasd>"
16819 msgstr ""
16820
16821 # type: textblock
16822 #. type: textblock
16823 #: ../src/guestfs-actions.pod:5364 ../fish/guestfish-actions.pod:3553
16824 msgid "DASD, used on IBM mainframes."
16825 msgstr ""
16826
16827 # type: =item
16828 #. type: =item
16829 #: ../src/guestfs-actions.pod:5366 ../fish/guestfish-actions.pod:3555
16830 msgid "B<dvh>"
16831 msgstr ""
16832
16833 # type: textblock
16834 #. type: textblock
16835 #: ../src/guestfs-actions.pod:5368 ../fish/guestfish-actions.pod:3557
16836 msgid "MIPS/SGI volumes."
16837 msgstr ""
16838
16839 # type: =item
16840 #. type: =item
16841 #: ../src/guestfs-actions.pod:5370 ../fish/guestfish-actions.pod:3559
16842 msgid "B<mac>"
16843 msgstr ""
16844
16845 # type: textblock
16846 #. type: textblock
16847 #: ../src/guestfs-actions.pod:5372 ../fish/guestfish-actions.pod:3561
16848 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
16849 msgstr ""
16850
16851 # type: =item
16852 #. type: =item
16853 #: ../src/guestfs-actions.pod:5374 ../fish/guestfish-actions.pod:3563
16854 msgid "B<pc98>"
16855 msgstr ""
16856
16857 # type: textblock
16858 #. type: textblock
16859 #: ../src/guestfs-actions.pod:5376 ../fish/guestfish-actions.pod:3565
16860 msgid "NEC PC-98 format, common in Japan apparently."
16861 msgstr ""
16862
16863 # type: =item
16864 #. type: =item
16865 #: ../src/guestfs-actions.pod:5378 ../fish/guestfish-actions.pod:3567
16866 msgid "B<sun>"
16867 msgstr ""
16868
16869 # type: textblock
16870 #. type: textblock
16871 #: ../src/guestfs-actions.pod:5380 ../fish/guestfish-actions.pod:3569
16872 msgid "Sun disk labels."
16873 msgstr ""
16874
16875 # type: =head2
16876 #. type: =head2
16877 #: ../src/guestfs-actions.pod:5388
16878 msgid "guestfs_part_list"
16879 msgstr ""
16880
16881 # type: verbatim
16882 #. type: verbatim
16883 #: ../src/guestfs-actions.pod:5390
16884 #, no-wrap
16885 msgid ""
16886 " struct guestfs_partition_list *\n"
16887 " guestfs_part_list (guestfs_h *g,\n"
16888 "                    const char *device);\n"
16889 "\n"
16890 msgstr ""
16891
16892 # type: textblock
16893 #. type: textblock
16894 #: ../src/guestfs-actions.pod:5394 ../fish/guestfish-actions.pod:3577
16895 msgid ""
16896 "This command parses the partition table on C<device> and returns the list of "
16897 "partitions found."
16898 msgstr ""
16899
16900 # type: textblock
16901 #. type: textblock
16902 #: ../src/guestfs-actions.pod:5397 ../fish/guestfish-actions.pod:3580
16903 msgid "The fields in the returned structure are:"
16904 msgstr ""
16905
16906 # type: =item
16907 #. type: =item
16908 #: ../src/guestfs-actions.pod:5401 ../fish/guestfish-actions.pod:3584
16909 msgid "B<part_num>"
16910 msgstr ""
16911
16912 # type: textblock
16913 #. type: textblock
16914 #: ../src/guestfs-actions.pod:5403 ../fish/guestfish-actions.pod:3586
16915 msgid "Partition number, counting from 1."
16916 msgstr ""
16917
16918 # type: =item
16919 #. type: =item
16920 #: ../src/guestfs-actions.pod:5405 ../fish/guestfish-actions.pod:3588
16921 msgid "B<part_start>"
16922 msgstr ""
16923
16924 # type: textblock
16925 #. type: textblock
16926 #: ../src/guestfs-actions.pod:5407
16927 msgid ""
16928 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
16929 "the device's sector size, see C<guestfs_blockdev_getss>."
16930 msgstr ""
16931
16932 # type: =item
16933 #. type: =item
16934 #: ../src/guestfs-actions.pod:5410 ../fish/guestfish-actions.pod:3593
16935 msgid "B<part_end>"
16936 msgstr ""
16937
16938 # type: textblock
16939 #. type: textblock
16940 #: ../src/guestfs-actions.pod:5412 ../fish/guestfish-actions.pod:3595
16941 msgid "End of the partition in bytes."
16942 msgstr ""
16943
16944 # type: =item
16945 #. type: =item
16946 #: ../src/guestfs-actions.pod:5414 ../fish/guestfish-actions.pod:3597
16947 msgid "B<part_size>"
16948 msgstr ""
16949
16950 # type: textblock
16951 #. type: textblock
16952 #: ../src/guestfs-actions.pod:5416 ../fish/guestfish-actions.pod:3599
16953 msgid "Size of the partition in bytes."
16954 msgstr ""
16955
16956 # type: textblock
16957 #. type: textblock
16958 #: ../src/guestfs-actions.pod:5420
16959 msgid ""
16960 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
16961 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
16962 "use>."
16963 msgstr ""
16964
16965 # type: =head2
16966 #. type: =head2
16967 #: ../src/guestfs-actions.pod:5426
16968 msgid "guestfs_part_set_bootable"
16969 msgstr ""
16970
16971 # type: verbatim
16972 #. type: verbatim
16973 #: ../src/guestfs-actions.pod:5428
16974 #, no-wrap
16975 msgid ""
16976 " int\n"
16977 " guestfs_part_set_bootable (guestfs_h *g,\n"
16978 "                            const char *device,\n"
16979 "                            int partnum,\n"
16980 "                            int bootable);\n"
16981 "\n"
16982 msgstr ""
16983
16984 # type: textblock
16985 #. type: textblock
16986 #: ../src/guestfs-actions.pod:5434 ../fish/guestfish-actions.pod:3607
16987 msgid ""
16988 "This sets the bootable flag on partition numbered C<partnum> on device "
16989 "C<device>.  Note that partitions are numbered from 1."
16990 msgstr ""
16991
16992 # type: textblock
16993 #. type: textblock
16994 #: ../src/guestfs-actions.pod:5437 ../fish/guestfish-actions.pod:3610
16995 msgid ""
16996 "The bootable flag is used by some operating systems (notably Windows) to "
16997 "determine which partition to boot from.  It is by no means universally "
16998 "recognized."
16999 msgstr ""
17000
17001 # type: =head2
17002 #. type: =head2
17003 #: ../src/guestfs-actions.pod:5445
17004 msgid "guestfs_part_set_mbr_id"
17005 msgstr ""
17006
17007 # type: verbatim
17008 #. type: verbatim
17009 #: ../src/guestfs-actions.pod:5447
17010 #, no-wrap
17011 msgid ""
17012 " int\n"
17013 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
17014 "                          const char *device,\n"
17015 "                          int partnum,\n"
17016 "                          int idbyte);\n"
17017 "\n"
17018 msgstr ""
17019
17020 # type: textblock
17021 #. type: textblock
17022 #: ../src/guestfs-actions.pod:5453 ../fish/guestfish-actions.pod:3618
17023 msgid ""
17024 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
17025 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
17026 "documentation are in fact hexadecimal numbers, but usually documented "
17027 "without any leading \"0x\" which might be confusing."
17028 msgstr ""
17029
17030 # type: =head2
17031 #. type: =head2
17032 #: ../src/guestfs-actions.pod:5467
17033 msgid "guestfs_part_set_name"
17034 msgstr ""
17035
17036 # type: verbatim
17037 #. type: verbatim
17038 #: ../src/guestfs-actions.pod:5469
17039 #, no-wrap
17040 msgid ""
17041 " int\n"
17042 " guestfs_part_set_name (guestfs_h *g,\n"
17043 "                        const char *device,\n"
17044 "                        int partnum,\n"
17045 "                        const char *name);\n"
17046 "\n"
17047 msgstr ""
17048
17049 # type: textblock
17050 #. type: textblock
17051 #: ../src/guestfs-actions.pod:5475 ../fish/guestfish-actions.pod:3632
17052 msgid ""
17053 "This sets the partition name on partition numbered C<partnum> on device "
17054 "C<device>.  Note that partitions are numbered from 1."
17055 msgstr ""
17056
17057 # type: textblock
17058 #. type: textblock
17059 #: ../src/guestfs-actions.pod:5478 ../fish/guestfish-actions.pod:3635
17060 msgid ""
17061 "The partition name can only be set on certain types of partition table.  "
17062 "This works on C<gpt> but not on C<mbr> partitions."
17063 msgstr ""
17064
17065 # type: =head2
17066 #. type: =head2
17067 #: ../src/guestfs-actions.pod:5485
17068 msgid "guestfs_part_to_dev"
17069 msgstr ""
17070
17071 # type: verbatim
17072 #. type: verbatim
17073 #: ../src/guestfs-actions.pod:5487
17074 #, no-wrap
17075 msgid ""
17076 " char *\n"
17077 " guestfs_part_to_dev (guestfs_h *g,\n"
17078 "                      const char *partition);\n"
17079 "\n"
17080 msgstr ""
17081
17082 # type: textblock
17083 #. type: textblock
17084 #: ../src/guestfs-actions.pod:5491 ../fish/guestfish-actions.pod:3642
17085 msgid ""
17086 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
17087 "partition number, returning the device name (eg. \"/dev/sdb\")."
17088 msgstr ""
17089
17090 # type: textblock
17091 #. type: textblock
17092 #: ../src/guestfs-actions.pod:5495
17093 msgid ""
17094 "The named partition must exist, for example as a string returned from "
17095 "C<guestfs_list_partitions>."
17096 msgstr ""
17097
17098 # type: =head2
17099 #. type: =head2
17100 #: ../src/guestfs-actions.pod:5503
17101 msgid "guestfs_ping_daemon"
17102 msgstr ""
17103
17104 # type: verbatim
17105 #. type: verbatim
17106 #: ../src/guestfs-actions.pod:5505
17107 #, no-wrap
17108 msgid ""
17109 " int\n"
17110 " guestfs_ping_daemon (guestfs_h *g);\n"
17111 "\n"
17112 msgstr ""
17113
17114 # type: textblock
17115 #. type: textblock
17116 #: ../src/guestfs-actions.pod:5508 ../fish/guestfish-actions.pod:3653
17117 msgid ""
17118 "This is a test probe into the guestfs daemon running inside the qemu "
17119 "subprocess.  Calling this function checks that the daemon responds to the "
17120 "ping message, without affecting the daemon or attached block device(s) in "
17121 "any other way."
17122 msgstr ""
17123
17124 # type: =head2
17125 #. type: =head2
17126 #: ../src/guestfs-actions.pod:5517
17127 msgid "guestfs_pread"
17128 msgstr ""
17129
17130 # type: verbatim
17131 #. type: verbatim
17132 #: ../src/guestfs-actions.pod:5519
17133 #, no-wrap
17134 msgid ""
17135 " char *\n"
17136 " guestfs_pread (guestfs_h *g,\n"
17137 "                const char *path,\n"
17138 "                int count,\n"
17139 "                int64_t offset,\n"
17140 "                size_t *size_r);\n"
17141 "\n"
17142 msgstr ""
17143
17144 # type: textblock
17145 #. type: textblock
17146 #: ../src/guestfs-actions.pod:5526 ../fish/guestfish-actions.pod:3662
17147 msgid ""
17148 "This command lets you read part of a file.  It reads C<count> bytes of the "
17149 "file, starting at C<offset>, from file C<path>."
17150 msgstr ""
17151
17152 # type: textblock
17153 #. type: textblock
17154 #: ../src/guestfs-actions.pod:5529 ../src/guestfs-actions.pod:5555
17155 #: ../fish/guestfish-actions.pod:3665 ../fish/guestfish-actions.pod:3680
17156 msgid ""
17157 "This may read fewer bytes than requested.  For further details see the "
17158 "L<pread(2)> system call."
17159 msgstr ""
17160
17161 # type: textblock
17162 #. type: textblock
17163 #: ../src/guestfs-actions.pod:5532
17164 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
17165 msgstr ""
17166
17167 # type: =head2
17168 #. type: =head2
17169 #: ../src/guestfs-actions.pod:5543
17170 msgid "guestfs_pread_device"
17171 msgstr ""
17172
17173 # type: verbatim
17174 #. type: verbatim
17175 #: ../src/guestfs-actions.pod:5545
17176 #, no-wrap
17177 msgid ""
17178 " char *\n"
17179 " guestfs_pread_device (guestfs_h *g,\n"
17180 "                       const char *device,\n"
17181 "                       int count,\n"
17182 "                       int64_t offset,\n"
17183 "                       size_t *size_r);\n"
17184 "\n"
17185 msgstr ""
17186
17187 # type: textblock
17188 #. type: textblock
17189 #: ../src/guestfs-actions.pod:5552 ../fish/guestfish-actions.pod:3677
17190 msgid ""
17191 "This command lets you read part of a file.  It reads C<count> bytes of "
17192 "C<device>, starting at C<offset>."
17193 msgstr ""
17194
17195 # type: textblock
17196 #. type: textblock
17197 #: ../src/guestfs-actions.pod:5558
17198 msgid "See also C<guestfs_pread>."
17199 msgstr ""
17200
17201 # type: textblock
17202 #. type: textblock
17203 #: ../src/guestfs-actions.pod:5567
17204 msgid "(Added in 1.5.21)"
17205 msgstr ""
17206
17207 # type: =head2
17208 #. type: =head2
17209 #: ../src/guestfs-actions.pod:5569
17210 msgid "guestfs_pvcreate"
17211 msgstr ""
17212
17213 # type: verbatim
17214 #. type: verbatim
17215 #: ../src/guestfs-actions.pod:5571
17216 #, no-wrap
17217 msgid ""
17218 " int\n"
17219 " guestfs_pvcreate (guestfs_h *g,\n"
17220 "                   const char *device);\n"
17221 "\n"
17222 msgstr ""
17223
17224 # type: textblock
17225 #. type: textblock
17226 #: ../src/guestfs-actions.pod:5575 ../fish/guestfish-actions.pod:3692
17227 msgid ""
17228 "This creates an LVM physical volume on the named C<device>, where C<device> "
17229 "should usually be a partition name such as C</dev/sda1>."
17230 msgstr ""
17231
17232 # type: =head2
17233 #. type: =head2
17234 #: ../src/guestfs-actions.pod:5583
17235 msgid "guestfs_pvremove"
17236 msgstr ""
17237
17238 # type: verbatim
17239 #. type: verbatim
17240 #: ../src/guestfs-actions.pod:5585
17241 #, no-wrap
17242 msgid ""
17243 " int\n"
17244 " guestfs_pvremove (guestfs_h *g,\n"
17245 "                   const char *device);\n"
17246 "\n"
17247 msgstr ""
17248
17249 # type: textblock
17250 #. type: textblock
17251 #: ../src/guestfs-actions.pod:5589 ../fish/guestfish-actions.pod:3700
17252 msgid ""
17253 "This wipes a physical volume C<device> so that LVM will no longer recognise "
17254 "it."
17255 msgstr ""
17256
17257 # type: textblock
17258 #. type: textblock
17259 #: ../src/guestfs-actions.pod:5592 ../fish/guestfish-actions.pod:3703
17260 msgid ""
17261 "The implementation uses the C<pvremove> command which refuses to wipe "
17262 "physical volumes that contain any volume groups, so you have to remove those "
17263 "first."
17264 msgstr ""
17265
17266 # type: =head2
17267 #. type: =head2
17268 #: ../src/guestfs-actions.pod:5600
17269 msgid "guestfs_pvresize"
17270 msgstr ""
17271
17272 # type: verbatim
17273 #. type: verbatim
17274 #: ../src/guestfs-actions.pod:5602
17275 #, no-wrap
17276 msgid ""
17277 " int\n"
17278 " guestfs_pvresize (guestfs_h *g,\n"
17279 "                   const char *device);\n"
17280 "\n"
17281 msgstr ""
17282
17283 # type: textblock
17284 #. type: textblock
17285 #: ../src/guestfs-actions.pod:5606 ../fish/guestfish-actions.pod:3711
17286 msgid ""
17287 "This resizes (expands or shrinks) an existing LVM physical volume to match "
17288 "the new size of the underlying device."
17289 msgstr ""
17290
17291 # type: =head2
17292 #. type: =head2
17293 #: ../src/guestfs-actions.pod:5613
17294 msgid "guestfs_pvresize_size"
17295 msgstr ""
17296
17297 # type: verbatim
17298 #. type: verbatim
17299 #: ../src/guestfs-actions.pod:5615
17300 #, no-wrap
17301 msgid ""
17302 " int\n"
17303 " guestfs_pvresize_size (guestfs_h *g,\n"
17304 "                        const char *device,\n"
17305 "                        int64_t size);\n"
17306 "\n"
17307 msgstr ""
17308
17309 # type: textblock
17310 #. type: textblock
17311 #: ../src/guestfs-actions.pod:5620
17312 msgid ""
17313 "This command is the same as C<guestfs_pvresize> except that it allows you to "
17314 "specify the new size (in bytes) explicitly."
17315 msgstr ""
17316
17317 # type: =head2
17318 #. type: =head2
17319 #: ../src/guestfs-actions.pod:5627
17320 msgid "guestfs_pvs"
17321 msgstr ""
17322
17323 # type: verbatim
17324 #. type: verbatim
17325 #: ../src/guestfs-actions.pod:5629
17326 #, no-wrap
17327 msgid ""
17328 " char **\n"
17329 " guestfs_pvs (guestfs_h *g);\n"
17330 "\n"
17331 msgstr ""
17332
17333 # type: textblock
17334 #. type: textblock
17335 #: ../src/guestfs-actions.pod:5632 ../fish/guestfish-actions.pod:3725
17336 msgid ""
17337 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
17338 "(8)> command."
17339 msgstr ""
17340
17341 # type: textblock
17342 #. type: textblock
17343 #: ../src/guestfs-actions.pod:5635 ../fish/guestfish-actions.pod:3728
17344 msgid ""
17345 "This returns a list of just the device names that contain PVs (eg. C</dev/"
17346 "sda2>)."
17347 msgstr ""
17348
17349 # type: textblock
17350 #. type: textblock
17351 #: ../src/guestfs-actions.pod:5638
17352 msgid "See also C<guestfs_pvs_full>."
17353 msgstr ""
17354
17355 # type: =head2
17356 #. type: =head2
17357 #: ../src/guestfs-actions.pod:5646
17358 msgid "guestfs_pvs_full"
17359 msgstr ""
17360
17361 # type: verbatim
17362 #. type: verbatim
17363 #: ../src/guestfs-actions.pod:5648
17364 #, no-wrap
17365 msgid ""
17366 " struct guestfs_lvm_pv_list *\n"
17367 " guestfs_pvs_full (guestfs_h *g);\n"
17368 "\n"
17369 msgstr ""
17370
17371 # type: textblock
17372 #. type: textblock
17373 #: ../src/guestfs-actions.pod:5651 ../fish/guestfish-actions.pod:3737
17374 msgid ""
17375 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
17376 "(8)> command.  The \"full\" version includes all fields."
17377 msgstr ""
17378
17379 # type: textblock
17380 #. type: textblock
17381 #: ../src/guestfs-actions.pod:5654
17382 msgid ""
17383 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
17384 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
17385 msgstr ""
17386
17387 # type: =head2
17388 #. type: =head2
17389 #: ../src/guestfs-actions.pod:5660
17390 msgid "guestfs_pvuuid"
17391 msgstr ""
17392
17393 # type: verbatim
17394 #. type: verbatim
17395 #: ../src/guestfs-actions.pod:5662
17396 #, no-wrap
17397 msgid ""
17398 " char *\n"
17399 " guestfs_pvuuid (guestfs_h *g,\n"
17400 "                 const char *device);\n"
17401 "\n"
17402 msgstr ""
17403
17404 # type: textblock
17405 #. type: textblock
17406 #: ../src/guestfs-actions.pod:5666 ../fish/guestfish-actions.pod:3744
17407 msgid "This command returns the UUID of the LVM PV C<device>."
17408 msgstr ""
17409
17410 # type: =head2
17411 #. type: =head2
17412 #: ../src/guestfs-actions.pod:5673
17413 msgid "guestfs_pwrite"
17414 msgstr ""
17415
17416 # type: verbatim
17417 #. type: verbatim
17418 #: ../src/guestfs-actions.pod:5675
17419 #, no-wrap
17420 msgid ""
17421 " int\n"
17422 " guestfs_pwrite (guestfs_h *g,\n"
17423 "                 const char *path,\n"
17424 "                 const char *content,\n"
17425 "                 size_t content_size,\n"
17426 "                 int64_t offset);\n"
17427 "\n"
17428 msgstr ""
17429
17430 # type: textblock
17431 #. type: textblock
17432 #: ../src/guestfs-actions.pod:5682 ../fish/guestfish-actions.pod:3750
17433 msgid ""
17434 "This command writes to part of a file.  It writes the data buffer C<content> "
17435 "to the file C<path> starting at offset C<offset>."
17436 msgstr ""
17437
17438 # type: textblock
17439 #. type: textblock
17440 #: ../src/guestfs-actions.pod:5685 ../fish/guestfish-actions.pod:3753
17441 msgid ""
17442 "This command implements the L<pwrite(2)> system call, and like that system "
17443 "call it may not write the full data requested.  The return value is the "
17444 "number of bytes that were actually written to the file.  This could even be "
17445 "0, although short writes are unlikely for regular files in ordinary "
17446 "circumstances."
17447 msgstr ""
17448
17449 # type: textblock
17450 #. type: textblock
17451 #: ../src/guestfs-actions.pod:5691
17452 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
17453 msgstr ""
17454
17455 # type: =head2
17456 #. type: =head2
17457 #: ../src/guestfs-actions.pod:5700
17458 msgid "guestfs_pwrite_device"
17459 msgstr ""
17460
17461 # type: verbatim
17462 #. type: verbatim
17463 #: ../src/guestfs-actions.pod:5702
17464 #, no-wrap
17465 msgid ""
17466 " int\n"
17467 " guestfs_pwrite_device (guestfs_h *g,\n"
17468 "                        const char *device,\n"
17469 "                        const char *content,\n"
17470 "                        size_t content_size,\n"
17471 "                        int64_t offset);\n"
17472 "\n"
17473 msgstr ""
17474
17475 # type: textblock
17476 #. type: textblock
17477 #: ../src/guestfs-actions.pod:5709 ../fish/guestfish-actions.pod:3768
17478 msgid ""
17479 "This command writes to part of a device.  It writes the data buffer "
17480 "C<content> to C<device> starting at offset C<offset>."
17481 msgstr ""
17482
17483 # type: textblock
17484 #. type: textblock
17485 #: ../src/guestfs-actions.pod:5712 ../fish/guestfish-actions.pod:3771
17486 msgid ""
17487 "This command implements the L<pwrite(2)> system call, and like that system "
17488 "call it may not write the full data requested (although short writes to disk "
17489 "devices and partitions are probably impossible with standard Linux kernels)."
17490 msgstr ""
17491
17492 # type: textblock
17493 #. type: textblock
17494 #: ../src/guestfs-actions.pod:5717
17495 msgid "See also C<guestfs_pwrite>."
17496 msgstr ""
17497
17498 # type: textblock
17499 #. type: textblock
17500 #: ../src/guestfs-actions.pod:5724
17501 msgid "(Added in 1.5.20)"
17502 msgstr ""
17503
17504 # type: =head2
17505 #. type: =head2
17506 #: ../src/guestfs-actions.pod:5726
17507 msgid "guestfs_read_file"
17508 msgstr ""
17509
17510 # type: verbatim
17511 #. type: verbatim
17512 #: ../src/guestfs-actions.pod:5728
17513 #, no-wrap
17514 msgid ""
17515 " char *\n"
17516 " guestfs_read_file (guestfs_h *g,\n"
17517 "                    const char *path,\n"
17518 "                    size_t *size_r);\n"
17519 "\n"
17520 msgstr ""
17521
17522 # type: textblock
17523 #. type: textblock
17524 #: ../src/guestfs-actions.pod:5733 ../fish/guestfish-actions.pod:3785
17525 msgid "This calls returns the contents of the file C<path> as a buffer."
17526 msgstr ""
17527
17528 # type: textblock
17529 #. type: textblock
17530 #: ../src/guestfs-actions.pod:5736
17531 msgid ""
17532 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
17533 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
17534 "function is limited in the total size of file that can be handled."
17535 msgstr ""
17536
17537 # type: textblock
17538 #. type: textblock
17539 #: ../src/guestfs-actions.pod:5748
17540 msgid "(Added in 1.0.63)"
17541 msgstr ""
17542
17543 # type: =head2
17544 #. type: =head2
17545 #: ../src/guestfs-actions.pod:5750
17546 msgid "guestfs_read_lines"
17547 msgstr ""
17548
17549 # type: verbatim
17550 #. type: verbatim
17551 #: ../src/guestfs-actions.pod:5752
17552 #, no-wrap
17553 msgid ""
17554 " char **\n"
17555 " guestfs_read_lines (guestfs_h *g,\n"
17556 "                     const char *path);\n"
17557 "\n"
17558 msgstr ""
17559
17560 # type: textblock
17561 #. type: textblock
17562 #: ../src/guestfs-actions.pod:5758 ../fish/guestfish-actions.pod:3802
17563 msgid ""
17564 "The file contents are returned as a list of lines.  Trailing C<LF> and "
17565 "C<CRLF> character sequences are I<not> returned."
17566 msgstr ""
17567
17568 # type: textblock
17569 #. type: textblock
17570 #: ../src/guestfs-actions.pod:5761
17571 msgid ""
17572 "Note that this function cannot correctly handle binary files (specifically, "
17573 "files containing C<\\0> character which is treated as end of line).  For "
17574 "those you need to use the C<guestfs_read_file> function which has a more "
17575 "complex interface."
17576 msgstr ""
17577
17578 # type: =head2
17579 #. type: =head2
17580 #: ../src/guestfs-actions.pod:5772
17581 msgid "guestfs_readdir"
17582 msgstr ""
17583
17584 # type: verbatim
17585 #. type: verbatim
17586 #: ../src/guestfs-actions.pod:5774
17587 #, no-wrap
17588 msgid ""
17589 " struct guestfs_dirent_list *\n"
17590 " guestfs_readdir (guestfs_h *g,\n"
17591 "                  const char *dir);\n"
17592 "\n"
17593 msgstr ""
17594
17595 # type: textblock
17596 #. type: textblock
17597 #: ../src/guestfs-actions.pod:5778 ../fish/guestfish-actions.pod:3814
17598 msgid "This returns the list of directory entries in directory C<dir>."
17599 msgstr ""
17600
17601 # type: textblock
17602 #. type: textblock
17603 #: ../src/guestfs-actions.pod:5780 ../fish/guestfish-actions.pod:3816
17604 msgid ""
17605 "All entries in the directory are returned, including C<.> and C<..>.  The "
17606 "entries are I<not> sorted, but returned in the same order as the underlying "
17607 "filesystem."
17608 msgstr ""
17609
17610 # type: textblock
17611 #. type: textblock
17612 #: ../src/guestfs-actions.pod:5784 ../fish/guestfish-actions.pod:3820
17613 msgid ""
17614 "Also this call returns basic file type information about each file.  The "
17615 "C<ftyp> field will contain one of the following characters:"
17616 msgstr ""
17617
17618 # type: =item
17619 #. type: =item
17620 #: ../src/guestfs-actions.pod:5789 ../fish/guestfish-actions.pod:3825
17621 msgid "'b'"
17622 msgstr ""
17623
17624 # type: textblock
17625 #. type: textblock
17626 #: ../src/guestfs-actions.pod:5791 ../fish/guestfish-actions.pod:3827
17627 msgid "Block special"
17628 msgstr ""
17629
17630 # type: =item
17631 #. type: =item
17632 #: ../src/guestfs-actions.pod:5793 ../fish/guestfish-actions.pod:3829
17633 msgid "'c'"
17634 msgstr ""
17635
17636 # type: textblock
17637 #. type: textblock
17638 #: ../src/guestfs-actions.pod:5795 ../fish/guestfish-actions.pod:3831
17639 msgid "Char special"
17640 msgstr ""
17641
17642 # type: =item
17643 #. type: =item
17644 #: ../src/guestfs-actions.pod:5797 ../fish/guestfish-actions.pod:3833
17645 msgid "'d'"
17646 msgstr ""
17647
17648 # type: textblock
17649 #. type: textblock
17650 #: ../src/guestfs-actions.pod:5799 ../fish/guestfish-actions.pod:3835
17651 msgid "Directory"
17652 msgstr ""
17653
17654 # type: =item
17655 #. type: =item
17656 #: ../src/guestfs-actions.pod:5801 ../fish/guestfish-actions.pod:3837
17657 msgid "'f'"
17658 msgstr ""
17659
17660 # type: textblock
17661 #. type: textblock
17662 #: ../src/guestfs-actions.pod:5803 ../fish/guestfish-actions.pod:3839
17663 msgid "FIFO (named pipe)"
17664 msgstr ""
17665
17666 # type: =item
17667 #. type: =item
17668 #: ../src/guestfs-actions.pod:5805 ../fish/guestfish-actions.pod:3841
17669 msgid "'l'"
17670 msgstr ""
17671
17672 # type: textblock
17673 #. type: textblock
17674 #: ../src/guestfs-actions.pod:5807 ../fish/guestfish-actions.pod:3843
17675 msgid "Symbolic link"
17676 msgstr ""
17677
17678 # type: =item
17679 #. type: =item
17680 #: ../src/guestfs-actions.pod:5809 ../fish/guestfish-actions.pod:3845
17681 msgid "'r'"
17682 msgstr ""
17683
17684 # type: textblock
17685 #. type: textblock
17686 #: ../src/guestfs-actions.pod:5811 ../fish/guestfish-actions.pod:3847
17687 msgid "Regular file"
17688 msgstr ""
17689
17690 # type: =item
17691 #. type: =item
17692 #: ../src/guestfs-actions.pod:5813 ../fish/guestfish-actions.pod:3849
17693 msgid "'s'"
17694 msgstr ""
17695
17696 # type: textblock
17697 #. type: textblock
17698 #: ../src/guestfs-actions.pod:5815 ../fish/guestfish-actions.pod:3851
17699 msgid "Socket"
17700 msgstr ""
17701
17702 # type: =item
17703 #. type: =item
17704 #: ../src/guestfs-actions.pod:5817 ../fish/guestfish-actions.pod:3853
17705 msgid "'u'"
17706 msgstr ""
17707
17708 # type: textblock
17709 #. type: textblock
17710 #: ../src/guestfs-actions.pod:5819 ../fish/guestfish-actions.pod:3855
17711 msgid "Unknown file type"
17712 msgstr ""
17713
17714 # type: =item
17715 #. type: =item
17716 #: ../src/guestfs-actions.pod:5821 ../fish/guestfish-actions.pod:3857
17717 msgid "'?'"
17718 msgstr ""
17719
17720 # type: textblock
17721 #. type: textblock
17722 #: ../src/guestfs-actions.pod:5823 ../fish/guestfish-actions.pod:3859
17723 msgid ""
17724 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
17725 msgstr ""
17726
17727 # type: textblock
17728 #. type: textblock
17729 #: ../src/guestfs-actions.pod:5828
17730 msgid ""
17731 "This function is primarily intended for use by programs.  To get a simple "
17732 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
17733 "consumption, use C<guestfs_ll>."
17734 msgstr ""
17735
17736 # type: textblock
17737 #. type: textblock
17738 #: ../src/guestfs-actions.pod:5832
17739 msgid ""
17740 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
17741 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
17742 msgstr ""
17743
17744 # type: =head2
17745 #. type: =head2
17746 #: ../src/guestfs-actions.pod:5838
17747 msgid "guestfs_readlink"
17748 msgstr ""
17749
17750 # type: verbatim
17751 #. type: verbatim
17752 #: ../src/guestfs-actions.pod:5840
17753 #, no-wrap
17754 msgid ""
17755 " char *\n"
17756 " guestfs_readlink (guestfs_h *g,\n"
17757 "                   const char *path);\n"
17758 "\n"
17759 msgstr ""
17760
17761 # type: textblock
17762 #. type: textblock
17763 #: ../src/guestfs-actions.pod:5844 ../fish/guestfish-actions.pod:3872
17764 msgid "This command reads the target of a symbolic link."
17765 msgstr ""
17766
17767 # type: =head2
17768 #. type: =head2
17769 #: ../src/guestfs-actions.pod:5851
17770 msgid "guestfs_readlinklist"
17771 msgstr ""
17772
17773 # type: verbatim
17774 #. type: verbatim
17775 #: ../src/guestfs-actions.pod:5853
17776 #, no-wrap
17777 msgid ""
17778 " char **\n"
17779 " guestfs_readlinklist (guestfs_h *g,\n"
17780 "                       const char *path,\n"
17781 "                       char *const *names);\n"
17782 "\n"
17783 msgstr ""
17784
17785 # type: textblock
17786 #. type: textblock
17787 #: ../src/guestfs-actions.pod:5858 ../fish/guestfish-actions.pod:3878
17788 msgid ""
17789 "This call allows you to do a C<readlink> operation on multiple files, where "
17790 "all files are in the directory C<path>.  C<names> is the list of files from "
17791 "this directory."
17792 msgstr ""
17793
17794 # type: textblock
17795 #. type: textblock
17796 #: ../src/guestfs-actions.pod:5862 ../fish/guestfish-actions.pod:3882
17797 msgid ""
17798 "On return you get a list of strings, with a one-to-one correspondence to the "
17799 "C<names> list.  Each string is the value of the symbolic link."
17800 msgstr ""
17801
17802 # type: textblock
17803 #. type: textblock
17804 #: ../src/guestfs-actions.pod:5866 ../fish/guestfish-actions.pod:3886
17805 msgid ""
17806 "If the C<readlink(2)> operation fails on any name, then the corresponding "
17807 "result string is the empty string C<\"\">.  However the whole operation is "
17808 "completed even if there were C<readlink(2)> errors, and so you can call this "
17809 "function with names where you don't know if they are symbolic links already "
17810 "(albeit slightly less efficient)."
17811 msgstr ""
17812
17813 # type: textblock
17814 #. type: textblock
17815 #: ../src/guestfs-actions.pod:5873 ../fish/guestfish-actions.pod:3893
17816 msgid ""
17817 "This call is intended for programs that want to efficiently list a directory "
17818 "contents without making many round-trips.  Very long directory listings "
17819 "might cause the protocol message size to be exceeded, causing this call to "
17820 "fail.  The caller must split up such requests into smaller groups of names."
17821 msgstr ""
17822
17823 # type: =head2
17824 #. type: =head2
17825 #: ../src/guestfs-actions.pod:5886
17826 msgid "guestfs_realpath"
17827 msgstr ""
17828
17829 # type: verbatim
17830 #. type: verbatim
17831 #: ../src/guestfs-actions.pod:5888
17832 #, no-wrap
17833 msgid ""
17834 " char *\n"
17835 " guestfs_realpath (guestfs_h *g,\n"
17836 "                   const char *path);\n"
17837 "\n"
17838 msgstr ""
17839
17840 # type: textblock
17841 #. type: textblock
17842 #: ../src/guestfs-actions.pod:5892 ../fish/guestfish-actions.pod:3904
17843 msgid ""
17844 "Return the canonicalized absolute pathname of C<path>.  The returned path "
17845 "has no C<.>, C<..> or symbolic link path elements."
17846 msgstr ""
17847
17848 # type: =head2
17849 #. type: =head2
17850 #: ../src/guestfs-actions.pod:5900
17851 msgid "guestfs_removexattr"
17852 msgstr ""
17853
17854 # type: verbatim
17855 #. type: verbatim
17856 #: ../src/guestfs-actions.pod:5902
17857 #, no-wrap
17858 msgid ""
17859 " int\n"
17860 " guestfs_removexattr (guestfs_h *g,\n"
17861 "                      const char *xattr,\n"
17862 "                      const char *path);\n"
17863 "\n"
17864 msgstr ""
17865
17866 # type: textblock
17867 #. type: textblock
17868 #: ../src/guestfs-actions.pod:5907 ../fish/guestfish-actions.pod:3911
17869 msgid ""
17870 "This call removes the extended attribute named C<xattr> of the file C<path>."
17871 msgstr ""
17872
17873 # type: textblock
17874 #. type: textblock
17875 #: ../src/guestfs-actions.pod:5910
17876 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
17877 msgstr ""
17878
17879 # type: =head2
17880 #. type: =head2
17881 #: ../src/guestfs-actions.pod:5916
17882 msgid "guestfs_resize2fs"
17883 msgstr ""
17884
17885 # type: verbatim
17886 #. type: verbatim
17887 #: ../src/guestfs-actions.pod:5918
17888 #, no-wrap
17889 msgid ""
17890 " int\n"
17891 " guestfs_resize2fs (guestfs_h *g,\n"
17892 "                    const char *device);\n"
17893 "\n"
17894 msgstr ""
17895
17896 # type: textblock
17897 #. type: textblock
17898 #: ../src/guestfs-actions.pod:5922 ../fish/guestfish-actions.pod:3920
17899 msgid ""
17900 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
17901 "underlying device."
17902 msgstr ""
17903
17904 # type: textblock
17905 #. type: textblock
17906 #: ../src/guestfs-actions.pod:5925
17907 msgid ""
17908 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
17909 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
17910 "sometimes gives an error about this and sometimes not.  In any case, it is "
17911 "always safe to call C<guestfs_e2fsck_f> before calling this function."
17912 msgstr ""
17913
17914 #. type: =head2
17915 #: ../src/guestfs-actions.pod:5935
17916 msgid "guestfs_resize2fs_M"
17917 msgstr ""
17918
17919 #. type: verbatim
17920 #: ../src/guestfs-actions.pod:5937
17921 #, no-wrap
17922 msgid ""
17923 " int\n"
17924 " guestfs_resize2fs_M (guestfs_h *g,\n"
17925 "                      const char *device);\n"
17926 "\n"
17927 msgstr ""
17928
17929 #. type: textblock
17930 #: ../src/guestfs-actions.pod:5941
17931 msgid ""
17932 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
17933 "resized to its minimum size.  This works like the I<-M> option to the "
17934 "C<resize2fs> command."
17935 msgstr ""
17936
17937 #. type: textblock
17938 #: ../src/guestfs-actions.pod:5945
17939 msgid ""
17940 "To get the resulting size of the filesystem you should call "
17941 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
17942 "These two numbers, multiplied together, give the resulting size of the "
17943 "minimal filesystem in bytes."
17944 msgstr ""
17945
17946 # type: =head2
17947 #. type: =head2
17948 #: ../src/guestfs-actions.pod:5954
17949 msgid "guestfs_resize2fs_size"
17950 msgstr ""
17951
17952 # type: verbatim
17953 #. type: verbatim
17954 #: ../src/guestfs-actions.pod:5956
17955 #, no-wrap
17956 msgid ""
17957 " int\n"
17958 " guestfs_resize2fs_size (guestfs_h *g,\n"
17959 "                         const char *device,\n"
17960 "                         int64_t size);\n"
17961 "\n"
17962 msgstr ""
17963
17964 # type: textblock
17965 #. type: textblock
17966 #: ../src/guestfs-actions.pod:5961
17967 msgid ""
17968 "This command is the same as C<guestfs_resize2fs> except that it allows you "
17969 "to specify the new size (in bytes) explicitly."
17970 msgstr ""
17971
17972 # type: =head2
17973 #. type: =head2
17974 #: ../src/guestfs-actions.pod:5968
17975 msgid "guestfs_rm"
17976 msgstr ""
17977
17978 # type: verbatim
17979 #. type: verbatim
17980 #: ../src/guestfs-actions.pod:5970
17981 #, no-wrap
17982 msgid ""
17983 " int\n"
17984 " guestfs_rm (guestfs_h *g,\n"
17985 "             const char *path);\n"
17986 "\n"
17987 msgstr ""
17988
17989 # type: textblock
17990 #. type: textblock
17991 #: ../src/guestfs-actions.pod:5974 ../fish/guestfish-actions.pod:3953
17992 msgid "Remove the single file C<path>."
17993 msgstr ""
17994
17995 # type: =head2
17996 #. type: =head2
17997 #: ../src/guestfs-actions.pod:5980
17998 msgid "guestfs_rm_rf"
17999 msgstr ""
18000
18001 # type: verbatim
18002 #. type: verbatim
18003 #: ../src/guestfs-actions.pod:5982
18004 #, no-wrap
18005 msgid ""
18006 " int\n"
18007 " guestfs_rm_rf (guestfs_h *g,\n"
18008 "                const char *path);\n"
18009 "\n"
18010 msgstr ""
18011
18012 # type: textblock
18013 #. type: textblock
18014 #: ../src/guestfs-actions.pod:5986 ../fish/guestfish-actions.pod:3959
18015 msgid ""
18016 "Remove the file or directory C<path>, recursively removing the contents if "
18017 "its a directory.  This is like the C<rm -rf> shell command."
18018 msgstr ""
18019
18020 # type: =head2
18021 #. type: =head2
18022 #: ../src/guestfs-actions.pod:5994
18023 msgid "guestfs_rmdir"
18024 msgstr ""
18025
18026 # type: verbatim
18027 #. type: verbatim
18028 #: ../src/guestfs-actions.pod:5996
18029 #, no-wrap
18030 msgid ""
18031 " int\n"
18032 " guestfs_rmdir (guestfs_h *g,\n"
18033 "                const char *path);\n"
18034 "\n"
18035 msgstr ""
18036
18037 # type: textblock
18038 #. type: textblock
18039 #: ../src/guestfs-actions.pod:6000 ../fish/guestfish-actions.pod:3967
18040 msgid "Remove the single directory C<path>."
18041 msgstr ""
18042
18043 # type: =head2
18044 #. type: =head2
18045 #: ../src/guestfs-actions.pod:6006
18046 msgid "guestfs_rmmountpoint"
18047 msgstr ""
18048
18049 # type: verbatim
18050 #. type: verbatim
18051 #: ../src/guestfs-actions.pod:6008
18052 #, no-wrap
18053 msgid ""
18054 " int\n"
18055 " guestfs_rmmountpoint (guestfs_h *g,\n"
18056 "                       const char *exemptpath);\n"
18057 "\n"
18058 msgstr ""
18059
18060 # type: textblock
18061 #. type: textblock
18062 #: ../src/guestfs-actions.pod:6012
18063 msgid ""
18064 "This calls removes a mountpoint that was previously created with "
18065 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
18066 msgstr ""
18067
18068 # type: =head2
18069 #. type: =head2
18070 #: ../src/guestfs-actions.pod:6020
18071 msgid "guestfs_scrub_device"
18072 msgstr ""
18073
18074 # type: verbatim
18075 #. type: verbatim
18076 #: ../src/guestfs-actions.pod:6022
18077 #, no-wrap
18078 msgid ""
18079 " int\n"
18080 " guestfs_scrub_device (guestfs_h *g,\n"
18081 "                       const char *device);\n"
18082 "\n"
18083 msgstr ""
18084
18085 # type: textblock
18086 #. type: textblock
18087 #: ../src/guestfs-actions.pod:6026 ../fish/guestfish-actions.pod:3981
18088 msgid ""
18089 "This command writes patterns over C<device> to make data retrieval more "
18090 "difficult."
18091 msgstr ""
18092
18093 # type: textblock
18094 #. type: textblock
18095 #: ../src/guestfs-actions.pod:6029 ../src/guestfs-actions.pod:6050
18096 #: ../src/guestfs-actions.pod:6069 ../fish/guestfish-actions.pod:3984
18097 #: ../fish/guestfish-actions.pod:3999 ../fish/guestfish-actions.pod:4012
18098 msgid ""
18099 "It is an interface to the L<scrub(1)> program.  See that manual page for "
18100 "more details."
18101 msgstr ""
18102
18103 # type: textblock
18104 #. type: textblock
18105 #: ../src/guestfs-actions.pod:6037 ../src/guestfs-actions.pod:6055
18106 #: ../src/guestfs-actions.pod:6074
18107 msgid "(Added in 1.0.52)"
18108 msgstr ""
18109
18110 # type: =head2
18111 #. type: =head2
18112 #: ../src/guestfs-actions.pod:6039
18113 msgid "guestfs_scrub_file"
18114 msgstr ""
18115
18116 # type: verbatim
18117 #. type: verbatim
18118 #: ../src/guestfs-actions.pod:6041
18119 #, no-wrap
18120 msgid ""
18121 " int\n"
18122 " guestfs_scrub_file (guestfs_h *g,\n"
18123 "                     const char *file);\n"
18124 "\n"
18125 msgstr ""
18126
18127 # type: textblock
18128 #. type: textblock
18129 #: ../src/guestfs-actions.pod:6045 ../fish/guestfish-actions.pod:3994
18130 msgid ""
18131 "This command writes patterns over a file to make data retrieval more "
18132 "difficult."
18133 msgstr ""
18134
18135 # type: textblock
18136 #. type: textblock
18137 #: ../src/guestfs-actions.pod:6048 ../fish/guestfish-actions.pod:3997
18138 msgid "The file is I<removed> after scrubbing."
18139 msgstr ""
18140
18141 # type: =head2
18142 #. type: =head2
18143 #: ../src/guestfs-actions.pod:6057
18144 msgid "guestfs_scrub_freespace"
18145 msgstr ""
18146
18147 # type: verbatim
18148 #. type: verbatim
18149 #: ../src/guestfs-actions.pod:6059
18150 #, no-wrap
18151 msgid ""
18152 " int\n"
18153 " guestfs_scrub_freespace (guestfs_h *g,\n"
18154 "                          const char *dir);\n"
18155 "\n"
18156 msgstr ""
18157
18158 # type: textblock
18159 #. type: textblock
18160 #: ../src/guestfs-actions.pod:6063
18161 msgid ""
18162 "This command creates the directory C<dir> and then fills it with files until "
18163 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
18164 "and deletes them.  The intention is to scrub any free space on the partition "
18165 "containing C<dir>."
18166 msgstr ""
18167
18168 # type: =head2
18169 #. type: =head2
18170 #: ../src/guestfs-actions.pod:6076
18171 msgid "guestfs_set_append"
18172 msgstr ""
18173
18174 # type: verbatim
18175 #. type: verbatim
18176 #: ../src/guestfs-actions.pod:6078
18177 #, no-wrap
18178 msgid ""
18179 " int\n"
18180 " guestfs_set_append (guestfs_h *g,\n"
18181 "                     const char *append);\n"
18182 "\n"
18183 msgstr ""
18184
18185 # type: textblock
18186 #. type: textblock
18187 #: ../src/guestfs-actions.pod:6082 ../fish/guestfish-actions.pod:4021
18188 msgid ""
18189 "This function is used to add additional options to the guest kernel command "
18190 "line."
18191 msgstr ""
18192
18193 # type: textblock
18194 #. type: textblock
18195 #: ../src/guestfs-actions.pod:6085 ../fish/guestfish-actions.pod:4024
18196 msgid ""
18197 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
18198 "environment variable."
18199 msgstr ""
18200
18201 # type: textblock
18202 #. type: textblock
18203 #: ../src/guestfs-actions.pod:6088 ../fish/guestfish-actions.pod:4027
18204 msgid ""
18205 "Setting C<append> to C<NULL> means I<no> additional options are passed "
18206 "(libguestfs always adds a few of its own)."
18207 msgstr ""
18208
18209 #. type: =head2
18210 #: ../src/guestfs-actions.pod:6095
18211 msgid "guestfs_set_attach_method"
18212 msgstr ""
18213
18214 #. type: verbatim
18215 #: ../src/guestfs-actions.pod:6097
18216 #, no-wrap
18217 msgid ""
18218 " int\n"
18219 " guestfs_set_attach_method (guestfs_h *g,\n"
18220 "                            const char *attachmethod);\n"
18221 "\n"
18222 msgstr ""
18223
18224 #. type: textblock
18225 #: ../src/guestfs-actions.pod:6101 ../fish/guestfish-actions.pod:4036
18226 msgid ""
18227 "Set the method that libguestfs uses to connect to the back end guestfsd "
18228 "daemon.  Possible methods are:"
18229 msgstr ""
18230
18231 #. type: textblock
18232 #: ../src/guestfs-actions.pod:6108 ../fish/guestfish-actions.pod:4043
18233 msgid ""
18234 "Launch an appliance and connect to it.  This is the ordinary method and the "
18235 "default."
18236 msgstr ""
18237
18238 #. type: =item
18239 #: ../src/guestfs-actions.pod:6111 ../fish/guestfish-actions.pod:4046
18240 msgid "C<unix:I<path>>"
18241 msgstr ""
18242
18243 #. type: textblock
18244 #: ../src/guestfs-actions.pod:6113 ../fish/guestfish-actions.pod:4048
18245 msgid "Connect to the Unix domain socket I<path>."
18246 msgstr ""
18247
18248 #. type: textblock
18249 #: ../src/guestfs-actions.pod:6115 ../fish/guestfish-actions.pod:4050
18250 msgid ""
18251 "This method lets you connect to an existing daemon or (using virtio-serial) "
18252 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
18253 "RUNNING DAEMONS>."
18254 msgstr ""
18255
18256 # type: =head2
18257 #. type: =head2
18258 #: ../src/guestfs-actions.pod:6125
18259 msgid "guestfs_set_autosync"
18260 msgstr ""
18261
18262 # type: verbatim
18263 #. type: verbatim
18264 #: ../src/guestfs-actions.pod:6127
18265 #, no-wrap
18266 msgid ""
18267 " int\n"
18268 " guestfs_set_autosync (guestfs_h *g,\n"
18269 "                       int autosync);\n"
18270 "\n"
18271 msgstr ""
18272
18273 #. type: textblock
18274 #: ../src/guestfs-actions.pod:6131 ../fish/guestfish-actions.pod:4062
18275 msgid ""
18276 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
18277 "effort attempt to make filesystems consistent and synchronized when the "
18278 "handle is closed (also if the program exits without closing handles)."
18279 msgstr ""
18280
18281 # type: textblock
18282 #. type: textblock
18283 #: ../src/guestfs-actions.pod:6136 ../fish/guestfish-actions.pod:4067
18284 msgid ""
18285 "This is enabled by default (since libguestfs 1.5.24, previously it was "
18286 "disabled by default)."
18287 msgstr ""
18288
18289 # type: =head2
18290 #. type: =head2
18291 #: ../src/guestfs-actions.pod:6143
18292 msgid "guestfs_set_direct"
18293 msgstr ""
18294
18295 # type: verbatim
18296 #. type: verbatim
18297 #: ../src/guestfs-actions.pod:6145
18298 #, no-wrap
18299 msgid ""
18300 " int\n"
18301 " guestfs_set_direct (guestfs_h *g,\n"
18302 "                     int direct);\n"
18303 "\n"
18304 msgstr ""
18305
18306 # type: textblock
18307 #. type: textblock
18308 #: ../src/guestfs-actions.pod:6149 ../fish/guestfish-actions.pod:4076
18309 msgid ""
18310 "If the direct appliance mode flag is enabled, then stdin and stdout are "
18311 "passed directly through to the appliance once it is launched."
18312 msgstr ""
18313
18314 # type: textblock
18315 #. type: textblock
18316 #: ../src/guestfs-actions.pod:6153
18317 msgid ""
18318 "One consequence of this is that log messages aren't caught by the library "
18319 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
18320 "stdout."
18321 msgstr ""
18322
18323 # type: textblock
18324 #. type: textblock
18325 #: ../src/guestfs-actions.pod:6157 ../fish/guestfish-actions.pod:4084
18326 msgid "You probably don't want to use this unless you know what you are doing."
18327 msgstr ""
18328
18329 # type: textblock
18330 #. type: textblock
18331 #: ../src/guestfs-actions.pod:6160 ../fish/guestfish-actions.pod:4087
18332 msgid "The default is disabled."
18333 msgstr ""
18334
18335 # type: =head2
18336 #. type: =head2
18337 #: ../src/guestfs-actions.pod:6166
18338 msgid "guestfs_set_e2label"
18339 msgstr ""
18340
18341 # type: verbatim
18342 #. type: verbatim
18343 #: ../src/guestfs-actions.pod:6168
18344 #, no-wrap
18345 msgid ""
18346 " int\n"
18347 " guestfs_set_e2label (guestfs_h *g,\n"
18348 "                      const char *device,\n"
18349 "                      const char *label);\n"
18350 "\n"
18351 msgstr ""
18352
18353 # type: textblock
18354 #. type: textblock
18355 #: ../src/guestfs-actions.pod:6173 ../fish/guestfish-actions.pod:4093
18356 msgid ""
18357 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
18358 "C<label>.  Filesystem labels are limited to 16 characters."
18359 msgstr ""
18360
18361 # type: textblock
18362 #. type: textblock
18363 #: ../src/guestfs-actions.pod:6177
18364 msgid ""
18365 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
18366 "the existing label on a filesystem."
18367 msgstr ""
18368
18369 # type: =head2
18370 #. type: =head2
18371 #: ../src/guestfs-actions.pod:6184
18372 msgid "guestfs_set_e2uuid"
18373 msgstr ""
18374
18375 # type: verbatim
18376 #. type: verbatim
18377 #: ../src/guestfs-actions.pod:6186
18378 #, no-wrap
18379 msgid ""
18380 " int\n"
18381 " guestfs_set_e2uuid (guestfs_h *g,\n"
18382 "                     const char *device,\n"
18383 "                     const char *uuid);\n"
18384 "\n"
18385 msgstr ""
18386
18387 # type: textblock
18388 #. type: textblock
18389 #: ../src/guestfs-actions.pod:6191 ../fish/guestfish-actions.pod:4104
18390 msgid ""
18391 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
18392 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
18393 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
18394 msgstr ""
18395
18396 # type: textblock
18397 #. type: textblock
18398 #: ../src/guestfs-actions.pod:6196
18399 msgid ""
18400 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
18401 "the existing UUID of a filesystem."
18402 msgstr ""
18403
18404 # type: =head2
18405 #. type: =head2
18406 #: ../src/guestfs-actions.pod:6203
18407 msgid "guestfs_set_memsize"
18408 msgstr ""
18409
18410 # type: verbatim
18411 #. type: verbatim
18412 #: ../src/guestfs-actions.pod:6205
18413 #, no-wrap
18414 msgid ""
18415 " int\n"
18416 " guestfs_set_memsize (guestfs_h *g,\n"
18417 "                      int memsize);\n"
18418 "\n"
18419 msgstr ""
18420
18421 # type: textblock
18422 #. type: textblock
18423 #: ../src/guestfs-actions.pod:6209
18424 msgid ""
18425 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
18426 "This only has any effect if called before C<guestfs_launch>."
18427 msgstr ""
18428
18429 # type: textblock
18430 #. type: textblock
18431 #: ../src/guestfs-actions.pod:6213 ../fish/guestfish-actions.pod:4122
18432 msgid ""
18433 "You can also change this by setting the environment variable "
18434 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
18435 msgstr ""
18436
18437 # type: =head2
18438 #. type: =head2
18439 #: ../src/guestfs-actions.pod:6224
18440 msgid "guestfs_set_network"
18441 msgstr ""
18442
18443 # type: verbatim
18444 #. type: verbatim
18445 #: ../src/guestfs-actions.pod:6226
18446 #, no-wrap
18447 msgid ""
18448 " int\n"
18449 " guestfs_set_network (guestfs_h *g,\n"
18450 "                      int network);\n"
18451 "\n"
18452 msgstr ""
18453
18454 # type: textblock
18455 #. type: textblock
18456 #: ../src/guestfs-actions.pod:6230 ../fish/guestfish-actions.pod:4135
18457 msgid ""
18458 "If C<network> is true, then the network is enabled in the libguestfs "
18459 "appliance.  The default is false."
18460 msgstr ""
18461
18462 # type: textblock
18463 #. type: textblock
18464 #: ../src/guestfs-actions.pod:6233 ../fish/guestfish-actions.pod:4138
18465 msgid ""
18466 "This affects whether commands are able to access the network (see L<guestfs"
18467 "(3)/RUNNING COMMANDS>)."
18468 msgstr ""
18469
18470 # type: textblock
18471 #. type: textblock
18472 #: ../src/guestfs-actions.pod:6236
18473 msgid ""
18474 "You must call this before calling C<guestfs_launch>, otherwise it has no "
18475 "effect."
18476 msgstr ""
18477
18478 # type: =head2
18479 #. type: =head2
18480 #: ../src/guestfs-actions.pod:6243
18481 msgid "guestfs_set_path"
18482 msgstr ""
18483
18484 # type: verbatim
18485 #. type: verbatim
18486 #: ../src/guestfs-actions.pod:6245
18487 #, no-wrap
18488 msgid ""
18489 " int\n"
18490 " guestfs_set_path (guestfs_h *g,\n"
18491 "                   const char *searchpath);\n"
18492 "\n"
18493 msgstr ""
18494
18495 # type: textblock
18496 #. type: textblock
18497 #: ../src/guestfs-actions.pod:6249 ../fish/guestfish-actions.pod:4150
18498 msgid "Set the path that libguestfs searches for kernel and initrd.img."
18499 msgstr ""
18500
18501 # type: textblock
18502 #. type: textblock
18503 #: ../src/guestfs-actions.pod:6251 ../fish/guestfish-actions.pod:4152
18504 msgid ""
18505 "The default is C<$libdir/guestfs> unless overridden by setting "
18506 "C<LIBGUESTFS_PATH> environment variable."
18507 msgstr ""
18508
18509 # type: textblock
18510 #. type: textblock
18511 #: ../src/guestfs-actions.pod:6254 ../fish/guestfish-actions.pod:4155
18512 msgid "Setting C<path> to C<NULL> restores the default path."
18513 msgstr ""
18514
18515 # type: =head2
18516 #. type: =head2
18517 #: ../src/guestfs-actions.pod:6260
18518 msgid "guestfs_set_qemu"
18519 msgstr ""
18520
18521 # type: verbatim
18522 #. type: verbatim
18523 #: ../src/guestfs-actions.pod:6262
18524 #, no-wrap
18525 msgid ""
18526 " int\n"
18527 " guestfs_set_qemu (guestfs_h *g,\n"
18528 "                   const char *qemu);\n"
18529 "\n"
18530 msgstr ""
18531
18532 # type: textblock
18533 #. type: textblock
18534 #: ../src/guestfs-actions.pod:6266 ../fish/guestfish-actions.pod:4163
18535 msgid "Set the qemu binary that we will use."
18536 msgstr ""
18537
18538 # type: textblock
18539 #. type: textblock
18540 #: ../src/guestfs-actions.pod:6268 ../fish/guestfish-actions.pod:4165
18541 msgid ""
18542 "The default is chosen when the library was compiled by the configure script."
18543 msgstr ""
18544
18545 # type: textblock
18546 #. type: textblock
18547 #: ../src/guestfs-actions.pod:6271 ../fish/guestfish-actions.pod:4168
18548 msgid ""
18549 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
18550 "variable."
18551 msgstr ""
18552
18553 # type: textblock
18554 #. type: textblock
18555 #: ../src/guestfs-actions.pod:6274 ../fish/guestfish-actions.pod:4171
18556 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
18557 msgstr ""
18558
18559 # type: textblock
18560 #. type: textblock
18561 #: ../src/guestfs-actions.pod:6276 ../fish/guestfish-actions.pod:4173
18562 msgid ""
18563 "Note that you should call this function as early as possible after creating "
18564 "the handle.  This is because some pre-launch operations depend on testing "
18565 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
18566 "don't retest features, and so you might see inconsistent results.  Using the "
18567 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
18568 "the qemu binary at the same time as the handle is created."
18569 msgstr ""
18570
18571 # type: =head2
18572 #. type: =head2
18573 #: ../src/guestfs-actions.pod:6288
18574 msgid "guestfs_set_recovery_proc"
18575 msgstr ""
18576
18577 # type: verbatim
18578 #. type: verbatim
18579 #: ../src/guestfs-actions.pod:6290
18580 #, no-wrap
18581 msgid ""
18582 " int\n"
18583 " guestfs_set_recovery_proc (guestfs_h *g,\n"
18584 "                            int recoveryproc);\n"
18585 "\n"
18586 msgstr ""
18587
18588 # type: textblock
18589 #. type: textblock
18590 #: ../src/guestfs-actions.pod:6294
18591 msgid ""
18592 "If this is called with the parameter C<false> then C<guestfs_launch> does "
18593 "not create a recovery process.  The purpose of the recovery process is to "
18594 "stop runaway qemu processes in the case where the main program aborts "
18595 "abruptly."
18596 msgstr ""
18597
18598 # type: textblock
18599 #. type: textblock
18600 #: ../src/guestfs-actions.pod:6299
18601 msgid ""
18602 "This only has any effect if called before C<guestfs_launch>, and the default "
18603 "is true."
18604 msgstr ""
18605
18606 # type: textblock
18607 #. type: textblock
18608 #: ../src/guestfs-actions.pod:6302 ../fish/guestfish-actions.pod:4195
18609 msgid ""
18610 "About the only time when you would want to disable this is if the main "
18611 "process will fork itself into the background (\"daemonize\" itself).  In "
18612 "this case the recovery process thinks that the main program has disappeared "
18613 "and so kills qemu, which is not very helpful."
18614 msgstr ""
18615
18616 # type: =head2
18617 #. type: =head2
18618 #: ../src/guestfs-actions.pod:6312
18619 msgid "guestfs_set_selinux"
18620 msgstr ""
18621
18622 # type: verbatim
18623 #. type: verbatim
18624 #: ../src/guestfs-actions.pod:6314
18625 #, no-wrap
18626 msgid ""
18627 " int\n"
18628 " guestfs_set_selinux (guestfs_h *g,\n"
18629 "                      int selinux);\n"
18630 "\n"
18631 msgstr ""
18632
18633 # type: textblock
18634 #. type: textblock
18635 #: ../src/guestfs-actions.pod:6318 ../fish/guestfish-actions.pod:4207
18636 msgid ""
18637 "This sets the selinux flag that is passed to the appliance at boot time.  "
18638 "The default is C<selinux=0> (disabled)."
18639 msgstr ""
18640
18641 # type: textblock
18642 #. type: textblock
18643 #: ../src/guestfs-actions.pod:6321 ../fish/guestfish-actions.pod:4210
18644 msgid ""
18645 "Note that if SELinux is enabled, it is always in Permissive mode "
18646 "(C<enforcing=0>)."
18647 msgstr ""
18648
18649 # type: =head2
18650 #. type: =head2
18651 #: ../src/guestfs-actions.pod:6331
18652 msgid "guestfs_set_trace"
18653 msgstr ""
18654
18655 # type: verbatim
18656 #. type: verbatim
18657 #: ../src/guestfs-actions.pod:6333
18658 #, no-wrap
18659 msgid ""
18660 " int\n"
18661 " guestfs_set_trace (guestfs_h *g,\n"
18662 "                    int trace);\n"
18663 "\n"
18664 msgstr ""
18665
18666 #. type: textblock
18667 #: ../src/guestfs-actions.pod:6337 ../fish/guestfish-actions.pod:4222
18668 msgid ""
18669 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
18670 "return values are traced."
18671 msgstr ""
18672
18673 # type: textblock
18674 #. type: textblock
18675 #: ../src/guestfs-actions.pod:6340 ../fish/guestfish-actions.pod:4225
18676 msgid ""
18677 "If you want to trace C API calls into libguestfs (and other libraries) then "
18678 "possibly a better way is to use the external ltrace(1) command."
18679 msgstr ""
18680
18681 # type: textblock
18682 #. type: textblock
18683 #: ../src/guestfs-actions.pod:6344 ../fish/guestfish-actions.pod:4229
18684 msgid ""
18685 "Command traces are disabled unless the environment variable "
18686 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
18687 msgstr ""
18688
18689 #. type: textblock
18690 #: ../src/guestfs-actions.pod:6347
18691 msgid ""
18692 "Trace messages are normally sent to C<stderr>, unless you register a "
18693 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
18694 msgstr ""
18695
18696 # type: =head2
18697 #. type: =head2
18698 #: ../src/guestfs-actions.pod:6355
18699 msgid "guestfs_set_verbose"
18700 msgstr ""
18701
18702 # type: verbatim
18703 #. type: verbatim
18704 #: ../src/guestfs-actions.pod:6357
18705 #, no-wrap
18706 msgid ""
18707 " int\n"
18708 " guestfs_set_verbose (guestfs_h *g,\n"
18709 "                      int verbose);\n"
18710 "\n"
18711 msgstr ""
18712
18713 #. type: textblock
18714 #: ../src/guestfs-actions.pod:6361 ../fish/guestfish-actions.pod:4242
18715 msgid "If C<verbose> is true, this turns on verbose messages."
18716 msgstr ""
18717
18718 # type: textblock
18719 #. type: textblock
18720 #: ../src/guestfs-actions.pod:6363 ../fish/guestfish-actions.pod:4244
18721 msgid ""
18722 "Verbose messages are disabled unless the environment variable "
18723 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
18724 msgstr ""
18725
18726 #. type: textblock
18727 #: ../src/guestfs-actions.pod:6366
18728 msgid ""
18729 "Verbose messages are normally sent to C<stderr>, unless you register a "
18730 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
18731 msgstr ""
18732
18733 # type: =head2
18734 #. type: =head2
18735 #: ../src/guestfs-actions.pod:6374
18736 msgid "guestfs_setcon"
18737 msgstr ""
18738
18739 # type: verbatim
18740 #. type: verbatim
18741 #: ../src/guestfs-actions.pod:6376
18742 #, no-wrap
18743 msgid ""
18744 " int\n"
18745 " guestfs_setcon (guestfs_h *g,\n"
18746 "                 const char *context);\n"
18747 "\n"
18748 msgstr ""
18749
18750 # type: textblock
18751 #. type: textblock
18752 #: ../src/guestfs-actions.pod:6380 ../fish/guestfish-actions.pod:4255
18753 msgid ""
18754 "This sets the SELinux security context of the daemon to the string "
18755 "C<context>."
18756 msgstr ""
18757
18758 # type: textblock
18759 #. type: textblock
18760 #: ../src/guestfs-actions.pod:6383 ../fish/guestfish-actions.pod:4258
18761 msgid "See the documentation about SELINUX in L<guestfs(3)>."
18762 msgstr ""
18763
18764 # type: =head2
18765 #. type: =head2
18766 #: ../src/guestfs-actions.pod:6389
18767 msgid "guestfs_setxattr"
18768 msgstr ""
18769
18770 # type: verbatim
18771 #. type: verbatim
18772 #: ../src/guestfs-actions.pod:6391
18773 #, no-wrap
18774 msgid ""
18775 " int\n"
18776 " guestfs_setxattr (guestfs_h *g,\n"
18777 "                   const char *xattr,\n"
18778 "                   const char *val,\n"
18779 "                   int vallen,\n"
18780 "                   const char *path);\n"
18781 "\n"
18782 msgstr ""
18783
18784 # type: textblock
18785 #. type: textblock
18786 #: ../src/guestfs-actions.pod:6398 ../fish/guestfish-actions.pod:4264
18787 msgid ""
18788 "This call sets the extended attribute named C<xattr> of the file C<path> to "
18789 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
18790 msgstr ""
18791
18792 # type: textblock
18793 #. type: textblock
18794 #: ../src/guestfs-actions.pod:6402
18795 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
18796 msgstr ""
18797
18798 # type: =head2
18799 #. type: =head2
18800 #: ../src/guestfs-actions.pod:6408
18801 msgid "guestfs_sfdisk"
18802 msgstr ""
18803
18804 # type: verbatim
18805 #. type: verbatim
18806 #: ../src/guestfs-actions.pod:6410
18807 #, no-wrap
18808 msgid ""
18809 " int\n"
18810 " guestfs_sfdisk (guestfs_h *g,\n"
18811 "                 const char *device,\n"
18812 "                 int cyls,\n"
18813 "                 int heads,\n"
18814 "                 int sectors,\n"
18815 "                 char *const *lines);\n"
18816 "\n"
18817 msgstr ""
18818
18819 # type: textblock
18820 #. type: textblock
18821 #: ../src/guestfs-actions.pod:6418 ../fish/guestfish-actions.pod:4274
18822 msgid ""
18823 "This is a direct interface to the L<sfdisk(8)> program for creating "
18824 "partitions on block devices."
18825 msgstr ""
18826
18827 # type: textblock
18828 #. type: textblock
18829 #: ../src/guestfs-actions.pod:6421 ../fish/guestfish-actions.pod:4277
18830 msgid "C<device> should be a block device, for example C</dev/sda>."
18831 msgstr ""
18832
18833 # type: textblock
18834 #. type: textblock
18835 #: ../src/guestfs-actions.pod:6423 ../fish/guestfish-actions.pod:4279
18836 msgid ""
18837 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
18838 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
18839 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
18840 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
18841 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
18842 "the kernel) cannot work out the right geometry and you will need to tell it."
18843 msgstr ""
18844
18845 # type: textblock
18846 #. type: textblock
18847 #: ../src/guestfs-actions.pod:6431 ../fish/guestfish-actions.pod:4287
18848 msgid ""
18849 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
18850 "refer to the L<sfdisk(8)> manpage."
18851 msgstr ""
18852
18853 # type: textblock
18854 #. type: textblock
18855 #: ../src/guestfs-actions.pod:6434 ../fish/guestfish-actions.pod:4290
18856 msgid ""
18857 "To create a single partition occupying the whole disk, you would pass "
18858 "C<lines> as a single element list, when the single element being the string "
18859 "C<,> (comma)."
18860 msgstr ""
18861
18862 # type: textblock
18863 #. type: textblock
18864 #: ../src/guestfs-actions.pod:6438
18865 msgid ""
18866 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
18867 msgstr ""
18868
18869 #. type: textblock
18870 #: ../src/guestfs-actions.pod:6446 ../src/guestfs-actions.pod:6476
18871 #: ../src/guestfs-actions.pod:6509 ../fish/guestfish-actions.pod:4300
18872 #: ../fish/guestfish-actions.pod:4323 ../fish/guestfish-actions.pod:4345
18873 msgid ""
18874 "This function is deprecated.  In new code, use the C<part_add> call instead."
18875 msgstr ""
18876
18877 # type: =head2
18878 #. type: =head2
18879 #: ../src/guestfs-actions.pod:6455
18880 msgid "guestfs_sfdiskM"
18881 msgstr ""
18882
18883 # type: verbatim
18884 #. type: verbatim
18885 #: ../src/guestfs-actions.pod:6457
18886 #, no-wrap
18887 msgid ""
18888 " int\n"
18889 " guestfs_sfdiskM (guestfs_h *g,\n"
18890 "                  const char *device,\n"
18891 "                  char *const *lines);\n"
18892 "\n"
18893 msgstr ""
18894
18895 # type: textblock
18896 #. type: textblock
18897 #: ../src/guestfs-actions.pod:6462
18898 msgid ""
18899 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
18900 "partition sizes are specified in megabytes only (rounded to the nearest "
18901 "cylinder) and you don't need to specify the cyls, heads and sectors "
18902 "parameters which were rarely if ever used anyway."
18903 msgstr ""
18904
18905 # type: textblock
18906 #. type: textblock
18907 #: ../src/guestfs-actions.pod:6468
18908 msgid ""
18909 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
18910 "C<guestfs_part_disk>"
18911 msgstr ""
18912
18913 # type: =head2
18914 #. type: =head2
18915 #: ../src/guestfs-actions.pod:6485
18916 msgid "guestfs_sfdisk_N"
18917 msgstr ""
18918
18919 # type: verbatim
18920 #. type: verbatim
18921 #: ../src/guestfs-actions.pod:6487
18922 #, no-wrap
18923 msgid ""
18924 " int\n"
18925 " guestfs_sfdisk_N (guestfs_h *g,\n"
18926 "                   const char *device,\n"
18927 "                   int partnum,\n"
18928 "                   int cyls,\n"
18929 "                   int heads,\n"
18930 "                   int sectors,\n"
18931 "                   const char *line);\n"
18932 "\n"
18933 msgstr ""
18934
18935 # type: textblock
18936 #. type: textblock
18937 #: ../src/guestfs-actions.pod:6496 ../fish/guestfish-actions.pod:4334
18938 msgid ""
18939 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
18940 "(note: C<n> counts from 1)."
18941 msgstr ""
18942
18943 # type: textblock
18944 #. type: textblock
18945 #: ../src/guestfs-actions.pod:6499
18946 msgid ""
18947 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
18948 "for the cyls/heads/sectors parameters."
18949 msgstr ""
18950
18951 # type: textblock
18952 #. type: textblock
18953 #: ../src/guestfs-actions.pod:6502
18954 msgid "See also: C<guestfs_part_add>"
18955 msgstr ""
18956
18957 # type: =head2
18958 #. type: =head2
18959 #: ../src/guestfs-actions.pod:6518
18960 msgid "guestfs_sfdisk_disk_geometry"
18961 msgstr ""
18962
18963 # type: verbatim
18964 #. type: verbatim
18965 #: ../src/guestfs-actions.pod:6520
18966 #, no-wrap
18967 msgid ""
18968 " char *\n"
18969 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
18970 "                               const char *device);\n"
18971 "\n"
18972 msgstr ""
18973
18974 # type: textblock
18975 #. type: textblock
18976 #: ../src/guestfs-actions.pod:6524
18977 msgid ""
18978 "This displays the disk geometry of C<device> read from the partition table.  "
18979 "Especially in the case where the underlying block device has been resized, "
18980 "this can be different from the kernel's idea of the geometry (see "
18981 "C<guestfs_sfdisk_kernel_geometry>)."
18982 msgstr ""
18983
18984 # type: textblock
18985 #. type: textblock
18986 #: ../src/guestfs-actions.pod:6529 ../src/guestfs-actions.pod:6545
18987 #: ../fish/guestfish-actions.pod:4361 ../fish/guestfish-actions.pod:4370
18988 msgid "The result is in human-readable format, and not designed to be parsed."
18989 msgstr ""
18990
18991 # type: =head2
18992 #. type: =head2
18993 #: ../src/guestfs-actions.pod:6537
18994 msgid "guestfs_sfdisk_kernel_geometry"
18995 msgstr ""
18996
18997 # type: verbatim
18998 #. type: verbatim
18999 #: ../src/guestfs-actions.pod:6539
19000 #, no-wrap
19001 msgid ""
19002 " char *\n"
19003 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
19004 "                                 const char *device);\n"
19005 "\n"
19006 msgstr ""
19007
19008 # type: textblock
19009 #. type: textblock
19010 #: ../src/guestfs-actions.pod:6543 ../fish/guestfish-actions.pod:4368
19011 msgid "This displays the kernel's idea of the geometry of C<device>."
19012 msgstr ""
19013
19014 # type: =head2
19015 #. type: =head2
19016 #: ../src/guestfs-actions.pod:6553
19017 msgid "guestfs_sfdisk_l"
19018 msgstr ""
19019
19020 # type: verbatim
19021 #. type: verbatim
19022 #: ../src/guestfs-actions.pod:6555
19023 #, no-wrap
19024 msgid ""
19025 " char *\n"
19026 " guestfs_sfdisk_l (guestfs_h *g,\n"
19027 "                   const char *device);\n"
19028 "\n"
19029 msgstr ""
19030
19031 # type: textblock
19032 #. type: textblock
19033 #: ../src/guestfs-actions.pod:6559 ../fish/guestfish-actions.pod:4377
19034 msgid ""
19035 "This displays the partition table on C<device>, in the human-readable output "
19036 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
19037 msgstr ""
19038
19039 # type: textblock
19040 #. type: textblock
19041 #: ../src/guestfs-actions.pod:6563
19042 msgid "See also: C<guestfs_part_list>"
19043 msgstr ""
19044
19045 #. type: textblock
19046 #: ../src/guestfs-actions.pod:6568 ../fish/guestfish-actions.pod:4383
19047 msgid ""
19048 "This function is deprecated.  In new code, use the C<part_list> call instead."
19049 msgstr ""
19050
19051 # type: =head2
19052 #. type: =head2
19053 #: ../src/guestfs-actions.pod:6577
19054 msgid "guestfs_sh"
19055 msgstr ""
19056
19057 # type: verbatim
19058 #. type: verbatim
19059 #: ../src/guestfs-actions.pod:6579
19060 #, no-wrap
19061 msgid ""
19062 " char *\n"
19063 " guestfs_sh (guestfs_h *g,\n"
19064 "             const char *command);\n"
19065 "\n"
19066 msgstr ""
19067
19068 # type: textblock
19069 #. type: textblock
19070 #: ../src/guestfs-actions.pod:6583 ../fish/guestfish-actions.pod:4394
19071 msgid ""
19072 "This call runs a command from the guest filesystem via the guest's C</bin/"
19073 "sh>."
19074 msgstr ""
19075
19076 # type: textblock
19077 #. type: textblock
19078 #: ../src/guestfs-actions.pod:6586
19079 msgid "This is like C<guestfs_command>, but passes the command to:"
19080 msgstr ""
19081
19082 # type: verbatim
19083 #. type: verbatim
19084 #: ../src/guestfs-actions.pod:6588 ../fish/guestfish-actions.pod:4399
19085 #, no-wrap
19086 msgid ""
19087 " /bin/sh -c \"command\"\n"
19088 "\n"
19089 msgstr ""
19090
19091 # type: textblock
19092 #. type: textblock
19093 #: ../src/guestfs-actions.pod:6590 ../fish/guestfish-actions.pod:4401
19094 msgid ""
19095 "Depending on the guest's shell, this usually results in wildcards being "
19096 "expanded, shell expressions being interpolated and so on."
19097 msgstr ""
19098
19099 # type: textblock
19100 #. type: textblock
19101 #: ../src/guestfs-actions.pod:6594
19102 msgid "All the provisos about C<guestfs_command> apply to this call."
19103 msgstr ""
19104
19105 # type: =head2
19106 #. type: =head2
19107 #: ../src/guestfs-actions.pod:6601
19108 msgid "guestfs_sh_lines"
19109 msgstr ""
19110
19111 # type: verbatim
19112 #. type: verbatim
19113 #: ../src/guestfs-actions.pod:6603
19114 #, no-wrap
19115 msgid ""
19116 " char **\n"
19117 " guestfs_sh_lines (guestfs_h *g,\n"
19118 "                   const char *command);\n"
19119 "\n"
19120 msgstr ""
19121
19122 # type: textblock
19123 #. type: textblock
19124 #: ../src/guestfs-actions.pod:6607
19125 msgid ""
19126 "This is the same as C<guestfs_sh>, but splits the result into a list of "
19127 "lines."
19128 msgstr ""
19129
19130 # type: textblock
19131 #. type: textblock
19132 #: ../src/guestfs-actions.pod:6610
19133 msgid "See also: C<guestfs_command_lines>"
19134 msgstr ""
19135
19136 # type: =head2
19137 #. type: =head2
19138 #: ../src/guestfs-actions.pod:6618
19139 msgid "guestfs_sleep"
19140 msgstr ""
19141
19142 # type: verbatim
19143 #. type: verbatim
19144 #: ../src/guestfs-actions.pod:6620
19145 #, no-wrap
19146 msgid ""
19147 " int\n"
19148 " guestfs_sleep (guestfs_h *g,\n"
19149 "                int secs);\n"
19150 "\n"
19151 msgstr ""
19152
19153 # type: textblock
19154 #. type: textblock
19155 #: ../src/guestfs-actions.pod:6624 ../fish/guestfish-actions.pod:4420
19156 msgid "Sleep for C<secs> seconds."
19157 msgstr ""
19158
19159 # type: textblock
19160 #. type: textblock
19161 #: ../src/guestfs-actions.pod:6628
19162 msgid "(Added in 1.0.41)"
19163 msgstr ""
19164
19165 # type: =head2
19166 #. type: =head2
19167 #: ../src/guestfs-actions.pod:6630 ../src/guestfs-structs.pod:109
19168 msgid "guestfs_stat"
19169 msgstr ""
19170
19171 # type: verbatim
19172 #. type: verbatim
19173 #: ../src/guestfs-actions.pod:6632
19174 #, no-wrap
19175 msgid ""
19176 " struct guestfs_stat *\n"
19177 " guestfs_stat (guestfs_h *g,\n"
19178 "               const char *path);\n"
19179 "\n"
19180 msgstr ""
19181
19182 # type: textblock
19183 #. type: textblock
19184 #: ../src/guestfs-actions.pod:6638 ../fish/guestfish-actions.pod:4428
19185 msgid "This is the same as the C<stat(2)> system call."
19186 msgstr ""
19187
19188 # type: =head2
19189 #. type: =head2
19190 #: ../src/guestfs-actions.pod:6646 ../src/guestfs-structs.pod:135
19191 msgid "guestfs_statvfs"
19192 msgstr ""
19193
19194 # type: verbatim
19195 #. type: verbatim
19196 #: ../src/guestfs-actions.pod:6648
19197 #, no-wrap
19198 msgid ""
19199 " struct guestfs_statvfs *\n"
19200 " guestfs_statvfs (guestfs_h *g,\n"
19201 "                  const char *path);\n"
19202 "\n"
19203 msgstr ""
19204
19205 # type: textblock
19206 #. type: textblock
19207 #: ../src/guestfs-actions.pod:6652 ../fish/guestfish-actions.pod:4434
19208 msgid ""
19209 "Returns file system statistics for any mounted file system.  C<path> should "
19210 "be a file or directory in the mounted file system (typically it is the mount "
19211 "point itself, but it doesn't need to be)."
19212 msgstr ""
19213
19214 # type: textblock
19215 #. type: textblock
19216 #: ../src/guestfs-actions.pod:6656 ../fish/guestfish-actions.pod:4438
19217 msgid "This is the same as the C<statvfs(2)> system call."
19218 msgstr ""
19219
19220 # type: textblock
19221 #. type: textblock
19222 #: ../src/guestfs-actions.pod:6658
19223 msgid ""
19224 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
19225 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
19226 msgstr ""
19227
19228 # type: =head2
19229 #. type: =head2
19230 #: ../src/guestfs-actions.pod:6664
19231 msgid "guestfs_strings"
19232 msgstr ""
19233
19234 # type: verbatim
19235 #. type: verbatim
19236 #: ../src/guestfs-actions.pod:6666
19237 #, no-wrap
19238 msgid ""
19239 " char **\n"
19240 " guestfs_strings (guestfs_h *g,\n"
19241 "                  const char *path);\n"
19242 "\n"
19243 msgstr ""
19244
19245 # type: textblock
19246 #. type: textblock
19247 #: ../src/guestfs-actions.pod:6670 ../fish/guestfish-actions.pod:4444
19248 msgid ""
19249 "This runs the L<strings(1)> command on a file and returns the list of "
19250 "printable strings found."
19251 msgstr ""
19252
19253 # type: =head2
19254 #. type: =head2
19255 #: ../src/guestfs-actions.pod:6682
19256 msgid "guestfs_strings_e"
19257 msgstr ""
19258
19259 # type: verbatim
19260 #. type: verbatim
19261 #: ../src/guestfs-actions.pod:6684
19262 #, no-wrap
19263 msgid ""
19264 " char **\n"
19265 " guestfs_strings_e (guestfs_h *g,\n"
19266 "                    const char *encoding,\n"
19267 "                    const char *path);\n"
19268 "\n"
19269 msgstr ""
19270
19271 # type: textblock
19272 #. type: textblock
19273 #: ../src/guestfs-actions.pod:6689
19274 msgid ""
19275 "This is like the C<guestfs_strings> command, but allows you to specify the "
19276 "encoding of strings that are looked for in the source file C<path>."
19277 msgstr ""
19278
19279 # type: textblock
19280 #. type: textblock
19281 #: ../src/guestfs-actions.pod:6693 ../fish/guestfish-actions.pod:4458
19282 msgid "Allowed encodings are:"
19283 msgstr ""
19284
19285 # type: =item
19286 #. type: =item
19287 #: ../src/guestfs-actions.pod:6697 ../fish/guestfish-actions.pod:4462
19288 msgid "s"
19289 msgstr ""
19290
19291 # type: textblock
19292 #. type: textblock
19293 #: ../src/guestfs-actions.pod:6699
19294 msgid ""
19295 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
19296 "ISO-8859-X (this is what C<guestfs_strings> uses)."
19297 msgstr ""
19298
19299 # type: =item
19300 #. type: =item
19301 #: ../src/guestfs-actions.pod:6702 ../fish/guestfish-actions.pod:4467
19302 msgid "S"
19303 msgstr ""
19304
19305 # type: textblock
19306 #. type: textblock
19307 #: ../src/guestfs-actions.pod:6704 ../fish/guestfish-actions.pod:4469
19308 msgid "Single 8-bit-byte characters."
19309 msgstr ""
19310
19311 # type: =item
19312 #. type: =item
19313 #: ../src/guestfs-actions.pod:6706 ../fish/guestfish-actions.pod:4471
19314 msgid "b"
19315 msgstr ""
19316
19317 # type: textblock
19318 #. type: textblock
19319 #: ../src/guestfs-actions.pod:6708 ../fish/guestfish-actions.pod:4473
19320 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
19321 msgstr ""
19322
19323 # type: =item
19324 #. type: =item
19325 #: ../src/guestfs-actions.pod:6711 ../fish/guestfish-actions.pod:4476
19326 msgid "l (lower case letter L)"
19327 msgstr ""
19328
19329 # type: textblock
19330 #. type: textblock
19331 #: ../src/guestfs-actions.pod:6713 ../fish/guestfish-actions.pod:4478
19332 msgid ""
19333 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
19334 "examining binaries in Windows guests."
19335 msgstr ""
19336
19337 # type: =item
19338 #. type: =item
19339 #: ../src/guestfs-actions.pod:6716 ../fish/guestfish-actions.pod:4481
19340 msgid "B"
19341 msgstr ""
19342
19343 # type: textblock
19344 #. type: textblock
19345 #: ../src/guestfs-actions.pod:6718 ../fish/guestfish-actions.pod:4483
19346 msgid "32-bit big endian such as UCS-4BE."
19347 msgstr ""
19348
19349 # type: =item
19350 #. type: =item
19351 #: ../src/guestfs-actions.pod:6720 ../fish/guestfish-actions.pod:4485
19352 msgid "L"
19353 msgstr ""
19354
19355 # type: textblock
19356 #. type: textblock
19357 #: ../src/guestfs-actions.pod:6722 ../fish/guestfish-actions.pod:4487
19358 msgid "32-bit little endian such as UCS-4LE."
19359 msgstr ""
19360
19361 # type: textblock
19362 #. type: textblock
19363 #: ../src/guestfs-actions.pod:6726 ../fish/guestfish-actions.pod:4491
19364 msgid "The returned strings are transcoded to UTF-8."
19365 msgstr ""
19366
19367 # type: =head2
19368 #. type: =head2
19369 #: ../src/guestfs-actions.pod:6737
19370 msgid "guestfs_swapoff_device"
19371 msgstr ""
19372
19373 # type: verbatim
19374 #. type: verbatim
19375 #: ../src/guestfs-actions.pod:6739
19376 #, no-wrap
19377 msgid ""
19378 " int\n"
19379 " guestfs_swapoff_device (guestfs_h *g,\n"
19380 "                         const char *device);\n"
19381 "\n"
19382 msgstr ""
19383
19384 # type: textblock
19385 #. type: textblock
19386 #: ../src/guestfs-actions.pod:6743
19387 msgid ""
19388 "This command disables the libguestfs appliance swap device or partition "
19389 "named C<device>.  See C<guestfs_swapon_device>."
19390 msgstr ""
19391
19392 # type: =head2
19393 #. type: =head2
19394 #: ../src/guestfs-actions.pod:6751
19395 msgid "guestfs_swapoff_file"
19396 msgstr ""
19397
19398 # type: verbatim
19399 #. type: verbatim
19400 #: ../src/guestfs-actions.pod:6753
19401 #, no-wrap
19402 msgid ""
19403 " int\n"
19404 " guestfs_swapoff_file (guestfs_h *g,\n"
19405 "                       const char *file);\n"
19406 "\n"
19407 msgstr ""
19408
19409 # type: textblock
19410 #. type: textblock
19411 #: ../src/guestfs-actions.pod:6757 ../fish/guestfish-actions.pod:4508
19412 msgid "This command disables the libguestfs appliance swap on file."
19413 msgstr ""
19414
19415 # type: =head2
19416 #. type: =head2
19417 #: ../src/guestfs-actions.pod:6763
19418 msgid "guestfs_swapoff_label"
19419 msgstr ""
19420
19421 # type: verbatim
19422 #. type: verbatim
19423 #: ../src/guestfs-actions.pod:6765
19424 #, no-wrap
19425 msgid ""
19426 " int\n"
19427 " guestfs_swapoff_label (guestfs_h *g,\n"
19428 "                        const char *label);\n"
19429 "\n"
19430 msgstr ""
19431
19432 # type: textblock
19433 #. type: textblock
19434 #: ../src/guestfs-actions.pod:6769 ../fish/guestfish-actions.pod:4514
19435 msgid ""
19436 "This command disables the libguestfs appliance swap on labeled swap "
19437 "partition."
19438 msgstr ""
19439
19440 # type: =head2
19441 #. type: =head2
19442 #: ../src/guestfs-actions.pod:6776
19443 msgid "guestfs_swapoff_uuid"
19444 msgstr ""
19445
19446 # type: verbatim
19447 #. type: verbatim
19448 #: ../src/guestfs-actions.pod:6778
19449 #, no-wrap
19450 msgid ""
19451 " int\n"
19452 " guestfs_swapoff_uuid (guestfs_h *g,\n"
19453 "                       const char *uuid);\n"
19454 "\n"
19455 msgstr ""
19456
19457 # type: textblock
19458 #. type: textblock
19459 #: ../src/guestfs-actions.pod:6782 ../fish/guestfish-actions.pod:4521
19460 msgid ""
19461 "This command disables the libguestfs appliance swap partition with the given "
19462 "UUID."
19463 msgstr ""
19464
19465 # type: =head2
19466 #. type: =head2
19467 #: ../src/guestfs-actions.pod:6789
19468 msgid "guestfs_swapon_device"
19469 msgstr ""
19470
19471 # type: verbatim
19472 #. type: verbatim
19473 #: ../src/guestfs-actions.pod:6791
19474 #, no-wrap
19475 msgid ""
19476 " int\n"
19477 " guestfs_swapon_device (guestfs_h *g,\n"
19478 "                        const char *device);\n"
19479 "\n"
19480 msgstr ""
19481
19482 # type: textblock
19483 #. type: textblock
19484 #: ../src/guestfs-actions.pod:6795
19485 msgid ""
19486 "This command enables the libguestfs appliance to use the swap device or "
19487 "partition named C<device>.  The increased memory is made available for all "
19488 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
19489 msgstr ""
19490
19491 # type: textblock
19492 #. type: textblock
19493 #: ../src/guestfs-actions.pod:6800 ../fish/guestfish-actions.pod:4533
19494 msgid ""
19495 "Note that you should not swap to existing guest swap partitions unless you "
19496 "know what you are doing.  They may contain hibernation information, or other "
19497 "information that the guest doesn't want you to trash.  You also risk leaking "
19498 "information about the host to the guest this way.  Instead, attach a new "
19499 "host device to the guest and swap on that."
19500 msgstr ""
19501
19502 # type: =head2
19503 #. type: =head2
19504 #: ../src/guestfs-actions.pod:6811
19505 msgid "guestfs_swapon_file"
19506 msgstr ""
19507
19508 # type: verbatim
19509 #. type: verbatim
19510 #: ../src/guestfs-actions.pod:6813
19511 #, no-wrap
19512 msgid ""
19513 " int\n"
19514 " guestfs_swapon_file (guestfs_h *g,\n"
19515 "                      const char *file);\n"
19516 "\n"
19517 msgstr ""
19518
19519 # type: textblock
19520 #. type: textblock
19521 #: ../src/guestfs-actions.pod:6817
19522 msgid ""
19523 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
19524 "notes."
19525 msgstr ""
19526
19527 # type: =head2
19528 #. type: =head2
19529 #: ../src/guestfs-actions.pod:6824
19530 msgid "guestfs_swapon_label"
19531 msgstr ""
19532
19533 # type: verbatim
19534 #. type: verbatim
19535 #: ../src/guestfs-actions.pod:6826
19536 #, no-wrap
19537 msgid ""
19538 " int\n"
19539 " guestfs_swapon_label (guestfs_h *g,\n"
19540 "                       const char *label);\n"
19541 "\n"
19542 msgstr ""
19543
19544 # type: textblock
19545 #. type: textblock
19546 #: ../src/guestfs-actions.pod:6830
19547 msgid ""
19548 "This command enables swap to a labeled swap partition.  See "
19549 "C<guestfs_swapon_device> for other notes."
19550 msgstr ""
19551
19552 # type: =head2
19553 #. type: =head2
19554 #: ../src/guestfs-actions.pod:6837
19555 msgid "guestfs_swapon_uuid"
19556 msgstr ""
19557
19558 # type: verbatim
19559 #. type: verbatim
19560 #: ../src/guestfs-actions.pod:6839
19561 #, no-wrap
19562 msgid ""
19563 " int\n"
19564 " guestfs_swapon_uuid (guestfs_h *g,\n"
19565 "                      const char *uuid);\n"
19566 "\n"
19567 msgstr ""
19568
19569 # type: textblock
19570 #. type: textblock
19571 #: ../src/guestfs-actions.pod:6843
19572 msgid ""
19573 "This command enables swap to a swap partition with the given UUID.  See "
19574 "C<guestfs_swapon_device> for other notes."
19575 msgstr ""
19576
19577 # type: =head2
19578 #. type: =head2
19579 #: ../src/guestfs-actions.pod:6850
19580 msgid "guestfs_sync"
19581 msgstr ""
19582
19583 # type: verbatim
19584 #. type: verbatim
19585 #: ../src/guestfs-actions.pod:6852
19586 #, no-wrap
19587 msgid ""
19588 " int\n"
19589 " guestfs_sync (guestfs_h *g);\n"
19590 "\n"
19591 msgstr ""
19592
19593 # type: textblock
19594 #. type: textblock
19595 #: ../src/guestfs-actions.pod:6855 ../fish/guestfish-actions.pod:4565
19596 msgid ""
19597 "This syncs the disk, so that any writes are flushed through to the "
19598 "underlying disk image."
19599 msgstr ""
19600
19601 # type: textblock
19602 #. type: textblock
19603 #: ../src/guestfs-actions.pod:6858 ../fish/guestfish-actions.pod:4568
19604 msgid ""
19605 "You should always call this if you have modified a disk image, before "
19606 "closing the handle."
19607 msgstr ""
19608
19609 # type: =head2
19610 #. type: =head2
19611 #: ../src/guestfs-actions.pod:6865
19612 msgid "guestfs_tail"
19613 msgstr ""
19614
19615 # type: verbatim
19616 #. type: verbatim
19617 #: ../src/guestfs-actions.pod:6867
19618 #, no-wrap
19619 msgid ""
19620 " char **\n"
19621 " guestfs_tail (guestfs_h *g,\n"
19622 "               const char *path);\n"
19623 "\n"
19624 msgstr ""
19625
19626 # type: textblock
19627 #. type: textblock
19628 #: ../src/guestfs-actions.pod:6871 ../fish/guestfish-actions.pod:4575
19629 msgid ""
19630 "This command returns up to the last 10 lines of a file as a list of strings."
19631 msgstr ""
19632
19633 # type: =head2
19634 #. type: =head2
19635 #: ../src/guestfs-actions.pod:6883
19636 msgid "guestfs_tail_n"
19637 msgstr ""
19638
19639 # type: verbatim
19640 #. type: verbatim
19641 #: ../src/guestfs-actions.pod:6885
19642 #, no-wrap
19643 msgid ""
19644 " char **\n"
19645 " guestfs_tail_n (guestfs_h *g,\n"
19646 "                 int nrlines,\n"
19647 "                 const char *path);\n"
19648 "\n"
19649 msgstr ""
19650
19651 # type: textblock
19652 #. type: textblock
19653 #: ../src/guestfs-actions.pod:6890 ../fish/guestfish-actions.pod:4585
19654 msgid ""
19655 "If the parameter C<nrlines> is a positive number, this returns the last "
19656 "C<nrlines> lines of the file C<path>."
19657 msgstr ""
19658
19659 # type: textblock
19660 #. type: textblock
19661 #: ../src/guestfs-actions.pod:6893 ../fish/guestfish-actions.pod:4588
19662 msgid ""
19663 "If the parameter C<nrlines> is a negative number, this returns lines from "
19664 "the file C<path>, starting with the C<-nrlines>th line."
19665 msgstr ""
19666
19667 # type: =head2
19668 #. type: =head2
19669 #: ../src/guestfs-actions.pod:6907
19670 msgid "guestfs_tar_in"
19671 msgstr ""
19672
19673 # type: verbatim
19674 #. type: verbatim
19675 #: ../src/guestfs-actions.pod:6909
19676 #, no-wrap
19677 msgid ""
19678 " int\n"
19679 " guestfs_tar_in (guestfs_h *g,\n"
19680 "                 const char *tarfile,\n"
19681 "                 const char *directory);\n"
19682 "\n"
19683 msgstr ""
19684
19685 # type: textblock
19686 #. type: textblock
19687 #: ../src/guestfs-actions.pod:6914 ../fish/guestfish-actions.pod:4600
19688 msgid ""
19689 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
19690 "tar file) into C<directory>."
19691 msgstr ""
19692
19693 # type: textblock
19694 #. type: textblock
19695 #: ../src/guestfs-actions.pod:6917
19696 msgid ""
19697 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
19698 msgstr ""
19699
19700 # type: textblock
19701 #. type: textblock
19702 #: ../src/guestfs-actions.pod:6922 ../src/guestfs-actions.pod:6939
19703 #: ../src/guestfs-actions.pod:6955 ../src/guestfs-actions.pod:6971
19704 msgid "(Added in 1.0.3)"
19705 msgstr ""
19706
19707 # type: =head2
19708 #. type: =head2
19709 #: ../src/guestfs-actions.pod:6924
19710 msgid "guestfs_tar_out"
19711 msgstr ""
19712
19713 # type: verbatim
19714 #. type: verbatim
19715 #: ../src/guestfs-actions.pod:6926
19716 #, no-wrap
19717 msgid ""
19718 " int\n"
19719 " guestfs_tar_out (guestfs_h *g,\n"
19720 "                  const char *directory,\n"
19721 "                  const char *tarfile);\n"
19722 "\n"
19723 msgstr ""
19724
19725 # type: textblock
19726 #. type: textblock
19727 #: ../src/guestfs-actions.pod:6931 ../fish/guestfish-actions.pod:4612
19728 msgid ""
19729 "This command packs the contents of C<directory> and downloads it to local "
19730 "file C<tarfile>."
19731 msgstr ""
19732
19733 # type: textblock
19734 #. type: textblock
19735 #: ../src/guestfs-actions.pod:6934
19736 msgid ""
19737 "To download a compressed tarball, use C<guestfs_tgz_out> or "
19738 "C<guestfs_txz_out>."
19739 msgstr ""
19740
19741 # type: =head2
19742 #. type: =head2
19743 #: ../src/guestfs-actions.pod:6941
19744 msgid "guestfs_tgz_in"
19745 msgstr ""
19746
19747 # type: verbatim
19748 #. type: verbatim
19749 #: ../src/guestfs-actions.pod:6943
19750 #, no-wrap
19751 msgid ""
19752 " int\n"
19753 " guestfs_tgz_in (guestfs_h *g,\n"
19754 "                 const char *tarball,\n"
19755 "                 const char *directory);\n"
19756 "\n"
19757 msgstr ""
19758
19759 # type: textblock
19760 #. type: textblock
19761 #: ../src/guestfs-actions.pod:6948 ../fish/guestfish-actions.pod:4624
19762 msgid ""
19763 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
19764 "tar file) into C<directory>."
19765 msgstr ""
19766
19767 # type: textblock
19768 #. type: textblock
19769 #: ../src/guestfs-actions.pod:6951
19770 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
19771 msgstr ""
19772
19773 # type: =head2
19774 #. type: =head2
19775 #: ../src/guestfs-actions.pod:6957
19776 msgid "guestfs_tgz_out"
19777 msgstr ""
19778
19779 # type: verbatim
19780 #. type: verbatim
19781 #: ../src/guestfs-actions.pod:6959
19782 #, no-wrap
19783 msgid ""
19784 " int\n"
19785 " guestfs_tgz_out (guestfs_h *g,\n"
19786 "                  const char *directory,\n"
19787 "                  const char *tarball);\n"
19788 "\n"
19789 msgstr ""
19790
19791 # type: textblock
19792 #. type: textblock
19793 #: ../src/guestfs-actions.pod:6964 ../fish/guestfish-actions.pod:4635
19794 msgid ""
19795 "This command packs the contents of C<directory> and downloads it to local "
19796 "file C<tarball>."
19797 msgstr ""
19798
19799 # type: textblock
19800 #. type: textblock
19801 #: ../src/guestfs-actions.pod:6967
19802 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
19803 msgstr ""
19804
19805 # type: =head2
19806 #. type: =head2
19807 #: ../src/guestfs-actions.pod:6973
19808 msgid "guestfs_touch"
19809 msgstr ""
19810
19811 # type: verbatim
19812 #. type: verbatim
19813 #: ../src/guestfs-actions.pod:6975
19814 #, no-wrap
19815 msgid ""
19816 " int\n"
19817 " guestfs_touch (guestfs_h *g,\n"
19818 "                const char *path);\n"
19819 "\n"
19820 msgstr ""
19821
19822 # type: textblock
19823 #. type: textblock
19824 #: ../src/guestfs-actions.pod:6979 ../fish/guestfish-actions.pod:4646
19825 msgid ""
19826 "Touch acts like the L<touch(1)> command.  It can be used to update the "
19827 "timestamps on a file, or, if the file does not exist, to create a new zero-"
19828 "length file."
19829 msgstr ""
19830
19831 # type: textblock
19832 #. type: textblock
19833 #: ../src/guestfs-actions.pod:6983 ../fish/guestfish-actions.pod:4650
19834 msgid ""
19835 "This command only works on regular files, and will fail on other file types "
19836 "such as directories, symbolic links, block special etc."
19837 msgstr ""
19838
19839 # type: =head2
19840 #. type: =head2
19841 #: ../src/guestfs-actions.pod:6990
19842 msgid "guestfs_truncate"
19843 msgstr ""
19844
19845 # type: verbatim
19846 #. type: verbatim
19847 #: ../src/guestfs-actions.pod:6992
19848 #, no-wrap
19849 msgid ""
19850 " int\n"
19851 " guestfs_truncate (guestfs_h *g,\n"
19852 "                   const char *path);\n"
19853 "\n"
19854 msgstr ""
19855
19856 # type: textblock
19857 #. type: textblock
19858 #: ../src/guestfs-actions.pod:6996 ../fish/guestfish-actions.pod:4657
19859 msgid ""
19860 "This command truncates C<path> to a zero-length file.  The file must exist "
19861 "already."
19862 msgstr ""
19863
19864 # type: =head2
19865 #. type: =head2
19866 #: ../src/guestfs-actions.pod:7003
19867 msgid "guestfs_truncate_size"
19868 msgstr ""
19869
19870 # type: verbatim
19871 #. type: verbatim
19872 #: ../src/guestfs-actions.pod:7005
19873 #, no-wrap
19874 msgid ""
19875 " int\n"
19876 " guestfs_truncate_size (guestfs_h *g,\n"
19877 "                        const char *path,\n"
19878 "                        int64_t size);\n"
19879 "\n"
19880 msgstr ""
19881
19882 # type: textblock
19883 #. type: textblock
19884 #: ../src/guestfs-actions.pod:7010 ../fish/guestfish-actions.pod:4664
19885 msgid ""
19886 "This command truncates C<path> to size C<size> bytes.  The file must exist "
19887 "already."
19888 msgstr ""
19889
19890 # type: textblock
19891 #. type: textblock
19892 #: ../src/guestfs-actions.pod:7013
19893 msgid ""
19894 "If the current file size is less than C<size> then the file is extended to "
19895 "the required size with zero bytes.  This creates a sparse file (ie. disk "
19896 "blocks are not allocated for the file until you write to it).  To create a "
19897 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
19898 msgstr ""
19899
19900 # type: =head2
19901 #. type: =head2
19902 #: ../src/guestfs-actions.pod:7023
19903 msgid "guestfs_tune2fs_l"
19904 msgstr ""
19905
19906 # type: verbatim
19907 #. type: verbatim
19908 #: ../src/guestfs-actions.pod:7025
19909 #, no-wrap
19910 msgid ""
19911 " char **\n"
19912 " guestfs_tune2fs_l (guestfs_h *g,\n"
19913 "                    const char *device);\n"
19914 "\n"
19915 msgstr ""
19916
19917 # type: textblock
19918 #. type: textblock
19919 #: ../src/guestfs-actions.pod:7029 ../fish/guestfish-actions.pod:4677
19920 msgid ""
19921 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
19922 "C<device>."
19923 msgstr ""
19924
19925 # type: textblock
19926 #. type: textblock
19927 #: ../src/guestfs-actions.pod:7032 ../fish/guestfish-actions.pod:4680
19928 msgid ""
19929 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
19930 "for more details.  The list of fields returned isn't clearly defined, and "
19931 "depends on both the version of C<tune2fs> that libguestfs was built against, "
19932 "and the filesystem itself."
19933 msgstr ""
19934
19935 # type: =head2
19936 #. type: =head2
19937 #: ../src/guestfs-actions.pod:7045
19938 msgid "guestfs_txz_in"
19939 msgstr ""
19940
19941 # type: verbatim
19942 #. type: verbatim
19943 #: ../src/guestfs-actions.pod:7047
19944 #, no-wrap
19945 msgid ""
19946 " int\n"
19947 " guestfs_txz_in (guestfs_h *g,\n"
19948 "                 const char *tarball,\n"
19949 "                 const char *directory);\n"
19950 "\n"
19951 msgstr ""
19952
19953 # type: textblock
19954 #. type: textblock
19955 #: ../src/guestfs-actions.pod:7052 ../fish/guestfish-actions.pod:4689
19956 msgid ""
19957 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
19958 "tar file) into C<directory>."
19959 msgstr ""
19960
19961 # type: =head2
19962 #. type: =head2
19963 #: ../src/guestfs-actions.pod:7059
19964 msgid "guestfs_txz_out"
19965 msgstr ""
19966
19967 # type: verbatim
19968 #. type: verbatim
19969 #: ../src/guestfs-actions.pod:7061
19970 #, no-wrap
19971 msgid ""
19972 " int\n"
19973 " guestfs_txz_out (guestfs_h *g,\n"
19974 "                  const char *directory,\n"
19975 "                  const char *tarball);\n"
19976 "\n"
19977 msgstr ""
19978
19979 # type: textblock
19980 #. type: textblock
19981 #: ../src/guestfs-actions.pod:7066 ../fish/guestfish-actions.pod:4698
19982 msgid ""
19983 "This command packs the contents of C<directory> and downloads it to local "
19984 "file C<tarball> (as an xz compressed tar archive)."
19985 msgstr ""
19986
19987 # type: =head2
19988 #. type: =head2
19989 #: ../src/guestfs-actions.pod:7073
19990 msgid "guestfs_umask"
19991 msgstr ""
19992
19993 # type: verbatim
19994 #. type: verbatim
19995 #: ../src/guestfs-actions.pod:7075
19996 #, no-wrap
19997 msgid ""
19998 " int\n"
19999 " guestfs_umask (guestfs_h *g,\n"
20000 "                int mask);\n"
20001 "\n"
20002 msgstr ""
20003
20004 # type: textblock
20005 #. type: textblock
20006 #: ../src/guestfs-actions.pod:7079 ../fish/guestfish-actions.pod:4707
20007 msgid ""
20008 "This function sets the mask used for creating new files and device nodes to "
20009 "C<mask & 0777>."
20010 msgstr ""
20011
20012 # type: textblock
20013 #. type: textblock
20014 #: ../src/guestfs-actions.pod:7082 ../fish/guestfish-actions.pod:4710
20015 msgid ""
20016 "Typical umask values would be C<022> which creates new files with "
20017 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
20018 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
20019 msgstr ""
20020
20021 # type: textblock
20022 #. type: textblock
20023 #: ../src/guestfs-actions.pod:7087 ../fish/guestfish-actions.pod:4715
20024 msgid ""
20025 "The default umask is C<022>.  This is important because it means that "
20026 "directories and device nodes will be created with C<0644> or C<0755> mode "
20027 "even if you specify C<0777>."
20028 msgstr ""
20029
20030 # type: textblock
20031 #. type: textblock
20032 #: ../src/guestfs-actions.pod:7091
20033 msgid ""
20034 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
20035 "C<guestfs_mkdir>."
20036 msgstr ""
20037
20038 # type: textblock
20039 #. type: textblock
20040 #: ../src/guestfs-actions.pod:7094 ../fish/guestfish-actions.pod:4722
20041 msgid "This call returns the previous umask."
20042 msgstr ""
20043
20044 # type: =head2
20045 #. type: =head2
20046 #: ../src/guestfs-actions.pod:7100
20047 msgid "guestfs_umount"
20048 msgstr ""
20049
20050 # type: verbatim
20051 #. type: verbatim
20052 #: ../src/guestfs-actions.pod:7102
20053 #, no-wrap
20054 msgid ""
20055 " int\n"
20056 " guestfs_umount (guestfs_h *g,\n"
20057 "                 const char *pathordevice);\n"
20058 "\n"
20059 msgstr ""
20060
20061 # type: textblock
20062 #. type: textblock
20063 #: ../src/guestfs-actions.pod:7106 ../fish/guestfish-actions.pod:4730
20064 msgid ""
20065 "This unmounts the given filesystem.  The filesystem may be specified either "
20066 "by its mountpoint (path) or the device which contains the filesystem."
20067 msgstr ""
20068
20069 # type: =head2
20070 #. type: =head2
20071 #: ../src/guestfs-actions.pod:7114
20072 msgid "guestfs_umount_all"
20073 msgstr ""
20074
20075 # type: verbatim
20076 #. type: verbatim
20077 #: ../src/guestfs-actions.pod:7116
20078 #, no-wrap
20079 msgid ""
20080 " int\n"
20081 " guestfs_umount_all (guestfs_h *g);\n"
20082 "\n"
20083 msgstr ""
20084
20085 # type: textblock
20086 #. type: textblock
20087 #: ../src/guestfs-actions.pod:7119 ../fish/guestfish-actions.pod:4740
20088 msgid "This unmounts all mounted filesystems."
20089 msgstr ""
20090
20091 # type: textblock
20092 #. type: textblock
20093 #: ../src/guestfs-actions.pod:7121 ../fish/guestfish-actions.pod:4742
20094 msgid "Some internal mounts are not unmounted by this call."
20095 msgstr ""
20096
20097 # type: =head2
20098 #. type: =head2
20099 #: ../src/guestfs-actions.pod:7127
20100 msgid "guestfs_upload"
20101 msgstr ""
20102
20103 # type: verbatim
20104 #. type: verbatim
20105 #: ../src/guestfs-actions.pod:7129
20106 #, no-wrap
20107 msgid ""
20108 " int\n"
20109 " guestfs_upload (guestfs_h *g,\n"
20110 "                 const char *filename,\n"
20111 "                 const char *remotefilename);\n"
20112 "\n"
20113 msgstr ""
20114
20115 # type: textblock
20116 #. type: textblock
20117 #: ../src/guestfs-actions.pod:7134 ../src/guestfs-actions.pod:7158
20118 #: ../fish/guestfish-actions.pod:4748 ../fish/guestfish-actions.pod:4761
20119 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
20120 msgstr ""
20121
20122 # type: textblock
20123 #. type: textblock
20124 #: ../src/guestfs-actions.pod:7139
20125 msgid "See also C<guestfs_download>."
20126 msgstr ""
20127
20128 # type: =head2
20129 #. type: =head2
20130 #: ../src/guestfs-actions.pod:7150
20131 msgid "guestfs_upload_offset"
20132 msgstr ""
20133
20134 # type: verbatim
20135 #. type: verbatim
20136 #: ../src/guestfs-actions.pod:7152
20137 #, no-wrap
20138 msgid ""
20139 " int\n"
20140 " guestfs_upload_offset (guestfs_h *g,\n"
20141 "                        const char *filename,\n"
20142 "                        const char *remotefilename,\n"
20143 "                        int64_t offset);\n"
20144 "\n"
20145 msgstr ""
20146
20147 # type: textblock
20148 #. type: textblock
20149 #: ../src/guestfs-actions.pod:7161 ../fish/guestfish-actions.pod:4764
20150 msgid ""
20151 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
20152 "The intention is to overwrite parts of existing files or devices, although "
20153 "if a non-existant file is specified then it is created with a \"hole\" "
20154 "before C<offset>.  The size of the data written is implicit in the size of "
20155 "the source C<filename>."
20156 msgstr ""
20157
20158 # type: textblock
20159 #. type: textblock
20160 #: ../src/guestfs-actions.pod:7168
20161 msgid ""
20162 "Note that there is no limit on the amount of data that can be uploaded with "
20163 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
20164 "full amount unless an error occurs."
20165 msgstr ""
20166
20167 # type: textblock
20168 #. type: textblock
20169 #: ../src/guestfs-actions.pod:7173
20170 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
20171 msgstr ""
20172
20173 # type: =head2
20174 #. type: =head2
20175 #: ../src/guestfs-actions.pod:7184
20176 msgid "guestfs_utimens"
20177 msgstr ""
20178
20179 # type: verbatim
20180 #. type: verbatim
20181 #: ../src/guestfs-actions.pod:7186
20182 #, no-wrap
20183 msgid ""
20184 " int\n"
20185 " guestfs_utimens (guestfs_h *g,\n"
20186 "                  const char *path,\n"
20187 "                  int64_t atsecs,\n"
20188 "                  int64_t atnsecs,\n"
20189 "                  int64_t mtsecs,\n"
20190 "                  int64_t mtnsecs);\n"
20191 "\n"
20192 msgstr ""
20193
20194 # type: textblock
20195 #. type: textblock
20196 #: ../src/guestfs-actions.pod:7194 ../fish/guestfish-actions.pod:4784
20197 msgid "This command sets the timestamps of a file with nanosecond precision."
20198 msgstr ""
20199
20200 # type: textblock
20201 #. type: textblock
20202 #: ../src/guestfs-actions.pod:7197 ../fish/guestfish-actions.pod:4787
20203 msgid ""
20204 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
20205 "from the epoch."
20206 msgstr ""
20207
20208 # type: textblock
20209 #. type: textblock
20210 #: ../src/guestfs-actions.pod:7200 ../fish/guestfish-actions.pod:4790
20211 msgid ""
20212 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
20213 "nanoseconds from the epoch."
20214 msgstr ""
20215
20216 # type: textblock
20217 #. type: textblock
20218 #: ../src/guestfs-actions.pod:7203 ../fish/guestfish-actions.pod:4793
20219 msgid ""
20220 "If the C<*nsecs> field contains the special value C<-1> then the "
20221 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
20222 "ignored in this case)."
20223 msgstr ""
20224
20225 # type: textblock
20226 #. type: textblock
20227 #: ../src/guestfs-actions.pod:7207 ../fish/guestfish-actions.pod:4797
20228 msgid ""
20229 "If the C<*nsecs> field contains the special value C<-2> then the "
20230 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
20231 "in this case)."
20232 msgstr ""
20233
20234 # type: =head2
20235 #. type: =head2
20236 #: ../src/guestfs-actions.pod:7215 ../src/guestfs-structs.pod:175
20237 msgid "guestfs_version"
20238 msgstr ""
20239
20240 # type: verbatim
20241 #. type: verbatim
20242 #: ../src/guestfs-actions.pod:7217
20243 #, no-wrap
20244 msgid ""
20245 " struct guestfs_version *\n"
20246 " guestfs_version (guestfs_h *g);\n"
20247 "\n"
20248 msgstr ""
20249
20250 # type: textblock
20251 #. type: textblock
20252 #: ../src/guestfs-actions.pod:7220 ../fish/guestfish-actions.pod:4805
20253 msgid ""
20254 "Return the libguestfs version number that the program is linked against."
20255 msgstr ""
20256
20257 # type: textblock
20258 #. type: textblock
20259 #: ../src/guestfs-actions.pod:7223 ../fish/guestfish-actions.pod:4808
20260 msgid ""
20261 "Note that because of dynamic linking this is not necessarily the version of "
20262 "libguestfs that you compiled against.  You can compile the program, and then "
20263 "at runtime dynamically link against a completely different C<libguestfs.so> "
20264 "library."
20265 msgstr ""
20266
20267 # type: textblock
20268 #. type: textblock
20269 #: ../src/guestfs-actions.pod:7228 ../fish/guestfish-actions.pod:4813
20270 msgid ""
20271 "This call was added in version C<1.0.58>.  In previous versions of "
20272 "libguestfs there was no way to get the version number.  From C code you can "
20273 "use dynamic linker functions to find out if this symbol exists (if it "
20274 "doesn't, then it's an earlier version)."
20275 msgstr ""
20276
20277 # type: textblock
20278 #. type: textblock
20279 #: ../src/guestfs-actions.pod:7234 ../fish/guestfish-actions.pod:4819
20280 msgid ""
20281 "The call returns a structure with four elements.  The first three (C<major>, "
20282 "C<minor> and C<release>) are numbers and correspond to the usual version "
20283 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
20284 "but may be used for distro-specific information."
20285 msgstr ""
20286
20287 # type: textblock
20288 #. type: textblock
20289 #: ../src/guestfs-actions.pod:7240 ../fish/guestfish-actions.pod:4825
20290 msgid ""
20291 "To construct the original version string: C<$major.$minor.$release$extra>"
20292 msgstr ""
20293
20294 # type: textblock
20295 #. type: textblock
20296 #: ../src/guestfs-actions.pod:7243 ../fish/guestfish-actions.pod:4828
20297 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
20298 msgstr ""
20299
20300 # type: textblock
20301 #. type: textblock
20302 #: ../src/guestfs-actions.pod:7245
20303 msgid ""
20304 "I<Note:> Don't use this call to test for availability of features.  In "
20305 "enterprise distributions we backport features from later versions into "
20306 "earlier versions, making this an unreliable way to test for features.  Use "
20307 "C<guestfs_available> instead."
20308 msgstr ""
20309
20310 # type: textblock
20311 #. type: textblock
20312 #: ../src/guestfs-actions.pod:7251
20313 msgid ""
20314 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
20315 "error.  I<The caller must call C<guestfs_free_version> after use>."
20316 msgstr ""
20317
20318 # type: textblock
20319 #. type: textblock
20320 #: ../src/guestfs-actions.pod:7255
20321 msgid "(Added in 1.0.58)"
20322 msgstr ""
20323
20324 # type: =head2
20325 #. type: =head2
20326 #: ../src/guestfs-actions.pod:7257
20327 msgid "guestfs_vfs_label"
20328 msgstr ""
20329
20330 # type: verbatim
20331 #. type: verbatim
20332 #: ../src/guestfs-actions.pod:7259
20333 #, no-wrap
20334 msgid ""
20335 " char *\n"
20336 " guestfs_vfs_label (guestfs_h *g,\n"
20337 "                    const char *device);\n"
20338 "\n"
20339 msgstr ""
20340
20341 # type: textblock
20342 #. type: textblock
20343 #: ../src/guestfs-actions.pod:7263 ../fish/guestfish-actions.pod:4840
20344 msgid "This returns the filesystem label of the filesystem on C<device>."
20345 msgstr ""
20346
20347 # type: textblock
20348 #. type: textblock
20349 #: ../src/guestfs-actions.pod:7266 ../fish/guestfish-actions.pod:4843
20350 msgid "If the filesystem is unlabeled, this returns the empty string."
20351 msgstr ""
20352
20353 # type: textblock
20354 #. type: textblock
20355 #: ../src/guestfs-actions.pod:7268
20356 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
20357 msgstr ""
20358
20359 # type: textblock
20360 #. type: textblock
20361 #: ../src/guestfs-actions.pod:7273 ../src/guestfs-actions.pod:7310
20362 msgid "(Added in 1.3.18)"
20363 msgstr ""
20364
20365 # type: =head2
20366 #. type: =head2
20367 #: ../src/guestfs-actions.pod:7275
20368 msgid "guestfs_vfs_type"
20369 msgstr ""
20370
20371 # type: verbatim
20372 #. type: verbatim
20373 #: ../src/guestfs-actions.pod:7277
20374 #, no-wrap
20375 msgid ""
20376 " char *\n"
20377 " guestfs_vfs_type (guestfs_h *g,\n"
20378 "                   const char *device);\n"
20379 "\n"
20380 msgstr ""
20381
20382 # type: textblock
20383 #. type: textblock
20384 #: ../src/guestfs-actions.pod:7281 ../fish/guestfish-actions.pod:4851
20385 msgid ""
20386 "This command gets the filesystem type corresponding to the filesystem on "
20387 "C<device>."
20388 msgstr ""
20389
20390 # type: textblock
20391 #. type: textblock
20392 #: ../src/guestfs-actions.pod:7284 ../fish/guestfish-actions.pod:4854
20393 msgid ""
20394 "For most filesystems, the result is the name of the Linux VFS module which "
20395 "would be used to mount this filesystem if you mounted it without specifying "
20396 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
20397 msgstr ""
20398
20399 # type: =head2
20400 #. type: =head2
20401 #: ../src/guestfs-actions.pod:7294
20402 msgid "guestfs_vfs_uuid"
20403 msgstr ""
20404
20405 # type: verbatim
20406 #. type: verbatim
20407 #: ../src/guestfs-actions.pod:7296
20408 #, no-wrap
20409 msgid ""
20410 " char *\n"
20411 " guestfs_vfs_uuid (guestfs_h *g,\n"
20412 "                   const char *device);\n"
20413 "\n"
20414 msgstr ""
20415
20416 # type: textblock
20417 #. type: textblock
20418 #: ../src/guestfs-actions.pod:7300 ../fish/guestfish-actions.pod:4863
20419 msgid "This returns the filesystem UUID of the filesystem on C<device>."
20420 msgstr ""
20421
20422 # type: textblock
20423 #. type: textblock
20424 #: ../src/guestfs-actions.pod:7303 ../fish/guestfish-actions.pod:4866
20425 msgid "If the filesystem does not have a UUID, this returns the empty string."
20426 msgstr ""
20427
20428 # type: textblock
20429 #. type: textblock
20430 #: ../src/guestfs-actions.pod:7305
20431 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
20432 msgstr ""
20433
20434 # type: =head2
20435 #. type: =head2
20436 #: ../src/guestfs-actions.pod:7312
20437 msgid "guestfs_vg_activate"
20438 msgstr ""
20439
20440 # type: verbatim
20441 #. type: verbatim
20442 #: ../src/guestfs-actions.pod:7314
20443 #, no-wrap
20444 msgid ""
20445 " int\n"
20446 " guestfs_vg_activate (guestfs_h *g,\n"
20447 "                      int activate,\n"
20448 "                      char *const *volgroups);\n"
20449 "\n"
20450 msgstr ""
20451
20452 #. type: textblock
20453 #: ../src/guestfs-actions.pod:7319 ../fish/guestfish-actions.pod:4874
20454 msgid ""
20455 "This command activates or (if C<activate> is false) deactivates all logical "
20456 "volumes in the listed volume groups C<volgroups>."
20457 msgstr ""
20458
20459 # type: textblock
20460 #. type: textblock
20461 #: ../src/guestfs-actions.pod:7322 ../fish/guestfish-actions.pod:4877
20462 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
20463 msgstr ""
20464
20465 # type: textblock
20466 #. type: textblock
20467 #: ../src/guestfs-actions.pod:7324 ../fish/guestfish-actions.pod:4879
20468 msgid ""
20469 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
20470 "activated or deactivated."
20471 msgstr ""
20472
20473 # type: =head2
20474 #. type: =head2
20475 #: ../src/guestfs-actions.pod:7331
20476 msgid "guestfs_vg_activate_all"
20477 msgstr ""
20478
20479 # type: verbatim
20480 #. type: verbatim
20481 #: ../src/guestfs-actions.pod:7333
20482 #, no-wrap
20483 msgid ""
20484 " int\n"
20485 " guestfs_vg_activate_all (guestfs_h *g,\n"
20486 "                          int activate);\n"
20487 "\n"
20488 msgstr ""
20489
20490 #. type: textblock
20491 #: ../src/guestfs-actions.pod:7337 ../fish/guestfish-actions.pod:4886
20492 msgid ""
20493 "This command activates or (if C<activate> is false) deactivates all logical "
20494 "volumes in all volume groups."
20495 msgstr ""
20496
20497 # type: textblock
20498 #. type: textblock
20499 #: ../src/guestfs-actions.pod:7340 ../fish/guestfish-actions.pod:4889
20500 msgid "This command is the same as running C<vgchange -a y|n>"
20501 msgstr ""
20502
20503 # type: =head2
20504 #. type: =head2
20505 #: ../src/guestfs-actions.pod:7346
20506 msgid "guestfs_vgcreate"
20507 msgstr ""
20508
20509 # type: verbatim
20510 #. type: verbatim
20511 #: ../src/guestfs-actions.pod:7348
20512 #, no-wrap
20513 msgid ""
20514 " int\n"
20515 " guestfs_vgcreate (guestfs_h *g,\n"
20516 "                   const char *volgroup,\n"
20517 "                   char *const *physvols);\n"
20518 "\n"
20519 msgstr ""
20520
20521 # type: textblock
20522 #. type: textblock
20523 #: ../src/guestfs-actions.pod:7353 ../fish/guestfish-actions.pod:4895
20524 msgid ""
20525 "This creates an LVM volume group called C<volgroup> from the non-empty list "
20526 "of physical volumes C<physvols>."
20527 msgstr ""
20528
20529 # type: =head2
20530 #. type: =head2
20531 #: ../src/guestfs-actions.pod:7360
20532 msgid "guestfs_vglvuuids"
20533 msgstr ""
20534
20535 # type: verbatim
20536 #. type: verbatim
20537 #: ../src/guestfs-actions.pod:7362
20538 #, no-wrap
20539 msgid ""
20540 " char **\n"
20541 " guestfs_vglvuuids (guestfs_h *g,\n"
20542 "                    const char *vgname);\n"
20543 "\n"
20544 msgstr ""
20545
20546 # type: textblock
20547 #. type: textblock
20548 #: ../src/guestfs-actions.pod:7366 ../fish/guestfish-actions.pod:4902
20549 msgid ""
20550 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
20551 "volumes created in this volume group."
20552 msgstr ""
20553
20554 # type: textblock
20555 #. type: textblock
20556 #: ../src/guestfs-actions.pod:7369
20557 msgid ""
20558 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
20559 "associate logical volumes and volume groups."
20560 msgstr ""
20561
20562 # type: textblock
20563 #. type: textblock
20564 #: ../src/guestfs-actions.pod:7372
20565 msgid "See also C<guestfs_vgpvuuids>."
20566 msgstr ""
20567
20568 # type: =head2
20569 #. type: =head2
20570 #: ../src/guestfs-actions.pod:7380
20571 msgid "guestfs_vgpvuuids"
20572 msgstr ""
20573
20574 # type: verbatim
20575 #. type: verbatim
20576 #: ../src/guestfs-actions.pod:7382
20577 #, no-wrap
20578 msgid ""
20579 " char **\n"
20580 " guestfs_vgpvuuids (guestfs_h *g,\n"
20581 "                    const char *vgname);\n"
20582 "\n"
20583 msgstr ""
20584
20585 # type: textblock
20586 #. type: textblock
20587 #: ../src/guestfs-actions.pod:7386 ../fish/guestfish-actions.pod:4914
20588 msgid ""
20589 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
20590 "volumes that this volume group resides on."
20591 msgstr ""
20592
20593 # type: textblock
20594 #. type: textblock
20595 #: ../src/guestfs-actions.pod:7389
20596 msgid ""
20597 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
20598 "associate physical volumes and volume groups."
20599 msgstr ""
20600
20601 # type: textblock
20602 #. type: textblock
20603 #: ../src/guestfs-actions.pod:7392
20604 msgid "See also C<guestfs_vglvuuids>."
20605 msgstr ""
20606
20607 # type: =head2
20608 #. type: =head2
20609 #: ../src/guestfs-actions.pod:7400
20610 msgid "guestfs_vgremove"
20611 msgstr ""
20612
20613 # type: verbatim
20614 #. type: verbatim
20615 #: ../src/guestfs-actions.pod:7402
20616 #, no-wrap
20617 msgid ""
20618 " int\n"
20619 " guestfs_vgremove (guestfs_h *g,\n"
20620 "                   const char *vgname);\n"
20621 "\n"
20622 msgstr ""
20623
20624 # type: textblock
20625 #. type: textblock
20626 #: ../src/guestfs-actions.pod:7406 ../fish/guestfish-actions.pod:4926
20627 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
20628 msgstr ""
20629
20630 # type: textblock
20631 #. type: textblock
20632 #: ../src/guestfs-actions.pod:7408 ../fish/guestfish-actions.pod:4928
20633 msgid ""
20634 "This also forcibly removes all logical volumes in the volume group (if any)."
20635 msgstr ""
20636
20637 # type: =head2
20638 #. type: =head2
20639 #: ../src/guestfs-actions.pod:7415
20640 msgid "guestfs_vgrename"
20641 msgstr ""
20642
20643 # type: verbatim
20644 #. type: verbatim
20645 #: ../src/guestfs-actions.pod:7417
20646 #, no-wrap
20647 msgid ""
20648 " int\n"
20649 " guestfs_vgrename (guestfs_h *g,\n"
20650 "                   const char *volgroup,\n"
20651 "                   const char *newvolgroup);\n"
20652 "\n"
20653 msgstr ""
20654
20655 # type: textblock
20656 #. type: textblock
20657 #: ../src/guestfs-actions.pod:7422 ../fish/guestfish-actions.pod:4935
20658 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
20659 msgstr ""
20660
20661 # type: =head2
20662 #. type: =head2
20663 #: ../src/guestfs-actions.pod:7428
20664 msgid "guestfs_vgs"
20665 msgstr ""
20666
20667 # type: verbatim
20668 #. type: verbatim
20669 #: ../src/guestfs-actions.pod:7430
20670 #, no-wrap
20671 msgid ""
20672 " char **\n"
20673 " guestfs_vgs (guestfs_h *g);\n"
20674 "\n"
20675 msgstr ""
20676
20677 # type: textblock
20678 #. type: textblock
20679 #: ../src/guestfs-actions.pod:7433 ../fish/guestfish-actions.pod:4941
20680 msgid ""
20681 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
20682 "> command."
20683 msgstr ""
20684
20685 # type: textblock
20686 #. type: textblock
20687 #: ../src/guestfs-actions.pod:7436 ../fish/guestfish-actions.pod:4944
20688 msgid ""
20689 "This returns a list of just the volume group names that were detected (eg. "
20690 "C<VolGroup00>)."
20691 msgstr ""
20692
20693 # type: textblock
20694 #. type: textblock
20695 #: ../src/guestfs-actions.pod:7439
20696 msgid "See also C<guestfs_vgs_full>."
20697 msgstr ""
20698
20699 # type: =head2
20700 #. type: =head2
20701 #: ../src/guestfs-actions.pod:7447
20702 msgid "guestfs_vgs_full"
20703 msgstr ""
20704
20705 # type: verbatim
20706 #. type: verbatim
20707 #: ../src/guestfs-actions.pod:7449
20708 #, no-wrap
20709 msgid ""
20710 " struct guestfs_lvm_vg_list *\n"
20711 " guestfs_vgs_full (guestfs_h *g);\n"
20712 "\n"
20713 msgstr ""
20714
20715 # type: textblock
20716 #. type: textblock
20717 #: ../src/guestfs-actions.pod:7452 ../fish/guestfish-actions.pod:4953
20718 msgid ""
20719 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
20720 "> command.  The \"full\" version includes all fields."
20721 msgstr ""
20722
20723 # type: textblock
20724 #. type: textblock
20725 #: ../src/guestfs-actions.pod:7455
20726 msgid ""
20727 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
20728 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
20729 msgstr ""
20730
20731 # type: =head2
20732 #. type: =head2
20733 #: ../src/guestfs-actions.pod:7461
20734 msgid "guestfs_vgscan"
20735 msgstr ""
20736
20737 # type: verbatim
20738 #. type: verbatim
20739 #: ../src/guestfs-actions.pod:7463
20740 #, no-wrap
20741 msgid ""
20742 " int\n"
20743 " guestfs_vgscan (guestfs_h *g);\n"
20744 "\n"
20745 msgstr ""
20746
20747 # type: textblock
20748 #. type: textblock
20749 #: ../src/guestfs-actions.pod:7466 ../fish/guestfish-actions.pod:4960
20750 msgid ""
20751 "This rescans all block devices and rebuilds the list of LVM physical "
20752 "volumes, volume groups and logical volumes."
20753 msgstr ""
20754
20755 # type: =head2
20756 #. type: =head2
20757 #: ../src/guestfs-actions.pod:7473
20758 msgid "guestfs_vguuid"
20759 msgstr ""
20760
20761 # type: verbatim
20762 #. type: verbatim
20763 #: ../src/guestfs-actions.pod:7475
20764 #, no-wrap
20765 msgid ""
20766 " char *\n"
20767 " guestfs_vguuid (guestfs_h *g,\n"
20768 "                 const char *vgname);\n"
20769 "\n"
20770 msgstr ""
20771
20772 # type: textblock
20773 #. type: textblock
20774 #: ../src/guestfs-actions.pod:7479 ../fish/guestfish-actions.pod:4967
20775 msgid "This command returns the UUID of the LVM VG named C<vgname>."
20776 msgstr ""
20777
20778 # type: =head2
20779 #. type: =head2
20780 #: ../src/guestfs-actions.pod:7486
20781 msgid "guestfs_wait_ready"
20782 msgstr ""
20783
20784 # type: verbatim
20785 #. type: verbatim
20786 #: ../src/guestfs-actions.pod:7488
20787 #, no-wrap
20788 msgid ""
20789 " int\n"
20790 " guestfs_wait_ready (guestfs_h *g);\n"
20791 "\n"
20792 msgstr ""
20793
20794 # type: textblock
20795 #. type: textblock
20796 #: ../src/guestfs-actions.pod:7491
20797 msgid "This function is a no op."
20798 msgstr ""
20799
20800 # type: textblock
20801 #. type: textblock
20802 #: ../src/guestfs-actions.pod:7493
20803 msgid ""
20804 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
20805 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
20806 "is no longer necessary because C<guestfs_launch> now does the waiting."
20807 msgstr ""
20808
20809 # type: textblock
20810 #. type: textblock
20811 #: ../src/guestfs-actions.pod:7498
20812 msgid ""
20813 "If you see any calls to this function in code then you can just remove them, "
20814 "unless you want to retain compatibility with older versions of the API."
20815 msgstr ""
20816
20817 #. type: textblock
20818 #: ../src/guestfs-actions.pod:7504
20819 msgid ""
20820 "This function is deprecated.  In new code, use the C<launch> call instead."
20821 msgstr ""
20822
20823 # type: =head2
20824 #. type: =head2
20825 #: ../src/guestfs-actions.pod:7513
20826 msgid "guestfs_wc_c"
20827 msgstr ""
20828
20829 # type: verbatim
20830 #. type: verbatim
20831 #: ../src/guestfs-actions.pod:7515
20832 #, no-wrap
20833 msgid ""
20834 " int\n"
20835 " guestfs_wc_c (guestfs_h *g,\n"
20836 "               const char *path);\n"
20837 "\n"
20838 msgstr ""
20839
20840 # type: textblock
20841 #. type: textblock
20842 #: ../src/guestfs-actions.pod:7519 ../fish/guestfish-actions.pod:4973
20843 msgid ""
20844 "This command counts the characters in a file, using the C<wc -c> external "
20845 "command."
20846 msgstr ""
20847
20848 # type: =head2
20849 #. type: =head2
20850 #: ../src/guestfs-actions.pod:7526
20851 msgid "guestfs_wc_l"
20852 msgstr ""
20853
20854 # type: verbatim
20855 #. type: verbatim
20856 #: ../src/guestfs-actions.pod:7528
20857 #, no-wrap
20858 msgid ""
20859 " int\n"
20860 " guestfs_wc_l (guestfs_h *g,\n"
20861 "               const char *path);\n"
20862 "\n"
20863 msgstr ""
20864
20865 # type: textblock
20866 #. type: textblock
20867 #: ../src/guestfs-actions.pod:7532 ../fish/guestfish-actions.pod:4980
20868 msgid ""
20869 "This command counts the lines in a file, using the C<wc -l> external command."
20870 msgstr ""
20871
20872 # type: =head2
20873 #. type: =head2
20874 #: ../src/guestfs-actions.pod:7539
20875 msgid "guestfs_wc_w"
20876 msgstr ""
20877
20878 # type: verbatim
20879 #. type: verbatim
20880 #: ../src/guestfs-actions.pod:7541
20881 #, no-wrap
20882 msgid ""
20883 " int\n"
20884 " guestfs_wc_w (guestfs_h *g,\n"
20885 "               const char *path);\n"
20886 "\n"
20887 msgstr ""
20888
20889 # type: textblock
20890 #. type: textblock
20891 #: ../src/guestfs-actions.pod:7545 ../fish/guestfish-actions.pod:4987
20892 msgid ""
20893 "This command counts the words in a file, using the C<wc -w> external command."
20894 msgstr ""
20895
20896 # type: =head2
20897 #. type: =head2
20898 #: ../src/guestfs-actions.pod:7552
20899 msgid "guestfs_write"
20900 msgstr ""
20901
20902 # type: verbatim
20903 #. type: verbatim
20904 #: ../src/guestfs-actions.pod:7554
20905 #, no-wrap
20906 msgid ""
20907 " int\n"
20908 " guestfs_write (guestfs_h *g,\n"
20909 "                const char *path,\n"
20910 "                const char *content,\n"
20911 "                size_t content_size);\n"
20912 "\n"
20913 msgstr ""
20914
20915 # type: textblock
20916 #. type: textblock
20917 #: ../src/guestfs-actions.pod:7560 ../fish/guestfish-actions.pod:4994
20918 msgid ""
20919 "This call creates a file called C<path>.  The content of the file is the "
20920 "string C<content> (which can contain any 8 bit data)."
20921 msgstr ""
20922
20923 # type: =head2
20924 #. type: =head2
20925 #: ../src/guestfs-actions.pod:7570
20926 msgid "guestfs_write_file"
20927 msgstr ""
20928
20929 # type: verbatim
20930 #. type: verbatim
20931 #: ../src/guestfs-actions.pod:7572
20932 #, no-wrap
20933 msgid ""
20934 " int\n"
20935 " guestfs_write_file (guestfs_h *g,\n"
20936 "                     const char *path,\n"
20937 "                     const char *content,\n"
20938 "                     int size);\n"
20939 "\n"
20940 msgstr ""
20941
20942 # type: textblock
20943 #. type: textblock
20944 #: ../src/guestfs-actions.pod:7578 ../fish/guestfish-actions.pod:5004
20945 msgid ""
20946 "This call creates a file called C<path>.  The contents of the file is the "
20947 "string C<content> (which can contain any 8 bit data), with length C<size>."
20948 msgstr ""
20949
20950 # type: textblock
20951 #. type: textblock
20952 #: ../src/guestfs-actions.pod:7582 ../fish/guestfish-actions.pod:5008
20953 msgid ""
20954 "As a special case, if C<size> is C<0> then the length is calculated using "
20955 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
20956 msgstr ""
20957
20958 # type: textblock
20959 #. type: textblock
20960 #: ../src/guestfs-actions.pod:7586 ../fish/guestfish-actions.pod:5012
20961 msgid ""
20962 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
20963 "I<not> work, even if the length is specified."
20964 msgstr ""
20965
20966 # type: textblock
20967 #. type: textblock
20968 #: ../src/guestfs-actions.pod:7594 ../fish/guestfish-actions.pod:5018
20969 msgid ""
20970 "This function is deprecated.  In new code, use the C<write> call instead."
20971 msgstr ""
20972
20973 # type: =head2
20974 #. type: =head2
20975 #: ../src/guestfs-actions.pod:7603
20976 msgid "guestfs_zegrep"
20977 msgstr ""
20978
20979 # type: verbatim
20980 #. type: verbatim
20981 #: ../src/guestfs-actions.pod:7605
20982 #, no-wrap
20983 msgid ""
20984 " char **\n"
20985 " guestfs_zegrep (guestfs_h *g,\n"
20986 "                 const char *regex,\n"
20987 "                 const char *path);\n"
20988 "\n"
20989 msgstr ""
20990
20991 # type: textblock
20992 #. type: textblock
20993 #: ../src/guestfs-actions.pod:7610 ../fish/guestfish-actions.pod:5029
20994 msgid ""
20995 "This calls the external C<zegrep> program and returns the matching lines."
20996 msgstr ""
20997
20998 # type: =head2
20999 #. type: =head2
21000 #: ../src/guestfs-actions.pod:7622
21001 msgid "guestfs_zegrepi"
21002 msgstr ""
21003
21004 # type: verbatim
21005 #. type: verbatim
21006 #: ../src/guestfs-actions.pod:7624
21007 #, no-wrap
21008 msgid ""
21009 " char **\n"
21010 " guestfs_zegrepi (guestfs_h *g,\n"
21011 "                  const char *regex,\n"
21012 "                  const char *path);\n"
21013 "\n"
21014 msgstr ""
21015
21016 # type: textblock
21017 #. type: textblock
21018 #: ../src/guestfs-actions.pod:7629 ../fish/guestfish-actions.pod:5039
21019 msgid ""
21020 "This calls the external C<zegrep -i> program and returns the matching lines."
21021 msgstr ""
21022
21023 # type: =head2
21024 #. type: =head2
21025 #: ../src/guestfs-actions.pod:7641
21026 msgid "guestfs_zero"
21027 msgstr ""
21028
21029 # type: verbatim
21030 #. type: verbatim
21031 #: ../src/guestfs-actions.pod:7643
21032 #, no-wrap
21033 msgid ""
21034 " int\n"
21035 " guestfs_zero (guestfs_h *g,\n"
21036 "               const char *device);\n"
21037 "\n"
21038 msgstr ""
21039
21040 # type: textblock
21041 #. type: textblock
21042 #: ../src/guestfs-actions.pod:7647 ../fish/guestfish-actions.pod:5049
21043 msgid "This command writes zeroes over the first few blocks of C<device>."
21044 msgstr ""
21045
21046 # type: textblock
21047 #. type: textblock
21048 #: ../src/guestfs-actions.pod:7649 ../fish/guestfish-actions.pod:5051
21049 msgid ""
21050 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
21051 "securely wipe the device).  It should be sufficient to remove any partition "
21052 "tables, filesystem superblocks and so on."
21053 msgstr ""
21054
21055 #. type: textblock
21056 #: ../src/guestfs-actions.pod:7653
21057 msgid ""
21058 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
21059 "C<guestfs_is_zero_device>"
21060 msgstr ""
21061
21062 # type: =head2
21063 #. type: =head2
21064 #: ../src/guestfs-actions.pod:7665
21065 msgid "guestfs_zero_device"
21066 msgstr ""
21067
21068 # type: verbatim
21069 #. type: verbatim
21070 #: ../src/guestfs-actions.pod:7667
21071 #, no-wrap
21072 msgid ""
21073 " int\n"
21074 " guestfs_zero_device (guestfs_h *g,\n"
21075 "                      const char *device);\n"
21076 "\n"
21077 msgstr ""
21078
21079 # type: textblock
21080 #. type: textblock
21081 #: ../src/guestfs-actions.pod:7671
21082 msgid ""
21083 "This command writes zeroes over the entire C<device>.  Compare with "
21084 "C<guestfs_zero> which just zeroes the first few blocks of a device."
21085 msgstr ""
21086
21087 # type: textblock
21088 #. type: textblock
21089 #: ../src/guestfs-actions.pod:7685
21090 msgid "(Added in 1.3.1)"
21091 msgstr ""
21092
21093 # type: =head2
21094 #. type: =head2
21095 #: ../src/guestfs-actions.pod:7687
21096 msgid "guestfs_zerofree"
21097 msgstr ""
21098
21099 # type: verbatim
21100 #. type: verbatim
21101 #: ../src/guestfs-actions.pod:7689
21102 #, no-wrap
21103 msgid ""
21104 " int\n"
21105 " guestfs_zerofree (guestfs_h *g,\n"
21106 "                   const char *device);\n"
21107 "\n"
21108 msgstr ""
21109
21110 # type: textblock
21111 #. type: textblock
21112 #: ../src/guestfs-actions.pod:7693 ../fish/guestfish-actions.pod:5073
21113 msgid ""
21114 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
21115 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
21116 "possible to compress the filesystem more effectively."
21117 msgstr ""
21118
21119 # type: textblock
21120 #. type: textblock
21121 #: ../src/guestfs-actions.pod:7698 ../fish/guestfish-actions.pod:5078
21122 msgid "You should B<not> run this program if the filesystem is mounted."
21123 msgstr ""
21124
21125 # type: textblock
21126 #. type: textblock
21127 #: ../src/guestfs-actions.pod:7701 ../fish/guestfish-actions.pod:5081
21128 msgid ""
21129 "It is possible that using this program can damage the filesystem or data on "
21130 "the filesystem."
21131 msgstr ""
21132
21133 # type: =head2
21134 #. type: =head2
21135 #: ../src/guestfs-actions.pod:7708
21136 msgid "guestfs_zfgrep"
21137 msgstr ""
21138
21139 # type: verbatim
21140 #. type: verbatim
21141 #: ../src/guestfs-actions.pod:7710
21142 #, no-wrap
21143 msgid ""
21144 " char **\n"
21145 " guestfs_zfgrep (guestfs_h *g,\n"
21146 "                 const char *pattern,\n"
21147 "                 const char *path);\n"
21148 "\n"
21149 msgstr ""
21150
21151 # type: textblock
21152 #. type: textblock
21153 #: ../src/guestfs-actions.pod:7715 ../fish/guestfish-actions.pod:5088
21154 msgid ""
21155 "This calls the external C<zfgrep> program and returns the matching lines."
21156 msgstr ""
21157
21158 # type: =head2
21159 #. type: =head2
21160 #: ../src/guestfs-actions.pod:7727
21161 msgid "guestfs_zfgrepi"
21162 msgstr ""
21163
21164 # type: verbatim
21165 #. type: verbatim
21166 #: ../src/guestfs-actions.pod:7729
21167 #, no-wrap
21168 msgid ""
21169 " char **\n"
21170 " guestfs_zfgrepi (guestfs_h *g,\n"
21171 "                  const char *pattern,\n"
21172 "                  const char *path);\n"
21173 "\n"
21174 msgstr ""
21175
21176 # type: textblock
21177 #. type: textblock
21178 #: ../src/guestfs-actions.pod:7734 ../fish/guestfish-actions.pod:5098
21179 msgid ""
21180 "This calls the external C<zfgrep -i> program and returns the matching lines."
21181 msgstr ""
21182
21183 # type: =head2
21184 #. type: =head2
21185 #: ../src/guestfs-actions.pod:7746
21186 msgid "guestfs_zfile"
21187 msgstr ""
21188
21189 # type: verbatim
21190 #. type: verbatim
21191 #: ../src/guestfs-actions.pod:7748
21192 #, no-wrap
21193 msgid ""
21194 " char *\n"
21195 " guestfs_zfile (guestfs_h *g,\n"
21196 "                const char *meth,\n"
21197 "                const char *path);\n"
21198 "\n"
21199 msgstr ""
21200
21201 # type: textblock
21202 #. type: textblock
21203 #: ../src/guestfs-actions.pod:7753 ../fish/guestfish-actions.pod:5108
21204 msgid ""
21205 "This command runs C<file> after first decompressing C<path> using C<method>."
21206 msgstr ""
21207
21208 # type: textblock
21209 #. type: textblock
21210 #: ../src/guestfs-actions.pod:7756 ../fish/guestfish-actions.pod:5111
21211 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
21212 msgstr ""
21213
21214 # type: textblock
21215 #. type: textblock
21216 #: ../src/guestfs-actions.pod:7758
21217 msgid ""
21218 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
21219 "files."
21220 msgstr ""
21221
21222 # type: textblock
21223 #. type: textblock
21224 #: ../src/guestfs-actions.pod:7764 ../fish/guestfish-actions.pod:5116
21225 msgid ""
21226 "This function is deprecated.  In new code, use the C<file> call instead."
21227 msgstr ""
21228
21229 # type: =head2
21230 #. type: =head2
21231 #: ../src/guestfs-actions.pod:7773
21232 msgid "guestfs_zgrep"
21233 msgstr ""
21234
21235 # type: verbatim
21236 #. type: verbatim
21237 #: ../src/guestfs-actions.pod:7775
21238 #, no-wrap
21239 msgid ""
21240 " char **\n"
21241 " guestfs_zgrep (guestfs_h *g,\n"
21242 "                const char *regex,\n"
21243 "                const char *path);\n"
21244 "\n"
21245 msgstr ""
21246
21247 # type: textblock
21248 #. type: textblock
21249 #: ../src/guestfs-actions.pod:7780 ../fish/guestfish-actions.pod:5127
21250 msgid ""
21251 "This calls the external C<zgrep> program and returns the matching lines."
21252 msgstr ""
21253
21254 # type: =head2
21255 #. type: =head2
21256 #: ../src/guestfs-actions.pod:7792
21257 msgid "guestfs_zgrepi"
21258 msgstr ""
21259
21260 # type: verbatim
21261 #. type: verbatim
21262 #: ../src/guestfs-actions.pod:7794
21263 #, no-wrap
21264 msgid ""
21265 " char **\n"
21266 " guestfs_zgrepi (guestfs_h *g,\n"
21267 "                 const char *regex,\n"
21268 "                 const char *path);\n"
21269 "\n"
21270 msgstr ""
21271
21272 # type: textblock
21273 #. type: textblock
21274 #: ../src/guestfs-actions.pod:7799 ../fish/guestfish-actions.pod:5137
21275 msgid ""
21276 "This calls the external C<zgrep -i> program and returns the matching lines."
21277 msgstr ""
21278
21279 # type: =item
21280 #. type: =item
21281 #: ../src/guestfs-availability.pod:3
21282 msgid "B<augeas>"
21283 msgstr ""
21284
21285 # type: textblock
21286 #. type: textblock
21287 #: ../src/guestfs-availability.pod:5
21288 msgid ""
21289 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
21290 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
21291 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
21292 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
21293 "L</guestfs_aug_save> L</guestfs_aug_set>"
21294 msgstr ""
21295
21296 # type: =item
21297 #. type: =item
21298 #: ../src/guestfs-availability.pod:21
21299 msgid "B<inotify>"
21300 msgstr ""
21301
21302 # type: textblock
21303 #. type: textblock
21304 #: ../src/guestfs-availability.pod:23
21305 msgid ""
21306 "The following functions: L</guestfs_inotify_add_watch> L</"
21307 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
21308 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
21309 msgstr ""
21310
21311 # type: =item
21312 #. type: =item
21313 #: ../src/guestfs-availability.pod:31
21314 msgid "B<linuxfsuuid>"
21315 msgstr ""
21316
21317 # type: textblock
21318 #. type: textblock
21319 #: ../src/guestfs-availability.pod:33
21320 msgid ""
21321 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
21322 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
21323 msgstr ""
21324
21325 # type: =item
21326 #. type: =item
21327 #: ../src/guestfs-availability.pod:40
21328 msgid "B<linuxmodules>"
21329 msgstr ""
21330
21331 # type: textblock
21332 #. type: textblock
21333 #: ../src/guestfs-availability.pod:42
21334 msgid "The following functions: L</guestfs_modprobe>"
21335 msgstr ""
21336
21337 # type: =item
21338 #. type: =item
21339 #: ../src/guestfs-availability.pod:45
21340 msgid "B<linuxxattrs>"
21341 msgstr ""
21342
21343 # type: textblock
21344 #. type: textblock
21345 #: ../src/guestfs-availability.pod:47
21346 msgid ""
21347 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
21348 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
21349 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
21350 "guestfs_setxattr>"
21351 msgstr ""
21352
21353 # type: =item
21354 #. type: =item
21355 #: ../src/guestfs-availability.pod:58
21356 msgid "B<luks>"
21357 msgstr ""
21358
21359 # type: textblock
21360 #. type: textblock
21361 #: ../src/guestfs-availability.pod:60
21362 msgid ""
21363 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
21364 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
21365 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
21366 msgstr ""
21367
21368 # type: =item
21369 #. type: =item
21370 #: ../src/guestfs-availability.pod:69
21371 msgid "B<lvm2>"
21372 msgstr ""
21373
21374 # type: textblock
21375 #. type: textblock
21376 #: ../src/guestfs-availability.pod:71
21377 msgid ""
21378 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
21379 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
21380 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
21381 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
21382 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
21383 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
21384 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
21385 msgstr ""
21386
21387 # type: =item
21388 #. type: =item
21389 #: ../src/guestfs-availability.pod:94
21390 msgid "B<mknod>"
21391 msgstr ""
21392
21393 # type: textblock
21394 #. type: textblock
21395 #: ../src/guestfs-availability.pod:96
21396 msgid ""
21397 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
21398 "guestfs_mknod_b> L</guestfs_mknod_c>"
21399 msgstr ""
21400
21401 # type: =item
21402 #. type: =item
21403 #: ../src/guestfs-availability.pod:102
21404 msgid "B<ntfs3g>"
21405 msgstr ""
21406
21407 # type: textblock
21408 #. type: textblock
21409 #: ../src/guestfs-availability.pod:104
21410 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
21411 msgstr ""
21412
21413 # type: =item
21414 #. type: =item
21415 #: ../src/guestfs-availability.pod:107
21416 msgid "B<ntfsprogs>"
21417 msgstr ""
21418
21419 #. type: textblock
21420 #: ../src/guestfs-availability.pod:109
21421 msgid ""
21422 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
21423 "L</guestfs_ntfsresize_size>"
21424 msgstr ""
21425
21426 # type: =item
21427 #. type: =item
21428 #: ../src/guestfs-availability.pod:114
21429 msgid "B<realpath>"
21430 msgstr ""
21431
21432 # type: textblock
21433 #. type: textblock
21434 #: ../src/guestfs-availability.pod:116
21435 msgid "The following functions: L</guestfs_realpath>"
21436 msgstr ""
21437
21438 # type: =item
21439 #. type: =item
21440 #: ../src/guestfs-availability.pod:119
21441 msgid "B<scrub>"
21442 msgstr ""
21443
21444 # type: textblock
21445 #. type: textblock
21446 #: ../src/guestfs-availability.pod:121
21447 msgid ""
21448 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
21449 "guestfs_scrub_freespace>"
21450 msgstr ""
21451
21452 # type: =item
21453 #. type: =item
21454 #: ../src/guestfs-availability.pod:126
21455 msgid "B<selinux>"
21456 msgstr ""
21457
21458 # type: textblock
21459 #. type: textblock
21460 #: ../src/guestfs-availability.pod:128
21461 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
21462 msgstr ""
21463
21464 # type: =item
21465 #. type: =item
21466 #: ../src/guestfs-availability.pod:132
21467 msgid "B<xz>"
21468 msgstr ""
21469
21470 # type: textblock
21471 #. type: textblock
21472 #: ../src/guestfs-availability.pod:134
21473 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
21474 msgstr ""
21475
21476 # type: =item
21477 #. type: =item
21478 #: ../src/guestfs-availability.pod:138
21479 msgid "B<zerofree>"
21480 msgstr ""
21481
21482 # type: textblock
21483 #. type: textblock
21484 #: ../src/guestfs-availability.pod:140
21485 msgid "The following functions: L</guestfs_zerofree>"
21486 msgstr ""
21487
21488 # type: =head2
21489 #. type: =head2
21490 #: ../src/guestfs-structs.pod:1
21491 msgid "guestfs_int_bool"
21492 msgstr ""
21493
21494 # type: verbatim
21495 #. type: verbatim
21496 #: ../src/guestfs-structs.pod:3
21497 #, no-wrap
21498 msgid ""
21499 " struct guestfs_int_bool {\n"
21500 "   int32_t i;\n"
21501 "   int32_t b;\n"
21502 " };\n"
21503 " \n"
21504 msgstr ""
21505
21506 # type: verbatim
21507 #. type: verbatim
21508 #: ../src/guestfs-structs.pod:8
21509 #, no-wrap
21510 msgid ""
21511 " struct guestfs_int_bool_list {\n"
21512 "   uint32_t len; /* Number of elements in list. */\n"
21513 "   struct guestfs_int_bool *val; /* Elements. */\n"
21514 " };\n"
21515 " \n"
21516 msgstr ""
21517
21518 # type: verbatim
21519 #. type: verbatim
21520 #: ../src/guestfs-structs.pod:13
21521 #, no-wrap
21522 msgid ""
21523 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
21524 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
21525 "\n"
21526 msgstr ""
21527
21528 # type: =head2
21529 #. type: =head2
21530 #: ../src/guestfs-structs.pod:16
21531 msgid "guestfs_lvm_pv"
21532 msgstr ""
21533
21534 # type: verbatim
21535 #. type: verbatim
21536 #: ../src/guestfs-structs.pod:18
21537 #, no-wrap
21538 msgid ""
21539 " struct guestfs_lvm_pv {\n"
21540 "   char *pv_name;\n"
21541 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
21542 "   char pv_uuid[32];\n"
21543 "   char *pv_fmt;\n"
21544 "   uint64_t pv_size;\n"
21545 "   uint64_t dev_size;\n"
21546 "   uint64_t pv_free;\n"
21547 "   uint64_t pv_used;\n"
21548 "   char *pv_attr;\n"
21549 "   int64_t pv_pe_count;\n"
21550 "   int64_t pv_pe_alloc_count;\n"
21551 "   char *pv_tags;\n"
21552 "   uint64_t pe_start;\n"
21553 "   int64_t pv_mda_count;\n"
21554 "   uint64_t pv_mda_free;\n"
21555 " };\n"
21556 " \n"
21557 msgstr ""
21558
21559 # type: verbatim
21560 #. type: verbatim
21561 #: ../src/guestfs-structs.pod:36
21562 #, no-wrap
21563 msgid ""
21564 " struct guestfs_lvm_pv_list {\n"
21565 "   uint32_t len; /* Number of elements in list. */\n"
21566 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
21567 " };\n"
21568 " \n"
21569 msgstr ""
21570
21571 # type: verbatim
21572 #. type: verbatim
21573 #: ../src/guestfs-structs.pod:41
21574 #, no-wrap
21575 msgid ""
21576 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
21577 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
21578 "\n"
21579 msgstr ""
21580
21581 # type: =head2
21582 #. type: =head2
21583 #: ../src/guestfs-structs.pod:44
21584 msgid "guestfs_lvm_vg"
21585 msgstr ""
21586
21587 # type: verbatim
21588 #. type: verbatim
21589 #: ../src/guestfs-structs.pod:46
21590 #, no-wrap
21591 msgid ""
21592 " struct guestfs_lvm_vg {\n"
21593 "   char *vg_name;\n"
21594 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
21595 "   char vg_uuid[32];\n"
21596 "   char *vg_fmt;\n"
21597 "   char *vg_attr;\n"
21598 "   uint64_t vg_size;\n"
21599 "   uint64_t vg_free;\n"
21600 "   char *vg_sysid;\n"
21601 "   uint64_t vg_extent_size;\n"
21602 "   int64_t vg_extent_count;\n"
21603 "   int64_t vg_free_count;\n"
21604 "   int64_t max_lv;\n"
21605 "   int64_t max_pv;\n"
21606 "   int64_t pv_count;\n"
21607 "   int64_t lv_count;\n"
21608 "   int64_t snap_count;\n"
21609 "   int64_t vg_seqno;\n"
21610 "   char *vg_tags;\n"
21611 "   int64_t vg_mda_count;\n"
21612 "   uint64_t vg_mda_free;\n"
21613 " };\n"
21614 " \n"
21615 msgstr ""
21616
21617 # type: verbatim
21618 #. type: verbatim
21619 #: ../src/guestfs-structs.pod:69
21620 #, no-wrap
21621 msgid ""
21622 " struct guestfs_lvm_vg_list {\n"
21623 "   uint32_t len; /* Number of elements in list. */\n"
21624 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
21625 " };\n"
21626 " \n"
21627 msgstr ""
21628
21629 # type: verbatim
21630 #. type: verbatim
21631 #: ../src/guestfs-structs.pod:74
21632 #, no-wrap
21633 msgid ""
21634 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
21635 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
21636 "\n"
21637 msgstr ""
21638
21639 # type: =head2
21640 #. type: =head2
21641 #: ../src/guestfs-structs.pod:77
21642 msgid "guestfs_lvm_lv"
21643 msgstr ""
21644
21645 # type: verbatim
21646 #. type: verbatim
21647 #: ../src/guestfs-structs.pod:79
21648 #, no-wrap
21649 msgid ""
21650 " struct guestfs_lvm_lv {\n"
21651 "   char *lv_name;\n"
21652 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
21653 "   char lv_uuid[32];\n"
21654 "   char *lv_attr;\n"
21655 "   int64_t lv_major;\n"
21656 "   int64_t lv_minor;\n"
21657 "   int64_t lv_kernel_major;\n"
21658 "   int64_t lv_kernel_minor;\n"
21659 "   uint64_t lv_size;\n"
21660 "   int64_t seg_count;\n"
21661 "   char *origin;\n"
21662 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
21663 "   float snap_percent;\n"
21664 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
21665 "   float copy_percent;\n"
21666 "   char *move_pv;\n"
21667 "   char *lv_tags;\n"
21668 "   char *mirror_log;\n"
21669 "   char *modules;\n"
21670 " };\n"
21671 " \n"
21672 msgstr ""
21673
21674 # type: verbatim
21675 #. type: verbatim
21676 #: ../src/guestfs-structs.pod:101
21677 #, no-wrap
21678 msgid ""
21679 " struct guestfs_lvm_lv_list {\n"
21680 "   uint32_t len; /* Number of elements in list. */\n"
21681 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
21682 " };\n"
21683 " \n"
21684 msgstr ""
21685
21686 # type: verbatim
21687 #. type: verbatim
21688 #: ../src/guestfs-structs.pod:106
21689 #, no-wrap
21690 msgid ""
21691 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
21692 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
21693 "\n"
21694 msgstr ""
21695
21696 # type: verbatim
21697 #. type: verbatim
21698 #: ../src/guestfs-structs.pod:111
21699 #, no-wrap
21700 msgid ""
21701 " struct guestfs_stat {\n"
21702 "   int64_t dev;\n"
21703 "   int64_t ino;\n"
21704 "   int64_t mode;\n"
21705 "   int64_t nlink;\n"
21706 "   int64_t uid;\n"
21707 "   int64_t gid;\n"
21708 "   int64_t rdev;\n"
21709 "   int64_t size;\n"
21710 "   int64_t blksize;\n"
21711 "   int64_t blocks;\n"
21712 "   int64_t atime;\n"
21713 "   int64_t mtime;\n"
21714 "   int64_t ctime;\n"
21715 " };\n"
21716 " \n"
21717 msgstr ""
21718
21719 # type: verbatim
21720 #. type: verbatim
21721 #: ../src/guestfs-structs.pod:127
21722 #, no-wrap
21723 msgid ""
21724 " struct guestfs_stat_list {\n"
21725 "   uint32_t len; /* Number of elements in list. */\n"
21726 "   struct guestfs_stat *val; /* Elements. */\n"
21727 " };\n"
21728 " \n"
21729 msgstr ""
21730
21731 # type: verbatim
21732 #. type: verbatim
21733 #: ../src/guestfs-structs.pod:132
21734 #, no-wrap
21735 msgid ""
21736 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
21737 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
21738 "\n"
21739 msgstr ""
21740
21741 # type: verbatim
21742 #. type: verbatim
21743 #: ../src/guestfs-structs.pod:137
21744 #, no-wrap
21745 msgid ""
21746 " struct guestfs_statvfs {\n"
21747 "   int64_t bsize;\n"
21748 "   int64_t frsize;\n"
21749 "   int64_t blocks;\n"
21750 "   int64_t bfree;\n"
21751 "   int64_t bavail;\n"
21752 "   int64_t files;\n"
21753 "   int64_t ffree;\n"
21754 "   int64_t favail;\n"
21755 "   int64_t fsid;\n"
21756 "   int64_t flag;\n"
21757 "   int64_t namemax;\n"
21758 " };\n"
21759 " \n"
21760 msgstr ""
21761
21762 # type: verbatim
21763 #. type: verbatim
21764 #: ../src/guestfs-structs.pod:151
21765 #, no-wrap
21766 msgid ""
21767 " struct guestfs_statvfs_list {\n"
21768 "   uint32_t len; /* Number of elements in list. */\n"
21769 "   struct guestfs_statvfs *val; /* Elements. */\n"
21770 " };\n"
21771 " \n"
21772 msgstr ""
21773
21774 # type: verbatim
21775 #. type: verbatim
21776 #: ../src/guestfs-structs.pod:156
21777 #, no-wrap
21778 msgid ""
21779 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
21780 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
21781 "\n"
21782 msgstr ""
21783
21784 # type: =head2
21785 #. type: =head2
21786 #: ../src/guestfs-structs.pod:159
21787 msgid "guestfs_dirent"
21788 msgstr ""
21789
21790 # type: verbatim
21791 #. type: verbatim
21792 #: ../src/guestfs-structs.pod:161
21793 #, no-wrap
21794 msgid ""
21795 " struct guestfs_dirent {\n"
21796 "   int64_t ino;\n"
21797 "   char ftyp;\n"
21798 "   char *name;\n"
21799 " };\n"
21800 " \n"
21801 msgstr ""
21802
21803 # type: verbatim
21804 #. type: verbatim
21805 #: ../src/guestfs-structs.pod:167
21806 #, no-wrap
21807 msgid ""
21808 " struct guestfs_dirent_list {\n"
21809 "   uint32_t len; /* Number of elements in list. */\n"
21810 "   struct guestfs_dirent *val; /* Elements. */\n"
21811 " };\n"
21812 " \n"
21813 msgstr ""
21814
21815 # type: verbatim
21816 #. type: verbatim
21817 #: ../src/guestfs-structs.pod:172
21818 #, no-wrap
21819 msgid ""
21820 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
21821 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
21822 "\n"
21823 msgstr ""
21824
21825 # type: verbatim
21826 #. type: verbatim
21827 #: ../src/guestfs-structs.pod:177
21828 #, no-wrap
21829 msgid ""
21830 " struct guestfs_version {\n"
21831 "   int64_t major;\n"
21832 "   int64_t minor;\n"
21833 "   int64_t release;\n"
21834 "   char *extra;\n"
21835 " };\n"
21836 " \n"
21837 msgstr ""
21838
21839 # type: verbatim
21840 #. type: verbatim
21841 #: ../src/guestfs-structs.pod:184
21842 #, no-wrap
21843 msgid ""
21844 " struct guestfs_version_list {\n"
21845 "   uint32_t len; /* Number of elements in list. */\n"
21846 "   struct guestfs_version *val; /* Elements. */\n"
21847 " };\n"
21848 " \n"
21849 msgstr ""
21850
21851 # type: verbatim
21852 #. type: verbatim
21853 #: ../src/guestfs-structs.pod:189
21854 #, no-wrap
21855 msgid ""
21856 " void guestfs_free_version (struct guestfs_free_version *);\n"
21857 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
21858 "\n"
21859 msgstr ""
21860
21861 # type: =head2
21862 #. type: =head2
21863 #: ../src/guestfs-structs.pod:192
21864 msgid "guestfs_xattr"
21865 msgstr ""
21866
21867 # type: verbatim
21868 #. type: verbatim
21869 #: ../src/guestfs-structs.pod:194
21870 #, no-wrap
21871 msgid ""
21872 " struct guestfs_xattr {\n"
21873 "   char *attrname;\n"
21874 "   /* The next two fields describe a byte array. */\n"
21875 "   uint32_t attrval_len;\n"
21876 "   char *attrval;\n"
21877 " };\n"
21878 " \n"
21879 msgstr ""
21880
21881 # type: verbatim
21882 #. type: verbatim
21883 #: ../src/guestfs-structs.pod:201
21884 #, no-wrap
21885 msgid ""
21886 " struct guestfs_xattr_list {\n"
21887 "   uint32_t len; /* Number of elements in list. */\n"
21888 "   struct guestfs_xattr *val; /* Elements. */\n"
21889 " };\n"
21890 " \n"
21891 msgstr ""
21892
21893 # type: verbatim
21894 #. type: verbatim
21895 #: ../src/guestfs-structs.pod:206
21896 #, no-wrap
21897 msgid ""
21898 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
21899 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
21900 "\n"
21901 msgstr ""
21902
21903 # type: =head2
21904 #. type: =head2
21905 #: ../src/guestfs-structs.pod:209
21906 msgid "guestfs_inotify_event"
21907 msgstr ""
21908
21909 # type: verbatim
21910 #. type: verbatim
21911 #: ../src/guestfs-structs.pod:211
21912 #, no-wrap
21913 msgid ""
21914 " struct guestfs_inotify_event {\n"
21915 "   int64_t in_wd;\n"
21916 "   uint32_t in_mask;\n"
21917 "   uint32_t in_cookie;\n"
21918 "   char *in_name;\n"
21919 " };\n"
21920 " \n"
21921 msgstr ""
21922
21923 # type: verbatim
21924 #. type: verbatim
21925 #: ../src/guestfs-structs.pod:218
21926 #, no-wrap
21927 msgid ""
21928 " struct guestfs_inotify_event_list {\n"
21929 "   uint32_t len; /* Number of elements in list. */\n"
21930 "   struct guestfs_inotify_event *val; /* Elements. */\n"
21931 " };\n"
21932 " \n"
21933 msgstr ""
21934
21935 # type: verbatim
21936 #. type: verbatim
21937 #: ../src/guestfs-structs.pod:223
21938 #, no-wrap
21939 msgid ""
21940 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
21941 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
21942 "\n"
21943 msgstr ""
21944
21945 # type: =head2
21946 #. type: =head2
21947 #: ../src/guestfs-structs.pod:226
21948 msgid "guestfs_partition"
21949 msgstr ""
21950
21951 # type: verbatim
21952 #. type: verbatim
21953 #: ../src/guestfs-structs.pod:228
21954 #, no-wrap
21955 msgid ""
21956 " struct guestfs_partition {\n"
21957 "   int32_t part_num;\n"
21958 "   uint64_t part_start;\n"
21959 "   uint64_t part_end;\n"
21960 "   uint64_t part_size;\n"
21961 " };\n"
21962 " \n"
21963 msgstr ""
21964
21965 # type: verbatim
21966 #. type: verbatim
21967 #: ../src/guestfs-structs.pod:235
21968 #, no-wrap
21969 msgid ""
21970 " struct guestfs_partition_list {\n"
21971 "   uint32_t len; /* Number of elements in list. */\n"
21972 "   struct guestfs_partition *val; /* Elements. */\n"
21973 " };\n"
21974 " \n"
21975 msgstr ""
21976
21977 # type: verbatim
21978 #. type: verbatim
21979 #: ../src/guestfs-structs.pod:240
21980 #, no-wrap
21981 msgid ""
21982 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
21983 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
21984 "\n"
21985 msgstr ""
21986
21987 # type: =head2
21988 #. type: =head2
21989 #: ../src/guestfs-structs.pod:243
21990 msgid "guestfs_application"
21991 msgstr ""
21992
21993 # type: verbatim
21994 #. type: verbatim
21995 #: ../src/guestfs-structs.pod:245
21996 #, no-wrap
21997 msgid ""
21998 " struct guestfs_application {\n"
21999 "   char *app_name;\n"
22000 "   char *app_display_name;\n"
22001 "   int32_t app_epoch;\n"
22002 "   char *app_version;\n"
22003 "   char *app_release;\n"
22004 "   char *app_install_path;\n"
22005 "   char *app_trans_path;\n"
22006 "   char *app_publisher;\n"
22007 "   char *app_url;\n"
22008 "   char *app_source_package;\n"
22009 "   char *app_summary;\n"
22010 "   char *app_description;\n"
22011 " };\n"
22012 " \n"
22013 msgstr ""
22014
22015 # type: verbatim
22016 #. type: verbatim
22017 #: ../src/guestfs-structs.pod:260
22018 #, no-wrap
22019 msgid ""
22020 " struct guestfs_application_list {\n"
22021 "   uint32_t len; /* Number of elements in list. */\n"
22022 "   struct guestfs_application *val; /* Elements. */\n"
22023 " };\n"
22024 " \n"
22025 msgstr ""
22026
22027 # type: verbatim
22028 #. type: verbatim
22029 #: ../src/guestfs-structs.pod:265
22030 #, no-wrap
22031 msgid ""
22032 " void guestfs_free_application (struct guestfs_free_application *);\n"
22033 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
22034 "\n"
22035 msgstr ""
22036
22037 # type: textblock
22038 #. type: textblock
22039 #: ../fish/guestfish.pod:5
22040 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
22041 msgstr ""
22042
22043 # type: verbatim
22044 #. type: verbatim
22045 #: ../fish/guestfish.pod:9
22046 #, no-wrap
22047 msgid ""
22048 " guestfish [--options] [commands]\n"
22049 "\n"
22050 msgstr ""
22051
22052 # type: verbatim
22053 #. type: verbatim
22054 #: ../fish/guestfish.pod:11
22055 #, no-wrap
22056 msgid ""
22057 " guestfish\n"
22058 "\n"
22059 msgstr ""
22060
22061 # type: verbatim
22062 #. type: verbatim
22063 #: ../fish/guestfish.pod:13
22064 #, no-wrap
22065 msgid ""
22066 " guestfish [--ro|--rw] -a disk.img\n"
22067 "\n"
22068 msgstr ""
22069
22070 # type: verbatim
22071 #. type: verbatim
22072 #: ../fish/guestfish.pod:15
22073 #, no-wrap
22074 msgid ""
22075 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
22076 "\n"
22077 msgstr ""
22078
22079 # type: verbatim
22080 #. type: verbatim
22081 #: ../fish/guestfish.pod:17
22082 #, no-wrap
22083 msgid ""
22084 " guestfish -d libvirt-domain\n"
22085 "\n"
22086 msgstr ""
22087
22088 # type: verbatim
22089 #. type: verbatim
22090 #: ../fish/guestfish.pod:19
22091 #, no-wrap
22092 msgid ""
22093 " guestfish [--ro|--rw] -a disk.img -i\n"
22094 "\n"
22095 msgstr ""
22096
22097 # type: verbatim
22098 #. type: verbatim
22099 #: ../fish/guestfish.pod:21
22100 #, no-wrap
22101 msgid ""
22102 " guestfish -d libvirt-domain -i\n"
22103 "\n"
22104 msgstr ""
22105
22106 # type: =head1
22107 #. type: =head1
22108 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15
22109 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:64
22110 msgid "WARNING"
22111 msgstr ""
22112
22113 # type: textblock
22114 #. type: textblock
22115 #: ../fish/guestfish.pod:25
22116 msgid ""
22117 "Using guestfish in read/write mode on live virtual machines can be "
22118 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
22119 "option to use guestfish safely if the disk image or virtual machine might be "
22120 "live."
22121 msgstr ""
22122
22123 # type: textblock
22124 #. type: textblock
22125 #: ../fish/guestfish.pod:32
22126 msgid ""
22127 "Guestfish is a shell and command-line tool for examining and modifying "
22128 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
22129 "functionality of the guestfs API, see L<guestfs(3)>."
22130 msgstr ""
22131
22132 # type: textblock
22133 #. type: textblock
22134 #: ../fish/guestfish.pod:36
22135 msgid ""
22136 "Guestfish gives you structured access to the libguestfs API, from shell "
22137 "scripts or the command line or interactively.  If you want to rescue a "
22138 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
22139 "command."
22140 msgstr ""
22141
22142 # type: =head1
22143 #. type: =head1
22144 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:949
22145 #: ../fuse/guestmount.pod:39 ../tools/virt-tar.pl:50
22146 msgid "EXAMPLES"
22147 msgstr ""
22148
22149 # type: =head2
22150 #. type: =head2
22151 #: ../fish/guestfish.pod:43
22152 msgid "As an interactive shell"
22153 msgstr ""
22154
22155 # type: verbatim
22156 #. type: verbatim
22157 #: ../fish/guestfish.pod:45
22158 #, no-wrap
22159 msgid ""
22160 " $ guestfish\n"
22161 " \n"
22162 msgstr ""
22163
22164 # type: verbatim
22165 #. type: verbatim
22166 #: ../fish/guestfish.pod:47
22167 #, no-wrap
22168 msgid ""
22169 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
22170 " editing virtual machine filesystems.\n"
22171 " \n"
22172 msgstr ""
22173
22174 # type: verbatim
22175 #. type: verbatim
22176 #: ../fish/guestfish.pod:50
22177 #, no-wrap
22178 msgid ""
22179 " Type: 'help' for a list of commands\n"
22180 "       'man' to read the manual\n"
22181 "       'quit' to quit the shell\n"
22182 " \n"
22183 msgstr ""
22184
22185 # type: verbatim
22186 #. type: verbatim
22187 #: ../fish/guestfish.pod:54
22188 #, no-wrap
22189 msgid ""
22190 " ><fs> add-ro disk.img\n"
22191 " ><fs> run\n"
22192 " ><fs> list-filesystems\n"
22193 " /dev/sda1: ext4\n"
22194 " /dev/vg_guest/lv_root: ext4\n"
22195 " /dev/vg_guest/lv_swap: swap\n"
22196 " ><fs> mount /dev/vg_guest/lv_root /\n"
22197 " ><fs> cat /etc/fstab\n"
22198 " # /etc/fstab\n"
22199 " # Created by anaconda\n"
22200 " [...]\n"
22201 " ><fs> exit\n"
22202 "\n"
22203 msgstr ""
22204
22205 # type: =head2
22206 #. type: =head2
22207 #: ../fish/guestfish.pod:67
22208 msgid "From shell scripts"
22209 msgstr ""
22210
22211 # type: textblock
22212 #. type: textblock
22213 #: ../fish/guestfish.pod:69
22214 msgid "Create a new C</etc/motd> file in a guest or disk image:"
22215 msgstr ""
22216
22217 # type: verbatim
22218 #. type: verbatim
22219 #: ../fish/guestfish.pod:71
22220 #, no-wrap
22221 msgid ""
22222 " guestfish <<_EOF_\n"
22223 " add disk.img\n"
22224 " run\n"
22225 " mount /dev/vg_guest/lv_root /\n"
22226 " write /etc/motd \"Welcome, new users\"\n"
22227 " _EOF_\n"
22228 "\n"
22229 msgstr ""
22230
22231 # type: textblock
22232 #. type: textblock
22233 #: ../fish/guestfish.pod:78
22234 msgid "List the LVM logical volumes in a disk image:"
22235 msgstr ""
22236
22237 # type: verbatim
22238 #. type: verbatim
22239 #: ../fish/guestfish.pod:80
22240 #, no-wrap
22241 msgid ""
22242 " guestfish -a disk.img --ro <<_EOF_\n"
22243 " run\n"
22244 " lvs\n"
22245 " _EOF_\n"
22246 "\n"
22247 msgstr ""
22248
22249 # type: textblock
22250 #. type: textblock
22251 #: ../fish/guestfish.pod:85
22252 msgid "List all the filesystems in a disk image:"
22253 msgstr ""
22254
22255 # type: verbatim
22256 #. type: verbatim
22257 #: ../fish/guestfish.pod:87
22258 #, no-wrap
22259 msgid ""
22260 " guestfish -a disk.img --ro <<_EOF_\n"
22261 " run\n"
22262 " list-filesystems\n"
22263 " _EOF_\n"
22264 "\n"
22265 msgstr ""
22266
22267 # type: =head2
22268 #. type: =head2
22269 #: ../fish/guestfish.pod:92
22270 msgid "On one command line"
22271 msgstr ""
22272
22273 # type: textblock
22274 #. type: textblock
22275 #: ../fish/guestfish.pod:94
22276 msgid "Update C</etc/resolv.conf> in a guest:"
22277 msgstr ""
22278
22279 # type: verbatim
22280 #. type: verbatim
22281 #: ../fish/guestfish.pod:96
22282 #, no-wrap
22283 msgid ""
22284 " guestfish \\\n"
22285 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
22286 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
22287 "\n"
22288 msgstr ""
22289
22290 # type: textblock
22291 #. type: textblock
22292 #: ../fish/guestfish.pod:100
22293 msgid "Edit C</boot/grub/grub.conf> interactively:"
22294 msgstr ""
22295
22296 # type: verbatim
22297 #. type: verbatim
22298 #: ../fish/guestfish.pod:102
22299 #, no-wrap
22300 msgid ""
22301 " guestfish --rw --add disk.img \\\n"
22302 "   --mount /dev/vg_guest/lv_root \\\n"
22303 "   --mount /dev/sda1:/boot \\\n"
22304 "   edit /boot/grub/grub.conf\n"
22305 "\n"
22306 msgstr ""
22307
22308 # type: =head2
22309 #. type: =head2
22310 #: ../fish/guestfish.pod:107
22311 msgid "Mount disks automatically"
22312 msgstr ""
22313
22314 # type: textblock
22315 #. type: textblock
22316 #: ../fish/guestfish.pod:109
22317 msgid ""
22318 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
22319 msgstr ""
22320
22321 # type: verbatim
22322 #. type: verbatim
22323 #: ../fish/guestfish.pod:112
22324 #, no-wrap
22325 msgid ""
22326 " guestfish --ro -a disk.img -i cat /etc/group\n"
22327 "\n"
22328 msgstr ""
22329
22330 # type: verbatim
22331 #. type: verbatim
22332 #: ../fish/guestfish.pod:114
22333 #, no-wrap
22334 msgid ""
22335 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
22336 "\n"
22337 msgstr ""
22338
22339 # type: textblock
22340 #. type: textblock
22341 #: ../fish/guestfish.pod:116
22342 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
22343 msgstr ""
22344
22345 # type: verbatim
22346 #. type: verbatim
22347 #: ../fish/guestfish.pod:118
22348 #, no-wrap
22349 msgid ""
22350 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
22351 "\n"
22352 msgstr ""
22353
22354 # type: =head2
22355 #. type: =head2
22356 #: ../fish/guestfish.pod:120
22357 msgid "As a script interpreter"
22358 msgstr ""
22359
22360 # type: textblock
22361 #. type: textblock
22362 #: ../fish/guestfish.pod:122
22363 msgid "Create a 100MB disk containing an ext2-formatted partition:"
22364 msgstr ""
22365
22366 # type: verbatim
22367 #. type: verbatim
22368 #: ../fish/guestfish.pod:124
22369 #, no-wrap
22370 msgid ""
22371 " #!/usr/bin/guestfish -f\n"
22372 " sparse test1.img 100M\n"
22373 " run\n"
22374 " part-disk /dev/sda mbr\n"
22375 " mkfs ext2 /dev/sda1\n"
22376 "\n"
22377 msgstr ""
22378
22379 # type: =head2
22380 #. type: =head2
22381 #: ../fish/guestfish.pod:130
22382 msgid "Start with a prepared disk"
22383 msgstr ""
22384
22385 # type: textblock
22386 #. type: textblock
22387 #: ../fish/guestfish.pod:132
22388 msgid ""
22389 "An alternate way to create a 100MB disk called C<test1.img> containing a "
22390 "single ext2-formatted partition:"
22391 msgstr ""
22392
22393 # type: verbatim
22394 #. type: verbatim
22395 #: ../fish/guestfish.pod:135
22396 #, no-wrap
22397 msgid ""
22398 " guestfish -N fs\n"
22399 "\n"
22400 msgstr ""
22401
22402 # type: textblock
22403 #. type: textblock
22404 #: ../fish/guestfish.pod:137
22405 msgid "To list what is available do:"
22406 msgstr ""
22407
22408 # type: verbatim
22409 #. type: verbatim
22410 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:940
22411 #, no-wrap
22412 msgid ""
22413 " guestfish -N help | less\n"
22414 "\n"
22415 msgstr ""
22416
22417 # type: =head2
22418 #. type: =head2
22419 #: ../fish/guestfish.pod:141
22420 msgid "Remote control"
22421 msgstr ""
22422
22423 # type: verbatim
22424 #. type: verbatim
22425 #: ../fish/guestfish.pod:143
22426 #, no-wrap
22427 msgid ""
22428 " eval \"`guestfish --listen`\"\n"
22429 " guestfish --remote add-ro disk.img\n"
22430 " guestfish --remote run\n"
22431 " guestfish --remote lvs\n"
22432 "\n"
22433 msgstr ""
22434
22435 # type: =head1
22436 #. type: =head1
22437 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
22438 #: ../fuse/guestmount.pod:83 ../tools/virt-win-reg.pl:96
22439 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:103
22440 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
22441 msgid "OPTIONS"
22442 msgstr ""
22443
22444 # type: =item
22445 #. type: =item
22446 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:143
22447 #: ../tools/virt-win-reg.pl:104 ../tools/virt-list-filesystems.pl:61
22448 #: ../tools/virt-tar.pl:111 ../tools/virt-make-fs.pl:161
22449 #: ../tools/virt-list-partitions.pl:62
22450 msgid "B<--help>"
22451 msgstr ""
22452
22453 # type: textblock
22454 #. type: textblock
22455 #: ../fish/guestfish.pod:154
22456 msgid "Displays general help on options."
22457 msgstr ""
22458
22459 # type: =item
22460 #. type: =item
22461 #: ../fish/guestfish.pod:156
22462 msgid "B<-h>"
22463 msgstr ""
22464
22465 # type: =item
22466 #. type: =item
22467 #: ../fish/guestfish.pod:158
22468 msgid "B<--cmd-help>"
22469 msgstr ""
22470
22471 # type: textblock
22472 #. type: textblock
22473 #: ../fish/guestfish.pod:160
22474 msgid "Lists all available guestfish commands."
22475 msgstr ""
22476
22477 # type: =item
22478 #. type: =item
22479 #: ../fish/guestfish.pod:162
22480 msgid "B<-h cmd>"
22481 msgstr ""
22482
22483 # type: =item
22484 #. type: =item
22485 #: ../fish/guestfish.pod:164
22486 msgid "B<--cmd-help cmd>"
22487 msgstr ""
22488
22489 # type: textblock
22490 #. type: textblock
22491 #: ../fish/guestfish.pod:166
22492 msgid "Displays detailed help on a single command C<cmd>."
22493 msgstr ""
22494
22495 # type: =item
22496 #. type: =item
22497 #: ../fish/guestfish.pod:168
22498 msgid "B<-a image>"
22499 msgstr ""
22500
22501 # type: =item
22502 #. type: =item
22503 #: ../fish/guestfish.pod:170
22504 msgid "B<--add image>"
22505 msgstr ""
22506
22507 # type: textblock
22508 #. type: textblock
22509 #: ../fish/guestfish.pod:172
22510 msgid "Add a block device or virtual machine image to the shell."
22511 msgstr ""
22512
22513 # type: textblock
22514 #. type: textblock
22515 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:91
22516 msgid ""
22517 "The format of the disk image is auto-detected.  To override this and force a "
22518 "particular format use the I<--format=..> option."
22519 msgstr ""
22520
22521 #. type: textblock
22522 #: ../fish/guestfish.pod:177
22523 msgid ""
22524 "Using this flag is mostly equivalent to using the C<add> command, with "
22525 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
22526 "the I<--format=...> flag was given."
22527 msgstr ""
22528
22529 # type: =item
22530 #. type: =item
22531 #: ../fish/guestfish.pod:181
22532 msgid "B<-c URI>"
22533 msgstr ""
22534
22535 # type: =item
22536 #. type: =item
22537 #: ../fish/guestfish.pod:183
22538 msgid "B<--connect URI>"
22539 msgstr ""
22540
22541 # type: textblock
22542 #. type: textblock
22543 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:96
22544 msgid ""
22545 "When used in conjunction with the I<-d> option, this specifies the libvirt "
22546 "URI to use.  The default is to use the default libvirt connection."
22547 msgstr ""
22548
22549 # type: =item
22550 #. type: =item
22551 #: ../fish/guestfish.pod:189
22552 msgid "B<--csh>"
22553 msgstr ""
22554
22555 # type: textblock
22556 #. type: textblock
22557 #: ../fish/guestfish.pod:191
22558 msgid ""
22559 "If using the I<--listen> option and a csh-like shell, use this option.  See "
22560 "section L</REMOTE CONTROL AND CSH> below."
22561 msgstr ""
22562
22563 # type: =item
22564 #. type: =item
22565 #: ../fish/guestfish.pod:194
22566 msgid "B<-d libvirt-domain>"
22567 msgstr ""
22568
22569 # type: =item
22570 #. type: =item
22571 #: ../fish/guestfish.pod:196
22572 msgid "B<--domain libvirt-domain>"
22573 msgstr ""
22574
22575 # type: textblock
22576 #. type: textblock
22577 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:102
22578 msgid ""
22579 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
22580 "used, then any libvirt domain can be used.  However in write mode, only "
22581 "libvirt domains which are shut down can be named here."
22582 msgstr ""
22583
22584 #. type: textblock
22585 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:106
22586 msgid "Domain UUIDs can be used instead of names."
22587 msgstr ""
22588
22589 # type: textblock
22590 #. type: textblock
22591 #: ../fish/guestfish.pod:204
22592 msgid ""
22593 "Using this flag is mostly equivalent to using the C<add-domain> command, "
22594 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
22595 "if the I<--format:...> flag was given."
22596 msgstr ""
22597
22598 # type: =item
22599 #. type: =item
22600 #: ../fish/guestfish.pod:208
22601 msgid "B<-D>"
22602 msgstr ""
22603
22604 # type: =item
22605 #. type: =item
22606 #: ../fish/guestfish.pod:210
22607 msgid "B<--no-dest-paths>"
22608 msgstr ""
22609
22610 # type: textblock
22611 #. type: textblock
22612 #: ../fish/guestfish.pod:212
22613 msgid ""
22614 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
22615 "to hit the tab key to complete paths on the guest filesystem, but this "
22616 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
22617 "allow this feature to be disabled."
22618 msgstr ""
22619
22620 # type: =item
22621 #. type: =item
22622 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:120
22623 msgid "B<--echo-keys>"
22624 msgstr ""
22625
22626 # type: textblock
22627 #. type: textblock
22628 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:122
22629 msgid ""
22630 "When prompting for keys and passphrases, guestfish normally turns echoing "
22631 "off so you cannot see what you are typing.  If you are not worried about "
22632 "Tempest attacks and there is no one else in the room you can specify this "
22633 "flag to see what you are typing."
22634 msgstr ""
22635
22636 # type: =item
22637 #. type: =item
22638 #: ../fish/guestfish.pod:224
22639 msgid "B<-f file>"
22640 msgstr ""
22641
22642 # type: =item
22643 #. type: =item
22644 #: ../fish/guestfish.pod:226
22645 msgid "B<--file file>"
22646 msgstr ""
22647
22648 # type: textblock
22649 #. type: textblock
22650 #: ../fish/guestfish.pod:228
22651 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
22652 msgstr ""
22653
22654 # type: verbatim
22655 #. type: verbatim
22656 #: ../fish/guestfish.pod:231
22657 #, no-wrap
22658 msgid ""
22659 " #!/usr/bin/guestfish -f\n"
22660 "\n"
22661 msgstr ""
22662
22663 # type: =item
22664 #. type: =item
22665 #: ../fish/guestfish.pod:233
22666 msgid "B<--format=raw|qcow2|..>"
22667 msgstr ""
22668
22669 # type: =item
22670 #. type: =item
22671 #: ../fish/guestfish.pod:235
22672 msgid "B<--format>"
22673 msgstr ""
22674
22675 # type: textblock
22676 #. type: textblock
22677 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:129
22678 msgid ""
22679 "The default for the I<-a> option is to auto-detect the format of the disk "
22680 "image.  Using this forces the disk format for I<-a> options which follow on "
22681 "the command line.  Using I<--format> with no argument switches back to auto-"
22682 "detection for subsequent I<-a> options."
22683 msgstr ""
22684
22685 # type: verbatim
22686 #. type: verbatim
22687 #: ../fish/guestfish.pod:244
22688 #, no-wrap
22689 msgid ""
22690 " guestfish --format=raw -a disk.img\n"
22691 "\n"
22692 msgstr ""
22693
22694 # type: textblock
22695 #. type: textblock
22696 #: ../fish/guestfish.pod:246
22697 msgid "forces raw format (no auto-detection) for C<disk.img>."
22698 msgstr ""
22699
22700 # type: verbatim
22701 #. type: verbatim
22702 #: ../fish/guestfish.pod:248
22703 #, no-wrap
22704 msgid ""
22705 " guestfish --format=raw -a disk.img --format -a another.img\n"
22706 "\n"
22707 msgstr ""
22708
22709 # type: textblock
22710 #. type: textblock
22711 #: ../fish/guestfish.pod:250
22712 msgid ""
22713 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
22714 "detection for C<another.img>."
22715 msgstr ""
22716
22717 # type: textblock
22718 #. type: textblock
22719 #: ../fish/guestfish.pod:253
22720 msgid ""
22721 "If you have untrusted raw-format guest disk images, you should use this "
22722 "option to specify the disk format.  This avoids a possible security problem "
22723 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
22724 msgstr ""
22725
22726 # type: =item
22727 #. type: =item
22728 #: ../fish/guestfish.pod:258
22729 msgid "B<-i>"
22730 msgstr ""
22731
22732 # type: =item
22733 #. type: =item
22734 #: ../fish/guestfish.pod:260
22735 msgid "B<--inspector>"
22736 msgstr ""
22737
22738 # type: textblock
22739 #. type: textblock
22740 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:149
22741 msgid ""
22742 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
22743 "system and mount filesystems as they would be mounted on the real virtual "
22744 "machine."
22745 msgstr ""
22746
22747 # type: textblock
22748 #. type: textblock
22749 #: ../fish/guestfish.pod:266
22750 msgid "Typical usage is either:"
22751 msgstr ""
22752
22753 # type: verbatim
22754 #. type: verbatim
22755 #: ../fish/guestfish.pod:268
22756 #, no-wrap
22757 msgid ""
22758 " guestfish -d myguest -i\n"
22759 "\n"
22760 msgstr ""
22761
22762 # type: textblock
22763 #. type: textblock
22764 #: ../fish/guestfish.pod:270
22765 msgid "(for an inactive libvirt domain called I<myguest>), or:"
22766 msgstr ""
22767
22768 # type: verbatim
22769 #. type: verbatim
22770 #: ../fish/guestfish.pod:272
22771 #, no-wrap
22772 msgid ""
22773 " guestfish --ro -d myguest -i\n"
22774 "\n"
22775 msgstr ""
22776
22777 # type: textblock
22778 #. type: textblock
22779 #: ../fish/guestfish.pod:274
22780 msgid "(for active domains, readonly), or specify the block device directly:"
22781 msgstr ""
22782
22783 # type: verbatim
22784 #. type: verbatim
22785 #: ../fish/guestfish.pod:276
22786 #, no-wrap
22787 msgid ""
22788 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
22789 "\n"
22790 msgstr ""
22791
22792 # type: textblock
22793 #. type: textblock
22794 #: ../fish/guestfish.pod:278
22795 msgid ""
22796 "Note that the command line syntax changed slightly over older versions of "
22797 "guestfish.  You can still use the old syntax:"
22798 msgstr ""
22799
22800 # type: verbatim
22801 #. type: verbatim
22802 #: ../fish/guestfish.pod:281
22803 #, no-wrap
22804 msgid ""
22805 " guestfish [--ro] -i disk.img\n"
22806 "\n"
22807 msgstr ""
22808
22809 # type: verbatim
22810 #. type: verbatim
22811 #: ../fish/guestfish.pod:283
22812 #, no-wrap
22813 msgid ""
22814 " guestfish [--ro] -i libvirt-domain\n"
22815 "\n"
22816 msgstr ""
22817
22818 # type: textblock
22819 #. type: textblock
22820 #: ../fish/guestfish.pod:285
22821 msgid ""
22822 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
22823 "then using other commands to mount the filesystems that were found."
22824 msgstr ""
22825
22826 # type: =item
22827 #. type: =item
22828 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:153
22829 msgid "B<--keys-from-stdin>"
22830 msgstr ""
22831
22832 # type: textblock
22833 #. type: textblock
22834 #: ../fish/guestfish.pod:291 ../fuse/guestmount.pod:155
22835 msgid ""
22836 "Read key or passphrase parameters from stdin.  The default is to try to read "
22837 "passphrases from the user by opening C</dev/tty>."
22838 msgstr ""
22839
22840 # type: =item
22841 #. type: =item
22842 #: ../fish/guestfish.pod:294
22843 msgid "B<--listen>"
22844 msgstr ""
22845
22846 # type: textblock
22847 #. type: textblock
22848 #: ../fish/guestfish.pod:296
22849 msgid ""
22850 "Fork into the background and listen for remote commands.  See section L</"
22851 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
22852 msgstr ""
22853
22854 #. type: =item
22855 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:158
22856 msgid "B<--live>"
22857 msgstr ""
22858
22859 #. type: textblock
22860 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:160
22861 msgid ""
22862 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
22863 "ATTACHING TO RUNNING DAEMONS>)."
22864 msgstr ""
22865
22866 #. type: =item
22867 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:163
22868 msgid "B<-m dev[:mountpoint[:options]]>"
22869 msgstr ""
22870
22871 #. type: =item
22872 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:165
22873 msgid "B<--mount dev[:mountpoint[:options]]>"
22874 msgstr ""
22875
22876 # type: textblock
22877 #. type: textblock
22878 #: ../fish/guestfish.pod:308
22879 msgid "Mount the named partition or logical volume on the given mountpoint."
22880 msgstr ""
22881
22882 # type: textblock
22883 #. type: textblock
22884 #: ../fish/guestfish.pod:310
22885 msgid "If the mountpoint is omitted, it defaults to C</>."
22886 msgstr ""
22887
22888 # type: textblock
22889 #. type: textblock
22890 #: ../fish/guestfish.pod:312
22891 msgid "You have to mount something on C</> before most commands will work."
22892 msgstr ""
22893
22894 # type: textblock
22895 #. type: textblock
22896 #: ../fish/guestfish.pod:314
22897 msgid ""
22898 "If any I<-m> or I<--mount> options are given, the guest is automatically "
22899 "launched."
22900 msgstr ""
22901
22902 # type: textblock
22903 #. type: textblock
22904 #: ../fish/guestfish.pod:317
22905 msgid ""
22906 "If you don't know what filesystems a disk image contains, you can either run "
22907 "guestfish without this option, then list the partitions, filesystems and LVs "
22908 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
22909 "commands), or you can use the L<virt-filesystems(1)> program."
22910 msgstr ""
22911
22912 #. type: textblock
22913 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:173
22914 msgid ""
22915 "The third (and rarely used) part of the mount parameter is the list of mount "
22916 "options used to mount the underlying filesystem.  If this is not given, then "
22917 "the mount options are either the empty string or C<ro> (the latter if the "
22918 "I<--ro> flag is used).  By specifying the mount options, you override this "
22919 "default choice.  Probably the only time you would use this is to enable ACLs "
22920 "and/or extended attributes if the filesystem can support them:"
22921 msgstr ""
22922
22923 #. type: verbatim
22924 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:181
22925 #, no-wrap
22926 msgid ""
22927 " -m /dev/sda1:/:acl,user_xattr\n"
22928 "\n"
22929 msgstr ""
22930
22931 #. type: textblock
22932 #: ../fish/guestfish.pod:333
22933 msgid "Using this flag is equivalent to using the C<mount-options> command."
22934 msgstr ""
22935
22936 # type: =item
22937 #. type: =item
22938 #: ../fish/guestfish.pod:335
22939 msgid "B<-n>"
22940 msgstr ""
22941
22942 # type: =item
22943 #. type: =item
22944 #: ../fish/guestfish.pod:337
22945 msgid "B<--no-sync>"
22946 msgstr ""
22947
22948 # type: textblock
22949 #. type: textblock
22950 #: ../fish/guestfish.pod:339
22951 msgid ""
22952 "Disable autosync.  This is enabled by default.  See the discussion of "
22953 "autosync in the L<guestfs(3)> manpage."
22954 msgstr ""
22955
22956 # type: =item
22957 #. type: =item
22958 #: ../fish/guestfish.pod:342
22959 msgid "B<-N type>"
22960 msgstr ""
22961
22962 # type: =item
22963 #. type: =item
22964 #: ../fish/guestfish.pod:344
22965 msgid "B<--new type>"
22966 msgstr ""
22967
22968 # type: =item
22969 #. type: =item
22970 #: ../fish/guestfish.pod:346
22971 msgid "B<-N help>"
22972 msgstr ""
22973
22974 # type: textblock
22975 #. type: textblock
22976 #: ../fish/guestfish.pod:348
22977 msgid ""
22978 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
22979 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
22980 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
22981 "IMAGES> below."
22982 msgstr ""
22983
22984 # type: =item
22985 #. type: =item
22986 #: ../fish/guestfish.pod:353
22987 msgid "B<--progress-bars>"
22988 msgstr ""
22989
22990 # type: textblock
22991 #. type: textblock
22992 #: ../fish/guestfish.pod:355
22993 msgid "Enable progress bars, even when guestfish is used non-interactively."
22994 msgstr ""
22995
22996 # type: textblock
22997 #. type: textblock
22998 #: ../fish/guestfish.pod:357
22999 msgid ""
23000 "Progress bars are enabled by default when guestfish is used as an "
23001 "interactive shell."
23002 msgstr ""
23003
23004 # type: =item
23005 #. type: =item
23006 #: ../fish/guestfish.pod:360
23007 msgid "B<--no-progress-bars>"
23008 msgstr ""
23009
23010 # type: textblock
23011 #. type: textblock
23012 #: ../fish/guestfish.pod:362
23013 msgid "Disable progress bars."
23014 msgstr ""
23015
23016 # type: =item
23017 #. type: =item
23018 #: ../fish/guestfish.pod:364
23019 msgid "B<--remote[=pid]>"
23020 msgstr ""
23021
23022 # type: textblock
23023 #. type: textblock
23024 #: ../fish/guestfish.pod:366
23025 msgid ""
23026 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
23027 "CONTROL GUESTFISH OVER A SOCKET> below."
23028 msgstr ""
23029
23030 # type: =item
23031 #. type: =item
23032 #: ../fish/guestfish.pod:369
23033 msgid "B<-r>"
23034 msgstr ""
23035
23036 # type: =item
23037 #. type: =item
23038 #: ../fish/guestfish.pod:371
23039 msgid "B<--ro>"
23040 msgstr ""
23041
23042 # type: textblock
23043 #. type: textblock
23044 #: ../fish/guestfish.pod:373
23045 msgid ""
23046 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
23047 "mounts are done read-only."
23048 msgstr ""
23049
23050 # type: textblock
23051 #. type: textblock
23052 #: ../fish/guestfish.pod:376
23053 msgid ""
23054 "The option must always be used if the disk image or virtual machine might be "
23055 "running, and is generally recommended in cases where you don't need write "
23056 "access to the disk."
23057 msgstr ""
23058
23059 # type: textblock
23060 #. type: textblock
23061 #: ../fish/guestfish.pod:380
23062 msgid ""
23063 "Note that prepared disk images created with I<-N> are not affected by this "
23064 "option.  Also commands like C<add> are not affected - you have to specify "
23065 "the C<readonly:true> option explicitly if you need it."
23066 msgstr ""
23067
23068 # type: textblock
23069 #. type: textblock
23070 #: ../fish/guestfish.pod:384
23071 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
23072 msgstr ""
23073
23074 # type: =item
23075 #. type: =item
23076 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:237
23077 msgid "B<--selinux>"
23078 msgstr ""
23079
23080 # type: textblock
23081 #. type: textblock
23082 #: ../fish/guestfish.pod:388
23083 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
23084 msgstr ""
23085
23086 # type: =item
23087 #. type: =item
23088 #: ../fish/guestfish.pod:390
23089 msgid "B<-v>"
23090 msgstr ""
23091
23092 # type: =item
23093 #. type: =item
23094 #: ../fish/guestfish.pod:392
23095 msgid "B<--verbose>"
23096 msgstr ""
23097
23098 # type: textblock
23099 #. type: textblock
23100 #: ../fish/guestfish.pod:394
23101 msgid ""
23102 "Enable very verbose messages.  This is particularly useful if you find a bug."
23103 msgstr ""
23104
23105 # type: =item
23106 #. type: =item
23107 #: ../fish/guestfish.pod:397
23108 msgid "B<-V>"
23109 msgstr ""
23110
23111 # type: =item
23112 #. type: =item
23113 #: ../fish/guestfish.pod:399 ../tools/virt-win-reg.pl:112
23114 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:119
23115 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
23116 msgid "B<--version>"
23117 msgstr ""
23118
23119 # type: textblock
23120 #. type: textblock
23121 #: ../fish/guestfish.pod:401
23122 msgid "Display the guestfish / libguestfs version number and exit."
23123 msgstr ""
23124
23125 # type: =item
23126 #. type: =item
23127 #: ../fish/guestfish.pod:403
23128 msgid "B<-w>"
23129 msgstr ""
23130
23131 # type: =item
23132 #. type: =item
23133 #: ../fish/guestfish.pod:405
23134 msgid "B<--rw>"
23135 msgstr ""
23136
23137 #. type: textblock
23138 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:251
23139 msgid ""
23140 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
23141 "mounts are done read-write."
23142 msgstr ""
23143
23144 #. type: textblock
23145 #: ../fish/guestfish.pod:410
23146 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
23147 msgstr ""
23148
23149 # type: =item
23150 #. type: =item
23151 #: ../fish/guestfish.pod:412
23152 msgid "B<-x>"
23153 msgstr ""
23154
23155 # type: textblock
23156 #. type: textblock
23157 #: ../fish/guestfish.pod:414
23158 msgid "Echo each command before executing it."
23159 msgstr ""
23160
23161 # type: =head1
23162 #. type: =head1
23163 #: ../fish/guestfish.pod:418
23164 msgid "COMMANDS ON COMMAND LINE"
23165 msgstr ""
23166
23167 # type: textblock
23168 #. type: textblock
23169 #: ../fish/guestfish.pod:420
23170 msgid ""
23171 "Any additional (non-option) arguments are treated as commands to execute."
23172 msgstr ""
23173
23174 # type: textblock
23175 #. type: textblock
23176 #: ../fish/guestfish.pod:423
23177 msgid ""
23178 "Commands to execute should be separated by a colon (C<:>), where the colon "
23179 "is a separate parameter.  Thus:"
23180 msgstr ""
23181
23182 # type: verbatim
23183 #. type: verbatim
23184 #: ../fish/guestfish.pod:426
23185 #, no-wrap
23186 msgid ""
23187 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
23188 "\n"
23189 msgstr ""
23190
23191 # type: textblock
23192 #. type: textblock
23193 #: ../fish/guestfish.pod:428
23194 msgid ""
23195 "If there are no additional arguments, then we enter a shell, either an "
23196 "interactive shell with a prompt (if the input is a terminal) or a non-"
23197 "interactive shell."
23198 msgstr ""
23199
23200 # type: textblock
23201 #. type: textblock
23202 #: ../fish/guestfish.pod:432
23203 msgid ""
23204 "In either command line mode or non-interactive shell, the first command that "
23205 "gives an error causes the whole shell to exit.  In interactive mode (with a "
23206 "prompt) if a command fails, you can continue to enter commands."
23207 msgstr ""
23208
23209 # type: =head1
23210 #. type: =head1
23211 #: ../fish/guestfish.pod:437
23212 msgid "USING launch (OR run)"
23213 msgstr ""
23214
23215 # type: textblock
23216 #. type: textblock
23217 #: ../fish/guestfish.pod:439
23218 msgid ""
23219 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
23220 "then launch it, then mount any disks you need, and finally issue actions/"
23221 "commands.  So the general order of the day is:"
23222 msgstr ""
23223
23224 # type: textblock
23225 #. type: textblock
23226 #: ../fish/guestfish.pod:447
23227 msgid "add or -a/--add"
23228 msgstr ""
23229
23230 # type: textblock
23231 #. type: textblock
23232 #: ../fish/guestfish.pod:451
23233 msgid "launch (aka run)"
23234 msgstr ""
23235
23236 # type: textblock
23237 #. type: textblock
23238 #: ../fish/guestfish.pod:455
23239 msgid "mount or -m/--mount"
23240 msgstr ""
23241
23242 # type: textblock
23243 #. type: textblock
23244 #: ../fish/guestfish.pod:459
23245 msgid "any other commands"
23246 msgstr ""
23247
23248 # type: textblock
23249 #. type: textblock
23250 #: ../fish/guestfish.pod:463
23251 msgid ""
23252 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
23253 "guest before mounting or performing any other commands."
23254 msgstr ""
23255
23256 # type: textblock
23257 #. type: textblock
23258 #: ../fish/guestfish.pod:466
23259 msgid ""
23260 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
23261 "I<--new> options were given then C<run> is done automatically, simply "
23262 "because guestfish can't perform the action you asked for without doing this."
23263 msgstr ""
23264
23265 # type: =head1
23266 #. type: =head1
23267 #: ../fish/guestfish.pod:471
23268 msgid "OPENING DISKS FOR READ AND WRITE"
23269 msgstr ""
23270
23271 #. type: textblock
23272 #: ../fish/guestfish.pod:473
23273 msgid ""
23274 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
23275 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
23276 "I<-i> and I<-m> open disk images read-only or for writing."
23277 msgstr ""
23278
23279 #. type: textblock
23280 #: ../fish/guestfish.pod:478
23281 msgid ""
23282 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
23283 "opening disk images supplied on the command line for write.  To open a disk "
23284 "image read-only you have to do I<-a image --ro>."
23285 msgstr ""
23286
23287 # type: textblock
23288 #. type: textblock
23289 #: ../fish/guestfish.pod:482
23290 msgid ""
23291 "This matters: If you accidentally open a live VM disk image writable then "
23292 "you will cause irreversible disk corruption."
23293 msgstr ""
23294
23295 #. type: textblock
23296 #: ../fish/guestfish.pod:485
23297 msgid ""
23298 "By libguestfs 1.12 we intend to change the default the other way.  Disk "
23299 "images will be opened read-only.  You will have to either specify "
23300 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
23301 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
23302 "access for disk images specified by those other command line options."
23303 msgstr ""
23304
23305 #. type: textblock
23306 #: ../fish/guestfish.pod:492
23307 msgid ""
23308 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
23309 "which does nothing (it is already the default).  However it is highly "
23310 "recommended that you use this option to indicate that you need write access, "
23311 "and prepare your scripts for the day when this option will be required for "
23312 "write access."
23313 msgstr ""
23314
23315 # type: textblock
23316 #. type: textblock
23317 #: ../fish/guestfish.pod:498
23318 msgid ""
23319 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
23320 "other libguestfs program apart from guestfish and guestmount."
23321 msgstr ""
23322
23323 # type: =head1
23324 #. type: =head1
23325 #: ../fish/guestfish.pod:501
23326 msgid "QUOTING"
23327 msgstr ""
23328
23329 # type: textblock
23330 #. type: textblock
23331 #: ../fish/guestfish.pod:503
23332 msgid ""
23333 "You can quote ordinary parameters using either single or double quotes.  For "
23334 "example:"
23335 msgstr ""
23336
23337 # type: verbatim
23338 #. type: verbatim
23339 #: ../fish/guestfish.pod:506
23340 #, no-wrap
23341 msgid ""
23342 " add \"file with a space.img\"\n"
23343 "\n"
23344 msgstr ""
23345
23346 # type: verbatim
23347 #. type: verbatim
23348 #: ../fish/guestfish.pod:508
23349 #, no-wrap
23350 msgid ""
23351 " rm '/file name'\n"
23352 "\n"
23353 msgstr ""
23354
23355 # type: verbatim
23356 #. type: verbatim
23357 #: ../fish/guestfish.pod:510
23358 #, no-wrap
23359 msgid ""
23360 " rm '/\"'\n"
23361 "\n"
23362 msgstr ""
23363
23364 # type: textblock
23365 #. type: textblock
23366 #: ../fish/guestfish.pod:512
23367 msgid ""
23368 "A few commands require a list of strings to be passed.  For these, use a "
23369 "whitespace-separated list, enclosed in quotes.  Strings containing "
23370 "whitespace to be passed through must be enclosed in single quotes.  A "
23371 "literal single quote must be escaped with a backslash."
23372 msgstr ""
23373
23374 # type: verbatim
23375 #. type: verbatim
23376 #: ../fish/guestfish.pod:517
23377 #, no-wrap
23378 msgid ""
23379 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
23380 " command \"/bin/echo 'foo      bar'\"\n"
23381 " command \"/bin/echo \\'foo\\'\"\n"
23382 "\n"
23383 msgstr ""
23384
23385 # type: =head1
23386 #. type: =head1
23387 #: ../fish/guestfish.pod:521
23388 msgid "OPTIONAL ARGUMENTS"
23389 msgstr ""
23390
23391 # type: textblock
23392 #. type: textblock
23393 #: ../fish/guestfish.pod:523
23394 msgid ""
23395 "Some commands take optional arguments.  These arguments appear in this "
23396 "documentation as C<[argname:..]>.  You can use them as in these examples:"
23397 msgstr ""
23398
23399 # type: verbatim
23400 #. type: verbatim
23401 #: ../fish/guestfish.pod:527
23402 #, no-wrap
23403 msgid ""
23404 " add-drive-opts filename\n"
23405 "\n"
23406 msgstr ""
23407
23408 # type: verbatim
23409 #. type: verbatim
23410 #: ../fish/guestfish.pod:529
23411 #, no-wrap
23412 msgid ""
23413 " add-drive-opts filename readonly:true\n"
23414 "\n"
23415 msgstr ""
23416
23417 # type: verbatim
23418 #. type: verbatim
23419 #: ../fish/guestfish.pod:531
23420 #, no-wrap
23421 msgid ""
23422 " add-drive-opts filename format:qcow2 readonly:false\n"
23423 "\n"
23424 msgstr ""
23425
23426 # type: textblock
23427 #. type: textblock
23428 #: ../fish/guestfish.pod:533
23429 msgid ""
23430 "Each optional argument can appear at most once.  All optional arguments must "
23431 "appear after the required ones."
23432 msgstr ""
23433
23434 # type: =head1
23435 #. type: =head1
23436 #: ../fish/guestfish.pod:536
23437 msgid "NUMBERS"
23438 msgstr ""
23439
23440 # type: textblock
23441 #. type: textblock
23442 #: ../fish/guestfish.pod:538
23443 msgid ""
23444 "This section applies to all commands which can take integers as parameters."
23445 msgstr ""
23446
23447 # type: =head2
23448 #. type: =head2
23449 #: ../fish/guestfish.pod:541
23450 msgid "SIZE SUFFIX"
23451 msgstr ""
23452
23453 # type: textblock
23454 #. type: textblock
23455 #: ../fish/guestfish.pod:543
23456 msgid ""
23457 "When the command takes a parameter measured in bytes, you can use one of the "
23458 "following suffixes to specify kilobytes, megabytes and larger sizes:"
23459 msgstr ""
23460
23461 # type: =item
23462 #. type: =item
23463 #: ../fish/guestfish.pod:549
23464 msgid "B<k> or B<K> or B<KiB>"
23465 msgstr ""
23466
23467 # type: textblock
23468 #. type: textblock
23469 #: ../fish/guestfish.pod:551
23470 msgid "The size in kilobytes (multiplied by 1024)."
23471 msgstr ""
23472
23473 # type: =item
23474 #. type: =item
23475 #: ../fish/guestfish.pod:553
23476 msgid "B<KB>"
23477 msgstr ""
23478
23479 # type: textblock
23480 #. type: textblock
23481 #: ../fish/guestfish.pod:555
23482 msgid "The size in SI 1000 byte units."
23483 msgstr ""
23484
23485 # type: =item
23486 #. type: =item
23487 #: ../fish/guestfish.pod:557
23488 msgid "B<M> or B<MiB>"
23489 msgstr ""
23490
23491 # type: textblock
23492 #. type: textblock
23493 #: ../fish/guestfish.pod:559
23494 msgid "The size in megabytes (multiplied by 1048576)."
23495 msgstr ""
23496
23497 # type: =item
23498 #. type: =item
23499 #: ../fish/guestfish.pod:561
23500 msgid "B<MB>"
23501 msgstr ""
23502
23503 # type: textblock
23504 #. type: textblock
23505 #: ../fish/guestfish.pod:563
23506 msgid "The size in SI 1000000 byte units."
23507 msgstr ""
23508
23509 # type: =item
23510 #. type: =item
23511 #: ../fish/guestfish.pod:565
23512 msgid "B<G> or B<GiB>"
23513 msgstr ""
23514
23515 # type: textblock
23516 #. type: textblock
23517 #: ../fish/guestfish.pod:567
23518 msgid "The size in gigabytes (multiplied by 2**30)."
23519 msgstr ""
23520
23521 # type: =item
23522 #. type: =item
23523 #: ../fish/guestfish.pod:569
23524 msgid "B<GB>"
23525 msgstr ""
23526
23527 # type: textblock
23528 #. type: textblock
23529 #: ../fish/guestfish.pod:571
23530 msgid "The size in SI 10**9 byte units."
23531 msgstr ""
23532
23533 # type: =item
23534 #. type: =item
23535 #: ../fish/guestfish.pod:573
23536 msgid "B<T> or B<TiB>"
23537 msgstr ""
23538
23539 # type: textblock
23540 #. type: textblock
23541 #: ../fish/guestfish.pod:575
23542 msgid "The size in terabytes (multiplied by 2**40)."
23543 msgstr ""
23544
23545 # type: =item
23546 #. type: =item
23547 #: ../fish/guestfish.pod:577
23548 msgid "B<TB>"
23549 msgstr ""
23550
23551 # type: textblock
23552 #. type: textblock
23553 #: ../fish/guestfish.pod:579
23554 msgid "The size in SI 10**12 byte units."
23555 msgstr ""
23556
23557 # type: =item
23558 #. type: =item
23559 #: ../fish/guestfish.pod:581
23560 msgid "B<P> or B<PiB>"
23561 msgstr ""
23562
23563 # type: textblock
23564 #. type: textblock
23565 #: ../fish/guestfish.pod:583
23566 msgid "The size in petabytes (multiplied by 2**50)."
23567 msgstr ""
23568
23569 # type: =item
23570 #. type: =item
23571 #: ../fish/guestfish.pod:585
23572 msgid "B<PB>"
23573 msgstr ""
23574
23575 # type: textblock
23576 #. type: textblock
23577 #: ../fish/guestfish.pod:587
23578 msgid "The size in SI 10**15 byte units."
23579 msgstr ""
23580
23581 # type: =item
23582 #. type: =item
23583 #: ../fish/guestfish.pod:589
23584 msgid "B<E> or B<EiB>"
23585 msgstr ""
23586
23587 # type: textblock
23588 #. type: textblock
23589 #: ../fish/guestfish.pod:591
23590 msgid "The size in exabytes (multiplied by 2**60)."
23591 msgstr ""
23592
23593 # type: =item
23594 #. type: =item
23595 #: ../fish/guestfish.pod:593
23596 msgid "B<EB>"
23597 msgstr ""
23598
23599 # type: textblock
23600 #. type: textblock
23601 #: ../fish/guestfish.pod:595
23602 msgid "The size in SI 10**18 byte units."
23603 msgstr ""
23604
23605 # type: =item
23606 #. type: =item
23607 #: ../fish/guestfish.pod:597
23608 msgid "B<Z> or B<ZiB>"
23609 msgstr ""
23610
23611 # type: textblock
23612 #. type: textblock
23613 #: ../fish/guestfish.pod:599
23614 msgid "The size in zettabytes (multiplied by 2**70)."
23615 msgstr ""
23616
23617 # type: =item
23618 #. type: =item
23619 #: ../fish/guestfish.pod:601
23620 msgid "B<ZB>"
23621 msgstr ""
23622
23623 # type: textblock
23624 #. type: textblock
23625 #: ../fish/guestfish.pod:603
23626 msgid "The size in SI 10**21 byte units."
23627 msgstr ""
23628
23629 # type: =item
23630 #. type: =item
23631 #: ../fish/guestfish.pod:605
23632 msgid "B<Y> or B<YiB>"
23633 msgstr ""
23634
23635 # type: textblock
23636 #. type: textblock
23637 #: ../fish/guestfish.pod:607
23638 msgid "The size in yottabytes (multiplied by 2**80)."
23639 msgstr ""
23640
23641 # type: =item
23642 #. type: =item
23643 #: ../fish/guestfish.pod:609
23644 msgid "B<YB>"
23645 msgstr ""
23646
23647 # type: textblock
23648 #. type: textblock
23649 #: ../fish/guestfish.pod:611
23650 msgid "The size in SI 10**24 byte units."
23651 msgstr ""
23652
23653 # type: verbatim
23654 #. type: verbatim
23655 #: ../fish/guestfish.pod:617
23656 #, no-wrap
23657 msgid ""
23658 " truncate-size /file 1G\n"
23659 "\n"
23660 msgstr ""
23661
23662 # type: textblock
23663 #. type: textblock
23664 #: ../fish/guestfish.pod:619
23665 msgid "would truncate the file to 1 gigabyte."
23666 msgstr ""
23667
23668 # type: textblock
23669 #. type: textblock
23670 #: ../fish/guestfish.pod:621
23671 msgid ""
23672 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
23673 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
23674 "suffix will probably not do what you expect."
23675 msgstr ""
23676
23677 # type: =head2
23678 #. type: =head2
23679 #: ../fish/guestfish.pod:625
23680 msgid "OCTAL AND HEXADECIMAL NUMBERS"
23681 msgstr ""
23682
23683 # type: textblock
23684 #. type: textblock
23685 #: ../fish/guestfish.pod:627
23686 msgid ""
23687 "For specifying the radix (base) use the C convention: C<0> to prefix an "
23688 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
23689 msgstr ""
23690
23691 # type: verbatim
23692 #. type: verbatim
23693 #: ../fish/guestfish.pod:630
23694 #, no-wrap
23695 msgid ""
23696 " 1234      decimal number 1234\n"
23697 " 02322     octal number, equivalent to decimal 1234\n"
23698 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
23699 "\n"
23700 msgstr ""
23701
23702 # type: textblock
23703 #. type: textblock
23704 #: ../fish/guestfish.pod:634
23705 msgid ""
23706 "When using the C<chmod> command, you almost always want to specify an octal "
23707 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
23708 "L<chmod(1)> program):"
23709 msgstr ""
23710
23711 # type: verbatim
23712 #. type: verbatim
23713 #: ../fish/guestfish.pod:638
23714 #, no-wrap
23715 msgid ""
23716 " chmod 0777 /public  # OK\n"
23717 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
23718 "\n"
23719 msgstr ""
23720
23721 # type: textblock
23722 #. type: textblock
23723 #: ../fish/guestfish.pod:641
23724 msgid ""
23725 "Commands that return numbers usually print them in decimal, but some "
23726 "commands print numbers in other radices (eg. C<umask> prints the mode in "
23727 "octal, preceeded by C<0>)."
23728 msgstr ""
23729
23730 # type: =head1
23731 #. type: =head1
23732 #: ../fish/guestfish.pod:645
23733 msgid "WILDCARDS AND GLOBBING"
23734 msgstr ""
23735
23736 # type: textblock
23737 #. type: textblock
23738 #: ../fish/guestfish.pod:647
23739 msgid ""
23740 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
23741 "(globbing) by default.  So for example the following will not do what you "
23742 "expect:"
23743 msgstr ""
23744
23745 # type: verbatim
23746 #. type: verbatim
23747 #: ../fish/guestfish.pod:651
23748 #, no-wrap
23749 msgid ""
23750 " rm-rf /home/*\n"
23751 "\n"
23752 msgstr ""
23753
23754 # type: textblock
23755 #. type: textblock
23756 #: ../fish/guestfish.pod:653
23757 msgid ""
23758 "Assuming you don't have a directory called literally C</home/*> then the "
23759 "above command will return an error."
23760 msgstr ""
23761
23762 # type: textblock
23763 #. type: textblock
23764 #: ../fish/guestfish.pod:656
23765 msgid "To perform wildcard expansion, use the C<glob> command."
23766 msgstr ""
23767
23768 # type: verbatim
23769 #. type: verbatim
23770 #: ../fish/guestfish.pod:658
23771 #, no-wrap
23772 msgid ""
23773 " glob rm-rf /home/*\n"
23774 "\n"
23775 msgstr ""
23776
23777 # type: textblock
23778 #. type: textblock
23779 #: ../fish/guestfish.pod:660
23780 msgid ""
23781 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
23782 "many times), equivalent to:"
23783 msgstr ""
23784
23785 # type: verbatim
23786 #. type: verbatim
23787 #: ../fish/guestfish.pod:663
23788 #, no-wrap
23789 msgid ""
23790 " rm-rf /home/jim\n"
23791 " rm-rf /home/joe\n"
23792 " rm-rf /home/mary\n"
23793 "\n"
23794 msgstr ""
23795
23796 # type: textblock
23797 #. type: textblock
23798 #: ../fish/guestfish.pod:667
23799 msgid "C<glob> only works on simple guest paths and not on device names."
23800 msgstr ""
23801
23802 # type: textblock
23803 #. type: textblock
23804 #: ../fish/guestfish.pod:669
23805 msgid ""
23806 "If you have several parameters, each containing a wildcard, then glob will "
23807 "perform a Cartesian product."
23808 msgstr ""
23809
23810 # type: =head1
23811 #. type: =head1
23812 #: ../fish/guestfish.pod:672
23813 msgid "COMMENTS"
23814 msgstr ""
23815
23816 # type: textblock
23817 #. type: textblock
23818 #: ../fish/guestfish.pod:674
23819 msgid ""
23820 "Any line which starts with a I<#> character is treated as a comment and "
23821 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
23822 "a command.  For example:"
23823 msgstr ""
23824
23825 # type: verbatim
23826 #. type: verbatim
23827 #: ../fish/guestfish.pod:678
23828 #, no-wrap
23829 msgid ""
23830 " # this is a comment\n"
23831 "         # this is a comment\n"
23832 " foo # NOT a comment\n"
23833 "\n"
23834 msgstr ""
23835
23836 # type: textblock
23837 #. type: textblock
23838 #: ../fish/guestfish.pod:682
23839 msgid "Blank lines are also ignored."
23840 msgstr ""
23841
23842 # type: =head1
23843 #. type: =head1
23844 #: ../fish/guestfish.pod:684
23845 msgid "RUNNING COMMANDS LOCALLY"
23846 msgstr ""
23847
23848 # type: textblock
23849 #. type: textblock
23850 #: ../fish/guestfish.pod:686
23851 msgid ""
23852 "Any line which starts with a I<!> character is treated as a command sent to "
23853 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
23854 msgstr ""
23855
23856 # type: verbatim
23857 #. type: verbatim
23858 #: ../fish/guestfish.pod:690
23859 #, no-wrap
23860 msgid ""
23861 " !mkdir local\n"
23862 " tgz-out /remote local/remote-data.tar.gz\n"
23863 "\n"
23864 msgstr ""
23865
23866 # type: textblock
23867 #. type: textblock
23868 #: ../fish/guestfish.pod:693
23869 msgid ""
23870 "will create a directory C<local> on the host, and then export the contents "
23871 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
23872 "(See C<tgz-out>)."
23873 msgstr ""
23874
23875 # type: textblock
23876 #. type: textblock
23877 #: ../fish/guestfish.pod:697
23878 msgid ""
23879 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
23880 "effect, due to the way that subprocesses work in Unix."
23881 msgstr ""
23882
23883 #. type: =head2
23884 #: ../fish/guestfish.pod:700
23885 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
23886 msgstr ""
23887
23888 #. type: textblock
23889 #: ../fish/guestfish.pod:702
23890 msgid ""
23891 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
23892 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
23893 "and executed as guestfish commands."
23894 msgstr ""
23895
23896 #. type: textblock
23897 #: ../fish/guestfish.pod:706
23898 msgid ""
23899 "Thus you can use shell script to construct arbitrary guestfish commands "
23900 "which are then parsed by guestfish."
23901 msgstr ""
23902
23903 #. type: textblock
23904 #: ../fish/guestfish.pod:709
23905 msgid ""
23906 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
23907 "through C</foo.100>) using guestfish commands alone.  However this is simple "
23908 "if we use a shell script to create the guestfish commands for us:"
23909 msgstr ""
23910
23911 #. type: verbatim
23912 #: ../fish/guestfish.pod:714
23913 #, no-wrap
23914 msgid ""
23915 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
23916 "\n"
23917 msgstr ""
23918
23919 #. type: textblock
23920 #: ../fish/guestfish.pod:716
23921 msgid "or with names like C</foo.001>:"
23922 msgstr ""
23923
23924 #. type: verbatim
23925 #: ../fish/guestfish.pod:718
23926 #, no-wrap
23927 msgid ""
23928 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
23929 "\n"
23930 msgstr ""
23931
23932 #. type: textblock
23933 #: ../fish/guestfish.pod:720
23934 msgid ""
23935 "When using guestfish interactively it can be helpful to just run the shell "
23936 "script first (ie. remove the initial C<E<lt>> character so it is just an "
23937 "ordinary I<!> local command), see what guestfish commands it would run, and "
23938 "when you are happy with those prepend the C<E<lt>> character to run the "
23939 "guestfish commands for real."
23940 msgstr ""
23941
23942 # type: =head1
23943 #. type: =head1
23944 #: ../fish/guestfish.pod:726
23945 msgid "PIPES"
23946 msgstr ""
23947
23948 # type: textblock
23949 #. type: textblock
23950 #: ../fish/guestfish.pod:728
23951 msgid ""
23952 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
23953 "command (a guestfish command) to the second command (any host command).  For "
23954 "example:"
23955 msgstr ""
23956
23957 # type: verbatim
23958 #. type: verbatim
23959 #: ../fish/guestfish.pod:732
23960 #, no-wrap
23961 msgid ""
23962 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
23963 "\n"
23964 msgstr ""
23965
23966 # type: textblock
23967 #. type: textblock
23968 #: ../fish/guestfish.pod:734
23969 msgid ""
23970 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
23971 "program).  The above command would list all accounts in the guest filesystem "
23972 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
23973 msgstr ""
23974
23975 # type: verbatim
23976 #. type: verbatim
23977 #: ../fish/guestfish.pod:739
23978 #, no-wrap
23979 msgid ""
23980 " hexdump /bin/ls | head\n"
23981 " list-devices | tail -1\n"
23982 " tgz-out / - | tar ztf -\n"
23983 "\n"
23984 msgstr ""
23985
23986 # type: textblock
23987 #. type: textblock
23988 #: ../fish/guestfish.pod:743
23989 msgid ""
23990 "The space before the pipe symbol is required, any space after the pipe "
23991 "symbol is optional.  Everything after the pipe symbol is just passed "
23992 "straight to the host shell, so it can contain redirections, globs and "
23993 "anything else that makes sense on the host side."
23994 msgstr ""
23995
23996 # type: textblock
23997 #. type: textblock
23998 #: ../fish/guestfish.pod:748
23999 msgid ""
24000 "To use a literal argument which begins with a pipe symbol, you have to quote "
24001 "it, eg:"
24002 msgstr ""
24003
24004 # type: verbatim
24005 #. type: verbatim
24006 #: ../fish/guestfish.pod:751
24007 #, no-wrap
24008 msgid ""
24009 " echo \"|\"\n"
24010 "\n"
24011 msgstr ""
24012
24013 # type: =head1
24014 #. type: =head1
24015 #: ../fish/guestfish.pod:753
24016 msgid "HOME DIRECTORIES"
24017 msgstr ""
24018
24019 # type: textblock
24020 #. type: textblock
24021 #: ../fish/guestfish.pod:755
24022 msgid ""
24023 "If a parameter starts with the character C<~> then the tilde may be expanded "
24024 "as a home directory path (either C<~> for the current user's home directory, "
24025 "or C<~user> for another user)."
24026 msgstr ""
24027
24028 # type: textblock
24029 #. type: textblock
24030 #: ../fish/guestfish.pod:759
24031 msgid ""
24032 "Note that home directory expansion happens for users known I<on the host>, "
24033 "not in the guest filesystem."
24034 msgstr ""
24035
24036 # type: textblock
24037 #. type: textblock
24038 #: ../fish/guestfish.pod:762
24039 msgid ""
24040 "To use a literal argument which begins with a tilde, you have to quote it, "
24041 "eg:"
24042 msgstr ""
24043
24044 # type: verbatim
24045 #. type: verbatim
24046 #: ../fish/guestfish.pod:765
24047 #, no-wrap
24048 msgid ""
24049 " echo \"~\"\n"
24050 "\n"
24051 msgstr ""
24052
24053 # type: textblock
24054 #. type: textblock
24055 #: ../fish/guestfish.pod:769
24056 msgid ""
24057 "Libguestfs has some support for Linux guests encrypted according to the "
24058 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
24059 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
24060 "LUKS is supported."
24061 msgstr ""
24062
24063 # type: textblock
24064 #. type: textblock
24065 #: ../fish/guestfish.pod:774
24066 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
24067 msgstr ""
24068
24069 # type: verbatim
24070 #. type: verbatim
24071 #: ../fish/guestfish.pod:776
24072 #, no-wrap
24073 msgid ""
24074 " ><fs> vfs-type /dev/sda2\n"
24075 " crypto_LUKS\n"
24076 "\n"
24077 msgstr ""
24078
24079 # type: textblock
24080 #. type: textblock
24081 #: ../fish/guestfish.pod:779
24082 msgid ""
24083 "Then open those devices using L</luks-open>.  This creates a device-mapper "
24084 "device called C</dev/mapper/luksdev>."
24085 msgstr ""
24086
24087 # type: verbatim
24088 #. type: verbatim
24089 #: ../fish/guestfish.pod:782
24090 #, no-wrap
24091 msgid ""
24092 " ><fs> luks-open /dev/sda2 luksdev\n"
24093 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
24094 "\n"
24095 msgstr ""
24096
24097 # type: textblock
24098 #. type: textblock
24099 #: ../fish/guestfish.pod:785
24100 msgid ""
24101 "Finally you have to tell LVM to scan for volume groups on the newly created "
24102 "mapper device:"
24103 msgstr ""
24104
24105 # type: verbatim
24106 #. type: verbatim
24107 #: ../fish/guestfish.pod:788
24108 #, no-wrap
24109 msgid ""
24110 " vgscan\n"
24111 " vg-activate-all true\n"
24112 "\n"
24113 msgstr ""
24114
24115 # type: textblock
24116 #. type: textblock
24117 #: ../fish/guestfish.pod:791
24118 msgid "The logical volume(s) can now be mounted in the usual way."
24119 msgstr ""
24120
24121 # type: textblock
24122 #. type: textblock
24123 #: ../fish/guestfish.pod:793
24124 msgid ""
24125 "Before closing a LUKS device you must unmount any logical volumes on it and "
24126 "deactivate the volume groups by calling C<vg-activate false VG> on each "
24127 "one.  Then you can close the mapper device:"
24128 msgstr ""
24129
24130 # type: verbatim
24131 #. type: verbatim
24132 #: ../fish/guestfish.pod:797
24133 #, no-wrap
24134 msgid ""
24135 " vg-activate false /dev/VG\n"
24136 " luks-close /dev/mapper/luksdev\n"
24137 "\n"
24138 msgstr ""
24139
24140 # type: =head1
24141 #. type: =head1
24142 #: ../fish/guestfish.pod:800
24143 msgid "WINDOWS PATHS"
24144 msgstr ""
24145
24146 #. type: textblock
24147 #: ../fish/guestfish.pod:802
24148 msgid ""
24149 "If a path is prefixed with C<win:> then you can use Windows-style drive "
24150 "letters and paths (with some limitations).  The following commands are "
24151 "equivalent:"
24152 msgstr ""
24153
24154 # type: verbatim
24155 #. type: verbatim
24156 #: ../fish/guestfish.pod:806
24157 #, no-wrap
24158 msgid ""
24159 " file /WINDOWS/system32/config/system.LOG\n"
24160 "\n"
24161 msgstr ""
24162
24163 # type: verbatim
24164 #. type: verbatim
24165 #: ../fish/guestfish.pod:808
24166 #, no-wrap
24167 msgid ""
24168 " file win:\\windows\\system32\\config\\system.log\n"
24169 "\n"
24170 msgstr ""
24171
24172 #. type: verbatim
24173 #: ../fish/guestfish.pod:810
24174 #, no-wrap
24175 msgid ""
24176 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
24177 "\n"
24178 msgstr ""
24179
24180 #. type: textblock
24181 #: ../fish/guestfish.pod:812
24182 msgid ""
24183 "The parameter is rewritten \"behind the scenes\" by looking up the position "
24184 "where the drive is mounted, prepending that to the path, changing all "
24185 "backslash characters to forward slash, then resolving the result using L</"
24186 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
24187 "the parameter might be rewritten like this:"
24188 msgstr ""
24189
24190 #. type: verbatim
24191 #: ../fish/guestfish.pod:818
24192 #, no-wrap
24193 msgid ""
24194 " win:e:\\foo\\bar => /e/FOO/bar\n"
24195 "\n"
24196 msgstr ""
24197
24198 #. type: textblock
24199 #: ../fish/guestfish.pod:820
24200 msgid "This only works in argument positions that expect a path."
24201 msgstr ""
24202
24203 # type: =head1
24204 #. type: =head1
24205 #: ../fish/guestfish.pod:822
24206 msgid "UPLOADING AND DOWNLOADING FILES"
24207 msgstr ""
24208
24209 # type: textblock
24210 #. type: textblock
24211 #: ../fish/guestfish.pod:824
24212 msgid ""
24213 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
24214 "others which upload from or download to a local file, you can use the "
24215 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
24216 msgstr ""
24217
24218 # type: verbatim
24219 #. type: verbatim
24220 #: ../fish/guestfish.pod:828
24221 #, no-wrap
24222 msgid ""
24223 " upload - /foo\n"
24224 "\n"
24225 msgstr ""
24226
24227 # type: textblock
24228 #. type: textblock
24229 #: ../fish/guestfish.pod:830
24230 msgid ""
24231 "reads stdin and creates from that a file C</foo> in the disk image, and:"
24232 msgstr ""
24233
24234 # type: verbatim
24235 #. type: verbatim
24236 #: ../fish/guestfish.pod:833
24237 #, no-wrap
24238 msgid ""
24239 " tar-out /etc - | tar tf -\n"
24240 "\n"
24241 msgstr ""
24242
24243 # type: textblock
24244 #. type: textblock
24245 #: ../fish/guestfish.pod:835
24246 msgid ""
24247 "writes the tarball to stdout and then pipes that into the external \"tar\" "
24248 "command (see L</PIPES>)."
24249 msgstr ""
24250
24251 # type: textblock
24252 #. type: textblock
24253 #: ../fish/guestfish.pod:838
24254 msgid ""
24255 "When using C<-> to read from stdin, the input is read up to the end of "
24256 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
24257 "some arbitrary end marker:"
24258 msgstr ""
24259
24260 # type: verbatim
24261 #. type: verbatim
24262 #: ../fish/guestfish.pod:842
24263 #, no-wrap
24264 msgid ""
24265 " upload -<<END /foo\n"
24266 " input line 1\n"
24267 " input line 2\n"
24268 " input line 3\n"
24269 " END\n"
24270 "\n"
24271 msgstr ""
24272
24273 # type: textblock
24274 #. type: textblock
24275 #: ../fish/guestfish.pod:848
24276 msgid ""
24277 "Any string of characters can be used instead of C<END>.  The end marker must "
24278 "appear on a line of its own, without any preceeding or following characters "
24279 "(not even spaces)."
24280 msgstr ""
24281
24282 # type: textblock
24283 #. type: textblock
24284 #: ../fish/guestfish.pod:852
24285 msgid ""
24286 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
24287 "upload local files (so-called \"FileIn\" parameters in the generator)."
24288 msgstr ""
24289
24290 # type: =head1
24291 #. type: =head1
24292 #: ../fish/guestfish.pod:855
24293 msgid "EXIT ON ERROR BEHAVIOUR"
24294 msgstr ""
24295
24296 # type: textblock
24297 #. type: textblock
24298 #: ../fish/guestfish.pod:857
24299 msgid ""
24300 "By default, guestfish will ignore any errors when in interactive mode (ie. "
24301 "taking commands from a human over a tty), and will exit on the first error "
24302 "in non-interactive mode (scripts, commands given on the command line)."
24303 msgstr ""
24304
24305 # type: textblock
24306 #. type: textblock
24307 #: ../fish/guestfish.pod:862
24308 msgid ""
24309 "If you prefix a command with a I<-> character, then that command will not "
24310 "cause guestfish to exit, even if that (one) command returns an error."
24311 msgstr ""
24312
24313 # type: =head1
24314 #. type: =head1
24315 #: ../fish/guestfish.pod:866
24316 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
24317 msgstr ""
24318
24319 # type: textblock
24320 #. type: textblock
24321 #: ../fish/guestfish.pod:868
24322 msgid ""
24323 "Guestfish can be remote-controlled over a socket.  This is useful "
24324 "particularly in shell scripts where you want to make several different "
24325 "changes to a filesystem, but you don't want the overhead of starting up a "
24326 "guestfish process each time."
24327 msgstr ""
24328
24329 # type: textblock
24330 #. type: textblock
24331 #: ../fish/guestfish.pod:873
24332 msgid "Start a guestfish server process using:"
24333 msgstr ""
24334
24335 # type: verbatim
24336 #. type: verbatim
24337 #: ../fish/guestfish.pod:875
24338 #, no-wrap
24339 msgid ""
24340 " eval \"`guestfish --listen`\"\n"
24341 "\n"
24342 msgstr ""
24343
24344 # type: textblock
24345 #. type: textblock
24346 #: ../fish/guestfish.pod:877
24347 msgid "and then send it commands by doing:"
24348 msgstr ""
24349
24350 # type: verbatim
24351 #. type: verbatim
24352 #: ../fish/guestfish.pod:879
24353 #, no-wrap
24354 msgid ""
24355 " guestfish --remote cmd [...]\n"
24356 "\n"
24357 msgstr ""
24358
24359 # type: textblock
24360 #. type: textblock
24361 #: ../fish/guestfish.pod:881
24362 msgid "To cause the server to exit, send it the exit command:"
24363 msgstr ""
24364
24365 # type: verbatim
24366 #. type: verbatim
24367 #: ../fish/guestfish.pod:883
24368 #, no-wrap
24369 msgid ""
24370 " guestfish --remote exit\n"
24371 "\n"
24372 msgstr ""
24373
24374 # type: textblock
24375 #. type: textblock
24376 #: ../fish/guestfish.pod:885
24377 msgid ""
24378 "Note that the server will normally exit if there is an error in a command.  "
24379 "You can change this in the usual way.  See section L</EXIT ON ERROR "
24380 "BEHAVIOUR>."
24381 msgstr ""
24382
24383 # type: =head2
24384 #. type: =head2
24385 #: ../fish/guestfish.pod:889
24386 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
24387 msgstr ""
24388
24389 # type: textblock
24390 #. type: textblock
24391 #: ../fish/guestfish.pod:891
24392 msgid ""
24393 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
24394 "is how the I<--remote> option knows where to send the commands.  You can "
24395 "have several guestfish listener processes running using:"
24396 msgstr ""
24397
24398 # type: verbatim
24399 #. type: verbatim
24400 #: ../fish/guestfish.pod:895
24401 #, no-wrap
24402 msgid ""
24403 " eval \"`guestfish --listen`\"\n"
24404 " pid1=$GUESTFISH_PID\n"
24405 " eval \"`guestfish --listen`\"\n"
24406 " pid2=$GUESTFISH_PID\n"
24407 " ...\n"
24408 " guestfish --remote=$pid1 cmd\n"
24409 " guestfish --remote=$pid2 cmd\n"
24410 "\n"
24411 msgstr ""
24412
24413 # type: =head2
24414 #. type: =head2
24415 #: ../fish/guestfish.pod:903
24416 msgid "REMOTE CONTROL AND CSH"
24417 msgstr ""
24418
24419 # type: textblock
24420 #. type: textblock
24421 #: ../fish/guestfish.pod:905
24422 msgid ""
24423 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
24424 "option:"
24425 msgstr ""
24426
24427 # type: verbatim
24428 #. type: verbatim
24429 #: ../fish/guestfish.pod:908
24430 #, no-wrap
24431 msgid ""
24432 " eval \"`guestfish --listen --csh`\"\n"
24433 "\n"
24434 msgstr ""
24435
24436 # type: =head2
24437 #. type: =head2
24438 #: ../fish/guestfish.pod:910
24439 msgid "REMOTE CONTROL DETAILS"
24440 msgstr ""
24441
24442 # type: textblock
24443 #. type: textblock
24444 #: ../fish/guestfish.pod:912
24445 msgid ""
24446 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
24447 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
24448 "and C<$PID> is the process ID of the server."
24449 msgstr ""
24450
24451 # type: textblock
24452 #. type: textblock
24453 #: ../fish/guestfish.pod:916
24454 msgid "Guestfish client and server versions must match exactly."
24455 msgstr ""
24456
24457 # type: =head1
24458 #. type: =head1
24459 #: ../fish/guestfish.pod:918
24460 msgid "PREPARED DISK IMAGES"
24461 msgstr ""
24462
24463 # type: textblock
24464 #. type: textblock
24465 #: ../fish/guestfish.pod:920
24466 msgid ""
24467 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
24468 "preformatted disk images that guestfish can make for you to save typing.  "
24469 "This is particularly useful for testing purposes.  This option is used "
24470 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
24471 "can be mixed with I<-a>)."
24472 msgstr ""
24473
24474 # type: textblock
24475 #. type: textblock
24476 #: ../fish/guestfish.pod:926
24477 msgid ""
24478 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
24479 "the second and so on.  Existing files in the current directory are "
24480 "I<overwritten>."
24481 msgstr ""
24482
24483 # type: textblock
24484 #. type: textblock
24485 #: ../fish/guestfish.pod:930
24486 msgid ""
24487 "The type briefly describes how the disk should be sized, partitioned, how "
24488 "filesystem(s) should be created, and how content should be added.  "
24489 "Optionally the type can be followed by extra parameters, separated by C<:> "
24490 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
24491 "allocated disk, containing a single partition, with the partition formatted "
24492 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
24493 "disk instead."
24494 msgstr ""
24495
24496 # type: textblock
24497 #. type: textblock
24498 #: ../fish/guestfish.pod:938
24499 msgid "To list the available types and any extra parameters they take, run:"
24500 msgstr ""
24501
24502 # type: textblock
24503 #. type: textblock
24504 #: ../fish/guestfish.pod:942
24505 msgid ""
24506 "Note that the prepared filesystem is not mounted.  You would usually have to "
24507 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
24508 msgstr ""
24509
24510 # type: textblock
24511 #. type: textblock
24512 #: ../fish/guestfish.pod:946
24513 msgid ""
24514 "If any I<-N> or I<--new> options are given, the guest is automatically "
24515 "launched."
24516 msgstr ""
24517
24518 # type: textblock
24519 #. type: textblock
24520 #: ../fish/guestfish.pod:951
24521 msgid "Create a 100MB disk with an ext4-formatted partition:"
24522 msgstr ""
24523
24524 # type: verbatim
24525 #. type: verbatim
24526 #: ../fish/guestfish.pod:953
24527 #, no-wrap
24528 msgid ""
24529 " guestfish -N fs:ext4\n"
24530 "\n"
24531 msgstr ""
24532
24533 # type: textblock
24534 #. type: textblock
24535 #: ../fish/guestfish.pod:955
24536 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
24537 msgstr ""
24538
24539 # type: verbatim
24540 #. type: verbatim
24541 #: ../fish/guestfish.pod:957
24542 #, no-wrap
24543 msgid ""
24544 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
24545 "\n"
24546 msgstr ""
24547
24548 # type: textblock
24549 #. type: textblock
24550 #: ../fish/guestfish.pod:959
24551 msgid "Create a blank 200MB disk:"
24552 msgstr ""
24553
24554 # type: verbatim
24555 #. type: verbatim
24556 #: ../fish/guestfish.pod:961
24557 #, no-wrap
24558 msgid ""
24559 " guestfish -N disk:200M\n"
24560 "\n"
24561 msgstr ""
24562
24563 # type: =head1
24564 #. type: =head1
24565 #: ../fish/guestfish.pod:963
24566 msgid "PROGRESS BARS"
24567 msgstr ""
24568
24569 # type: textblock
24570 #. type: textblock
24571 #: ../fish/guestfish.pod:965
24572 msgid ""
24573 "Some (not all) long-running commands send progress notification messages as "
24574 "they are running.  Guestfish turns these messages into progress bars."
24575 msgstr ""
24576
24577 # type: textblock
24578 #. type: textblock
24579 #: ../fish/guestfish.pod:969
24580 msgid ""
24581 "When a command that supports progress bars takes longer than two seconds to "
24582 "run, and if progress bars are enabled, then you will see one appearing below "
24583 "the command:"
24584 msgstr ""
24585
24586 # type: verbatim
24587 #. type: verbatim
24588 #: ../fish/guestfish.pod:973
24589 #, no-wrap
24590 msgid ""
24591 " ><fs> copy-size /large-file /another-file 2048M\n"
24592 " / 10% [#####-----------------------------------------] 00:30\n"
24593 "\n"
24594 msgstr ""
24595
24596 # type: textblock
24597 #. type: textblock
24598 #: ../fish/guestfish.pod:976
24599 msgid ""
24600 "The spinner on the left hand side moves round once for every progress "
24601 "notification received from the backend.  This is a (reasonably) golden "
24602 "assurance that the command is \"doing something\" even if the progress bar "
24603 "is not moving, because the command is able to send the progress "
24604 "notifications.  When the bar reaches 100% and the command finishes, the "
24605 "spinner disappears."
24606 msgstr ""
24607
24608 # type: textblock
24609 #. type: textblock
24610 #: ../fish/guestfish.pod:983
24611 msgid ""
24612 "Progress bars are enabled by default when guestfish is used interactively.  "
24613 "You can enable them even for non-interactive modes using I<--progress-bars>, "
24614 "and you can disable them completely using I<--no-progress-bars>."
24615 msgstr ""
24616
24617 # type: =head1
24618 #. type: =head1
24619 #: ../fish/guestfish.pod:988
24620 msgid "GUESTFISH COMMANDS"
24621 msgstr ""
24622
24623 # type: textblock
24624 #. type: textblock
24625 #: ../fish/guestfish.pod:990
24626 msgid ""
24627 "The commands in this section are guestfish convenience commands, in other "
24628 "words, they are not part of the L<guestfs(3)> API."
24629 msgstr ""
24630
24631 # type: =head2
24632 #. type: =head2
24633 #: ../fish/guestfish.pod:993
24634 msgid "help"
24635 msgstr ""
24636
24637 # type: verbatim
24638 #. type: verbatim
24639 #: ../fish/guestfish.pod:995
24640 #, no-wrap
24641 msgid ""
24642 " help\n"
24643 " help cmd\n"
24644 "\n"
24645 msgstr ""
24646
24647 # type: textblock
24648 #. type: textblock
24649 #: ../fish/guestfish.pod:998
24650 msgid "Without any parameter, this provides general help."
24651 msgstr ""
24652
24653 # type: textblock
24654 #. type: textblock
24655 #: ../fish/guestfish.pod:1000
24656 msgid "With a C<cmd> parameter, this displays detailed help for that command."
24657 msgstr ""
24658
24659 # type: =head2
24660 #. type: =head2
24661 #: ../fish/guestfish.pod:1002
24662 msgid "quit | exit"
24663 msgstr ""
24664
24665 # type: textblock
24666 #. type: textblock
24667 #: ../fish/guestfish.pod:1004
24668 msgid "This exits guestfish.  You can also use C<^D> key."
24669 msgstr ""
24670
24671 # type: textblock
24672 #. type: textblock
24673 #: ../fish/guestfish.pod:1006
24674 msgid "@FISH_COMMANDS@"
24675 msgstr ""
24676
24677 # type: =head1
24678 #. type: =head1
24679 #: ../fish/guestfish.pod:1008
24680 msgid "COMMANDS"
24681 msgstr ""
24682
24683 # type: =head1
24684 #. type: =head1
24685 #: ../fish/guestfish.pod:1012 ../test-tool/libguestfs-test-tool.pod:77
24686 msgid "EXIT CODE"
24687 msgstr ""
24688
24689 # type: textblock
24690 #. type: textblock
24691 #: ../fish/guestfish.pod:1014
24692 msgid ""
24693 "guestfish returns 0 if the commands completed without error, or 1 if there "
24694 "was an error."
24695 msgstr ""
24696
24697 # type: =item
24698 #. type: =item
24699 #: ../fish/guestfish.pod:1021
24700 msgid "EDITOR"
24701 msgstr ""
24702
24703 # type: textblock
24704 #. type: textblock
24705 #: ../fish/guestfish.pod:1023
24706 msgid ""
24707 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
24708 "C<vi>."
24709 msgstr ""
24710
24711 #. type: =item
24712 #: ../fish/guestfish.pod:1026
24713 msgid "GUESTFISH_DISPLAY_IMAGE"
24714 msgstr ""
24715
24716 #. type: textblock
24717 #: ../fish/guestfish.pod:1028
24718 msgid ""
24719 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
24720 "If not set, it uses L<display(1)>."
24721 msgstr ""
24722
24723 # type: =item
24724 #. type: =item
24725 #: ../fish/guestfish.pod:1031
24726 msgid "GUESTFISH_PID"
24727 msgstr ""
24728
24729 # type: textblock
24730 #. type: textblock
24731 #: ../fish/guestfish.pod:1033
24732 msgid ""
24733 "Used with the I<--remote> option to specify the remote guestfish process to "
24734 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
24735 msgstr ""
24736
24737 # type: =item
24738 #. type: =item
24739 #: ../fish/guestfish.pod:1037
24740 msgid "HEXEDITOR"
24741 msgstr ""
24742
24743 # type: textblock
24744 #. type: textblock
24745 #: ../fish/guestfish.pod:1039
24746 msgid ""
24747 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
24748 "not specified, the external L<hexedit(1)> program is used."
24749 msgstr ""
24750
24751 # type: =item
24752 #. type: =item
24753 #: ../fish/guestfish.pod:1043
24754 msgid "HOME"
24755 msgstr ""
24756
24757 # type: textblock
24758 #. type: textblock
24759 #: ../fish/guestfish.pod:1045
24760 msgid ""
24761 "If compiled with GNU readline support, various files in the home directory "
24762 "can be used.  See L</FILES>."
24763 msgstr ""
24764
24765 # type: textblock
24766 #. type: textblock
24767 #: ../fish/guestfish.pod:1054
24768 msgid ""
24769 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
24770 "effect as using the B<-v> option."
24771 msgstr ""
24772
24773 # type: textblock
24774 #. type: textblock
24775 #: ../fish/guestfish.pod:1066
24776 msgid ""
24777 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
24778 "the discussion of paths in L<guestfs(3)>."
24779 msgstr ""
24780
24781 # type: textblock
24782 #. type: textblock
24783 #: ../fish/guestfish.pod:1077
24784 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
24785 msgstr ""
24786
24787 # type: =item
24788 #. type: =item
24789 #: ../fish/guestfish.pod:1079
24790 msgid "PAGER"
24791 msgstr ""
24792
24793 # type: textblock
24794 #. type: textblock
24795 #: ../fish/guestfish.pod:1081
24796 msgid ""
24797 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
24798 "C<more>."
24799 msgstr ""
24800
24801 # type: =head1
24802 #. type: =head1
24803 #: ../fish/guestfish.pod:1097 ../fuse/guestmount.pod:264
24804 msgid "FILES"
24805 msgstr ""
24806
24807 #. type: =item
24808 #: ../fish/guestfish.pod:1101 ../fuse/guestmount.pod:268
24809 msgid "$HOME/.libguestfs-tools.rc"
24810 msgstr ""
24811
24812 #. type: =item
24813 #: ../fish/guestfish.pod:1103 ../fuse/guestmount.pod:270
24814 msgid "/etc/libguestfs-tools.conf"
24815 msgstr ""
24816
24817 #. type: textblock
24818 #: ../fish/guestfish.pod:1105 ../fuse/guestmount.pod:272
24819 msgid ""
24820 "This configuration file controls the default read-only or read-write mode "
24821 "(I<--ro> or I<--rw>)."
24822 msgstr ""
24823
24824 #. type: textblock
24825 #: ../fish/guestfish.pod:1108
24826 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
24827 msgstr ""
24828
24829 # type: =item
24830 #. type: =item
24831 #: ../fish/guestfish.pod:1110
24832 msgid "$HOME/.guestfish"
24833 msgstr ""
24834
24835 # type: textblock
24836 #. type: textblock
24837 #: ../fish/guestfish.pod:1112
24838 msgid ""
24839 "If compiled with GNU readline support, then the command history is saved in "
24840 "this file."
24841 msgstr ""
24842
24843 # type: =item
24844 #. type: =item
24845 #: ../fish/guestfish.pod:1115
24846 msgid "$HOME/.inputrc"
24847 msgstr ""
24848
24849 # type: =item
24850 #. type: =item
24851 #: ../fish/guestfish.pod:1117
24852 msgid "/etc/inputrc"
24853 msgstr ""
24854
24855 # type: textblock
24856 #. type: textblock
24857 #: ../fish/guestfish.pod:1119
24858 msgid ""
24859 "If compiled with GNU readline support, then these files can be used to "
24860 "configure readline.  For further information, please see L<readline(3)/"
24861 "INITIALIZATION FILE>."
24862 msgstr ""
24863
24864 # type: textblock
24865 #. type: textblock
24866 #: ../fish/guestfish.pod:1123
24867 msgid "To write rules which only apply to guestfish, use:"
24868 msgstr ""
24869
24870 # type: verbatim
24871 #. type: verbatim
24872 #: ../fish/guestfish.pod:1125
24873 #, no-wrap
24874 msgid ""
24875 " $if guestfish\n"
24876 " ...\n"
24877 " $endif\n"
24878 "\n"
24879 msgstr ""
24880
24881 # type: textblock
24882 #. type: textblock
24883 #: ../fish/guestfish.pod:1129
24884 msgid ""
24885 "Variables that you can set in inputrc that change the behaviour of guestfish "
24886 "in useful ways include:"
24887 msgstr ""
24888
24889 # type: =item
24890 #. type: =item
24891 #: ../fish/guestfish.pod:1134
24892 msgid "completion-ignore-case (default: on)"
24893 msgstr ""
24894
24895 # type: textblock
24896 #. type: textblock
24897 #: ../fish/guestfish.pod:1136
24898 msgid ""
24899 "By default, guestfish will ignore case when tab-completing paths on the "
24900 "disk.  Use:"
24901 msgstr ""
24902
24903 # type: verbatim
24904 #. type: verbatim
24905 #: ../fish/guestfish.pod:1139
24906 #, no-wrap
24907 msgid ""
24908 " set completion-ignore-case off\n"
24909 "\n"
24910 msgstr ""
24911
24912 # type: textblock
24913 #. type: textblock
24914 #: ../fish/guestfish.pod:1141
24915 msgid "to make guestfish case sensitive."
24916 msgstr ""
24917
24918 # type: =item
24919 #. type: =item
24920 #: ../fish/guestfish.pod:1145
24921 msgid "test1.img"
24922 msgstr ""
24923
24924 # type: =item
24925 #. type: =item
24926 #: ../fish/guestfish.pod:1147
24927 msgid "test2.img (etc)"
24928 msgstr ""
24929
24930 #. type: textblock
24931 #: ../fish/guestfish.pod:1149
24932 msgid ""
24933 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
24934 "will be created in the file C<test1.img> in the current directory.  The "
24935 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
24936 "the same name will be overwritten."
24937 msgstr ""
24938
24939 #. type: textblock
24940 #: ../fish/guestfish.pod:1158
24941 msgid ""
24942 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
24943 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
24944 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
24945 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
24946 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
24947 ">, L<display(1)>, L<hexedit(1)>."
24948 msgstr ""
24949
24950 # type: textblock
24951 #. type: textblock
24952 #: ../fish/guestfish.pod:1189 ../test-tool/libguestfs-test-tool.pod:102
24953 #: ../fuse/guestmount.pod:299 ../tools/virt-win-reg.pl:778
24954 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:309
24955 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:277
24956 msgid ""
24957 "This program is free software; you can redistribute it and/or modify it "
24958 "under the terms of the GNU General Public License as published by the Free "
24959 "Software Foundation; either version 2 of the License, or (at your option) "
24960 "any later version."
24961 msgstr ""
24962
24963 # type: textblock
24964 #. type: textblock
24965 #: ../fish/guestfish.pod:1194 ../test-tool/libguestfs-test-tool.pod:107
24966 #: ../fuse/guestmount.pod:304 ../tools/virt-win-reg.pl:783
24967 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:314
24968 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:282
24969 msgid ""
24970 "This program is distributed in the hope that it will be useful, but WITHOUT "
24971 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
24972 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
24973 "more details."
24974 msgstr ""
24975
24976 # type: textblock
24977 #. type: textblock
24978 #: ../fish/guestfish.pod:1199 ../test-tool/libguestfs-test-tool.pod:112
24979 #: ../fuse/guestmount.pod:309 ../tools/virt-win-reg.pl:788
24980 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:319
24981 #: ../tools/virt-make-fs.pl:582 ../tools/virt-list-partitions.pl:287
24982 msgid ""
24983 "You should have received a copy of the GNU General Public License along with "
24984 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
24985 "Ave, Cambridge, MA 02139, USA."
24986 msgstr ""
24987
24988 # type: =head2
24989 #. type: =head2
24990 #: ../fish/guestfish-actions.pod:1
24991 msgid "add-cdrom"
24992 msgstr ""
24993
24994 # type: verbatim
24995 #. type: verbatim
24996 #: ../fish/guestfish-actions.pod:3
24997 #, no-wrap
24998 msgid ""
24999 " add-cdrom filename\n"
25000 "\n"
25001 msgstr ""
25002
25003 # type: textblock
25004 #. type: textblock
25005 #: ../fish/guestfish-actions.pod:15
25006 msgid ""
25007 "This call checks for the existence of C<filename>.  This stops you from "
25008 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25009 "and C<http:> URLs.  To specify those, use the general L</config> call "
25010 "instead."
25011 msgstr ""
25012
25013 # type: textblock
25014 #. type: textblock
25015 #: ../fish/guestfish-actions.pod:22
25016 msgid ""
25017 "If you just want to add an ISO file (often you use this as an efficient way "
25018 "to transfer large files into the guest), then you should probably use L</add-"
25019 "drive-ro> instead."
25020 msgstr ""
25021
25022 # type: =head2
25023 #. type: =head2
25024 #: ../fish/guestfish-actions.pod:35
25025 msgid "add-domain"
25026 msgstr ""
25027
25028 # type: =head2
25029 #. type: =head2
25030 #: ../fish/guestfish-actions.pod:37
25031 msgid "domain"
25032 msgstr ""
25033
25034 #. type: verbatim
25035 #: ../fish/guestfish-actions.pod:39
25036 #, no-wrap
25037 msgid ""
25038 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
25039 "\n"
25040 msgstr ""
25041
25042 # type: textblock
25043 #. type: textblock
25044 #: ../fish/guestfish-actions.pod:41
25045 msgid ""
25046 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
25047 "It works by connecting to libvirt, requesting the domain and domain XML from "
25048 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
25049 msgstr ""
25050
25051 # type: textblock
25052 #. type: textblock
25053 #: ../fish/guestfish-actions.pod:76
25054 msgid ""
25055 "The other optional parameters are passed directly through to L</add-drive-"
25056 "opts>."
25057 msgstr ""
25058
25059 # type: textblock
25060 #. type: textblock
25061 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
25062 #: ../fish/guestfish-actions.pod:1937 ../fish/guestfish-actions.pod:3103
25063 #: ../fish/guestfish-actions.pod:3276 ../fish/guestfish-actions.pod:3411
25064 msgid ""
25065 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
25066 msgstr ""
25067
25068 # type: =head2
25069 #. type: =head2
25070 #: ../fish/guestfish-actions.pod:81
25071 msgid "add-drive"
25072 msgstr ""
25073
25074 # type: verbatim
25075 #. type: verbatim
25076 #: ../fish/guestfish-actions.pod:83
25077 #, no-wrap
25078 msgid ""
25079 " add-drive filename\n"
25080 "\n"
25081 msgstr ""
25082
25083 # type: textblock
25084 #. type: textblock
25085 #: ../fish/guestfish-actions.pod:85
25086 msgid ""
25087 "This function is the equivalent of calling L</add-drive-opts> with no "
25088 "optional parameters, so the disk is added writable, with the format being "
25089 "detected automatically."
25090 msgstr ""
25091
25092 # type: textblock
25093 #. type: textblock
25094 #: ../fish/guestfish-actions.pod:89
25095 msgid ""
25096 "Automatic detection of the format opens you up to a potential security hole "
25097 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
25098 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
25099 "you should think about replacing calls to this function with calls to L</add-"
25100 "drive-opts>, and specifying the format."
25101 msgstr ""
25102
25103 # type: =head2
25104 #. type: =head2
25105 #: ../fish/guestfish-actions.pod:96
25106 msgid "add-drive-opts"
25107 msgstr ""
25108
25109 # type: =head2
25110 #. type: =head2
25111 #: ../fish/guestfish-actions.pod:98
25112 msgid "add"
25113 msgstr ""
25114
25115 # type: verbatim
25116 #. type: verbatim
25117 #: ../fish/guestfish-actions.pod:100
25118 #, no-wrap
25119 msgid ""
25120 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
25121 "\n"
25122 msgstr ""
25123
25124 # type: textblock
25125 #. type: textblock
25126 #: ../fish/guestfish-actions.pod:127
25127 msgid ""
25128 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
25129 "add-drive-ro>) then the format is automatically detected.  Possible formats "
25130 "include C<raw> and C<qcow2>."
25131 msgstr ""
25132
25133 # type: textblock
25134 #. type: textblock
25135 #: ../fish/guestfish-actions.pod:138
25136 msgid ""
25137 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
25138 "add-drive-with-if> call (q.v.)"
25139 msgstr ""
25140
25141 # type: =head2
25142 #. type: =head2
25143 #: ../fish/guestfish-actions.pod:145
25144 msgid "add-drive-ro"
25145 msgstr ""
25146
25147 # type: =head2
25148 #. type: =head2
25149 #: ../fish/guestfish-actions.pod:147
25150 msgid "add-ro"
25151 msgstr ""
25152
25153 # type: verbatim
25154 #. type: verbatim
25155 #: ../fish/guestfish-actions.pod:149
25156 #, no-wrap
25157 msgid ""
25158 " add-drive-ro filename\n"
25159 "\n"
25160 msgstr ""
25161
25162 # type: textblock
25163 #. type: textblock
25164 #: ../fish/guestfish-actions.pod:151
25165 msgid ""
25166 "This function is the equivalent of calling L</add-drive-opts> with the "
25167 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
25168 "is added read-only, with the format being detected automatically."
25169 msgstr ""
25170
25171 # type: =head2
25172 #. type: =head2
25173 #: ../fish/guestfish-actions.pod:156
25174 msgid "add-drive-ro-with-if"
25175 msgstr ""
25176
25177 # type: verbatim
25178 #. type: verbatim
25179 #: ../fish/guestfish-actions.pod:158
25180 #, no-wrap
25181 msgid ""
25182 " add-drive-ro-with-if filename iface\n"
25183 "\n"
25184 msgstr ""
25185
25186 # type: textblock
25187 #. type: textblock
25188 #: ../fish/guestfish-actions.pod:160
25189 msgid ""
25190 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
25191 "interface emulation to use at run time."
25192 msgstr ""
25193
25194 # type: =head2
25195 #. type: =head2
25196 #: ../fish/guestfish-actions.pod:170
25197 msgid "add-drive-with-if"
25198 msgstr ""
25199
25200 # type: verbatim
25201 #. type: verbatim
25202 #: ../fish/guestfish-actions.pod:172
25203 #, no-wrap
25204 msgid ""
25205 " add-drive-with-if filename iface\n"
25206 "\n"
25207 msgstr ""
25208
25209 # type: textblock
25210 #. type: textblock
25211 #: ../fish/guestfish-actions.pod:174
25212 msgid ""
25213 "This is the same as L</add-drive> but it allows you to specify the QEMU "
25214 "interface emulation to use at run time."
25215 msgstr ""
25216
25217 # type: =head2
25218 #. type: =head2
25219 #: ../fish/guestfish-actions.pod:184
25220 msgid "aug-clear"
25221 msgstr ""
25222
25223 # type: verbatim
25224 #. type: verbatim
25225 #: ../fish/guestfish-actions.pod:186
25226 #, no-wrap
25227 msgid ""
25228 " aug-clear augpath\n"
25229 "\n"
25230 msgstr ""
25231
25232 # type: =head2
25233 #. type: =head2
25234 #: ../fish/guestfish-actions.pod:191
25235 msgid "aug-close"
25236 msgstr ""
25237
25238 # type: verbatim
25239 #. type: verbatim
25240 #: ../fish/guestfish-actions.pod:193
25241 #, no-wrap
25242 msgid ""
25243 " aug-close\n"
25244 "\n"
25245 msgstr ""
25246
25247 # type: textblock
25248 #. type: textblock
25249 #: ../fish/guestfish-actions.pod:195
25250 msgid ""
25251 "Close the current Augeas handle and free up any resources used by it.  After "
25252 "calling this, you have to call L</aug-init> again before you can use any "
25253 "other Augeas functions."
25254 msgstr ""
25255
25256 # type: =head2
25257 #. type: =head2
25258 #: ../fish/guestfish-actions.pod:200
25259 msgid "aug-defnode"
25260 msgstr ""
25261
25262 # type: verbatim
25263 #. type: verbatim
25264 #: ../fish/guestfish-actions.pod:202
25265 #, no-wrap
25266 msgid ""
25267 " aug-defnode name expr val\n"
25268 "\n"
25269 msgstr ""
25270
25271 # type: textblock
25272 #. type: textblock
25273 #: ../fish/guestfish-actions.pod:207
25274 msgid ""
25275 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25276 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
25277 "containing that single node."
25278 msgstr ""
25279
25280 # type: =head2
25281 #. type: =head2
25282 #: ../fish/guestfish-actions.pod:215
25283 msgid "aug-defvar"
25284 msgstr ""
25285
25286 # type: verbatim
25287 #. type: verbatim
25288 #: ../fish/guestfish-actions.pod:217
25289 #, no-wrap
25290 msgid ""
25291 " aug-defvar name expr\n"
25292 "\n"
25293 msgstr ""
25294
25295 # type: =head2
25296 #. type: =head2
25297 #: ../fish/guestfish-actions.pod:226
25298 msgid "aug-get"
25299 msgstr ""
25300
25301 # type: verbatim
25302 #. type: verbatim
25303 #: ../fish/guestfish-actions.pod:228
25304 #, no-wrap
25305 msgid ""
25306 " aug-get augpath\n"
25307 "\n"
25308 msgstr ""
25309
25310 # type: =head2
25311 #. type: =head2
25312 #: ../fish/guestfish-actions.pod:233
25313 msgid "aug-init"
25314 msgstr ""
25315
25316 # type: verbatim
25317 #. type: verbatim
25318 #: ../fish/guestfish-actions.pod:235
25319 #, no-wrap
25320 msgid ""
25321 " aug-init root flags\n"
25322 "\n"
25323 msgstr ""
25324
25325 # type: textblock
25326 #. type: textblock
25327 #: ../fish/guestfish-actions.pod:241
25328 msgid "You must call this before using any other L</aug-*> commands."
25329 msgstr ""
25330
25331 # type: textblock
25332 #. type: textblock
25333 #: ../fish/guestfish-actions.pod:276
25334 msgid "Do not load the tree in L</aug-init>."
25335 msgstr ""
25336
25337 # type: textblock
25338 #. type: textblock
25339 #: ../fish/guestfish-actions.pod:280
25340 msgid "To close the handle, you can call L</aug-close>."
25341 msgstr ""
25342
25343 # type: =head2
25344 #. type: =head2
25345 #: ../fish/guestfish-actions.pod:284
25346 msgid "aug-insert"
25347 msgstr ""
25348
25349 # type: verbatim
25350 #. type: verbatim
25351 #: ../fish/guestfish-actions.pod:286
25352 #, no-wrap
25353 msgid ""
25354 " aug-insert augpath label true|false\n"
25355 "\n"
25356 msgstr ""
25357
25358 # type: =head2
25359 #. type: =head2
25360 #: ../fish/guestfish-actions.pod:296
25361 msgid "aug-load"
25362 msgstr ""
25363
25364 # type: verbatim
25365 #. type: verbatim
25366 #: ../fish/guestfish-actions.pod:298
25367 #, no-wrap
25368 msgid ""
25369 " aug-load\n"
25370 "\n"
25371 msgstr ""
25372
25373 # type: =head2
25374 #. type: =head2
25375 #: ../fish/guestfish-actions.pod:305
25376 msgid "aug-ls"
25377 msgstr ""
25378
25379 # type: verbatim
25380 #. type: verbatim
25381 #: ../fish/guestfish-actions.pod:307
25382 #, no-wrap
25383 msgid ""
25384 " aug-ls augpath\n"
25385 "\n"
25386 msgstr ""
25387
25388 # type: textblock
25389 #. type: textblock
25390 #: ../fish/guestfish-actions.pod:309
25391 msgid ""
25392 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
25393 "resulting nodes into alphabetical order."
25394 msgstr ""
25395
25396 # type: =head2
25397 #. type: =head2
25398 #: ../fish/guestfish-actions.pod:312
25399 msgid "aug-match"
25400 msgstr ""
25401
25402 # type: verbatim
25403 #. type: verbatim
25404 #: ../fish/guestfish-actions.pod:314
25405 #, no-wrap
25406 msgid ""
25407 " aug-match augpath\n"
25408 "\n"
25409 msgstr ""
25410
25411 # type: =head2
25412 #. type: =head2
25413 #: ../fish/guestfish-actions.pod:320
25414 msgid "aug-mv"
25415 msgstr ""
25416
25417 # type: verbatim
25418 #. type: verbatim
25419 #: ../fish/guestfish-actions.pod:322
25420 #, no-wrap
25421 msgid ""
25422 " aug-mv src dest\n"
25423 "\n"
25424 msgstr ""
25425
25426 # type: =head2
25427 #. type: =head2
25428 #: ../fish/guestfish-actions.pod:327
25429 msgid "aug-rm"
25430 msgstr ""
25431
25432 # type: verbatim
25433 #. type: verbatim
25434 #: ../fish/guestfish-actions.pod:329
25435 #, no-wrap
25436 msgid ""
25437 " aug-rm augpath\n"
25438 "\n"
25439 msgstr ""
25440
25441 # type: =head2
25442 #. type: =head2
25443 #: ../fish/guestfish-actions.pod:335
25444 msgid "aug-save"
25445 msgstr ""
25446
25447 # type: verbatim
25448 #. type: verbatim
25449 #: ../fish/guestfish-actions.pod:337
25450 #, no-wrap
25451 msgid ""
25452 " aug-save\n"
25453 "\n"
25454 msgstr ""
25455
25456 # type: textblock
25457 #. type: textblock
25458 #: ../fish/guestfish-actions.pod:341
25459 msgid ""
25460 "The flags which were passed to L</aug-init> affect exactly how files are "
25461 "saved."
25462 msgstr ""
25463
25464 # type: =head2
25465 #. type: =head2
25466 #: ../fish/guestfish-actions.pod:344
25467 msgid "aug-set"
25468 msgstr ""
25469
25470 # type: verbatim
25471 #. type: verbatim
25472 #: ../fish/guestfish-actions.pod:346
25473 #, no-wrap
25474 msgid ""
25475 " aug-set augpath val\n"
25476 "\n"
25477 msgstr ""
25478
25479 # type: textblock
25480 #. type: textblock
25481 #: ../fish/guestfish-actions.pod:350
25482 msgid ""
25483 "In the Augeas API, it is possible to clear a node by setting the value to "
25484 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
25485 "this call.  Instead you must use the L</aug-clear> call."
25486 msgstr ""
25487
25488 # type: =head2
25489 #. type: =head2
25490 #: ../fish/guestfish-actions.pod:355
25491 msgid "available"
25492 msgstr ""
25493
25494 # type: verbatim
25495 #. type: verbatim
25496 #: ../fish/guestfish-actions.pod:357
25497 #, no-wrap
25498 msgid ""
25499 " available 'groups ...'\n"
25500 "\n"
25501 msgstr ""
25502
25503 # type: textblock
25504 #. type: textblock
25505 #: ../fish/guestfish-actions.pod:363
25506 msgid ""
25507 "The libguestfs groups, and the functions that those groups correspond to, "
25508 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25509 "runtime by calling L</available-all-groups>."
25510 msgstr ""
25511
25512 # type: textblock
25513 #. type: textblock
25514 #: ../fish/guestfish-actions.pod:387
25515 msgid "You must call L</launch> before calling this function."
25516 msgstr ""
25517
25518 # type: textblock
25519 #. type: textblock
25520 #: ../fish/guestfish-actions.pod:409
25521 msgid ""
25522 "This call was added in version C<1.0.80>.  In previous versions of "
25523 "libguestfs all you could do would be to speculatively execute a command to "
25524 "find out if the daemon implemented it.  See also L</version>."
25525 msgstr ""
25526
25527 # type: =head2
25528 #. type: =head2
25529 #: ../fish/guestfish-actions.pod:416
25530 msgid "available-all-groups"
25531 msgstr ""
25532
25533 # type: verbatim
25534 #. type: verbatim
25535 #: ../fish/guestfish-actions.pod:418
25536 #, no-wrap
25537 msgid ""
25538 " available-all-groups\n"
25539 "\n"
25540 msgstr ""
25541
25542 # type: textblock
25543 #. type: textblock
25544 #: ../fish/guestfish-actions.pod:420
25545 msgid ""
25546 "This command returns a list of all optional groups that this daemon knows "
25547 "about.  Note this returns both supported and unsupported groups.  To find "
25548 "out which ones the daemon can actually support you have to call L</"
25549 "available> on each member of the returned list."
25550 msgstr ""
25551
25552 # type: textblock
25553 #. type: textblock
25554 #: ../fish/guestfish-actions.pod:426
25555 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
25556 msgstr ""
25557
25558 # type: =head2
25559 #. type: =head2
25560 #: ../fish/guestfish-actions.pod:428
25561 msgid "base64-in"
25562 msgstr ""
25563
25564 # type: verbatim
25565 #. type: verbatim
25566 #: ../fish/guestfish-actions.pod:430
25567 #, no-wrap
25568 msgid ""
25569 " base64-in (base64file|-) filename\n"
25570 "\n"
25571 msgstr ""
25572
25573 # type: textblock
25574 #. type: textblock
25575 #: ../fish/guestfish-actions.pod:435 ../fish/guestfish-actions.pod:444
25576 #: ../fish/guestfish-actions.pod:668 ../fish/guestfish-actions.pod:837
25577 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:1230
25578 #: ../fish/guestfish-actions.pod:4606 ../fish/guestfish-actions.pod:4618
25579 #: ../fish/guestfish-actions.pod:4629 ../fish/guestfish-actions.pod:4640
25580 #: ../fish/guestfish-actions.pod:4692 ../fish/guestfish-actions.pod:4701
25581 #: ../fish/guestfish-actions.pod:4755 ../fish/guestfish-actions.pod:4778
25582 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
25583 msgstr ""
25584
25585 # type: =head2
25586 #. type: =head2
25587 #: ../fish/guestfish-actions.pod:437
25588 msgid "base64-out"
25589 msgstr ""
25590
25591 # type: verbatim
25592 #. type: verbatim
25593 #: ../fish/guestfish-actions.pod:439
25594 #, no-wrap
25595 msgid ""
25596 " base64-out filename (base64file|-)\n"
25597 "\n"
25598 msgstr ""
25599
25600 # type: =head2
25601 #. type: =head2
25602 #: ../fish/guestfish-actions.pod:446
25603 msgid "blockdev-flushbufs"
25604 msgstr ""
25605
25606 # type: verbatim
25607 #. type: verbatim
25608 #: ../fish/guestfish-actions.pod:448
25609 #, no-wrap
25610 msgid ""
25611 " blockdev-flushbufs device\n"
25612 "\n"
25613 msgstr ""
25614
25615 # type: =head2
25616 #. type: =head2
25617 #: ../fish/guestfish-actions.pod:455
25618 msgid "blockdev-getbsz"
25619 msgstr ""
25620
25621 # type: verbatim
25622 #. type: verbatim
25623 #: ../fish/guestfish-actions.pod:457
25624 #, no-wrap
25625 msgid ""
25626 " blockdev-getbsz device\n"
25627 "\n"
25628 msgstr ""
25629
25630 # type: =head2
25631 #. type: =head2
25632 #: ../fish/guestfish-actions.pod:466
25633 msgid "blockdev-getro"
25634 msgstr ""
25635
25636 # type: verbatim
25637 #. type: verbatim
25638 #: ../fish/guestfish-actions.pod:468
25639 #, no-wrap
25640 msgid ""
25641 " blockdev-getro device\n"
25642 "\n"
25643 msgstr ""
25644
25645 # type: =head2
25646 #. type: =head2
25647 #: ../fish/guestfish-actions.pod:475
25648 msgid "blockdev-getsize64"
25649 msgstr ""
25650
25651 # type: verbatim
25652 #. type: verbatim
25653 #: ../fish/guestfish-actions.pod:477
25654 #, no-wrap
25655 msgid ""
25656 " blockdev-getsize64 device\n"
25657 "\n"
25658 msgstr ""
25659
25660 # type: textblock
25661 #. type: textblock
25662 #: ../fish/guestfish-actions.pod:481
25663 msgid "See also L</blockdev-getsz>."
25664 msgstr ""
25665
25666 # type: =head2
25667 #. type: =head2
25668 #: ../fish/guestfish-actions.pod:485
25669 msgid "blockdev-getss"
25670 msgstr ""
25671
25672 # type: verbatim
25673 #. type: verbatim
25674 #: ../fish/guestfish-actions.pod:487
25675 #, no-wrap
25676 msgid ""
25677 " blockdev-getss device\n"
25678 "\n"
25679 msgstr ""
25680
25681 # type: textblock
25682 #. type: textblock
25683 #: ../fish/guestfish-actions.pod:492
25684 msgid ""
25685 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
25686 msgstr ""
25687
25688 # type: =head2
25689 #. type: =head2
25690 #: ../fish/guestfish-actions.pod:497
25691 msgid "blockdev-getsz"
25692 msgstr ""
25693
25694 # type: verbatim
25695 #. type: verbatim
25696 #: ../fish/guestfish-actions.pod:499
25697 #, no-wrap
25698 msgid ""
25699 " blockdev-getsz device\n"
25700 "\n"
25701 msgstr ""
25702
25703 # type: textblock
25704 #. type: textblock
25705 #: ../fish/guestfish-actions.pod:504
25706 msgid ""
25707 "See also L</blockdev-getss> for the real sector size of the device, and L</"
25708 "blockdev-getsize64> for the more useful I<size in bytes>."
25709 msgstr ""
25710
25711 # type: =head2
25712 #. type: =head2
25713 #: ../fish/guestfish-actions.pod:510
25714 msgid "blockdev-rereadpt"
25715 msgstr ""
25716
25717 # type: verbatim
25718 #. type: verbatim
25719 #: ../fish/guestfish-actions.pod:512
25720 #, no-wrap
25721 msgid ""
25722 " blockdev-rereadpt device\n"
25723 "\n"
25724 msgstr ""
25725
25726 # type: =head2
25727 #. type: =head2
25728 #: ../fish/guestfish-actions.pod:518
25729 msgid "blockdev-setbsz"
25730 msgstr ""
25731
25732 # type: verbatim
25733 #. type: verbatim
25734 #: ../fish/guestfish-actions.pod:520
25735 #, no-wrap
25736 msgid ""
25737 " blockdev-setbsz device blocksize\n"
25738 "\n"
25739 msgstr ""
25740
25741 # type: =head2
25742 #. type: =head2
25743 #: ../fish/guestfish-actions.pod:529
25744 msgid "blockdev-setro"
25745 msgstr ""
25746
25747 # type: verbatim
25748 #. type: verbatim
25749 #: ../fish/guestfish-actions.pod:531
25750 #, no-wrap
25751 msgid ""
25752 " blockdev-setro device\n"
25753 "\n"
25754 msgstr ""
25755
25756 # type: =head2
25757 #. type: =head2
25758 #: ../fish/guestfish-actions.pod:537
25759 msgid "blockdev-setrw"
25760 msgstr ""
25761
25762 # type: verbatim
25763 #. type: verbatim
25764 #: ../fish/guestfish-actions.pod:539
25765 #, no-wrap
25766 msgid ""
25767 " blockdev-setrw device\n"
25768 "\n"
25769 msgstr ""
25770
25771 # type: =head2
25772 #. type: =head2
25773 #: ../fish/guestfish-actions.pod:545
25774 msgid "case-sensitive-path"
25775 msgstr ""
25776
25777 # type: verbatim
25778 #. type: verbatim
25779 #: ../fish/guestfish-actions.pod:547
25780 #, no-wrap
25781 msgid ""
25782 " case-sensitive-path path\n"
25783 "\n"
25784 msgstr ""
25785
25786 # type: textblock
25787 #. type: textblock
25788 #: ../fish/guestfish-actions.pod:571
25789 msgid ""
25790 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
25791 "WINDOWS/system32\"> (the exact return value would depend on details of how "
25792 "the directories were originally created under Windows)."
25793 msgstr ""
25794
25795 # type: textblock
25796 #. type: textblock
25797 #: ../fish/guestfish-actions.pod:579
25798 msgid "See also L</realpath>."
25799 msgstr ""
25800
25801 # type: =head2
25802 #. type: =head2
25803 #: ../fish/guestfish-actions.pod:581
25804 msgid "cat"
25805 msgstr ""
25806
25807 # type: verbatim
25808 #. type: verbatim
25809 #: ../fish/guestfish-actions.pod:583
25810 #, no-wrap
25811 msgid ""
25812 " cat path\n"
25813 "\n"
25814 msgstr ""
25815
25816 # type: textblock
25817 #. type: textblock
25818 #: ../fish/guestfish-actions.pod:587
25819 msgid ""
25820 "Note that this function cannot correctly handle binary files (specifically, "
25821 "files containing C<\\0> character which is treated as end of string).  For "
25822 "those you need to use the L</read-file> or L</download> functions which have "
25823 "a more complex interface."
25824 msgstr ""
25825
25826 # type: =head2
25827 #. type: =head2
25828 #: ../fish/guestfish-actions.pod:595
25829 msgid "checksum"
25830 msgstr ""
25831
25832 # type: verbatim
25833 #. type: verbatim
25834 #: ../fish/guestfish-actions.pod:597
25835 #, no-wrap
25836 msgid ""
25837 " checksum csumtype path\n"
25838 "\n"
25839 msgstr ""
25840
25841 # type: textblock
25842 #. type: textblock
25843 #: ../fish/guestfish-actions.pod:640
25844 msgid "To get the checksum for a device, use L</checksum-device>."
25845 msgstr ""
25846
25847 # type: textblock
25848 #. type: textblock
25849 #: ../fish/guestfish-actions.pod:642
25850 msgid "To get the checksums for many files, use L</checksums-out>."
25851 msgstr ""
25852
25853 # type: =head2
25854 #. type: =head2
25855 #: ../fish/guestfish-actions.pod:644
25856 msgid "checksum-device"
25857 msgstr ""
25858
25859 # type: verbatim
25860 #. type: verbatim
25861 #: ../fish/guestfish-actions.pod:646
25862 #, no-wrap
25863 msgid ""
25864 " checksum-device csumtype device\n"
25865 "\n"
25866 msgstr ""
25867
25868 # type: textblock
25869 #. type: textblock
25870 #: ../fish/guestfish-actions.pod:648
25871 msgid ""
25872 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
25873 "device named C<device>.  For the types of checksums supported see the L</"
25874 "checksum> command."
25875 msgstr ""
25876
25877 # type: =head2
25878 #. type: =head2
25879 #: ../fish/guestfish-actions.pod:652
25880 msgid "checksums-out"
25881 msgstr ""
25882
25883 # type: verbatim
25884 #. type: verbatim
25885 #: ../fish/guestfish-actions.pod:654
25886 #, no-wrap
25887 msgid ""
25888 " checksums-out csumtype directory (sumsfile|-)\n"
25889 "\n"
25890 msgstr ""
25891
25892 # type: =head2
25893 #. type: =head2
25894 #: ../fish/guestfish-actions.pod:670
25895 msgid "chmod"
25896 msgstr ""
25897
25898 # type: verbatim
25899 #. type: verbatim
25900 #: ../fish/guestfish-actions.pod:672
25901 #, no-wrap
25902 msgid ""
25903 " chmod mode path\n"
25904 "\n"
25905 msgstr ""
25906
25907 # type: =head2
25908 #. type: =head2
25909 #: ../fish/guestfish-actions.pod:683
25910 msgid "chown"
25911 msgstr ""
25912
25913 # type: verbatim
25914 #. type: verbatim
25915 #: ../fish/guestfish-actions.pod:685
25916 #, no-wrap
25917 msgid ""
25918 " chown owner group path\n"
25919 "\n"
25920 msgstr ""
25921
25922 # type: =head2
25923 #. type: =head2
25924 #: ../fish/guestfish-actions.pod:693
25925 msgid "command"
25926 msgstr ""
25927
25928 # type: verbatim
25929 #. type: verbatim
25930 #: ../fish/guestfish-actions.pod:695
25931 #, no-wrap
25932 msgid ""
25933 " command 'arguments ...'\n"
25934 "\n"
25935 msgstr ""
25936
25937 # type: textblock
25938 #. type: textblock
25939 #: ../fish/guestfish-actions.pod:702
25940 msgid ""
25941 "The single parameter is an argv-style list of arguments.  The first element "
25942 "is the name of the program to run.  Subsequent elements are parameters.  The "
25943 "list must be non-empty (ie. must contain a program name).  Note that the "
25944 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
25945 msgstr ""
25946
25947 # type: =head2
25948 #. type: =head2
25949 #: ../fish/guestfish-actions.pod:730
25950 msgid "command-lines"
25951 msgstr ""
25952
25953 # type: verbatim
25954 #. type: verbatim
25955 #: ../fish/guestfish-actions.pod:732
25956 #, no-wrap
25957 msgid ""
25958 " command-lines 'arguments ...'\n"
25959 "\n"
25960 msgstr ""
25961
25962 # type: textblock
25963 #. type: textblock
25964 #: ../fish/guestfish-actions.pod:734
25965 msgid ""
25966 "This is the same as L</command>, but splits the result into a list of lines."
25967 msgstr ""
25968
25969 # type: textblock
25970 #. type: textblock
25971 #: ../fish/guestfish-actions.pod:737
25972 msgid "See also: L</sh-lines>"
25973 msgstr ""
25974
25975 # type: =head2
25976 #. type: =head2
25977 #: ../fish/guestfish-actions.pod:742
25978 msgid "config"
25979 msgstr ""
25980
25981 # type: verbatim
25982 #. type: verbatim
25983 #: ../fish/guestfish-actions.pod:744
25984 #, no-wrap
25985 msgid ""
25986 " config qemuparam qemuvalue\n"
25987 "\n"
25988 msgstr ""
25989
25990 # type: =head2
25991 #. type: =head2
25992 #: ../fish/guestfish-actions.pod:755
25993 msgid "copy-size"
25994 msgstr ""
25995
25996 # type: verbatim
25997 #. type: verbatim
25998 #: ../fish/guestfish-actions.pod:757
25999 #, no-wrap
26000 msgid ""
26001 " copy-size src dest size\n"
26002 "\n"
26003 msgstr ""
26004
26005 # type: =head2
26006 #. type: =head2
26007 #: ../fish/guestfish-actions.pod:765
26008 msgid "cp"
26009 msgstr ""
26010
26011 # type: verbatim
26012 #. type: verbatim
26013 #: ../fish/guestfish-actions.pod:767
26014 #, no-wrap
26015 msgid ""
26016 " cp src dest\n"
26017 "\n"
26018 msgstr ""
26019
26020 # type: =head2
26021 #. type: =head2
26022 #: ../fish/guestfish-actions.pod:772
26023 msgid "cp-a"
26024 msgstr ""
26025
26026 # type: verbatim
26027 #. type: verbatim
26028 #: ../fish/guestfish-actions.pod:774
26029 #, no-wrap
26030 msgid ""
26031 " cp-a src dest\n"
26032 "\n"
26033 msgstr ""
26034
26035 # type: =head2
26036 #. type: =head2
26037 #: ../fish/guestfish-actions.pod:779
26038 msgid "dd"
26039 msgstr ""
26040
26041 # type: verbatim
26042 #. type: verbatim
26043 #: ../fish/guestfish-actions.pod:781
26044 #, no-wrap
26045 msgid ""
26046 " dd src dest\n"
26047 "\n"
26048 msgstr ""
26049
26050 # type: textblock
26051 #. type: textblock
26052 #: ../fish/guestfish-actions.pod:788
26053 msgid ""
26054 "If the destination is a device, it must be as large or larger than the "
26055 "source file or device, otherwise the copy will fail.  This command cannot do "
26056 "partial copies (see L</copy-size>)."
26057 msgstr ""
26058
26059 # type: =head2
26060 #. type: =head2
26061 #: ../fish/guestfish-actions.pod:792
26062 msgid "df"
26063 msgstr ""
26064
26065 # type: verbatim
26066 #. type: verbatim
26067 #: ../fish/guestfish-actions.pod:794
26068 #, no-wrap
26069 msgid ""
26070 " df\n"
26071 "\n"
26072 msgstr ""
26073
26074 # type: textblock
26075 #. type: textblock
26076 #: ../fish/guestfish-actions.pod:798 ../fish/guestfish-actions.pod:809
26077 msgid ""
26078 "This command is mostly useful for interactive sessions.  It is I<not> "
26079 "intended that you try to parse the output string.  Use L</statvfs> from "
26080 "programs."
26081 msgstr ""
26082
26083 # type: =head2
26084 #. type: =head2
26085 #: ../fish/guestfish-actions.pod:802
26086 msgid "df-h"
26087 msgstr ""
26088
26089 # type: verbatim
26090 #. type: verbatim
26091 #: ../fish/guestfish-actions.pod:804
26092 #, no-wrap
26093 msgid ""
26094 " df-h\n"
26095 "\n"
26096 msgstr ""
26097
26098 # type: =head2
26099 #. type: =head2
26100 #: ../fish/guestfish-actions.pod:813
26101 msgid "dmesg"
26102 msgstr ""
26103
26104 # type: verbatim
26105 #. type: verbatim
26106 #: ../fish/guestfish-actions.pod:815
26107 #, no-wrap
26108 msgid ""
26109 " dmesg\n"
26110 "\n"
26111 msgstr ""
26112
26113 # type: textblock
26114 #. type: textblock
26115 #: ../fish/guestfish-actions.pod:821
26116 msgid ""
26117 "Another way to get the same information is to enable verbose messages with "
26118 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
26119 "before running the program."
26120 msgstr ""
26121
26122 # type: =head2
26123 #. type: =head2
26124 #: ../fish/guestfish-actions.pod:826
26125 msgid "download"
26126 msgstr ""
26127
26128 # type: verbatim
26129 #. type: verbatim
26130 #: ../fish/guestfish-actions.pod:828
26131 #, no-wrap
26132 msgid ""
26133 " download remotefilename (filename|-)\n"
26134 "\n"
26135 msgstr ""
26136
26137 # type: textblock
26138 #. type: textblock
26139 #: ../fish/guestfish-actions.pod:835
26140 msgid "See also L</upload>, L</cat>."
26141 msgstr ""
26142
26143 # type: =head2
26144 #. type: =head2
26145 #: ../fish/guestfish-actions.pod:839
26146 msgid "download-offset"
26147 msgstr ""
26148
26149 # type: verbatim
26150 #. type: verbatim
26151 #: ../fish/guestfish-actions.pod:841
26152 #, no-wrap
26153 msgid ""
26154 " download-offset remotefilename (filename|-) offset size\n"
26155 "\n"
26156 msgstr ""
26157
26158 # type: textblock
26159 #. type: textblock
26160 #: ../fish/guestfish-actions.pod:849
26161 msgid ""
26162 "Note that there is no limit on the amount of data that can be downloaded "
26163 "with this call, unlike with L</pread>, and this call always reads the full "
26164 "amount unless an error occurs."
26165 msgstr ""
26166
26167 # type: textblock
26168 #. type: textblock
26169 #: ../fish/guestfish-actions.pod:854
26170 msgid "See also L</download>, L</pread>."
26171 msgstr ""
26172
26173 # type: =head2
26174 #. type: =head2
26175 #: ../fish/guestfish-actions.pod:858
26176 msgid "drop-caches"
26177 msgstr ""
26178
26179 # type: verbatim
26180 #. type: verbatim
26181 #: ../fish/guestfish-actions.pod:860
26182 #, no-wrap
26183 msgid ""
26184 " drop-caches whattodrop\n"
26185 "\n"
26186 msgstr ""
26187
26188 # type: =head2
26189 #. type: =head2
26190 #: ../fish/guestfish-actions.pod:872
26191 msgid "du"
26192 msgstr ""
26193
26194 # type: verbatim
26195 #. type: verbatim
26196 #: ../fish/guestfish-actions.pod:874
26197 #, no-wrap
26198 msgid ""
26199 " du path\n"
26200 "\n"
26201 msgstr ""
26202
26203 # type: =head2
26204 #. type: =head2
26205 #: ../fish/guestfish-actions.pod:886
26206 msgid "e2fsck-f"
26207 msgstr ""
26208
26209 # type: verbatim
26210 #. type: verbatim
26211 #: ../fish/guestfish-actions.pod:888
26212 #, no-wrap
26213 msgid ""
26214 " e2fsck-f device\n"
26215 "\n"
26216 msgstr ""
26217
26218 # type: textblock
26219 #. type: textblock
26220 #: ../fish/guestfish-actions.pod:894
26221 msgid ""
26222 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
26223 "should use L</fsck>."
26224 msgstr ""
26225
26226 # type: =head2
26227 #. type: =head2
26228 #: ../fish/guestfish-actions.pod:897
26229 msgid "echo-daemon"
26230 msgstr ""
26231
26232 # type: verbatim
26233 #. type: verbatim
26234 #: ../fish/guestfish-actions.pod:899
26235 #, no-wrap
26236 msgid ""
26237 " echo-daemon 'words ...'\n"
26238 "\n"
26239 msgstr ""
26240
26241 # type: textblock
26242 #. type: textblock
26243 #: ../fish/guestfish-actions.pod:906
26244 msgid "See also L</ping-daemon>."
26245 msgstr ""
26246
26247 # type: =head2
26248 #. type: =head2
26249 #: ../fish/guestfish-actions.pod:908
26250 msgid "egrep"
26251 msgstr ""
26252
26253 # type: verbatim
26254 #. type: verbatim
26255 #: ../fish/guestfish-actions.pod:910
26256 #, no-wrap
26257 msgid ""
26258 " egrep regex path\n"
26259 "\n"
26260 msgstr ""
26261
26262 # type: =head2
26263 #. type: =head2
26264 #: ../fish/guestfish-actions.pod:918
26265 msgid "egrepi"
26266 msgstr ""
26267
26268 # type: verbatim
26269 #. type: verbatim
26270 #: ../fish/guestfish-actions.pod:920
26271 #, no-wrap
26272 msgid ""
26273 " egrepi regex path\n"
26274 "\n"
26275 msgstr ""
26276
26277 # type: =head2
26278 #. type: =head2
26279 #: ../fish/guestfish-actions.pod:928
26280 msgid "equal"
26281 msgstr ""
26282
26283 # type: verbatim
26284 #. type: verbatim
26285 #: ../fish/guestfish-actions.pod:930
26286 #, no-wrap
26287 msgid ""
26288 " equal file1 file2\n"
26289 "\n"
26290 msgstr ""
26291
26292 # type: =head2
26293 #. type: =head2
26294 #: ../fish/guestfish-actions.pod:937
26295 msgid "exists"
26296 msgstr ""
26297
26298 # type: verbatim
26299 #. type: verbatim
26300 #: ../fish/guestfish-actions.pod:939
26301 #, no-wrap
26302 msgid ""
26303 " exists path\n"
26304 "\n"
26305 msgstr ""
26306
26307 # type: textblock
26308 #. type: textblock
26309 #: ../fish/guestfish-actions.pod:944
26310 msgid "See also L</is-file>, L</is-dir>, L</stat>."
26311 msgstr ""
26312
26313 # type: =head2
26314 #. type: =head2
26315 #: ../fish/guestfish-actions.pod:946
26316 msgid "fallocate"
26317 msgstr ""
26318
26319 # type: verbatim
26320 #. type: verbatim
26321 #: ../fish/guestfish-actions.pod:948
26322 #, no-wrap
26323 msgid ""
26324 " fallocate path len\n"
26325 "\n"
26326 msgstr ""
26327
26328 # type: =head2
26329 #. type: =head2
26330 #: ../fish/guestfish-actions.pod:965
26331 msgid "fallocate64"
26332 msgstr ""
26333
26334 # type: verbatim
26335 #. type: verbatim
26336 #: ../fish/guestfish-actions.pod:967
26337 #, no-wrap
26338 msgid ""
26339 " fallocate64 path len\n"
26340 "\n"
26341 msgstr ""
26342
26343 # type: textblock
26344 #. type: textblock
26345 #: ../fish/guestfish-actions.pod:973
26346 msgid ""
26347 "Note that this call allocates disk blocks for the file.  To create a sparse "
26348 "file use L</truncate-size> instead."
26349 msgstr ""
26350
26351 # type: textblock
26352 #. type: textblock
26353 #: ../fish/guestfish-actions.pod:976
26354 msgid ""
26355 "The deprecated call L</fallocate> does the same, but owing to an oversight "
26356 "it only allowed 30 bit lengths to be specified, effectively limiting the "
26357 "maximum size of files created through that call to 1GB."
26358 msgstr ""
26359
26360 # type: =head2
26361 #. type: =head2
26362 #: ../fish/guestfish-actions.pod:985
26363 msgid "fgrep"
26364 msgstr ""
26365
26366 # type: verbatim
26367 #. type: verbatim
26368 #: ../fish/guestfish-actions.pod:987
26369 #, no-wrap
26370 msgid ""
26371 " fgrep pattern path\n"
26372 "\n"
26373 msgstr ""
26374
26375 # type: =head2
26376 #. type: =head2
26377 #: ../fish/guestfish-actions.pod:995
26378 msgid "fgrepi"
26379 msgstr ""
26380
26381 # type: verbatim
26382 #. type: verbatim
26383 #: ../fish/guestfish-actions.pod:997
26384 #, no-wrap
26385 msgid ""
26386 " fgrepi pattern path\n"
26387 "\n"
26388 msgstr ""
26389
26390 # type: =head2
26391 #. type: =head2
26392 #: ../fish/guestfish-actions.pod:1005
26393 msgid "file"
26394 msgstr ""
26395
26396 # type: verbatim
26397 #. type: verbatim
26398 #: ../fish/guestfish-actions.pod:1007
26399 #, no-wrap
26400 msgid ""
26401 " file path\n"
26402 "\n"
26403 msgstr ""
26404
26405 #. type: textblock
26406 #: ../fish/guestfish-actions.pod:1023
26407 msgid ""
26408 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
26409 "(etc), L</is-zero>."
26410 msgstr ""
26411
26412 # type: =head2
26413 #. type: =head2
26414 #: ../fish/guestfish-actions.pod:1026
26415 msgid "file-architecture"
26416 msgstr ""
26417
26418 # type: verbatim
26419 #. type: verbatim
26420 #: ../fish/guestfish-actions.pod:1028
26421 #, no-wrap
26422 msgid ""
26423 " file-architecture filename\n"
26424 "\n"
26425 msgstr ""
26426
26427 # type: =head2
26428 #. type: =head2
26429 #: ../fish/guestfish-actions.pod:1131
26430 msgid "filesize"
26431 msgstr ""
26432
26433 # type: verbatim
26434 #. type: verbatim
26435 #: ../fish/guestfish-actions.pod:1133
26436 #, no-wrap
26437 msgid ""
26438 " filesize file\n"
26439 "\n"
26440 msgstr ""
26441
26442 # type: textblock
26443 #. type: textblock
26444 #: ../fish/guestfish-actions.pod:1137
26445 msgid ""
26446 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
26447 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
26448 msgstr ""
26449
26450 # type: =head2
26451 #. type: =head2
26452 #: ../fish/guestfish-actions.pod:1141
26453 msgid "fill"
26454 msgstr ""
26455
26456 # type: verbatim
26457 #. type: verbatim
26458 #: ../fish/guestfish-actions.pod:1143
26459 #, no-wrap
26460 msgid ""
26461 " fill c len path\n"
26462 "\n"
26463 msgstr ""
26464
26465 # type: textblock
26466 #. type: textblock
26467 #: ../fish/guestfish-actions.pod:1149
26468 msgid ""
26469 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
26470 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
26471 "L</fill-pattern>."
26472 msgstr ""
26473
26474 # type: =head2
26475 #. type: =head2
26476 #: ../fish/guestfish-actions.pod:1154
26477 msgid "fill-pattern"
26478 msgstr ""
26479
26480 # type: verbatim
26481 #. type: verbatim
26482 #: ../fish/guestfish-actions.pod:1156
26483 #, no-wrap
26484 msgid ""
26485 " fill-pattern pattern len path\n"
26486 "\n"
26487 msgstr ""
26488
26489 # type: textblock
26490 #. type: textblock
26491 #: ../fish/guestfish-actions.pod:1158
26492 msgid ""
26493 "This function is like L</fill> except that it creates a new file of length "
26494 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
26495 "is truncated if necessary to ensure the length of the file is exactly C<len> "
26496 "bytes."
26497 msgstr ""
26498
26499 # type: =head2
26500 #. type: =head2
26501 #: ../fish/guestfish-actions.pod:1163
26502 msgid "find"
26503 msgstr ""
26504
26505 # type: verbatim
26506 #. type: verbatim
26507 #: ../fish/guestfish-actions.pod:1165
26508 #, no-wrap
26509 msgid ""
26510 " find directory\n"
26511 "\n"
26512 msgstr ""
26513
26514 # type: textblock
26515 #. type: textblock
26516 #: ../fish/guestfish-actions.pod:1179
26517 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
26518 msgstr ""
26519
26520 # type: textblock
26521 #. type: textblock
26522 #: ../fish/guestfish-actions.pod:1192
26523 msgid "See also L</find0>."
26524 msgstr ""
26525
26526 # type: =head2
26527 #. type: =head2
26528 #: ../fish/guestfish-actions.pod:1197
26529 msgid "find0"
26530 msgstr ""
26531
26532 # type: verbatim
26533 #. type: verbatim
26534 #: ../fish/guestfish-actions.pod:1199
26535 #, no-wrap
26536 msgid ""
26537 " find0 directory (files|-)\n"
26538 "\n"
26539 msgstr ""
26540
26541 # type: textblock
26542 #. type: textblock
26543 #: ../fish/guestfish-actions.pod:1205
26544 msgid ""
26545 "This command works the same way as L</find> with the following exceptions:"
26546 msgstr ""
26547
26548 # type: =head2
26549 #. type: =head2
26550 #: ../fish/guestfish-actions.pod:1232
26551 msgid "findfs-label"
26552 msgstr ""
26553
26554 # type: verbatim
26555 #. type: verbatim
26556 #: ../fish/guestfish-actions.pod:1234
26557 #, no-wrap
26558 msgid ""
26559 " findfs-label label\n"
26560 "\n"
26561 msgstr ""
26562
26563 # type: textblock
26564 #. type: textblock
26565 #: ../fish/guestfish-actions.pod:1240
26566 msgid "To find the label of a filesystem, use L</vfs-label>."
26567 msgstr ""
26568
26569 # type: =head2
26570 #. type: =head2
26571 #: ../fish/guestfish-actions.pod:1242
26572 msgid "findfs-uuid"
26573 msgstr ""
26574
26575 # type: verbatim
26576 #. type: verbatim
26577 #: ../fish/guestfish-actions.pod:1244
26578 #, no-wrap
26579 msgid ""
26580 " findfs-uuid uuid\n"
26581 "\n"
26582 msgstr ""
26583
26584 # type: textblock
26585 #. type: textblock
26586 #: ../fish/guestfish-actions.pod:1250
26587 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
26588 msgstr ""
26589
26590 # type: =head2
26591 #. type: =head2
26592 #: ../fish/guestfish-actions.pod:1252
26593 msgid "fsck"
26594 msgstr ""
26595
26596 # type: verbatim
26597 #. type: verbatim
26598 #: ../fish/guestfish-actions.pod:1254
26599 #, no-wrap
26600 msgid ""
26601 " fsck fstype device\n"
26602 "\n"
26603 msgstr ""
26604
26605 # type: =head2
26606 #. type: =head2
26607 #: ../fish/guestfish-actions.pod:1284
26608 msgid "get-append"
26609 msgstr ""
26610
26611 # type: verbatim
26612 #. type: verbatim
26613 #: ../fish/guestfish-actions.pod:1286
26614 #, no-wrap
26615 msgid ""
26616 " get-append\n"
26617 "\n"
26618 msgstr ""
26619
26620 #. type: =head2
26621 #: ../fish/guestfish-actions.pod:1293
26622 msgid "get-attach-method"
26623 msgstr ""
26624
26625 #. type: verbatim
26626 #: ../fish/guestfish-actions.pod:1295
26627 #, no-wrap
26628 msgid ""
26629 " get-attach-method\n"
26630 "\n"
26631 msgstr ""
26632
26633 #. type: textblock
26634 #: ../fish/guestfish-actions.pod:1297
26635 msgid "Return the current attach method.  See L</set-attach-method>."
26636 msgstr ""
26637
26638 # type: =head2
26639 #. type: =head2
26640 #: ../fish/guestfish-actions.pod:1299
26641 msgid "get-autosync"
26642 msgstr ""
26643
26644 # type: verbatim
26645 #. type: verbatim
26646 #: ../fish/guestfish-actions.pod:1301
26647 #, no-wrap
26648 msgid ""
26649 " get-autosync\n"
26650 "\n"
26651 msgstr ""
26652
26653 # type: =head2
26654 #. type: =head2
26655 #: ../fish/guestfish-actions.pod:1305
26656 msgid "get-direct"
26657 msgstr ""
26658
26659 # type: verbatim
26660 #. type: verbatim
26661 #: ../fish/guestfish-actions.pod:1307
26662 #, no-wrap
26663 msgid ""
26664 " get-direct\n"
26665 "\n"
26666 msgstr ""
26667
26668 # type: =head2
26669 #. type: =head2
26670 #: ../fish/guestfish-actions.pod:1311
26671 msgid "get-e2label"
26672 msgstr ""
26673
26674 # type: verbatim
26675 #. type: verbatim
26676 #: ../fish/guestfish-actions.pod:1313
26677 #, no-wrap
26678 msgid ""
26679 " get-e2label device\n"
26680 "\n"
26681 msgstr ""
26682
26683 # type: =head2
26684 #. type: =head2
26685 #: ../fish/guestfish-actions.pod:1325
26686 msgid "get-e2uuid"
26687 msgstr ""
26688
26689 # type: verbatim
26690 #. type: verbatim
26691 #: ../fish/guestfish-actions.pod:1327
26692 #, no-wrap
26693 msgid ""
26694 " get-e2uuid device\n"
26695 "\n"
26696 msgstr ""
26697
26698 # type: =head2
26699 #. type: =head2
26700 #: ../fish/guestfish-actions.pod:1339
26701 msgid "get-memsize"
26702 msgstr ""
26703
26704 # type: verbatim
26705 #. type: verbatim
26706 #: ../fish/guestfish-actions.pod:1341
26707 #, no-wrap
26708 msgid ""
26709 " get-memsize\n"
26710 "\n"
26711 msgstr ""
26712
26713 # type: textblock
26714 #. type: textblock
26715 #: ../fish/guestfish-actions.pod:1346
26716 msgid ""
26717 "If L</set-memsize> was not called on this handle, and if "
26718 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
26719 "value for memsize."
26720 msgstr ""
26721
26722 # type: =head2
26723 #. type: =head2
26724 #: ../fish/guestfish-actions.pod:1353
26725 msgid "get-network"
26726 msgstr ""
26727
26728 # type: verbatim
26729 #. type: verbatim
26730 #: ../fish/guestfish-actions.pod:1355
26731 #, no-wrap
26732 msgid ""
26733 " get-network\n"
26734 "\n"
26735 msgstr ""
26736
26737 # type: =head2
26738 #. type: =head2
26739 #: ../fish/guestfish-actions.pod:1359
26740 msgid "get-path"
26741 msgstr ""
26742
26743 # type: verbatim
26744 #. type: verbatim
26745 #: ../fish/guestfish-actions.pod:1361
26746 #, no-wrap
26747 msgid ""
26748 " get-path\n"
26749 "\n"
26750 msgstr ""
26751
26752 # type: =head2
26753 #. type: =head2
26754 #: ../fish/guestfish-actions.pod:1368
26755 msgid "get-pid"
26756 msgstr ""
26757
26758 # type: =head2
26759 #. type: =head2
26760 #: ../fish/guestfish-actions.pod:1370
26761 msgid "pid"
26762 msgstr ""
26763
26764 # type: verbatim
26765 #. type: verbatim
26766 #: ../fish/guestfish-actions.pod:1372
26767 #, no-wrap
26768 msgid ""
26769 " get-pid\n"
26770 "\n"
26771 msgstr ""
26772
26773 # type: =head2
26774 #. type: =head2
26775 #: ../fish/guestfish-actions.pod:1379
26776 msgid "get-qemu"
26777 msgstr ""
26778
26779 # type: verbatim
26780 #. type: verbatim
26781 #: ../fish/guestfish-actions.pod:1381
26782 #, no-wrap
26783 msgid ""
26784 " get-qemu\n"
26785 "\n"
26786 msgstr ""
26787
26788 # type: =head2
26789 #. type: =head2
26790 #: ../fish/guestfish-actions.pod:1388
26791 msgid "get-recovery-proc"
26792 msgstr ""
26793
26794 # type: verbatim
26795 #. type: verbatim
26796 #: ../fish/guestfish-actions.pod:1390
26797 #, no-wrap
26798 msgid ""
26799 " get-recovery-proc\n"
26800 "\n"
26801 msgstr ""
26802
26803 # type: =head2
26804 #. type: =head2
26805 #: ../fish/guestfish-actions.pod:1394
26806 msgid "get-selinux"
26807 msgstr ""
26808
26809 # type: verbatim
26810 #. type: verbatim
26811 #: ../fish/guestfish-actions.pod:1396
26812 #, no-wrap
26813 msgid ""
26814 " get-selinux\n"
26815 "\n"
26816 msgstr ""
26817
26818 # type: textblock
26819 #. type: textblock
26820 #: ../fish/guestfish-actions.pod:1398
26821 msgid ""
26822 "This returns the current setting of the selinux flag which is passed to the "
26823 "appliance at boot time.  See L</set-selinux>."
26824 msgstr ""
26825
26826 # type: =head2
26827 #. type: =head2
26828 #: ../fish/guestfish-actions.pod:1404
26829 msgid "get-state"
26830 msgstr ""
26831
26832 # type: verbatim
26833 #. type: verbatim
26834 #: ../fish/guestfish-actions.pod:1406
26835 #, no-wrap
26836 msgid ""
26837 " get-state\n"
26838 "\n"
26839 msgstr ""
26840
26841 # type: =head2
26842 #. type: =head2
26843 #: ../fish/guestfish-actions.pod:1413
26844 msgid "get-trace"
26845 msgstr ""
26846
26847 # type: verbatim
26848 #. type: verbatim
26849 #: ../fish/guestfish-actions.pod:1415
26850 #, no-wrap
26851 msgid ""
26852 " get-trace\n"
26853 "\n"
26854 msgstr ""
26855
26856 # type: =head2
26857 #. type: =head2
26858 #: ../fish/guestfish-actions.pod:1419
26859 msgid "get-umask"
26860 msgstr ""
26861
26862 # type: verbatim
26863 #. type: verbatim
26864 #: ../fish/guestfish-actions.pod:1421
26865 #, no-wrap
26866 msgid ""
26867 " get-umask\n"
26868 "\n"
26869 msgstr ""
26870
26871 # type: textblock
26872 #. type: textblock
26873 #: ../fish/guestfish-actions.pod:1423
26874 msgid ""
26875 "Return the current umask.  By default the umask is C<022> unless it has been "
26876 "set by calling L</umask>."
26877 msgstr ""
26878
26879 # type: =head2
26880 #. type: =head2
26881 #: ../fish/guestfish-actions.pod:1426
26882 msgid "get-verbose"
26883 msgstr ""
26884
26885 # type: verbatim
26886 #. type: verbatim
26887 #: ../fish/guestfish-actions.pod:1428
26888 #, no-wrap
26889 msgid ""
26890 " get-verbose\n"
26891 "\n"
26892 msgstr ""
26893
26894 # type: =head2
26895 #. type: =head2
26896 #: ../fish/guestfish-actions.pod:1432
26897 msgid "getcon"
26898 msgstr ""
26899
26900 # type: verbatim
26901 #. type: verbatim
26902 #: ../fish/guestfish-actions.pod:1434
26903 #, no-wrap
26904 msgid ""
26905 " getcon\n"
26906 "\n"
26907 msgstr ""
26908
26909 # type: textblock
26910 #. type: textblock
26911 #: ../fish/guestfish-actions.pod:1438
26912 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
26913 msgstr ""
26914
26915 # type: =head2
26916 #. type: =head2
26917 #: ../fish/guestfish-actions.pod:1441
26918 msgid "getxattr"
26919 msgstr ""
26920
26921 # type: verbatim
26922 #. type: verbatim
26923 #: ../fish/guestfish-actions.pod:1443
26924 #, no-wrap
26925 msgid ""
26926 " getxattr path name\n"
26927 "\n"
26928 msgstr ""
26929
26930 # type: textblock
26931 #. type: textblock
26932 #: ../fish/guestfish-actions.pod:1445
26933 msgid ""
26934 "Get a single extended attribute from file C<path> named C<name>.  This call "
26935 "follows symlinks.  If you want to lookup an extended attribute for the "
26936 "symlink itself, use L</lgetxattr>."
26937 msgstr ""
26938
26939 # type: textblock
26940 #. type: textblock
26941 #: ../fish/guestfish-actions.pod:1449 ../fish/guestfish-actions.pod:2476
26942 msgid ""
26943 "Normally it is better to get all extended attributes from a file in one go "
26944 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
26945 "buggy and do not provide a way to list out attributes.  For these "
26946 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
26947 "attributes you want in advance and call this function."
26948 msgstr ""
26949
26950 # type: textblock
26951 #. type: textblock
26952 #: ../fish/guestfish-actions.pod:1459
26953 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
26954 msgstr ""
26955
26956 # type: =head2
26957 #. type: =head2
26958 #: ../fish/guestfish-actions.pod:1461
26959 msgid "getxattrs"
26960 msgstr ""
26961
26962 # type: verbatim
26963 #. type: verbatim
26964 #: ../fish/guestfish-actions.pod:1463
26965 #, no-wrap
26966 msgid ""
26967 " getxattrs path\n"
26968 "\n"
26969 msgstr ""
26970
26971 # type: textblock
26972 #. type: textblock
26973 #: ../fish/guestfish-actions.pod:1471
26974 msgid "See also: L</lgetxattrs>, L<attr(5)>."
26975 msgstr ""
26976
26977 # type: =head2
26978 #. type: =head2
26979 #: ../fish/guestfish-actions.pod:1473
26980 msgid "glob-expand"
26981 msgstr ""
26982
26983 # type: verbatim
26984 #. type: verbatim
26985 #: ../fish/guestfish-actions.pod:1475
26986 #, no-wrap
26987 msgid ""
26988 " glob-expand pattern\n"
26989 "\n"
26990 msgstr ""
26991
26992 # type: =head2
26993 #. type: =head2
26994 #: ../fish/guestfish-actions.pod:1488
26995 msgid "grep"
26996 msgstr ""
26997
26998 # type: verbatim
26999 #. type: verbatim
27000 #: ../fish/guestfish-actions.pod:1490
27001 #, no-wrap
27002 msgid ""
27003 " grep regex path\n"
27004 "\n"
27005 msgstr ""
27006
27007 # type: =head2
27008 #. type: =head2
27009 #: ../fish/guestfish-actions.pod:1498
27010 msgid "grepi"
27011 msgstr ""
27012
27013 # type: verbatim
27014 #. type: verbatim
27015 #: ../fish/guestfish-actions.pod:1500
27016 #, no-wrap
27017 msgid ""
27018 " grepi regex path\n"
27019 "\n"
27020 msgstr ""
27021
27022 # type: =head2
27023 #. type: =head2
27024 #: ../fish/guestfish-actions.pod:1508
27025 msgid "grub-install"
27026 msgstr ""
27027
27028 # type: verbatim
27029 #. type: verbatim
27030 #: ../fish/guestfish-actions.pod:1510
27031 #, no-wrap
27032 msgid ""
27033 " grub-install root device\n"
27034 "\n"
27035 msgstr ""
27036
27037 # type: =head2
27038 #. type: =head2
27039 #: ../fish/guestfish-actions.pod:1526
27040 msgid "head"
27041 msgstr ""
27042
27043 # type: verbatim
27044 #. type: verbatim
27045 #: ../fish/guestfish-actions.pod:1528
27046 #, no-wrap
27047 msgid ""
27048 " head path\n"
27049 "\n"
27050 msgstr ""
27051
27052 # type: =head2
27053 #. type: =head2
27054 #: ../fish/guestfish-actions.pod:1536
27055 msgid "head-n"
27056 msgstr ""
27057
27058 # type: verbatim
27059 #. type: verbatim
27060 #: ../fish/guestfish-actions.pod:1538
27061 #, no-wrap
27062 msgid ""
27063 " head-n nrlines path\n"
27064 "\n"
27065 msgstr ""
27066
27067 # type: =head2
27068 #. type: =head2
27069 #: ../fish/guestfish-actions.pod:1551
27070 msgid "hexdump"
27071 msgstr ""
27072
27073 # type: verbatim
27074 #. type: verbatim
27075 #: ../fish/guestfish-actions.pod:1553
27076 #, no-wrap
27077 msgid ""
27078 " hexdump path\n"
27079 "\n"
27080 msgstr ""
27081
27082 # type: =head2
27083 #. type: =head2
27084 #: ../fish/guestfish-actions.pod:1561
27085 msgid "initrd-cat"
27086 msgstr ""
27087
27088 # type: verbatim
27089 #. type: verbatim
27090 #: ../fish/guestfish-actions.pod:1563
27091 #, no-wrap
27092 msgid ""
27093 " initrd-cat initrdpath filename\n"
27094 "\n"
27095 msgstr ""
27096
27097 # type: textblock
27098 #. type: textblock
27099 #: ../fish/guestfish-actions.pod:1575
27100 msgid "See also L</initrd-list>."
27101 msgstr ""
27102
27103 # type: =head2
27104 #. type: =head2
27105 #: ../fish/guestfish-actions.pod:1580
27106 msgid "initrd-list"
27107 msgstr ""
27108
27109 # type: verbatim
27110 #. type: verbatim
27111 #: ../fish/guestfish-actions.pod:1582
27112 #, no-wrap
27113 msgid ""
27114 " initrd-list path\n"
27115 "\n"
27116 msgstr ""
27117
27118 # type: =head2
27119 #. type: =head2
27120 #: ../fish/guestfish-actions.pod:1594
27121 msgid "inotify-add-watch"
27122 msgstr ""
27123
27124 # type: verbatim
27125 #. type: verbatim
27126 #: ../fish/guestfish-actions.pod:1596
27127 #, no-wrap
27128 msgid ""
27129 " inotify-add-watch path mask\n"
27130 "\n"
27131 msgstr ""
27132
27133 # type: =head2
27134 #. type: =head2
27135 #: ../fish/guestfish-actions.pod:1608
27136 msgid "inotify-close"
27137 msgstr ""
27138
27139 # type: verbatim
27140 #. type: verbatim
27141 #: ../fish/guestfish-actions.pod:1610
27142 #, no-wrap
27143 msgid ""
27144 " inotify-close\n"
27145 "\n"
27146 msgstr ""
27147
27148 # type: =head2
27149 #. type: =head2
27150 #: ../fish/guestfish-actions.pod:1616
27151 msgid "inotify-files"
27152 msgstr ""
27153
27154 # type: verbatim
27155 #. type: verbatim
27156 #: ../fish/guestfish-actions.pod:1618
27157 #, no-wrap
27158 msgid ""
27159 " inotify-files\n"
27160 "\n"
27161 msgstr ""
27162
27163 # type: textblock
27164 #. type: textblock
27165 #: ../fish/guestfish-actions.pod:1620
27166 msgid ""
27167 "This function is a helpful wrapper around L</inotify-read> which just "
27168 "returns a list of pathnames of objects that were touched.  The returned "
27169 "pathnames are sorted and deduplicated."
27170 msgstr ""
27171
27172 # type: =head2
27173 #. type: =head2
27174 #: ../fish/guestfish-actions.pod:1624
27175 msgid "inotify-init"
27176 msgstr ""
27177
27178 # type: verbatim
27179 #. type: verbatim
27180 #: ../fish/guestfish-actions.pod:1626
27181 #, no-wrap
27182 msgid ""
27183 " inotify-init maxevents\n"
27184 "\n"
27185 msgstr ""
27186
27187 # type: textblock
27188 #. type: textblock
27189 #: ../fish/guestfish-actions.pod:1632
27190 msgid ""
27191 "C<maxevents> is the maximum number of events which will be queued up between "
27192 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
27193 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
27194 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
27195 "but records the fact that it threw them away by setting a flag "
27196 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
27197 msgstr ""
27198
27199 # type: textblock
27200 #. type: textblock
27201 #: ../fish/guestfish-actions.pod:1642
27202 msgid ""
27203 "Before any events are generated, you have to add some watches to the "
27204 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
27205 "L</inotify-watch-all>."
27206 msgstr ""
27207
27208 # type: textblock
27209 #. type: textblock
27210 #: ../fish/guestfish-actions.pod:1648
27211 msgid ""
27212 "Queued up events should be read periodically by calling L</inotify-read> (or "
27213 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
27214 "If you don't read the events out often enough then you risk the internal "
27215 "queue overflowing."
27216 msgstr ""
27217
27218 # type: textblock
27219 #. type: textblock
27220 #: ../fish/guestfish-actions.pod:1655
27221 msgid ""
27222 "The handle should be closed after use by calling L</inotify-close>.  This "
27223 "also removes any watches automatically."
27224 msgstr ""
27225
27226 # type: =head2
27227 #. type: =head2
27228 #: ../fish/guestfish-actions.pod:1664
27229 msgid "inotify-read"
27230 msgstr ""
27231
27232 # type: verbatim
27233 #. type: verbatim
27234 #: ../fish/guestfish-actions.pod:1666
27235 #, no-wrap
27236 msgid ""
27237 " inotify-read\n"
27238 "\n"
27239 msgstr ""
27240
27241 # type: =head2
27242 #. type: =head2
27243 #: ../fish/guestfish-actions.pod:1679
27244 msgid "inotify-rm-watch"
27245 msgstr ""
27246
27247 # type: verbatim
27248 #. type: verbatim
27249 #: ../fish/guestfish-actions.pod:1681
27250 #, no-wrap
27251 msgid ""
27252 " inotify-rm-watch wd\n"
27253 "\n"
27254 msgstr ""
27255
27256 # type: textblock
27257 #. type: textblock
27258 #: ../fish/guestfish-actions.pod:1683
27259 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
27260 msgstr ""
27261
27262 # type: =head2
27263 #. type: =head2
27264 #: ../fish/guestfish-actions.pod:1686
27265 msgid "inspect-get-arch"
27266 msgstr ""
27267
27268 # type: verbatim
27269 #. type: verbatim
27270 #: ../fish/guestfish-actions.pod:1688
27271 #, no-wrap
27272 msgid ""
27273 " inspect-get-arch root\n"
27274 "\n"
27275 msgstr ""
27276
27277 # type: textblock
27278 #. type: textblock
27279 #: ../fish/guestfish-actions.pod:1690
27280 msgid ""
27281 "This returns the architecture of the inspected operating system.  The "
27282 "possible return values are listed under L</file-architecture>."
27283 msgstr ""
27284
27285 # type: =head2
27286 #. type: =head2
27287 #: ../fish/guestfish-actions.pod:1699
27288 msgid "inspect-get-distro"
27289 msgstr ""
27290
27291 # type: verbatim
27292 #. type: verbatim
27293 #: ../fish/guestfish-actions.pod:1701
27294 #, no-wrap
27295 msgid ""
27296 " inspect-get-distro root\n"
27297 "\n"
27298 msgstr ""
27299
27300 #. type: =head2
27301 #: ../fish/guestfish-actions.pod:1782
27302 msgid "inspect-get-drive-mappings"
27303 msgstr ""
27304
27305 #. type: verbatim
27306 #: ../fish/guestfish-actions.pod:1784
27307 #, no-wrap
27308 msgid ""
27309 " inspect-get-drive-mappings root\n"
27310 "\n"
27311 msgstr ""
27312
27313 #. type: textblock
27314 #: ../fish/guestfish-actions.pod:1811
27315 msgid ""
27316 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
27317 "get-mountpoints>, L</inspect-get-filesystems>."
27318 msgstr ""
27319
27320 # type: =head2
27321 #. type: =head2
27322 #: ../fish/guestfish-actions.pod:1815
27323 msgid "inspect-get-filesystems"
27324 msgstr ""
27325
27326 # type: verbatim
27327 #. type: verbatim
27328 #: ../fish/guestfish-actions.pod:1817
27329 #, no-wrap
27330 msgid ""
27331 " inspect-get-filesystems root\n"
27332 "\n"
27333 msgstr ""
27334
27335 # type: textblock
27336 #. type: textblock
27337 #: ../fish/guestfish-actions.pod:1827
27338 msgid ""
27339 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
27340 "get-mountpoints>."
27341 msgstr ""
27342
27343 #. type: =head2
27344 #: ../fish/guestfish-actions.pod:1830
27345 msgid "inspect-get-format"
27346 msgstr ""
27347
27348 #. type: verbatim
27349 #: ../fish/guestfish-actions.pod:1832
27350 #, no-wrap
27351 msgid ""
27352 " inspect-get-format root\n"
27353 "\n"
27354 msgstr ""
27355
27356 # type: =head2
27357 #. type: =head2
27358 #: ../fish/guestfish-actions.pod:1861
27359 msgid "inspect-get-hostname"
27360 msgstr ""
27361
27362 # type: verbatim
27363 #. type: verbatim
27364 #: ../fish/guestfish-actions.pod:1863
27365 #, no-wrap
27366 msgid ""
27367 " inspect-get-hostname root\n"
27368 "\n"
27369 msgstr ""
27370
27371 #. type: =head2
27372 #: ../fish/guestfish-actions.pod:1873
27373 msgid "inspect-get-icon"
27374 msgstr ""
27375
27376 #. type: verbatim
27377 #: ../fish/guestfish-actions.pod:1875
27378 #, no-wrap
27379 msgid ""
27380 " inspect-get-icon root [favicon:..] [highquality:..]\n"
27381 "\n"
27382 msgstr ""
27383
27384 # type: =head2
27385 #. type: =head2
27386 #: ../fish/guestfish-actions.pod:1939
27387 msgid "inspect-get-major-version"
27388 msgstr ""
27389
27390 # type: verbatim
27391 #. type: verbatim
27392 #: ../fish/guestfish-actions.pod:1941
27393 #, no-wrap
27394 msgid ""
27395 " inspect-get-major-version root\n"
27396 "\n"
27397 msgstr ""
27398
27399 # type: =head2
27400 #. type: =head2
27401 #: ../fish/guestfish-actions.pod:1957
27402 msgid "inspect-get-minor-version"
27403 msgstr ""
27404
27405 # type: verbatim
27406 #. type: verbatim
27407 #: ../fish/guestfish-actions.pod:1959
27408 #, no-wrap
27409 msgid ""
27410 " inspect-get-minor-version root\n"
27411 "\n"
27412 msgstr ""
27413
27414 # type: textblock
27415 #. type: textblock
27416 #: ../fish/guestfish-actions.pod:1966
27417 msgid ""
27418 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
27419 "get-major-version>."
27420 msgstr ""
27421
27422 # type: =head2
27423 #. type: =head2
27424 #: ../fish/guestfish-actions.pod:1969
27425 msgid "inspect-get-mountpoints"
27426 msgstr ""
27427
27428 # type: verbatim
27429 #. type: verbatim
27430 #: ../fish/guestfish-actions.pod:1971
27431 #, no-wrap
27432 msgid ""
27433 " inspect-get-mountpoints root\n"
27434 "\n"
27435 msgstr ""
27436
27437 #. type: textblock
27438 #: ../fish/guestfish-actions.pod:1990
27439 msgid ""
27440 "For operating systems like Windows which still use drive letters, this call "
27441 "will only return an entry for the first drive \"mounted on\" C</>.  For "
27442 "information about the mapping of drive letters to partitions, see L</inspect-"
27443 "get-drive-mappings>."
27444 msgstr ""
27445
27446 # type: textblock
27447 #. type: textblock
27448 #: ../fish/guestfish-actions.pod:1996
27449 msgid ""
27450 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
27451 "get-filesystems>."
27452 msgstr ""
27453
27454 # type: =head2
27455 #. type: =head2
27456 #: ../fish/guestfish-actions.pod:1999
27457 msgid "inspect-get-package-format"
27458 msgstr ""
27459
27460 # type: verbatim
27461 #. type: verbatim
27462 #: ../fish/guestfish-actions.pod:2001
27463 #, no-wrap
27464 msgid ""
27465 " inspect-get-package-format root\n"
27466 "\n"
27467 msgstr ""
27468
27469 # type: textblock
27470 #. type: textblock
27471 #: ../fish/guestfish-actions.pod:2003
27472 msgid ""
27473 "This function and L</inspect-get-package-management> return the package "
27474 "format and package management tool used by the inspected operating system.  "
27475 "For example for Fedora these functions would return C<rpm> (package format) "
27476 "and C<yum> (package management)."
27477 msgstr ""
27478
27479 # type: =head2
27480 #. type: =head2
27481 #: ../fish/guestfish-actions.pod:2018
27482 msgid "inspect-get-package-management"
27483 msgstr ""
27484
27485 # type: verbatim
27486 #. type: verbatim
27487 #: ../fish/guestfish-actions.pod:2020
27488 #, no-wrap
27489 msgid ""
27490 " inspect-get-package-management root\n"
27491 "\n"
27492 msgstr ""
27493
27494 # type: textblock
27495 #. type: textblock
27496 #: ../fish/guestfish-actions.pod:2022
27497 msgid ""
27498 "L</inspect-get-package-format> and this function return the package format "
27499 "and package management tool used by the inspected operating system.  For "
27500 "example for Fedora these functions would return C<rpm> (package format) and "
27501 "C<yum> (package management)."
27502 msgstr ""
27503
27504 # type: =head2
27505 #. type: =head2
27506 #: ../fish/guestfish-actions.pod:2039
27507 msgid "inspect-get-product-name"
27508 msgstr ""
27509
27510 # type: verbatim
27511 #. type: verbatim
27512 #: ../fish/guestfish-actions.pod:2041
27513 #, no-wrap
27514 msgid ""
27515 " inspect-get-product-name root\n"
27516 "\n"
27517 msgstr ""
27518
27519 #. type: =head2
27520 #: ../fish/guestfish-actions.pod:2053
27521 msgid "inspect-get-product-variant"
27522 msgstr ""
27523
27524 #. type: verbatim
27525 #: ../fish/guestfish-actions.pod:2055
27526 #, no-wrap
27527 msgid ""
27528 " inspect-get-product-variant root\n"
27529 "\n"
27530 msgstr ""
27531
27532 #. type: textblock
27533 #: ../fish/guestfish-actions.pod:2076
27534 msgid ""
27535 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
27536 "get-product-name>, L</inspect-get-major-version>."
27537 msgstr ""
27538
27539 # type: =head2
27540 #. type: =head2
27541 #: ../fish/guestfish-actions.pod:2080
27542 msgid "inspect-get-roots"
27543 msgstr ""
27544
27545 # type: verbatim
27546 #. type: verbatim
27547 #: ../fish/guestfish-actions.pod:2082
27548 #, no-wrap
27549 msgid ""
27550 " inspect-get-roots\n"
27551 "\n"
27552 msgstr ""
27553
27554 # type: textblock
27555 #. type: textblock
27556 #: ../fish/guestfish-actions.pod:2084
27557 msgid ""
27558 "This function is a convenient way to get the list of root devices, as "
27559 "returned from a previous call to L</inspect-os>, but without redoing the "
27560 "whole inspection process."
27561 msgstr ""
27562
27563 # type: textblock
27564 #. type: textblock
27565 #: ../fish/guestfish-actions.pod:2088
27566 msgid ""
27567 "This returns an empty list if either no root devices were found or the "
27568 "caller has not called L</inspect-os>."
27569 msgstr ""
27570
27571 # type: =head2
27572 #. type: =head2
27573 #: ../fish/guestfish-actions.pod:2093
27574 msgid "inspect-get-type"
27575 msgstr ""
27576
27577 # type: verbatim
27578 #. type: verbatim
27579 #: ../fish/guestfish-actions.pod:2095
27580 #, no-wrap
27581 msgid ""
27582 " inspect-get-type root\n"
27583 "\n"
27584 msgstr ""
27585
27586 #. type: =head2
27587 #: ../fish/guestfish-actions.pod:2125
27588 msgid "inspect-get-windows-current-control-set"
27589 msgstr ""
27590
27591 #. type: verbatim
27592 #: ../fish/guestfish-actions.pod:2127
27593 #, no-wrap
27594 msgid ""
27595 " inspect-get-windows-current-control-set root\n"
27596 "\n"
27597 msgstr ""
27598
27599 # type: =head2
27600 #. type: =head2
27601 #: ../fish/guestfish-actions.pod:2138
27602 msgid "inspect-get-windows-systemroot"
27603 msgstr ""
27604
27605 # type: verbatim
27606 #. type: verbatim
27607 #: ../fish/guestfish-actions.pod:2140
27608 #, no-wrap
27609 msgid ""
27610 " inspect-get-windows-systemroot root\n"
27611 "\n"
27612 msgstr ""
27613
27614 #. type: =head2
27615 #: ../fish/guestfish-actions.pod:2151
27616 msgid "inspect-is-live"
27617 msgstr ""
27618
27619 #. type: verbatim
27620 #: ../fish/guestfish-actions.pod:2153
27621 #, no-wrap
27622 msgid ""
27623 " inspect-is-live root\n"
27624 "\n"
27625 msgstr ""
27626
27627 #. type: textblock
27628 #: ../fish/guestfish-actions.pod:2155
27629 msgid ""
27630 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
27631 "then this returns true if a live image was detected on the disk."
27632 msgstr ""
27633
27634 #. type: =head2
27635 #: ../fish/guestfish-actions.pod:2161
27636 msgid "inspect-is-multipart"
27637 msgstr ""
27638
27639 #. type: verbatim
27640 #: ../fish/guestfish-actions.pod:2163
27641 #, no-wrap
27642 msgid ""
27643 " inspect-is-multipart root\n"
27644 "\n"
27645 msgstr ""
27646
27647 #. type: textblock
27648 #: ../fish/guestfish-actions.pod:2165
27649 msgid ""
27650 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
27651 "then this returns true if the disk is part of a set."
27652 msgstr ""
27653
27654 #. type: =head2
27655 #: ../fish/guestfish-actions.pod:2171
27656 msgid "inspect-is-netinst"
27657 msgstr ""
27658
27659 #. type: verbatim
27660 #: ../fish/guestfish-actions.pod:2173
27661 #, no-wrap
27662 msgid ""
27663 " inspect-is-netinst root\n"
27664 "\n"
27665 msgstr ""
27666
27667 #. type: textblock
27668 #: ../fish/guestfish-actions.pod:2175
27669 msgid ""
27670 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
27671 "then this returns true if the disk is a network installer, ie. not a self-"
27672 "contained install CD but one which is likely to require network access to "
27673 "complete the install."
27674 msgstr ""
27675
27676 # type: =head2
27677 #. type: =head2
27678 #: ../fish/guestfish-actions.pod:2183
27679 msgid "inspect-list-applications"
27680 msgstr ""
27681
27682 # type: verbatim
27683 #. type: verbatim
27684 #: ../fish/guestfish-actions.pod:2185
27685 #, no-wrap
27686 msgid ""
27687 " inspect-list-applications root\n"
27688 "\n"
27689 msgstr ""
27690
27691 # type: textblock
27692 #. type: textblock
27693 #: ../fish/guestfish-actions.pod:2189
27694 msgid ""
27695 "I<Note:> This call works differently from other parts of the inspection "
27696 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
27697 "then mount up the disks, before calling this.  Listing applications is a "
27698 "significantly more difficult operation which requires access to the full "
27699 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
27700 "are just returning data cached in the libguestfs handle, this call actually "
27701 "reads parts of the mounted filesystems during the call."
27702 msgstr ""
27703
27704 # type: =head2
27705 #. type: =head2
27706 #: ../fish/guestfish-actions.pod:2279
27707 msgid "inspect-os"
27708 msgstr ""
27709
27710 # type: verbatim
27711 #. type: verbatim
27712 #: ../fish/guestfish-actions.pod:2281
27713 #, no-wrap
27714 msgid ""
27715 " inspect-os\n"
27716 "\n"
27717 msgstr ""
27718
27719 # type: textblock
27720 #. type: textblock
27721 #: ../fish/guestfish-actions.pod:2296
27722 msgid ""
27723 "You can pass the root string(s) returned to other L</inspect-get-*> "
27724 "functions in order to query further information about each operating system, "
27725 "such as the name and version."
27726 msgstr ""
27727
27728 # type: textblock
27729 #. type: textblock
27730 #: ../fish/guestfish-actions.pod:2301
27731 msgid ""
27732 "This function uses other libguestfs features such as L</mount-ro> and L</"
27733 "umount-all> in order to mount and unmount filesystems and look at the "
27734 "contents.  This should be called with no disks currently mounted.  The "
27735 "function may also use Augeas, so any existing Augeas handle will be closed."
27736 msgstr ""
27737
27738 # type: textblock
27739 #. type: textblock
27740 #: ../fish/guestfish-actions.pod:2313 ../fish/guestfish-actions.pod:2511
27741 #: ../fish/guestfish-actions.pod:2570
27742 msgid "See also L</list-filesystems>."
27743 msgstr ""
27744
27745 # type: =head2
27746 #. type: =head2
27747 #: ../fish/guestfish-actions.pod:2315
27748 msgid "is-blockdev"
27749 msgstr ""
27750
27751 # type: verbatim
27752 #. type: verbatim
27753 #: ../fish/guestfish-actions.pod:2317
27754 #, no-wrap
27755 msgid ""
27756 " is-blockdev path\n"
27757 "\n"
27758 msgstr ""
27759
27760 # type: textblock
27761 #. type: textblock
27762 #: ../fish/guestfish-actions.pod:2322 ../fish/guestfish-actions.pod:2340
27763 #: ../fish/guestfish-actions.pod:2359 ../fish/guestfish-actions.pod:2368
27764 #: ../fish/guestfish-actions.pod:2378 ../fish/guestfish-actions.pod:2412
27765 #: ../fish/guestfish-actions.pod:2421
27766 msgid "See also L</stat>."
27767 msgstr ""
27768
27769 # type: =head2
27770 #. type: =head2
27771 #: ../fish/guestfish-actions.pod:2324
27772 msgid "is-busy"
27773 msgstr ""
27774
27775 # type: verbatim
27776 #. type: verbatim
27777 #: ../fish/guestfish-actions.pod:2326
27778 #, no-wrap
27779 msgid ""
27780 " is-busy\n"
27781 "\n"
27782 msgstr ""
27783
27784 # type: =head2
27785 #. type: =head2
27786 #: ../fish/guestfish-actions.pod:2333
27787 msgid "is-chardev"
27788 msgstr ""
27789
27790 # type: verbatim
27791 #. type: verbatim
27792 #: ../fish/guestfish-actions.pod:2335
27793 #, no-wrap
27794 msgid ""
27795 " is-chardev path\n"
27796 "\n"
27797 msgstr ""
27798
27799 # type: =head2
27800 #. type: =head2
27801 #: ../fish/guestfish-actions.pod:2342
27802 msgid "is-config"
27803 msgstr ""
27804
27805 # type: verbatim
27806 #. type: verbatim
27807 #: ../fish/guestfish-actions.pod:2344
27808 #, no-wrap
27809 msgid ""
27810 " is-config\n"
27811 "\n"
27812 msgstr ""
27813
27814 # type: =head2
27815 #. type: =head2
27816 #: ../fish/guestfish-actions.pod:2351
27817 msgid "is-dir"
27818 msgstr ""
27819
27820 # type: verbatim
27821 #. type: verbatim
27822 #: ../fish/guestfish-actions.pod:2353
27823 #, no-wrap
27824 msgid ""
27825 " is-dir path\n"
27826 "\n"
27827 msgstr ""
27828
27829 # type: =head2
27830 #. type: =head2
27831 #: ../fish/guestfish-actions.pod:2361
27832 msgid "is-fifo"
27833 msgstr ""
27834
27835 # type: verbatim
27836 #. type: verbatim
27837 #: ../fish/guestfish-actions.pod:2363
27838 #, no-wrap
27839 msgid ""
27840 " is-fifo path\n"
27841 "\n"
27842 msgstr ""
27843
27844 # type: =head2
27845 #. type: =head2
27846 #: ../fish/guestfish-actions.pod:2370
27847 msgid "is-file"
27848 msgstr ""
27849
27850 # type: verbatim
27851 #. type: verbatim
27852 #: ../fish/guestfish-actions.pod:2372
27853 #, no-wrap
27854 msgid ""
27855 " is-file path\n"
27856 "\n"
27857 msgstr ""
27858
27859 # type: =head2
27860 #. type: =head2
27861 #: ../fish/guestfish-actions.pod:2380
27862 msgid "is-launching"
27863 msgstr ""
27864
27865 # type: verbatim
27866 #. type: verbatim
27867 #: ../fish/guestfish-actions.pod:2382
27868 #, no-wrap
27869 msgid ""
27870 " is-launching\n"
27871 "\n"
27872 msgstr ""
27873
27874 # type: =head2
27875 #. type: =head2
27876 #: ../fish/guestfish-actions.pod:2389
27877 msgid "is-lv"
27878 msgstr ""
27879
27880 # type: verbatim
27881 #. type: verbatim
27882 #: ../fish/guestfish-actions.pod:2391
27883 #, no-wrap
27884 msgid ""
27885 " is-lv device\n"
27886 "\n"
27887 msgstr ""
27888
27889 # type: =head2
27890 #. type: =head2
27891 #: ../fish/guestfish-actions.pod:2396
27892 msgid "is-ready"
27893 msgstr ""
27894
27895 # type: verbatim
27896 #. type: verbatim
27897 #: ../fish/guestfish-actions.pod:2398
27898 #, no-wrap
27899 msgid ""
27900 " is-ready\n"
27901 "\n"
27902 msgstr ""
27903
27904 # type: =head2
27905 #. type: =head2
27906 #: ../fish/guestfish-actions.pod:2405
27907 msgid "is-socket"
27908 msgstr ""
27909
27910 # type: verbatim
27911 #. type: verbatim
27912 #: ../fish/guestfish-actions.pod:2407
27913 #, no-wrap
27914 msgid ""
27915 " is-socket path\n"
27916 "\n"
27917 msgstr ""
27918
27919 # type: =head2
27920 #. type: =head2
27921 #: ../fish/guestfish-actions.pod:2414
27922 msgid "is-symlink"
27923 msgstr ""
27924
27925 # type: verbatim
27926 #. type: verbatim
27927 #: ../fish/guestfish-actions.pod:2416
27928 #, no-wrap
27929 msgid ""
27930 " is-symlink path\n"
27931 "\n"
27932 msgstr ""
27933
27934 #. type: =head2
27935 #: ../fish/guestfish-actions.pod:2423
27936 msgid "is-zero"
27937 msgstr ""
27938
27939 #. type: verbatim
27940 #: ../fish/guestfish-actions.pod:2425
27941 #, no-wrap
27942 msgid ""
27943 " is-zero path\n"
27944 "\n"
27945 msgstr ""
27946
27947 #. type: =head2
27948 #: ../fish/guestfish-actions.pod:2430
27949 msgid "is-zero-device"
27950 msgstr ""
27951
27952 #. type: verbatim
27953 #: ../fish/guestfish-actions.pod:2432
27954 #, no-wrap
27955 msgid ""
27956 " is-zero-device device\n"
27957 "\n"
27958 msgstr ""
27959
27960 # type: =head2
27961 #. type: =head2
27962 #: ../fish/guestfish-actions.pod:2438
27963 msgid "kill-subprocess"
27964 msgstr ""
27965
27966 # type: verbatim
27967 #. type: verbatim
27968 #: ../fish/guestfish-actions.pod:2440
27969 #, no-wrap
27970 msgid ""
27971 " kill-subprocess\n"
27972 "\n"
27973 msgstr ""
27974
27975 # type: =head2
27976 #. type: =head2
27977 #: ../fish/guestfish-actions.pod:2444
27978 msgid "launch"
27979 msgstr ""
27980
27981 # type: =head2
27982 #. type: =head2
27983 #: ../fish/guestfish-actions.pod:2446
27984 msgid "run"
27985 msgstr ""
27986
27987 # type: verbatim
27988 #. type: verbatim
27989 #: ../fish/guestfish-actions.pod:2448
27990 #, no-wrap
27991 msgid ""
27992 " launch\n"
27993 "\n"
27994 msgstr ""
27995
27996 # type: =head2
27997 #. type: =head2
27998 #: ../fish/guestfish-actions.pod:2456
27999 msgid "lchown"
28000 msgstr ""
28001
28002 # type: verbatim
28003 #. type: verbatim
28004 #: ../fish/guestfish-actions.pod:2458
28005 #, no-wrap
28006 msgid ""
28007 " lchown owner group path\n"
28008 "\n"
28009 msgstr ""
28010
28011 # type: textblock
28012 #. type: textblock
28013 #: ../fish/guestfish-actions.pod:2460
28014 msgid ""
28015 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
28016 "chown> but if C<path> is a symlink then the link itself is changed, not the "
28017 "target."
28018 msgstr ""
28019
28020 # type: =head2
28021 #. type: =head2
28022 #: ../fish/guestfish-actions.pod:2468
28023 msgid "lgetxattr"
28024 msgstr ""
28025
28026 # type: verbatim
28027 #. type: verbatim
28028 #: ../fish/guestfish-actions.pod:2470
28029 #, no-wrap
28030 msgid ""
28031 " lgetxattr path name\n"
28032 "\n"
28033 msgstr ""
28034
28035 # type: textblock
28036 #. type: textblock
28037 #: ../fish/guestfish-actions.pod:2486
28038 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
28039 msgstr ""
28040
28041 # type: =head2
28042 #. type: =head2
28043 #: ../fish/guestfish-actions.pod:2488
28044 msgid "lgetxattrs"
28045 msgstr ""
28046
28047 # type: verbatim
28048 #. type: verbatim
28049 #: ../fish/guestfish-actions.pod:2490
28050 #, no-wrap
28051 msgid ""
28052 " lgetxattrs path\n"
28053 "\n"
28054 msgstr ""
28055
28056 # type: textblock
28057 #. type: textblock
28058 #: ../fish/guestfish-actions.pod:2492
28059 msgid ""
28060 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
28061 "it returns the extended attributes of the link itself."
28062 msgstr ""
28063
28064 #. type: =head2
28065 #: ../fish/guestfish-actions.pod:2496
28066 msgid "list-9p"
28067 msgstr ""
28068
28069 #. type: verbatim
28070 #: ../fish/guestfish-actions.pod:2498
28071 #, no-wrap
28072 msgid ""
28073 " list-9p\n"
28074 "\n"
28075 msgstr ""
28076
28077 # type: =head2
28078 #. type: =head2
28079 #: ../fish/guestfish-actions.pod:2503
28080 msgid "list-devices"
28081 msgstr ""
28082
28083 # type: verbatim
28084 #. type: verbatim
28085 #: ../fish/guestfish-actions.pod:2505
28086 #, no-wrap
28087 msgid ""
28088 " list-devices\n"
28089 "\n"
28090 msgstr ""
28091
28092 #. type: =head2
28093 #: ../fish/guestfish-actions.pod:2513
28094 msgid "list-dm-devices"
28095 msgstr ""
28096
28097 #. type: verbatim
28098 #: ../fish/guestfish-actions.pod:2515
28099 #, no-wrap
28100 msgid ""
28101 " list-dm-devices\n"
28102 "\n"
28103 msgstr ""
28104
28105 #. type: textblock
28106 #: ../fish/guestfish-actions.pod:2519
28107 msgid ""
28108 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
28109 "previous call to L</luks-open>."
28110 msgstr ""
28111
28112 #. type: textblock
28113 #: ../fish/guestfish-actions.pod:2522
28114 msgid ""
28115 "Device mapper devices which correspond to logical volumes are I<not> "
28116 "returned in this list.  Call L</lvs> if you want to list logical volumes."
28117 msgstr ""
28118
28119 # type: =head2
28120 #. type: =head2
28121 #: ../fish/guestfish-actions.pod:2526
28122 msgid "list-filesystems"
28123 msgstr ""
28124
28125 # type: verbatim
28126 #. type: verbatim
28127 #: ../fish/guestfish-actions.pod:2528
28128 #, no-wrap
28129 msgid ""
28130 " list-filesystems\n"
28131 "\n"
28132 msgstr ""
28133
28134 # type: textblock
28135 #. type: textblock
28136 #: ../fish/guestfish-actions.pod:2547
28137 msgid ""
28138 "This command runs other libguestfs commands, which might include L</mount> "
28139 "and L</umount>, and therefore you should use this soon after launch and only "
28140 "when nothing is mounted."
28141 msgstr ""
28142
28143 # type: textblock
28144 #. type: textblock
28145 #: ../fish/guestfish-actions.pod:2551
28146 msgid ""
28147 "Not all of the filesystems returned will be mountable.  In particular, swap "
28148 "partitions are returned in the list.  Also this command does not check that "
28149 "each filesystem found is valid and mountable, and some filesystems might be "
28150 "mountable but require special options.  Filesystems may not all belong to a "
28151 "single logical operating system (use L</inspect-os> to look for OSes)."
28152 msgstr ""
28153
28154 # type: =head2
28155 #. type: =head2
28156 #: ../fish/guestfish-actions.pod:2559
28157 msgid "list-partitions"
28158 msgstr ""
28159
28160 # type: verbatim
28161 #. type: verbatim
28162 #: ../fish/guestfish-actions.pod:2561
28163 #, no-wrap
28164 msgid ""
28165 " list-partitions\n"
28166 "\n"
28167 msgstr ""
28168
28169 # type: textblock
28170 #. type: textblock
28171 #: ../fish/guestfish-actions.pod:2567
28172 msgid ""
28173 "This does not return logical volumes.  For that you will need to call L</"
28174 "lvs>."
28175 msgstr ""
28176
28177 # type: =head2
28178 #. type: =head2
28179 #: ../fish/guestfish-actions.pod:2572
28180 msgid "ll"
28181 msgstr ""
28182
28183 # type: verbatim
28184 #. type: verbatim
28185 #: ../fish/guestfish-actions.pod:2574
28186 #, no-wrap
28187 msgid ""
28188 " ll directory\n"
28189 "\n"
28190 msgstr ""
28191
28192 # type: =head2
28193 #. type: =head2
28194 #: ../fish/guestfish-actions.pod:2582
28195 msgid "ln"
28196 msgstr ""
28197
28198 # type: verbatim
28199 #. type: verbatim
28200 #: ../fish/guestfish-actions.pod:2584
28201 #, no-wrap
28202 msgid ""
28203 " ln target linkname\n"
28204 "\n"
28205 msgstr ""
28206
28207 # type: =head2
28208 #. type: =head2
28209 #: ../fish/guestfish-actions.pod:2588
28210 msgid "ln-f"
28211 msgstr ""
28212
28213 # type: verbatim
28214 #. type: verbatim
28215 #: ../fish/guestfish-actions.pod:2590
28216 #, no-wrap
28217 msgid ""
28218 " ln-f target linkname\n"
28219 "\n"
28220 msgstr ""
28221
28222 # type: =head2
28223 #. type: =head2
28224 #: ../fish/guestfish-actions.pod:2595
28225 msgid "ln-s"
28226 msgstr ""
28227
28228 # type: verbatim
28229 #. type: verbatim
28230 #: ../fish/guestfish-actions.pod:2597
28231 #, no-wrap
28232 msgid ""
28233 " ln-s target linkname\n"
28234 "\n"
28235 msgstr ""
28236
28237 # type: =head2
28238 #. type: =head2
28239 #: ../fish/guestfish-actions.pod:2601
28240 msgid "ln-sf"
28241 msgstr ""
28242
28243 # type: verbatim
28244 #. type: verbatim
28245 #: ../fish/guestfish-actions.pod:2603
28246 #, no-wrap
28247 msgid ""
28248 " ln-sf target linkname\n"
28249 "\n"
28250 msgstr ""
28251
28252 # type: =head2
28253 #. type: =head2
28254 #: ../fish/guestfish-actions.pod:2608
28255 msgid "lremovexattr"
28256 msgstr ""
28257
28258 # type: verbatim
28259 #. type: verbatim
28260 #: ../fish/guestfish-actions.pod:2610
28261 #, no-wrap
28262 msgid ""
28263 " lremovexattr xattr path\n"
28264 "\n"
28265 msgstr ""
28266
28267 # type: textblock
28268 #. type: textblock
28269 #: ../fish/guestfish-actions.pod:2612
28270 msgid ""
28271 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
28272 "it removes an extended attribute of the link itself."
28273 msgstr ""
28274
28275 # type: =head2
28276 #. type: =head2
28277 #: ../fish/guestfish-actions.pod:2616
28278 msgid "ls"
28279 msgstr ""
28280
28281 # type: verbatim
28282 #. type: verbatim
28283 #: ../fish/guestfish-actions.pod:2618
28284 #, no-wrap
28285 msgid ""
28286 " ls directory\n"
28287 "\n"
28288 msgstr ""
28289
28290 # type: textblock
28291 #. type: textblock
28292 #: ../fish/guestfish-actions.pod:2624
28293 msgid ""
28294 "This command is mostly useful for interactive sessions.  Programs should "
28295 "probably use L</readdir> instead."
28296 msgstr ""
28297
28298 # type: =head2
28299 #. type: =head2
28300 #: ../fish/guestfish-actions.pod:2627
28301 msgid "lsetxattr"
28302 msgstr ""
28303
28304 # type: verbatim
28305 #. type: verbatim
28306 #: ../fish/guestfish-actions.pod:2629
28307 #, no-wrap
28308 msgid ""
28309 " lsetxattr xattr val vallen path\n"
28310 "\n"
28311 msgstr ""
28312
28313 # type: textblock
28314 #. type: textblock
28315 #: ../fish/guestfish-actions.pod:2631
28316 msgid ""
28317 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
28318 "sets an extended attribute of the link itself."
28319 msgstr ""
28320
28321 # type: =head2
28322 #. type: =head2
28323 #: ../fish/guestfish-actions.pod:2635
28324 msgid "lstat"
28325 msgstr ""
28326
28327 # type: verbatim
28328 #. type: verbatim
28329 #: ../fish/guestfish-actions.pod:2637
28330 #, no-wrap
28331 msgid ""
28332 " lstat path\n"
28333 "\n"
28334 msgstr ""
28335
28336 # type: textblock
28337 #. type: textblock
28338 #: ../fish/guestfish-actions.pod:2641
28339 msgid ""
28340 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
28341 "the link is stat-ed, not the file it refers to."
28342 msgstr ""
28343
28344 # type: =head2
28345 #. type: =head2
28346 #: ../fish/guestfish-actions.pod:2647
28347 msgid "lstatlist"
28348 msgstr ""
28349
28350 # type: verbatim
28351 #. type: verbatim
28352 #: ../fish/guestfish-actions.pod:2649
28353 #, no-wrap
28354 msgid ""
28355 " lstatlist path 'names ...'\n"
28356 "\n"
28357 msgstr ""
28358
28359 # type: textblock
28360 #. type: textblock
28361 #: ../fish/guestfish-actions.pod:2651
28362 msgid ""
28363 "This call allows you to perform the L</lstat> operation on multiple files, "
28364 "where all files are in the directory C<path>.  C<names> is the list of files "
28365 "from this directory."
28366 msgstr ""
28367
28368 # type: textblock
28369 #. type: textblock
28370 #: ../fish/guestfish-actions.pod:2660
28371 msgid ""
28372 "This call is intended for programs that want to efficiently list a directory "
28373 "contents without making many round-trips.  See also L</lxattrlist> for a "
28374 "similarly efficient call for getting extended attributes.  Very long "
28375 "directory listings might cause the protocol message size to be exceeded, "
28376 "causing this call to fail.  The caller must split up such requests into "
28377 "smaller groups of names."
28378 msgstr ""
28379
28380 # type: =head2
28381 #. type: =head2
28382 #: ../fish/guestfish-actions.pod:2668
28383 msgid "luks-add-key"
28384 msgstr ""
28385
28386 # type: verbatim
28387 #. type: verbatim
28388 #: ../fish/guestfish-actions.pod:2670
28389 #, no-wrap
28390 msgid ""
28391 " luks-add-key device keyslot\n"
28392 "\n"
28393 msgstr ""
28394
28395 # type: textblock
28396 #. type: textblock
28397 #: ../fish/guestfish-actions.pod:2677
28398 msgid ""
28399 "Note that if C<keyslot> already contains a key, then this command will "
28400 "fail.  You have to use L</luks-kill-slot> first to remove that key."
28401 msgstr ""
28402
28403 # type: textblock
28404 #. type: textblock
28405 #: ../fish/guestfish-actions.pod:2681 ../fish/guestfish-actions.pod:2703
28406 #: ../fish/guestfish-actions.pod:2716 ../fish/guestfish-actions.pod:2730
28407 #: ../fish/guestfish-actions.pod:2756 ../fish/guestfish-actions.pod:2766
28408 msgid ""
28409 "This command has one or more key or passphrase parameters.  Guestfish will "
28410 "prompt for these separately."
28411 msgstr ""
28412
28413 # type: =head2
28414 #. type: =head2
28415 #: ../fish/guestfish-actions.pod:2684
28416 msgid "luks-close"
28417 msgstr ""
28418
28419 # type: verbatim
28420 #. type: verbatim
28421 #: ../fish/guestfish-actions.pod:2686
28422 #, no-wrap
28423 msgid ""
28424 " luks-close device\n"
28425 "\n"
28426 msgstr ""
28427
28428 # type: textblock
28429 #. type: textblock
28430 #: ../fish/guestfish-actions.pod:2688
28431 msgid ""
28432 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
28433 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
28434 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
28435 "block device."
28436 msgstr ""
28437
28438 # type: =head2
28439 #. type: =head2
28440 #: ../fish/guestfish-actions.pod:2694
28441 msgid "luks-format"
28442 msgstr ""
28443
28444 # type: verbatim
28445 #. type: verbatim
28446 #: ../fish/guestfish-actions.pod:2696
28447 #, no-wrap
28448 msgid ""
28449 " luks-format device keyslot\n"
28450 "\n"
28451 msgstr ""
28452
28453 # type: =head2
28454 #. type: =head2
28455 #: ../fish/guestfish-actions.pod:2709
28456 msgid "luks-format-cipher"
28457 msgstr ""
28458
28459 # type: verbatim
28460 #. type: verbatim
28461 #: ../fish/guestfish-actions.pod:2711
28462 #, no-wrap
28463 msgid ""
28464 " luks-format-cipher device keyslot cipher\n"
28465 "\n"
28466 msgstr ""
28467
28468 # type: textblock
28469 #. type: textblock
28470 #: ../fish/guestfish-actions.pod:2713
28471 msgid ""
28472 "This command is the same as L</luks-format> but it also allows you to set "
28473 "the C<cipher> used."
28474 msgstr ""
28475
28476 # type: =head2
28477 #. type: =head2
28478 #: ../fish/guestfish-actions.pod:2722
28479 msgid "luks-kill-slot"
28480 msgstr ""
28481
28482 # type: verbatim
28483 #. type: verbatim
28484 #: ../fish/guestfish-actions.pod:2724
28485 #, no-wrap
28486 msgid ""
28487 " luks-kill-slot device keyslot\n"
28488 "\n"
28489 msgstr ""
28490
28491 # type: =head2
28492 #. type: =head2
28493 #: ../fish/guestfish-actions.pod:2733
28494 msgid "luks-open"
28495 msgstr ""
28496
28497 # type: verbatim
28498 #. type: verbatim
28499 #: ../fish/guestfish-actions.pod:2735
28500 #, no-wrap
28501 msgid ""
28502 " luks-open device mapname\n"
28503 "\n"
28504 msgstr ""
28505
28506 # type: textblock
28507 #. type: textblock
28508 #: ../fish/guestfish-actions.pod:2749
28509 msgid ""
28510 "If this block device contains LVM volume groups, then calling L</vgscan> "
28511 "followed by L</vg-activate-all> will make them visible."
28512 msgstr ""
28513
28514 #. type: textblock
28515 #: ../fish/guestfish-actions.pod:2753
28516 msgid "Use L</list-dm-devices> to list all device mapper devices."
28517 msgstr ""
28518
28519 # type: =head2
28520 #. type: =head2
28521 #: ../fish/guestfish-actions.pod:2759
28522 msgid "luks-open-ro"
28523 msgstr ""
28524
28525 # type: verbatim
28526 #. type: verbatim
28527 #: ../fish/guestfish-actions.pod:2761
28528 #, no-wrap
28529 msgid ""
28530 " luks-open-ro device mapname\n"
28531 "\n"
28532 msgstr ""
28533
28534 # type: textblock
28535 #. type: textblock
28536 #: ../fish/guestfish-actions.pod:2763
28537 msgid ""
28538 "This is the same as L</luks-open> except that a read-only mapping is created."
28539 msgstr ""
28540
28541 # type: =head2
28542 #. type: =head2
28543 #: ../fish/guestfish-actions.pod:2769
28544 msgid "lvcreate"
28545 msgstr ""
28546
28547 # type: verbatim
28548 #. type: verbatim
28549 #: ../fish/guestfish-actions.pod:2771
28550 #, no-wrap
28551 msgid ""
28552 " lvcreate logvol volgroup mbytes\n"
28553 "\n"
28554 msgstr ""
28555
28556 # type: =head2
28557 #. type: =head2
28558 #: ../fish/guestfish-actions.pod:2776
28559 msgid "lvm-canonical-lv-name"
28560 msgstr ""
28561
28562 # type: verbatim
28563 #. type: verbatim
28564 #: ../fish/guestfish-actions.pod:2778
28565 #, no-wrap
28566 msgid ""
28567 " lvm-canonical-lv-name lvname\n"
28568 "\n"
28569 msgstr ""
28570
28571 # type: textblock
28572 #. type: textblock
28573 #: ../fish/guestfish-actions.pod:2787
28574 msgid "See also L</is-lv>."
28575 msgstr ""
28576
28577 # type: =head2
28578 #. type: =head2
28579 #: ../fish/guestfish-actions.pod:2789
28580 msgid "lvm-clear-filter"
28581 msgstr ""
28582
28583 # type: verbatim
28584 #. type: verbatim
28585 #: ../fish/guestfish-actions.pod:2791
28586 #, no-wrap
28587 msgid ""
28588 " lvm-clear-filter\n"
28589 "\n"
28590 msgstr ""
28591
28592 # type: textblock
28593 #. type: textblock
28594 #: ../fish/guestfish-actions.pod:2793
28595 msgid ""
28596 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
28597 "block device."
28598 msgstr ""
28599
28600 # type: =head2
28601 #. type: =head2
28602 #: ../fish/guestfish-actions.pod:2799
28603 msgid "lvm-remove-all"
28604 msgstr ""
28605
28606 # type: verbatim
28607 #. type: verbatim
28608 #: ../fish/guestfish-actions.pod:2801
28609 #, no-wrap
28610 msgid ""
28611 " lvm-remove-all\n"
28612 "\n"
28613 msgstr ""
28614
28615 # type: =head2
28616 #. type: =head2
28617 #: ../fish/guestfish-actions.pod:2809
28618 msgid "lvm-set-filter"
28619 msgstr ""
28620
28621 # type: verbatim
28622 #. type: verbatim
28623 #: ../fish/guestfish-actions.pod:2811
28624 #, no-wrap
28625 msgid ""
28626 " lvm-set-filter 'devices ...'\n"
28627 "\n"
28628 msgstr ""
28629
28630 # type: =head2
28631 #. type: =head2
28632 #: ../fish/guestfish-actions.pod:2836
28633 msgid "lvremove"
28634 msgstr ""
28635
28636 # type: verbatim
28637 #. type: verbatim
28638 #: ../fish/guestfish-actions.pod:2838
28639 #, no-wrap
28640 msgid ""
28641 " lvremove device\n"
28642 "\n"
28643 msgstr ""
28644
28645 # type: =head2
28646 #. type: =head2
28647 #: ../fish/guestfish-actions.pod:2846
28648 msgid "lvrename"
28649 msgstr ""
28650
28651 # type: verbatim
28652 #. type: verbatim
28653 #: ../fish/guestfish-actions.pod:2848
28654 #, no-wrap
28655 msgid ""
28656 " lvrename logvol newlogvol\n"
28657 "\n"
28658 msgstr ""
28659
28660 # type: =head2
28661 #. type: =head2
28662 #: ../fish/guestfish-actions.pod:2852
28663 msgid "lvresize"
28664 msgstr ""
28665
28666 # type: verbatim
28667 #. type: verbatim
28668 #: ../fish/guestfish-actions.pod:2854
28669 #, no-wrap
28670 msgid ""
28671 " lvresize device mbytes\n"
28672 "\n"
28673 msgstr ""
28674
28675 # type: =head2
28676 #. type: =head2
28677 #: ../fish/guestfish-actions.pod:2860
28678 msgid "lvresize-free"
28679 msgstr ""
28680
28681 # type: verbatim
28682 #. type: verbatim
28683 #: ../fish/guestfish-actions.pod:2862
28684 #, no-wrap
28685 msgid ""
28686 " lvresize-free lv percent\n"
28687 "\n"
28688 msgstr ""
28689
28690 # type: =head2
28691 #. type: =head2
28692 #: ../fish/guestfish-actions.pod:2870
28693 msgid "lvs"
28694 msgstr ""
28695
28696 # type: verbatim
28697 #. type: verbatim
28698 #: ../fish/guestfish-actions.pod:2872
28699 #, no-wrap
28700 msgid ""
28701 " lvs\n"
28702 "\n"
28703 msgstr ""
28704
28705 # type: textblock
28706 #. type: textblock
28707 #: ../fish/guestfish-actions.pod:2880
28708 msgid "See also L</lvs-full>, L</list-filesystems>."
28709 msgstr ""
28710
28711 # type: =head2
28712 #. type: =head2
28713 #: ../fish/guestfish-actions.pod:2882
28714 msgid "lvs-full"
28715 msgstr ""
28716
28717 # type: verbatim
28718 #. type: verbatim
28719 #: ../fish/guestfish-actions.pod:2884
28720 #, no-wrap
28721 msgid ""
28722 " lvs-full\n"
28723 "\n"
28724 msgstr ""
28725
28726 # type: =head2
28727 #. type: =head2
28728 #: ../fish/guestfish-actions.pod:2889
28729 msgid "lvuuid"
28730 msgstr ""
28731
28732 # type: verbatim
28733 #. type: verbatim
28734 #: ../fish/guestfish-actions.pod:2891
28735 #, no-wrap
28736 msgid ""
28737 " lvuuid device\n"
28738 "\n"
28739 msgstr ""
28740
28741 # type: =head2
28742 #. type: =head2
28743 #: ../fish/guestfish-actions.pod:2895
28744 msgid "lxattrlist"
28745 msgstr ""
28746
28747 # type: verbatim
28748 #. type: verbatim
28749 #: ../fish/guestfish-actions.pod:2897
28750 #, no-wrap
28751 msgid ""
28752 " lxattrlist path 'names ...'\n"
28753 "\n"
28754 msgstr ""
28755
28756 # type: textblock
28757 #. type: textblock
28758 #: ../fish/guestfish-actions.pod:2913
28759 msgid ""
28760 "This call is intended for programs that want to efficiently list a directory "
28761 "contents without making many round-trips.  See also L</lstatlist> for a "
28762 "similarly efficient call for getting standard stats.  Very long directory "
28763 "listings might cause the protocol message size to be exceeded, causing this "
28764 "call to fail.  The caller must split up such requests into smaller groups of "
28765 "names."
28766 msgstr ""
28767
28768 # type: =head2
28769 #. type: =head2
28770 #: ../fish/guestfish-actions.pod:2921
28771 msgid "mkdir"
28772 msgstr ""
28773
28774 # type: verbatim
28775 #. type: verbatim
28776 #: ../fish/guestfish-actions.pod:2923
28777 #, no-wrap
28778 msgid ""
28779 " mkdir path\n"
28780 "\n"
28781 msgstr ""
28782
28783 # type: =head2
28784 #. type: =head2
28785 #: ../fish/guestfish-actions.pod:2927
28786 msgid "mkdir-mode"
28787 msgstr ""
28788
28789 # type: verbatim
28790 #. type: verbatim
28791 #: ../fish/guestfish-actions.pod:2929
28792 #, no-wrap
28793 msgid ""
28794 " mkdir-mode path mode\n"
28795 "\n"
28796 msgstr ""
28797
28798 # type: textblock
28799 #. type: textblock
28800 #: ../fish/guestfish-actions.pod:2938
28801 msgid "See also L</mkdir>, L</umask>"
28802 msgstr ""
28803
28804 # type: =head2
28805 #. type: =head2
28806 #: ../fish/guestfish-actions.pod:2940
28807 msgid "mkdir-p"
28808 msgstr ""
28809
28810 # type: verbatim
28811 #. type: verbatim
28812 #: ../fish/guestfish-actions.pod:2942
28813 #, no-wrap
28814 msgid ""
28815 " mkdir-p path\n"
28816 "\n"
28817 msgstr ""
28818
28819 # type: =head2
28820 #. type: =head2
28821 #: ../fish/guestfish-actions.pod:2947
28822 msgid "mkdtemp"
28823 msgstr ""
28824
28825 # type: verbatim
28826 #. type: verbatim
28827 #: ../fish/guestfish-actions.pod:2949
28828 #, no-wrap
28829 msgid ""
28830 " mkdtemp template\n"
28831 "\n"
28832 msgstr ""
28833
28834 # type: =head2
28835 #. type: =head2
28836 #: ../fish/guestfish-actions.pod:2970
28837 msgid "mke2fs-J"
28838 msgstr ""
28839
28840 # type: verbatim
28841 #. type: verbatim
28842 #: ../fish/guestfish-actions.pod:2972
28843 #, no-wrap
28844 msgid ""
28845 " mke2fs-J fstype blocksize device journal\n"
28846 "\n"
28847 msgstr ""
28848
28849 # type: textblock
28850 #. type: textblock
28851 #: ../fish/guestfish-actions.pod:2980
28852 msgid "See also L</mke2journal>."
28853 msgstr ""
28854
28855 # type: =head2
28856 #. type: =head2
28857 #: ../fish/guestfish-actions.pod:2982
28858 msgid "mke2fs-JL"
28859 msgstr ""
28860
28861 # type: verbatim
28862 #. type: verbatim
28863 #: ../fish/guestfish-actions.pod:2984
28864 #, no-wrap
28865 msgid ""
28866 " mke2fs-JL fstype blocksize device label\n"
28867 "\n"
28868 msgstr ""
28869
28870 # type: textblock
28871 #. type: textblock
28872 #: ../fish/guestfish-actions.pod:2989
28873 msgid "See also L</mke2journal-L>."
28874 msgstr ""
28875
28876 # type: =head2
28877 #. type: =head2
28878 #: ../fish/guestfish-actions.pod:2991
28879 msgid "mke2fs-JU"
28880 msgstr ""
28881
28882 # type: verbatim
28883 #. type: verbatim
28884 #: ../fish/guestfish-actions.pod:2993
28885 #, no-wrap
28886 msgid ""
28887 " mke2fs-JU fstype blocksize device uuid\n"
28888 "\n"
28889 msgstr ""
28890
28891 # type: textblock
28892 #. type: textblock
28893 #: ../fish/guestfish-actions.pod:2998
28894 msgid "See also L</mke2journal-U>."
28895 msgstr ""
28896
28897 # type: =head2
28898 #. type: =head2
28899 #: ../fish/guestfish-actions.pod:3000
28900 msgid "mke2journal"
28901 msgstr ""
28902
28903 # type: verbatim
28904 #. type: verbatim
28905 #: ../fish/guestfish-actions.pod:3002
28906 #, no-wrap
28907 msgid ""
28908 " mke2journal blocksize device\n"
28909 "\n"
28910 msgstr ""
28911
28912 # type: =head2
28913 #. type: =head2
28914 #: ../fish/guestfish-actions.pod:3009
28915 msgid "mke2journal-L"
28916 msgstr ""
28917
28918 # type: verbatim
28919 #. type: verbatim
28920 #: ../fish/guestfish-actions.pod:3011
28921 #, no-wrap
28922 msgid ""
28923 " mke2journal-L blocksize label device\n"
28924 "\n"
28925 msgstr ""
28926
28927 # type: =head2
28928 #. type: =head2
28929 #: ../fish/guestfish-actions.pod:3015
28930 msgid "mke2journal-U"
28931 msgstr ""
28932
28933 # type: verbatim
28934 #. type: verbatim
28935 #: ../fish/guestfish-actions.pod:3017
28936 #, no-wrap
28937 msgid ""
28938 " mke2journal-U blocksize uuid device\n"
28939 "\n"
28940 msgstr ""
28941
28942 # type: =head2
28943 #. type: =head2
28944 #: ../fish/guestfish-actions.pod:3021
28945 msgid "mkfifo"
28946 msgstr ""
28947
28948 # type: verbatim
28949 #. type: verbatim
28950 #: ../fish/guestfish-actions.pod:3023
28951 #, no-wrap
28952 msgid ""
28953 " mkfifo mode path\n"
28954 "\n"
28955 msgstr ""
28956
28957 # type: textblock
28958 #. type: textblock
28959 #: ../fish/guestfish-actions.pod:3025
28960 msgid ""
28961 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
28962 "is just a convenient wrapper around L</mknod>."
28963 msgstr ""
28964
28965 # type: =head2
28966 #. type: =head2
28967 #: ../fish/guestfish-actions.pod:3031
28968 msgid "mkfs"
28969 msgstr ""
28970
28971 # type: verbatim
28972 #. type: verbatim
28973 #: ../fish/guestfish-actions.pod:3033
28974 #, no-wrap
28975 msgid ""
28976 " mkfs fstype device\n"
28977 "\n"
28978 msgstr ""
28979
28980 # type: =head2
28981 #. type: =head2
28982 #: ../fish/guestfish-actions.pod:3039
28983 msgid "mkfs-b"
28984 msgstr ""
28985
28986 # type: verbatim
28987 #. type: verbatim
28988 #: ../fish/guestfish-actions.pod:3041
28989 #, no-wrap
28990 msgid ""
28991 " mkfs-b fstype blocksize device\n"
28992 "\n"
28993 msgstr ""
28994
28995 # type: textblock
28996 #. type: textblock
28997 #: ../fish/guestfish-actions.pod:3043
28998 msgid ""
28999 "This call is similar to L</mkfs>, but it allows you to control the block "
29000 "size of the resulting filesystem.  Supported block sizes depend on the "
29001 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
29002 msgstr ""
29003
29004 # type: =head2
29005 #. type: =head2
29006 #: ../fish/guestfish-actions.pod:3058
29007 msgid "mkfs-opts"
29008 msgstr ""
29009
29010 #. type: verbatim
29011 #: ../fish/guestfish-actions.pod:3060
29012 #, no-wrap
29013 msgid ""
29014 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
29015 "\n"
29016 msgstr ""
29017
29018 # type: =head2
29019 #. type: =head2
29020 #: ../fish/guestfish-actions.pod:3105
29021 msgid "mkmountpoint"
29022 msgstr ""
29023
29024 # type: verbatim
29025 #. type: verbatim
29026 #: ../fish/guestfish-actions.pod:3107
29027 #, no-wrap
29028 msgid ""
29029 " mkmountpoint exemptpath\n"
29030 "\n"
29031 msgstr ""
29032
29033 # type: textblock
29034 #. type: textblock
29035 #: ../fish/guestfish-actions.pod:3109
29036 msgid ""
29037 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
29038 "to create extra mountpoints before mounting the first filesystem."
29039 msgstr ""
29040
29041 # type: textblock
29042 #. type: textblock
29043 #: ../fish/guestfish-actions.pod:3133
29044 msgid ""
29045 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
29046 "unexpected errors if you try to mix these calls.  It is safest to manually "
29047 "unmount filesystems and remove mountpoints after use."
29048 msgstr ""
29049
29050 # type: textblock
29051 #. type: textblock
29052 #: ../fish/guestfish-actions.pod:3137
29053 msgid ""
29054 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
29055 "for this to work for manual mountpoints, you must ensure that the innermost "
29056 "mountpoints have the longest pathnames, as in the example code above."
29057 msgstr ""
29058
29059 #. type: textblock
29060 #: ../fish/guestfish-actions.pod:3144
29061 msgid ""
29062 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
29063 "L</umount-all> to be called when the handle is closed which can also trigger "
29064 "these issues."
29065 msgstr ""
29066
29067 # type: =head2
29068 #. type: =head2
29069 #: ../fish/guestfish-actions.pod:3148
29070 msgid "mknod"
29071 msgstr ""
29072
29073 # type: verbatim
29074 #. type: verbatim
29075 #: ../fish/guestfish-actions.pod:3150
29076 #, no-wrap
29077 msgid ""
29078 " mknod mode devmajor devminor path\n"
29079 "\n"
29080 msgstr ""
29081
29082 # type: textblock
29083 #. type: textblock
29084 #: ../fish/guestfish-actions.pod:3160
29085 msgid ""
29086 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
29087 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
29088 "regular file).  These constants are available in the standard Linux header "
29089 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
29090 "wrappers around this command which bitwise OR in the appropriate constant "
29091 "for you."
29092 msgstr ""
29093
29094 # type: =head2
29095 #. type: =head2
29096 #: ../fish/guestfish-actions.pod:3170
29097 msgid "mknod-b"
29098 msgstr ""
29099
29100 # type: verbatim
29101 #. type: verbatim
29102 #: ../fish/guestfish-actions.pod:3172
29103 #, no-wrap
29104 msgid ""
29105 " mknod-b mode devmajor devminor path\n"
29106 "\n"
29107 msgstr ""
29108
29109 # type: textblock
29110 #. type: textblock
29111 #: ../fish/guestfish-actions.pod:3174
29112 msgid ""
29113 "This call creates a block device node called C<path> with mode C<mode> and "
29114 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
29115 "wrapper around L</mknod>."
29116 msgstr ""
29117
29118 # type: =head2
29119 #. type: =head2
29120 #: ../fish/guestfish-actions.pod:3180
29121 msgid "mknod-c"
29122 msgstr ""
29123
29124 # type: verbatim
29125 #. type: verbatim
29126 #: ../fish/guestfish-actions.pod:3182
29127 #, no-wrap
29128 msgid ""
29129 " mknod-c mode devmajor devminor path\n"
29130 "\n"
29131 msgstr ""
29132
29133 # type: textblock
29134 #. type: textblock
29135 #: ../fish/guestfish-actions.pod:3184
29136 msgid ""
29137 "This call creates a char device node called C<path> with mode C<mode> and "
29138 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
29139 "wrapper around L</mknod>."
29140 msgstr ""
29141
29142 # type: =head2
29143 #. type: =head2
29144 #: ../fish/guestfish-actions.pod:3190
29145 msgid "mkswap"
29146 msgstr ""
29147
29148 # type: verbatim
29149 #. type: verbatim
29150 #: ../fish/guestfish-actions.pod:3192
29151 #, no-wrap
29152 msgid ""
29153 " mkswap device\n"
29154 "\n"
29155 msgstr ""
29156
29157 # type: =head2
29158 #. type: =head2
29159 #: ../fish/guestfish-actions.pod:3196
29160 msgid "mkswap-L"
29161 msgstr ""
29162
29163 # type: verbatim
29164 #. type: verbatim
29165 #: ../fish/guestfish-actions.pod:3198
29166 #, no-wrap
29167 msgid ""
29168 " mkswap-L label device\n"
29169 "\n"
29170 msgstr ""
29171
29172 # type: =head2
29173 #. type: =head2
29174 #: ../fish/guestfish-actions.pod:3206
29175 msgid "mkswap-U"
29176 msgstr ""
29177
29178 # type: verbatim
29179 #. type: verbatim
29180 #: ../fish/guestfish-actions.pod:3208
29181 #, no-wrap
29182 msgid ""
29183 " mkswap-U uuid device\n"
29184 "\n"
29185 msgstr ""
29186
29187 # type: =head2
29188 #. type: =head2
29189 #: ../fish/guestfish-actions.pod:3212
29190 msgid "mkswap-file"
29191 msgstr ""
29192
29193 # type: verbatim
29194 #. type: verbatim
29195 #: ../fish/guestfish-actions.pod:3214
29196 #, no-wrap
29197 msgid ""
29198 " mkswap-file path\n"
29199 "\n"
29200 msgstr ""
29201
29202 # type: textblock
29203 #. type: textblock
29204 #: ../fish/guestfish-actions.pod:3218
29205 msgid ""
29206 "This command just writes a swap file signature to an existing file.  To "
29207 "create the file itself, use something like L</fallocate>."
29208 msgstr ""
29209
29210 # type: =head2
29211 #. type: =head2
29212 #: ../fish/guestfish-actions.pod:3221
29213 msgid "modprobe"
29214 msgstr ""
29215
29216 # type: verbatim
29217 #. type: verbatim
29218 #: ../fish/guestfish-actions.pod:3223
29219 #, no-wrap
29220 msgid ""
29221 " modprobe modulename\n"
29222 "\n"
29223 msgstr ""
29224
29225 # type: =head2
29226 #. type: =head2
29227 #: ../fish/guestfish-actions.pod:3230
29228 msgid "mount"
29229 msgstr ""
29230
29231 # type: verbatim
29232 #. type: verbatim
29233 #: ../fish/guestfish-actions.pod:3232
29234 #, no-wrap
29235 msgid ""
29236 " mount device mountpoint\n"
29237 "\n"
29238 msgstr ""
29239
29240 # type: textblock
29241 #. type: textblock
29242 #: ../fish/guestfish-actions.pod:3248
29243 msgid ""
29244 "B<Important note:> When you use this call, the filesystem options C<sync> "
29245 "and C<noatime> are set implicitly.  This was originally done because we "
29246 "thought it would improve reliability, but it turns out that I<-o sync> has a "
29247 "very large negative performance impact and negligible effect on "
29248 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
29249 "code that needs performance, and instead use L</mount-options> (use an empty "
29250 "string for the first parameter if you don't want any options)."
29251 msgstr ""
29252
29253 #. type: =head2
29254 #: ../fish/guestfish-actions.pod:3265
29255 msgid "mount-9p"
29256 msgstr ""
29257
29258 #. type: verbatim
29259 #: ../fish/guestfish-actions.pod:3267
29260 #, no-wrap
29261 msgid ""
29262 " mount-9p mounttag mountpoint [options:..]\n"
29263 "\n"
29264 msgstr ""
29265
29266 # type: =head2
29267 #. type: =head2
29268 #: ../fish/guestfish-actions.pod:3278
29269 msgid "mount-loop"
29270 msgstr ""
29271
29272 # type: verbatim
29273 #. type: verbatim
29274 #: ../fish/guestfish-actions.pod:3280
29275 #, no-wrap
29276 msgid ""
29277 " mount-loop file mountpoint\n"
29278 "\n"
29279 msgstr ""
29280
29281 # type: =head2
29282 #. type: =head2
29283 #: ../fish/guestfish-actions.pod:3286
29284 msgid "mount-options"
29285 msgstr ""
29286
29287 # type: verbatim
29288 #. type: verbatim
29289 #: ../fish/guestfish-actions.pod:3288
29290 #, no-wrap
29291 msgid ""
29292 " mount-options options device mountpoint\n"
29293 "\n"
29294 msgstr ""
29295
29296 # type: textblock
29297 #. type: textblock
29298 #: ../fish/guestfish-actions.pod:3290
29299 msgid ""
29300 "This is the same as the L</mount> command, but it allows you to set the "
29301 "mount options as for the L<mount(8)> I<-o> flag."
29302 msgstr ""
29303
29304 # type: =head2
29305 #. type: =head2
29306 #: ../fish/guestfish-actions.pod:3298
29307 msgid "mount-ro"
29308 msgstr ""
29309
29310 # type: verbatim
29311 #. type: verbatim
29312 #: ../fish/guestfish-actions.pod:3300
29313 #, no-wrap
29314 msgid ""
29315 " mount-ro device mountpoint\n"
29316 "\n"
29317 msgstr ""
29318
29319 # type: textblock
29320 #. type: textblock
29321 #: ../fish/guestfish-actions.pod:3302
29322 msgid ""
29323 "This is the same as the L</mount> command, but it mounts the filesystem with "
29324 "the read-only (I<-o ro>) flag."
29325 msgstr ""
29326
29327 # type: =head2
29328 #. type: =head2
29329 #: ../fish/guestfish-actions.pod:3305
29330 msgid "mount-vfs"
29331 msgstr ""
29332
29333 # type: verbatim
29334 #. type: verbatim
29335 #: ../fish/guestfish-actions.pod:3307
29336 #, no-wrap
29337 msgid ""
29338 " mount-vfs options vfstype device mountpoint\n"
29339 "\n"
29340 msgstr ""
29341
29342 # type: textblock
29343 #. type: textblock
29344 #: ../fish/guestfish-actions.pod:3309
29345 msgid ""
29346 "This is the same as the L</mount> command, but it allows you to set both the "
29347 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
29348 msgstr ""
29349
29350 # type: =head2
29351 #. type: =head2
29352 #: ../fish/guestfish-actions.pod:3313
29353 msgid "mountpoints"
29354 msgstr ""
29355
29356 # type: verbatim
29357 #. type: verbatim
29358 #: ../fish/guestfish-actions.pod:3315
29359 #, no-wrap
29360 msgid ""
29361 " mountpoints\n"
29362 "\n"
29363 msgstr ""
29364
29365 # type: textblock
29366 #. type: textblock
29367 #: ../fish/guestfish-actions.pod:3317
29368 msgid ""
29369 "This call is similar to L</mounts>.  That call returns a list of devices.  "
29370 "This one returns a hash table (map) of device name to directory where the "
29371 "device is mounted."
29372 msgstr ""
29373
29374 # type: =head2
29375 #. type: =head2
29376 #: ../fish/guestfish-actions.pod:3321
29377 msgid "mounts"
29378 msgstr ""
29379
29380 # type: verbatim
29381 #. type: verbatim
29382 #: ../fish/guestfish-actions.pod:3323
29383 #, no-wrap
29384 msgid ""
29385 " mounts\n"
29386 "\n"
29387 msgstr ""
29388
29389 # type: textblock
29390 #. type: textblock
29391 #: ../fish/guestfish-actions.pod:3330
29392 msgid "See also: L</mountpoints>"
29393 msgstr ""
29394
29395 # type: =head2
29396 #. type: =head2
29397 #: ../fish/guestfish-actions.pod:3332
29398 msgid "mv"
29399 msgstr ""
29400
29401 # type: verbatim
29402 #. type: verbatim
29403 #: ../fish/guestfish-actions.pod:3334
29404 #, no-wrap
29405 msgid ""
29406 " mv src dest\n"
29407 "\n"
29408 msgstr ""
29409
29410 # type: =head2
29411 #. type: =head2
29412 #: ../fish/guestfish-actions.pod:3339
29413 msgid "ntfs-3g-probe"
29414 msgstr ""
29415
29416 # type: verbatim
29417 #. type: verbatim
29418 #: ../fish/guestfish-actions.pod:3341
29419 #, no-wrap
29420 msgid ""
29421 " ntfs-3g-probe true|false device\n"
29422 "\n"
29423 msgstr ""
29424
29425 # type: =head2
29426 #. type: =head2
29427 #: ../fish/guestfish-actions.pod:3355
29428 msgid "ntfsresize"
29429 msgstr ""
29430
29431 # type: verbatim
29432 #. type: verbatim
29433 #: ../fish/guestfish-actions.pod:3357
29434 #, no-wrap
29435 msgid ""
29436 " ntfsresize device\n"
29437 "\n"
29438 msgstr ""
29439
29440 #. type: =head2
29441 #: ../fish/guestfish-actions.pod:3379
29442 msgid "ntfsresize-opts"
29443 msgstr ""
29444
29445 #. type: verbatim
29446 #: ../fish/guestfish-actions.pod:3381
29447 #, no-wrap
29448 msgid ""
29449 " ntfsresize-opts device [size:..] [force:..]\n"
29450 "\n"
29451 msgstr ""
29452
29453 #. type: textblock
29454 #: ../fish/guestfish-actions.pod:3400
29455 msgid ""
29456 "After the resize operation, the filesystem is always marked as requiring a "
29457 "consistency check (for safety).  You have to boot into Windows to perform "
29458 "this check and clear this condition.  If you I<don't> set the C<force> "
29459 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
29460 "a single filesystem without booting into Windows between each resize."
29461 msgstr ""
29462
29463 # type: =head2
29464 #. type: =head2
29465 #: ../fish/guestfish-actions.pod:3413
29466 msgid "ntfsresize-size"
29467 msgstr ""
29468
29469 # type: verbatim
29470 #. type: verbatim
29471 #: ../fish/guestfish-actions.pod:3415
29472 #, no-wrap
29473 msgid ""
29474 " ntfsresize-size device size\n"
29475 "\n"
29476 msgstr ""
29477
29478 # type: textblock
29479 #. type: textblock
29480 #: ../fish/guestfish-actions.pod:3417
29481 msgid ""
29482 "This command is the same as L</ntfsresize> except that it allows you to "
29483 "specify the new size (in bytes) explicitly."
29484 msgstr ""
29485
29486 # type: =head2
29487 #. type: =head2
29488 #: ../fish/guestfish-actions.pod:3427
29489 msgid "part-add"
29490 msgstr ""
29491
29492 # type: verbatim
29493 #. type: verbatim
29494 #: ../fish/guestfish-actions.pod:3429
29495 #, no-wrap
29496 msgid ""
29497 " part-add device prlogex startsect endsect\n"
29498 "\n"
29499 msgstr ""
29500
29501 # type: textblock
29502 #. type: textblock
29503 #: ../fish/guestfish-actions.pod:3431
29504 msgid ""
29505 "This command adds a partition to C<device>.  If there is no partition table "
29506 "on the device, call L</part-init> first."
29507 msgstr ""
29508
29509 # type: textblock
29510 #. type: textblock
29511 #: ../fish/guestfish-actions.pod:3443
29512 msgid ""
29513 "Creating a partition which covers the whole disk is not so easy.  Use L</"
29514 "part-disk> to do that."
29515 msgstr ""
29516
29517 # type: =head2
29518 #. type: =head2
29519 #: ../fish/guestfish-actions.pod:3446
29520 msgid "part-del"
29521 msgstr ""
29522
29523 # type: verbatim
29524 #. type: verbatim
29525 #: ../fish/guestfish-actions.pod:3448
29526 #, no-wrap
29527 msgid ""
29528 " part-del device partnum\n"
29529 "\n"
29530 msgstr ""
29531
29532 # type: =head2
29533 #. type: =head2
29534 #: ../fish/guestfish-actions.pod:3456
29535 msgid "part-disk"
29536 msgstr ""
29537
29538 # type: verbatim
29539 #. type: verbatim
29540 #: ../fish/guestfish-actions.pod:3458
29541 #, no-wrap
29542 msgid ""
29543 " part-disk device parttype\n"
29544 "\n"
29545 msgstr ""
29546
29547 # type: textblock
29548 #. type: textblock
29549 #: ../fish/guestfish-actions.pod:3460
29550 msgid ""
29551 "This command is simply a combination of L</part-init> followed by L</part-"
29552 "add> to create a single primary partition covering the whole disk."
29553 msgstr ""
29554
29555 # type: textblock
29556 #. type: textblock
29557 #: ../fish/guestfish-actions.pod:3464
29558 msgid ""
29559 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
29560 "possible values are described in L</part-init>."
29561 msgstr ""
29562
29563 # type: =head2
29564 #. type: =head2
29565 #: ../fish/guestfish-actions.pod:3470
29566 msgid "part-get-bootable"
29567 msgstr ""
29568
29569 # type: verbatim
29570 #. type: verbatim
29571 #: ../fish/guestfish-actions.pod:3472
29572 #, no-wrap
29573 msgid ""
29574 " part-get-bootable device partnum\n"
29575 "\n"
29576 msgstr ""
29577
29578 # type: textblock
29579 #. type: textblock
29580 #: ../fish/guestfish-actions.pod:3477
29581 msgid "See also L</part-set-bootable>."
29582 msgstr ""
29583
29584 # type: =head2
29585 #. type: =head2
29586 #: ../fish/guestfish-actions.pod:3479
29587 msgid "part-get-mbr-id"
29588 msgstr ""
29589
29590 # type: verbatim
29591 #. type: verbatim
29592 #: ../fish/guestfish-actions.pod:3481
29593 #, no-wrap
29594 msgid ""
29595 " part-get-mbr-id device partnum\n"
29596 "\n"
29597 msgstr ""
29598
29599 # type: textblock
29600 #. type: textblock
29601 #: ../fish/guestfish-actions.pod:3486 ../fish/guestfish-actions.pod:3624
29602 msgid ""
29603 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
29604 "undefined results for other partition table types (see L</part-get-"
29605 "parttype>)."
29606 msgstr ""
29607
29608 # type: =head2
29609 #. type: =head2
29610 #: ../fish/guestfish-actions.pod:3490
29611 msgid "part-get-parttype"
29612 msgstr ""
29613
29614 # type: verbatim
29615 #. type: verbatim
29616 #: ../fish/guestfish-actions.pod:3492
29617 #, no-wrap
29618 msgid ""
29619 " part-get-parttype device\n"
29620 "\n"
29621 msgstr ""
29622
29623 # type: textblock
29624 #. type: textblock
29625 #: ../fish/guestfish-actions.pod:3497
29626 msgid ""
29627 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29628 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
29629 "possible, although unusual.  See L</part-init> for a full list."
29630 msgstr ""
29631
29632 # type: =head2
29633 #. type: =head2
29634 #: ../fish/guestfish-actions.pod:3502
29635 msgid "part-init"
29636 msgstr ""
29637
29638 # type: verbatim
29639 #. type: verbatim
29640 #: ../fish/guestfish-actions.pod:3504
29641 #, no-wrap
29642 msgid ""
29643 " part-init device parttype\n"
29644 "\n"
29645 msgstr ""
29646
29647 # type: textblock
29648 #. type: textblock
29649 #: ../fish/guestfish-actions.pod:3510
29650 msgid ""
29651 "Initially there are no partitions.  Following this, you should call L</part-"
29652 "add> for each partition required."
29653 msgstr ""
29654
29655 # type: =head2
29656 #. type: =head2
29657 #: ../fish/guestfish-actions.pod:3573
29658 msgid "part-list"
29659 msgstr ""
29660
29661 # type: verbatim
29662 #. type: verbatim
29663 #: ../fish/guestfish-actions.pod:3575
29664 #, no-wrap
29665 msgid ""
29666 " part-list device\n"
29667 "\n"
29668 msgstr ""
29669
29670 # type: textblock
29671 #. type: textblock
29672 #: ../fish/guestfish-actions.pod:3590
29673 msgid ""
29674 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
29675 "the device's sector size, see L</blockdev-getss>."
29676 msgstr ""
29677
29678 # type: =head2
29679 #. type: =head2
29680 #: ../fish/guestfish-actions.pod:3603
29681 msgid "part-set-bootable"
29682 msgstr ""
29683
29684 # type: verbatim
29685 #. type: verbatim
29686 #: ../fish/guestfish-actions.pod:3605
29687 #, no-wrap
29688 msgid ""
29689 " part-set-bootable device partnum true|false\n"
29690 "\n"
29691 msgstr ""
29692
29693 # type: =head2
29694 #. type: =head2
29695 #: ../fish/guestfish-actions.pod:3614
29696 msgid "part-set-mbr-id"
29697 msgstr ""
29698
29699 # type: verbatim
29700 #. type: verbatim
29701 #: ../fish/guestfish-actions.pod:3616
29702 #, no-wrap
29703 msgid ""
29704 " part-set-mbr-id device partnum idbyte\n"
29705 "\n"
29706 msgstr ""
29707
29708 # type: =head2
29709 #. type: =head2
29710 #: ../fish/guestfish-actions.pod:3628
29711 msgid "part-set-name"
29712 msgstr ""
29713
29714 # type: verbatim
29715 #. type: verbatim
29716 #: ../fish/guestfish-actions.pod:3630
29717 #, no-wrap
29718 msgid ""
29719 " part-set-name device partnum name\n"
29720 "\n"
29721 msgstr ""
29722
29723 # type: =head2
29724 #. type: =head2
29725 #: ../fish/guestfish-actions.pod:3638
29726 msgid "part-to-dev"
29727 msgstr ""
29728
29729 # type: verbatim
29730 #. type: verbatim
29731 #: ../fish/guestfish-actions.pod:3640
29732 #, no-wrap
29733 msgid ""
29734 " part-to-dev partition\n"
29735 "\n"
29736 msgstr ""
29737
29738 # type: textblock
29739 #. type: textblock
29740 #: ../fish/guestfish-actions.pod:3646
29741 msgid ""
29742 "The named partition must exist, for example as a string returned from L</"
29743 "list-partitions>."
29744 msgstr ""
29745
29746 # type: =head2
29747 #. type: =head2
29748 #: ../fish/guestfish-actions.pod:3649
29749 msgid "ping-daemon"
29750 msgstr ""
29751
29752 # type: verbatim
29753 #. type: verbatim
29754 #: ../fish/guestfish-actions.pod:3651
29755 #, no-wrap
29756 msgid ""
29757 " ping-daemon\n"
29758 "\n"
29759 msgstr ""
29760
29761 # type: =head2
29762 #. type: =head2
29763 #: ../fish/guestfish-actions.pod:3658
29764 msgid "pread"
29765 msgstr ""
29766
29767 # type: verbatim
29768 #. type: verbatim
29769 #: ../fish/guestfish-actions.pod:3660
29770 #, no-wrap
29771 msgid ""
29772 " pread path count offset\n"
29773 "\n"
29774 msgstr ""
29775
29776 # type: textblock
29777 #. type: textblock
29778 #: ../fish/guestfish-actions.pod:3668
29779 msgid "See also L</pwrite>, L</pread-device>."
29780 msgstr ""
29781
29782 # type: =head2
29783 #. type: =head2
29784 #: ../fish/guestfish-actions.pod:3673
29785 msgid "pread-device"
29786 msgstr ""
29787
29788 # type: verbatim
29789 #. type: verbatim
29790 #: ../fish/guestfish-actions.pod:3675
29791 #, no-wrap
29792 msgid ""
29793 " pread-device device count offset\n"
29794 "\n"
29795 msgstr ""
29796
29797 # type: textblock
29798 #. type: textblock
29799 #: ../fish/guestfish-actions.pod:3683
29800 msgid "See also L</pread>."
29801 msgstr ""
29802
29803 # type: =head2
29804 #. type: =head2
29805 #: ../fish/guestfish-actions.pod:3688
29806 msgid "pvcreate"
29807 msgstr ""
29808
29809 # type: verbatim
29810 #. type: verbatim
29811 #: ../fish/guestfish-actions.pod:3690
29812 #, no-wrap
29813 msgid ""
29814 " pvcreate device\n"
29815 "\n"
29816 msgstr ""
29817
29818 # type: =head2
29819 #. type: =head2
29820 #: ../fish/guestfish-actions.pod:3696
29821 msgid "pvremove"
29822 msgstr ""
29823
29824 # type: verbatim
29825 #. type: verbatim
29826 #: ../fish/guestfish-actions.pod:3698
29827 #, no-wrap
29828 msgid ""
29829 " pvremove device\n"
29830 "\n"
29831 msgstr ""
29832
29833 # type: =head2
29834 #. type: =head2
29835 #: ../fish/guestfish-actions.pod:3707
29836 msgid "pvresize"
29837 msgstr ""
29838
29839 # type: verbatim
29840 #. type: verbatim
29841 #: ../fish/guestfish-actions.pod:3709
29842 #, no-wrap
29843 msgid ""
29844 " pvresize device\n"
29845 "\n"
29846 msgstr ""
29847
29848 # type: =head2
29849 #. type: =head2
29850 #: ../fish/guestfish-actions.pod:3714
29851 msgid "pvresize-size"
29852 msgstr ""
29853
29854 # type: verbatim
29855 #. type: verbatim
29856 #: ../fish/guestfish-actions.pod:3716
29857 #, no-wrap
29858 msgid ""
29859 " pvresize-size device size\n"
29860 "\n"
29861 msgstr ""
29862
29863 # type: textblock
29864 #. type: textblock
29865 #: ../fish/guestfish-actions.pod:3718
29866 msgid ""
29867 "This command is the same as L</pvresize> except that it allows you to "
29868 "specify the new size (in bytes) explicitly."
29869 msgstr ""
29870
29871 # type: =head2
29872 #. type: =head2
29873 #: ../fish/guestfish-actions.pod:3721
29874 msgid "pvs"
29875 msgstr ""
29876
29877 # type: verbatim
29878 #. type: verbatim
29879 #: ../fish/guestfish-actions.pod:3723
29880 #, no-wrap
29881 msgid ""
29882 " pvs\n"
29883 "\n"
29884 msgstr ""
29885
29886 # type: textblock
29887 #. type: textblock
29888 #: ../fish/guestfish-actions.pod:3731
29889 msgid "See also L</pvs-full>."
29890 msgstr ""
29891
29892 # type: =head2
29893 #. type: =head2
29894 #: ../fish/guestfish-actions.pod:3733
29895 msgid "pvs-full"
29896 msgstr ""
29897
29898 # type: verbatim
29899 #. type: verbatim
29900 #: ../fish/guestfish-actions.pod:3735
29901 #, no-wrap
29902 msgid ""
29903 " pvs-full\n"
29904 "\n"
29905 msgstr ""
29906
29907 # type: =head2
29908 #. type: =head2
29909 #: ../fish/guestfish-actions.pod:3740
29910 msgid "pvuuid"
29911 msgstr ""
29912
29913 # type: verbatim
29914 #. type: verbatim
29915 #: ../fish/guestfish-actions.pod:3742
29916 #, no-wrap
29917 msgid ""
29918 " pvuuid device\n"
29919 "\n"
29920 msgstr ""
29921
29922 # type: =head2
29923 #. type: =head2
29924 #: ../fish/guestfish-actions.pod:3746
29925 msgid "pwrite"
29926 msgstr ""
29927
29928 # type: verbatim
29929 #. type: verbatim
29930 #: ../fish/guestfish-actions.pod:3748
29931 #, no-wrap
29932 msgid ""
29933 " pwrite path content offset\n"
29934 "\n"
29935 msgstr ""
29936
29937 # type: textblock
29938 #. type: textblock
29939 #: ../fish/guestfish-actions.pod:3759
29940 msgid "See also L</pread>, L</pwrite-device>."
29941 msgstr ""
29942
29943 # type: =head2
29944 #. type: =head2
29945 #: ../fish/guestfish-actions.pod:3764
29946 msgid "pwrite-device"
29947 msgstr ""
29948
29949 # type: verbatim
29950 #. type: verbatim
29951 #: ../fish/guestfish-actions.pod:3766
29952 #, no-wrap
29953 msgid ""
29954 " pwrite-device device content offset\n"
29955 "\n"
29956 msgstr ""
29957
29958 # type: textblock
29959 #. type: textblock
29960 #: ../fish/guestfish-actions.pod:3776
29961 msgid "See also L</pwrite>."
29962 msgstr ""
29963
29964 # type: =head2
29965 #. type: =head2
29966 #: ../fish/guestfish-actions.pod:3781
29967 msgid "read-file"
29968 msgstr ""
29969
29970 # type: verbatim
29971 #. type: verbatim
29972 #: ../fish/guestfish-actions.pod:3783
29973 #, no-wrap
29974 msgid ""
29975 " read-file path\n"
29976 "\n"
29977 msgstr ""
29978
29979 # type: textblock
29980 #. type: textblock
29981 #: ../fish/guestfish-actions.pod:3788
29982 msgid ""
29983 "Unlike L</cat>, this function can correctly handle files that contain "
29984 "embedded ASCII NUL characters.  However unlike L</download>, this function "
29985 "is limited in the total size of file that can be handled."
29986 msgstr ""
29987
29988 # type: =head2
29989 #. type: =head2
29990 #: ../fish/guestfish-actions.pod:3796
29991 msgid "read-lines"
29992 msgstr ""
29993
29994 # type: verbatim
29995 #. type: verbatim
29996 #: ../fish/guestfish-actions.pod:3798
29997 #, no-wrap
29998 msgid ""
29999 " read-lines path\n"
30000 "\n"
30001 msgstr ""
30002
30003 # type: textblock
30004 #. type: textblock
30005 #: ../fish/guestfish-actions.pod:3805
30006 msgid ""
30007 "Note that this function cannot correctly handle binary files (specifically, "
30008 "files containing C<\\0> character which is treated as end of line).  For "
30009 "those you need to use the L</read-file> function which has a more complex "
30010 "interface."
30011 msgstr ""
30012
30013 # type: =head2
30014 #. type: =head2
30015 #: ../fish/guestfish-actions.pod:3810
30016 msgid "readdir"
30017 msgstr ""
30018
30019 # type: verbatim
30020 #. type: verbatim
30021 #: ../fish/guestfish-actions.pod:3812
30022 #, no-wrap
30023 msgid ""
30024 " readdir dir\n"
30025 "\n"
30026 msgstr ""
30027
30028 # type: textblock
30029 #. type: textblock
30030 #: ../fish/guestfish-actions.pod:3864
30031 msgid ""
30032 "This function is primarily intended for use by programs.  To get a simple "
30033 "list of names, use L</ls>.  To get a printable directory for human "
30034 "consumption, use L</ll>."
30035 msgstr ""
30036
30037 # type: =head2
30038 #. type: =head2
30039 #: ../fish/guestfish-actions.pod:3868
30040 msgid "readlink"
30041 msgstr ""
30042
30043 # type: verbatim
30044 #. type: verbatim
30045 #: ../fish/guestfish-actions.pod:3870
30046 #, no-wrap
30047 msgid ""
30048 " readlink path\n"
30049 "\n"
30050 msgstr ""
30051
30052 # type: =head2
30053 #. type: =head2
30054 #: ../fish/guestfish-actions.pod:3874
30055 msgid "readlinklist"
30056 msgstr ""
30057
30058 # type: verbatim
30059 #. type: verbatim
30060 #: ../fish/guestfish-actions.pod:3876
30061 #, no-wrap
30062 msgid ""
30063 " readlinklist path 'names ...'\n"
30064 "\n"
30065 msgstr ""
30066
30067 # type: =head2
30068 #. type: =head2
30069 #: ../fish/guestfish-actions.pod:3900
30070 msgid "realpath"
30071 msgstr ""
30072
30073 # type: verbatim
30074 #. type: verbatim
30075 #: ../fish/guestfish-actions.pod:3902
30076 #, no-wrap
30077 msgid ""
30078 " realpath path\n"
30079 "\n"
30080 msgstr ""
30081
30082 # type: =head2
30083 #. type: =head2
30084 #: ../fish/guestfish-actions.pod:3907
30085 msgid "removexattr"
30086 msgstr ""
30087
30088 # type: verbatim
30089 #. type: verbatim
30090 #: ../fish/guestfish-actions.pod:3909
30091 #, no-wrap
30092 msgid ""
30093 " removexattr xattr path\n"
30094 "\n"
30095 msgstr ""
30096
30097 # type: textblock
30098 #. type: textblock
30099 #: ../fish/guestfish-actions.pod:3914
30100 msgid "See also: L</lremovexattr>, L<attr(5)>."
30101 msgstr ""
30102
30103 # type: =head2
30104 #. type: =head2
30105 #: ../fish/guestfish-actions.pod:3916
30106 msgid "resize2fs"
30107 msgstr ""
30108
30109 # type: verbatim
30110 #. type: verbatim
30111 #: ../fish/guestfish-actions.pod:3918
30112 #, no-wrap
30113 msgid ""
30114 " resize2fs device\n"
30115 "\n"
30116 msgstr ""
30117
30118 # type: textblock
30119 #. type: textblock
30120 #: ../fish/guestfish-actions.pod:3923
30121 msgid ""
30122 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
30123 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
30124 "gives an error about this and sometimes not.  In any case, it is always safe "
30125 "to call L</e2fsck-f> before calling this function."
30126 msgstr ""
30127
30128 #. type: =head2
30129 #: ../fish/guestfish-actions.pod:3929
30130 msgid "resize2fs-M"
30131 msgstr ""
30132
30133 #. type: verbatim
30134 #: ../fish/guestfish-actions.pod:3931
30135 #, no-wrap
30136 msgid ""
30137 " resize2fs-M device\n"
30138 "\n"
30139 msgstr ""
30140
30141 #. type: textblock
30142 #: ../fish/guestfish-actions.pod:3933
30143 msgid ""
30144 "This command is the same as L</resize2fs>, but the filesystem is resized to "
30145 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
30146 "command."
30147 msgstr ""
30148
30149 #. type: textblock
30150 #: ../fish/guestfish-actions.pod:3937
30151 msgid ""
30152 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
30153 "and read the C<Block size> and C<Block count> values.  These two numbers, "
30154 "multiplied together, give the resulting size of the minimal filesystem in "
30155 "bytes."
30156 msgstr ""
30157
30158 # type: =head2
30159 #. type: =head2
30160 #: ../fish/guestfish-actions.pod:3942
30161 msgid "resize2fs-size"
30162 msgstr ""
30163
30164 # type: verbatim
30165 #. type: verbatim
30166 #: ../fish/guestfish-actions.pod:3944
30167 #, no-wrap
30168 msgid ""
30169 " resize2fs-size device size\n"
30170 "\n"
30171 msgstr ""
30172
30173 # type: textblock
30174 #. type: textblock
30175 #: ../fish/guestfish-actions.pod:3946
30176 msgid ""
30177 "This command is the same as L</resize2fs> except that it allows you to "
30178 "specify the new size (in bytes) explicitly."
30179 msgstr ""
30180
30181 # type: =head2
30182 #. type: =head2
30183 #: ../fish/guestfish-actions.pod:3949
30184 msgid "rm"
30185 msgstr ""
30186
30187 # type: verbatim
30188 #. type: verbatim
30189 #: ../fish/guestfish-actions.pod:3951
30190 #, no-wrap
30191 msgid ""
30192 " rm path\n"
30193 "\n"
30194 msgstr ""
30195
30196 # type: =head2
30197 #. type: =head2
30198 #: ../fish/guestfish-actions.pod:3955
30199 msgid "rm-rf"
30200 msgstr ""
30201
30202 # type: verbatim
30203 #. type: verbatim
30204 #: ../fish/guestfish-actions.pod:3957
30205 #, no-wrap
30206 msgid ""
30207 " rm-rf path\n"
30208 "\n"
30209 msgstr ""
30210
30211 # type: =head2
30212 #. type: =head2
30213 #: ../fish/guestfish-actions.pod:3963
30214 msgid "rmdir"
30215 msgstr ""
30216
30217 # type: verbatim
30218 #. type: verbatim
30219 #: ../fish/guestfish-actions.pod:3965
30220 #, no-wrap
30221 msgid ""
30222 " rmdir path\n"
30223 "\n"
30224 msgstr ""
30225
30226 # type: =head2
30227 #. type: =head2
30228 #: ../fish/guestfish-actions.pod:3969
30229 msgid "rmmountpoint"
30230 msgstr ""
30231
30232 # type: verbatim
30233 #. type: verbatim
30234 #: ../fish/guestfish-actions.pod:3971
30235 #, no-wrap
30236 msgid ""
30237 " rmmountpoint exemptpath\n"
30238 "\n"
30239 msgstr ""
30240
30241 # type: textblock
30242 #. type: textblock
30243 #: ../fish/guestfish-actions.pod:3973
30244 msgid ""
30245 "This calls removes a mountpoint that was previously created with L</"
30246 "mkmountpoint>.  See L</mkmountpoint> for full details."
30247 msgstr ""
30248
30249 # type: =head2
30250 #. type: =head2
30251 #: ../fish/guestfish-actions.pod:3977
30252 msgid "scrub-device"
30253 msgstr ""
30254
30255 # type: verbatim
30256 #. type: verbatim
30257 #: ../fish/guestfish-actions.pod:3979
30258 #, no-wrap
30259 msgid ""
30260 " scrub-device device\n"
30261 "\n"
30262 msgstr ""
30263
30264 # type: =head2
30265 #. type: =head2
30266 #: ../fish/guestfish-actions.pod:3990
30267 msgid "scrub-file"
30268 msgstr ""
30269
30270 # type: verbatim
30271 #. type: verbatim
30272 #: ../fish/guestfish-actions.pod:3992
30273 #, no-wrap
30274 msgid ""
30275 " scrub-file file\n"
30276 "\n"
30277 msgstr ""
30278
30279 # type: =head2
30280 #. type: =head2
30281 #: ../fish/guestfish-actions.pod:4002
30282 msgid "scrub-freespace"
30283 msgstr ""
30284
30285 # type: verbatim
30286 #. type: verbatim
30287 #: ../fish/guestfish-actions.pod:4004
30288 #, no-wrap
30289 msgid ""
30290 " scrub-freespace dir\n"
30291 "\n"
30292 msgstr ""
30293
30294 # type: textblock
30295 #. type: textblock
30296 #: ../fish/guestfish-actions.pod:4006
30297 msgid ""
30298 "This command creates the directory C<dir> and then fills it with files until "
30299 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
30300 "deletes them.  The intention is to scrub any free space on the partition "
30301 "containing C<dir>."
30302 msgstr ""
30303
30304 # type: =head2
30305 #. type: =head2
30306 #: ../fish/guestfish-actions.pod:4015
30307 msgid "set-append"
30308 msgstr ""
30309
30310 # type: =head2
30311 #. type: =head2
30312 #: ../fish/guestfish-actions.pod:4017
30313 msgid "append"
30314 msgstr ""
30315
30316 # type: verbatim
30317 #. type: verbatim
30318 #: ../fish/guestfish-actions.pod:4019
30319 #, no-wrap
30320 msgid ""
30321 " set-append append\n"
30322 "\n"
30323 msgstr ""
30324
30325 #. type: =head2
30326 #: ../fish/guestfish-actions.pod:4030
30327 msgid "set-attach-method"
30328 msgstr ""
30329
30330 #. type: =head2
30331 #: ../fish/guestfish-actions.pod:4032
30332 msgid "attach-method"
30333 msgstr ""
30334
30335 #. type: verbatim
30336 #: ../fish/guestfish-actions.pod:4034
30337 #, no-wrap
30338 msgid ""
30339 " set-attach-method attachmethod\n"
30340 "\n"
30341 msgstr ""
30342
30343 # type: =head2
30344 #. type: =head2
30345 #: ../fish/guestfish-actions.pod:4056
30346 msgid "set-autosync"
30347 msgstr ""
30348
30349 # type: =head2
30350 #. type: =head2
30351 #: ../fish/guestfish-actions.pod:4058
30352 msgid "autosync"
30353 msgstr ""
30354
30355 # type: verbatim
30356 #. type: verbatim
30357 #: ../fish/guestfish-actions.pod:4060
30358 #, no-wrap
30359 msgid ""
30360 " set-autosync true|false\n"
30361 "\n"
30362 msgstr ""
30363
30364 # type: =head2
30365 #. type: =head2
30366 #: ../fish/guestfish-actions.pod:4070
30367 msgid "set-direct"
30368 msgstr ""
30369
30370 # type: =head2
30371 #. type: =head2
30372 #: ../fish/guestfish-actions.pod:4072
30373 msgid "direct"
30374 msgstr ""
30375
30376 # type: verbatim
30377 #. type: verbatim
30378 #: ../fish/guestfish-actions.pod:4074
30379 #, no-wrap
30380 msgid ""
30381 " set-direct true|false\n"
30382 "\n"
30383 msgstr ""
30384
30385 # type: textblock
30386 #. type: textblock
30387 #: ../fish/guestfish-actions.pod:4080
30388 msgid ""
30389 "One consequence of this is that log messages aren't caught by the library "
30390 "and handled by L</set-log-message-callback>, but go straight to stdout."
30391 msgstr ""
30392
30393 # type: =head2
30394 #. type: =head2
30395 #: ../fish/guestfish-actions.pod:4089
30396 msgid "set-e2label"
30397 msgstr ""
30398
30399 # type: verbatim
30400 #. type: verbatim
30401 #: ../fish/guestfish-actions.pod:4091
30402 #, no-wrap
30403 msgid ""
30404 " set-e2label device label\n"
30405 "\n"
30406 msgstr ""
30407
30408 # type: textblock
30409 #. type: textblock
30410 #: ../fish/guestfish-actions.pod:4097
30411 msgid ""
30412 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
30413 "label on a filesystem."
30414 msgstr ""
30415
30416 # type: =head2
30417 #. type: =head2
30418 #: ../fish/guestfish-actions.pod:4100
30419 msgid "set-e2uuid"
30420 msgstr ""
30421
30422 # type: verbatim
30423 #. type: verbatim
30424 #: ../fish/guestfish-actions.pod:4102
30425 #, no-wrap
30426 msgid ""
30427 " set-e2uuid device uuid\n"
30428 "\n"
30429 msgstr ""
30430
30431 # type: textblock
30432 #. type: textblock
30433 #: ../fish/guestfish-actions.pod:4109
30434 msgid ""
30435 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
30436 "UUID of a filesystem."
30437 msgstr ""
30438
30439 # type: =head2
30440 #. type: =head2
30441 #: ../fish/guestfish-actions.pod:4112
30442 msgid "set-memsize"
30443 msgstr ""
30444
30445 # type: =head2
30446 #. type: =head2
30447 #: ../fish/guestfish-actions.pod:4114
30448 msgid "memsize"
30449 msgstr ""
30450
30451 # type: verbatim
30452 #. type: verbatim
30453 #: ../fish/guestfish-actions.pod:4116
30454 #, no-wrap
30455 msgid ""
30456 " set-memsize memsize\n"
30457 "\n"
30458 msgstr ""
30459
30460 # type: textblock
30461 #. type: textblock
30462 #: ../fish/guestfish-actions.pod:4118
30463 msgid ""
30464 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
30465 "This only has any effect if called before L</launch>."
30466 msgstr ""
30467
30468 # type: =head2
30469 #. type: =head2
30470 #: ../fish/guestfish-actions.pod:4129
30471 msgid "set-network"
30472 msgstr ""
30473
30474 # type: =head2
30475 #. type: =head2
30476 #: ../fish/guestfish-actions.pod:4131
30477 msgid "network"
30478 msgstr ""
30479
30480 # type: verbatim
30481 #. type: verbatim
30482 #: ../fish/guestfish-actions.pod:4133
30483 #, no-wrap
30484 msgid ""
30485 " set-network true|false\n"
30486 "\n"
30487 msgstr ""
30488
30489 # type: textblock
30490 #. type: textblock
30491 #: ../fish/guestfish-actions.pod:4141
30492 msgid ""
30493 "You must call this before calling L</launch>, otherwise it has no effect."
30494 msgstr ""
30495
30496 # type: =head2
30497 #. type: =head2
30498 #: ../fish/guestfish-actions.pod:4144
30499 msgid "set-path"
30500 msgstr ""
30501
30502 # type: =head2
30503 #. type: =head2
30504 #: ../fish/guestfish-actions.pod:4146
30505 msgid "path"
30506 msgstr ""
30507
30508 # type: verbatim
30509 #. type: verbatim
30510 #: ../fish/guestfish-actions.pod:4148
30511 #, no-wrap
30512 msgid ""
30513 " set-path searchpath\n"
30514 "\n"
30515 msgstr ""
30516
30517 # type: =head2
30518 #. type: =head2
30519 #: ../fish/guestfish-actions.pod:4157
30520 msgid "set-qemu"
30521 msgstr ""
30522
30523 # type: =head2
30524 #. type: =head2
30525 #: ../fish/guestfish-actions.pod:4159
30526 msgid "qemu"
30527 msgstr ""
30528
30529 # type: verbatim
30530 #. type: verbatim
30531 #: ../fish/guestfish-actions.pod:4161
30532 #, no-wrap
30533 msgid ""
30534 " set-qemu qemu\n"
30535 "\n"
30536 msgstr ""
30537
30538 # type: =head2
30539 #. type: =head2
30540 #: ../fish/guestfish-actions.pod:4181
30541 msgid "set-recovery-proc"
30542 msgstr ""
30543
30544 # type: =head2
30545 #. type: =head2
30546 #: ../fish/guestfish-actions.pod:4183
30547 msgid "recovery-proc"
30548 msgstr ""
30549
30550 # type: verbatim
30551 #. type: verbatim
30552 #: ../fish/guestfish-actions.pod:4185
30553 #, no-wrap
30554 msgid ""
30555 " set-recovery-proc true|false\n"
30556 "\n"
30557 msgstr ""
30558
30559 # type: textblock
30560 #. type: textblock
30561 #: ../fish/guestfish-actions.pod:4187
30562 msgid ""
30563 "If this is called with the parameter C<false> then L</launch> does not "
30564 "create a recovery process.  The purpose of the recovery process is to stop "
30565 "runaway qemu processes in the case where the main program aborts abruptly."
30566 msgstr ""
30567
30568 # type: textblock
30569 #. type: textblock
30570 #: ../fish/guestfish-actions.pod:4192
30571 msgid ""
30572 "This only has any effect if called before L</launch>, and the default is "
30573 "true."
30574 msgstr ""
30575
30576 # type: =head2
30577 #. type: =head2
30578 #: ../fish/guestfish-actions.pod:4201
30579 msgid "set-selinux"
30580 msgstr ""
30581
30582 # type: =head2
30583 #. type: =head2
30584 #: ../fish/guestfish-actions.pod:4203
30585 msgid "selinux"
30586 msgstr ""
30587
30588 # type: verbatim
30589 #. type: verbatim
30590 #: ../fish/guestfish-actions.pod:4205
30591 #, no-wrap
30592 msgid ""
30593 " set-selinux true|false\n"
30594 "\n"
30595 msgstr ""
30596
30597 # type: =head2
30598 #. type: =head2
30599 #: ../fish/guestfish-actions.pod:4216
30600 msgid "set-trace"
30601 msgstr ""
30602
30603 # type: =head2
30604 #. type: =head2
30605 #: ../fish/guestfish-actions.pod:4218
30606 msgid "trace"
30607 msgstr ""
30608
30609 # type: verbatim
30610 #. type: verbatim
30611 #: ../fish/guestfish-actions.pod:4220
30612 #, no-wrap
30613 msgid ""
30614 " set-trace true|false\n"
30615 "\n"
30616 msgstr ""
30617
30618 #. type: textblock
30619 #: ../fish/guestfish-actions.pod:4232
30620 msgid ""
30621 "Trace messages are normally sent to C<stderr>, unless you register a "
30622 "callback to send them somewhere else (see L</set-event-callback>)."
30623 msgstr ""
30624
30625 # type: =head2
30626 #. type: =head2
30627 #: ../fish/guestfish-actions.pod:4236
30628 msgid "set-verbose"
30629 msgstr ""
30630
30631 # type: =head2
30632 #. type: =head2
30633 #: ../fish/guestfish-actions.pod:4238
30634 msgid "verbose"
30635 msgstr ""
30636
30637 # type: verbatim
30638 #. type: verbatim
30639 #: ../fish/guestfish-actions.pod:4240
30640 #, no-wrap
30641 msgid ""
30642 " set-verbose true|false\n"
30643 "\n"
30644 msgstr ""
30645
30646 #. type: textblock
30647 #: ../fish/guestfish-actions.pod:4247
30648 msgid ""
30649 "Verbose messages are normally sent to C<stderr>, unless you register a "
30650 "callback to send them somewhere else (see L</set-event-callback>)."
30651 msgstr ""
30652
30653 # type: =head2
30654 #. type: =head2
30655 #: ../fish/guestfish-actions.pod:4251
30656 msgid "setcon"
30657 msgstr ""
30658
30659 # type: verbatim
30660 #. type: verbatim
30661 #: ../fish/guestfish-actions.pod:4253
30662 #, no-wrap
30663 msgid ""
30664 " setcon context\n"
30665 "\n"
30666 msgstr ""
30667
30668 # type: =head2
30669 #. type: =head2
30670 #: ../fish/guestfish-actions.pod:4260
30671 msgid "setxattr"
30672 msgstr ""
30673
30674 # type: verbatim
30675 #. type: verbatim
30676 #: ../fish/guestfish-actions.pod:4262
30677 #, no-wrap
30678 msgid ""
30679 " setxattr xattr val vallen path\n"
30680 "\n"
30681 msgstr ""
30682
30683 # type: textblock
30684 #. type: textblock
30685 #: ../fish/guestfish-actions.pod:4268
30686 msgid "See also: L</lsetxattr>, L<attr(5)>."
30687 msgstr ""
30688
30689 # type: =head2
30690 #. type: =head2
30691 #: ../fish/guestfish-actions.pod:4270
30692 msgid "sfdisk"
30693 msgstr ""
30694
30695 # type: verbatim
30696 #. type: verbatim
30697 #: ../fish/guestfish-actions.pod:4272
30698 #, no-wrap
30699 msgid ""
30700 " sfdisk device cyls heads sectors 'lines ...'\n"
30701 "\n"
30702 msgstr ""
30703
30704 # type: textblock
30705 #. type: textblock
30706 #: ../fish/guestfish-actions.pod:4294
30707 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
30708 msgstr ""
30709
30710 # type: =head2
30711 #. type: =head2
30712 #: ../fish/guestfish-actions.pod:4307
30713 msgid "sfdiskM"
30714 msgstr ""
30715
30716 # type: verbatim
30717 #. type: verbatim
30718 #: ../fish/guestfish-actions.pod:4309
30719 #, no-wrap
30720 msgid ""
30721 " sfdiskM device 'lines ...'\n"
30722 "\n"
30723 msgstr ""
30724
30725 # type: textblock
30726 #. type: textblock
30727 #: ../fish/guestfish-actions.pod:4311
30728 msgid ""
30729 "This is a simplified interface to the L</sfdisk> command, where partition "
30730 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
30731 "you don't need to specify the cyls, heads and sectors parameters which were "
30732 "rarely if ever used anyway."
30733 msgstr ""
30734
30735 # type: textblock
30736 #. type: textblock
30737 #: ../fish/guestfish-actions.pod:4317
30738 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
30739 msgstr ""
30740
30741 # type: =head2
30742 #. type: =head2
30743 #: ../fish/guestfish-actions.pod:4330
30744 msgid "sfdisk-N"
30745 msgstr ""
30746
30747 # type: verbatim
30748 #. type: verbatim
30749 #: ../fish/guestfish-actions.pod:4332
30750 #, no-wrap
30751 msgid ""
30752 " sfdisk-N device partnum cyls heads sectors line\n"
30753 "\n"
30754 msgstr ""
30755
30756 # type: textblock
30757 #. type: textblock
30758 #: ../fish/guestfish-actions.pod:4337
30759 msgid ""
30760 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
30761 "cyls/heads/sectors parameters."
30762 msgstr ""
30763
30764 # type: textblock
30765 #. type: textblock
30766 #: ../fish/guestfish-actions.pod:4340
30767 msgid "See also: L</part-add>"
30768 msgstr ""
30769
30770 # type: =head2
30771 #. type: =head2
30772 #: ../fish/guestfish-actions.pod:4352
30773 msgid "sfdisk-disk-geometry"
30774 msgstr ""
30775
30776 # type: verbatim
30777 #. type: verbatim
30778 #: ../fish/guestfish-actions.pod:4354
30779 #, no-wrap
30780 msgid ""
30781 " sfdisk-disk-geometry device\n"
30782 "\n"
30783 msgstr ""
30784
30785 # type: textblock
30786 #. type: textblock
30787 #: ../fish/guestfish-actions.pod:4356
30788 msgid ""
30789 "This displays the disk geometry of C<device> read from the partition table.  "
30790 "Especially in the case where the underlying block device has been resized, "
30791 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
30792 "kernel-geometry>)."
30793 msgstr ""
30794
30795 # type: =head2
30796 #. type: =head2
30797 #: ../fish/guestfish-actions.pod:4364
30798 msgid "sfdisk-kernel-geometry"
30799 msgstr ""
30800
30801 # type: verbatim
30802 #. type: verbatim
30803 #: ../fish/guestfish-actions.pod:4366
30804 #, no-wrap
30805 msgid ""
30806 " sfdisk-kernel-geometry device\n"
30807 "\n"
30808 msgstr ""
30809
30810 # type: =head2
30811 #. type: =head2
30812 #: ../fish/guestfish-actions.pod:4373
30813 msgid "sfdisk-l"
30814 msgstr ""
30815
30816 # type: verbatim
30817 #. type: verbatim
30818 #: ../fish/guestfish-actions.pod:4375
30819 #, no-wrap
30820 msgid ""
30821 " sfdisk-l device\n"
30822 "\n"
30823 msgstr ""
30824
30825 # type: textblock
30826 #. type: textblock
30827 #: ../fish/guestfish-actions.pod:4381
30828 msgid "See also: L</part-list>"
30829 msgstr ""
30830
30831 # type: =head2
30832 #. type: =head2
30833 #: ../fish/guestfish-actions.pod:4390
30834 msgid "sh"
30835 msgstr ""
30836
30837 # type: verbatim
30838 #. type: verbatim
30839 #: ../fish/guestfish-actions.pod:4392
30840 #, no-wrap
30841 msgid ""
30842 " sh command\n"
30843 "\n"
30844 msgstr ""
30845
30846 # type: textblock
30847 #. type: textblock
30848 #: ../fish/guestfish-actions.pod:4397
30849 msgid "This is like L</command>, but passes the command to:"
30850 msgstr ""
30851
30852 # type: textblock
30853 #. type: textblock
30854 #: ../fish/guestfish-actions.pod:4405
30855 msgid "All the provisos about L</command> apply to this call."
30856 msgstr ""
30857
30858 # type: =head2
30859 #. type: =head2
30860 #: ../fish/guestfish-actions.pod:4407
30861 msgid "sh-lines"
30862 msgstr ""
30863
30864 # type: verbatim
30865 #. type: verbatim
30866 #: ../fish/guestfish-actions.pod:4409
30867 #, no-wrap
30868 msgid ""
30869 " sh-lines command\n"
30870 "\n"
30871 msgstr ""
30872
30873 # type: textblock
30874 #. type: textblock
30875 #: ../fish/guestfish-actions.pod:4411
30876 msgid "This is the same as L</sh>, but splits the result into a list of lines."
30877 msgstr ""
30878
30879 # type: textblock
30880 #. type: textblock
30881 #: ../fish/guestfish-actions.pod:4414
30882 msgid "See also: L</command-lines>"
30883 msgstr ""
30884
30885 # type: =head2
30886 #. type: =head2
30887 #: ../fish/guestfish-actions.pod:4416
30888 msgid "sleep"
30889 msgstr ""
30890
30891 # type: verbatim
30892 #. type: verbatim
30893 #: ../fish/guestfish-actions.pod:4418
30894 #, no-wrap
30895 msgid ""
30896 " sleep secs\n"
30897 "\n"
30898 msgstr ""
30899
30900 # type: =head2
30901 #. type: =head2
30902 #: ../fish/guestfish-actions.pod:4422
30903 msgid "stat"
30904 msgstr ""
30905
30906 # type: verbatim
30907 #. type: verbatim
30908 #: ../fish/guestfish-actions.pod:4424
30909 #, no-wrap
30910 msgid ""
30911 " stat path\n"
30912 "\n"
30913 msgstr ""
30914
30915 # type: =head2
30916 #. type: =head2
30917 #: ../fish/guestfish-actions.pod:4430
30918 msgid "statvfs"
30919 msgstr ""
30920
30921 # type: verbatim
30922 #. type: verbatim
30923 #: ../fish/guestfish-actions.pod:4432
30924 #, no-wrap
30925 msgid ""
30926 " statvfs path\n"
30927 "\n"
30928 msgstr ""
30929
30930 # type: =head2
30931 #. type: =head2
30932 #: ../fish/guestfish-actions.pod:4440
30933 msgid "strings"
30934 msgstr ""
30935
30936 # type: verbatim
30937 #. type: verbatim
30938 #: ../fish/guestfish-actions.pod:4442
30939 #, no-wrap
30940 msgid ""
30941 " strings path\n"
30942 "\n"
30943 msgstr ""
30944
30945 # type: =head2
30946 #. type: =head2
30947 #: ../fish/guestfish-actions.pod:4450
30948 msgid "strings-e"
30949 msgstr ""
30950
30951 # type: verbatim
30952 #. type: verbatim
30953 #: ../fish/guestfish-actions.pod:4452
30954 #, no-wrap
30955 msgid ""
30956 " strings-e encoding path\n"
30957 "\n"
30958 msgstr ""
30959
30960 # type: textblock
30961 #. type: textblock
30962 #: ../fish/guestfish-actions.pod:4454
30963 msgid ""
30964 "This is like the L</strings> command, but allows you to specify the encoding "
30965 "of strings that are looked for in the source file C<path>."
30966 msgstr ""
30967
30968 # type: textblock
30969 #. type: textblock
30970 #: ../fish/guestfish-actions.pod:4464
30971 msgid ""
30972 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30973 "ISO-8859-X (this is what L</strings> uses)."
30974 msgstr ""
30975
30976 # type: =head2
30977 #. type: =head2
30978 #: ../fish/guestfish-actions.pod:4496
30979 msgid "swapoff-device"
30980 msgstr ""
30981
30982 # type: verbatim
30983 #. type: verbatim
30984 #: ../fish/guestfish-actions.pod:4498
30985 #, no-wrap
30986 msgid ""
30987 " swapoff-device device\n"
30988 "\n"
30989 msgstr ""
30990
30991 # type: textblock
30992 #. type: textblock
30993 #: ../fish/guestfish-actions.pod:4500
30994 msgid ""
30995 "This command disables the libguestfs appliance swap device or partition "
30996 "named C<device>.  See L</swapon-device>."
30997 msgstr ""
30998
30999 # type: =head2
31000 #. type: =head2
31001 #: ../fish/guestfish-actions.pod:4504
31002 msgid "swapoff-file"
31003 msgstr ""
31004
31005 # type: verbatim
31006 #. type: verbatim
31007 #: ../fish/guestfish-actions.pod:4506
31008 #, no-wrap
31009 msgid ""
31010 " swapoff-file file\n"
31011 "\n"
31012 msgstr ""
31013
31014 # type: =head2
31015 #. type: =head2
31016 #: ../fish/guestfish-actions.pod:4510
31017 msgid "swapoff-label"
31018 msgstr ""
31019
31020 # type: verbatim
31021 #. type: verbatim
31022 #: ../fish/guestfish-actions.pod:4512
31023 #, no-wrap
31024 msgid ""
31025 " swapoff-label label\n"
31026 "\n"
31027 msgstr ""
31028
31029 # type: =head2
31030 #. type: =head2
31031 #: ../fish/guestfish-actions.pod:4517
31032 msgid "swapoff-uuid"
31033 msgstr ""
31034
31035 # type: verbatim
31036 #. type: verbatim
31037 #: ../fish/guestfish-actions.pod:4519
31038 #, no-wrap
31039 msgid ""
31040 " swapoff-uuid uuid\n"
31041 "\n"
31042 msgstr ""
31043
31044 # type: =head2
31045 #. type: =head2
31046 #: ../fish/guestfish-actions.pod:4524
31047 msgid "swapon-device"
31048 msgstr ""
31049
31050 # type: verbatim
31051 #. type: verbatim
31052 #: ../fish/guestfish-actions.pod:4526
31053 #, no-wrap
31054 msgid ""
31055 " swapon-device device\n"
31056 "\n"
31057 msgstr ""
31058
31059 # type: textblock
31060 #. type: textblock
31061 #: ../fish/guestfish-actions.pod:4528
31062 msgid ""
31063 "This command enables the libguestfs appliance to use the swap device or "
31064 "partition named C<device>.  The increased memory is made available for all "
31065 "commands, for example those run using L</command> or L</sh>."
31066 msgstr ""
31067
31068 # type: =head2
31069 #. type: =head2
31070 #: ../fish/guestfish-actions.pod:4540
31071 msgid "swapon-file"
31072 msgstr ""
31073
31074 # type: verbatim
31075 #. type: verbatim
31076 #: ../fish/guestfish-actions.pod:4542
31077 #, no-wrap
31078 msgid ""
31079 " swapon-file file\n"
31080 "\n"
31081 msgstr ""
31082
31083 # type: textblock
31084 #. type: textblock
31085 #: ../fish/guestfish-actions.pod:4544
31086 msgid ""
31087 "This command enables swap to a file.  See L</swapon-device> for other notes."
31088 msgstr ""
31089
31090 # type: =head2
31091 #. type: =head2
31092 #: ../fish/guestfish-actions.pod:4547
31093 msgid "swapon-label"
31094 msgstr ""
31095
31096 # type: verbatim
31097 #. type: verbatim
31098 #: ../fish/guestfish-actions.pod:4549
31099 #, no-wrap
31100 msgid ""
31101 " swapon-label label\n"
31102 "\n"
31103 msgstr ""
31104
31105 # type: textblock
31106 #. type: textblock
31107 #: ../fish/guestfish-actions.pod:4551
31108 msgid ""
31109 "This command enables swap to a labeled swap partition.  See L</swapon-"
31110 "device> for other notes."
31111 msgstr ""
31112
31113 # type: =head2
31114 #. type: =head2
31115 #: ../fish/guestfish-actions.pod:4554
31116 msgid "swapon-uuid"
31117 msgstr ""
31118
31119 # type: verbatim
31120 #. type: verbatim
31121 #: ../fish/guestfish-actions.pod:4556
31122 #, no-wrap
31123 msgid ""
31124 " swapon-uuid uuid\n"
31125 "\n"
31126 msgstr ""
31127
31128 # type: textblock
31129 #. type: textblock
31130 #: ../fish/guestfish-actions.pod:4558
31131 msgid ""
31132 "This command enables swap to a swap partition with the given UUID.  See L</"
31133 "swapon-device> for other notes."
31134 msgstr ""
31135
31136 # type: =head2
31137 #. type: =head2
31138 #: ../fish/guestfish-actions.pod:4561
31139 msgid "sync"
31140 msgstr ""
31141
31142 # type: verbatim
31143 #. type: verbatim
31144 #: ../fish/guestfish-actions.pod:4563
31145 #, no-wrap
31146 msgid ""
31147 " sync\n"
31148 "\n"
31149 msgstr ""
31150
31151 # type: =head2
31152 #. type: =head2
31153 #: ../fish/guestfish-actions.pod:4571
31154 msgid "tail"
31155 msgstr ""
31156
31157 # type: verbatim
31158 #. type: verbatim
31159 #: ../fish/guestfish-actions.pod:4573
31160 #, no-wrap
31161 msgid ""
31162 " tail path\n"
31163 "\n"
31164 msgstr ""
31165
31166 # type: =head2
31167 #. type: =head2
31168 #: ../fish/guestfish-actions.pod:4581
31169 msgid "tail-n"
31170 msgstr ""
31171
31172 # type: verbatim
31173 #. type: verbatim
31174 #: ../fish/guestfish-actions.pod:4583
31175 #, no-wrap
31176 msgid ""
31177 " tail-n nrlines path\n"
31178 "\n"
31179 msgstr ""
31180
31181 # type: =head2
31182 #. type: =head2
31183 #: ../fish/guestfish-actions.pod:4596
31184 msgid "tar-in"
31185 msgstr ""
31186
31187 # type: verbatim
31188 #. type: verbatim
31189 #: ../fish/guestfish-actions.pod:4598
31190 #, no-wrap
31191 msgid ""
31192 " tar-in (tarfile|-) directory\n"
31193 "\n"
31194 msgstr ""
31195
31196 # type: textblock
31197 #. type: textblock
31198 #: ../fish/guestfish-actions.pod:4603
31199 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
31200 msgstr ""
31201
31202 # type: =head2
31203 #. type: =head2
31204 #: ../fish/guestfish-actions.pod:4608
31205 msgid "tar-out"
31206 msgstr ""
31207
31208 # type: verbatim
31209 #. type: verbatim
31210 #: ../fish/guestfish-actions.pod:4610
31211 #, no-wrap
31212 msgid ""
31213 " tar-out directory (tarfile|-)\n"
31214 "\n"
31215 msgstr ""
31216
31217 # type: textblock
31218 #. type: textblock
31219 #: ../fish/guestfish-actions.pod:4615
31220 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
31221 msgstr ""
31222
31223 # type: =head2
31224 #. type: =head2
31225 #: ../fish/guestfish-actions.pod:4620
31226 msgid "tgz-in"
31227 msgstr ""
31228
31229 # type: verbatim
31230 #. type: verbatim
31231 #: ../fish/guestfish-actions.pod:4622
31232 #, no-wrap
31233 msgid ""
31234 " tgz-in (tarball|-) directory\n"
31235 "\n"
31236 msgstr ""
31237
31238 # type: textblock
31239 #. type: textblock
31240 #: ../fish/guestfish-actions.pod:4627
31241 msgid "To upload an uncompressed tarball, use L</tar-in>."
31242 msgstr ""
31243
31244 # type: =head2
31245 #. type: =head2
31246 #: ../fish/guestfish-actions.pod:4631
31247 msgid "tgz-out"
31248 msgstr ""
31249
31250 # type: verbatim
31251 #. type: verbatim
31252 #: ../fish/guestfish-actions.pod:4633
31253 #, no-wrap
31254 msgid ""
31255 " tgz-out directory (tarball|-)\n"
31256 "\n"
31257 msgstr ""
31258
31259 # type: textblock
31260 #. type: textblock
31261 #: ../fish/guestfish-actions.pod:4638
31262 msgid "To download an uncompressed tarball, use L</tar-out>."
31263 msgstr ""
31264
31265 # type: =head2
31266 #. type: =head2
31267 #: ../fish/guestfish-actions.pod:4642
31268 msgid "touch"
31269 msgstr ""
31270
31271 # type: verbatim
31272 #. type: verbatim
31273 #: ../fish/guestfish-actions.pod:4644
31274 #, no-wrap
31275 msgid ""
31276 " touch path\n"
31277 "\n"
31278 msgstr ""
31279
31280 # type: =head2
31281 #. type: =head2
31282 #: ../fish/guestfish-actions.pod:4653
31283 msgid "truncate"
31284 msgstr ""
31285
31286 # type: verbatim
31287 #. type: verbatim
31288 #: ../fish/guestfish-actions.pod:4655
31289 #, no-wrap
31290 msgid ""
31291 " truncate path\n"
31292 "\n"
31293 msgstr ""
31294
31295 # type: =head2
31296 #. type: =head2
31297 #: ../fish/guestfish-actions.pod:4660
31298 msgid "truncate-size"
31299 msgstr ""
31300
31301 # type: verbatim
31302 #. type: verbatim
31303 #: ../fish/guestfish-actions.pod:4662
31304 #, no-wrap
31305 msgid ""
31306 " truncate-size path size\n"
31307 "\n"
31308 msgstr ""
31309
31310 # type: textblock
31311 #. type: textblock
31312 #: ../fish/guestfish-actions.pod:4667
31313 msgid ""
31314 "If the current file size is less than C<size> then the file is extended to "
31315 "the required size with zero bytes.  This creates a sparse file (ie. disk "
31316 "blocks are not allocated for the file until you write to it).  To create a "
31317 "non-sparse file of zeroes, use L</fallocate64> instead."
31318 msgstr ""
31319
31320 # type: =head2
31321 #. type: =head2
31322 #: ../fish/guestfish-actions.pod:4673
31323 msgid "tune2fs-l"
31324 msgstr ""
31325
31326 # type: verbatim
31327 #. type: verbatim
31328 #: ../fish/guestfish-actions.pod:4675
31329 #, no-wrap
31330 msgid ""
31331 " tune2fs-l device\n"
31332 "\n"
31333 msgstr ""
31334
31335 # type: =head2
31336 #. type: =head2
31337 #: ../fish/guestfish-actions.pod:4685
31338 msgid "txz-in"
31339 msgstr ""
31340
31341 # type: verbatim
31342 #. type: verbatim
31343 #: ../fish/guestfish-actions.pod:4687
31344 #, no-wrap
31345 msgid ""
31346 " txz-in (tarball|-) directory\n"
31347 "\n"
31348 msgstr ""
31349
31350 # type: =head2
31351 #. type: =head2
31352 #: ../fish/guestfish-actions.pod:4694
31353 msgid "txz-out"
31354 msgstr ""
31355
31356 # type: verbatim
31357 #. type: verbatim
31358 #: ../fish/guestfish-actions.pod:4696
31359 #, no-wrap
31360 msgid ""
31361 " txz-out directory (tarball|-)\n"
31362 "\n"
31363 msgstr ""
31364
31365 # type: =head2
31366 #. type: =head2
31367 #: ../fish/guestfish-actions.pod:4703
31368 msgid "umask"
31369 msgstr ""
31370
31371 # type: verbatim
31372 #. type: verbatim
31373 #: ../fish/guestfish-actions.pod:4705
31374 #, no-wrap
31375 msgid ""
31376 " umask mask\n"
31377 "\n"
31378 msgstr ""
31379
31380 # type: textblock
31381 #. type: textblock
31382 #: ../fish/guestfish-actions.pod:4719
31383 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
31384 msgstr ""
31385
31386 # type: =head2
31387 #. type: =head2
31388 #: ../fish/guestfish-actions.pod:4724
31389 msgid "umount"
31390 msgstr ""
31391
31392 # type: =head2
31393 #. type: =head2
31394 #: ../fish/guestfish-actions.pod:4726
31395 msgid "unmount"
31396 msgstr ""
31397
31398 # type: verbatim
31399 #. type: verbatim
31400 #: ../fish/guestfish-actions.pod:4728
31401 #, no-wrap
31402 msgid ""
31403 " umount pathordevice\n"
31404 "\n"
31405 msgstr ""
31406
31407 # type: =head2
31408 #. type: =head2
31409 #: ../fish/guestfish-actions.pod:4734
31410 msgid "umount-all"
31411 msgstr ""
31412
31413 # type: =head2
31414 #. type: =head2
31415 #: ../fish/guestfish-actions.pod:4736
31416 msgid "unmount-all"
31417 msgstr ""
31418
31419 # type: verbatim
31420 #. type: verbatim
31421 #: ../fish/guestfish-actions.pod:4738
31422 #, no-wrap
31423 msgid ""
31424 " umount-all\n"
31425 "\n"
31426 msgstr ""
31427
31428 # type: =head2
31429 #. type: =head2
31430 #: ../fish/guestfish-actions.pod:4744
31431 msgid "upload"
31432 msgstr ""
31433
31434 # type: verbatim
31435 #. type: verbatim
31436 #: ../fish/guestfish-actions.pod:4746
31437 #, no-wrap
31438 msgid ""
31439 " upload (filename|-) remotefilename\n"
31440 "\n"
31441 msgstr ""
31442
31443 # type: textblock
31444 #. type: textblock
31445 #: ../fish/guestfish-actions.pod:4753
31446 msgid "See also L</download>."
31447 msgstr ""
31448
31449 # type: =head2
31450 #. type: =head2
31451 #: ../fish/guestfish-actions.pod:4757
31452 msgid "upload-offset"
31453 msgstr ""
31454
31455 # type: verbatim
31456 #. type: verbatim
31457 #: ../fish/guestfish-actions.pod:4759
31458 #, no-wrap
31459 msgid ""
31460 " upload-offset (filename|-) remotefilename offset\n"
31461 "\n"
31462 msgstr ""
31463
31464 # type: textblock
31465 #. type: textblock
31466 #: ../fish/guestfish-actions.pod:4771
31467 msgid ""
31468 "Note that there is no limit on the amount of data that can be uploaded with "
31469 "this call, unlike with L</pwrite>, and this call always writes the full "
31470 "amount unless an error occurs."
31471 msgstr ""
31472
31473 # type: textblock
31474 #. type: textblock
31475 #: ../fish/guestfish-actions.pod:4776
31476 msgid "See also L</upload>, L</pwrite>."
31477 msgstr ""
31478
31479 # type: =head2
31480 #. type: =head2
31481 #: ../fish/guestfish-actions.pod:4780
31482 msgid "utimens"
31483 msgstr ""
31484
31485 # type: verbatim
31486 #. type: verbatim
31487 #: ../fish/guestfish-actions.pod:4782
31488 #, no-wrap
31489 msgid ""
31490 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
31491 "\n"
31492 msgstr ""
31493
31494 # type: =head2
31495 #. type: =head2
31496 #: ../fish/guestfish-actions.pod:4801
31497 msgid "version"
31498 msgstr ""
31499
31500 # type: verbatim
31501 #. type: verbatim
31502 #: ../fish/guestfish-actions.pod:4803
31503 #, no-wrap
31504 msgid ""
31505 " version\n"
31506 "\n"
31507 msgstr ""
31508
31509 # type: textblock
31510 #. type: textblock
31511 #: ../fish/guestfish-actions.pod:4830
31512 msgid ""
31513 "I<Note:> Don't use this call to test for availability of features.  In "
31514 "enterprise distributions we backport features from later versions into "
31515 "earlier versions, making this an unreliable way to test for features.  Use "
31516 "L</available> instead."
31517 msgstr ""
31518
31519 # type: =head2
31520 #. type: =head2
31521 #: ../fish/guestfish-actions.pod:4836
31522 msgid "vfs-label"
31523 msgstr ""
31524
31525 # type: verbatim
31526 #. type: verbatim
31527 #: ../fish/guestfish-actions.pod:4838
31528 #, no-wrap
31529 msgid ""
31530 " vfs-label device\n"
31531 "\n"
31532 msgstr ""
31533
31534 # type: textblock
31535 #. type: textblock
31536 #: ../fish/guestfish-actions.pod:4845
31537 msgid "To find a filesystem from the label, use L</findfs-label>."
31538 msgstr ""
31539
31540 # type: =head2
31541 #. type: =head2
31542 #: ../fish/guestfish-actions.pod:4847
31543 msgid "vfs-type"
31544 msgstr ""
31545
31546 # type: verbatim
31547 #. type: verbatim
31548 #: ../fish/guestfish-actions.pod:4849
31549 #, no-wrap
31550 msgid ""
31551 " vfs-type device\n"
31552 "\n"
31553 msgstr ""
31554
31555 # type: =head2
31556 #. type: =head2
31557 #: ../fish/guestfish-actions.pod:4859
31558 msgid "vfs-uuid"
31559 msgstr ""
31560
31561 # type: verbatim
31562 #. type: verbatim
31563 #: ../fish/guestfish-actions.pod:4861
31564 #, no-wrap
31565 msgid ""
31566 " vfs-uuid device\n"
31567 "\n"
31568 msgstr ""
31569
31570 # type: textblock
31571 #. type: textblock
31572 #: ../fish/guestfish-actions.pod:4868
31573 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
31574 msgstr ""
31575
31576 # type: =head2
31577 #. type: =head2
31578 #: ../fish/guestfish-actions.pod:4870
31579 msgid "vg-activate"
31580 msgstr ""
31581
31582 # type: verbatim
31583 #. type: verbatim
31584 #: ../fish/guestfish-actions.pod:4872
31585 #, no-wrap
31586 msgid ""
31587 " vg-activate true|false 'volgroups ...'\n"
31588 "\n"
31589 msgstr ""
31590
31591 # type: =head2
31592 #. type: =head2
31593 #: ../fish/guestfish-actions.pod:4882
31594 msgid "vg-activate-all"
31595 msgstr ""
31596
31597 # type: verbatim
31598 #. type: verbatim
31599 #: ../fish/guestfish-actions.pod:4884
31600 #, no-wrap
31601 msgid ""
31602 " vg-activate-all true|false\n"
31603 "\n"
31604 msgstr ""
31605
31606 # type: =head2
31607 #. type: =head2
31608 #: ../fish/guestfish-actions.pod:4891
31609 msgid "vgcreate"
31610 msgstr ""
31611
31612 # type: verbatim
31613 #. type: verbatim
31614 #: ../fish/guestfish-actions.pod:4893
31615 #, no-wrap
31616 msgid ""
31617 " vgcreate volgroup 'physvols ...'\n"
31618 "\n"
31619 msgstr ""
31620
31621 # type: =head2
31622 #. type: =head2
31623 #: ../fish/guestfish-actions.pod:4898
31624 msgid "vglvuuids"
31625 msgstr ""
31626
31627 # type: verbatim
31628 #. type: verbatim
31629 #: ../fish/guestfish-actions.pod:4900
31630 #, no-wrap
31631 msgid ""
31632 " vglvuuids vgname\n"
31633 "\n"
31634 msgstr ""
31635
31636 # type: textblock
31637 #. type: textblock
31638 #: ../fish/guestfish-actions.pod:4905
31639 msgid ""
31640 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
31641 "logical volumes and volume groups."
31642 msgstr ""
31643
31644 # type: textblock
31645 #. type: textblock
31646 #: ../fish/guestfish-actions.pod:4908
31647 msgid "See also L</vgpvuuids>."
31648 msgstr ""
31649
31650 # type: =head2
31651 #. type: =head2
31652 #: ../fish/guestfish-actions.pod:4910
31653 msgid "vgpvuuids"
31654 msgstr ""
31655
31656 # type: verbatim
31657 #. type: verbatim
31658 #: ../fish/guestfish-actions.pod:4912
31659 #, no-wrap
31660 msgid ""
31661 " vgpvuuids vgname\n"
31662 "\n"
31663 msgstr ""
31664
31665 # type: textblock
31666 #. type: textblock
31667 #: ../fish/guestfish-actions.pod:4917
31668 msgid ""
31669 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
31670 "physical volumes and volume groups."
31671 msgstr ""
31672
31673 # type: textblock
31674 #. type: textblock
31675 #: ../fish/guestfish-actions.pod:4920
31676 msgid "See also L</vglvuuids>."
31677 msgstr ""
31678
31679 # type: =head2
31680 #. type: =head2
31681 #: ../fish/guestfish-actions.pod:4922
31682 msgid "vgremove"
31683 msgstr ""
31684
31685 # type: verbatim
31686 #. type: verbatim
31687 #: ../fish/guestfish-actions.pod:4924
31688 #, no-wrap
31689 msgid ""
31690 " vgremove vgname\n"
31691 "\n"
31692 msgstr ""
31693
31694 # type: =head2
31695 #. type: =head2
31696 #: ../fish/guestfish-actions.pod:4931
31697 msgid "vgrename"
31698 msgstr ""
31699
31700 # type: verbatim
31701 #. type: verbatim
31702 #: ../fish/guestfish-actions.pod:4933
31703 #, no-wrap
31704 msgid ""
31705 " vgrename volgroup newvolgroup\n"
31706 "\n"
31707 msgstr ""
31708
31709 # type: =head2
31710 #. type: =head2
31711 #: ../fish/guestfish-actions.pod:4937
31712 msgid "vgs"
31713 msgstr ""
31714
31715 # type: verbatim
31716 #. type: verbatim
31717 #: ../fish/guestfish-actions.pod:4939
31718 #, no-wrap
31719 msgid ""
31720 " vgs\n"
31721 "\n"
31722 msgstr ""
31723
31724 # type: textblock
31725 #. type: textblock
31726 #: ../fish/guestfish-actions.pod:4947
31727 msgid "See also L</vgs-full>."
31728 msgstr ""
31729
31730 # type: =head2
31731 #. type: =head2
31732 #: ../fish/guestfish-actions.pod:4949
31733 msgid "vgs-full"
31734 msgstr ""
31735
31736 # type: verbatim
31737 #. type: verbatim
31738 #: ../fish/guestfish-actions.pod:4951
31739 #, no-wrap
31740 msgid ""
31741 " vgs-full\n"
31742 "\n"
31743 msgstr ""
31744
31745 # type: =head2
31746 #. type: =head2
31747 #: ../fish/guestfish-actions.pod:4956
31748 msgid "vgscan"
31749 msgstr ""
31750
31751 # type: verbatim
31752 #. type: verbatim
31753 #: ../fish/guestfish-actions.pod:4958
31754 #, no-wrap
31755 msgid ""
31756 " vgscan\n"
31757 "\n"
31758 msgstr ""
31759
31760 # type: =head2
31761 #. type: =head2
31762 #: ../fish/guestfish-actions.pod:4963
31763 msgid "vguuid"
31764 msgstr ""
31765
31766 # type: verbatim
31767 #. type: verbatim
31768 #: ../fish/guestfish-actions.pod:4965
31769 #, no-wrap
31770 msgid ""
31771 " vguuid vgname\n"
31772 "\n"
31773 msgstr ""
31774
31775 # type: =head2
31776 #. type: =head2
31777 #: ../fish/guestfish-actions.pod:4969
31778 msgid "wc-c"
31779 msgstr ""
31780
31781 # type: verbatim
31782 #. type: verbatim
31783 #: ../fish/guestfish-actions.pod:4971
31784 #, no-wrap
31785 msgid ""
31786 " wc-c path\n"
31787 "\n"
31788 msgstr ""
31789
31790 # type: =head2
31791 #. type: =head2
31792 #: ../fish/guestfish-actions.pod:4976
31793 msgid "wc-l"
31794 msgstr ""
31795
31796 # type: verbatim
31797 #. type: verbatim
31798 #: ../fish/guestfish-actions.pod:4978
31799 #, no-wrap
31800 msgid ""
31801 " wc-l path\n"
31802 "\n"
31803 msgstr ""
31804
31805 # type: =head2
31806 #. type: =head2
31807 #: ../fish/guestfish-actions.pod:4983
31808 msgid "wc-w"
31809 msgstr ""
31810
31811 # type: verbatim
31812 #. type: verbatim
31813 #: ../fish/guestfish-actions.pod:4985
31814 #, no-wrap
31815 msgid ""
31816 " wc-w path\n"
31817 "\n"
31818 msgstr ""
31819
31820 # type: =head2
31821 #. type: =head2
31822 #: ../fish/guestfish-actions.pod:4990
31823 msgid "write"
31824 msgstr ""
31825
31826 # type: verbatim
31827 #. type: verbatim
31828 #: ../fish/guestfish-actions.pod:4992
31829 #, no-wrap
31830 msgid ""
31831 " write path content\n"
31832 "\n"
31833 msgstr ""
31834
31835 # type: =head2
31836 #. type: =head2
31837 #: ../fish/guestfish-actions.pod:5000
31838 msgid "write-file"
31839 msgstr ""
31840
31841 # type: verbatim
31842 #. type: verbatim
31843 #: ../fish/guestfish-actions.pod:5002
31844 #, no-wrap
31845 msgid ""
31846 " write-file path content size\n"
31847 "\n"
31848 msgstr ""
31849
31850 # type: =head2
31851 #. type: =head2
31852 #: ../fish/guestfish-actions.pod:5025
31853 msgid "zegrep"
31854 msgstr ""
31855
31856 # type: verbatim
31857 #. type: verbatim
31858 #: ../fish/guestfish-actions.pod:5027
31859 #, no-wrap
31860 msgid ""
31861 " zegrep regex path\n"
31862 "\n"
31863 msgstr ""
31864
31865 # type: =head2
31866 #. type: =head2
31867 #: ../fish/guestfish-actions.pod:5035
31868 msgid "zegrepi"
31869 msgstr ""
31870
31871 # type: verbatim
31872 #. type: verbatim
31873 #: ../fish/guestfish-actions.pod:5037
31874 #, no-wrap
31875 msgid ""
31876 " zegrepi regex path\n"
31877 "\n"
31878 msgstr ""
31879
31880 # type: =head2
31881 #. type: =head2
31882 #: ../fish/guestfish-actions.pod:5045
31883 msgid "zero"
31884 msgstr ""
31885
31886 # type: verbatim
31887 #. type: verbatim
31888 #: ../fish/guestfish-actions.pod:5047
31889 #, no-wrap
31890 msgid ""
31891 " zero device\n"
31892 "\n"
31893 msgstr ""
31894
31895 #. type: textblock
31896 #: ../fish/guestfish-actions.pod:5055
31897 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
31898 msgstr ""
31899
31900 # type: =head2
31901 #. type: =head2
31902 #: ../fish/guestfish-actions.pod:5058
31903 msgid "zero-device"
31904 msgstr ""
31905
31906 # type: verbatim
31907 #. type: verbatim
31908 #: ../fish/guestfish-actions.pod:5060
31909 #, no-wrap
31910 msgid ""
31911 " zero-device device\n"
31912 "\n"
31913 msgstr ""
31914
31915 # type: textblock
31916 #. type: textblock
31917 #: ../fish/guestfish-actions.pod:5062
31918 msgid ""
31919 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
31920 "which just zeroes the first few blocks of a device."
31921 msgstr ""
31922
31923 # type: =head2
31924 #. type: =head2
31925 #: ../fish/guestfish-actions.pod:5069
31926 msgid "zerofree"
31927 msgstr ""
31928
31929 # type: verbatim
31930 #. type: verbatim
31931 #: ../fish/guestfish-actions.pod:5071
31932 #, no-wrap
31933 msgid ""
31934 " zerofree device\n"
31935 "\n"
31936 msgstr ""
31937
31938 # type: =head2
31939 #. type: =head2
31940 #: ../fish/guestfish-actions.pod:5084
31941 msgid "zfgrep"
31942 msgstr ""
31943
31944 # type: verbatim
31945 #. type: verbatim
31946 #: ../fish/guestfish-actions.pod:5086
31947 #, no-wrap
31948 msgid ""
31949 " zfgrep pattern path\n"
31950 "\n"
31951 msgstr ""
31952
31953 # type: =head2
31954 #. type: =head2
31955 #: ../fish/guestfish-actions.pod:5094
31956 msgid "zfgrepi"
31957 msgstr ""
31958
31959 # type: verbatim
31960 #. type: verbatim
31961 #: ../fish/guestfish-actions.pod:5096
31962 #, no-wrap
31963 msgid ""
31964 " zfgrepi pattern path\n"
31965 "\n"
31966 msgstr ""
31967
31968 # type: =head2
31969 #. type: =head2
31970 #: ../fish/guestfish-actions.pod:5104
31971 msgid "zfile"
31972 msgstr ""
31973
31974 # type: verbatim
31975 #. type: verbatim
31976 #: ../fish/guestfish-actions.pod:5106
31977 #, no-wrap
31978 msgid ""
31979 " zfile meth path\n"
31980 "\n"
31981 msgstr ""
31982
31983 # type: textblock
31984 #. type: textblock
31985 #: ../fish/guestfish-actions.pod:5113
31986 msgid ""
31987 "Since 1.0.63, use L</file> instead which can now process compressed files."
31988 msgstr ""
31989
31990 # type: =head2
31991 #. type: =head2
31992 #: ../fish/guestfish-actions.pod:5123
31993 msgid "zgrep"
31994 msgstr ""
31995
31996 # type: verbatim
31997 #. type: verbatim
31998 #: ../fish/guestfish-actions.pod:5125
31999 #, no-wrap
32000 msgid ""
32001 " zgrep regex path\n"
32002 "\n"
32003 msgstr ""
32004
32005 # type: =head2
32006 #. type: =head2
32007 #: ../fish/guestfish-actions.pod:5133
32008 msgid "zgrepi"
32009 msgstr ""
32010
32011 # type: verbatim
32012 #. type: verbatim
32013 #: ../fish/guestfish-actions.pod:5135
32014 #, no-wrap
32015 msgid ""
32016 " zgrepi regex path\n"
32017 "\n"
32018 msgstr ""
32019
32020 # type: =head2
32021 #. type: =head2
32022 #: ../fish/guestfish-commands.pod:1
32023 msgid "alloc"
32024 msgstr ""
32025
32026 # type: =head2
32027 #. type: =head2
32028 #: ../fish/guestfish-commands.pod:3
32029 msgid "allocate"
32030 msgstr ""
32031
32032 # type: verbatim
32033 #. type: verbatim
32034 #: ../fish/guestfish-commands.pod:5
32035 #, no-wrap
32036 msgid ""
32037 " alloc filename size\n"
32038 "\n"
32039 msgstr ""
32040
32041 # type: textblock
32042 #. type: textblock
32043 #: ../fish/guestfish-commands.pod:7
32044 msgid ""
32045 "This creates an empty (zeroed) file of the given size, and then adds so it "
32046 "can be further examined."
32047 msgstr ""
32048
32049 # type: textblock
32050 #. type: textblock
32051 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:182
32052 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
32053 msgstr ""
32054
32055 # type: textblock
32056 #. type: textblock
32057 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:184
32058 msgid "Size can be specified using standard suffixes, eg. C<1M>."
32059 msgstr ""
32060
32061 # type: textblock
32062 #. type: textblock
32063 #: ../fish/guestfish-commands.pod:14
32064 msgid ""
32065 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
32066 "image, see L</PREPARED DISK IMAGES>."
32067 msgstr ""
32068
32069 # type: =head2
32070 #. type: =head2
32071 #: ../fish/guestfish-commands.pod:17
32072 msgid "copy-in"
32073 msgstr ""
32074
32075 # type: verbatim
32076 #. type: verbatim
32077 #: ../fish/guestfish-commands.pod:19
32078 #, no-wrap
32079 msgid ""
32080 " copy-in local [local ...] /remotedir\n"
32081 "\n"
32082 msgstr ""
32083
32084 # type: textblock
32085 #. type: textblock
32086 #: ../fish/guestfish-commands.pod:21
32087 msgid ""
32088 "C<copy-in> copies local files or directories recursively into the disk "
32089 "image, placing them in the directory called C</remotedir> (which must "
32090 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
32091 "other commands as necessary."
32092 msgstr ""
32093
32094 # type: textblock
32095 #. type: textblock
32096 #: ../fish/guestfish-commands.pod:26
32097 msgid ""
32098 "Multiple local files and directories can be specified, but the last "
32099 "parameter must always be a remote directory.  Wildcards cannot be used."
32100 msgstr ""
32101
32102 # type: =head2
32103 #. type: =head2
32104 #: ../fish/guestfish-commands.pod:30
32105 msgid "copy-out"
32106 msgstr ""
32107
32108 # type: verbatim
32109 #. type: verbatim
32110 #: ../fish/guestfish-commands.pod:32
32111 #, no-wrap
32112 msgid ""
32113 " copy-out remote [remote ...] localdir\n"
32114 "\n"
32115 msgstr ""
32116
32117 # type: textblock
32118 #. type: textblock
32119 #: ../fish/guestfish-commands.pod:34
32120 msgid ""
32121 "C<copy-out> copies remote files or directories recursively out of the disk "
32122 "image, placing them on the host disk in a local directory called C<localdir> "
32123 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
32124 "download>, L</tar-out> and other commands as necessary."
32125 msgstr ""
32126
32127 # type: textblock
32128 #. type: textblock
32129 #: ../fish/guestfish-commands.pod:40
32130 msgid ""
32131 "Multiple remote files and directories can be specified, but the last "
32132 "parameter must always be a local directory.  To download to the current "
32133 "directory, use C<.> as in:"
32134 msgstr ""
32135
32136 # type: verbatim
32137 #. type: verbatim
32138 #: ../fish/guestfish-commands.pod:44
32139 #, no-wrap
32140 msgid ""
32141 " copy-out /home .\n"
32142 "\n"
32143 msgstr ""
32144
32145 # type: textblock
32146 #. type: textblock
32147 #: ../fish/guestfish-commands.pod:46
32148 msgid ""
32149 "Wildcards cannot be used in the ordinary command, but you can use them with "
32150 "the help of L</glob> like this:"
32151 msgstr ""
32152
32153 # type: verbatim
32154 #. type: verbatim
32155 #: ../fish/guestfish-commands.pod:49
32156 #, no-wrap
32157 msgid ""
32158 " glob copy-out /home/* .\n"
32159 "\n"
32160 msgstr ""
32161
32162 #. type: =head2
32163 #: ../fish/guestfish-commands.pod:51
32164 msgid "display"
32165 msgstr ""
32166
32167 #. type: verbatim
32168 #: ../fish/guestfish-commands.pod:53
32169 #, no-wrap
32170 msgid ""
32171 " display filename\n"
32172 "\n"
32173 msgstr ""
32174
32175 #. type: textblock
32176 #: ../fish/guestfish-commands.pod:55
32177 msgid ""
32178 "Use C<display> (a graphical display program) to display an image file.  It "
32179 "downloads the file, and runs C<display> on it."
32180 msgstr ""
32181
32182 #. type: textblock
32183 #: ../fish/guestfish-commands.pod:58
32184 msgid ""
32185 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
32186 "environment variable.  For example to use the GNOME display program:"
32187 msgstr ""
32188
32189 #. type: verbatim
32190 #: ../fish/guestfish-commands.pod:61
32191 #, no-wrap
32192 msgid ""
32193 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
32194 "\n"
32195 msgstr ""
32196
32197 #. type: textblock
32198 #: ../fish/guestfish-commands.pod:63
32199 msgid "See also L<display(1)>."
32200 msgstr ""
32201
32202 # type: =head2
32203 #. type: =head2
32204 #: ../fish/guestfish-commands.pod:65
32205 msgid "echo"
32206 msgstr ""
32207
32208 # type: verbatim
32209 #. type: verbatim
32210 #: ../fish/guestfish-commands.pod:67
32211 #, no-wrap
32212 msgid ""
32213 " echo [params ...]\n"
32214 "\n"
32215 msgstr ""
32216
32217 # type: textblock
32218 #. type: textblock
32219 #: ../fish/guestfish-commands.pod:69
32220 msgid "This echos the parameters to the terminal."
32221 msgstr ""
32222
32223 # type: =head2
32224 #. type: =head2
32225 #: ../fish/guestfish-commands.pod:71
32226 msgid "edit"
32227 msgstr ""
32228
32229 # type: =head2
32230 #. type: =head2
32231 #: ../fish/guestfish-commands.pod:73
32232 msgid "vi"
32233 msgstr ""
32234
32235 # type: =head2
32236 #. type: =head2
32237 #: ../fish/guestfish-commands.pod:75
32238 msgid "emacs"
32239 msgstr ""
32240
32241 # type: verbatim
32242 #. type: verbatim
32243 #: ../fish/guestfish-commands.pod:77
32244 #, no-wrap
32245 msgid ""
32246 " edit filename\n"
32247 "\n"
32248 msgstr ""
32249
32250 # type: textblock
32251 #. type: textblock
32252 #: ../fish/guestfish-commands.pod:79
32253 msgid ""
32254 "This is used to edit a file.  It downloads the file, edits it locally using "
32255 "your editor, then uploads the result."
32256 msgstr ""
32257
32258 # type: textblock
32259 #. type: textblock
32260 #: ../fish/guestfish-commands.pod:82
32261 msgid ""
32262 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
32263 "or C<emacs> you will get those corresponding editors."
32264 msgstr ""
32265
32266 # type: =head2
32267 #. type: =head2
32268 #: ../fish/guestfish-commands.pod:86
32269 msgid "glob"
32270 msgstr ""
32271
32272 # type: verbatim
32273 #. type: verbatim
32274 #: ../fish/guestfish-commands.pod:88
32275 #, no-wrap
32276 msgid ""
32277 " glob command args...\n"
32278 "\n"
32279 msgstr ""
32280
32281 # type: textblock
32282 #. type: textblock
32283 #: ../fish/guestfish-commands.pod:90
32284 msgid ""
32285 "Expand wildcards in any paths in the args list, and run C<command> "
32286 "repeatedly on each matching path."
32287 msgstr ""
32288
32289 # type: textblock
32290 #. type: textblock
32291 #: ../fish/guestfish-commands.pod:93
32292 msgid "See L</WILDCARDS AND GLOBBING>."
32293 msgstr ""
32294
32295 # type: =head2
32296 #. type: =head2
32297 #: ../fish/guestfish-commands.pod:95
32298 msgid "hexedit"
32299 msgstr ""
32300
32301 # type: verbatim
32302 #. type: verbatim
32303 #: ../fish/guestfish-commands.pod:97
32304 #, no-wrap
32305 msgid ""
32306 " hexedit <filename|device>\n"
32307 " hexedit <filename|device> <max>\n"
32308 " hexedit <filename|device> <start> <max>\n"
32309 "\n"
32310 msgstr ""
32311
32312 # type: textblock
32313 #. type: textblock
32314 #: ../fish/guestfish-commands.pod:101
32315 msgid ""
32316 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
32317 "device."
32318 msgstr ""
32319
32320 # type: textblock
32321 #. type: textblock
32322 #: ../fish/guestfish-commands.pod:104
32323 msgid ""
32324 "This command works by downloading potentially the whole file or device, "
32325 "editing it locally, then uploading it.  If the file or device is large, you "
32326 "have to specify which part you wish to edit by using C<max> and/or C<start> "
32327 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
32328 "usual modifiers allowed such as C<1M> (1 megabyte)."
32329 msgstr ""
32330
32331 # type: textblock
32332 #. type: textblock
32333 #: ../fish/guestfish-commands.pod:111
32334 msgid "For example to edit the first few sectors of a disk you might do:"
32335 msgstr ""
32336
32337 # type: verbatim
32338 #. type: verbatim
32339 #: ../fish/guestfish-commands.pod:114
32340 #, no-wrap
32341 msgid ""
32342 " hexedit /dev/sda 1M\n"
32343 "\n"
32344 msgstr ""
32345
32346 # type: textblock
32347 #. type: textblock
32348 #: ../fish/guestfish-commands.pod:116
32349 msgid ""
32350 "which would allow you to edit anywhere within the first megabyte of the disk."
32351 msgstr ""
32352
32353 # type: textblock
32354 #. type: textblock
32355 #: ../fish/guestfish-commands.pod:119
32356 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
32357 msgstr ""
32358
32359 # type: verbatim
32360 #. type: verbatim
32361 #: ../fish/guestfish-commands.pod:121
32362 #, no-wrap
32363 msgid ""
32364 " hexedit /dev/sda1 0x400 0x400\n"
32365 "\n"
32366 msgstr ""
32367
32368 # type: textblock
32369 #. type: textblock
32370 #: ../fish/guestfish-commands.pod:123
32371 msgid "(assuming the superblock is in the standard location)."
32372 msgstr ""
32373
32374 # type: textblock
32375 #. type: textblock
32376 #: ../fish/guestfish-commands.pod:125
32377 msgid ""
32378 "This command requires the external L<hexedit(1)> program.  You can specify "
32379 "another program to use by setting the C<HEXEDITOR> environment variable."
32380 msgstr ""
32381
32382 # type: textblock
32383 #. type: textblock
32384 #: ../fish/guestfish-commands.pod:129
32385 msgid "See also L</hexdump>."
32386 msgstr ""
32387
32388 # type: =head2
32389 #. type: =head2
32390 #: ../fish/guestfish-commands.pod:131
32391 msgid "lcd"
32392 msgstr ""
32393
32394 # type: verbatim
32395 #. type: verbatim
32396 #: ../fish/guestfish-commands.pod:133
32397 #, no-wrap
32398 msgid ""
32399 " lcd directory\n"
32400 "\n"
32401 msgstr ""
32402
32403 # type: textblock
32404 #. type: textblock
32405 #: ../fish/guestfish-commands.pod:135
32406 msgid ""
32407 "Change the local directory, ie. the current directory of guestfish itself."
32408 msgstr ""
32409
32410 # type: textblock
32411 #. type: textblock
32412 #: ../fish/guestfish-commands.pod:138
32413 msgid "Note that C<!cd> won't do what you might expect."
32414 msgstr ""
32415
32416 # type: =head2
32417 #. type: =head2
32418 #: ../fish/guestfish-commands.pod:140
32419 msgid "man"
32420 msgstr ""
32421
32422 # type: =head2
32423 #. type: =head2
32424 #: ../fish/guestfish-commands.pod:142
32425 msgid "manual"
32426 msgstr ""
32427
32428 # type: verbatim
32429 #. type: verbatim
32430 #: ../fish/guestfish-commands.pod:144
32431 #, no-wrap
32432 msgid ""
32433 "  man\n"
32434 "\n"
32435 msgstr ""
32436
32437 # type: textblock
32438 #. type: textblock
32439 #: ../fish/guestfish-commands.pod:146
32440 msgid "Opens the manual page for guestfish."
32441 msgstr ""
32442
32443 # type: =head2
32444 #. type: =head2
32445 #: ../fish/guestfish-commands.pod:148
32446 msgid "more"
32447 msgstr ""
32448
32449 # type: =head2
32450 #. type: =head2
32451 #: ../fish/guestfish-commands.pod:150
32452 msgid "less"
32453 msgstr ""
32454
32455 # type: verbatim
32456 #. type: verbatim
32457 #: ../fish/guestfish-commands.pod:152
32458 #, no-wrap
32459 msgid ""
32460 " more filename\n"
32461 "\n"
32462 msgstr ""
32463
32464 # type: verbatim
32465 #. type: verbatim
32466 #: ../fish/guestfish-commands.pod:154
32467 #, no-wrap
32468 msgid ""
32469 " less filename\n"
32470 "\n"
32471 msgstr ""
32472
32473 # type: textblock
32474 #. type: textblock
32475 #: ../fish/guestfish-commands.pod:156
32476 msgid "This is used to view a file."
32477 msgstr ""
32478
32479 # type: textblock
32480 #. type: textblock
32481 #: ../fish/guestfish-commands.pod:158
32482 msgid ""
32483 "The default viewer is C<$PAGER>.  However if you use the alternate command "
32484 "C<less> you will get the C<less> command specifically."
32485 msgstr ""
32486
32487 # type: =head2
32488 #. type: =head2
32489 #: ../fish/guestfish-commands.pod:161
32490 msgid "reopen"
32491 msgstr ""
32492
32493 # type: verbatim
32494 #. type: verbatim
32495 #: ../fish/guestfish-commands.pod:163
32496 #, no-wrap
32497 msgid ""
32498 "  reopen\n"
32499 "\n"
32500 msgstr ""
32501
32502 # type: textblock
32503 #. type: textblock
32504 #: ../fish/guestfish-commands.pod:165
32505 msgid ""
32506 "Close and reopen the libguestfs handle.  It is not necessary to use this "
32507 "normally, because the handle is closed properly when guestfish exits.  "
32508 "However this is occasionally useful for testing."
32509 msgstr ""
32510
32511 # type: =head2
32512 #. type: =head2
32513 #: ../fish/guestfish-commands.pod:169
32514 msgid "sparse"
32515 msgstr ""
32516
32517 # type: verbatim
32518 #. type: verbatim
32519 #: ../fish/guestfish-commands.pod:171
32520 #, no-wrap
32521 msgid ""
32522 " sparse filename size\n"
32523 "\n"
32524 msgstr ""
32525
32526 # type: textblock
32527 #. type: textblock
32528 #: ../fish/guestfish-commands.pod:173
32529 msgid ""
32530 "This creates an empty sparse file of the given size, and then adds so it can "
32531 "be further examined."
32532 msgstr ""
32533
32534 # type: textblock
32535 #. type: textblock
32536 #: ../fish/guestfish-commands.pod:176
32537 msgid ""
32538 "In all respects it works the same as the L</alloc> command, except that the "
32539 "image file is allocated sparsely, which means that disk blocks are not "
32540 "assigned to the file until they are needed.  Sparse disk files only use "
32541 "space when written to, but they are slower and there is a danger you could "
32542 "run out of real disk space during a write operation."
32543 msgstr ""
32544
32545 # type: =head2
32546 #. type: =head2
32547 #: ../fish/guestfish-commands.pod:186
32548 msgid "supported"
32549 msgstr ""
32550
32551 # type: verbatim
32552 #. type: verbatim
32553 #: ../fish/guestfish-commands.pod:188
32554 #, no-wrap
32555 msgid ""
32556 " supported\n"
32557 "\n"
32558 msgstr ""
32559
32560 # type: textblock
32561 #. type: textblock
32562 #: ../fish/guestfish-commands.pod:190
32563 msgid ""
32564 "This command returns a list of the optional groups known to the daemon, and "
32565 "indicates which ones are supported by this build of the libguestfs appliance."
32566 msgstr ""
32567
32568 # type: textblock
32569 #. type: textblock
32570 #: ../fish/guestfish-commands.pod:194
32571 msgid "See also L<guestfs(3)/AVAILABILITY>."
32572 msgstr ""
32573
32574 # type: =head2
32575 #. type: =head2
32576 #: ../fish/guestfish-commands.pod:196
32577 msgid "time"
32578 msgstr ""
32579
32580 # type: verbatim
32581 #. type: verbatim
32582 #: ../fish/guestfish-commands.pod:198
32583 #, no-wrap
32584 msgid ""
32585 " time command args...\n"
32586 "\n"
32587 msgstr ""
32588
32589 # type: textblock
32590 #. type: textblock
32591 #: ../fish/guestfish-commands.pod:200
32592 msgid ""
32593 "Run the command as usual, but print the elapsed time afterwards.  This can "
32594 "be useful for benchmarking operations."
32595 msgstr ""
32596
32597 # type: textblock
32598 #. type: textblock
32599 #: ../test-tool/libguestfs-test-tool.pod:5
32600 msgid "libguestfs-test-tool - End user tests for libguestfs"
32601 msgstr ""
32602
32603 # type: verbatim
32604 #. type: verbatim
32605 #: ../test-tool/libguestfs-test-tool.pod:9
32606 #, no-wrap
32607 msgid ""
32608 " libguestfs-test-tool [--options]\n"
32609 "\n"
32610 msgstr ""
32611
32612 # type: textblock
32613 #. type: textblock
32614 #: ../test-tool/libguestfs-test-tool.pod:13
32615 msgid ""
32616 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
32617 "and developers, to allow them to check basic libguestfs functionality is "
32618 "working.  This is needed because libguestfs occasionally breaks for reasons "
32619 "beyond our control: usually because of changes in the underlying qemu or "
32620 "kernel packages, or the host environment."
32621 msgstr ""
32622
32623 # type: textblock
32624 #. type: textblock
32625 #: ../test-tool/libguestfs-test-tool.pod:20
32626 msgid "If you suspect a problem in libguestfs, then just run:"
32627 msgstr ""
32628
32629 # type: verbatim
32630 #. type: verbatim
32631 #: ../test-tool/libguestfs-test-tool.pod:22
32632 #, no-wrap
32633 msgid ""
32634 " libguestfs-test-tool\n"
32635 "\n"
32636 msgstr ""
32637
32638 # type: textblock
32639 #. type: textblock
32640 #: ../test-tool/libguestfs-test-tool.pod:24
32641 msgid "It will print lots of diagnostic messages."
32642 msgstr ""
32643
32644 # type: textblock
32645 #. type: textblock
32646 #: ../test-tool/libguestfs-test-tool.pod:26
32647 msgid "If it runs to completion successfully, you will see this near the end:"
32648 msgstr ""
32649
32650 # type: verbatim
32651 #. type: verbatim
32652 #: ../test-tool/libguestfs-test-tool.pod:28
32653 #, no-wrap
32654 msgid ""
32655 " ===== TEST FINISHED OK =====\n"
32656 "\n"
32657 msgstr ""
32658
32659 # type: textblock
32660 #. type: textblock
32661 #: ../test-tool/libguestfs-test-tool.pod:30
32662 msgid "and the test tool will exit with code 0."
32663 msgstr ""
32664
32665 # type: textblock
32666 #. type: textblock
32667 #: ../test-tool/libguestfs-test-tool.pod:32
32668 msgid ""
32669 "If it fails (and/or exits with non-zero error code), please paste the "
32670 "B<complete, unedited> output of the test tool into a bug report.  More "
32671 "information about reporting bugs can be found on the L<http://libguestfs.org/"
32672 "> website."
32673 msgstr ""
32674
32675 # type: =item
32676 #. type: =item
32677 #: ../test-tool/libguestfs-test-tool.pod:41
32678 msgid "I<--help>"
32679 msgstr ""
32680
32681 # type: textblock
32682 #. type: textblock
32683 #: ../test-tool/libguestfs-test-tool.pod:43
32684 msgid "Display short usage information and exit."
32685 msgstr ""
32686
32687 # type: =item
32688 #. type: =item
32689 #: ../test-tool/libguestfs-test-tool.pod:45
32690 msgid "I<--qemu qemu_binary>"
32691 msgstr ""
32692
32693 # type: textblock
32694 #. type: textblock
32695 #: ../test-tool/libguestfs-test-tool.pod:47
32696 msgid ""
32697 "If you have downloaded another qemu binary, point this option at the full "
32698 "path of the binary to try it."
32699 msgstr ""
32700
32701 # type: =item
32702 #. type: =item
32703 #: ../test-tool/libguestfs-test-tool.pod:50
32704 msgid "I<--qemudir qemu_source_dir>"
32705 msgstr ""
32706
32707 # type: textblock
32708 #. type: textblock
32709 #: ../test-tool/libguestfs-test-tool.pod:52
32710 msgid ""
32711 "If you have compiled qemu from source, point this option at the source "
32712 "directory to try it."
32713 msgstr ""
32714
32715 # type: =item
32716 #. type: =item
32717 #: ../test-tool/libguestfs-test-tool.pod:55
32718 msgid "I<--timeout N>"
32719 msgstr ""
32720
32721 # type: textblock
32722 #. type: textblock
32723 #: ../test-tool/libguestfs-test-tool.pod:57
32724 msgid ""
32725 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
32726 "does not usually need to be adjusted unless your machine is very slow."
32727 msgstr ""
32728
32729 # type: =head1
32730 #. type: =head1
32731 #: ../test-tool/libguestfs-test-tool.pod:63
32732 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
32733 msgstr ""
32734
32735 # type: textblock
32736 #. type: textblock
32737 #: ../test-tool/libguestfs-test-tool.pod:65
32738 msgid ""
32739 "If you have compiled another version of qemu from source and would like to "
32740 "try that, then you can use the I<--qemudir> option to point to the qemu "
32741 "source directory."
32742 msgstr ""
32743
32744 # type: textblock
32745 #. type: textblock
32746 #: ../test-tool/libguestfs-test-tool.pod:69
32747 msgid ""
32748 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
32749 "option to point to the binary."
32750 msgstr ""
32751
32752 # type: textblock
32753 #. type: textblock
32754 #: ../test-tool/libguestfs-test-tool.pod:72
32755 msgid ""
32756 "When using an alternate qemu with libguestfs, usually you would need to "
32757 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
32758 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
32759 "use either of the I<--qemudir> or I<--qemu> options."
32760 msgstr ""
32761
32762 # type: textblock
32763 #. type: textblock
32764 #: ../test-tool/libguestfs-test-tool.pod:79
32765 msgid ""
32766 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
32767 "I<1> if there was an error."
32768 msgstr ""
32769
32770 # type: textblock
32771 #. type: textblock
32772 #: ../test-tool/libguestfs-test-tool.pod:84
32773 msgid ""
32774 "For the full list of environment variables which may affect libguestfs, "
32775 "please see the L<guestfs(3)> manual page."
32776 msgstr ""
32777
32778 # type: textblock
32779 #. type: textblock
32780 #: ../test-tool/libguestfs-test-tool.pod:89
32781 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
32782 msgstr ""
32783
32784 # type: textblock
32785 #. type: textblock
32786 #: ../fuse/guestmount.pod:5
32787 msgid ""
32788 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
32789 msgstr ""
32790
32791 # type: verbatim
32792 #. type: verbatim
32793 #: ../fuse/guestmount.pod:9
32794 #, no-wrap
32795 msgid ""
32796 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
32797 "\n"
32798 msgstr ""
32799
32800 # type: verbatim
32801 #. type: verbatim
32802 #: ../fuse/guestmount.pod:11
32803 #, no-wrap
32804 msgid ""
32805 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
32806 "\n"
32807 msgstr ""
32808
32809 # type: verbatim
32810 #. type: verbatim
32811 #: ../fuse/guestmount.pod:13
32812 #, no-wrap
32813 msgid ""
32814 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
32815 "\n"
32816 msgstr ""
32817
32818 # type: textblock
32819 #. type: textblock
32820 #: ../fuse/guestmount.pod:17
32821 msgid ""
32822 "You must I<not> use C<guestmount> in read-write mode on live virtual "
32823 "machines.  If you do this, you risk disk corruption in the VM."
32824 msgstr ""
32825
32826 # type: textblock
32827 #. type: textblock
32828 #: ../fuse/guestmount.pod:22
32829 msgid ""
32830 "The guestmount program can be used to mount virtual machine filesystems and "
32831 "other disk images on the host.  It uses libguestfs for access to the guest "
32832 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
32833 "a mountable device."
32834 msgstr ""
32835
32836 # type: textblock
32837 #. type: textblock
32838 #: ../fuse/guestmount.pod:27
32839 msgid ""
32840 "Along with other options, you have to give at least one device (I<-a> "
32841 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
32842 "option) or use the I<-i> inspection option.  How this works is better "
32843 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
32844 "below."
32845 msgstr ""
32846
32847 # type: textblock
32848 #. type: textblock
32849 #: ../fuse/guestmount.pod:33
32850 msgid ""
32851 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
32852 "by you, and the filesystem will not be visible to any other users unless you "
32853 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
32854 "the filesystem, use the C<fusermount -u> command."
32855 msgstr ""
32856
32857 # type: textblock
32858 #. type: textblock
32859 #: ../fuse/guestmount.pod:41
32860 msgid ""
32861 "For a typical Windows guest which has its main filesystem on the first "
32862 "partition:"
32863 msgstr ""
32864
32865 # type: verbatim
32866 #. type: verbatim
32867 #: ../fuse/guestmount.pod:44
32868 #, no-wrap
32869 msgid ""
32870 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
32871 "\n"
32872 msgstr ""
32873
32874 # type: textblock
32875 #. type: textblock
32876 #: ../fuse/guestmount.pod:46
32877 msgid ""
32878 "For a typical Linux guest which has a /boot filesystem on the first "
32879 "partition, and the root filesystem on a logical volume:"
32880 msgstr ""
32881
32882 # type: verbatim
32883 #. type: verbatim
32884 #: ../fuse/guestmount.pod:49
32885 #, no-wrap
32886 msgid ""
32887 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
32888 "\n"
32889 msgstr ""
32890
32891 # type: textblock
32892 #. type: textblock
32893 #: ../fuse/guestmount.pod:51
32894 msgid "To get libguestfs to detect guest mountpoints for you:"
32895 msgstr ""
32896
32897 # type: verbatim
32898 #. type: verbatim
32899 #: ../fuse/guestmount.pod:53
32900 #, no-wrap
32901 msgid ""
32902 " guestmount -a guest.img -i --ro /mnt\n"
32903 "\n"
32904 msgstr ""
32905
32906 # type: textblock
32907 #. type: textblock
32908 #: ../fuse/guestmount.pod:55
32909 msgid "For a libvirt guest called \"Guest\" you could do:"
32910 msgstr ""
32911
32912 # type: verbatim
32913 #. type: verbatim
32914 #: ../fuse/guestmount.pod:57
32915 #, no-wrap
32916 msgid ""
32917 " guestmount -d Guest -i --ro /mnt\n"
32918 "\n"
32919 msgstr ""
32920
32921 # type: textblock
32922 #. type: textblock
32923 #: ../fuse/guestmount.pod:59
32924 msgid ""
32925 "If you don't know what filesystems are contained in a guest or disk image, "
32926 "use L<virt-filesystems(1)> first:"
32927 msgstr ""
32928
32929 # type: verbatim
32930 #. type: verbatim
32931 #: ../fuse/guestmount.pod:62
32932 #, no-wrap
32933 msgid ""
32934 " virt-filesystems MyGuest\n"
32935 "\n"
32936 msgstr ""
32937
32938 # type: textblock
32939 #. type: textblock
32940 #: ../fuse/guestmount.pod:64
32941 msgid ""
32942 "If you want to trace the libguestfs calls but without excessive debugging "
32943 "information, we recommend:"
32944 msgstr ""
32945
32946 # type: verbatim
32947 #. type: verbatim
32948 #: ../fuse/guestmount.pod:67
32949 #, no-wrap
32950 msgid ""
32951 " guestmount [...] --trace /mnt\n"
32952 "\n"
32953 msgstr ""
32954
32955 # type: textblock
32956 #. type: textblock
32957 #: ../fuse/guestmount.pod:69
32958 msgid "If you want to debug the program, we recommend:"
32959 msgstr ""
32960
32961 # type: verbatim
32962 #. type: verbatim
32963 #: ../fuse/guestmount.pod:71
32964 #, no-wrap
32965 msgid ""
32966 " guestmount [...] --trace --verbose /mnt\n"
32967 "\n"
32968 msgstr ""
32969
32970 #. type: =head1
32971 #: ../fuse/guestmount.pod:73
32972 msgid "NOTES"
32973 msgstr ""
32974
32975 #. type: =head2
32976 #: ../fuse/guestmount.pod:75
32977 msgid "Other users cannot see the filesystem by default"
32978 msgstr ""
32979
32980 #. type: textblock
32981 #: ../fuse/guestmount.pod:77
32982 msgid ""
32983 "If you mount a filesystem as one user (eg. root), then other users will not "
32984 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
32985 "option when mounting:"
32986 msgstr ""
32987
32988 #. type: verbatim
32989 #: ../fuse/guestmount.pod:81
32990 #, no-wrap
32991 msgid ""
32992 " sudo guestmount [...] -o allow_other /mnt\n"
32993 "\n"
32994 msgstr ""
32995
32996 # type: =item
32997 #. type: =item
32998 #: ../fuse/guestmount.pod:87
32999 msgid "B<-a image> | B<--add image>"
33000 msgstr ""
33001
33002 # type: textblock
33003 #. type: textblock
33004 #: ../fuse/guestmount.pod:89
33005 msgid "Add a block device or virtual machine image."
33006 msgstr ""
33007
33008 # type: =item
33009 #. type: =item
33010 #: ../fuse/guestmount.pod:94
33011 msgid "B<-c URI> | B<--connect URI>"
33012 msgstr ""
33013
33014 # type: =item
33015 #. type: =item
33016 #: ../fuse/guestmount.pod:100
33017 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
33018 msgstr ""
33019
33020 # type: =item
33021 #. type: =item
33022 #: ../fuse/guestmount.pod:108
33023 msgid "B<--dir-cache-timeout N>"
33024 msgstr ""
33025
33026 # type: textblock
33027 #. type: textblock
33028 #: ../fuse/guestmount.pod:110
33029 msgid ""
33030 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
33031 "seconds.  The readdir cache [actually, there are several semi-independent "
33032 "caches] is populated after a readdir(2) call with the stat and extended "
33033 "attributes of the files in the directory, in anticipation that they will be "
33034 "requested soon after."
33035 msgstr ""
33036
33037 # type: textblock
33038 #. type: textblock
33039 #: ../fuse/guestmount.pod:116
33040 msgid ""
33041 "There is also a different attribute cache implemented by FUSE (see the FUSE "
33042 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
33043 "requests, only cache existing ones."
33044 msgstr ""
33045
33046 # type: =item
33047 #. type: =item
33048 #: ../fuse/guestmount.pod:127
33049 msgid "B<--format=raw|qcow2|..> | B<--format>"
33050 msgstr ""
33051
33052 # type: textblock
33053 #. type: textblock
33054 #: ../fuse/guestmount.pod:134
33055 msgid ""
33056 "If you have untrusted raw-format guest disk images, you should use this "
33057 "option to specify the disk format.  This avoids a possible security problem "
33058 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
33059 "guestfs_add_drive_opts>."
33060 msgstr ""
33061
33062 # type: =item
33063 #. type: =item
33064 #: ../fuse/guestmount.pod:139
33065 msgid "B<--fuse-help>"
33066 msgstr ""
33067
33068 # type: textblock
33069 #. type: textblock
33070 #: ../fuse/guestmount.pod:141
33071 msgid "Display help on special FUSE options (see I<-o> below)."
33072 msgstr ""
33073
33074 # type: textblock
33075 #. type: textblock
33076 #: ../fuse/guestmount.pod:145
33077 msgid "Display brief help and exit."
33078 msgstr ""
33079
33080 # type: =item
33081 #. type: =item
33082 #: ../fuse/guestmount.pod:147
33083 msgid "B<-i> | B<--inspector>"
33084 msgstr ""
33085
33086 # type: textblock
33087 #. type: textblock
33088 #: ../fuse/guestmount.pod:167
33089 msgid ""
33090 "Mount the named partition or logical volume on the given mountpoint B<in the "
33091 "guest> (this has nothing to do with mountpoints in the host)."
33092 msgstr ""
33093
33094 # type: textblock
33095 #. type: textblock
33096 #: ../fuse/guestmount.pod:170
33097 msgid ""
33098 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
33099 "something on C</>."
33100 msgstr ""
33101
33102 # type: =item
33103 #. type: =item
33104 #: ../fuse/guestmount.pod:183
33105 msgid "B<-n> | B<--no-sync>"
33106 msgstr ""
33107
33108 # type: textblock
33109 #. type: textblock
33110 #: ../fuse/guestmount.pod:185
33111 msgid ""
33112 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
33113 "unmounted.  If you specify this option, then we don't attempt to sync the "
33114 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
33115 msgstr ""
33116
33117 # type: =item
33118 #. type: =item
33119 #: ../fuse/guestmount.pod:190
33120 msgid "B<-o option> | B<--option option>"
33121 msgstr ""
33122
33123 # type: textblock
33124 #. type: textblock
33125 #: ../fuse/guestmount.pod:192
33126 msgid "Pass extra options to FUSE."
33127 msgstr ""
33128
33129 # type: textblock
33130 #. type: textblock
33131 #: ../fuse/guestmount.pod:194
33132 msgid ""
33133 "To get a list of all the extra options supported by FUSE, use the command "
33134 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
33135 "of them are a good idea."
33136 msgstr ""
33137
33138 # type: verbatim
33139 #. type: verbatim
33140 #: ../fuse/guestmount.pod:198
33141 #, no-wrap
33142 msgid ""
33143 " guestmount --fuse-help\n"
33144 "\n"
33145 msgstr ""
33146
33147 # type: textblock
33148 #. type: textblock
33149 #: ../fuse/guestmount.pod:200
33150 msgid "Some potentially useful FUSE options:"
33151 msgstr ""
33152
33153 # type: =item
33154 #. type: =item
33155 #: ../fuse/guestmount.pod:204
33156 msgid "B<-o allow_other>"
33157 msgstr ""
33158
33159 # type: textblock
33160 #. type: textblock
33161 #: ../fuse/guestmount.pod:206
33162 msgid "Allow other users to see the filesystem."
33163 msgstr ""
33164
33165 # type: =item
33166 #. type: =item
33167 #: ../fuse/guestmount.pod:208
33168 msgid "B<-o attr_timeout=N>"
33169 msgstr ""
33170
33171 # type: textblock
33172 #. type: textblock
33173 #: ../fuse/guestmount.pod:210
33174 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
33175 msgstr ""
33176
33177 # type: =item
33178 #. type: =item
33179 #: ../fuse/guestmount.pod:212
33180 msgid "B<-o kernel_cache>"
33181 msgstr ""
33182
33183 # type: textblock
33184 #. type: textblock
33185 #: ../fuse/guestmount.pod:214
33186 msgid ""
33187 "Allow the kernel to cache files (reduces the number of reads that have to go "
33188 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
33189 "afford the extra memory usage."
33190 msgstr ""
33191
33192 # type: =item
33193 #. type: =item
33194 #: ../fuse/guestmount.pod:218
33195 msgid "B<-o uid=N> B<-o gid=N>"
33196 msgstr ""
33197
33198 # type: textblock
33199 #. type: textblock
33200 #: ../fuse/guestmount.pod:220
33201 msgid ""
33202 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
33203 "the chosen values."
33204 msgstr ""
33205
33206 # type: =item
33207 #. type: =item
33208 #: ../fuse/guestmount.pod:225
33209 msgid "B<-r> | B<--ro>"
33210 msgstr ""
33211
33212 # type: textblock
33213 #. type: textblock
33214 #: ../fuse/guestmount.pod:227
33215 msgid ""
33216 "Add devices and mount everything read-only.  Also disallow writes and make "
33217 "the disk appear read-only to FUSE."
33218 msgstr ""
33219
33220 # type: textblock
33221 #. type: textblock
33222 #: ../fuse/guestmount.pod:230
33223 msgid ""
33224 "This is highly recommended if you are not going to edit the guest disk.  If "
33225 "the guest is running and this option is I<not> supplied, then there is a "
33226 "strong risk of disk corruption in the guest.  We try to prevent this from "
33227 "happening, but it is not always possible."
33228 msgstr ""
33229
33230 # type: textblock
33231 #. type: textblock
33232 #: ../fuse/guestmount.pod:235
33233 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
33234 msgstr ""
33235
33236 # type: textblock
33237 #. type: textblock
33238 #: ../fuse/guestmount.pod:239
33239 msgid "Enable SELinux support for the guest."
33240 msgstr ""
33241
33242 # type: =item
33243 #. type: =item
33244 #: ../fuse/guestmount.pod:241
33245 msgid "B<-v> | B<--verbose>"
33246 msgstr ""
33247
33248 # type: textblock
33249 #. type: textblock
33250 #: ../fuse/guestmount.pod:243
33251 msgid "Enable verbose messages from underlying libguestfs."
33252 msgstr ""
33253
33254 # type: =item
33255 #. type: =item
33256 #: ../fuse/guestmount.pod:245
33257 msgid "B<-V> | B<--version>"
33258 msgstr ""
33259
33260 # type: textblock
33261 #. type: textblock
33262 #: ../fuse/guestmount.pod:247
33263 msgid "Display the program version and exit."
33264 msgstr ""
33265
33266 # type: =item
33267 #. type: =item
33268 #: ../fuse/guestmount.pod:249
33269 msgid "B<-w> | B<--rw>"
33270 msgstr ""
33271
33272 #. type: textblock
33273 #: ../fuse/guestmount.pod:254 ../fuse/guestmount.pod:275
33274 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
33275 msgstr ""
33276
33277 # type: =item
33278 #. type: =item
33279 #: ../fuse/guestmount.pod:256
33280 msgid "B<-x> | B<--trace>"
33281 msgstr ""
33282
33283 # type: textblock
33284 #. type: textblock
33285 #: ../fuse/guestmount.pod:258
33286 msgid "Trace libguestfs calls and entry into each FUSE function."
33287 msgstr ""
33288
33289 # type: textblock
33290 #. type: textblock
33291 #: ../fuse/guestmount.pod:260
33292 msgid "This also stops the daemon from forking into the background."
33293 msgstr ""
33294
33295 # type: textblock
33296 #. type: textblock
33297 #: ../fuse/guestmount.pod:281
33298 msgid ""
33299 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
33300 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
33301 "net/>."
33302 msgstr ""
33303
33304 # type: textblock
33305 #. type: textblock
33306 #: ../fuse/guestmount.pod:296
33307 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
33308 msgstr ""
33309
33310 # type: textblock
33311 #. type: textblock
33312 #: ../tools/virt-win-reg.pl:37
33313 msgid ""
33314 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
33315 msgstr ""
33316
33317 # type: verbatim
33318 #. type: verbatim
33319 #: ../tools/virt-win-reg.pl:41
33320 #, no-wrap
33321 msgid ""
33322 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
33323 "\n"
33324 msgstr ""
33325
33326 # type: verbatim
33327 #. type: verbatim
33328 #: ../tools/virt-win-reg.pl:43
33329 #, no-wrap
33330 msgid ""
33331 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
33332 "\n"
33333 msgstr ""
33334
33335 # type: verbatim
33336 #. type: verbatim
33337 #: ../tools/virt-win-reg.pl:45
33338 #, no-wrap
33339 msgid ""
33340 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
33341 "\n"
33342 msgstr ""
33343
33344 # type: verbatim
33345 #. type: verbatim
33346 #: ../tools/virt-win-reg.pl:47
33347 #, no-wrap
33348 msgid ""
33349 " virt-win-reg --merge domname [input.reg ...]\n"
33350 "\n"
33351 msgstr ""
33352
33353 # type: verbatim
33354 #. type: verbatim
33355 #: ../tools/virt-win-reg.pl:49
33356 #, no-wrap
33357 msgid ""
33358 " virt-win-reg [--options] disk.img ... # instead of domname\n"
33359 "\n"
33360 msgstr ""
33361
33362 #. type: textblock
33363 #: ../tools/virt-win-reg.pl:53
33364 msgid ""
33365 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
33366 "virtual machines.  If you do this, you I<will> get irreversible disk "
33367 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
33368 "but doesn't catch all cases."
33369 msgstr ""
33370
33371 #. type: textblock
33372 #: ../tools/virt-win-reg.pl:58
33373 msgid ""
33374 "Modifying the Windows Registry is an inherently risky operation.  The format "
33375 "is deliberately obscure and undocumented, and Registry changes can leave the "
33376 "system unbootable.  Therefore when using the I<--merge> option, make sure "
33377 "you have a reliable backup first."
33378 msgstr ""
33379
33380 # type: textblock
33381 #. type: textblock
33382 #: ../tools/virt-win-reg.pl:65
33383 msgid ""
33384 "This program can export and merge Windows Registry entries from a Windows "
33385 "guest."
33386 msgstr ""
33387
33388 # type: textblock
33389 #. type: textblock
33390 #: ../tools/virt-win-reg.pl:68
33391 msgid ""
33392 "The first parameter is the libvirt guest name or the raw disk image of a "
33393 "Windows guest."
33394 msgstr ""
33395
33396 #. type: textblock
33397 #: ../tools/virt-win-reg.pl:71
33398 msgid ""
33399 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
33400 "exported (recursively).  For example:"
33401 msgstr ""
33402
33403 # type: verbatim
33404 #. type: verbatim
33405 #: ../tools/virt-win-reg.pl:74
33406 #, no-wrap
33407 msgid ""
33408 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
33409 "\n"
33410 msgstr ""
33411
33412 # type: textblock
33413 #. type: textblock
33414 #: ../tools/virt-win-reg.pl:76
33415 msgid ""
33416 "You can also display single values from within registry keys, for example:"
33417 msgstr ""
33418
33419 # type: verbatim
33420 #. type: verbatim
33421 #: ../tools/virt-win-reg.pl:79
33422 #, no-wrap
33423 msgid ""
33424 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
33425 " $ virt-win-reg Windows7 $cvkey ProductName\n"
33426 " Windows 7 Enterprise\n"
33427 "\n"
33428 msgstr ""
33429
33430 #. type: textblock
33431 #: ../tools/virt-win-reg.pl:83
33432 msgid ""
33433 "With I<--merge>, you can merge a textual regedit file into the Windows "
33434 "Registry:"
33435 msgstr ""
33436
33437 # type: verbatim
33438 #. type: verbatim
33439 #: ../tools/virt-win-reg.pl:86
33440 #, no-wrap
33441 msgid ""
33442 " $ virt-win-reg --merge Windows7 changes.reg\n"
33443 "\n"
33444 msgstr ""
33445
33446 # type: =head2
33447 #. type: =head1
33448 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
33449 msgid "NOTE"
33450 msgstr ""
33451
33452 # type: textblock
33453 #. type: textblock
33454 #: ../tools/virt-win-reg.pl:90
33455 msgid ""
33456 "This program is only meant for simple access to the registry.  If you want "
33457 "to do complicated things with the registry, we suggest you download the "
33458 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
33459 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
33460 "L<hivexregedit(1)>."
33461 msgstr ""
33462
33463 # type: textblock
33464 #. type: textblock
33465 #: ../tools/virt-win-reg.pl:106 ../tools/virt-list-filesystems.pl:63
33466 #: ../tools/virt-tar.pl:113 ../tools/virt-make-fs.pl:163
33467 #: ../tools/virt-list-partitions.pl:64
33468 msgid "Display brief help."
33469 msgstr ""
33470
33471 # type: textblock
33472 #. type: textblock
33473 #: ../tools/virt-win-reg.pl:114 ../tools/virt-list-filesystems.pl:71
33474 #: ../tools/virt-tar.pl:121 ../tools/virt-make-fs.pl:171
33475 #: ../tools/virt-list-partitions.pl:72
33476 msgid "Display version number and exit."
33477 msgstr ""
33478
33479 # type: =item
33480 #. type: =item
33481 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
33482 msgid "B<--debug>"
33483 msgstr ""
33484
33485 # type: textblock
33486 #. type: textblock
33487 #: ../tools/virt-win-reg.pl:122
33488 msgid "Enable debugging messages."
33489 msgstr ""
33490
33491 # type: =item
33492 #. type: =item
33493 #: ../tools/virt-win-reg.pl:128 ../tools/virt-list-filesystems.pl:77
33494 #: ../tools/virt-tar.pl:127 ../tools/virt-list-partitions.pl:78
33495 msgid "B<--connect URI> | B<-c URI>"
33496 msgstr ""
33497
33498 # type: textblock
33499 #. type: textblock
33500 #: ../tools/virt-win-reg.pl:130 ../tools/virt-list-filesystems.pl:79
33501 #: ../tools/virt-tar.pl:129 ../tools/virt-list-partitions.pl:80
33502 msgid ""
33503 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
33504 "to the default libvirt hypervisor."
33505 msgstr ""
33506
33507 # type: textblock
33508 #. type: textblock
33509 #: ../tools/virt-win-reg.pl:133 ../tools/virt-list-filesystems.pl:82
33510 #: ../tools/virt-tar.pl:132 ../tools/virt-list-partitions.pl:83
33511 msgid ""
33512 "If you specify guest block devices directly, then libvirt is not used at all."
33513 msgstr ""
33514
33515 # type: =item
33516 #. type: =item
33517 #: ../tools/virt-win-reg.pl:140 ../tools/virt-list-filesystems.pl:89
33518 #: ../tools/virt-tar.pl:139 ../tools/virt-list-partitions.pl:90
33519 msgid "B<--format> raw"
33520 msgstr ""
33521
33522 # type: textblock
33523 #. type: textblock
33524 #: ../tools/virt-win-reg.pl:142 ../tools/virt-list-filesystems.pl:91
33525 #: ../tools/virt-tar.pl:141 ../tools/virt-list-partitions.pl:92
33526 msgid ""
33527 "Specify the format of disk images given on the command line.  If this is "
33528 "omitted then the format is autodetected from the content of the disk image."
33529 msgstr ""
33530
33531 # type: textblock
33532 #. type: textblock
33533 #: ../tools/virt-win-reg.pl:146 ../tools/virt-list-filesystems.pl:95
33534 #: ../tools/virt-tar.pl:145 ../tools/virt-list-partitions.pl:96
33535 msgid ""
33536 "If disk images are requested from libvirt, then this program asks libvirt "
33537 "for this information.  In this case, the value of the format parameter is "
33538 "ignored."
33539 msgstr ""
33540
33541 # type: textblock
33542 #. type: textblock
33543 #: ../tools/virt-win-reg.pl:150 ../tools/virt-list-filesystems.pl:99
33544 #: ../tools/virt-tar.pl:149 ../tools/virt-list-partitions.pl:100
33545 msgid ""
33546 "If working with untrusted raw-format guest disk images, you should ensure "
33547 "the format is always specified."
33548 msgstr ""
33549
33550 # type: =item
33551 #. type: =item
33552 #: ../tools/virt-win-reg.pl:157
33553 msgid "B<--merge>"
33554 msgstr ""
33555
33556 # type: textblock
33557 #. type: textblock
33558 #: ../tools/virt-win-reg.pl:159
33559 msgid ""
33560 "In merge mode, this merges a textual regedit file into the Windows Registry "
33561 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
33562 "displays or exports Registry entries instead."
33563 msgstr ""
33564
33565 #. type: textblock
33566 #: ../tools/virt-win-reg.pl:163
33567 msgid ""
33568 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
33569 "result in disk corruption.  However exporting (without this flag)  is always "
33570 "safe."
33571 msgstr ""
33572
33573 # type: =item
33574 #. type: =item
33575 #: ../tools/virt-win-reg.pl:171
33576 msgid "B<--encoding> UTF-16LE|ASCII"
33577 msgstr ""
33578
33579 # type: textblock
33580 #. type: textblock
33581 #: ../tools/virt-win-reg.pl:173
33582 msgid ""
33583 "When merging (only), you may need to specify the encoding for strings to be "
33584 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
33585 "(3)/ENCODING STRINGS>."
33586 msgstr ""
33587
33588 # type: textblock
33589 #. type: textblock
33590 #: ../tools/virt-win-reg.pl:177
33591 msgid ""
33592 "The default is to use UTF-16LE, which should work with recent versions of "
33593 "Windows."
33594 msgstr ""
33595
33596 #. type: =item
33597 #: ../tools/virt-win-reg.pl:184
33598 msgid "B<--unsafe-printable-strings>"
33599 msgstr ""
33600
33601 #. type: textblock
33602 #: ../tools/virt-win-reg.pl:186
33603 msgid ""
33604 "When exporting (only), assume strings are UTF-16LE and print them as strings "
33605 "instead of hex sequences.  Remove the final zero codepoint from strings if "
33606 "present."
33607 msgstr ""
33608
33609 #. type: textblock
33610 #: ../tools/virt-win-reg.pl:190
33611 msgid ""
33612 "This is unsafe and does not preserve the fidelity of strings in the original "
33613 "Registry for various reasons:"
33614 msgstr ""
33615
33616 #. type: textblock
33617 #: ../tools/virt-win-reg.pl:197
33618 msgid ""
33619 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
33620 "other encodings will be corrupted by this transformation."
33621 msgstr ""
33622
33623 #. type: textblock
33624 #: ../tools/virt-win-reg.pl:202
33625 msgid ""
33626 "Assumes that everything which has type 1 or 2 is really a string and that "
33627 "everything else is not a string, but the type field in real Registries is "
33628 "not reliable."
33629 msgstr ""
33630
33631 #. type: textblock
33632 #: ../tools/virt-win-reg.pl:208
33633 msgid ""
33634 "Loses information about whether a zero codepoint followed the string in the "
33635 "Registry or not."
33636 msgstr ""
33637
33638 #. type: textblock
33639 #: ../tools/virt-win-reg.pl:213
33640 msgid ""
33641 "This all happens because the Registry itself contains no information about "
33642 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
33643 msgstr ""
33644
33645 #. type: textblock
33646 #: ../tools/virt-win-reg.pl:217
33647 msgid ""
33648 "You should only use this option for quick hacking and debugging of the "
33649 "Registry contents, and I<never> use it if the output is going to be passed "
33650 "into another program or stored in another Registry."
33651 msgstr ""
33652
33653 # type: =head2
33654 #. type: =head1
33655 #: ../tools/virt-win-reg.pl:554
33656 msgid "SUPPORTED SYSTEMS"
33657 msgstr ""
33658
33659 # type: textblock
33660 #. type: textblock
33661 #: ../tools/virt-win-reg.pl:556
33662 msgid ""
33663 "The program currently supports Windows NT-derived guests starting with "
33664 "Windows XP through to at least Windows 7."
33665 msgstr ""
33666
33667 #. type: textblock
33668 #: ../tools/virt-win-reg.pl:559
33669 msgid "The following Registry keys are supported:"
33670 msgstr ""
33671
33672 #. type: =item
33673 #: ../tools/virt-win-reg.pl:563
33674 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
33675 msgstr ""
33676
33677 #. type: =item
33678 #: ../tools/virt-win-reg.pl:565
33679 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
33680 msgstr ""
33681
33682 #. type: =item
33683 #: ../tools/virt-win-reg.pl:567
33684 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
33685 msgstr ""
33686
33687 #. type: =item
33688 #: ../tools/virt-win-reg.pl:569
33689 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
33690 msgstr ""
33691
33692 #. type: =item
33693 #: ../tools/virt-win-reg.pl:571
33694 msgid "C<HKEY_USERS\\.DEFAULT>"
33695 msgstr ""
33696
33697 #. type: =item
33698 #: ../tools/virt-win-reg.pl:573
33699 msgid "C<HKEY_USERS\\I<SID>>"
33700 msgstr ""
33701
33702 #. type: textblock
33703 #: ../tools/virt-win-reg.pl:575
33704 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
33705 msgstr ""
33706
33707 #. type: =item
33708 #: ../tools/virt-win-reg.pl:577
33709 msgid "C<HKEY_USERS\\I<username>>"
33710 msgstr ""
33711
33712 #. type: textblock
33713 #: ../tools/virt-win-reg.pl:579
33714 msgid ""
33715 "where I<username> is a local user name (this is a libguestfs extension)."
33716 msgstr ""
33717
33718 # type: textblock
33719 #. type: textblock
33720 #: ../tools/virt-win-reg.pl:583
33721 msgid ""
33722 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
33723 "C<HKEY_USERS>."
33724 msgstr ""
33725
33726 #. type: textblock
33727 #: ../tools/virt-win-reg.pl:586
33728 msgid ""
33729 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
33730 "supported (there is no \"current user\")."
33731 msgstr ""
33732
33733 # type: =head2
33734 #. type: =head1
33735 #: ../tools/virt-win-reg.pl:589
33736 msgid "ENCODING"
33737 msgstr ""
33738
33739 # type: textblock
33740 #. type: textblock
33741 #: ../tools/virt-win-reg.pl:591
33742 msgid ""
33743 "C<virt-win-reg> expects that regedit files have already been reencoded in "
33744 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
33745 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
33746 "Windows-style line endings, you may need to reencode the whole file before "
33747 "or after processing."
33748 msgstr ""
33749
33750 #. type: textblock
33751 #: ../tools/virt-win-reg.pl:597
33752 msgid ""
33753 "To reencode a file from Windows format to Linux (before processing it with "
33754 "the I<--merge> option), you would do something like this:"
33755 msgstr ""
33756
33757 # type: verbatim
33758 #. type: verbatim
33759 #: ../tools/virt-win-reg.pl:600
33760 #, no-wrap
33761 msgid ""
33762 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
33763 "\n"
33764 msgstr ""
33765
33766 # type: textblock
33767 #. type: textblock
33768 #: ../tools/virt-win-reg.pl:602
33769 msgid ""
33770 "To go in the opposite direction, after exporting and before sending the file "
33771 "to a Windows user, do something like this:"
33772 msgstr ""
33773
33774 # type: verbatim
33775 #. type: verbatim
33776 #: ../tools/virt-win-reg.pl:605
33777 #, no-wrap
33778 msgid ""
33779 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
33780 "\n"
33781 msgstr ""
33782
33783 # type: textblock
33784 #. type: textblock
33785 #: ../tools/virt-win-reg.pl:607
33786 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
33787 msgstr ""
33788
33789 # type: textblock
33790 #. type: textblock
33791 #: ../tools/virt-win-reg.pl:609
33792 msgid ""
33793 "If you are unsure about the current encoding, use the L<file(1)> command.  "
33794 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
33795 "style (CRLF) line endings, like this:"
33796 msgstr ""
33797
33798 # type: verbatim
33799 #. type: verbatim
33800 #: ../tools/virt-win-reg.pl:613
33801 #, no-wrap
33802 msgid ""
33803 " $ file software.reg\n"
33804 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
33805 " with CRLF line terminators\n"
33806 "\n"
33807 msgstr ""
33808
33809 #. type: textblock
33810 #: ../tools/virt-win-reg.pl:617
33811 msgid "This file would need conversion before you could I<--merge> it."
33812 msgstr ""
33813
33814 # type: =head2
33815 #. type: =head1
33816 #: ../tools/virt-win-reg.pl:619
33817 msgid "CurrentControlSet etc."
33818 msgstr ""
33819
33820 # type: textblock
33821 #. type: textblock
33822 #: ../tools/virt-win-reg.pl:621
33823 msgid ""
33824 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
33825 "Registry at the level of the hive file, and therefore you cannot modify "
33826 "these."
33827 msgstr ""
33828
33829 # type: textblock
33830 #. type: textblock
33831 #: ../tools/virt-win-reg.pl:625
33832 msgid ""
33833 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
33834 "circumstances it might refer to another control set.  The way to find out is "
33835 "to look at the C<HKLM\\SYSTEM\\Select> key:"
33836 msgstr ""
33837
33838 # type: verbatim
33839 #. type: verbatim
33840 #: ../tools/virt-win-reg.pl:629
33841 #, no-wrap
33842 msgid ""
33843 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
33844 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
33845 " \"Current\"=dword:00000001\n"
33846 " \"Default\"=dword:00000001\n"
33847 " \"Failed\"=dword:00000000\n"
33848 " \"LastKnownGood\"=dword:00000002\n"
33849 "\n"
33850 msgstr ""
33851
33852 # type: textblock
33853 #. type: textblock
33854 #: ../tools/virt-win-reg.pl:636
33855 msgid "\"Current\" is the one which Windows will choose when it boots."
33856 msgstr ""
33857
33858 # type: textblock
33859 #. type: textblock
33860 #: ../tools/virt-win-reg.pl:638
33861 msgid ""
33862 "Similarly, other C<Current...> keys in the path may need to be replaced."
33863 msgstr ""
33864
33865 # type: =head1
33866 #. type: =head1
33867 #: ../tools/virt-win-reg.pl:641
33868 msgid "WINDOWS TIPS"
33869 msgstr ""
33870
33871 # type: textblock
33872 #. type: textblock
33873 #: ../tools/virt-win-reg.pl:643
33874 msgid ""
33875 "Note that some of these tips modify the guest disk image.  The guest I<must> "
33876 "be shut off, else you will get disk corruption."
33877 msgstr ""
33878
33879 # type: =head2
33880 #. type: =head2
33881 #: ../tools/virt-win-reg.pl:646
33882 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
33883 msgstr ""
33884
33885 # type: textblock
33886 #. type: textblock
33887 #: ../tools/virt-win-reg.pl:648
33888 msgid ""
33889 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
33890 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
33891 "is uploaded into C<C:\\>:"
33892 msgstr ""
33893
33894 # type: verbatim
33895 #. type: verbatim
33896 #: ../tools/virt-win-reg.pl:652
33897 #, no-wrap
33898 msgid ""
33899 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
33900 "\n"
33901 msgstr ""
33902
33903 # type: textblock
33904 #. type: textblock
33905 #: ../tools/virt-win-reg.pl:654
33906 msgid "Prepare a regedit file containing the registry change:"
33907 msgstr ""
33908
33909 # type: verbatim
33910 #. type: verbatim
33911 #: ../tools/virt-win-reg.pl:656
33912 #, no-wrap
33913 msgid ""
33914 " cat > test.reg <<'EOF'\n"
33915 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
33916 " \"Test\"=\"c:\\\\test.bat\"\n"
33917 " EOF\n"
33918 "\n"
33919 msgstr ""
33920
33921 # type: textblock
33922 #. type: textblock
33923 #: ../tools/virt-win-reg.pl:661
33924 msgid ""
33925 "In this example we use the key C<RunOnce> which means that the script will "
33926 "run precisely once when the first user logs in.  If you want it to run every "
33927 "time a user logs in, replace C<RunOnce> with C<Run>."
33928 msgstr ""
33929
33930 # type: textblock
33931 #. type: textblock
33932 #: ../tools/virt-win-reg.pl:665
33933 msgid "Now update the registry:"
33934 msgstr ""
33935
33936 # type: verbatim
33937 #. type: verbatim
33938 #: ../tools/virt-win-reg.pl:667
33939 #, no-wrap
33940 msgid ""
33941 " virt-win-reg --merge WindowsGuest test.reg\n"
33942 "\n"
33943 msgstr ""
33944
33945 # type: =head2
33946 #. type: =head2
33947 #: ../tools/virt-win-reg.pl:669
33948 msgid "INSTALLING A SERVICE"
33949 msgstr ""
33950
33951 # type: textblock
33952 #. type: textblock
33953 #: ../tools/virt-win-reg.pl:671
33954 msgid ""
33955 "This section assumes you are familiar with Windows services, and you either "
33956 "have a program which handles the Windows Service Control Protocol directly "
33957 "or you want to run any program using a service wrapper like SrvAny or the "
33958 "free RHSrvAny."
33959 msgstr ""
33960
33961 # type: textblock
33962 #. type: textblock
33963 #: ../tools/virt-win-reg.pl:676
33964 msgid ""
33965 "First upload the program and optionally the service wrapper.  In this case "
33966 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
33967 msgstr ""
33968
33969 # type: verbatim
33970 #. type: verbatim
33971 #: ../tools/virt-win-reg.pl:680
33972 #, no-wrap
33973 msgid ""
33974 " guestfish -i -d WindowsGuest <<EOF\n"
33975 "   upload rhsrvany.exe /rhsrvany.exe\n"
33976 "   upload test.exe /test.exe\n"
33977 " EOF\n"
33978 "\n"
33979 msgstr ""
33980
33981 # type: textblock
33982 #. type: textblock
33983 #: ../tools/virt-win-reg.pl:685
33984 msgid ""
33985 "Prepare a regedit file containing the registry changes.  In this example, "
33986 "the first registry change is needed for the service itself or the service "
33987 "wrapper (if used).  The second registry change is only needed because I am "
33988 "using the RHSrvAny service wrapper."
33989 msgstr ""
33990
33991 # type: verbatim
33992 #. type: verbatim
33993 #: ../tools/virt-win-reg.pl:690
33994 #, no-wrap
33995 msgid ""
33996 " cat > service.reg <<'EOF'\n"
33997 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
33998 " \"Type\"=dword:00000010\n"
33999 " \"Start\"=dword:00000002\n"
34000 " \"ErrorControl\"=dword:00000001\n"
34001 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
34002 " \"DisplayName\"=\"RHSrvAny\"\n"
34003 " \"ObjectName\"=\"NetworkService\"\n"
34004 " \n"
34005 msgstr ""
34006
34007 # type: verbatim
34008 #. type: verbatim
34009 #: ../tools/virt-win-reg.pl:699
34010 #, no-wrap
34011 msgid ""
34012 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
34013 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
34014 " \"PWD\"=\"c:\\\\Temp\"\n"
34015 " EOF\n"
34016 "\n"
34017 msgstr ""
34018
34019 # type: textblock
34020 #. type: textblock
34021 #: ../tools/virt-win-reg.pl:710
34022 msgid ""
34023 "For use of C<ControlSet001> see the section above in this manual page.  You "
34024 "may need to adjust this according to the control set that is in use by the "
34025 "guest."
34026 msgstr ""
34027
34028 # type: textblock
34029 #. type: textblock
34030 #: ../tools/virt-win-reg.pl:716
34031 msgid ""
34032 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
34033 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
34034 "privileged account."
34035 msgstr ""
34036
34037 # type: textblock
34038 #. type: textblock
34039 #: ../tools/virt-win-reg.pl:722
34040 msgid ""
34041 "For the meaning of the magic numbers, see this Microsoft KB article: "
34042 "L<http://support.microsoft.com/kb/103000>."
34043 msgstr ""
34044
34045 # type: textblock
34046 #. type: textblock
34047 #: ../tools/virt-win-reg.pl:727
34048 msgid "Update the registry:"
34049 msgstr ""
34050
34051 # type: verbatim
34052 #. type: verbatim
34053 #: ../tools/virt-win-reg.pl:729
34054 #, no-wrap
34055 msgid ""
34056 " virt-win-reg --merge WindowsGuest service.reg\n"
34057 "\n"
34058 msgstr ""
34059
34060 # type: =head2
34061 #. type: =head1
34062 #: ../tools/virt-win-reg.pl:731 ../tools/virt-list-filesystems.pl:182
34063 #: ../tools/virt-tar.pl:279 ../tools/virt-make-fs.pl:532
34064 #: ../tools/virt-list-partitions.pl:250
34065 msgid "SHELL QUOTING"
34066 msgstr ""
34067
34068 # type: textblock
34069 #. type: textblock
34070 #: ../tools/virt-win-reg.pl:733
34071 msgid ""
34072 "Be careful when passing parameters containing C<\\> (backslash) in the "
34073 "shell.  Usually you will have to use 'single quotes' or double backslashes "
34074 "(but not both) to protect them from the shell."
34075 msgstr ""
34076
34077 # type: textblock
34078 #. type: textblock
34079 #: ../tools/virt-win-reg.pl:737
34080 msgid "Paths and value names are case-insensitive."
34081 msgstr ""
34082
34083 # type: textblock
34084 #. type: textblock
34085 #: ../tools/virt-win-reg.pl:739 ../tools/virt-list-filesystems.pl:184
34086 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534
34087 #: ../tools/virt-list-partitions.pl:252
34088 msgid ""
34089 "Libvirt guest names can contain arbitrary characters, some of which have "
34090 "meaning to the shell such as C<#> and space.  You may need to quote or "
34091 "escape these characters on the command line.  See the shell manual page L<sh"
34092 "(1)> for details."
34093 msgstr ""
34094
34095 # type: textblock
34096 #. type: textblock
34097 #: ../tools/virt-win-reg.pl:746
34098 msgid ""
34099 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
34100 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
34101 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
34102 msgstr ""
34103
34104 # type: textblock
34105 #. type: textblock
34106 #: ../tools/virt-win-reg.pl:761 ../tools/virt-make-fs.pl:555
34107 msgid ""
34108 "When reporting bugs, please enable debugging and capture the I<complete> "
34109 "output:"
34110 msgstr ""
34111
34112 # type: verbatim
34113 #. type: verbatim
34114 #: ../tools/virt-win-reg.pl:764
34115 #, no-wrap
34116 msgid ""
34117 " export LIBGUESTFS_DEBUG=1\n"
34118 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
34119 "\n"
34120 msgstr ""
34121
34122 # type: textblock
34123 #. type: textblock
34124 #: ../tools/virt-win-reg.pl:767
34125 msgid ""
34126 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
34127 "redhat.com/>"
34128 msgstr ""
34129
34130 # type: =head1
34131 #. type: =head1
34132 #: ../tools/virt-win-reg.pl:770 ../tools/virt-list-filesystems.pl:202
34133 #: ../tools/virt-tar.pl:301 ../tools/virt-make-fs.pl:564
34134 #: ../tools/virt-list-partitions.pl:269
34135 msgid "AUTHOR"
34136 msgstr ""
34137
34138 # type: textblock
34139 #. type: textblock
34140 #: ../tools/virt-win-reg.pl:772 ../tools/virt-list-filesystems.pl:204
34141 #: ../tools/virt-tar.pl:303 ../tools/virt-make-fs.pl:566
34142 #: ../tools/virt-list-partitions.pl:271
34143 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
34144 msgstr ""
34145
34146 # type: textblock
34147 #. type: textblock
34148 #: ../tools/virt-win-reg.pl:776 ../tools/virt-make-fs.pl:570
34149 msgid "Copyright (C) 2010 Red Hat Inc."
34150 msgstr ""
34151
34152 # type: textblock
34153 #. type: textblock
34154 #: ../tools/virt-list-filesystems.pl:32
34155 msgid ""
34156 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
34157 msgstr ""
34158
34159 # type: verbatim
34160 #. type: verbatim
34161 #: ../tools/virt-list-filesystems.pl:36
34162 #, no-wrap
34163 msgid ""
34164 " virt-list-filesystems [--options] domname\n"
34165 "\n"
34166 msgstr ""
34167
34168 # type: verbatim
34169 #. type: verbatim
34170 #: ../tools/virt-list-filesystems.pl:38
34171 #, no-wrap
34172 msgid ""
34173 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
34174 "\n"
34175 msgstr ""
34176
34177 # type: textblock
34178 #. type: textblock
34179 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
34180 msgid ""
34181 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
34182 "replacement."
34183 msgstr ""
34184
34185 # type: textblock
34186 #. type: textblock
34187 #: ../tools/virt-list-filesystems.pl:45
34188 msgid ""
34189 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
34190 "are contained in a virtual machine or disk image."
34191 msgstr ""
34192
34193 # type: textblock
34194 #. type: textblock
34195 #: ../tools/virt-list-filesystems.pl:49
34196 msgid ""
34197 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
34198 "functionality.  For more complex cases you should look at the L<guestfish(1)"
34199 "> tool."
34200 msgstr ""
34201
34202 # type: =item
34203 #. type: =item
34204 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
34205 msgid "B<-l> | B<--long>"
34206 msgstr ""
34207
34208 # type: textblock
34209 #. type: textblock
34210 #: ../tools/virt-list-filesystems.pl:108
34211 msgid ""
34212 "With this option, C<virt-list-filesystems> displays the type of each "
34213 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
34214 msgstr ""
34215
34216 # type: =item
34217 #. type: =item
34218 #: ../tools/virt-list-filesystems.pl:115
34219 msgid "B<-a> | B<--all>"
34220 msgstr ""
34221
34222 # type: textblock
34223 #. type: textblock
34224 #: ../tools/virt-list-filesystems.pl:117
34225 msgid ""
34226 "Normally we only show mountable filesystems.  If this option is given then "
34227 "swap devices are shown too."
34228 msgstr ""
34229
34230 # type: textblock
34231 #. type: textblock
34232 #: ../tools/virt-list-filesystems.pl:191
34233 msgid ""
34234 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
34235 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
34236 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
34237 msgstr ""
34238
34239 # type: textblock
34240 #. type: textblock
34241 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:307
34242 msgid "Copyright (C) 2009 Red Hat Inc."
34243 msgstr ""
34244
34245 # type: textblock
34246 #. type: textblock
34247 #: ../tools/virt-tar.pl:33
34248 msgid "virt-tar - Extract or upload files to a virtual machine"
34249 msgstr ""
34250
34251 # type: verbatim
34252 #. type: verbatim
34253 #: ../tools/virt-tar.pl:37
34254 #, no-wrap
34255 msgid ""
34256 " virt-tar [--options] -x domname directory tarball\n"
34257 "\n"
34258 msgstr ""
34259
34260 # type: verbatim
34261 #. type: verbatim
34262 #: ../tools/virt-tar.pl:39
34263 #, no-wrap
34264 msgid ""
34265 " virt-tar [--options] -u domname tarball directory\n"
34266 "\n"
34267 msgstr ""
34268
34269 # type: verbatim
34270 #. type: verbatim
34271 #: ../tools/virt-tar.pl:41
34272 #, no-wrap
34273 msgid ""
34274 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
34275 "\n"
34276 msgstr ""
34277
34278 # type: verbatim
34279 #. type: verbatim
34280 #: ../tools/virt-tar.pl:43
34281 #, no-wrap
34282 msgid ""
34283 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
34284 "\n"
34285 msgstr ""
34286
34287 #. type: textblock
34288 #: ../tools/virt-tar.pl:47
34289 msgid ""
34290 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
34291 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
34292 msgstr ""
34293
34294 # type: textblock
34295 #. type: textblock
34296 #: ../tools/virt-tar.pl:52
34297 msgid "Download C</home> from the VM into a local tarball:"
34298 msgstr ""
34299
34300 # type: verbatim
34301 #. type: verbatim
34302 #: ../tools/virt-tar.pl:54
34303 #, no-wrap
34304 msgid ""
34305 " virt-tar -x domname /home home.tar\n"
34306 "\n"
34307 msgstr ""
34308
34309 # type: verbatim
34310 #. type: verbatim
34311 #: ../tools/virt-tar.pl:56
34312 #, no-wrap
34313 msgid ""
34314 " virt-tar -zx domname /home home.tar.gz\n"
34315 "\n"
34316 msgstr ""
34317
34318 # type: textblock
34319 #. type: textblock
34320 #: ../tools/virt-tar.pl:58
34321 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
34322 msgstr ""
34323
34324 # type: verbatim
34325 #. type: verbatim
34326 #: ../tools/virt-tar.pl:60
34327 #, no-wrap
34328 msgid ""
34329 " virt-tar -u domname uploadstuff.tar /tmp\n"
34330 "\n"
34331 msgstr ""
34332
34333 # type: verbatim
34334 #. type: verbatim
34335 #: ../tools/virt-tar.pl:62
34336 #, no-wrap
34337 msgid ""
34338 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
34339 "\n"
34340 msgstr ""
34341
34342 #. type: textblock
34343 #: ../tools/virt-tar.pl:66
34344 msgid ""
34345 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
34346 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
34347 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
34348 msgstr ""
34349
34350 #. type: textblock
34351 #: ../tools/virt-tar.pl:71
34352 msgid ""
34353 "You can use I<-x> (extract) on live virtual machines, but you might get "
34354 "inconsistent results or errors if there is filesystem activity inside the "
34355 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
34356 "work, but the only way to guarantee consistent results is if the virtual "
34357 "machine is shut down."
34358 msgstr ""
34359
34360 # type: textblock
34361 #. type: textblock
34362 #: ../tools/virt-tar.pl:79
34363 msgid ""
34364 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
34365 "parts of a guest filesystem.  There are many possibilities: making backups, "
34366 "uploading data files, snooping on guest activity, fixing or customizing "
34367 "guests, etc."
34368 msgstr ""
34369
34370 # type: textblock
34371 #. type: textblock
34372 #: ../tools/virt-tar.pl:84
34373 msgid ""
34374 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
34375 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
34376 "should look at the L<guestfish(1)> tool."
34377 msgstr ""
34378
34379 #. type: textblock
34380 #: ../tools/virt-tar.pl:88
34381 msgid ""
34382 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
34383 "its contents (recursively) from the virtual machine into a local tarball.  "
34384 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
34385 "virtual machine.  You cannot use these two options together."
34386 msgstr ""
34387
34388 #. type: textblock
34389 #: ../tools/virt-tar.pl:94
34390 msgid ""
34391 "In addition, you may need to use the I<-z> (gZip) option to enable "
34392 "compression.  When uploading, you have to specify I<-z> if the upload file "
34393 "is compressed because virt-tar won't detect this on its own."
34394 msgstr ""
34395
34396 # type: textblock
34397 #. type: textblock
34398 #: ../tools/virt-tar.pl:98
34399 msgid ""
34400 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
34401 "example it cannot do PKZip files or bzip2 compression.  If you want that "
34402 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
34403 "the L<libguestfs(3)> API)."
34404 msgstr ""
34405
34406 # type: =item
34407 #. type: =item
34408 #: ../tools/virt-tar.pl:156
34409 msgid "B<-x> | B<--extract> | B<--download>"
34410 msgstr ""
34411
34412 # type: =item
34413 #. type: =item
34414 #: ../tools/virt-tar.pl:158
34415 msgid "B<-u> | B<--upload>"
34416 msgstr ""
34417
34418 #. type: textblock
34419 #: ../tools/virt-tar.pl:160
34420 msgid ""
34421 "Use I<-x> to extract (download) a directory from a virtual machine to a "
34422 "local tarball."
34423 msgstr ""
34424
34425 #. type: textblock
34426 #: ../tools/virt-tar.pl:163
34427 msgid ""
34428 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
34429 "Please read the L</WARNING> section above before using this option."
34430 msgstr ""
34431
34432 # type: textblock
34433 #. type: textblock
34434 #: ../tools/virt-tar.pl:167
34435 msgid "You must specify exactly one of these options."
34436 msgstr ""
34437
34438 # type: =item
34439 #. type: =item
34440 #: ../tools/virt-tar.pl:173
34441 msgid "B<-z> | B<--gzip>"
34442 msgstr ""
34443
34444 # type: textblock
34445 #. type: textblock
34446 #: ../tools/virt-tar.pl:175
34447 msgid "Specify that the input or output tarball is gzip-compressed."
34448 msgstr ""
34449
34450 #. type: textblock
34451 #: ../tools/virt-tar.pl:288
34452 msgid ""
34453 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
34454 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
34455 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
34456 "org/>."
34457 msgstr ""
34458
34459 # type: textblock
34460 #. type: textblock
34461 #: ../tools/virt-make-fs.pl:37
34462 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
34463 msgstr ""
34464
34465 # type: verbatim
34466 #. type: verbatim
34467 #: ../tools/virt-make-fs.pl:41
34468 #, no-wrap
34469 msgid ""
34470 " virt-make-fs [--options] input.tar output.img\n"
34471 "\n"
34472 msgstr ""
34473
34474 # type: verbatim
34475 #. type: verbatim
34476 #: ../tools/virt-make-fs.pl:43
34477 #, no-wrap
34478 msgid ""
34479 " virt-make-fs [--options] input.tar.gz output.img\n"
34480 "\n"
34481 msgstr ""
34482
34483 # type: verbatim
34484 #. type: verbatim
34485 #: ../tools/virt-make-fs.pl:45
34486 #, no-wrap
34487 msgid ""
34488 " virt-make-fs [--options] directory output.img\n"
34489 "\n"
34490 msgstr ""
34491
34492 # type: textblock
34493 #. type: textblock
34494 #: ../tools/virt-make-fs.pl:49
34495 msgid ""
34496 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
34497 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
34498 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
34499 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
34500 "you want to attach these filesystems to existing virtual machines (eg. to "
34501 "import large amounts of read-only data to a VM)."
34502 msgstr ""
34503
34504 # type: textblock
34505 #. type: textblock
34506 #: ../tools/virt-make-fs.pl:57
34507 msgid "Basic usage is:"
34508 msgstr ""
34509
34510 # type: verbatim
34511 #. type: verbatim
34512 #: ../tools/virt-make-fs.pl:59
34513 #, no-wrap
34514 msgid ""
34515 " virt-make-fs input output\n"
34516 "\n"
34517 msgstr ""
34518
34519 # type: textblock
34520 #. type: textblock
34521 #: ../tools/virt-make-fs.pl:61
34522 msgid ""
34523 "where C<input> is either a directory containing files that you want to add, "
34524 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
34525 "C<output> is a disk image.  The input type is detected automatically.  The "
34526 "output disk image defaults to a raw ext2 image unless you specify extra "
34527 "flags (see L</OPTIONS> below)."
34528 msgstr ""
34529
34530 # type: =head2
34531 #. type: =head2
34532 #: ../tools/virt-make-fs.pl:67
34533 msgid "EXTRA SPACE"
34534 msgstr ""
34535
34536 #. type: textblock
34537 #: ../tools/virt-make-fs.pl:69
34538 msgid ""
34539 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
34540 "the files that it contains, but might have extra space.  Depending on how "
34541 "you are going to use the output, you might think this extra space is wasted "
34542 "and want to minimize it, or you might want to leave space so that more files "
34543 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
34544 "but you can use the I<--size> flag to leave space in the filesystem if you "
34545 "want it."
34546 msgstr ""
34547
34548 #. type: textblock
34549 #: ../tools/virt-make-fs.pl:77
34550 msgid ""
34551 "An alternative way to leave extra space but not make the output image any "
34552 "bigger is to use an alternative disk image format (instead of the default "
34553 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
34554 "image format (check your hypervisor supports this before using it).  This "
34555 "allows you to choose a large I<--size> but the extra space won't actually be "
34556 "allocated in the image until you try to store something in it."
34557 msgstr ""
34558
34559 #. type: textblock
34560 #: ../tools/virt-make-fs.pl:85
34561 msgid ""
34562 "Don't forget that you can also use local commands including L<resize2fs(8)> "
34563 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
34564 "to build another image from scratch."
34565 msgstr ""
34566
34567 # type: =head3
34568 #. type: =head3
34569 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
34570 #: ../tools/virt-make-fs.pl:142
34571 msgid "EXAMPLE"
34572 msgstr ""
34573
34574 # type: verbatim
34575 #. type: verbatim
34576 #: ../tools/virt-make-fs.pl:91
34577 #, no-wrap
34578 msgid ""
34579 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
34580 "\n"
34581 msgstr ""
34582
34583 # type: =head2
34584 #. type: =head2
34585 #: ../tools/virt-make-fs.pl:93
34586 msgid "FILESYSTEM TYPE"
34587 msgstr ""
34588
34589 # type: textblock
34590 #. type: textblock
34591 #: ../tools/virt-make-fs.pl:95
34592 msgid ""
34593 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
34594 "libguestfs supports can be used (but I<not> read-only formats like "
34595 "ISO9660).  Here are some of the more common choices:"
34596 msgstr ""
34597
34598 # type: =item
34599 #. type: =item
34600 #: ../tools/virt-make-fs.pl:101
34601 msgid "I<ext3>"
34602 msgstr ""
34603
34604 # type: textblock
34605 #. type: textblock
34606 #: ../tools/virt-make-fs.pl:103
34607 msgid ""
34608 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
34609 "you are not going to use the filesystem in a way that requires the journal, "
34610 "then this is just wasted overhead."
34611 msgstr ""
34612
34613 # type: =item
34614 #. type: =item
34615 #: ../tools/virt-make-fs.pl:107
34616 msgid "I<ntfs> or I<vfat>"
34617 msgstr ""
34618
34619 # type: textblock
34620 #. type: textblock
34621 #: ../tools/virt-make-fs.pl:109
34622 msgid "Useful if exporting data to a Windows guest."
34623 msgstr ""
34624
34625 # type: textblock
34626 #. type: textblock
34627 #: ../tools/virt-make-fs.pl:111
34628 msgid ""
34629 "I<Note for vfat>: The tar archive or local directory must only contain files "
34630 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
34631 "program running within libguestfs is unable to change the ownership of non-"
34632 "root files, since vfat itself does not support this."
34633 msgstr ""
34634
34635 # type: =item
34636 #. type: =item
34637 #: ../tools/virt-make-fs.pl:116
34638 msgid "I<minix>"
34639 msgstr ""
34640
34641 # type: textblock
34642 #. type: textblock
34643 #: ../tools/virt-make-fs.pl:118
34644 msgid ""
34645 "Lower overhead than C<ext2>, but certain limitations on filename length and "
34646 "total filesystem size."
34647 msgstr ""
34648
34649 # type: verbatim
34650 #. type: verbatim
34651 #: ../tools/virt-make-fs.pl:125
34652 #, no-wrap
34653 msgid ""
34654 " virt-make-fs --type=minix input minixfs.img\n"
34655 "\n"
34656 msgstr ""
34657
34658 # type: =head2
34659 #. type: =head2
34660 #: ../tools/virt-make-fs.pl:127
34661 msgid "TO PARTITION OR NOT TO PARTITION"
34662 msgstr ""
34663
34664 # type: textblock
34665 #. type: textblock
34666 #: ../tools/virt-make-fs.pl:129
34667 msgid "Optionally virt-make-fs can add a partition table to the output disk."
34668 msgstr ""
34669
34670 # type: textblock
34671 #. type: textblock
34672 #: ../tools/virt-make-fs.pl:131
34673 msgid ""
34674 "Adding a partition can make the disk image more compatible with certain "
34675 "virtualized operating systems which don't expect to see a filesystem "
34676 "directly located on a block device (Linux doesn't care and will happily "
34677 "handle both types)."
34678 msgstr ""
34679
34680 # type: textblock
34681 #. type: textblock
34682 #: ../tools/virt-make-fs.pl:136
34683 msgid ""
34684 "On the other hand, if you have a partition table then the output image is no "
34685 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
34686 "directly on a partitioned disk image.  (However libguestfs tools such as "
34687 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
34688 msgstr ""
34689
34690 # type: textblock
34691 #. type: textblock
34692 #: ../tools/virt-make-fs.pl:144
34693 msgid "Add an MBR partition:"
34694 msgstr ""
34695
34696 # type: verbatim
34697 #. type: verbatim
34698 #: ../tools/virt-make-fs.pl:146
34699 #, no-wrap
34700 msgid ""
34701 " virt-make-fs --partition -- input disk.img\n"
34702 "\n"
34703 msgstr ""
34704
34705 # type: textblock
34706 #. type: textblock
34707 #: ../tools/virt-make-fs.pl:148
34708 msgid ""
34709 "If the output disk image could be terabyte-sized or larger, it's better to "
34710 "use an EFI/GPT-compatible partition table:"
34711 msgstr ""
34712
34713 # type: verbatim
34714 #. type: verbatim
34715 #: ../tools/virt-make-fs.pl:151
34716 #, no-wrap
34717 msgid ""
34718 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
34719 "\n"
34720 msgstr ""
34721
34722 # type: textblock
34723 #. type: textblock
34724 #: ../tools/virt-make-fs.pl:179
34725 msgid "Enable debugging information."
34726 msgstr ""
34727
34728 # type: =item
34729 #. type: =item
34730 #: ../tools/virt-make-fs.pl:185
34731 msgid "B<--size=E<lt>NE<gt>>"
34732 msgstr ""
34733
34734 # type: =item
34735 #. type: =item
34736 #: ../tools/virt-make-fs.pl:187
34737 msgid "B<--size=+E<lt>NE<gt>>"
34738 msgstr ""
34739
34740 # type: =item
34741 #. type: =item
34742 #: ../tools/virt-make-fs.pl:189
34743 msgid "B<-s E<lt>NE<gt>>"
34744 msgstr ""
34745
34746 # type: =item
34747 #. type: =item
34748 #: ../tools/virt-make-fs.pl:191
34749 msgid "B<-s +E<lt>NE<gt>>"
34750 msgstr ""
34751
34752 #. type: textblock
34753 #: ../tools/virt-make-fs.pl:193
34754 msgid ""
34755 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
34756 msgstr ""
34757
34758 # type: textblock
34759 #. type: textblock
34760 #: ../tools/virt-make-fs.pl:196
34761 msgid ""
34762 "If this option is I<not> given, then the output image will be just large "
34763 "enough to contain all the files, with not much wasted space."
34764 msgstr ""
34765
34766 # type: textblock
34767 #. type: textblock
34768 #: ../tools/virt-make-fs.pl:199
34769 msgid ""
34770 "To choose a fixed size output disk, specify an absolute number followed by b/"
34771 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
34772 "Petabytes or Exabytes.  This must be large enough to contain all the input "
34773 "files, else you will get an error."
34774 msgstr ""
34775
34776 #. type: textblock
34777 #: ../tools/virt-make-fs.pl:204
34778 msgid ""
34779 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
34780 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
34781 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
34782 "the input files, and (approximately) an extra 200 MB free space."
34783 msgstr ""
34784
34785 # type: textblock
34786 #. type: textblock
34787 #: ../tools/virt-make-fs.pl:210
34788 msgid ""
34789 "Note that virt-make-fs estimates free space, and therefore will not produce "
34790 "filesystems containing precisely the free space requested.  (It is much more "
34791 "expensive and time-consuming to produce a filesystem which has precisely the "
34792 "desired free space)."
34793 msgstr ""
34794
34795 # type: =item
34796 #. type: =item
34797 #: ../tools/virt-make-fs.pl:219
34798 msgid "B<--format=E<lt>fmtE<gt>>"
34799 msgstr ""
34800
34801 # type: =item
34802 #. type: =item
34803 #: ../tools/virt-make-fs.pl:221
34804 msgid "B<-F E<lt>fmtE<gt>>"
34805 msgstr ""
34806
34807 # type: textblock
34808 #. type: textblock
34809 #: ../tools/virt-make-fs.pl:223
34810 msgid "Choose the output disk image format."
34811 msgstr ""
34812
34813 # type: textblock
34814 #. type: textblock
34815 #: ../tools/virt-make-fs.pl:225
34816 msgid "The default is C<raw> (raw disk image)."
34817 msgstr ""
34818
34819 # type: textblock
34820 #. type: textblock
34821 #: ../tools/virt-make-fs.pl:227
34822 msgid ""
34823 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
34824 "that would really make sense here is C<qcow2>."
34825 msgstr ""
34826
34827 # type: =item
34828 #. type: =item
34829 #: ../tools/virt-make-fs.pl:234
34830 msgid "B<--type=E<lt>fsE<gt>>"
34831 msgstr ""
34832
34833 # type: =item
34834 #. type: =item
34835 #: ../tools/virt-make-fs.pl:236
34836 msgid "B<-t E<lt>fsE<gt>>"
34837 msgstr ""
34838
34839 # type: textblock
34840 #. type: textblock
34841 #: ../tools/virt-make-fs.pl:238
34842 msgid "Choose the output filesystem type."
34843 msgstr ""
34844
34845 # type: textblock
34846 #. type: textblock
34847 #: ../tools/virt-make-fs.pl:240
34848 msgid "The default is C<ext2>."
34849 msgstr ""
34850
34851 # type: textblock
34852 #. type: textblock
34853 #: ../tools/virt-make-fs.pl:242
34854 msgid ""
34855 "Any filesystem which is supported read-write by libguestfs can be used here."
34856 msgstr ""
34857
34858 # type: =item
34859 #. type: =item
34860 #: ../tools/virt-make-fs.pl:249
34861 msgid "B<--partition>"
34862 msgstr ""
34863
34864 # type: =item
34865 #. type: =item
34866 #: ../tools/virt-make-fs.pl:251
34867 msgid "B<--partition=E<lt>parttypeE<gt>>"
34868 msgstr ""
34869
34870 # type: textblock
34871 #. type: textblock
34872 #: ../tools/virt-make-fs.pl:253
34873 msgid ""
34874 "If specified, this flag adds an MBR partition table to the output disk image."
34875 msgstr ""
34876
34877 #. type: textblock
34878 #: ../tools/virt-make-fs.pl:256
34879 msgid ""
34880 "You can change the partition table type, eg. I<--partition=gpt> for large "
34881 "disks."
34882 msgstr ""
34883
34884 #. type: textblock
34885 #: ../tools/virt-make-fs.pl:259
34886 msgid ""
34887 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
34888 "might consider the next parameter to be the partition type.  For example:"
34889 msgstr ""
34890
34891 # type: verbatim
34892 #. type: verbatim
34893 #: ../tools/virt-make-fs.pl:263
34894 #, no-wrap
34895 msgid ""
34896 " virt-make-fs --partition input.tar ...\n"
34897 "\n"
34898 msgstr ""
34899
34900 #. type: textblock
34901 #: ../tools/virt-make-fs.pl:265
34902 msgid ""
34903 "would cause virt-make-fs to think you wanted to use a partition type of "
34904 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
34905 "dash) between options and the input file argument:"
34906 msgstr ""
34907
34908 # type: verbatim
34909 #. type: verbatim
34910 #: ../tools/virt-make-fs.pl:269
34911 #, no-wrap
34912 msgid ""
34913 " virt-make-fs --partition -- input.tar ...\n"
34914 "\n"
34915 msgstr ""
34916
34917 #. type: textblock
34918 #: ../tools/virt-make-fs.pl:541
34919 msgid ""
34920 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
34921 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
34922 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
34923 msgstr ""
34924
34925 # type: verbatim
34926 #. type: verbatim
34927 #: ../tools/virt-make-fs.pl:558
34928 #, no-wrap
34929 msgid ""
34930 " export LIBGUESTFS_DEBUG=1\n"
34931 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
34932 "\n"
34933 msgstr ""
34934
34935 # type: textblock
34936 #. type: textblock
34937 #: ../tools/virt-make-fs.pl:561
34938 msgid ""
34939 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
34940 "redhat.com/>"
34941 msgstr ""
34942
34943 # type: textblock
34944 #. type: textblock
34945 #: ../tools/virt-list-partitions.pl:32
34946 msgid ""
34947 "virt-list-partitions - List partitions in a virtual machine or disk image"
34948 msgstr ""
34949
34950 # type: verbatim
34951 #. type: verbatim
34952 #: ../tools/virt-list-partitions.pl:36
34953 #, no-wrap
34954 msgid ""
34955 " virt-list-partitions [--options] domname\n"
34956 "\n"
34957 msgstr ""
34958
34959 # type: verbatim
34960 #. type: verbatim
34961 #: ../tools/virt-list-partitions.pl:38
34962 #, no-wrap
34963 msgid ""
34964 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
34965 "\n"
34966 msgstr ""
34967
34968 # type: textblock
34969 #. type: textblock
34970 #: ../tools/virt-list-partitions.pl:45
34971 msgid ""
34972 "C<virt-list-partitions> is a command line tool to list the partitions that "
34973 "are contained in a virtual machine or disk image.  It is mainly useful as a "
34974 "first step to using L<virt-resize(1)>."
34975 msgstr ""
34976
34977 # type: textblock
34978 #. type: textblock
34979 #: ../tools/virt-list-partitions.pl:50
34980 msgid ""
34981 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
34982 "functionality.  For more complex cases you should look at the L<guestfish(1)"
34983 "> tool."
34984 msgstr ""
34985
34986 # type: =item
34987 #. type: =item
34988 #: ../tools/virt-list-partitions.pl:107
34989 msgid "B<-h> | B<--human-readable>"
34990 msgstr ""
34991
34992 # type: textblock
34993 #. type: textblock
34994 #: ../tools/virt-list-partitions.pl:109
34995 msgid "Show sizes in human-readable form (eg. \"1G\")."
34996 msgstr ""
34997
34998 # type: textblock
34999 #. type: textblock
35000 #: ../tools/virt-list-partitions.pl:117
35001 msgid ""
35002 "With this option, C<virt-list-partitions> displays the type and size of each "
35003 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
35004 msgstr ""
35005
35006 # type: =item
35007 #. type: =item
35008 #: ../tools/virt-list-partitions.pl:124
35009 msgid "B<-t> | B<--total>"
35010 msgstr ""
35011
35012 # type: textblock
35013 #. type: textblock
35014 #: ../tools/virt-list-partitions.pl:126
35015 msgid ""
35016 "Display the total size of each block device (as a separate row or rows)."
35017 msgstr ""
35018
35019 # type: textblock
35020 #. type: textblock
35021 #: ../tools/virt-list-partitions.pl:259
35022 msgid ""
35023 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
35024 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
35025 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
35026 msgstr ""
35027
35028 # type: textblock
35029 #. type: textblock
35030 #: ../tools/virt-list-partitions.pl:275
35031 msgid "Copyright (C) 2009-2010 Red Hat Inc."
35032 msgstr ""