Add caution subdirectory containing safety and liveness tests.
[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-06-28 19:35+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:2967 ../src/guestfs.pod:2971 ../src/guestfs.pod:2975
927 #: ../src/guestfs.pod:2979 ../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:2783 ../src/guestfs-actions.pod:2789
940 #: ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:2804
941 #: ../src/guestfs-actions.pod:2811 ../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:2779
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:5951
5577 #: ../fish/guestfish-actions.pod:3958
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<contrib>"
5611 msgstr ""
5612
5613 #. type: textblock
5614 #: ../src/guestfs.pod:2663
5615 msgid "Outside contributions, experimental parts."
5616 msgstr ""
5617
5618 #. type: =item
5619 #: ../src/guestfs.pod:2665
5620 msgid "C<daemon>"
5621 msgstr ""
5622
5623 #. type: textblock
5624 #: ../src/guestfs.pod:2667
5625 msgid ""
5626 "The daemon that runs inside the libguestfs appliance and carries out actions."
5627 msgstr ""
5628
5629 #. type: =item
5630 #: ../src/guestfs.pod:2670
5631 msgid "C<df>"
5632 msgstr ""
5633
5634 #. type: textblock
5635 #: ../src/guestfs.pod:2672
5636 msgid "L<virt-df(1)> command and documentation."
5637 msgstr ""
5638
5639 #. type: =item
5640 #: ../src/guestfs.pod:2674
5641 msgid "C<edit>"
5642 msgstr ""
5643
5644 #. type: textblock
5645 #: ../src/guestfs.pod:2676
5646 msgid "L<virt-edit(1)> command and documentation."
5647 msgstr ""
5648
5649 #. type: =item
5650 #: ../src/guestfs.pod:2678
5651 msgid "C<examples>"
5652 msgstr ""
5653
5654 #. type: textblock
5655 #: ../src/guestfs.pod:2680
5656 msgid "C API example code."
5657 msgstr ""
5658
5659 #. type: =item
5660 #: ../src/guestfs.pod:2682
5661 msgid "C<fish>"
5662 msgstr ""
5663
5664 #. type: textblock
5665 #: ../src/guestfs.pod:2684
5666 msgid ""
5667 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
5668 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
5669 "L<virt-tar-out(1)>."
5670 msgstr ""
5671
5672 #. type: =item
5673 #: ../src/guestfs.pod:2688
5674 msgid "C<fuse>"
5675 msgstr ""
5676
5677 #. type: textblock
5678 #: ../src/guestfs.pod:2690
5679 msgid ""
5680 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
5681 msgstr ""
5682
5683 #. type: =item
5684 #: ../src/guestfs.pod:2692
5685 msgid "C<generator>"
5686 msgstr ""
5687
5688 #. type: textblock
5689 #: ../src/guestfs.pod:2694
5690 msgid ""
5691 "The crucially important generator, used to automatically generate large "
5692 "amounts of boilerplate C code for things like RPC and bindings."
5693 msgstr ""
5694
5695 #. type: =item
5696 #: ../src/guestfs.pod:2697
5697 msgid "C<images>"
5698 msgstr ""
5699
5700 #. type: textblock
5701 #: ../src/guestfs.pod:2699
5702 msgid "Files used by the test suite."
5703 msgstr ""
5704
5705 #. type: textblock
5706 #: ../src/guestfs.pod:2701
5707 msgid "Some \"phony\" guest images which we test against."
5708 msgstr ""
5709
5710 #. type: =item
5711 #: ../src/guestfs.pod:2703
5712 msgid "C<inspector>"
5713 msgstr ""
5714
5715 #. type: textblock
5716 #: ../src/guestfs.pod:2705
5717 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
5718 msgstr ""
5719
5720 #. type: =item
5721 #: ../src/guestfs.pod:2707
5722 msgid "C<logo>"
5723 msgstr ""
5724
5725 #. type: textblock
5726 #: ../src/guestfs.pod:2709
5727 msgid "Logo used on the website.  The fish is called Arthur by the way."
5728 msgstr ""
5729
5730 #. type: =item
5731 #: ../src/guestfs.pod:2711
5732 msgid "C<m4>"
5733 msgstr ""
5734
5735 #. type: textblock
5736 #: ../src/guestfs.pod:2713
5737 msgid "M4 macros used by autoconf."
5738 msgstr ""
5739
5740 #. type: =item
5741 #: ../src/guestfs.pod:2715
5742 msgid "C<po>"
5743 msgstr ""
5744
5745 #. type: textblock
5746 #: ../src/guestfs.pod:2717
5747 msgid "Translations of simple gettext strings."
5748 msgstr ""
5749
5750 #. type: =item
5751 #: ../src/guestfs.pod:2719
5752 msgid "C<po-docs>"
5753 msgstr ""
5754
5755 #. type: textblock
5756 #: ../src/guestfs.pod:2721
5757 msgid ""
5758 "The build infrastructure and PO files for translations of manpages and POD "
5759 "files.  Eventually this will be combined with the C<po> directory, but that "
5760 "is rather complicated."
5761 msgstr ""
5762
5763 #. type: =item
5764 #: ../src/guestfs.pod:2725
5765 msgid "C<regressions>"
5766 msgstr ""
5767
5768 #. type: textblock
5769 #: ../src/guestfs.pod:2727
5770 msgid "Regression tests."
5771 msgstr ""
5772
5773 #. type: =item
5774 #: ../src/guestfs.pod:2729
5775 msgid "C<rescue>"
5776 msgstr ""
5777
5778 #. type: textblock
5779 #: ../src/guestfs.pod:2731
5780 msgid "L<virt-rescue(1)> command and documentation."
5781 msgstr ""
5782
5783 #. type: =item
5784 #: ../src/guestfs.pod:2733
5785 msgid "C<src>"
5786 msgstr ""
5787
5788 #. type: textblock
5789 #: ../src/guestfs.pod:2735
5790 msgid "Source code to the C library."
5791 msgstr ""
5792
5793 #. type: =item
5794 #: ../src/guestfs.pod:2737
5795 msgid "C<tools>"
5796 msgstr ""
5797
5798 #. type: textblock
5799 #: ../src/guestfs.pod:2739
5800 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
5801 msgstr ""
5802
5803 #. type: =item
5804 #: ../src/guestfs.pod:2741
5805 msgid "C<test-tool>"
5806 msgstr ""
5807
5808 #. type: textblock
5809 #: ../src/guestfs.pod:2743
5810 msgid ""
5811 "Test tool for end users to test if their qemu/kernel combination will work "
5812 "with libguestfs."
5813 msgstr ""
5814
5815 #. type: =item
5816 #: ../src/guestfs.pod:2746
5817 msgid "C<csharp>"
5818 msgstr ""
5819
5820 #. type: =item
5821 #: ../src/guestfs.pod:2748
5822 msgid "C<haskell>"
5823 msgstr ""
5824
5825 #. type: =item
5826 #: ../src/guestfs.pod:2750
5827 msgid "C<java>"
5828 msgstr ""
5829
5830 #. type: =item
5831 #: ../src/guestfs.pod:2752
5832 msgid "C<ocaml>"
5833 msgstr ""
5834
5835 #. type: =item
5836 #: ../src/guestfs.pod:2754
5837 msgid "C<php>"
5838 msgstr ""
5839
5840 #. type: =item
5841 #: ../src/guestfs.pod:2756
5842 msgid "C<perl>"
5843 msgstr ""
5844
5845 #. type: =item
5846 #: ../src/guestfs.pod:2758
5847 msgid "C<python>"
5848 msgstr ""
5849
5850 #. type: =item
5851 #: ../src/guestfs.pod:2760
5852 msgid "C<ruby>"
5853 msgstr ""
5854
5855 #. type: textblock
5856 #: ../src/guestfs.pod:2762
5857 msgid "Language bindings."
5858 msgstr ""
5859
5860 #. type: =head1
5861 #: ../src/guestfs.pod:2766
5862 msgid "LIMITS"
5863 msgstr ""
5864
5865 # type: =head2
5866 #. type: =head2
5867 #: ../src/guestfs.pod:2768
5868 msgid "PROTOCOL LIMITS"
5869 msgstr ""
5870
5871 # type: textblock
5872 #. type: textblock
5873 #: ../src/guestfs.pod:2770
5874 msgid ""
5875 "Internally libguestfs uses a message-based protocol to pass API calls and "
5876 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
5877 "plenty more detail about this).  The maximum message size used by the "
5878 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
5879 "aware of this limit.  The API calls which may be affected are individually "
5880 "documented, with a link back to this section of the documentation."
5881 msgstr ""
5882
5883 # type: textblock
5884 #. type: textblock
5885 #: ../src/guestfs.pod:2778
5886 msgid ""
5887 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
5888 "a simple string.  Because this string is at some point internally encoded as "
5889 "a message, the maximum size that it can return is slightly under 4 MB.  If "
5890 "the requested file is larger than this then you will get an error."
5891 msgstr ""
5892
5893 # type: textblock
5894 #. type: textblock
5895 #: ../src/guestfs.pod:2784
5896 msgid ""
5897 "In order to transfer large files into and out of the guest filesystem, you "
5898 "need to use particular calls that support this.  The sections L</UPLOADING> "
5899 "and L</DOWNLOADING> document how to do this."
5900 msgstr ""
5901
5902 # type: textblock
5903 #. type: textblock
5904 #: ../src/guestfs.pod:2788
5905 msgid ""
5906 "You might also consider mounting the disk image using our FUSE filesystem "
5907 "support (L<guestmount(1)>)."
5908 msgstr ""
5909
5910 #. type: =head2
5911 #: ../src/guestfs.pod:2791
5912 msgid "MAXIMUM NUMBER OF DISKS"
5913 msgstr ""
5914
5915 #. type: textblock
5916 #: ../src/guestfs.pod:2793
5917 msgid "When using virtio disks (the default) the current limit is B<25> disks."
5918 msgstr ""
5919
5920 #. type: textblock
5921 #: ../src/guestfs.pod:2796
5922 msgid ""
5923 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
5924 "slots.  However febootstrap only understands disks with names C</dev/vda> "
5925 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
5926 "purposes."
5927 msgstr ""
5928
5929 #. type: textblock
5930 #: ../src/guestfs.pod:2801
5931 msgid ""
5932 "We are working to substantially raise this limit in future versions but it "
5933 "requires complex changes to qemu."
5934 msgstr ""
5935
5936 #. type: textblock
5937 #: ../src/guestfs.pod:2804
5938 msgid ""
5939 "In future versions of libguestfs it should also be possible to \"hot plug\" "
5940 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
5941 "requires changes to qemu."
5942 msgstr ""
5943
5944 #. type: =head2
5945 #: ../src/guestfs.pod:2808
5946 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
5947 msgstr ""
5948
5949 #. type: textblock
5950 #: ../src/guestfs.pod:2810
5951 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
5952 msgstr ""
5953
5954 #. type: textblock
5955 #: ../src/guestfs.pod:2812
5956 msgid ""
5957 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
5958 "vda>, and C</dev/vda1> through C</dev/vda15>)."
5959 msgstr ""
5960
5961 #. type: textblock
5962 #: ../src/guestfs.pod:2815
5963 msgid ""
5964 "If you attach a disk with more than 15 partitions, the extra partitions are "
5965 "ignored by libguestfs."
5966 msgstr ""
5967
5968 #. type: =head2
5969 #: ../src/guestfs.pod:2818
5970 msgid "MAXIMUM SIZE OF A DISK"
5971 msgstr ""
5972
5973 #. type: textblock
5974 #: ../src/guestfs.pod:2820
5975 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
5976 msgstr ""
5977
5978 #. type: textblock
5979 #: ../src/guestfs.pod:2822
5980 msgid ""
5981 "We have tested block devices up to 1 exabyte (2**60 or "
5982 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
5983 "filesystem."
5984 msgstr ""
5985
5986 #. type: textblock
5987 #: ../src/guestfs.pod:2826
5988 msgid ""
5989 "Although libguestfs probably does not impose any limit, the underlying host "
5990 "storage will.  If you store disk images on a host ext4 filesystem, then the "
5991 "maximum size will be limited by the maximum ext4 file size (currently 16 "
5992 "TB).  If you store disk images as host logical volumes then you are limited "
5993 "by the maximum size of an LV."
5994 msgstr ""
5995
5996 #. type: textblock
5997 #: ../src/guestfs.pod:2832
5998 msgid ""
5999 "For the hugest disk image files, we recommend using XFS on the host for "
6000 "storage."
6001 msgstr ""
6002
6003 #. type: =head2
6004 #: ../src/guestfs.pod:2835
6005 msgid "MAXIMUM SIZE OF A PARTITION"
6006 msgstr ""
6007
6008 #. type: textblock
6009 #: ../src/guestfs.pod:2837
6010 msgid ""
6011 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
6012 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
6013 "address a partition located beyond 2 TB on the disk."
6014 msgstr ""
6015
6016 #. type: textblock
6017 #: ../src/guestfs.pod:2841
6018 msgid ""
6019 "It is recommended that you use GPT partitions on disks which are larger than "
6020 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
6021 "which are theoretically larger than the largest disk we could support."
6022 msgstr ""
6023
6024 #. type: =head2
6025 #: ../src/guestfs.pod:2846
6026 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
6027 msgstr ""
6028
6029 #. type: textblock
6030 #: ../src/guestfs.pod:2848
6031 msgid ""
6032 "This depends on the filesystem type.  libguestfs itself does not impose any "
6033 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
6034 "what these limits are."
6035 msgstr ""
6036
6037 #. type: =head2
6038 #: ../src/guestfs.pod:2852
6039 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
6040 msgstr ""
6041
6042 #. type: textblock
6043 #: ../src/guestfs.pod:2854
6044 msgid ""
6045 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
6046 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
6047 "uploads and downloads."
6048 msgstr ""
6049
6050 #. type: =head2
6051 #: ../src/guestfs.pod:2858
6052 msgid "INSPECTION LIMITS"
6053 msgstr ""
6054
6055 #. type: textblock
6056 #: ../src/guestfs.pod:2860
6057 msgid ""
6058 "The inspection code has several arbitrary limits on things like the size of "
6059 "Windows Registry hive it will read, and the length of product name.  These "
6060 "are intended to stop a malicious guest from consuming arbitrary amounts of "
6061 "memory and disk space on the host, and should not be reached in practice.  "
6062 "See the source code for more information."
6063 msgstr ""
6064
6065 # type: =head1
6066 #. type: =head1
6067 #: ../src/guestfs.pod:2866 ../fish/guestfish.pod:1017
6068 #: ../test-tool/libguestfs-test-tool.pod:82
6069 msgid "ENVIRONMENT VARIABLES"
6070 msgstr ""
6071
6072 # type: =item
6073 #. type: =item
6074 #: ../src/guestfs.pod:2870 ../fish/guestfish.pod:1048
6075 msgid "LIBGUESTFS_APPEND"
6076 msgstr ""
6077
6078 # type: textblock
6079 #. type: textblock
6080 #: ../src/guestfs.pod:2872 ../fish/guestfish.pod:1050
6081 msgid "Pass additional options to the guest kernel."
6082 msgstr ""
6083
6084 # type: =item
6085 #. type: =item
6086 #: ../src/guestfs.pod:2874 ../fish/guestfish.pod:1052
6087 msgid "LIBGUESTFS_DEBUG"
6088 msgstr ""
6089
6090 # type: textblock
6091 #. type: textblock
6092 #: ../src/guestfs.pod:2876
6093 msgid ""
6094 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
6095 "effect as calling C<guestfs_set_verbose (g, 1)>."
6096 msgstr ""
6097
6098 # type: =item
6099 #. type: =item
6100 #: ../src/guestfs.pod:2879 ../fish/guestfish.pod:1057
6101 msgid "LIBGUESTFS_MEMSIZE"
6102 msgstr ""
6103
6104 # type: textblock
6105 #. type: textblock
6106 #: ../src/guestfs.pod:2881 ../fish/guestfish.pod:1059
6107 msgid ""
6108 "Set the memory allocated to the qemu process, in megabytes.  For example:"
6109 msgstr ""
6110
6111 # type: verbatim
6112 #. type: verbatim
6113 #: ../src/guestfs.pod:2884 ../fish/guestfish.pod:1062
6114 #, no-wrap
6115 msgid ""
6116 " LIBGUESTFS_MEMSIZE=700\n"
6117 "\n"
6118 msgstr ""
6119
6120 # type: =item
6121 #. type: =item
6122 #: ../src/guestfs.pod:2886 ../fish/guestfish.pod:1064
6123 msgid "LIBGUESTFS_PATH"
6124 msgstr ""
6125
6126 #. type: textblock
6127 #: ../src/guestfs.pod:2888
6128 msgid ""
6129 "Set the path that libguestfs uses to search for a supermin appliance.  See "
6130 "the discussion of paths in section L</PATH> above."
6131 msgstr ""
6132
6133 # type: =item
6134 #. type: =item
6135 #: ../src/guestfs.pod:2891 ../fish/guestfish.pod:1069
6136 msgid "LIBGUESTFS_QEMU"
6137 msgstr ""
6138
6139 # type: textblock
6140 #. type: textblock
6141 #: ../src/guestfs.pod:2893 ../fish/guestfish.pod:1071
6142 msgid ""
6143 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
6144 "which was found at compile time by the configure script is used."
6145 msgstr ""
6146
6147 # type: textblock
6148 #. type: textblock
6149 #: ../src/guestfs.pod:2897
6150 msgid "See also L</QEMU WRAPPERS> above."
6151 msgstr ""
6152
6153 # type: =item
6154 #. type: =item
6155 #: ../src/guestfs.pod:2899 ../fish/guestfish.pod:1075
6156 msgid "LIBGUESTFS_TRACE"
6157 msgstr ""
6158
6159 # type: textblock
6160 #. type: textblock
6161 #: ../src/guestfs.pod:2901
6162 msgid ""
6163 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
6164 "effect as calling C<guestfs_set_trace (g, 1)>."
6165 msgstr ""
6166
6167 # type: =item
6168 #. type: =item
6169 #: ../src/guestfs.pod:2904 ../fish/guestfish.pod:1084
6170 msgid "TMPDIR"
6171 msgstr ""
6172
6173 #. type: textblock
6174 #: ../src/guestfs.pod:2906 ../fish/guestfish.pod:1086
6175 msgid ""
6176 "Location of temporary directory, defaults to C</tmp> except for the cached "
6177 "supermin appliance which defaults to C</var/tmp>."
6178 msgstr ""
6179
6180 #. type: textblock
6181 #: ../src/guestfs.pod:2909 ../fish/guestfish.pod:1089
6182 msgid ""
6183 "If libguestfs was compiled to use the supermin appliance then the real "
6184 "appliance is cached in this directory, shared between all handles belonging "
6185 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
6186 "use in case C</var/tmp> is not large enough."
6187 msgstr ""
6188
6189 # type: =head1
6190 #. type: =head1
6191 #: ../src/guestfs.pod:2917 ../fish/guestfish.pod:1156
6192 #: ../test-tool/libguestfs-test-tool.pod:87 ../fuse/guestmount.pod:279
6193 #: ../tools/virt-win-reg.pl:744 ../tools/virt-list-filesystems.pl:189
6194 #: ../tools/virt-tar.pl:286 ../tools/virt-make-fs.pl:539
6195 #: ../tools/virt-list-partitions.pl:257
6196 msgid "SEE ALSO"
6197 msgstr ""
6198
6199 #. type: textblock
6200 #: ../src/guestfs.pod:2919
6201 msgid ""
6202 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
6203 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in"
6204 "(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems"
6205 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
6206 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
6207 "tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)"
6208 ">, L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
6209 msgstr ""
6210
6211 # type: textblock
6212 #. type: textblock
6213 #: ../src/guestfs.pod:2946
6214 msgid ""
6215 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
6216 "(8)>, L<disktype(1)>."
6217 msgstr ""
6218
6219 # type: =head1
6220 #. type: =head1
6221 #: ../src/guestfs.pod:2953 ../tools/virt-win-reg.pl:759
6222 #: ../tools/virt-make-fs.pl:553
6223 msgid "BUGS"
6224 msgstr ""
6225
6226 # type: textblock
6227 #. type: textblock
6228 #: ../src/guestfs.pod:2955
6229 msgid "To get a list of bugs against libguestfs use this link:"
6230 msgstr ""
6231
6232 # type: textblock
6233 #. type: textblock
6234 #: ../src/guestfs.pod:2957
6235 msgid ""
6236 "L<https://bugzilla.redhat.com/buglist.cgi?"
6237 "component=libguestfs&product=Virtualization+Tools>"
6238 msgstr ""
6239
6240 # type: textblock
6241 #. type: textblock
6242 #: ../src/guestfs.pod:2959
6243 msgid "To report a new bug against libguestfs use this link:"
6244 msgstr ""
6245
6246 # type: textblock
6247 #. type: textblock
6248 #: ../src/guestfs.pod:2961
6249 msgid ""
6250 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
6251 "component=libguestfs&product=Virtualization+Tools>"
6252 msgstr ""
6253
6254 # type: textblock
6255 #. type: textblock
6256 #: ../src/guestfs.pod:2963
6257 msgid "When reporting a bug, please check:"
6258 msgstr ""
6259
6260 # type: textblock
6261 #. type: textblock
6262 #: ../src/guestfs.pod:2969
6263 msgid "That the bug hasn't been reported already."
6264 msgstr ""
6265
6266 # type: textblock
6267 #. type: textblock
6268 #: ../src/guestfs.pod:2973
6269 msgid "That you are testing a recent version."
6270 msgstr ""
6271
6272 # type: textblock
6273 #. type: textblock
6274 #: ../src/guestfs.pod:2977
6275 msgid "Describe the bug accurately, and give a way to reproduce it."
6276 msgstr ""
6277
6278 # type: textblock
6279 #. type: textblock
6280 #: ../src/guestfs.pod:2981
6281 msgid ""
6282 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
6283 "bug report."
6284 msgstr ""
6285
6286 # type: =head1
6287 #. type: =head1
6288 #: ../src/guestfs.pod:2986 ../fish/guestfish.pod:1180
6289 #: ../test-tool/libguestfs-test-tool.pod:93 ../fuse/guestmount.pod:290
6290 msgid "AUTHORS"
6291 msgstr ""
6292
6293 # type: textblock
6294 #. type: textblock
6295 #: ../src/guestfs.pod:2988 ../fish/guestfish.pod:1182
6296 #: ../test-tool/libguestfs-test-tool.pod:95 ../fuse/guestmount.pod:292
6297 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
6298 msgstr ""
6299
6300 # type: =head1
6301 #. type: =head1
6302 #: ../src/guestfs.pod:2990 ../fish/guestfish.pod:1184
6303 #: ../test-tool/libguestfs-test-tool.pod:97 ../fuse/guestmount.pod:294
6304 #: ../tools/virt-win-reg.pl:774 ../tools/virt-list-filesystems.pl:206
6305 #: ../tools/virt-tar.pl:305 ../tools/virt-make-fs.pl:568
6306 #: ../tools/virt-list-partitions.pl:273
6307 msgid "COPYRIGHT"
6308 msgstr ""
6309
6310 #. type: textblock
6311 #: ../src/guestfs.pod:2992 ../fish/guestfish.pod:1186
6312 #: ../test-tool/libguestfs-test-tool.pod:99
6313 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
6314 msgstr ""
6315
6316 # type: textblock
6317 #. type: textblock
6318 #: ../src/guestfs.pod:2995
6319 msgid ""
6320 "This library is free software; you can redistribute it and/or modify it "
6321 "under the terms of the GNU Lesser General Public License as published by the "
6322 "Free Software Foundation; either version 2 of the License, or (at your "
6323 "option) any later version."
6324 msgstr ""
6325
6326 # type: textblock
6327 #. type: textblock
6328 #: ../src/guestfs.pod:3000
6329 msgid ""
6330 "This library is distributed in the hope that it will be useful, but WITHOUT "
6331 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
6332 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
6333 "for more details."
6334 msgstr ""
6335
6336 # type: textblock
6337 #. type: textblock
6338 #: ../src/guestfs.pod:3005
6339 msgid ""
6340 "You should have received a copy of the GNU Lesser General Public License "
6341 "along with this library; if not, write to the Free Software Foundation, "
6342 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
6343 msgstr ""
6344
6345 # type: =head2
6346 #. type: =head2
6347 #: ../src/guestfs-actions.pod:1
6348 msgid "guestfs_add_cdrom"
6349 msgstr ""
6350
6351 # type: verbatim
6352 #. type: verbatim
6353 #: ../src/guestfs-actions.pod:3
6354 #, no-wrap
6355 msgid ""
6356 " int\n"
6357 " guestfs_add_cdrom (guestfs_h *g,\n"
6358 "                    const char *filename);\n"
6359 "\n"
6360 msgstr ""
6361
6362 # type: textblock
6363 #. type: textblock
6364 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
6365 msgid "This function adds a virtual CD-ROM disk image to the guest."
6366 msgstr ""
6367
6368 #. type: textblock
6369 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
6370 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
6371 msgstr ""
6372
6373 # type: textblock
6374 #. type: textblock
6375 #: ../src/guestfs-actions.pod:17
6376 msgid ""
6377 "This call checks for the existence of C<filename>.  This stops you from "
6378 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6379 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
6380 "instead."
6381 msgstr ""
6382
6383 # type: textblock
6384 #. type: textblock
6385 #: ../src/guestfs-actions.pod:24
6386 msgid ""
6387 "If you just want to add an ISO file (often you use this as an efficient way "
6388 "to transfer large files into the guest), then you should probably use "
6389 "C<guestfs_add_drive_ro> instead."
6390 msgstr ""
6391
6392 # type: textblock
6393 #. type: textblock
6394 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:140
6395 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
6396 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
6397 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
6398 #: ../src/guestfs-actions.pod:422 ../src/guestfs-actions.pod:442
6399 #: ../src/guestfs-actions.pod:456 ../src/guestfs-actions.pod:501
6400 #: ../src/guestfs-actions.pod:529 ../src/guestfs-actions.pod:547
6401 #: ../src/guestfs-actions.pod:614 ../src/guestfs-actions.pod:647
6402 #: ../src/guestfs-actions.pod:661 ../src/guestfs-actions.pod:676
6403 #: ../src/guestfs-actions.pod:775 ../src/guestfs-actions.pod:793
6404 #: ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:821
6405 #: ../src/guestfs-actions.pod:982 ../src/guestfs-actions.pod:1002
6406 #: ../src/guestfs-actions.pod:1020 ../src/guestfs-actions.pod:1104
6407 #: ../src/guestfs-actions.pod:1122 ../src/guestfs-actions.pod:1141
6408 #: ../src/guestfs-actions.pod:1155 ../src/guestfs-actions.pod:1175
6409 #: ../src/guestfs-actions.pod:1245 ../src/guestfs-actions.pod:1276
6410 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1343
6411 #: ../src/guestfs-actions.pod:1449 ../src/guestfs-actions.pod:1483
6412 #: ../src/guestfs-actions.pod:1698 ../src/guestfs-actions.pod:1720
6413 #: ../src/guestfs-actions.pod:1807 ../src/guestfs-actions.pod:2269
6414 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:2474
6415 #: ../src/guestfs-actions.pod:2509 ../src/guestfs-actions.pod:3529
6416 #: ../src/guestfs-actions.pod:3544 ../src/guestfs-actions.pod:3569
6417 #: ../src/guestfs-actions.pod:3736 ../src/guestfs-actions.pod:3750
6418 #: ../src/guestfs-actions.pod:3763 ../src/guestfs-actions.pod:3777
6419 #: ../src/guestfs-actions.pod:3792 ../src/guestfs-actions.pod:3828
6420 #: ../src/guestfs-actions.pod:3900 ../src/guestfs-actions.pod:3920
6421 #: ../src/guestfs-actions.pod:3937 ../src/guestfs-actions.pod:3960
6422 #: ../src/guestfs-actions.pod:3983 ../src/guestfs-actions.pod:4015
6423 #: ../src/guestfs-actions.pod:4034 ../src/guestfs-actions.pod:4053
6424 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4100
6425 #: ../src/guestfs-actions.pod:4136 ../src/guestfs-actions.pod:4152
6426 #: ../src/guestfs-actions.pod:4165 ../src/guestfs-actions.pod:4180
6427 #: ../src/guestfs-actions.pod:4197 ../src/guestfs-actions.pod:4290
6428 #: ../src/guestfs-actions.pod:4310 ../src/guestfs-actions.pod:4323
6429 #: ../src/guestfs-actions.pod:4374 ../src/guestfs-actions.pod:4392
6430 #: ../src/guestfs-actions.pod:4410 ../src/guestfs-actions.pod:4426
6431 #: ../src/guestfs-actions.pod:4440 ../src/guestfs-actions.pod:4454
6432 #: ../src/guestfs-actions.pod:4471 ../src/guestfs-actions.pod:4486
6433 #: ../src/guestfs-actions.pod:4506 ../src/guestfs-actions.pod:4564
6434 #: ../src/guestfs-actions.pod:4637 ../src/guestfs-actions.pod:4668
6435 #: ../src/guestfs-actions.pod:4687 ../src/guestfs-actions.pod:4706
6436 #: ../src/guestfs-actions.pod:4718 ../src/guestfs-actions.pod:4735
6437 #: ../src/guestfs-actions.pod:4748 ../src/guestfs-actions.pod:4763
6438 #: ../src/guestfs-actions.pod:4778 ../src/guestfs-actions.pod:4813
6439 #: ../src/guestfs-actions.pod:4846 ../src/guestfs-actions.pod:4883
6440 #: ../src/guestfs-actions.pod:4903 ../src/guestfs-actions.pod:4917
6441 #: ../src/guestfs-actions.pod:4934 ../src/guestfs-actions.pod:4983
6442 #: ../src/guestfs-actions.pod:5020 ../src/guestfs-actions.pod:5034
6443 #: ../src/guestfs-actions.pod:5062 ../src/guestfs-actions.pod:5079
6444 #: ../src/guestfs-actions.pod:5097 ../src/guestfs-actions.pod:5231
6445 #: ../src/guestfs-actions.pod:5288 ../src/guestfs-actions.pod:5310
6446 #: ../src/guestfs-actions.pod:5328 ../src/guestfs-actions.pod:5360
6447 #: ../src/guestfs-actions.pod:5426 ../src/guestfs-actions.pod:5443
6448 #: ../src/guestfs-actions.pod:5456 ../src/guestfs-actions.pod:5470
6449 #: ../src/guestfs-actions.pod:5759 ../src/guestfs-actions.pod:5778
6450 #: ../src/guestfs-actions.pod:5797 ../src/guestfs-actions.pod:5809
6451 #: ../src/guestfs-actions.pod:5821 ../src/guestfs-actions.pod:5835
6452 #: ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:5861
6453 #: ../src/guestfs-actions.pod:5877 ../src/guestfs-actions.pod:5898
6454 #: ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:5936
6455 #: ../src/guestfs-actions.pod:5966 ../src/guestfs-actions.pod:5982
6456 #: ../src/guestfs-actions.pod:6005 ../src/guestfs-actions.pod:6023
6457 #: ../src/guestfs-actions.pod:6042 ../src/guestfs-actions.pod:6063
6458 #: ../src/guestfs-actions.pod:6082 ../src/guestfs-actions.pod:6099
6459 #: ../src/guestfs-actions.pod:6127 ../src/guestfs-actions.pod:6151
6460 #: ../src/guestfs-actions.pod:6170 ../src/guestfs-actions.pod:6194
6461 #: ../src/guestfs-actions.pod:6213 ../src/guestfs-actions.pod:6228
6462 #: ../src/guestfs-actions.pod:6247 ../src/guestfs-actions.pod:6284
6463 #: ../src/guestfs-actions.pod:6314 ../src/guestfs-actions.pod:6347
6464 #: ../src/guestfs-actions.pod:6469 ../src/guestfs-actions.pod:6590
6465 #: ../src/guestfs-actions.pod:6602 ../src/guestfs-actions.pod:6615
6466 #: ../src/guestfs-actions.pod:6628 ../src/guestfs-actions.pod:6650
6467 #: ../src/guestfs-actions.pod:6663 ../src/guestfs-actions.pod:6676
6468 #: ../src/guestfs-actions.pod:6689 ../src/guestfs-actions.pod:6704
6469 #: ../src/guestfs-actions.pod:6763 ../src/guestfs-actions.pod:6780
6470 #: ../src/guestfs-actions.pod:6796 ../src/guestfs-actions.pod:6812
6471 #: ../src/guestfs-actions.pod:6829 ../src/guestfs-actions.pod:6842
6472 #: ../src/guestfs-actions.pod:6862 ../src/guestfs-actions.pod:6898
6473 #: ../src/guestfs-actions.pod:6912 ../src/guestfs-actions.pod:6953
6474 #: ../src/guestfs-actions.pod:6966 ../src/guestfs-actions.pod:6984
6475 #: ../src/guestfs-actions.pod:7018 ../src/guestfs-actions.pod:7054
6476 #: ../src/guestfs-actions.pod:7173 ../src/guestfs-actions.pod:7191
6477 #: ../src/guestfs-actions.pod:7205 ../src/guestfs-actions.pod:7260
6478 #: ../src/guestfs-actions.pod:7273 ../src/guestfs-actions.pod:7318
6479 #: ../src/guestfs-actions.pod:7351 ../src/guestfs-actions.pod:7412
6480 #: ../src/guestfs-actions.pod:7438 ../src/guestfs-actions.pod:7505
6481 #: ../src/guestfs-actions.pod:7524 ../src/guestfs-actions.pod:7553
6482 msgid "This function returns 0 on success or -1 on error."
6483 msgstr ""
6484
6485 # type: textblock
6486 #. type: textblock
6487 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:254
6488 #: ../src/guestfs-actions.pod:275 ../fish/guestfish-actions.pod:28
6489 #: ../fish/guestfish-actions.pod:163 ../fish/guestfish-actions.pod:177
6490 msgid ""
6491 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
6492 "instead."
6493 msgstr ""
6494
6495 # type: textblock
6496 #. type: textblock
6497 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257
6498 #: ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1454
6499 #: ../src/guestfs-actions.pod:1947 ../src/guestfs-actions.pod:1968
6500 #: ../src/guestfs-actions.pod:4511 ../src/guestfs-actions.pod:4818
6501 #: ../src/guestfs-actions.pod:6292 ../src/guestfs-actions.pod:6322
6502 #: ../src/guestfs-actions.pod:6355 ../src/guestfs-actions.pod:6414
6503 #: ../src/guestfs-actions.pod:7356 ../src/guestfs-actions.pod:7446
6504 #: ../src/guestfs-actions.pod:7616 ../fish/guestfish-actions.pod:31
6505 #: ../fish/guestfish-actions.pod:166 ../fish/guestfish-actions.pod:180
6506 #: ../fish/guestfish-actions.pod:961 ../fish/guestfish-actions.pod:1321
6507 #: ../fish/guestfish-actions.pod:1335 ../fish/guestfish-actions.pod:3038
6508 #: ../fish/guestfish-actions.pod:3235 ../fish/guestfish-actions.pod:4220
6509 #: ../fish/guestfish-actions.pod:4243 ../fish/guestfish-actions.pod:4265
6510 #: ../fish/guestfish-actions.pod:4303 ../fish/guestfish-actions.pod:4944
6511 #: ../fish/guestfish-actions.pod:5042
6512 msgid ""
6513 "Deprecated functions will not be removed from the API, but the fact that "
6514 "they are deprecated indicates that there are problems with correct use of "
6515 "these functions."
6516 msgstr ""
6517
6518 # type: textblock
6519 #. type: textblock
6520 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
6521 #: ../src/guestfs-actions.pod:1106 ../src/guestfs-actions.pod:1919
6522 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2120
6523 #: ../src/guestfs-actions.pod:3531 ../src/guestfs-actions.pod:3551
6524 #: ../src/guestfs-actions.pod:4822 ../src/guestfs-actions.pod:5984
6525 #: ../src/guestfs-actions.pod:6101 ../src/guestfs-actions.pod:6215
6526 #: ../src/guestfs-actions.pod:6706 ../src/guestfs-actions.pod:6831
6527 #: ../src/guestfs-actions.pod:7360
6528 msgid "(Added in 0.3)"
6529 msgstr ""
6530
6531 # type: =head2
6532 #. type: =head2
6533 #: ../src/guestfs-actions.pod:41
6534 msgid "guestfs_add_domain"
6535 msgstr ""
6536
6537 # type: verbatim
6538 #. type: verbatim
6539 #: ../src/guestfs-actions.pod:43
6540 #, no-wrap
6541 msgid ""
6542 " int\n"
6543 " guestfs_add_domain (guestfs_h *g,\n"
6544 "                     const char *dom,\n"
6545 "                     ...);\n"
6546 "\n"
6547 msgstr ""
6548
6549 # type: textblock
6550 #. type: textblock
6551 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
6552 #: ../src/guestfs-actions.pod:2750 ../src/guestfs-actions.pod:4525
6553 #: ../src/guestfs-actions.pod:4832
6554 msgid ""
6555 "You may supply a list of optional arguments to this call.  Use zero or more "
6556 "of the following pairs of parameters, and terminate the list with C<-1> on "
6557 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
6558 msgstr ""
6559
6560 #. type: verbatim
6561 #: ../src/guestfs-actions.pod:53
6562 #, no-wrap
6563 msgid ""
6564 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
6565 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
6566 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
6567 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
6568 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
6569 "\n"
6570 msgstr ""
6571
6572 # type: textblock
6573 #. type: textblock
6574 #: ../src/guestfs-actions.pod:59
6575 msgid ""
6576 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6577 "It works by connecting to libvirt, requesting the domain and domain XML from "
6578 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
6579 "one."
6580 msgstr ""
6581
6582 # type: textblock
6583 #. type: textblock
6584 #: ../src/guestfs-actions.pod:64 ../fish/guestfish-actions.pod:46
6585 msgid ""
6586 "The number of disks added is returned.  This operation is atomic: if an "
6587 "error is returned, then no disks are added."
6588 msgstr ""
6589
6590 # type: textblock
6591 #. type: textblock
6592 #: ../src/guestfs-actions.pod:67 ../fish/guestfish-actions.pod:49
6593 msgid ""
6594 "This function does some minimal checks to make sure the libvirt domain is "
6595 "not running (unless C<readonly> is true).  In a future version we will try "
6596 "to acquire the libvirt lock on each disk."
6597 msgstr ""
6598
6599 # type: textblock
6600 #. type: textblock
6601 #: ../src/guestfs-actions.pod:71 ../fish/guestfish-actions.pod:53
6602 msgid ""
6603 "Disks must be accessible locally.  This often means that adding disks from a "
6604 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6605 "unless those disks are accessible via the same device path locally too."
6606 msgstr ""
6607
6608 #. type: textblock
6609 #: ../src/guestfs-actions.pod:76 ../fish/guestfish-actions.pod:58
6610 msgid ""
6611 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6612 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
6613 "libvirt URI (or one set through an environment variable, see the libvirt "
6614 "documentation for full details)."
6615 msgstr ""
6616
6617 #. type: textblock
6618 #: ../src/guestfs-actions.pod:82 ../fish/guestfish-actions.pod:64
6619 msgid ""
6620 "The optional C<live> flag controls whether this call will try to connect to "
6621 "a running virtual machine C<guestfsd> process if it sees a suitable "
6622 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6623 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6624 "DAEMONS> for more information."
6625 msgstr ""
6626
6627 #. type: textblock
6628 #: ../src/guestfs-actions.pod:89 ../fish/guestfish-actions.pod:71
6629 msgid ""
6630 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6631 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6632 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6633 "as usual."
6634 msgstr ""
6635
6636 # type: textblock
6637 #. type: textblock
6638 #: ../src/guestfs-actions.pod:94
6639 msgid ""
6640 "The other optional parameters are passed directly through to "
6641 "C<guestfs_add_drive_opts>."
6642 msgstr ""
6643
6644 # type: textblock
6645 #. type: textblock
6646 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
6647 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:693
6648 #: ../src/guestfs-actions.pod:724 ../src/guestfs-actions.pod:742
6649 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:1321
6650 #: ../src/guestfs-actions.pod:1677 ../src/guestfs-actions.pod:1880
6651 #: ../src/guestfs-actions.pod:1989 ../src/guestfs-actions.pod:2029
6652 #: ../src/guestfs-actions.pod:2084 ../src/guestfs-actions.pod:2107
6653 #: ../src/guestfs-actions.pod:2400 ../src/guestfs-actions.pod:2866
6654 #: ../src/guestfs-actions.pod:2884 ../src/guestfs-actions.pod:5006
6655 #: ../src/guestfs-actions.pod:5134 ../src/guestfs-actions.pod:5540
6656 #: ../src/guestfs-actions.pod:5566 ../src/guestfs-actions.pod:6939
6657 #: ../src/guestfs-actions.pod:7371 ../src/guestfs-actions.pod:7384
6658 #: ../src/guestfs-actions.pod:7397
6659 msgid "On error this function returns -1."
6660 msgstr ""
6661
6662 # type: textblock
6663 #. type: textblock
6664 #: ../src/guestfs-actions.pod:99
6665 msgid "(Added in 1.7.4)"
6666 msgstr ""
6667
6668 # type: =head2
6669 #. type: =head2
6670 #: ../src/guestfs-actions.pod:101
6671 msgid "guestfs_add_domain_va"
6672 msgstr ""
6673
6674 # type: verbatim
6675 #. type: verbatim
6676 #: ../src/guestfs-actions.pod:103
6677 #, no-wrap
6678 msgid ""
6679 " int\n"
6680 " guestfs_add_domain_va (guestfs_h *g,\n"
6681 "                        const char *dom,\n"
6682 "                        va_list args);\n"
6683 "\n"
6684 msgstr ""
6685
6686 # type: textblock
6687 #. type: textblock
6688 #: ../src/guestfs-actions.pod:108
6689 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
6690 msgstr ""
6691
6692 # type: textblock
6693 #. type: textblock
6694 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
6695 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
6696 #: ../src/guestfs-actions.pod:2832 ../src/guestfs-actions.pod:2844
6697 #: ../src/guestfs-actions.pod:4578 ../src/guestfs-actions.pod:4590
6698 #: ../src/guestfs-actions.pod:4858 ../src/guestfs-actions.pod:4870
6699 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
6700 msgstr ""
6701
6702 # type: =head2
6703 #. type: =head2
6704 #: ../src/guestfs-actions.pod:112
6705 msgid "guestfs_add_domain_argv"
6706 msgstr ""
6707
6708 # type: verbatim
6709 #. type: verbatim
6710 #: ../src/guestfs-actions.pod:114
6711 #, no-wrap
6712 msgid ""
6713 " int\n"
6714 " guestfs_add_domain_argv (guestfs_h *g,\n"
6715 "                          const char *dom,\n"
6716 "                          const struct guestfs_add_domain_argv *optargs);\n"
6717 "\n"
6718 msgstr ""
6719
6720 # type: textblock
6721 #. type: textblock
6722 #: ../src/guestfs-actions.pod:119
6723 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
6724 msgstr ""
6725
6726 # type: =head2
6727 #. type: =head2
6728 #: ../src/guestfs-actions.pod:123
6729 msgid "guestfs_add_drive"
6730 msgstr ""
6731
6732 # type: verbatim
6733 #. type: verbatim
6734 #: ../src/guestfs-actions.pod:125
6735 #, no-wrap
6736 msgid ""
6737 " int\n"
6738 " guestfs_add_drive (guestfs_h *g,\n"
6739 "                    const char *filename);\n"
6740 "\n"
6741 msgstr ""
6742
6743 # type: textblock
6744 #. type: textblock
6745 #: ../src/guestfs-actions.pod:129
6746 msgid ""
6747 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
6748 "optional parameters, so the disk is added writable, with the format being "
6749 "detected automatically."
6750 msgstr ""
6751
6752 # type: textblock
6753 #. type: textblock
6754 #: ../src/guestfs-actions.pod:133
6755 msgid ""
6756 "Automatic detection of the format opens you up to a potential security hole "
6757 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6758 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6759 "you should think about replacing calls to this function with calls to "
6760 "C<guestfs_add_drive_opts>, and specifying the format."
6761 msgstr ""
6762
6763 # type: =head2
6764 #. type: =head2
6765 #: ../src/guestfs-actions.pod:144
6766 msgid "guestfs_add_drive_opts"
6767 msgstr ""
6768
6769 # type: verbatim
6770 #. type: verbatim
6771 #: ../src/guestfs-actions.pod:146
6772 #, no-wrap
6773 msgid ""
6774 " int\n"
6775 " guestfs_add_drive_opts (guestfs_h *g,\n"
6776 "                         const char *filename,\n"
6777 "                         ...);\n"
6778 "\n"
6779 msgstr ""
6780
6781 # type: verbatim
6782 #. type: verbatim
6783 #: ../src/guestfs-actions.pod:156
6784 #, no-wrap
6785 msgid ""
6786 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
6787 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
6788 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
6789 "\n"
6790 msgstr ""
6791
6792 # type: textblock
6793 #. type: textblock
6794 #: ../src/guestfs-actions.pod:160 ../fish/guestfish-actions.pod:102
6795 msgid ""
6796 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6797 "The first time you call this function, the disk appears as C</dev/sda>, the "
6798 "second time as C</dev/sdb>, and so on."
6799 msgstr ""
6800
6801 # type: textblock
6802 #. type: textblock
6803 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:107
6804 msgid ""
6805 "You don't necessarily need to be root when using libguestfs.  However you "
6806 "obviously do need sufficient permissions to access the filename for whatever "
6807 "operations you want to perform (ie. read access if you just want to read the "
6808 "image or write access if you want to modify the image)."
6809 msgstr ""
6810
6811 # type: textblock
6812 #. type: textblock
6813 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:113
6814 msgid "This call checks that C<filename> exists."
6815 msgstr ""
6816
6817 # type: textblock
6818 #. type: textblock
6819 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4536
6820 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3049
6821 msgid "The optional arguments are:"
6822 msgstr ""
6823
6824 # type: =item
6825 #. type: =item
6826 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:119
6827 msgid "C<readonly>"
6828 msgstr ""
6829
6830 # type: textblock
6831 #. type: textblock
6832 #: ../src/guestfs-actions.pod:179 ../fish/guestfish-actions.pod:121
6833 msgid ""
6834 "If true then the image is treated as read-only.  Writes are still allowed, "
6835 "but they are stored in a temporary snapshot overlay which is discarded at "
6836 "the end.  The disk that you add is not modified."
6837 msgstr ""
6838
6839 # type: =item
6840 #. type: =item
6841 #: ../src/guestfs-actions.pod:183 ../fish/guestfish-actions.pod:125
6842 msgid "C<format>"
6843 msgstr ""
6844
6845 # type: textblock
6846 #. type: textblock
6847 #: ../src/guestfs-actions.pod:185
6848 msgid ""
6849 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
6850 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
6851 "Possible formats include C<raw> and C<qcow2>."
6852 msgstr ""
6853
6854 # type: textblock
6855 #. type: textblock
6856 #: ../src/guestfs-actions.pod:189 ../fish/guestfish-actions.pod:131
6857 msgid ""
6858 "Automatic detection of the format opens you up to a potential security hole "
6859 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6860 "RHBZ#642934.  Specifying the format closes this security hole."
6861 msgstr ""
6862
6863 # type: =item
6864 #. type: =item
6865 #: ../src/guestfs-actions.pod:194 ../fish/guestfish-actions.pod:136
6866 msgid "C<iface>"
6867 msgstr ""
6868
6869 # type: textblock
6870 #. type: textblock
6871 #: ../src/guestfs-actions.pod:196
6872 msgid ""
6873 "This rarely-used option lets you emulate the behaviour of the deprecated "
6874 "C<guestfs_add_drive_with_if> call (q.v.)"
6875 msgstr ""
6876
6877 # type: textblock
6878 #. type: textblock
6879 #: ../src/guestfs-actions.pod:203
6880 msgid "(Added in 1.5.23)"
6881 msgstr ""
6882
6883 # type: =head2
6884 #. type: =head2
6885 #: ../src/guestfs-actions.pod:205
6886 msgid "guestfs_add_drive_opts_va"
6887 msgstr ""
6888
6889 # type: verbatim
6890 #. type: verbatim
6891 #: ../src/guestfs-actions.pod:207
6892 #, no-wrap
6893 msgid ""
6894 " int\n"
6895 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
6896 "                            const char *filename,\n"
6897 "                            va_list args);\n"
6898 "\n"
6899 msgstr ""
6900
6901 # type: textblock
6902 #. type: textblock
6903 #: ../src/guestfs-actions.pod:212
6904 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
6905 msgstr ""
6906
6907 # type: =head2
6908 #. type: =head2
6909 #: ../src/guestfs-actions.pod:216
6910 msgid "guestfs_add_drive_opts_argv"
6911 msgstr ""
6912
6913 # type: verbatim
6914 #. type: verbatim
6915 #: ../src/guestfs-actions.pod:218
6916 #, no-wrap
6917 msgid ""
6918 " int\n"
6919 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
6920 "                              const char *filename,\n"
6921 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
6922 "\n"
6923 msgstr ""
6924
6925 # type: textblock
6926 #. type: textblock
6927 #: ../src/guestfs-actions.pod:223
6928 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
6929 msgstr ""
6930
6931 # type: =head2
6932 #. type: =head2
6933 #: ../src/guestfs-actions.pod:227
6934 msgid "guestfs_add_drive_ro"
6935 msgstr ""
6936
6937 # type: verbatim
6938 #. type: verbatim
6939 #: ../src/guestfs-actions.pod:229
6940 #, no-wrap
6941 msgid ""
6942 " int\n"
6943 " guestfs_add_drive_ro (guestfs_h *g,\n"
6944 "                       const char *filename);\n"
6945 "\n"
6946 msgstr ""
6947
6948 # type: textblock
6949 #. type: textblock
6950 #: ../src/guestfs-actions.pod:233
6951 msgid ""
6952 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
6953 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
6954 "disk is added read-only, with the format being detected automatically."
6955 msgstr ""
6956
6957 # type: textblock
6958 #. type: textblock
6959 #: ../src/guestfs-actions.pod:240
6960 msgid "(Added in 1.0.38)"
6961 msgstr ""
6962
6963 # type: =head2
6964 #. type: =head2
6965 #: ../src/guestfs-actions.pod:242
6966 msgid "guestfs_add_drive_ro_with_if"
6967 msgstr ""
6968
6969 # type: verbatim
6970 #. type: verbatim
6971 #: ../src/guestfs-actions.pod:244
6972 #, no-wrap
6973 msgid ""
6974 " int\n"
6975 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
6976 "                               const char *filename,\n"
6977 "                               const char *iface);\n"
6978 "\n"
6979 msgstr ""
6980
6981 # type: textblock
6982 #. type: textblock
6983 #: ../src/guestfs-actions.pod:249
6984 msgid ""
6985 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
6986 "QEMU interface emulation to use at run time."
6987 msgstr ""
6988
6989 # type: textblock
6990 #. type: textblock
6991 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
6992 #: ../src/guestfs-actions.pod:2359
6993 msgid "(Added in 1.0.84)"
6994 msgstr ""
6995
6996 # type: =head2
6997 #. type: =head2
6998 #: ../src/guestfs-actions.pod:263
6999 msgid "guestfs_add_drive_with_if"
7000 msgstr ""
7001
7002 # type: verbatim
7003 #. type: verbatim
7004 #: ../src/guestfs-actions.pod:265
7005 #, no-wrap
7006 msgid ""
7007 " int\n"
7008 " guestfs_add_drive_with_if (guestfs_h *g,\n"
7009 "                            const char *filename,\n"
7010 "                            const char *iface);\n"
7011 "\n"
7012 msgstr ""
7013
7014 # type: textblock
7015 #. type: textblock
7016 #: ../src/guestfs-actions.pod:270
7017 msgid ""
7018 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
7019 "QEMU interface emulation to use at run time."
7020 msgstr ""
7021
7022 # type: =head2
7023 #. type: =head2
7024 #: ../src/guestfs-actions.pod:284
7025 msgid "guestfs_aug_clear"
7026 msgstr ""
7027
7028 # type: verbatim
7029 #. type: verbatim
7030 #: ../src/guestfs-actions.pod:286
7031 #, no-wrap
7032 msgid ""
7033 " int\n"
7034 " guestfs_aug_clear (guestfs_h *g,\n"
7035 "                    const char *augpath);\n"
7036 "\n"
7037 msgstr ""
7038
7039 # type: textblock
7040 #. type: textblock
7041 #: ../src/guestfs-actions.pod:290 ../fish/guestfish-actions.pod:188
7042 msgid ""
7043 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
7044 "L<augtool(1)> C<clear> command."
7045 msgstr ""
7046
7047 # type: textblock
7048 #. type: textblock
7049 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2109
7050 msgid "(Added in 1.3.4)"
7051 msgstr ""
7052
7053 # type: =head2
7054 #. type: =head2
7055 #: ../src/guestfs-actions.pod:297
7056 msgid "guestfs_aug_close"
7057 msgstr ""
7058
7059 # type: verbatim
7060 #. type: verbatim
7061 #: ../src/guestfs-actions.pod:299
7062 #, no-wrap
7063 msgid ""
7064 " int\n"
7065 " guestfs_aug_close (guestfs_h *g);\n"
7066 "\n"
7067 msgstr ""
7068
7069 # type: textblock
7070 #. type: textblock
7071 #: ../src/guestfs-actions.pod:302
7072 msgid ""
7073 "Close the current Augeas handle and free up any resources used by it.  After "
7074 "calling this, you have to call C<guestfs_aug_init> again before you can use "
7075 "any other Augeas functions."
7076 msgstr ""
7077
7078 # type: textblock
7079 #. type: textblock
7080 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
7081 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
7082 #: ../src/guestfs-actions.pod:424 ../src/guestfs-actions.pod:444
7083 #: ../src/guestfs-actions.pod:458 ../src/guestfs-actions.pod:489
7084 #: ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:517
7085 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:549
7086 #: ../src/guestfs-actions.pod:5617
7087 msgid "(Added in 0.7)"
7088 msgstr ""
7089
7090 # type: =head2
7091 #. type: =head2
7092 #: ../src/guestfs-actions.pod:311
7093 msgid "guestfs_aug_defnode"
7094 msgstr ""
7095
7096 # type: verbatim
7097 #. type: verbatim
7098 #: ../src/guestfs-actions.pod:313
7099 #, no-wrap
7100 msgid ""
7101 " struct guestfs_int_bool *\n"
7102 " guestfs_aug_defnode (guestfs_h *g,\n"
7103 "                      const char *name,\n"
7104 "                      const char *expr,\n"
7105 "                      const char *val);\n"
7106 "\n"
7107 msgstr ""
7108
7109 # type: textblock
7110 #. type: textblock
7111 #: ../src/guestfs-actions.pod:319 ../fish/guestfish-actions.pod:204
7112 msgid ""
7113 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
7114 msgstr ""
7115
7116 # type: textblock
7117 #. type: textblock
7118 #: ../src/guestfs-actions.pod:322
7119 msgid ""
7120 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
7121 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
7122 "containing that single node."
7123 msgstr ""
7124
7125 # type: textblock
7126 #. type: textblock
7127 #: ../src/guestfs-actions.pod:326 ../fish/guestfish-actions.pod:211
7128 msgid ""
7129 "On success this returns a pair containing the number of nodes in the "
7130 "nodeset, and a boolean flag if a node was created."
7131 msgstr ""
7132
7133 # type: textblock
7134 #. type: textblock
7135 #: ../src/guestfs-actions.pod:330
7136 msgid ""
7137 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
7138 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
7139 msgstr ""
7140
7141 # type: =head2
7142 #. type: =head2
7143 #: ../src/guestfs-actions.pod:336
7144 msgid "guestfs_aug_defvar"
7145 msgstr ""
7146
7147 # type: verbatim
7148 #. type: verbatim
7149 #: ../src/guestfs-actions.pod:338
7150 #, no-wrap
7151 msgid ""
7152 " int\n"
7153 " guestfs_aug_defvar (guestfs_h *g,\n"
7154 "                     const char *name,\n"
7155 "                     const char *expr);\n"
7156 "\n"
7157 msgstr ""
7158
7159 # type: textblock
7160 #. type: textblock
7161 #: ../src/guestfs-actions.pod:343 ../fish/guestfish-actions.pod:219
7162 msgid ""
7163 "Defines an Augeas variable C<name> whose value is the result of evaluating "
7164 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
7165 msgstr ""
7166
7167 # type: textblock
7168 #. type: textblock
7169 #: ../src/guestfs-actions.pod:347 ../fish/guestfish-actions.pod:223
7170 msgid ""
7171 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
7172 "evaluates to something which is not a nodeset."
7173 msgstr ""
7174
7175 # type: =head2
7176 #. type: =head2
7177 #: ../src/guestfs-actions.pod:354
7178 msgid "guestfs_aug_get"
7179 msgstr ""
7180
7181 # type: verbatim
7182 #. type: verbatim
7183 #: ../src/guestfs-actions.pod:356
7184 #, no-wrap
7185 msgid ""
7186 " char *\n"
7187 " guestfs_aug_get (guestfs_h *g,\n"
7188 "                  const char *augpath);\n"
7189 "\n"
7190 msgstr ""
7191
7192 # type: textblock
7193 #. type: textblock
7194 #: ../src/guestfs-actions.pod:360 ../fish/guestfish-actions.pod:230
7195 msgid ""
7196 "Look up the value associated with C<path>.  If C<path> matches exactly one "
7197 "node, the C<value> is returned."
7198 msgstr ""
7199
7200 # type: textblock
7201 #. type: textblock
7202 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:863
7203 #: ../src/guestfs-actions.pod:881 ../src/guestfs-actions.pod:941
7204 #: ../src/guestfs-actions.pod:957 ../src/guestfs-actions.pod:1060
7205 #: ../src/guestfs-actions.pod:1190 ../src/guestfs-actions.pod:1207
7206 #: ../src/guestfs-actions.pod:1226 ../src/guestfs-actions.pod:1360
7207 #: ../src/guestfs-actions.pod:1548 ../src/guestfs-actions.pod:1660
7208 #: ../src/guestfs-actions.pod:1823 ../src/guestfs-actions.pod:1840
7209 #: ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:1941
7210 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:2132
7211 #: ../src/guestfs-actions.pod:2324 ../src/guestfs-actions.pod:2528
7212 #: ../src/guestfs-actions.pod:2618 ../src/guestfs-actions.pod:2720
7213 #: ../src/guestfs-actions.pod:2737 ../src/guestfs-actions.pod:2949
7214 #: ../src/guestfs-actions.pod:2977 ../src/guestfs-actions.pod:2998
7215 #: ../src/guestfs-actions.pod:3032 ../src/guestfs-actions.pod:3089
7216 #: ../src/guestfs-actions.pod:3109 ../src/guestfs-actions.pod:3127
7217 #: ../src/guestfs-actions.pod:3722 ../src/guestfs-actions.pod:4072
7218 #: ../src/guestfs-actions.pod:4242 ../src/guestfs-actions.pod:4352
7219 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5345
7220 #: ../src/guestfs-actions.pod:5515 ../src/guestfs-actions.pod:5693
7221 #: ../src/guestfs-actions.pod:5742 ../src/guestfs-actions.pod:6375
7222 #: ../src/guestfs-actions.pod:6391 ../src/guestfs-actions.pod:6408
7223 #: ../src/guestfs-actions.pod:6439 ../src/guestfs-actions.pod:7113
7224 #: ../src/guestfs-actions.pod:7132 ../src/guestfs-actions.pod:7150
7225 #: ../src/guestfs-actions.pod:7330 ../src/guestfs-actions.pod:7610
7226 msgid ""
7227 "This function returns a string, or NULL on error.  I<The caller must free "
7228 "the returned string after use>."
7229 msgstr ""
7230
7231 # type: =head2
7232 #. type: =head2
7233 #: ../src/guestfs-actions.pod:368
7234 msgid "guestfs_aug_init"
7235 msgstr ""
7236
7237 # type: verbatim
7238 #. type: verbatim
7239 #: ../src/guestfs-actions.pod:370
7240 #, no-wrap
7241 msgid ""
7242 " int\n"
7243 " guestfs_aug_init (guestfs_h *g,\n"
7244 "                   const char *root,\n"
7245 "                   int flags);\n"
7246 "\n"
7247 msgstr ""
7248
7249 # type: textblock
7250 #. type: textblock
7251 #: ../src/guestfs-actions.pod:375 ../fish/guestfish-actions.pod:237
7252 msgid ""
7253 "Create a new Augeas handle for editing configuration files.  If there was "
7254 "any previous Augeas handle associated with this guestfs session, then it is "
7255 "closed."
7256 msgstr ""
7257
7258 # type: textblock
7259 #. type: textblock
7260 #: ../src/guestfs-actions.pod:379
7261 msgid "You must call this before using any other C<guestfs_aug_*> commands."
7262 msgstr ""
7263
7264 # type: textblock
7265 #. type: textblock
7266 #: ../src/guestfs-actions.pod:382 ../fish/guestfish-actions.pod:244
7267 msgid ""
7268 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
7269 msgstr ""
7270
7271 # type: textblock
7272 #. type: textblock
7273 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:247
7274 msgid ""
7275 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
7276 "logical I<or> of the following integers:"
7277 msgstr ""
7278
7279 # type: =item
7280 #. type: =item
7281 #: ../src/guestfs-actions.pod:391 ../fish/guestfish-actions.pod:253
7282 msgid "C<AUG_SAVE_BACKUP> = 1"
7283 msgstr ""
7284
7285 # type: textblock
7286 #. type: textblock
7287 #: ../src/guestfs-actions.pod:393 ../fish/guestfish-actions.pod:255
7288 msgid "Keep the original file with a C<.augsave> extension."
7289 msgstr ""
7290
7291 # type: =item
7292 #. type: =item
7293 #: ../src/guestfs-actions.pod:395 ../fish/guestfish-actions.pod:257
7294 msgid "C<AUG_SAVE_NEWFILE> = 2"
7295 msgstr ""
7296
7297 # type: textblock
7298 #. type: textblock
7299 #: ../src/guestfs-actions.pod:397 ../fish/guestfish-actions.pod:259
7300 msgid ""
7301 "Save changes into a file with extension C<.augnew>, and do not overwrite "
7302 "original.  Overrides C<AUG_SAVE_BACKUP>."
7303 msgstr ""
7304
7305 # type: =item
7306 #. type: =item
7307 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:262
7308 msgid "C<AUG_TYPE_CHECK> = 4"
7309 msgstr ""
7310
7311 # type: textblock
7312 #. type: textblock
7313 #: ../src/guestfs-actions.pod:402 ../fish/guestfish-actions.pod:264
7314 msgid "Typecheck lenses (can be expensive)."
7315 msgstr ""
7316
7317 # type: =item
7318 #. type: =item
7319 #: ../src/guestfs-actions.pod:404 ../fish/guestfish-actions.pod:266
7320 msgid "C<AUG_NO_STDINC> = 8"
7321 msgstr ""
7322
7323 # type: textblock
7324 #. type: textblock
7325 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:268
7326 msgid "Do not use standard load path for modules."
7327 msgstr ""
7328
7329 # type: =item
7330 #. type: =item
7331 #: ../src/guestfs-actions.pod:408 ../fish/guestfish-actions.pod:270
7332 msgid "C<AUG_SAVE_NOOP> = 16"
7333 msgstr ""
7334
7335 # type: textblock
7336 #. type: textblock
7337 #: ../src/guestfs-actions.pod:410 ../fish/guestfish-actions.pod:272
7338 msgid "Make save a no-op, just record what would have been changed."
7339 msgstr ""
7340
7341 # type: =item
7342 #. type: =item
7343 #: ../src/guestfs-actions.pod:412 ../fish/guestfish-actions.pod:274
7344 msgid "C<AUG_NO_LOAD> = 32"
7345 msgstr ""
7346
7347 # type: textblock
7348 #. type: textblock
7349 #: ../src/guestfs-actions.pod:414
7350 msgid "Do not load the tree in C<guestfs_aug_init>."
7351 msgstr ""
7352
7353 # type: textblock
7354 #. type: textblock
7355 #: ../src/guestfs-actions.pod:418
7356 msgid "To close the handle, you can call C<guestfs_aug_close>."
7357 msgstr ""
7358
7359 # type: textblock
7360 #. type: textblock
7361 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:282
7362 msgid "To find out more about Augeas, see L<http://augeas.net/>."
7363 msgstr ""
7364
7365 # type: =head2
7366 #. type: =head2
7367 #: ../src/guestfs-actions.pod:426
7368 msgid "guestfs_aug_insert"
7369 msgstr ""
7370
7371 # type: verbatim
7372 #. type: verbatim
7373 #: ../src/guestfs-actions.pod:428
7374 #, no-wrap
7375 msgid ""
7376 " int\n"
7377 " guestfs_aug_insert (guestfs_h *g,\n"
7378 "                     const char *augpath,\n"
7379 "                     const char *label,\n"
7380 "                     int before);\n"
7381 "\n"
7382 msgstr ""
7383
7384 # type: textblock
7385 #. type: textblock
7386 #: ../src/guestfs-actions.pod:434 ../fish/guestfish-actions.pod:288
7387 msgid ""
7388 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
7389 "or after C<path> (depending on the boolean flag C<before>)."
7390 msgstr ""
7391
7392 # type: textblock
7393 #. type: textblock
7394 #: ../src/guestfs-actions.pod:438 ../fish/guestfish-actions.pod:292
7395 msgid ""
7396 "C<path> must match exactly one existing node in the tree, and C<label> must "
7397 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
7398 msgstr ""
7399
7400 # type: =head2
7401 #. type: =head2
7402 #: ../src/guestfs-actions.pod:446
7403 msgid "guestfs_aug_load"
7404 msgstr ""
7405
7406 # type: verbatim
7407 #. type: verbatim
7408 #: ../src/guestfs-actions.pod:448
7409 #, no-wrap
7410 msgid ""
7411 " int\n"
7412 " guestfs_aug_load (guestfs_h *g);\n"
7413 "\n"
7414 msgstr ""
7415
7416 # type: textblock
7417 #. type: textblock
7418 #: ../src/guestfs-actions.pod:451 ../fish/guestfish-actions.pod:300
7419 msgid "Load files into the tree."
7420 msgstr ""
7421
7422 # type: textblock
7423 #. type: textblock
7424 #: ../src/guestfs-actions.pod:453 ../fish/guestfish-actions.pod:302
7425 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
7426 msgstr ""
7427
7428 # type: =head2
7429 #. type: =head2
7430 #: ../src/guestfs-actions.pod:460
7431 msgid "guestfs_aug_ls"
7432 msgstr ""
7433
7434 # type: verbatim
7435 #. type: verbatim
7436 #: ../src/guestfs-actions.pod:462
7437 #, no-wrap
7438 msgid ""
7439 " char **\n"
7440 " guestfs_aug_ls (guestfs_h *g,\n"
7441 "                 const char *augpath);\n"
7442 "\n"
7443 msgstr ""
7444
7445 # type: textblock
7446 #. type: textblock
7447 #: ../src/guestfs-actions.pod:466
7448 msgid ""
7449 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
7450 "sorting the resulting nodes into alphabetical order."
7451 msgstr ""
7452
7453 # type: textblock
7454 #. type: textblock
7455 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:485
7456 #: ../src/guestfs-actions.pod:631 ../src/guestfs-actions.pod:1079
7457 #: ../src/guestfs-actions.pod:1375 ../src/guestfs-actions.pod:1394
7458 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1516
7459 #: ../src/guestfs-actions.pod:1762 ../src/guestfs-actions.pod:2204
7460 #: ../src/guestfs-actions.pod:2220 ../src/guestfs-actions.pod:2239
7461 #: ../src/guestfs-actions.pod:2282 ../src/guestfs-actions.pod:2306
7462 #: ../src/guestfs-actions.pod:2377 ../src/guestfs-actions.pod:2426
7463 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:3049
7464 #: ../src/guestfs-actions.pod:3317 ../src/guestfs-actions.pod:3627
7465 #: ../src/guestfs-actions.pod:3642 ../src/guestfs-actions.pod:3704
7466 #: ../src/guestfs-actions.pod:3809 ../src/guestfs-actions.pod:4214
7467 #: ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:5487
7468 #: ../src/guestfs-actions.pod:5613 ../src/guestfs-actions.pod:5727
7469 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6516
7470 #: ../src/guestfs-actions.pod:6571 ../src/guestfs-actions.pod:6717
7471 #: ../src/guestfs-actions.pod:6741 ../src/guestfs-actions.pod:7223
7472 #: ../src/guestfs-actions.pod:7243 ../src/guestfs-actions.pod:7290
7473 #: ../src/guestfs-actions.pod:7462 ../src/guestfs-actions.pod:7481
7474 #: ../src/guestfs-actions.pod:7567 ../src/guestfs-actions.pod:7586
7475 #: ../src/guestfs-actions.pod:7632 ../src/guestfs-actions.pod:7651
7476 msgid ""
7477 "This function returns a NULL-terminated array of strings (like L<environ(3)"
7478 ">), or NULL if there was an error.  I<The caller must free the strings and "
7479 "the array after use>."
7480 msgstr ""
7481
7482 # type: textblock
7483 #. type: textblock
7484 #: ../src/guestfs-actions.pod:473 ../src/guestfs-actions.pod:1004
7485 #: ../src/guestfs-actions.pod:1022 ../src/guestfs-actions.pod:1432
7486 #: ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:3426
7487 #: ../src/guestfs-actions.pod:4055 ../src/guestfs-actions.pod:4105
7488 #: ../src/guestfs-actions.pod:4292 ../src/guestfs-actions.pod:4325
7489 #: ../src/guestfs-actions.pod:4488 ../src/guestfs-actions.pod:4971
7490 #: ../src/guestfs-actions.pod:5428 ../src/guestfs-actions.pod:5823
7491 #: ../src/guestfs-actions.pod:5837 ../src/guestfs-actions.pod:5849
7492 #: ../src/guestfs-actions.pod:6296 ../src/guestfs-actions.pod:6955
7493 #: ../src/guestfs-actions.pod:6968 ../src/guestfs-actions.pod:7207
7494 #: ../src/guestfs-actions.pod:7450
7495 msgid "(Added in 0.8)"
7496 msgstr ""
7497
7498 # type: =head2
7499 #. type: =head2
7500 #: ../src/guestfs-actions.pod:475
7501 msgid "guestfs_aug_match"
7502 msgstr ""
7503
7504 # type: verbatim
7505 #. type: verbatim
7506 #: ../src/guestfs-actions.pod:477
7507 #, no-wrap
7508 msgid ""
7509 " char **\n"
7510 " guestfs_aug_match (guestfs_h *g,\n"
7511 "                    const char *augpath);\n"
7512 "\n"
7513 msgstr ""
7514
7515 # type: textblock
7516 #. type: textblock
7517 #: ../src/guestfs-actions.pod:481 ../fish/guestfish-actions.pod:316
7518 msgid ""
7519 "Returns a list of paths which match the path expression C<path>.  The "
7520 "returned paths are sufficiently qualified so that they match exactly one "
7521 "node in the current tree."
7522 msgstr ""
7523
7524 # type: =head2
7525 #. type: =head2
7526 #: ../src/guestfs-actions.pod:491
7527 msgid "guestfs_aug_mv"
7528 msgstr ""
7529
7530 # type: verbatim
7531 #. type: verbatim
7532 #: ../src/guestfs-actions.pod:493
7533 #, no-wrap
7534 msgid ""
7535 " int\n"
7536 " guestfs_aug_mv (guestfs_h *g,\n"
7537 "                 const char *src,\n"
7538 "                 const char *dest);\n"
7539 "\n"
7540 msgstr ""
7541
7542 # type: textblock
7543 #. type: textblock
7544 #: ../src/guestfs-actions.pod:498 ../fish/guestfish-actions.pod:324
7545 msgid ""
7546 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
7547 "C<dest> is overwritten if it exists."
7548 msgstr ""
7549
7550 # type: =head2
7551 #. type: =head2
7552 #: ../src/guestfs-actions.pod:505
7553 msgid "guestfs_aug_rm"
7554 msgstr ""
7555
7556 # type: verbatim
7557 #. type: verbatim
7558 #: ../src/guestfs-actions.pod:507
7559 #, no-wrap
7560 msgid ""
7561 " int\n"
7562 " guestfs_aug_rm (guestfs_h *g,\n"
7563 "                 const char *augpath);\n"
7564 "\n"
7565 msgstr ""
7566
7567 # type: textblock
7568 #. type: textblock
7569 #: ../src/guestfs-actions.pod:511 ../fish/guestfish-actions.pod:331
7570 msgid "Remove C<path> and all of its children."
7571 msgstr ""
7572
7573 # type: textblock
7574 #. type: textblock
7575 #: ../src/guestfs-actions.pod:513 ../fish/guestfish-actions.pod:333
7576 msgid "On success this returns the number of entries which were removed."
7577 msgstr ""
7578
7579 # type: =head2
7580 #. type: =head2
7581 #: ../src/guestfs-actions.pod:519
7582 msgid "guestfs_aug_save"
7583 msgstr ""
7584
7585 # type: verbatim
7586 #. type: verbatim
7587 #: ../src/guestfs-actions.pod:521
7588 #, no-wrap
7589 msgid ""
7590 " int\n"
7591 " guestfs_aug_save (guestfs_h *g);\n"
7592 "\n"
7593 msgstr ""
7594
7595 # type: textblock
7596 #. type: textblock
7597 #: ../src/guestfs-actions.pod:524 ../fish/guestfish-actions.pod:339
7598 msgid "This writes all pending changes to disk."
7599 msgstr ""
7600
7601 # type: textblock
7602 #. type: textblock
7603 #: ../src/guestfs-actions.pod:526
7604 msgid ""
7605 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
7606 "are saved."
7607 msgstr ""
7608
7609 # type: =head2
7610 #. type: =head2
7611 #: ../src/guestfs-actions.pod:533
7612 msgid "guestfs_aug_set"
7613 msgstr ""
7614
7615 # type: verbatim
7616 #. type: verbatim
7617 #: ../src/guestfs-actions.pod:535
7618 #, no-wrap
7619 msgid ""
7620 " int\n"
7621 " guestfs_aug_set (guestfs_h *g,\n"
7622 "                  const char *augpath,\n"
7623 "                  const char *val);\n"
7624 "\n"
7625 msgstr ""
7626
7627 # type: textblock
7628 #. type: textblock
7629 #: ../src/guestfs-actions.pod:540 ../fish/guestfish-actions.pod:348
7630 msgid "Set the value associated with C<path> to C<val>."
7631 msgstr ""
7632
7633 # type: textblock
7634 #. type: textblock
7635 #: ../src/guestfs-actions.pod:542
7636 msgid ""
7637 "In the Augeas API, it is possible to clear a node by setting the value to "
7638 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
7639 "this call.  Instead you must use the C<guestfs_aug_clear> call."
7640 msgstr ""
7641
7642 # type: =head2
7643 #. type: =head2
7644 #: ../src/guestfs-actions.pod:551
7645 msgid "guestfs_available"
7646 msgstr ""
7647
7648 # type: verbatim
7649 #. type: verbatim
7650 #: ../src/guestfs-actions.pod:553
7651 #, no-wrap
7652 msgid ""
7653 " int\n"
7654 " guestfs_available (guestfs_h *g,\n"
7655 "                    char *const *groups);\n"
7656 "\n"
7657 msgstr ""
7658
7659 # type: textblock
7660 #. type: textblock
7661 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:359
7662 msgid ""
7663 "This command is used to check the availability of some groups of "
7664 "functionality in the appliance, which not all builds of the libguestfs "
7665 "appliance will be able to provide."
7666 msgstr ""
7667
7668 # type: textblock
7669 #. type: textblock
7670 #: ../src/guestfs-actions.pod:561
7671 msgid ""
7672 "The libguestfs groups, and the functions that those groups correspond to, "
7673 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
7674 "runtime by calling C<guestfs_available_all_groups>."
7675 msgstr ""
7676
7677 # type: textblock
7678 #. type: textblock
7679 #: ../src/guestfs-actions.pod:566 ../fish/guestfish-actions.pod:368
7680 msgid ""
7681 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
7682 "\"]> would check for the availability of the Linux inotify functions and "
7683 "Augeas (configuration file editing) functions."
7684 msgstr ""
7685
7686 # type: textblock
7687 #. type: textblock
7688 #: ../src/guestfs-actions.pod:571 ../fish/guestfish-actions.pod:373
7689 msgid "The command returns no error if I<all> requested groups are available."
7690 msgstr ""
7691
7692 # type: textblock
7693 #. type: textblock
7694 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:375
7695 msgid ""
7696 "It fails with an error if one or more of the requested groups is unavailable "
7697 "in the appliance."
7698 msgstr ""
7699
7700 # type: textblock
7701 #. type: textblock
7702 #: ../src/guestfs-actions.pod:576 ../fish/guestfish-actions.pod:378
7703 msgid ""
7704 "If an unknown group name is included in the list of groups then an error is "
7705 "always returned."
7706 msgstr ""
7707
7708 # type: textblock
7709 #. type: textblock
7710 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:381
7711 msgid "I<Notes:>"
7712 msgstr ""
7713
7714 # type: textblock
7715 #. type: textblock
7716 #: ../src/guestfs-actions.pod:585
7717 msgid "You must call C<guestfs_launch> before calling this function."
7718 msgstr ""
7719
7720 # type: textblock
7721 #. type: textblock
7722 #: ../src/guestfs-actions.pod:587 ../fish/guestfish-actions.pod:389
7723 msgid ""
7724 "The reason is because we don't know what groups are supported by the "
7725 "appliance/daemon until it is running and can be queried."
7726 msgstr ""
7727
7728 # type: textblock
7729 #. type: textblock
7730 #: ../src/guestfs-actions.pod:593 ../fish/guestfish-actions.pod:395
7731 msgid ""
7732 "If a group of functions is available, this does not necessarily mean that "
7733 "they will work.  You still have to check for errors when calling individual "
7734 "API functions even if they are available."
7735 msgstr ""
7736
7737 # type: textblock
7738 #. type: textblock
7739 #: ../src/guestfs-actions.pod:600 ../fish/guestfish-actions.pod:402
7740 msgid ""
7741 "It is usually the job of distro packagers to build complete functionality "
7742 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
7743 "with all requirements satisfied, will support everything."
7744 msgstr ""
7745
7746 # type: textblock
7747 #. type: textblock
7748 #: ../src/guestfs-actions.pod:607
7749 msgid ""
7750 "This call was added in version C<1.0.80>.  In previous versions of "
7751 "libguestfs all you could do would be to speculatively execute a command to "
7752 "find out if the daemon implemented it.  See also C<guestfs_version>."
7753 msgstr ""
7754
7755 # type: textblock
7756 #. type: textblock
7757 #: ../src/guestfs-actions.pod:616 ../src/guestfs-actions.pod:1177
7758 msgid "(Added in 1.0.80)"
7759 msgstr ""
7760
7761 # type: =head2
7762 #. type: =head2
7763 #: ../src/guestfs-actions.pod:618
7764 msgid "guestfs_available_all_groups"
7765 msgstr ""
7766
7767 # type: verbatim
7768 #. type: verbatim
7769 #: ../src/guestfs-actions.pod:620
7770 #, no-wrap
7771 msgid ""
7772 " char **\n"
7773 " guestfs_available_all_groups (guestfs_h *g);\n"
7774 "\n"
7775 msgstr ""
7776
7777 # type: textblock
7778 #. type: textblock
7779 #: ../src/guestfs-actions.pod:623
7780 msgid ""
7781 "This command returns a list of all optional groups that this daemon knows "
7782 "about.  Note this returns both supported and unsupported groups.  To find "
7783 "out which ones the daemon can actually support you have to call "
7784 "C<guestfs_available> on each member of the returned list."
7785 msgstr ""
7786
7787 # type: textblock
7788 #. type: textblock
7789 #: ../src/guestfs-actions.pod:629
7790 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
7791 msgstr ""
7792
7793 # type: textblock
7794 #. type: textblock
7795 #: ../src/guestfs-actions.pod:635
7796 msgid "(Added in 1.3.15)"
7797 msgstr ""
7798
7799 # type: =head2
7800 #. type: =head2
7801 #: ../src/guestfs-actions.pod:637
7802 msgid "guestfs_base64_in"
7803 msgstr ""
7804
7805 # type: verbatim
7806 #. type: verbatim
7807 #: ../src/guestfs-actions.pod:639
7808 #, no-wrap
7809 msgid ""
7810 " int\n"
7811 " guestfs_base64_in (guestfs_h *g,\n"
7812 "                    const char *base64file,\n"
7813 "                    const char *filename);\n"
7814 "\n"
7815 msgstr ""
7816
7817 # type: textblock
7818 #. type: textblock
7819 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:432
7820 msgid ""
7821 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7822 msgstr ""
7823
7824 # type: textblock
7825 #. type: textblock
7826 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:663
7827 msgid "(Added in 1.3.5)"
7828 msgstr ""
7829
7830 # type: =head2
7831 #. type: =head2
7832 #: ../src/guestfs-actions.pod:651
7833 msgid "guestfs_base64_out"
7834 msgstr ""
7835
7836 # type: verbatim
7837 #. type: verbatim
7838 #: ../src/guestfs-actions.pod:653
7839 #, no-wrap
7840 msgid ""
7841 " int\n"
7842 " guestfs_base64_out (guestfs_h *g,\n"
7843 "                     const char *filename,\n"
7844 "                     const char *base64file);\n"
7845 "\n"
7846 msgstr ""
7847
7848 # type: textblock
7849 #. type: textblock
7850 #: ../src/guestfs-actions.pod:658 ../fish/guestfish-actions.pod:441
7851 msgid ""
7852 "This command downloads the contents of C<filename>, writing it out to local "
7853 "file C<base64file> encoded as base64."
7854 msgstr ""
7855
7856 # type: =head2
7857 #. type: =head2
7858 #: ../src/guestfs-actions.pod:665
7859 msgid "guestfs_blockdev_flushbufs"
7860 msgstr ""
7861
7862 # type: verbatim
7863 #. type: verbatim
7864 #: ../src/guestfs-actions.pod:667
7865 #, no-wrap
7866 msgid ""
7867 " int\n"
7868 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
7869 "                             const char *device);\n"
7870 "\n"
7871 msgstr ""
7872
7873 # type: textblock
7874 #. type: textblock
7875 #: ../src/guestfs-actions.pod:671 ../fish/guestfish-actions.pod:450
7876 msgid ""
7877 "This tells the kernel to flush internal buffers associated with C<device>."
7878 msgstr ""
7879
7880 # type: textblock
7881 #. type: textblock
7882 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:691
7883 #: ../src/guestfs-actions.pod:706 ../src/guestfs-actions.pod:722
7884 #: ../src/guestfs-actions.pod:740 ../src/guestfs-actions.pod:759
7885 #: ../src/guestfs-actions.pod:773 ../src/guestfs-actions.pod:791
7886 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:819
7887 #: ../fish/guestfish-actions.pod:453 ../fish/guestfish-actions.pod:464
7888 #: ../fish/guestfish-actions.pod:473 ../fish/guestfish-actions.pod:483
7889 #: ../fish/guestfish-actions.pod:495 ../fish/guestfish-actions.pod:508
7890 #: ../fish/guestfish-actions.pod:516 ../fish/guestfish-actions.pod:527
7891 #: ../fish/guestfish-actions.pod:535 ../fish/guestfish-actions.pod:543
7892 msgid "This uses the L<blockdev(8)> command."
7893 msgstr ""
7894
7895 # type: textblock
7896 #. type: textblock
7897 #: ../src/guestfs-actions.pod:678 ../src/guestfs-actions.pod:695
7898 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:726
7899 #: ../src/guestfs-actions.pod:744 ../src/guestfs-actions.pod:763
7900 #: ../src/guestfs-actions.pod:777 ../src/guestfs-actions.pod:795
7901 #: ../src/guestfs-actions.pod:809 ../src/guestfs-actions.pod:823
7902 msgid "(Added in 0.9.3)"
7903 msgstr ""
7904
7905 # type: =head2
7906 #. type: =head2
7907 #: ../src/guestfs-actions.pod:680
7908 msgid "guestfs_blockdev_getbsz"
7909 msgstr ""
7910
7911 # type: verbatim
7912 #. type: verbatim
7913 #: ../src/guestfs-actions.pod:682
7914 #, no-wrap
7915 msgid ""
7916 " int\n"
7917 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
7918 "                          const char *device);\n"
7919 "\n"
7920 msgstr ""
7921
7922 # type: textblock
7923 #. type: textblock
7924 #: ../src/guestfs-actions.pod:686 ../fish/guestfish-actions.pod:459
7925 msgid "This returns the block size of a device."
7926 msgstr ""
7927
7928 # type: textblock
7929 #. type: textblock
7930 #: ../src/guestfs-actions.pod:688 ../src/guestfs-actions.pod:788
7931 #: ../fish/guestfish-actions.pod:461 ../fish/guestfish-actions.pod:524
7932 msgid ""
7933 "(Note this is different from both I<size in blocks> and I<filesystem block "
7934 "size>)."
7935 msgstr ""
7936
7937 # type: =head2
7938 #. type: =head2
7939 #: ../src/guestfs-actions.pod:697
7940 msgid "guestfs_blockdev_getro"
7941 msgstr ""
7942
7943 # type: verbatim
7944 #. type: verbatim
7945 #: ../src/guestfs-actions.pod:699
7946 #, no-wrap
7947 msgid ""
7948 " int\n"
7949 " guestfs_blockdev_getro (guestfs_h *g,\n"
7950 "                         const char *device);\n"
7951 "\n"
7952 msgstr ""
7953
7954 # type: textblock
7955 #. type: textblock
7956 #: ../src/guestfs-actions.pod:703 ../fish/guestfish-actions.pod:470
7957 msgid ""
7958 "Returns a boolean indicating if the block device is read-only (true if read-"
7959 "only, false if not)."
7960 msgstr ""
7961
7962 # type: textblock
7963 #. type: textblock
7964 #: ../src/guestfs-actions.pod:708 ../src/guestfs-actions.pod:1415
7965 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1917
7966 #: ../src/guestfs-actions.pod:1928 ../src/guestfs-actions.pod:2000
7967 #: ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2070
7968 #: ../src/guestfs-actions.pod:2095 ../src/guestfs-actions.pod:2118
7969 #: ../src/guestfs-actions.pod:3144 ../src/guestfs-actions.pod:3158
7970 #: ../src/guestfs-actions.pod:3174 ../src/guestfs-actions.pod:3334
7971 #: ../src/guestfs-actions.pod:3348 ../src/guestfs-actions.pod:3363
7972 #: ../src/guestfs-actions.pod:3377 ../src/guestfs-actions.pod:3393
7973 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3424
7974 #: ../src/guestfs-actions.pod:3438 ../src/guestfs-actions.pod:3451
7975 #: ../src/guestfs-actions.pod:3465 ../src/guestfs-actions.pod:3480
7976 #: ../src/guestfs-actions.pod:3495 ../src/guestfs-actions.pod:3508
7977 #: ../src/guestfs-actions.pod:3520 ../src/guestfs-actions.pod:5116
7978 msgid "This function returns a C truth value on success or -1 on error."
7979 msgstr ""
7980
7981 # type: =head2
7982 #. type: =head2
7983 #: ../src/guestfs-actions.pod:712
7984 msgid "guestfs_blockdev_getsize64"
7985 msgstr ""
7986
7987 # type: verbatim
7988 #. type: verbatim
7989 #: ../src/guestfs-actions.pod:714
7990 #, no-wrap
7991 msgid ""
7992 " int64_t\n"
7993 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
7994 "                             const char *device);\n"
7995 "\n"
7996 msgstr ""
7997
7998 # type: textblock
7999 #. type: textblock
8000 #: ../src/guestfs-actions.pod:718 ../fish/guestfish-actions.pod:479
8001 msgid "This returns the size of the device in bytes."
8002 msgstr ""
8003
8004 # type: textblock
8005 #. type: textblock
8006 #: ../src/guestfs-actions.pod:720
8007 msgid "See also C<guestfs_blockdev_getsz>."
8008 msgstr ""
8009
8010 # type: =head2
8011 #. type: =head2
8012 #: ../src/guestfs-actions.pod:728
8013 msgid "guestfs_blockdev_getss"
8014 msgstr ""
8015
8016 # type: verbatim
8017 #. type: verbatim
8018 #: ../src/guestfs-actions.pod:730
8019 #, no-wrap
8020 msgid ""
8021 " int\n"
8022 " guestfs_blockdev_getss (guestfs_h *g,\n"
8023 "                         const char *device);\n"
8024 "\n"
8025 msgstr ""
8026
8027 # type: textblock
8028 #. type: textblock
8029 #: ../src/guestfs-actions.pod:734 ../fish/guestfish-actions.pod:489
8030 msgid ""
8031 "This returns the size of sectors on a block device.  Usually 512, but can be "
8032 "larger for modern devices."
8033 msgstr ""
8034
8035 # type: textblock
8036 #. type: textblock
8037 #: ../src/guestfs-actions.pod:737
8038 msgid ""
8039 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
8040 "that)."
8041 msgstr ""
8042
8043 # type: =head2
8044 #. type: =head2
8045 #: ../src/guestfs-actions.pod:746
8046 msgid "guestfs_blockdev_getsz"
8047 msgstr ""
8048
8049 # type: verbatim
8050 #. type: verbatim
8051 #: ../src/guestfs-actions.pod:748
8052 #, no-wrap
8053 msgid ""
8054 " int64_t\n"
8055 " guestfs_blockdev_getsz (guestfs_h *g,\n"
8056 "                         const char *device);\n"
8057 "\n"
8058 msgstr ""
8059
8060 # type: textblock
8061 #. type: textblock
8062 #: ../src/guestfs-actions.pod:752 ../fish/guestfish-actions.pod:501
8063 msgid ""
8064 "This returns the size of the device in units of 512-byte sectors (even if "
8065 "the sectorsize isn't 512 bytes ... weird)."
8066 msgstr ""
8067
8068 # type: textblock
8069 #. type: textblock
8070 #: ../src/guestfs-actions.pod:755
8071 msgid ""
8072 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
8073 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
8074 msgstr ""
8075
8076 # type: =head2
8077 #. type: =head2
8078 #: ../src/guestfs-actions.pod:765
8079 msgid "guestfs_blockdev_rereadpt"
8080 msgstr ""
8081
8082 # type: verbatim
8083 #. type: verbatim
8084 #: ../src/guestfs-actions.pod:767
8085 #, no-wrap
8086 msgid ""
8087 " int\n"
8088 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
8089 "                            const char *device);\n"
8090 "\n"
8091 msgstr ""
8092
8093 # type: textblock
8094 #. type: textblock
8095 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:514
8096 msgid "Reread the partition table on C<device>."
8097 msgstr ""
8098
8099 # type: =head2
8100 #. type: =head2
8101 #: ../src/guestfs-actions.pod:779
8102 msgid "guestfs_blockdev_setbsz"
8103 msgstr ""
8104
8105 # type: verbatim
8106 #. type: verbatim
8107 #: ../src/guestfs-actions.pod:781
8108 #, no-wrap
8109 msgid ""
8110 " int\n"
8111 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
8112 "                          const char *device,\n"
8113 "                          int blocksize);\n"
8114 "\n"
8115 msgstr ""
8116
8117 # type: textblock
8118 #. type: textblock
8119 #: ../src/guestfs-actions.pod:786 ../fish/guestfish-actions.pod:522
8120 msgid "This sets the block size of a device."
8121 msgstr ""
8122
8123 # type: =head2
8124 #. type: =head2
8125 #: ../src/guestfs-actions.pod:797
8126 msgid "guestfs_blockdev_setro"
8127 msgstr ""
8128
8129 # type: verbatim
8130 #. type: verbatim
8131 #: ../src/guestfs-actions.pod:799
8132 #, no-wrap
8133 msgid ""
8134 " int\n"
8135 " guestfs_blockdev_setro (guestfs_h *g,\n"
8136 "                         const char *device);\n"
8137 "\n"
8138 msgstr ""
8139
8140 # type: textblock
8141 #. type: textblock
8142 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:533
8143 msgid "Sets the block device named C<device> to read-only."
8144 msgstr ""
8145
8146 # type: =head2
8147 #. type: =head2
8148 #: ../src/guestfs-actions.pod:811
8149 msgid "guestfs_blockdev_setrw"
8150 msgstr ""
8151
8152 # type: verbatim
8153 #. type: verbatim
8154 #: ../src/guestfs-actions.pod:813
8155 #, no-wrap
8156 msgid ""
8157 " int\n"
8158 " guestfs_blockdev_setrw (guestfs_h *g,\n"
8159 "                         const char *device);\n"
8160 "\n"
8161 msgstr ""
8162
8163 # type: textblock
8164 #. type: textblock
8165 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:541
8166 msgid "Sets the block device named C<device> to read-write."
8167 msgstr ""
8168
8169 # type: =head2
8170 #. type: =head2
8171 #: ../src/guestfs-actions.pod:825
8172 msgid "guestfs_case_sensitive_path"
8173 msgstr ""
8174
8175 # type: verbatim
8176 #. type: verbatim
8177 #: ../src/guestfs-actions.pod:827
8178 #, no-wrap
8179 msgid ""
8180 " char *\n"
8181 " guestfs_case_sensitive_path (guestfs_h *g,\n"
8182 "                              const char *path);\n"
8183 "\n"
8184 msgstr ""
8185
8186 # type: textblock
8187 #. type: textblock
8188 #: ../src/guestfs-actions.pod:831 ../fish/guestfish-actions.pod:549
8189 msgid ""
8190 "This can be used to resolve case insensitive paths on a filesystem which is "
8191 "case sensitive.  The use case is to resolve paths which you have read from "
8192 "Windows configuration files or the Windows Registry, to the true path."
8193 msgstr ""
8194
8195 # type: textblock
8196 #. type: textblock
8197 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:554
8198 msgid ""
8199 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
8200 "(and probably others), which is that although the underlying filesystem is "
8201 "case-insensitive, the driver exports the filesystem to Linux as case-"
8202 "sensitive."
8203 msgstr ""
8204
8205 # type: textblock
8206 #. type: textblock
8207 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:559
8208 msgid ""
8209 "One consequence of this is that special directories such as C<c:\\windows> "
8210 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
8211 "precise details of how they were created.  In Windows itself this would not "
8212 "be a problem."
8213 msgstr ""
8214
8215 # type: textblock
8216 #. type: textblock
8217 #: ../src/guestfs-actions.pod:847 ../fish/guestfish-actions.pod:565
8218 msgid ""
8219 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
8220 "#posixfilenames1>"
8221 msgstr ""
8222
8223 # type: textblock
8224 #. type: textblock
8225 #: ../src/guestfs-actions.pod:850 ../fish/guestfish-actions.pod:568
8226 msgid ""
8227 "This function resolves the true case of each element in the path and returns "
8228 "the case-sensitive path."
8229 msgstr ""
8230
8231 # type: textblock
8232 #. type: textblock
8233 #: ../src/guestfs-actions.pod:853
8234 msgid ""
8235 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
8236 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
8237 "how the directories were originally created under Windows)."
8238 msgstr ""
8239
8240 # type: textblock
8241 #. type: textblock
8242 #: ../src/guestfs-actions.pod:858 ../fish/guestfish-actions.pod:576
8243 msgid "I<Note>: This function does not handle drive names, backslashes etc."
8244 msgstr ""
8245
8246 # type: textblock
8247 #. type: textblock
8248 #: ../src/guestfs-actions.pod:861
8249 msgid "See also C<guestfs_realpath>."
8250 msgstr ""
8251
8252 # type: textblock
8253 #. type: textblock
8254 #: ../src/guestfs-actions.pod:866 ../src/guestfs-actions.pod:7135
8255 msgid "(Added in 1.0.75)"
8256 msgstr ""
8257
8258 # type: =head2
8259 #. type: =head2
8260 #: ../src/guestfs-actions.pod:868
8261 msgid "guestfs_cat"
8262 msgstr ""
8263
8264 # type: verbatim
8265 #. type: verbatim
8266 #: ../src/guestfs-actions.pod:870
8267 #, no-wrap
8268 msgid ""
8269 " char *\n"
8270 " guestfs_cat (guestfs_h *g,\n"
8271 "              const char *path);\n"
8272 "\n"
8273 msgstr ""
8274
8275 # type: textblock
8276 #. type: textblock
8277 #: ../src/guestfs-actions.pod:874 ../src/guestfs-actions.pod:5603
8278 #: ../fish/guestfish-actions.pod:585 ../fish/guestfish-actions.pod:3717
8279 msgid "Return the contents of the file named C<path>."
8280 msgstr ""
8281
8282 # type: textblock
8283 #. type: textblock
8284 #: ../src/guestfs-actions.pod:876
8285 msgid ""
8286 "Note that this function cannot correctly handle binary files (specifically, "
8287 "files containing C<\\0> character which is treated as end of string).  For "
8288 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
8289 "functions which have a more complex interface."
8290 msgstr ""
8291
8292 # type: textblock
8293 #. type: textblock
8294 #: ../src/guestfs-actions.pod:884 ../src/guestfs-actions.pod:1063
8295 #: ../src/guestfs-actions.pod:1083 ../src/guestfs-actions.pod:1379
8296 #: ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:1501
8297 #: ../src/guestfs-actions.pod:1520 ../src/guestfs-actions.pod:1766
8298 #: ../src/guestfs-actions.pod:2224 ../src/guestfs-actions.pod:2243
8299 #: ../src/guestfs-actions.pod:2286 ../src/guestfs-actions.pod:2310
8300 #: ../src/guestfs-actions.pod:2327 ../src/guestfs-actions.pod:2356
8301 #: ../src/guestfs-actions.pod:5385 ../src/guestfs-actions.pod:5411
8302 #: ../src/guestfs-actions.pod:5542 ../src/guestfs-actions.pod:5568
8303 #: ../src/guestfs-actions.pod:5592 ../src/guestfs-actions.pod:6520
8304 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6721
8305 #: ../src/guestfs-actions.pod:6745 ../src/guestfs-actions.pod:7414
8306 #: ../src/guestfs-actions.pod:7440 ../src/guestfs-actions.pod:7466
8307 #: ../src/guestfs-actions.pod:7485 ../src/guestfs-actions.pod:7571
8308 #: ../src/guestfs-actions.pod:7590 ../src/guestfs-actions.pod:7636
8309 #: ../src/guestfs-actions.pod:7655 ../fish/guestfish-actions.pod:592
8310 #: ../fish/guestfish-actions.pod:727 ../fish/guestfish-actions.pod:739
8311 #: ../fish/guestfish-actions.pod:915 ../fish/guestfish-actions.pod:925
8312 #: ../fish/guestfish-actions.pod:992 ../fish/guestfish-actions.pod:1002
8313 #: ../fish/guestfish-actions.pod:1194 ../fish/guestfish-actions.pod:1495
8314 #: ../fish/guestfish-actions.pod:1505 ../fish/guestfish-actions.pod:1533
8315 #: ../fish/guestfish-actions.pod:1548 ../fish/guestfish-actions.pod:1558
8316 #: ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:3587
8317 #: ../fish/guestfish-actions.pod:3602 ../fish/guestfish-actions.pod:3678
8318 #: ../fish/guestfish-actions.pod:3695 ../fish/guestfish-actions.pod:3710
8319 #: ../fish/guestfish-actions.pod:4364 ../fish/guestfish-actions.pod:4410
8320 #: ../fish/guestfish-actions.pod:4495 ../fish/guestfish-actions.pod:4510
8321 #: ../fish/guestfish-actions.pod:4920 ../fish/guestfish-actions.pod:4938
8322 #: ../fish/guestfish-actions.pod:4955 ../fish/guestfish-actions.pod:4965
8323 #: ../fish/guestfish-actions.pod:5014 ../fish/guestfish-actions.pod:5024
8324 #: ../fish/guestfish-actions.pod:5053 ../fish/guestfish-actions.pod:5063
8325 msgid ""
8326 "Because of the message protocol, there is a transfer limit of somewhere "
8327 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
8328 msgstr ""
8329
8330 # type: textblock
8331 #. type: textblock
8332 #: ../src/guestfs-actions.pod:887 ../src/guestfs-actions.pod:3646
8333 #: ../src/guestfs-actions.pod:3708 ../src/guestfs-actions.pod:3725
8334 #: ../src/guestfs-actions.pod:3813 ../src/guestfs-actions.pod:4218
8335 #: ../src/guestfs-actions.pod:4232 ../src/guestfs-actions.pod:5491
8336 #: ../src/guestfs-actions.pod:5505 ../src/guestfs-actions.pod:7294
8337 #: ../src/guestfs-actions.pod:7308
8338 msgid "(Added in 0.4)"
8339 msgstr ""
8340
8341 # type: =head2
8342 #. type: =head2
8343 #: ../src/guestfs-actions.pod:889
8344 msgid "guestfs_checksum"
8345 msgstr ""
8346
8347 # type: verbatim
8348 #. type: verbatim
8349 #: ../src/guestfs-actions.pod:891
8350 #, no-wrap
8351 msgid ""
8352 " char *\n"
8353 " guestfs_checksum (guestfs_h *g,\n"
8354 "                   const char *csumtype,\n"
8355 "                   const char *path);\n"
8356 "\n"
8357 msgstr ""
8358
8359 # type: textblock
8360 #. type: textblock
8361 #: ../src/guestfs-actions.pod:896 ../fish/guestfish-actions.pod:599
8362 msgid ""
8363 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
8364 msgstr ""
8365
8366 # type: textblock
8367 #. type: textblock
8368 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:602
8369 msgid ""
8370 "The type of checksum to compute is given by the C<csumtype> parameter which "
8371 "must have one of the following values:"
8372 msgstr ""
8373
8374 # type: =item
8375 #. type: =item
8376 #: ../src/guestfs-actions.pod:904 ../fish/guestfish-actions.pod:607
8377 msgid "C<crc>"
8378 msgstr ""
8379
8380 # type: textblock
8381 #. type: textblock
8382 #: ../src/guestfs-actions.pod:906 ../fish/guestfish-actions.pod:609
8383 msgid ""
8384 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
8385 "C<cksum> command."
8386 msgstr ""
8387
8388 # type: =item
8389 #. type: =item
8390 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:612
8391 msgid "C<md5>"
8392 msgstr ""
8393
8394 # type: textblock
8395 #. type: textblock
8396 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:614
8397 msgid "Compute the MD5 hash (using the C<md5sum> program)."
8398 msgstr ""
8399
8400 # type: =item
8401 #. type: =item
8402 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:616
8403 msgid "C<sha1>"
8404 msgstr ""
8405
8406 # type: textblock
8407 #. type: textblock
8408 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:618
8409 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
8410 msgstr ""
8411
8412 # type: =item
8413 #. type: =item
8414 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:620
8415 msgid "C<sha224>"
8416 msgstr ""
8417
8418 # type: textblock
8419 #. type: textblock
8420 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:622
8421 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
8422 msgstr ""
8423
8424 # type: =item
8425 #. type: =item
8426 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:624
8427 msgid "C<sha256>"
8428 msgstr ""
8429
8430 # type: textblock
8431 #. type: textblock
8432 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:626
8433 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
8434 msgstr ""
8435
8436 # type: =item
8437 #. type: =item
8438 #: ../src/guestfs-actions.pod:925 ../fish/guestfish-actions.pod:628
8439 msgid "C<sha384>"
8440 msgstr ""
8441
8442 # type: textblock
8443 #. type: textblock
8444 #: ../src/guestfs-actions.pod:927 ../fish/guestfish-actions.pod:630
8445 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
8446 msgstr ""
8447
8448 # type: =item
8449 #. type: =item
8450 #: ../src/guestfs-actions.pod:929 ../fish/guestfish-actions.pod:632
8451 msgid "C<sha512>"
8452 msgstr ""
8453
8454 # type: textblock
8455 #. type: textblock
8456 #: ../src/guestfs-actions.pod:931 ../fish/guestfish-actions.pod:634
8457 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
8458 msgstr ""
8459
8460 # type: textblock
8461 #. type: textblock
8462 #: ../src/guestfs-actions.pod:935 ../fish/guestfish-actions.pod:638
8463 msgid "The checksum is returned as a printable string."
8464 msgstr ""
8465
8466 # type: textblock
8467 #. type: textblock
8468 #: ../src/guestfs-actions.pod:937
8469 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
8470 msgstr ""
8471
8472 # type: textblock
8473 #. type: textblock
8474 #: ../src/guestfs-actions.pod:939
8475 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
8476 msgstr ""
8477
8478 # type: textblock
8479 #. type: textblock
8480 #: ../src/guestfs-actions.pod:944 ../src/guestfs-actions.pod:1252
8481 #: ../src/guestfs-actions.pod:2086 ../src/guestfs-actions.pod:3350
8482 #: ../src/guestfs-actions.pod:3379 ../src/guestfs-actions.pod:3440
8483 #: ../src/guestfs-actions.pod:3467 ../src/guestfs-actions.pod:6991
8484 msgid "(Added in 1.0.2)"
8485 msgstr ""
8486
8487 # type: =head2
8488 #. type: =head2
8489 #: ../src/guestfs-actions.pod:946
8490 msgid "guestfs_checksum_device"
8491 msgstr ""
8492
8493 # type: verbatim
8494 #. type: verbatim
8495 #: ../src/guestfs-actions.pod:948
8496 #, no-wrap
8497 msgid ""
8498 " char *\n"
8499 " guestfs_checksum_device (guestfs_h *g,\n"
8500 "                          const char *csumtype,\n"
8501 "                          const char *device);\n"
8502 "\n"
8503 msgstr ""
8504
8505 # type: textblock
8506 #. type: textblock
8507 #: ../src/guestfs-actions.pod:953
8508 msgid ""
8509 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
8510 "device named C<device>.  For the types of checksums supported see the "
8511 "C<guestfs_checksum> command."
8512 msgstr ""
8513
8514 # type: textblock
8515 #. type: textblock
8516 #: ../src/guestfs-actions.pod:960 ../src/guestfs-actions.pod:5022
8517 #: ../src/guestfs-actions.pod:5081 ../src/guestfs-actions.pod:5118
8518 #: ../src/guestfs-actions.pod:5136 ../src/guestfs-actions.pod:5312
8519 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-actions.pod:6914
8520 #: ../src/guestfs-actions.pod:7320
8521 msgid "(Added in 1.3.2)"
8522 msgstr ""
8523
8524 # type: =head2
8525 #. type: =head2
8526 #: ../src/guestfs-actions.pod:962
8527 msgid "guestfs_checksums_out"
8528 msgstr ""
8529
8530 # type: verbatim
8531 #. type: verbatim
8532 #: ../src/guestfs-actions.pod:964
8533 #, no-wrap
8534 msgid ""
8535 " int\n"
8536 " guestfs_checksums_out (guestfs_h *g,\n"
8537 "                        const char *csumtype,\n"
8538 "                        const char *directory,\n"
8539 "                        const char *sumsfile);\n"
8540 "\n"
8541 msgstr ""
8542
8543 # type: textblock
8544 #. type: textblock
8545 #: ../src/guestfs-actions.pod:970 ../fish/guestfish-actions.pod:656
8546 msgid ""
8547 "This command computes the checksums of all regular files in C<directory> and "
8548 "then emits a list of those checksums to the local output file C<sumsfile>."
8549 msgstr ""
8550
8551 # type: textblock
8552 #. type: textblock
8553 #: ../src/guestfs-actions.pod:974 ../fish/guestfish-actions.pod:660
8554 msgid ""
8555 "This can be used for verifying the integrity of a virtual machine.  However "
8556 "to be properly secure you should pay attention to the output of the checksum "
8557 "command (it uses the ones from GNU coreutils).  In particular when the "
8558 "filename is not printable, coreutils uses a special backslash syntax.  For "
8559 "more information, see the GNU coreutils info file."
8560 msgstr ""
8561
8562 # type: textblock
8563 #. type: textblock
8564 #: ../src/guestfs-actions.pod:984
8565 msgid "(Added in 1.3.7)"
8566 msgstr ""
8567
8568 # type: =head2
8569 #. type: =head2
8570 #: ../src/guestfs-actions.pod:986
8571 msgid "guestfs_chmod"
8572 msgstr ""
8573
8574 # type: verbatim
8575 #. type: verbatim
8576 #: ../src/guestfs-actions.pod:988
8577 #, no-wrap
8578 msgid ""
8579 " int\n"
8580 " guestfs_chmod (guestfs_h *g,\n"
8581 "                int mode,\n"
8582 "                const char *path);\n"
8583 "\n"
8584 msgstr ""
8585
8586 # type: textblock
8587 #. type: textblock
8588 #: ../src/guestfs-actions.pod:993 ../fish/guestfish-actions.pod:674
8589 msgid ""
8590 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
8591 "supported."
8592 msgstr ""
8593
8594 # type: textblock
8595 #. type: textblock
8596 #: ../src/guestfs-actions.pod:996 ../fish/guestfish-actions.pod:677
8597 msgid ""
8598 "I<Note>: When using this command from guestfish, C<mode> by default would be "
8599 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
8600 "C<700>."
8601 msgstr ""
8602
8603 # type: textblock
8604 #. type: textblock
8605 #: ../src/guestfs-actions.pod:1000 ../src/guestfs-actions.pod:4469
8606 #: ../src/guestfs-actions.pod:4666 ../src/guestfs-actions.pod:4685
8607 #: ../src/guestfs-actions.pod:4704 ../fish/guestfish-actions.pod:681
8608 #: ../fish/guestfish-actions.pod:3013 ../fish/guestfish-actions.pod:3142
8609 #: ../fish/guestfish-actions.pod:3152 ../fish/guestfish-actions.pod:3162
8610 msgid "The mode actually set is affected by the umask."
8611 msgstr ""
8612
8613 # type: =head2
8614 #. type: =head2
8615 #: ../src/guestfs-actions.pod:1006
8616 msgid "guestfs_chown"
8617 msgstr ""
8618
8619 # type: verbatim
8620 #. type: verbatim
8621 #: ../src/guestfs-actions.pod:1008
8622 #, no-wrap
8623 msgid ""
8624 " int\n"
8625 " guestfs_chown (guestfs_h *g,\n"
8626 "                int owner,\n"
8627 "                int group,\n"
8628 "                const char *path);\n"
8629 "\n"
8630 msgstr ""
8631
8632 # type: textblock
8633 #. type: textblock
8634 #: ../src/guestfs-actions.pod:1014 ../fish/guestfish-actions.pod:687
8635 msgid "Change the file owner to C<owner> and group to C<group>."
8636 msgstr ""
8637
8638 # type: textblock
8639 #. type: textblock
8640 #: ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:3565
8641 #: ../fish/guestfish-actions.pod:689 ../fish/guestfish-actions.pod:2464
8642 msgid ""
8643 "Only numeric uid and gid are supported.  If you want to use names, you will "
8644 "need to locate and parse the password file yourself (Augeas support makes "
8645 "this relatively easy)."
8646 msgstr ""
8647
8648 # type: =head2
8649 #. type: =head2
8650 #: ../src/guestfs-actions.pod:1024
8651 msgid "guestfs_command"
8652 msgstr ""
8653
8654 # type: verbatim
8655 #. type: verbatim
8656 #: ../src/guestfs-actions.pod:1026
8657 #, no-wrap
8658 msgid ""
8659 " char *\n"
8660 " guestfs_command (guestfs_h *g,\n"
8661 "                  char *const *arguments);\n"
8662 "\n"
8663 msgstr ""
8664
8665 # type: textblock
8666 #. type: textblock
8667 #: ../src/guestfs-actions.pod:1030 ../fish/guestfish-actions.pod:697
8668 msgid ""
8669 "This call runs a command from the guest filesystem.  The filesystem must be "
8670 "mounted, and must contain a compatible operating system (ie. something "
8671 "Linux, with the same or compatible processor architecture)."
8672 msgstr ""
8673
8674 # type: textblock
8675 #. type: textblock
8676 #: ../src/guestfs-actions.pod:1035
8677 msgid ""
8678 "The single parameter is an argv-style list of arguments.  The first element "
8679 "is the name of the program to run.  Subsequent elements are parameters.  The "
8680 "list must be non-empty (ie. must contain a program name).  Note that the "
8681 "command runs directly, and is I<not> invoked via the shell (see "
8682 "C<guestfs_sh>)."
8683 msgstr ""
8684
8685 # type: textblock
8686 #. type: textblock
8687 #: ../src/guestfs-actions.pod:1042 ../fish/guestfish-actions.pod:709
8688 msgid "The return value is anything printed to I<stdout> by the command."
8689 msgstr ""
8690
8691 # type: textblock
8692 #. type: textblock
8693 #: ../src/guestfs-actions.pod:1045 ../fish/guestfish-actions.pod:712
8694 msgid ""
8695 "If the command returns a non-zero exit status, then this function returns an "
8696 "error message.  The error message string is the content of I<stderr> from "
8697 "the command."
8698 msgstr ""
8699
8700 # type: textblock
8701 #. type: textblock
8702 #: ../src/guestfs-actions.pod:1049 ../fish/guestfish-actions.pod:716
8703 msgid ""
8704 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
8705 "bin>.  If you require a program from another location, you should provide "
8706 "the full path in the first parameter."
8707 msgstr ""
8708
8709 # type: textblock
8710 #. type: textblock
8711 #: ../src/guestfs-actions.pod:1054 ../fish/guestfish-actions.pod:721
8712 msgid ""
8713 "Shared libraries and data files required by the program must be available on "
8714 "filesystems which are mounted in the correct places.  It is the caller's "
8715 "responsibility to ensure all filesystems that are needed are mounted at the "
8716 "right locations."
8717 msgstr ""
8718
8719 # type: textblock
8720 #. type: textblock
8721 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1086
8722 #: ../src/guestfs-actions.pod:1551
8723 msgid "(Added in 0.9.1)"
8724 msgstr ""
8725
8726 # type: =head2
8727 #. type: =head2
8728 #: ../src/guestfs-actions.pod:1068
8729 msgid "guestfs_command_lines"
8730 msgstr ""
8731
8732 # type: verbatim
8733 #. type: verbatim
8734 #: ../src/guestfs-actions.pod:1070
8735 #, no-wrap
8736 msgid ""
8737 " char **\n"
8738 " guestfs_command_lines (guestfs_h *g,\n"
8739 "                        char *const *arguments);\n"
8740 "\n"
8741 msgstr ""
8742
8743 # type: textblock
8744 #. type: textblock
8745 #: ../src/guestfs-actions.pod:1074
8746 msgid ""
8747 "This is the same as C<guestfs_command>, but splits the result into a list of "
8748 "lines."
8749 msgstr ""
8750
8751 # type: textblock
8752 #. type: textblock
8753 #: ../src/guestfs-actions.pod:1077
8754 msgid "See also: C<guestfs_sh_lines>"
8755 msgstr ""
8756
8757 # type: =head2
8758 #. type: =head2
8759 #: ../src/guestfs-actions.pod:1088
8760 msgid "guestfs_config"
8761 msgstr ""
8762
8763 # type: verbatim
8764 #. type: verbatim
8765 #: ../src/guestfs-actions.pod:1090
8766 #, no-wrap
8767 msgid ""
8768 " int\n"
8769 " guestfs_config (guestfs_h *g,\n"
8770 "                 const char *qemuparam,\n"
8771 "                 const char *qemuvalue);\n"
8772 "\n"
8773 msgstr ""
8774
8775 #. type: textblock
8776 #: ../src/guestfs-actions.pod:1095 ../fish/guestfish-actions.pod:746
8777 msgid ""
8778 "This can be used to add arbitrary qemu command line parameters of the form "
8779 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8780 "setting some parameters which would interfere with parameters that we use."
8781 msgstr ""
8782
8783 # type: textblock
8784 #. type: textblock
8785 #: ../src/guestfs-actions.pod:1100 ../fish/guestfish-actions.pod:751
8786 msgid "The first character of C<param> string must be a C<-> (dash)."
8787 msgstr ""
8788
8789 # type: textblock
8790 #. type: textblock
8791 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:753
8792 msgid "C<value> can be NULL."
8793 msgstr ""
8794
8795 # type: =head2
8796 #. type: =head2
8797 #: ../src/guestfs-actions.pod:1108
8798 msgid "guestfs_copy_size"
8799 msgstr ""
8800
8801 # type: verbatim
8802 #. type: verbatim
8803 #: ../src/guestfs-actions.pod:1110
8804 #, no-wrap
8805 msgid ""
8806 " int\n"
8807 " guestfs_copy_size (guestfs_h *g,\n"
8808 "                    const char *src,\n"
8809 "                    const char *dest,\n"
8810 "                    int64_t size);\n"
8811 "\n"
8812 msgstr ""
8813
8814 # type: textblock
8815 #. type: textblock
8816 #: ../src/guestfs-actions.pod:1116 ../fish/guestfish-actions.pod:759
8817 msgid ""
8818 "This command copies exactly C<size> bytes from one source device or file "
8819 "C<src> to another destination device or file C<dest>."
8820 msgstr ""
8821
8822 # type: textblock
8823 #. type: textblock
8824 #: ../src/guestfs-actions.pod:1119 ../fish/guestfish-actions.pod:762
8825 msgid ""
8826 "Note this will fail if the source is too short or if the destination is not "
8827 "large enough."
8828 msgstr ""
8829
8830 #. type: textblock
8831 #: ../src/guestfs-actions.pod:1124 ../src/guestfs-actions.pod:1247
8832 #: ../src/guestfs-actions.pod:1278 ../src/guestfs-actions.pod:1323
8833 #: ../src/guestfs-actions.pod:1700 ../src/guestfs-actions.pod:1722
8834 #: ../src/guestfs-actions.pod:3546 ../src/guestfs-actions.pod:6986
8835 #: ../src/guestfs-actions.pod:7020 ../src/guestfs-actions.pod:7507
8836 #: ../src/guestfs-actions.pod:7526
8837 msgid ""
8838 "This long-running command can generate progress notification messages so "
8839 "that the caller can display a progress bar or indicator.  To receive these "
8840 "messages, the caller must register a progress event callback.  See L<guestfs"
8841 "(3)/GUESTFS_EVENT_PROGRESS>."
8842 msgstr ""
8843
8844 # type: textblock
8845 #. type: textblock
8846 #: ../src/guestfs-actions.pod:1129 ../src/guestfs-actions.pod:4245
8847 #: ../src/guestfs-actions.pod:5518 ../src/guestfs-actions.pod:7227
8848 #: ../src/guestfs-actions.pod:7247 ../src/guestfs-actions.pod:7333
8849 msgid "(Added in 1.0.87)"
8850 msgstr ""
8851
8852 # type: =head2
8853 #. type: =head2
8854 #: ../src/guestfs-actions.pod:1131
8855 msgid "guestfs_cp"
8856 msgstr ""
8857
8858 # type: verbatim
8859 #. type: verbatim
8860 #: ../src/guestfs-actions.pod:1133
8861 #, no-wrap
8862 msgid ""
8863 " int\n"
8864 " guestfs_cp (guestfs_h *g,\n"
8865 "             const char *src,\n"
8866 "             const char *dest);\n"
8867 "\n"
8868 msgstr ""
8869
8870 # type: textblock
8871 #. type: textblock
8872 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:769
8873 msgid ""
8874 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8875 "destination filename or destination directory."
8876 msgstr ""
8877
8878 # type: textblock
8879 #. type: textblock
8880 #: ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1157
8881 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1303
8882 #: ../src/guestfs-actions.pod:1417 ../src/guestfs-actions.pod:4985
8883 #: ../src/guestfs-actions.pod:5362
8884 msgid "(Added in 1.0.18)"
8885 msgstr ""
8886
8887 # type: =head2
8888 #. type: =head2
8889 #: ../src/guestfs-actions.pod:1145
8890 msgid "guestfs_cp_a"
8891 msgstr ""
8892
8893 # type: verbatim
8894 #. type: verbatim
8895 #: ../src/guestfs-actions.pod:1147
8896 #, no-wrap
8897 msgid ""
8898 " int\n"
8899 " guestfs_cp_a (guestfs_h *g,\n"
8900 "               const char *src,\n"
8901 "               const char *dest);\n"
8902 "\n"
8903 msgstr ""
8904
8905 # type: textblock
8906 #. type: textblock
8907 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:776
8908 msgid ""
8909 "This copies a file or directory from C<src> to C<dest> recursively using the "
8910 "C<cp -a> command."
8911 msgstr ""
8912
8913 # type: =head2
8914 #. type: =head2
8915 #: ../src/guestfs-actions.pod:1159
8916 msgid "guestfs_dd"
8917 msgstr ""
8918
8919 # type: verbatim
8920 #. type: verbatim
8921 #: ../src/guestfs-actions.pod:1161
8922 #, no-wrap
8923 msgid ""
8924 " int\n"
8925 " guestfs_dd (guestfs_h *g,\n"
8926 "             const char *src,\n"
8927 "             const char *dest);\n"
8928 "\n"
8929 msgstr ""
8930
8931 # type: textblock
8932 #. type: textblock
8933 #: ../src/guestfs-actions.pod:1166 ../fish/guestfish-actions.pod:783
8934 msgid ""
8935 "This command copies from one source device or file C<src> to another "
8936 "destination device or file C<dest>.  Normally you would use this to copy to "
8937 "or from a device or partition, for example to duplicate a filesystem."
8938 msgstr ""
8939
8940 # type: textblock
8941 #. type: textblock
8942 #: ../src/guestfs-actions.pod:1171
8943 msgid ""
8944 "If the destination is a device, it must be as large or larger than the "
8945 "source file or device, otherwise the copy will fail.  This command cannot do "
8946 "partial copies (see C<guestfs_copy_size>)."
8947 msgstr ""
8948
8949 # type: =head2
8950 #. type: =head2
8951 #: ../src/guestfs-actions.pod:1179
8952 msgid "guestfs_df"
8953 msgstr ""
8954
8955 # type: verbatim
8956 #. type: verbatim
8957 #: ../src/guestfs-actions.pod:1181
8958 #, no-wrap
8959 msgid ""
8960 " char *\n"
8961 " guestfs_df (guestfs_h *g);\n"
8962 "\n"
8963 msgstr ""
8964
8965 # type: textblock
8966 #. type: textblock
8967 #: ../src/guestfs-actions.pod:1184 ../fish/guestfish-actions.pod:796
8968 msgid "This command runs the C<df> command to report disk space used."
8969 msgstr ""
8970
8971 # type: textblock
8972 #. type: textblock
8973 #: ../src/guestfs-actions.pod:1186 ../src/guestfs-actions.pod:1203
8974 msgid ""
8975 "This command is mostly useful for interactive sessions.  It is I<not> "
8976 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
8977 "from programs."
8978 msgstr ""
8979
8980 # type: textblock
8981 #. type: textblock
8982 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:1210
8983 #: ../src/guestfs-actions.pod:1328 ../src/guestfs-actions.pod:2289
8984 #: ../src/guestfs-actions.pod:2313 ../src/guestfs-actions.pod:2381
8985 #: ../src/guestfs-actions.pod:4355 ../src/guestfs-actions.pod:4885
8986 #: ../src/guestfs-actions.pod:6724 ../src/guestfs-actions.pod:6748
8987 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7386
8988 #: ../src/guestfs-actions.pod:7399
8989 msgid "(Added in 1.0.54)"
8990 msgstr ""
8991
8992 # type: =head2
8993 #. type: =head2
8994 #: ../src/guestfs-actions.pod:1195
8995 msgid "guestfs_df_h"
8996 msgstr ""
8997
8998 # type: verbatim
8999 #. type: verbatim
9000 #: ../src/guestfs-actions.pod:1197
9001 #, no-wrap
9002 msgid ""
9003 " char *\n"
9004 " guestfs_df_h (guestfs_h *g);\n"
9005 "\n"
9006 msgstr ""
9007
9008 # type: textblock
9009 #. type: textblock
9010 #: ../src/guestfs-actions.pod:1200 ../fish/guestfish-actions.pod:806
9011 msgid ""
9012 "This command runs the C<df -h> command to report disk space used in human-"
9013 "readable format."
9014 msgstr ""
9015
9016 # type: =head2
9017 #. type: =head2
9018 #: ../src/guestfs-actions.pod:1212
9019 msgid "guestfs_dmesg"
9020 msgstr ""
9021
9022 # type: verbatim
9023 #. type: verbatim
9024 #: ../src/guestfs-actions.pod:1214
9025 #, no-wrap
9026 msgid ""
9027 " char *\n"
9028 " guestfs_dmesg (guestfs_h *g);\n"
9029 "\n"
9030 msgstr ""
9031
9032 # type: textblock
9033 #. type: textblock
9034 #: ../src/guestfs-actions.pod:1217 ../fish/guestfish-actions.pod:817
9035 msgid ""
9036 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
9037 "This is sometimes useful for extended debugging of problems."
9038 msgstr ""
9039
9040 # type: textblock
9041 #. type: textblock
9042 #: ../src/guestfs-actions.pod:1221
9043 msgid ""
9044 "Another way to get the same information is to enable verbose messages with "
9045 "C<guestfs_set_verbose> or by setting the environment variable "
9046 "C<LIBGUESTFS_DEBUG=1> before running the program."
9047 msgstr ""
9048
9049 # type: =head2
9050 #. type: =head2
9051 #: ../src/guestfs-actions.pod:1231
9052 msgid "guestfs_download"
9053 msgstr ""
9054
9055 # type: verbatim
9056 #. type: verbatim
9057 #: ../src/guestfs-actions.pod:1233
9058 #, no-wrap
9059 msgid ""
9060 " int\n"
9061 " guestfs_download (guestfs_h *g,\n"
9062 "                   const char *remotefilename,\n"
9063 "                   const char *filename);\n"
9064 "\n"
9065 msgstr ""
9066
9067 # type: textblock
9068 #. type: textblock
9069 #: ../src/guestfs-actions.pod:1238 ../src/guestfs-actions.pod:1263
9070 #: ../fish/guestfish-actions.pod:830 ../fish/guestfish-actions.pod:843
9071 msgid ""
9072 "Download file C<remotefilename> and save it as C<filename> on the local "
9073 "machine."
9074 msgstr ""
9075
9076 # type: textblock
9077 #. type: textblock
9078 #: ../src/guestfs-actions.pod:1241 ../src/guestfs-actions.pod:6980
9079 #: ../fish/guestfish-actions.pod:833 ../fish/guestfish-actions.pod:4668
9080 msgid "C<filename> can also be a named pipe."
9081 msgstr ""
9082
9083 # type: textblock
9084 #. type: textblock
9085 #: ../src/guestfs-actions.pod:1243
9086 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
9087 msgstr ""
9088
9089 # type: =head2
9090 #. type: =head2
9091 #: ../src/guestfs-actions.pod:1254
9092 msgid "guestfs_download_offset"
9093 msgstr ""
9094
9095 # type: verbatim
9096 #. type: verbatim
9097 #: ../src/guestfs-actions.pod:1256
9098 #, no-wrap
9099 msgid ""
9100 " int\n"
9101 " guestfs_download_offset (guestfs_h *g,\n"
9102 "                          const char *remotefilename,\n"
9103 "                          const char *filename,\n"
9104 "                          int64_t offset,\n"
9105 "                          int64_t size);\n"
9106 "\n"
9107 msgstr ""
9108
9109 # type: textblock
9110 #. type: textblock
9111 #: ../src/guestfs-actions.pod:1266 ../fish/guestfish-actions.pod:846
9112 msgid ""
9113 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
9114 "region must be within the file or device)."
9115 msgstr ""
9116
9117 # type: textblock
9118 #. type: textblock
9119 #: ../src/guestfs-actions.pod:1269
9120 msgid ""
9121 "Note that there is no limit on the amount of data that can be downloaded "
9122 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
9123 "full amount unless an error occurs."
9124 msgstr ""
9125
9126 # type: textblock
9127 #. type: textblock
9128 #: ../src/guestfs-actions.pod:1274
9129 msgid "See also C<guestfs_download>, C<guestfs_pread>."
9130 msgstr ""
9131
9132 # type: textblock
9133 #. type: textblock
9134 #: ../src/guestfs-actions.pod:1283 ../src/guestfs-actions.pod:7025
9135 msgid "(Added in 1.5.17)"
9136 msgstr ""
9137
9138 # type: =head2
9139 #. type: =head2
9140 #: ../src/guestfs-actions.pod:1285
9141 msgid "guestfs_drop_caches"
9142 msgstr ""
9143
9144 # type: verbatim
9145 #. type: verbatim
9146 #: ../src/guestfs-actions.pod:1287
9147 #, no-wrap
9148 msgid ""
9149 " int\n"
9150 " guestfs_drop_caches (guestfs_h *g,\n"
9151 "                      int whattodrop);\n"
9152 "\n"
9153 msgstr ""
9154
9155 # type: textblock
9156 #. type: textblock
9157 #: ../src/guestfs-actions.pod:1291 ../fish/guestfish-actions.pod:862
9158 msgid ""
9159 "This instructs the guest kernel to drop its page cache, and/or dentries and "
9160 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
9161 "to drop, see L<http://linux-mm.org/Drop_Caches>"
9162 msgstr ""
9163
9164 # type: textblock
9165 #. type: textblock
9166 #: ../src/guestfs-actions.pod:1296 ../fish/guestfish-actions.pod:867
9167 msgid "Setting C<whattodrop> to 3 should drop everything."
9168 msgstr ""
9169
9170 # type: textblock
9171 #. type: textblock
9172 #: ../src/guestfs-actions.pod:1298 ../fish/guestfish-actions.pod:869
9173 msgid ""
9174 "This automatically calls L<sync(2)> before the operation, so that the "
9175 "maximum guest memory is freed."
9176 msgstr ""
9177
9178 # type: =head2
9179 #. type: =head2
9180 #: ../src/guestfs-actions.pod:1305
9181 msgid "guestfs_du"
9182 msgstr ""
9183
9184 # type: verbatim
9185 #. type: verbatim
9186 #: ../src/guestfs-actions.pod:1307
9187 #, no-wrap
9188 msgid ""
9189 " int64_t\n"
9190 " guestfs_du (guestfs_h *g,\n"
9191 "             const char *path);\n"
9192 "\n"
9193 msgstr ""
9194
9195 # type: textblock
9196 #. type: textblock
9197 #: ../src/guestfs-actions.pod:1311 ../fish/guestfish-actions.pod:876
9198 msgid ""
9199 "This command runs the C<du -s> command to estimate file space usage for "
9200 "C<path>."
9201 msgstr ""
9202
9203 # type: textblock
9204 #. type: textblock
9205 #: ../src/guestfs-actions.pod:1314 ../fish/guestfish-actions.pod:879
9206 msgid ""
9207 "C<path> can be a file or a directory.  If C<path> is a directory then the "
9208 "estimate includes the contents of the directory and all subdirectories "
9209 "(recursively)."
9210 msgstr ""
9211
9212 # type: textblock
9213 #. type: textblock
9214 #: ../src/guestfs-actions.pod:1318 ../fish/guestfish-actions.pod:883
9215 msgid ""
9216 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
9217 msgstr ""
9218
9219 # type: =head2
9220 #. type: =head2
9221 #: ../src/guestfs-actions.pod:1330
9222 msgid "guestfs_e2fsck_f"
9223 msgstr ""
9224
9225 # type: verbatim
9226 #. type: verbatim
9227 #: ../src/guestfs-actions.pod:1332
9228 #, no-wrap
9229 msgid ""
9230 " int\n"
9231 " guestfs_e2fsck_f (guestfs_h *g,\n"
9232 "                   const char *device);\n"
9233 "\n"
9234 msgstr ""
9235
9236 #. type: textblock
9237 #: ../src/guestfs-actions.pod:1336 ../fish/guestfish-actions.pod:890
9238 msgid ""
9239 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
9240 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
9241 "clean (I<-f>)."
9242 msgstr ""
9243
9244 # type: textblock
9245 #. type: textblock
9246 #: ../src/guestfs-actions.pod:1340
9247 msgid ""
9248 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
9249 "Normally you should use C<guestfs_fsck>."
9250 msgstr ""
9251
9252 # type: textblock
9253 #. type: textblock
9254 #: ../src/guestfs-actions.pod:1345
9255 msgid "(Added in 1.0.29)"
9256 msgstr ""
9257
9258 # type: =head2
9259 #. type: =head2
9260 #: ../src/guestfs-actions.pod:1347
9261 msgid "guestfs_echo_daemon"
9262 msgstr ""
9263
9264 # type: verbatim
9265 #. type: verbatim
9266 #: ../src/guestfs-actions.pod:1349
9267 #, no-wrap
9268 msgid ""
9269 " char *\n"
9270 " guestfs_echo_daemon (guestfs_h *g,\n"
9271 "                      char *const *words);\n"
9272 "\n"
9273 msgstr ""
9274
9275 # type: textblock
9276 #. type: textblock
9277 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:901
9278 msgid ""
9279 "This command concatenates the list of C<words> passed with single spaces "
9280 "between them and returns the resulting string."
9281 msgstr ""
9282
9283 # type: textblock
9284 #. type: textblock
9285 #: ../src/guestfs-actions.pod:1356 ../fish/guestfish-actions.pod:904
9286 msgid "You can use this command to test the connection through to the daemon."
9287 msgstr ""
9288
9289 # type: textblock
9290 #. type: textblock
9291 #: ../src/guestfs-actions.pod:1358
9292 msgid "See also C<guestfs_ping_daemon>."
9293 msgstr ""
9294
9295 # type: textblock
9296 #. type: textblock
9297 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:2097
9298 #: ../src/guestfs-actions.pod:6196
9299 msgid "(Added in 1.0.69)"
9300 msgstr ""
9301
9302 # type: =head2
9303 #. type: =head2
9304 #: ../src/guestfs-actions.pod:1365
9305 msgid "guestfs_egrep"
9306 msgstr ""
9307
9308 # type: verbatim
9309 #. type: verbatim
9310 #: ../src/guestfs-actions.pod:1367
9311 #, no-wrap
9312 msgid ""
9313 " char **\n"
9314 " guestfs_egrep (guestfs_h *g,\n"
9315 "                const char *regex,\n"
9316 "                const char *path);\n"
9317 "\n"
9318 msgstr ""
9319
9320 # type: textblock
9321 #. type: textblock
9322 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:912
9323 msgid ""
9324 "This calls the external C<egrep> program and returns the matching lines."
9325 msgstr ""
9326
9327 # type: textblock
9328 #. type: textblock
9329 #: ../src/guestfs-actions.pod:1382 ../src/guestfs-actions.pod:1401
9330 #: ../src/guestfs-actions.pod:1458 ../src/guestfs-actions.pod:1504
9331 #: ../src/guestfs-actions.pod:1523 ../src/guestfs-actions.pod:2227
9332 #: ../src/guestfs-actions.pod:2246 ../src/guestfs-actions.pod:2402
9333 #: ../src/guestfs-actions.pod:2415 ../src/guestfs-actions.pod:2430
9334 #: ../src/guestfs-actions.pod:2476 ../src/guestfs-actions.pod:2498
9335 #: ../src/guestfs-actions.pod:2511 ../src/guestfs-actions.pod:3738
9336 #: ../src/guestfs-actions.pod:3752 ../src/guestfs-actions.pod:3765
9337 #: ../src/guestfs-actions.pod:3779 ../src/guestfs-actions.pod:4765
9338 #: ../src/guestfs-actions.pod:5696 ../src/guestfs-actions.pod:5745
9339 #: ../src/guestfs-actions.pod:6592 ../src/guestfs-actions.pod:6604
9340 #: ../src/guestfs-actions.pod:6617 ../src/guestfs-actions.pod:6630
9341 #: ../src/guestfs-actions.pod:6652 ../src/guestfs-actions.pod:6665
9342 #: ../src/guestfs-actions.pod:6678 ../src/guestfs-actions.pod:6691
9343 #: ../src/guestfs-actions.pod:7469 ../src/guestfs-actions.pod:7488
9344 #: ../src/guestfs-actions.pod:7574 ../src/guestfs-actions.pod:7593
9345 #: ../src/guestfs-actions.pod:7639 ../src/guestfs-actions.pod:7658
9346 msgid "(Added in 1.0.66)"
9347 msgstr ""
9348
9349 # type: =head2
9350 #. type: =head2
9351 #: ../src/guestfs-actions.pod:1384
9352 msgid "guestfs_egrepi"
9353 msgstr ""
9354
9355 # type: verbatim
9356 #. type: verbatim
9357 #: ../src/guestfs-actions.pod:1386
9358 #, no-wrap
9359 msgid ""
9360 " char **\n"
9361 " guestfs_egrepi (guestfs_h *g,\n"
9362 "                 const char *regex,\n"
9363 "                 const char *path);\n"
9364 "\n"
9365 msgstr ""
9366
9367 # type: textblock
9368 #. type: textblock
9369 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:922
9370 msgid ""
9371 "This calls the external C<egrep -i> program and returns the matching lines."
9372 msgstr ""
9373
9374 # type: =head2
9375 #. type: =head2
9376 #: ../src/guestfs-actions.pod:1403
9377 msgid "guestfs_equal"
9378 msgstr ""
9379
9380 # type: verbatim
9381 #. type: verbatim
9382 #: ../src/guestfs-actions.pod:1405
9383 #, no-wrap
9384 msgid ""
9385 " int\n"
9386 " guestfs_equal (guestfs_h *g,\n"
9387 "                const char *file1,\n"
9388 "                const char *file2);\n"
9389 "\n"
9390 msgstr ""
9391
9392 # type: textblock
9393 #. type: textblock
9394 #: ../src/guestfs-actions.pod:1410 ../fish/guestfish-actions.pod:932
9395 msgid ""
9396 "This compares the two files C<file1> and C<file2> and returns true if their "
9397 "content is exactly equal, or false otherwise."
9398 msgstr ""
9399
9400 # type: textblock
9401 #. type: textblock
9402 #: ../src/guestfs-actions.pod:1413 ../fish/guestfish-actions.pod:935
9403 msgid "The external L<cmp(1)> program is used for the comparison."
9404 msgstr ""
9405
9406 # type: =head2
9407 #. type: =head2
9408 #: ../src/guestfs-actions.pod:1419
9409 msgid "guestfs_exists"
9410 msgstr ""
9411
9412 # type: verbatim
9413 #. type: verbatim
9414 #: ../src/guestfs-actions.pod:1421
9415 #, no-wrap
9416 msgid ""
9417 " int\n"
9418 " guestfs_exists (guestfs_h *g,\n"
9419 "                 const char *path);\n"
9420 "\n"
9421 msgstr ""
9422
9423 # type: textblock
9424 #. type: textblock
9425 #: ../src/guestfs-actions.pod:1425 ../fish/guestfish-actions.pod:941
9426 msgid ""
9427 "This returns C<true> if and only if there is a file, directory (or anything) "
9428 "with the given C<path> name."
9429 msgstr ""
9430
9431 # type: textblock
9432 #. type: textblock
9433 #: ../src/guestfs-actions.pod:1428
9434 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
9435 msgstr ""
9436
9437 # type: =head2
9438 #. type: =head2
9439 #: ../src/guestfs-actions.pod:1434
9440 msgid "guestfs_fallocate"
9441 msgstr ""
9442
9443 # type: verbatim
9444 #. type: verbatim
9445 #: ../src/guestfs-actions.pod:1436
9446 #, no-wrap
9447 msgid ""
9448 " int\n"
9449 " guestfs_fallocate (guestfs_h *g,\n"
9450 "                    const char *path,\n"
9451 "                    int len);\n"
9452 "\n"
9453 msgstr ""
9454
9455 # type: textblock
9456 #. type: textblock
9457 #: ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1467
9458 #: ../fish/guestfish-actions.pod:950 ../fish/guestfish-actions.pod:969
9459 msgid ""
9460 "This command preallocates a file (containing zero bytes) named C<path> of "
9461 "size C<len> bytes.  If the file exists already, it is overwritten."
9462 msgstr ""
9463
9464 # type: textblock
9465 #. type: textblock
9466 #: ../src/guestfs-actions.pod:1445 ../fish/guestfish-actions.pod:954
9467 msgid ""
9468 "Do not confuse this with the guestfish-specific C<alloc> command which "
9469 "allocates a file in the host and attaches it as a device."
9470 msgstr ""
9471
9472 # type: textblock
9473 #. type: textblock
9474 #: ../src/guestfs-actions.pod:1451 ../fish/guestfish-actions.pod:958
9475 msgid ""
9476 "This function is deprecated.  In new code, use the C<fallocate64> call "
9477 "instead."
9478 msgstr ""
9479
9480 # type: =head2
9481 #. type: =head2
9482 #: ../src/guestfs-actions.pod:1460
9483 msgid "guestfs_fallocate64"
9484 msgstr ""
9485
9486 # type: verbatim
9487 #. type: verbatim
9488 #: ../src/guestfs-actions.pod:1462
9489 #, no-wrap
9490 msgid ""
9491 " int\n"
9492 " guestfs_fallocate64 (guestfs_h *g,\n"
9493 "                      const char *path,\n"
9494 "                      int64_t len);\n"
9495 "\n"
9496 msgstr ""
9497
9498 # type: textblock
9499 #. type: textblock
9500 #: ../src/guestfs-actions.pod:1471
9501 msgid ""
9502 "Note that this call allocates disk blocks for the file.  To create a sparse "
9503 "file use C<guestfs_truncate_size> instead."
9504 msgstr ""
9505
9506 # type: textblock
9507 #. type: textblock
9508 #: ../src/guestfs-actions.pod:1474
9509 msgid ""
9510 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
9511 "oversight it only allowed 30 bit lengths to be specified, effectively "
9512 "limiting the maximum size of files created through that call to 1GB."
9513 msgstr ""
9514
9515 # type: textblock
9516 #. type: textblock
9517 #: ../src/guestfs-actions.pod:1479 ../fish/guestfish-actions.pod:981
9518 msgid ""
9519 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
9520 "commands which create a file in the host and attach it as a device."
9521 msgstr ""
9522
9523 # type: textblock
9524 #. type: textblock
9525 #: ../src/guestfs-actions.pod:1485
9526 msgid "(Added in 1.3.17)"
9527 msgstr ""
9528
9529 # type: =head2
9530 #. type: =head2
9531 #: ../src/guestfs-actions.pod:1487
9532 msgid "guestfs_fgrep"
9533 msgstr ""
9534
9535 # type: verbatim
9536 #. type: verbatim
9537 #: ../src/guestfs-actions.pod:1489
9538 #, no-wrap
9539 msgid ""
9540 " char **\n"
9541 " guestfs_fgrep (guestfs_h *g,\n"
9542 "                const char *pattern,\n"
9543 "                const char *path);\n"
9544 "\n"
9545 msgstr ""
9546
9547 # type: textblock
9548 #. type: textblock
9549 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:989
9550 msgid ""
9551 "This calls the external C<fgrep> program and returns the matching lines."
9552 msgstr ""
9553
9554 # type: =head2
9555 #. type: =head2
9556 #: ../src/guestfs-actions.pod:1506
9557 msgid "guestfs_fgrepi"
9558 msgstr ""
9559
9560 # type: verbatim
9561 #. type: verbatim
9562 #: ../src/guestfs-actions.pod:1508
9563 #, no-wrap
9564 msgid ""
9565 " char **\n"
9566 " guestfs_fgrepi (guestfs_h *g,\n"
9567 "                 const char *pattern,\n"
9568 "                 const char *path);\n"
9569 "\n"
9570 msgstr ""
9571
9572 # type: textblock
9573 #. type: textblock
9574 #: ../src/guestfs-actions.pod:1513 ../fish/guestfish-actions.pod:999
9575 msgid ""
9576 "This calls the external C<fgrep -i> program and returns the matching lines."
9577 msgstr ""
9578
9579 # type: =head2
9580 #. type: =head2
9581 #: ../src/guestfs-actions.pod:1525
9582 msgid "guestfs_file"
9583 msgstr ""
9584
9585 # type: verbatim
9586 #. type: verbatim
9587 #: ../src/guestfs-actions.pod:1527
9588 #, no-wrap
9589 msgid ""
9590 " char *\n"
9591 " guestfs_file (guestfs_h *g,\n"
9592 "               const char *path);\n"
9593 "\n"
9594 msgstr ""
9595
9596 # type: textblock
9597 #. type: textblock
9598 #: ../src/guestfs-actions.pod:1531 ../fish/guestfish-actions.pod:1009
9599 msgid ""
9600 "This call uses the standard L<file(1)> command to determine the type or "
9601 "contents of the file."
9602 msgstr ""
9603
9604 # type: textblock
9605 #. type: textblock
9606 #: ../src/guestfs-actions.pod:1534 ../fish/guestfish-actions.pod:1012
9607 msgid ""
9608 "This call will also transparently look inside various types of compressed "
9609 "file."
9610 msgstr ""
9611
9612 #. type: textblock
9613 #: ../src/guestfs-actions.pod:1537 ../fish/guestfish-actions.pod:1015
9614 msgid ""
9615 "The exact command which runs is C<file -zb path>.  Note in particular that "
9616 "the filename is not prepended to the output (the I<-b> option)."
9617 msgstr ""
9618
9619 #. type: textblock
9620 #: ../src/guestfs-actions.pod:1541 ../fish/guestfish-actions.pod:1019
9621 msgid ""
9622 "The output depends on the output of the underlying L<file(1)> command and it "
9623 "can change in future in ways beyond our control.  In other words, the output "
9624 "is not guaranteed by the ABI."
9625 msgstr ""
9626
9627 #. type: textblock
9628 #: ../src/guestfs-actions.pod:1545
9629 msgid ""
9630 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
9631 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
9632 msgstr ""
9633
9634 # type: =head2
9635 #. type: =head2
9636 #: ../src/guestfs-actions.pod:1553
9637 msgid "guestfs_file_architecture"
9638 msgstr ""
9639
9640 # type: verbatim
9641 #. type: verbatim
9642 #: ../src/guestfs-actions.pod:1555
9643 #, no-wrap
9644 msgid ""
9645 " char *\n"
9646 " guestfs_file_architecture (guestfs_h *g,\n"
9647 "                            const char *filename);\n"
9648 "\n"
9649 msgstr ""
9650
9651 # type: textblock
9652 #. type: textblock
9653 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1030
9654 msgid ""
9655 "This detects the architecture of the binary C<filename>, and returns it if "
9656 "known."
9657 msgstr ""
9658
9659 # type: textblock
9660 #. type: textblock
9661 #: ../src/guestfs-actions.pod:1562 ../fish/guestfish-actions.pod:1033
9662 msgid "Currently defined architectures are:"
9663 msgstr ""
9664
9665 # type: =item
9666 #. type: =item
9667 #: ../src/guestfs-actions.pod:1566 ../fish/guestfish-actions.pod:1037
9668 msgid "\"i386\""
9669 msgstr ""
9670
9671 # type: textblock
9672 #. type: textblock
9673 #: ../src/guestfs-actions.pod:1568 ../fish/guestfish-actions.pod:1039
9674 msgid ""
9675 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
9676 "irrespective of the precise processor requirements of the binary."
9677 msgstr ""
9678
9679 # type: =item
9680 #. type: =item
9681 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1042
9682 msgid "\"x86_64\""
9683 msgstr ""
9684
9685 # type: textblock
9686 #. type: textblock
9687 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1044
9688 msgid "64 bit x86-64."
9689 msgstr ""
9690
9691 # type: =item
9692 #. type: =item
9693 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1046
9694 msgid "\"sparc\""
9695 msgstr ""
9696
9697 # type: textblock
9698 #. type: textblock
9699 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1048
9700 msgid "32 bit SPARC."
9701 msgstr ""
9702
9703 # type: =item
9704 #. type: =item
9705 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1050
9706 msgid "\"sparc64\""
9707 msgstr ""
9708
9709 # type: textblock
9710 #. type: textblock
9711 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1052
9712 msgid "64 bit SPARC V9 and above."
9713 msgstr ""
9714
9715 # type: =item
9716 #. type: =item
9717 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1054
9718 msgid "\"ia64\""
9719 msgstr ""
9720
9721 # type: textblock
9722 #. type: textblock
9723 #: ../src/guestfs-actions.pod:1585 ../fish/guestfish-actions.pod:1056
9724 msgid "Intel Itanium."
9725 msgstr ""
9726
9727 # type: =item
9728 #. type: =item
9729 #: ../src/guestfs-actions.pod:1587 ../fish/guestfish-actions.pod:1058
9730 msgid "\"ppc\""
9731 msgstr ""
9732
9733 # type: textblock
9734 #. type: textblock
9735 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1060
9736 msgid "32 bit Power PC."
9737 msgstr ""
9738
9739 # type: =item
9740 #. type: =item
9741 #: ../src/guestfs-actions.pod:1591 ../fish/guestfish-actions.pod:1062
9742 msgid "\"ppc64\""
9743 msgstr ""
9744
9745 # type: textblock
9746 #. type: textblock
9747 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1064
9748 msgid "64 bit Power PC."
9749 msgstr ""
9750
9751 # type: textblock
9752 #. type: textblock
9753 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1068
9754 msgid "Libguestfs may return other architecture strings in future."
9755 msgstr ""
9756
9757 # type: textblock
9758 #. type: textblock
9759 #: ../src/guestfs-actions.pod:1599 ../fish/guestfish-actions.pod:1070
9760 msgid "The function works on at least the following types of files:"
9761 msgstr ""
9762
9763 # type: textblock
9764 #. type: textblock
9765 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1076
9766 msgid "many types of Un*x and Linux binary"
9767 msgstr ""
9768
9769 # type: textblock
9770 #. type: textblock
9771 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1080
9772 msgid "many types of Un*x and Linux shared library"
9773 msgstr ""
9774
9775 # type: textblock
9776 #. type: textblock
9777 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1084
9778 msgid "Windows Win32 and Win64 binaries"
9779 msgstr ""
9780
9781 # type: textblock
9782 #. type: textblock
9783 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1088
9784 msgid "Windows Win32 and Win64 DLLs"
9785 msgstr ""
9786
9787 # type: textblock
9788 #. type: textblock
9789 #: ../src/guestfs-actions.pod:1619 ../fish/guestfish-actions.pod:1090
9790 msgid "Win32 binaries and DLLs return C<i386>."
9791 msgstr ""
9792
9793 # type: textblock
9794 #. type: textblock
9795 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1092
9796 msgid "Win64 binaries and DLLs return C<x86_64>."
9797 msgstr ""
9798
9799 # type: textblock
9800 #. type: textblock
9801 #: ../src/guestfs-actions.pod:1625 ../fish/guestfish-actions.pod:1096
9802 msgid "Linux kernel modules"
9803 msgstr ""
9804
9805 # type: textblock
9806 #. type: textblock
9807 #: ../src/guestfs-actions.pod:1629 ../fish/guestfish-actions.pod:1100
9808 msgid "Linux new-style initrd images"
9809 msgstr ""
9810
9811 # type: textblock
9812 #. type: textblock
9813 #: ../src/guestfs-actions.pod:1633 ../fish/guestfish-actions.pod:1104
9814 msgid "some non-x86 Linux vmlinuz kernels"
9815 msgstr ""
9816
9817 # type: textblock
9818 #. type: textblock
9819 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1108
9820 msgid "What it can't do currently:"
9821 msgstr ""
9822
9823 # type: textblock
9824 #. type: textblock
9825 #: ../src/guestfs-actions.pod:1643 ../fish/guestfish-actions.pod:1114
9826 msgid "static libraries (libfoo.a)"
9827 msgstr ""
9828
9829 # type: textblock
9830 #. type: textblock
9831 #: ../src/guestfs-actions.pod:1647 ../fish/guestfish-actions.pod:1118
9832 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9833 msgstr ""
9834
9835 # type: textblock
9836 #. type: textblock
9837 #: ../src/guestfs-actions.pod:1651 ../fish/guestfish-actions.pod:1122
9838 msgid "x86 Linux vmlinuz kernels"
9839 msgstr ""
9840
9841 # type: textblock
9842 #. type: textblock
9843 #: ../src/guestfs-actions.pod:1653 ../fish/guestfish-actions.pod:1124
9844 msgid ""
9845 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
9846 "compressed code, and are horribly hard to unpack.  If you want to find the "
9847 "architecture of a kernel, use the architecture of the associated initrd or "
9848 "kernel module(s) instead."
9849 msgstr ""
9850
9851 # type: textblock
9852 #. type: textblock
9853 #: ../src/guestfs-actions.pod:1663 ../src/guestfs-actions.pod:1826
9854 #: ../src/guestfs-actions.pod:1843 ../src/guestfs-actions.pod:2531
9855 #: ../src/guestfs-actions.pod:2621 ../src/guestfs-actions.pod:2685
9856 #: ../src/guestfs-actions.pod:2868 ../src/guestfs-actions.pod:2886
9857 #: ../src/guestfs-actions.pod:2926 ../src/guestfs-actions.pod:3001
9858 #: ../src/guestfs-actions.pod:3092 ../src/guestfs-actions.pod:3321
9859 #: ../src/guestfs-actions.pod:3453
9860 msgid "(Added in 1.5.3)"
9861 msgstr ""
9862
9863 # type: =head2
9864 #. type: =head2
9865 #: ../src/guestfs-actions.pod:1665
9866 msgid "guestfs_filesize"
9867 msgstr ""
9868
9869 # type: verbatim
9870 #. type: verbatim
9871 #: ../src/guestfs-actions.pod:1667
9872 #, no-wrap
9873 msgid ""
9874 " int64_t\n"
9875 " guestfs_filesize (guestfs_h *g,\n"
9876 "                   const char *file);\n"
9877 "\n"
9878 msgstr ""
9879
9880 # type: textblock
9881 #. type: textblock
9882 #: ../src/guestfs-actions.pod:1671 ../fish/guestfish-actions.pod:1135
9883 msgid "This command returns the size of C<file> in bytes."
9884 msgstr ""
9885
9886 # type: textblock
9887 #. type: textblock
9888 #: ../src/guestfs-actions.pod:1673
9889 msgid ""
9890 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
9891 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
9892 "devices, use C<guestfs_blockdev_getsize64>."
9893 msgstr ""
9894
9895 # type: textblock
9896 #. type: textblock
9897 #: ../src/guestfs-actions.pod:1679
9898 msgid "(Added in 1.0.82)"
9899 msgstr ""
9900
9901 # type: =head2
9902 #. type: =head2
9903 #: ../src/guestfs-actions.pod:1681
9904 msgid "guestfs_fill"
9905 msgstr ""
9906
9907 # type: verbatim
9908 #. type: verbatim
9909 #: ../src/guestfs-actions.pod:1683
9910 #, no-wrap
9911 msgid ""
9912 " int\n"
9913 " guestfs_fill (guestfs_h *g,\n"
9914 "               int c,\n"
9915 "               int len,\n"
9916 "               const char *path);\n"
9917 "\n"
9918 msgstr ""
9919
9920 # type: textblock
9921 #. type: textblock
9922 #: ../src/guestfs-actions.pod:1689 ../fish/guestfish-actions.pod:1145
9923 msgid ""
9924 "This command creates a new file called C<path>.  The initial content of the "
9925 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9926 "[0..255]>."
9927 msgstr ""
9928
9929 # type: textblock
9930 #. type: textblock
9931 #: ../src/guestfs-actions.pod:1693
9932 msgid ""
9933 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9934 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
9935 "bytes use C<guestfs_fill_pattern>."
9936 msgstr ""
9937
9938 # type: textblock
9939 #. type: textblock
9940 #: ../src/guestfs-actions.pod:1705
9941 msgid "(Added in 1.0.79)"
9942 msgstr ""
9943
9944 # type: =head2
9945 #. type: =head2
9946 #: ../src/guestfs-actions.pod:1707
9947 msgid "guestfs_fill_pattern"
9948 msgstr ""
9949
9950 # type: verbatim
9951 #. type: verbatim
9952 #: ../src/guestfs-actions.pod:1709
9953 #, no-wrap
9954 msgid ""
9955 " int\n"
9956 " guestfs_fill_pattern (guestfs_h *g,\n"
9957 "                       const char *pattern,\n"
9958 "                       int len,\n"
9959 "                       const char *path);\n"
9960 "\n"
9961 msgstr ""
9962
9963 # type: textblock
9964 #. type: textblock
9965 #: ../src/guestfs-actions.pod:1715
9966 msgid ""
9967 "This function is like C<guestfs_fill> except that it creates a new file of "
9968 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
9969 "pattern is truncated if necessary to ensure the length of the file is "
9970 "exactly C<len> bytes."
9971 msgstr ""
9972
9973 # type: textblock
9974 #. type: textblock
9975 #: ../src/guestfs-actions.pod:1727
9976 msgid "(Added in 1.3.12)"
9977 msgstr ""
9978
9979 # type: =head2
9980 #. type: =head2
9981 #: ../src/guestfs-actions.pod:1729
9982 msgid "guestfs_find"
9983 msgstr ""
9984
9985 # type: verbatim
9986 #. type: verbatim
9987 #: ../src/guestfs-actions.pod:1731
9988 #, no-wrap
9989 msgid ""
9990 " char **\n"
9991 " guestfs_find (guestfs_h *g,\n"
9992 "               const char *directory);\n"
9993 "\n"
9994 msgstr ""
9995
9996 # type: textblock
9997 #. type: textblock
9998 #: ../src/guestfs-actions.pod:1735 ../fish/guestfish-actions.pod:1167
9999 msgid ""
10000 "This command lists out all files and directories, recursively, starting at "
10001 "C<directory>.  It is essentially equivalent to running the shell command "
10002 "C<find directory -print> but some post-processing happens on the output, "
10003 "described below."
10004 msgstr ""
10005
10006 # type: textblock
10007 #. type: textblock
10008 #: ../src/guestfs-actions.pod:1740 ../fish/guestfish-actions.pod:1172
10009 msgid ""
10010 "This returns a list of strings I<without any prefix>.  Thus if the directory "
10011 "structure was:"
10012 msgstr ""
10013
10014 # type: verbatim
10015 #. type: verbatim
10016 #: ../src/guestfs-actions.pod:1743 ../fish/guestfish-actions.pod:1175
10017 #, no-wrap
10018 msgid ""
10019 " /tmp/a\n"
10020 " /tmp/b\n"
10021 " /tmp/c/d\n"
10022 "\n"
10023 msgstr ""
10024
10025 # type: textblock
10026 #. type: textblock
10027 #: ../src/guestfs-actions.pod:1747
10028 msgid ""
10029 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
10030 msgstr ""
10031
10032 # type: verbatim
10033 #. type: verbatim
10034 #: ../src/guestfs-actions.pod:1750 ../fish/guestfish-actions.pod:1182
10035 #, no-wrap
10036 msgid ""
10037 " a\n"
10038 " b\n"
10039 " c\n"
10040 " c/d\n"
10041 "\n"
10042 msgstr ""
10043
10044 # type: textblock
10045 #. type: textblock
10046 #: ../src/guestfs-actions.pod:1755 ../fish/guestfish-actions.pod:1187
10047 msgid "If C<directory> is not a directory, then this command returns an error."
10048 msgstr ""
10049
10050 # type: textblock
10051 #. type: textblock
10052 #: ../src/guestfs-actions.pod:1758 ../fish/guestfish-actions.pod:1190
10053 msgid "The returned list is sorted."
10054 msgstr ""
10055
10056 # type: textblock
10057 #. type: textblock
10058 #: ../src/guestfs-actions.pod:1760
10059 msgid "See also C<guestfs_find0>."
10060 msgstr ""
10061
10062 # type: textblock
10063 #. type: textblock
10064 #: ../src/guestfs-actions.pod:1769 ../src/guestfs-actions.pod:4182
10065 #: ../src/guestfs-actions.pod:5780
10066 msgid "(Added in 1.0.27)"
10067 msgstr ""
10068
10069 # type: =head2
10070 #. type: =head2
10071 #: ../src/guestfs-actions.pod:1771
10072 msgid "guestfs_find0"
10073 msgstr ""
10074
10075 # type: verbatim
10076 #. type: verbatim
10077 #: ../src/guestfs-actions.pod:1773
10078 #, no-wrap
10079 msgid ""
10080 " int\n"
10081 " guestfs_find0 (guestfs_h *g,\n"
10082 "                const char *directory,\n"
10083 "                const char *files);\n"
10084 "\n"
10085 msgstr ""
10086
10087 # type: textblock
10088 #. type: textblock
10089 #: ../src/guestfs-actions.pod:1778 ../fish/guestfish-actions.pod:1201
10090 msgid ""
10091 "This command lists out all files and directories, recursively, starting at "
10092 "C<directory>, placing the resulting list in the external file called "
10093 "C<files>."
10094 msgstr ""
10095
10096 # type: textblock
10097 #. type: textblock
10098 #: ../src/guestfs-actions.pod:1782
10099 msgid ""
10100 "This command works the same way as C<guestfs_find> with the following "
10101 "exceptions:"
10102 msgstr ""
10103
10104 # type: textblock
10105 #. type: textblock
10106 #: ../src/guestfs-actions.pod:1789 ../fish/guestfish-actions.pod:1212
10107 msgid "The resulting list is written to an external file."
10108 msgstr ""
10109
10110 # type: textblock
10111 #. type: textblock
10112 #: ../src/guestfs-actions.pod:1793 ../fish/guestfish-actions.pod:1216
10113 msgid ""
10114 "Items (filenames) in the result are separated by C<\\0> characters.  See "
10115 "L<find(1)> option I<-print0>."
10116 msgstr ""
10117
10118 # type: textblock
10119 #. type: textblock
10120 #: ../src/guestfs-actions.pod:1798 ../fish/guestfish-actions.pod:1221
10121 msgid "This command is not limited in the number of names that it can return."
10122 msgstr ""
10123
10124 # type: textblock
10125 #. type: textblock
10126 #: ../src/guestfs-actions.pod:1803 ../fish/guestfish-actions.pod:1226
10127 msgid "The result list is not sorted."
10128 msgstr ""
10129
10130 # type: textblock
10131 #. type: textblock
10132 #: ../src/guestfs-actions.pod:1809
10133 msgid "(Added in 1.0.74)"
10134 msgstr ""
10135
10136 # type: =head2
10137 #. type: =head2
10138 #: ../src/guestfs-actions.pod:1811
10139 msgid "guestfs_findfs_label"
10140 msgstr ""
10141
10142 # type: verbatim
10143 #. type: verbatim
10144 #: ../src/guestfs-actions.pod:1813
10145 #, no-wrap
10146 msgid ""
10147 " char *\n"
10148 " guestfs_findfs_label (guestfs_h *g,\n"
10149 "                       const char *label);\n"
10150 "\n"
10151 msgstr ""
10152
10153 # type: textblock
10154 #. type: textblock
10155 #: ../src/guestfs-actions.pod:1817 ../fish/guestfish-actions.pod:1236
10156 msgid ""
10157 "This command searches the filesystems and returns the one which has the "
10158 "given label.  An error is returned if no such filesystem can be found."
10159 msgstr ""
10160
10161 # type: textblock
10162 #. type: textblock
10163 #: ../src/guestfs-actions.pod:1821
10164 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
10165 msgstr ""
10166
10167 # type: =head2
10168 #. type: =head2
10169 #: ../src/guestfs-actions.pod:1828
10170 msgid "guestfs_findfs_uuid"
10171 msgstr ""
10172
10173 # type: verbatim
10174 #. type: verbatim
10175 #: ../src/guestfs-actions.pod:1830
10176 #, no-wrap
10177 msgid ""
10178 " char *\n"
10179 " guestfs_findfs_uuid (guestfs_h *g,\n"
10180 "                      const char *uuid);\n"
10181 "\n"
10182 msgstr ""
10183
10184 # type: textblock
10185 #. type: textblock
10186 #: ../src/guestfs-actions.pod:1834 ../fish/guestfish-actions.pod:1246
10187 msgid ""
10188 "This command searches the filesystems and returns the one which has the "
10189 "given UUID.  An error is returned if no such filesystem can be found."
10190 msgstr ""
10191
10192 # type: textblock
10193 #. type: textblock
10194 #: ../src/guestfs-actions.pod:1838
10195 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
10196 msgstr ""
10197
10198 # type: =head2
10199 #. type: =head2
10200 #: ../src/guestfs-actions.pod:1845
10201 msgid "guestfs_fsck"
10202 msgstr ""
10203
10204 # type: verbatim
10205 #. type: verbatim
10206 #: ../src/guestfs-actions.pod:1847
10207 #, no-wrap
10208 msgid ""
10209 " int\n"
10210 " guestfs_fsck (guestfs_h *g,\n"
10211 "               const char *fstype,\n"
10212 "               const char *device);\n"
10213 "\n"
10214 msgstr ""
10215
10216 # type: textblock
10217 #. type: textblock
10218 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1256
10219 msgid ""
10220 "This runs the filesystem checker (fsck) on C<device> which should have "
10221 "filesystem type C<fstype>."
10222 msgstr ""
10223
10224 # type: textblock
10225 #. type: textblock
10226 #: ../src/guestfs-actions.pod:1855 ../fish/guestfish-actions.pod:1259
10227 msgid ""
10228 "The returned integer is the status.  See L<fsck(8)> for the list of status "
10229 "codes from C<fsck>."
10230 msgstr ""
10231
10232 # type: textblock
10233 #. type: textblock
10234 #: ../src/guestfs-actions.pod:1864 ../fish/guestfish-actions.pod:1268
10235 msgid "Multiple status codes can be summed together."
10236 msgstr ""
10237
10238 # type: textblock
10239 #. type: textblock
10240 #: ../src/guestfs-actions.pod:1868 ../fish/guestfish-actions.pod:1272
10241 msgid ""
10242 "A non-zero return code can mean \"success\", for example if errors have been "
10243 "corrected on the filesystem."
10244 msgstr ""
10245
10246 # type: textblock
10247 #. type: textblock
10248 #: ../src/guestfs-actions.pod:1873 ../fish/guestfish-actions.pod:1277
10249 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
10250 msgstr ""
10251
10252 # type: textblock
10253 #. type: textblock
10254 #: ../src/guestfs-actions.pod:1878 ../fish/guestfish-actions.pod:1282
10255 msgid ""
10256 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
10257 msgstr ""
10258
10259 # type: textblock
10260 #. type: textblock
10261 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:7512
10262 msgid "(Added in 1.0.16)"
10263 msgstr ""
10264
10265 # type: =head2
10266 #. type: =head2
10267 #: ../src/guestfs-actions.pod:1884
10268 msgid "guestfs_get_append"
10269 msgstr ""
10270
10271 # type: verbatim
10272 #. type: verbatim
10273 #: ../src/guestfs-actions.pod:1886
10274 #, no-wrap
10275 msgid ""
10276 " const char *\n"
10277 " guestfs_get_append (guestfs_h *g);\n"
10278 "\n"
10279 msgstr ""
10280
10281 # type: textblock
10282 #. type: textblock
10283 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1288
10284 msgid ""
10285 "Return the additional kernel options which are added to the guest kernel "
10286 "command line."
10287 msgstr ""
10288
10289 # type: textblock
10290 #. type: textblock
10291 #: ../src/guestfs-actions.pod:1892 ../fish/guestfish-actions.pod:1291
10292 msgid "If C<NULL> then no options are added."
10293 msgstr ""
10294
10295 # type: textblock
10296 #. type: textblock
10297 #: ../src/guestfs-actions.pod:1894
10298 msgid ""
10299 "This function returns a string which may be NULL.  There is no way to return "
10300 "an error from this function.  The string is owned by the guest handle and "
10301 "must I<not> be freed."
10302 msgstr ""
10303
10304 # type: textblock
10305 #. type: textblock
10306 #: ../src/guestfs-actions.pod:1898 ../src/guestfs-actions.pod:5458
10307 #: ../src/guestfs-actions.pod:5938 ../src/guestfs-actions.pod:6359
10308 #: ../src/guestfs-actions.pod:6378 ../src/guestfs-actions.pod:6394
10309 #: ../src/guestfs-actions.pod:6418 ../src/guestfs-actions.pod:7175
10310 #: ../src/guestfs-actions.pod:7193 ../src/guestfs-actions.pod:7555
10311 msgid "(Added in 1.0.26)"
10312 msgstr ""
10313
10314 #. type: =head2
10315 #: ../src/guestfs-actions.pod:1900
10316 msgid "guestfs_get_attach_method"
10317 msgstr ""
10318
10319 #. type: verbatim
10320 #: ../src/guestfs-actions.pod:1902
10321 #, no-wrap
10322 msgid ""
10323 " char *\n"
10324 " guestfs_get_attach_method (guestfs_h *g);\n"
10325 "\n"
10326 msgstr ""
10327
10328 #. type: textblock
10329 #: ../src/guestfs-actions.pod:1905
10330 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
10331 msgstr ""
10332
10333 # type: =head2
10334 #. type: =head2
10335 #: ../src/guestfs-actions.pod:1910
10336 msgid "guestfs_get_autosync"
10337 msgstr ""
10338
10339 # type: verbatim
10340 #. type: verbatim
10341 #: ../src/guestfs-actions.pod:1912
10342 #, no-wrap
10343 msgid ""
10344 " int\n"
10345 " guestfs_get_autosync (guestfs_h *g);\n"
10346 "\n"
10347 msgstr ""
10348
10349 # type: textblock
10350 #. type: textblock
10351 #: ../src/guestfs-actions.pod:1915 ../fish/guestfish-actions.pod:1303
10352 msgid "Get the autosync flag."
10353 msgstr ""
10354
10355 # type: =head2
10356 #. type: =head2
10357 #: ../src/guestfs-actions.pod:1921
10358 msgid "guestfs_get_direct"
10359 msgstr ""
10360
10361 # type: verbatim
10362 #. type: verbatim
10363 #: ../src/guestfs-actions.pod:1923
10364 #, no-wrap
10365 msgid ""
10366 " int\n"
10367 " guestfs_get_direct (guestfs_h *g);\n"
10368 "\n"
10369 msgstr ""
10370
10371 # type: textblock
10372 #. type: textblock
10373 #: ../src/guestfs-actions.pod:1926 ../fish/guestfish-actions.pod:1309
10374 msgid "Return the direct appliance mode flag."
10375 msgstr ""
10376
10377 # type: textblock
10378 #. type: textblock
10379 #: ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:6007
10380 msgid "(Added in 1.0.72)"
10381 msgstr ""
10382
10383 # type: =head2
10384 #. type: =head2
10385 #: ../src/guestfs-actions.pod:1932
10386 msgid "guestfs_get_e2label"
10387 msgstr ""
10388
10389 # type: verbatim
10390 #. type: verbatim
10391 #: ../src/guestfs-actions.pod:1934
10392 #, no-wrap
10393 msgid ""
10394 " char *\n"
10395 " guestfs_get_e2label (guestfs_h *g,\n"
10396 "                      const char *device);\n"
10397 "\n"
10398 msgstr ""
10399
10400 # type: textblock
10401 #. type: textblock
10402 #: ../src/guestfs-actions.pod:1938 ../fish/guestfish-actions.pod:1315
10403 msgid ""
10404 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
10405 msgstr ""
10406
10407 # type: textblock
10408 #. type: textblock
10409 #: ../src/guestfs-actions.pod:1944 ../fish/guestfish-actions.pod:1318
10410 msgid ""
10411 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
10412 msgstr ""
10413
10414 # type: textblock
10415 #. type: textblock
10416 #: ../src/guestfs-actions.pod:1951 ../src/guestfs-actions.pod:1972
10417 #: ../src/guestfs-actions.pod:6025 ../src/guestfs-actions.pod:6044
10418 msgid "(Added in 1.0.15)"
10419 msgstr ""
10420
10421 # type: =head2
10422 #. type: =head2
10423 #: ../src/guestfs-actions.pod:1953
10424 msgid "guestfs_get_e2uuid"
10425 msgstr ""
10426
10427 # type: verbatim
10428 #. type: verbatim
10429 #: ../src/guestfs-actions.pod:1955
10430 #, no-wrap
10431 msgid ""
10432 " char *\n"
10433 " guestfs_get_e2uuid (guestfs_h *g,\n"
10434 "                     const char *device);\n"
10435 "\n"
10436 msgstr ""
10437
10438 # type: textblock
10439 #. type: textblock
10440 #: ../src/guestfs-actions.pod:1959 ../fish/guestfish-actions.pod:1329
10441 msgid ""
10442 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
10443 msgstr ""
10444
10445 # type: textblock
10446 #. type: textblock
10447 #: ../src/guestfs-actions.pod:1965 ../fish/guestfish-actions.pod:1332
10448 msgid ""
10449 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
10450 msgstr ""
10451
10452 # type: =head2
10453 #. type: =head2
10454 #: ../src/guestfs-actions.pod:1974
10455 msgid "guestfs_get_memsize"
10456 msgstr ""
10457
10458 # type: verbatim
10459 #. type: verbatim
10460 #: ../src/guestfs-actions.pod:1976
10461 #, no-wrap
10462 msgid ""
10463 " int\n"
10464 " guestfs_get_memsize (guestfs_h *g);\n"
10465 "\n"
10466 msgstr ""
10467
10468 # type: textblock
10469 #. type: textblock
10470 #: ../src/guestfs-actions.pod:1979 ../fish/guestfish-actions.pod:1343
10471 msgid ""
10472 "This gets the memory size in megabytes allocated to the qemu subprocess."
10473 msgstr ""
10474
10475 # type: textblock
10476 #. type: textblock
10477 #: ../src/guestfs-actions.pod:1982
10478 msgid ""
10479 "If C<guestfs_set_memsize> was not called on this handle, and if "
10480 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
10481 "value for memsize."
10482 msgstr ""
10483
10484 # type: textblock
10485 #. type: textblock
10486 #: ../src/guestfs-actions.pod:1986 ../src/guestfs-actions.pod:2067
10487 #: ../src/guestfs-actions.pod:6060 ../src/guestfs-actions.pod:6167
10488 #: ../fish/guestfish-actions.pod:1350 ../fish/guestfish-actions.pod:1401
10489 #: ../fish/guestfish-actions.pod:4043 ../fish/guestfish-actions.pod:4130
10490 msgid ""
10491 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
10492 msgstr ""
10493
10494 # type: textblock
10495 #. type: textblock
10496 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:4473
10497 #: ../src/guestfs-actions.pod:4670 ../src/guestfs-actions.pod:4689
10498 #: ../src/guestfs-actions.pod:4708 ../src/guestfs-actions.pod:4720
10499 #: ../src/guestfs-actions.pod:4737 ../src/guestfs-actions.pod:4750
10500 #: ../src/guestfs-actions.pod:5683 ../src/guestfs-actions.pod:6065
10501 #: ../src/guestfs-actions.pod:6326 ../src/guestfs-actions.pod:6941
10502 msgid "(Added in 1.0.55)"
10503 msgstr ""
10504
10505 # type: =head2
10506 #. type: =head2
10507 #: ../src/guestfs-actions.pod:1993
10508 msgid "guestfs_get_network"
10509 msgstr ""
10510
10511 # type: verbatim
10512 #. type: verbatim
10513 #: ../src/guestfs-actions.pod:1995
10514 #, no-wrap
10515 msgid ""
10516 " int\n"
10517 " guestfs_get_network (guestfs_h *g);\n"
10518 "\n"
10519 msgstr ""
10520
10521 # type: textblock
10522 #. type: textblock
10523 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1357
10524 msgid "This returns the enable network flag."
10525 msgstr ""
10526
10527 # type: textblock
10528 #. type: textblock
10529 #: ../src/guestfs-actions.pod:2002 ../src/guestfs-actions.pod:6084
10530 msgid "(Added in 1.5.4)"
10531 msgstr ""
10532
10533 # type: =head2
10534 #. type: =head2
10535 #: ../src/guestfs-actions.pod:2004
10536 msgid "guestfs_get_path"
10537 msgstr ""
10538
10539 # type: verbatim
10540 #. type: verbatim
10541 #: ../src/guestfs-actions.pod:2006
10542 #, no-wrap
10543 msgid ""
10544 " const char *\n"
10545 " guestfs_get_path (guestfs_h *g);\n"
10546 "\n"
10547 msgstr ""
10548
10549 # type: textblock
10550 #. type: textblock
10551 #: ../src/guestfs-actions.pod:2009 ../fish/guestfish-actions.pod:1363
10552 msgid "Return the current search path."
10553 msgstr ""
10554
10555 # type: textblock
10556 #. type: textblock
10557 #: ../src/guestfs-actions.pod:2011 ../fish/guestfish-actions.pod:1365
10558 msgid ""
10559 "This is always non-NULL.  If it wasn't set already, then this will return "
10560 "the default path."
10561 msgstr ""
10562
10563 # type: textblock
10564 #. type: textblock
10565 #: ../src/guestfs-actions.pod:2014 ../src/guestfs-actions.pod:2043
10566 msgid ""
10567 "This function returns a string, or NULL on error.  The string is owned by "
10568 "the guest handle and must I<not> be freed."
10569 msgstr ""
10570
10571 # type: =head2
10572 #. type: =head2
10573 #: ../src/guestfs-actions.pod:2019
10574 msgid "guestfs_get_pid"
10575 msgstr ""
10576
10577 # type: verbatim
10578 #. type: verbatim
10579 #: ../src/guestfs-actions.pod:2021
10580 #, no-wrap
10581 msgid ""
10582 " int\n"
10583 " guestfs_get_pid (guestfs_h *g);\n"
10584 "\n"
10585 msgstr ""
10586
10587 # type: textblock
10588 #. type: textblock
10589 #: ../src/guestfs-actions.pod:2024 ../fish/guestfish-actions.pod:1374
10590 msgid ""
10591 "Return the process ID of the qemu subprocess.  If there is no qemu "
10592 "subprocess, then this will return an error."
10593 msgstr ""
10594
10595 # type: textblock
10596 #. type: textblock
10597 #: ../src/guestfs-actions.pod:2027 ../fish/guestfish-actions.pod:1377
10598 msgid "This is an internal call used for debugging and testing."
10599 msgstr ""
10600
10601 # type: textblock
10602 #. type: textblock
10603 #: ../src/guestfs-actions.pod:2031
10604 msgid "(Added in 1.0.56)"
10605 msgstr ""
10606
10607 # type: =head2
10608 #. type: =head2
10609 #: ../src/guestfs-actions.pod:2033
10610 msgid "guestfs_get_qemu"
10611 msgstr ""
10612
10613 # type: verbatim
10614 #. type: verbatim
10615 #: ../src/guestfs-actions.pod:2035
10616 #, no-wrap
10617 msgid ""
10618 " const char *\n"
10619 " guestfs_get_qemu (guestfs_h *g);\n"
10620 "\n"
10621 msgstr ""
10622
10623 # type: textblock
10624 #. type: textblock
10625 #: ../src/guestfs-actions.pod:2038 ../fish/guestfish-actions.pod:1383
10626 msgid "Return the current qemu binary."
10627 msgstr ""
10628
10629 # type: textblock
10630 #. type: textblock
10631 #: ../src/guestfs-actions.pod:2040 ../fish/guestfish-actions.pod:1385
10632 msgid ""
10633 "This is always non-NULL.  If it wasn't set already, then this will return "
10634 "the default qemu binary name."
10635 msgstr ""
10636
10637 # type: textblock
10638 #. type: textblock
10639 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:6129
10640 msgid "(Added in 1.0.6)"
10641 msgstr ""
10642
10643 # type: =head2
10644 #. type: =head2
10645 #: ../src/guestfs-actions.pod:2048
10646 msgid "guestfs_get_recovery_proc"
10647 msgstr ""
10648
10649 # type: verbatim
10650 #. type: verbatim
10651 #: ../src/guestfs-actions.pod:2050
10652 #, no-wrap
10653 msgid ""
10654 " int\n"
10655 " guestfs_get_recovery_proc (guestfs_h *g);\n"
10656 "\n"
10657 msgstr ""
10658
10659 # type: textblock
10660 #. type: textblock
10661 #: ../src/guestfs-actions.pod:2053 ../fish/guestfish-actions.pod:1392
10662 msgid "Return the recovery process enabled flag."
10663 msgstr ""
10664
10665 # type: textblock
10666 #. type: textblock
10667 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:3571
10668 #: ../src/guestfs-actions.pod:3880 ../src/guestfs-actions.pod:4280
10669 #: ../src/guestfs-actions.pod:4312 ../src/guestfs-actions.pod:5388
10670 #: ../src/guestfs-actions.pod:5731 ../src/guestfs-actions.pod:6153
10671 #: ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:6864
10672 #: ../src/guestfs-actions.pod:7056
10673 msgid "(Added in 1.0.77)"
10674 msgstr ""
10675
10676 # type: =head2
10677 #. type: =head2
10678 #: ../src/guestfs-actions.pod:2059
10679 msgid "guestfs_get_selinux"
10680 msgstr ""
10681
10682 # type: verbatim
10683 #. type: verbatim
10684 #: ../src/guestfs-actions.pod:2061
10685 #, no-wrap
10686 msgid ""
10687 " int\n"
10688 " guestfs_get_selinux (guestfs_h *g);\n"
10689 "\n"
10690 msgstr ""
10691
10692 # type: textblock
10693 #. type: textblock
10694 #: ../src/guestfs-actions.pod:2064
10695 msgid ""
10696 "This returns the current setting of the selinux flag which is passed to the "
10697 "appliance at boot time.  See C<guestfs_set_selinux>."
10698 msgstr ""
10699
10700 # type: textblock
10701 #. type: textblock
10702 #: ../src/guestfs-actions.pod:2072 ../src/guestfs-actions.pod:2135
10703 #: ../src/guestfs-actions.pod:6172 ../src/guestfs-actions.pod:6230
10704 msgid "(Added in 1.0.67)"
10705 msgstr ""
10706
10707 # type: =head2
10708 #. type: =head2
10709 #: ../src/guestfs-actions.pod:2074
10710 msgid "guestfs_get_state"
10711 msgstr ""
10712
10713 # type: verbatim
10714 #. type: verbatim
10715 #: ../src/guestfs-actions.pod:2076
10716 #, no-wrap
10717 msgid ""
10718 " int\n"
10719 " guestfs_get_state (guestfs_h *g);\n"
10720 "\n"
10721 msgstr ""
10722
10723 # type: textblock
10724 #. type: textblock
10725 #: ../src/guestfs-actions.pod:2079 ../fish/guestfish-actions.pod:1408
10726 msgid ""
10727 "This returns the current state as an opaque integer.  This is only useful "
10728 "for printing debug and internal error messages."
10729 msgstr ""
10730
10731 # type: textblock
10732 #. type: textblock
10733 #: ../src/guestfs-actions.pod:2082 ../src/guestfs-actions.pod:3346
10734 #: ../src/guestfs-actions.pod:3375 ../src/guestfs-actions.pod:3436
10735 #: ../src/guestfs-actions.pod:3463 ../fish/guestfish-actions.pod:1411
10736 #: ../fish/guestfish-actions.pod:2331 ../fish/guestfish-actions.pod:2349
10737 #: ../fish/guestfish-actions.pod:2387 ../fish/guestfish-actions.pod:2403
10738 msgid "For more information on states, see L<guestfs(3)>."
10739 msgstr ""
10740
10741 # type: =head2
10742 #. type: =head2
10743 #: ../src/guestfs-actions.pod:2088
10744 msgid "guestfs_get_trace"
10745 msgstr ""
10746
10747 # type: verbatim
10748 #. type: verbatim
10749 #: ../src/guestfs-actions.pod:2090
10750 #, no-wrap
10751 msgid ""
10752 " int\n"
10753 " guestfs_get_trace (guestfs_h *g);\n"
10754 "\n"
10755 msgstr ""
10756
10757 # type: textblock
10758 #. type: textblock
10759 #: ../src/guestfs-actions.pod:2093 ../fish/guestfish-actions.pod:1417
10760 msgid "Return the command trace flag."
10761 msgstr ""
10762
10763 # type: =head2
10764 #. type: =head2
10765 #: ../src/guestfs-actions.pod:2099
10766 msgid "guestfs_get_umask"
10767 msgstr ""
10768
10769 # type: verbatim
10770 #. type: verbatim
10771 #: ../src/guestfs-actions.pod:2101
10772 #, no-wrap
10773 msgid ""
10774 " int\n"
10775 " guestfs_get_umask (guestfs_h *g);\n"
10776 "\n"
10777 msgstr ""
10778
10779 # type: textblock
10780 #. type: textblock
10781 #: ../src/guestfs-actions.pod:2104
10782 msgid ""
10783 "Return the current umask.  By default the umask is C<022> unless it has been "
10784 "set by calling C<guestfs_umask>."
10785 msgstr ""
10786
10787 # type: =head2
10788 #. type: =head2
10789 #: ../src/guestfs-actions.pod:2111
10790 msgid "guestfs_get_verbose"
10791 msgstr ""
10792
10793 # type: verbatim
10794 #. type: verbatim
10795 #: ../src/guestfs-actions.pod:2113
10796 #, no-wrap
10797 msgid ""
10798 " int\n"
10799 " guestfs_get_verbose (guestfs_h *g);\n"
10800 "\n"
10801 msgstr ""
10802
10803 # type: textblock
10804 #. type: textblock
10805 #: ../src/guestfs-actions.pod:2116 ../fish/guestfish-actions.pod:1430
10806 msgid "This returns the verbose messages flag."
10807 msgstr ""
10808
10809 # type: =head2
10810 #. type: =head2
10811 #: ../src/guestfs-actions.pod:2122
10812 msgid "guestfs_getcon"
10813 msgstr ""
10814
10815 # type: verbatim
10816 #. type: verbatim
10817 #: ../src/guestfs-actions.pod:2124
10818 #, no-wrap
10819 msgid ""
10820 " char *\n"
10821 " guestfs_getcon (guestfs_h *g);\n"
10822 "\n"
10823 msgstr ""
10824
10825 # type: textblock
10826 #. type: textblock
10827 #: ../src/guestfs-actions.pod:2127 ../fish/guestfish-actions.pod:1436
10828 msgid "This gets the SELinux security context of the daemon."
10829 msgstr ""
10830
10831 # type: textblock
10832 #. type: textblock
10833 #: ../src/guestfs-actions.pod:2129
10834 msgid ""
10835 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
10836 msgstr ""
10837
10838 # type: =head2
10839 #. type: =head2
10840 #: ../src/guestfs-actions.pod:2137
10841 msgid "guestfs_getxattr"
10842 msgstr ""
10843
10844 # type: verbatim
10845 #. type: verbatim
10846 #: ../src/guestfs-actions.pod:2139
10847 #, no-wrap
10848 msgid ""
10849 " char *\n"
10850 " guestfs_getxattr (guestfs_h *g,\n"
10851 "                   const char *path,\n"
10852 "                   const char *name,\n"
10853 "                   size_t *size_r);\n"
10854 "\n"
10855 msgstr ""
10856
10857 # type: textblock
10858 #. type: textblock
10859 #: ../src/guestfs-actions.pod:2145
10860 msgid ""
10861 "Get a single extended attribute from file C<path> named C<name>.  This call "
10862 "follows symlinks.  If you want to lookup an extended attribute for the "
10863 "symlink itself, use C<guestfs_lgetxattr>."
10864 msgstr ""
10865
10866 # type: textblock
10867 #. type: textblock
10868 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:3585
10869 msgid ""
10870 "Normally it is better to get all extended attributes from a file in one go "
10871 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
10872 "implementations are buggy and do not provide a way to list out attributes.  "
10873 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
10874 "extended attributes you want in advance and call this function."
10875 msgstr ""
10876
10877 # type: textblock
10878 #. type: textblock
10879 #: ../src/guestfs-actions.pod:2156 ../src/guestfs-actions.pod:3592
10880 #: ../fish/guestfish-actions.pod:1456 ../fish/guestfish-actions.pod:2483
10881 msgid ""
10882 "Extended attribute values are blobs of binary data.  If there is no extended "
10883 "attribute named C<name>, this returns an error."
10884 msgstr ""
10885
10886 # type: textblock
10887 #. type: textblock
10888 #: ../src/guestfs-actions.pod:2159
10889 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
10890 msgstr ""
10891
10892 # type: textblock
10893 #. type: textblock
10894 #: ../src/guestfs-actions.pod:2161 ../src/guestfs-actions.pod:2352
10895 #: ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:3597
10896 #: ../src/guestfs-actions.pod:5381 ../src/guestfs-actions.pod:5407
10897 #: ../src/guestfs-actions.pod:5588
10898 msgid ""
10899 "This function returns a buffer, or NULL on error.  The size of the returned "
10900 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
10901 "after use>."
10902 msgstr ""
10903
10904 #. type: textblock
10905 #: ../src/guestfs-actions.pod:2165 ../src/guestfs-actions.pod:3601
10906 msgid "(Added in 1.7.24)"
10907 msgstr ""
10908
10909 # type: =head2
10910 #. type: =head2
10911 #: ../src/guestfs-actions.pod:2167
10912 msgid "guestfs_getxattrs"
10913 msgstr ""
10914
10915 # type: verbatim
10916 #. type: verbatim
10917 #: ../src/guestfs-actions.pod:2169
10918 #, no-wrap
10919 msgid ""
10920 " struct guestfs_xattr_list *\n"
10921 " guestfs_getxattrs (guestfs_h *g,\n"
10922 "                    const char *path);\n"
10923 "\n"
10924 msgstr ""
10925
10926 # type: textblock
10927 #. type: textblock
10928 #: ../src/guestfs-actions.pod:2173 ../fish/guestfish-actions.pod:1465
10929 msgid ""
10930 "This call lists the extended attributes of the file or directory C<path>."
10931 msgstr ""
10932
10933 # type: textblock
10934 #. type: textblock
10935 #: ../src/guestfs-actions.pod:2176 ../fish/guestfish-actions.pod:1468
10936 msgid ""
10937 "At the system call level, this is a combination of the L<listxattr(2)> and "
10938 "L<getxattr(2)> calls."
10939 msgstr ""
10940
10941 # type: textblock
10942 #. type: textblock
10943 #: ../src/guestfs-actions.pod:2179
10944 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
10945 msgstr ""
10946
10947 # type: textblock
10948 #. type: textblock
10949 #: ../src/guestfs-actions.pod:2181 ../src/guestfs-actions.pod:3613
10950 #: ../src/guestfs-actions.pod:4276
10951 msgid ""
10952 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
10953 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
10954 msgstr ""
10955
10956 # type: textblock
10957 #. type: textblock
10958 #: ../src/guestfs-actions.pod:2185 ../src/guestfs-actions.pod:3617
10959 #: ../src/guestfs-actions.pod:3794 ../src/guestfs-actions.pod:3830
10960 #: ../src/guestfs-actions.pod:5761 ../src/guestfs-actions.pod:6249
10961 #: ../src/guestfs-actions.pod:7620
10962 msgid "(Added in 1.0.59)"
10963 msgstr ""
10964
10965 # type: =head2
10966 #. type: =head2
10967 #: ../src/guestfs-actions.pod:2187
10968 msgid "guestfs_glob_expand"
10969 msgstr ""
10970
10971 # type: verbatim
10972 #. type: verbatim
10973 #: ../src/guestfs-actions.pod:2189
10974 #, no-wrap
10975 msgid ""
10976 " char **\n"
10977 " guestfs_glob_expand (guestfs_h *g,\n"
10978 "                      const char *pattern);\n"
10979 "\n"
10980 msgstr ""
10981
10982 # type: textblock
10983 #. type: textblock
10984 #: ../src/guestfs-actions.pod:2193 ../fish/guestfish-actions.pod:1477
10985 msgid ""
10986 "This command searches for all the pathnames matching C<pattern> according to "
10987 "the wildcard expansion rules used by the shell."
10988 msgstr ""
10989
10990 # type: textblock
10991 #. type: textblock
10992 #: ../src/guestfs-actions.pod:2197 ../fish/guestfish-actions.pod:1481
10993 msgid ""
10994 "If no paths match, then this returns an empty list (note: not an error)."
10995 msgstr ""
10996
10997 # type: textblock
10998 #. type: textblock
10999 #: ../src/guestfs-actions.pod:2200 ../fish/guestfish-actions.pod:1484
11000 msgid ""
11001 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
11002 "GLOB_BRACE>.  See that manual page for more details."
11003 msgstr ""
11004
11005 # type: textblock
11006 #. type: textblock
11007 #: ../src/guestfs-actions.pod:2208 ../src/guestfs-actions.pod:6442
11008 #: ../src/guestfs-actions.pod:6459
11009 msgid "(Added in 1.0.50)"
11010 msgstr ""
11011
11012 # type: =head2
11013 #. type: =head2
11014 #: ../src/guestfs-actions.pod:2210
11015 msgid "guestfs_grep"
11016 msgstr ""
11017
11018 # type: verbatim
11019 #. type: verbatim
11020 #: ../src/guestfs-actions.pod:2212
11021 #, no-wrap
11022 msgid ""
11023 " char **\n"
11024 " guestfs_grep (guestfs_h *g,\n"
11025 "               const char *regex,\n"
11026 "               const char *path);\n"
11027 "\n"
11028 msgstr ""
11029
11030 # type: textblock
11031 #. type: textblock
11032 #: ../src/guestfs-actions.pod:2217 ../fish/guestfish-actions.pod:1492
11033 msgid "This calls the external C<grep> program and returns the matching lines."
11034 msgstr ""
11035
11036 # type: =head2
11037 #. type: =head2
11038 #: ../src/guestfs-actions.pod:2229
11039 msgid "guestfs_grepi"
11040 msgstr ""
11041
11042 # type: verbatim
11043 #. type: verbatim
11044 #: ../src/guestfs-actions.pod:2231
11045 #, no-wrap
11046 msgid ""
11047 " char **\n"
11048 " guestfs_grepi (guestfs_h *g,\n"
11049 "                const char *regex,\n"
11050 "                const char *path);\n"
11051 "\n"
11052 msgstr ""
11053
11054 # type: textblock
11055 #. type: textblock
11056 #: ../src/guestfs-actions.pod:2236 ../fish/guestfish-actions.pod:1502
11057 msgid ""
11058 "This calls the external C<grep -i> program and returns the matching lines."
11059 msgstr ""
11060
11061 # type: =head2
11062 #. type: =head2
11063 #: ../src/guestfs-actions.pod:2248
11064 msgid "guestfs_grub_install"
11065 msgstr ""
11066
11067 # type: verbatim
11068 #. type: verbatim
11069 #: ../src/guestfs-actions.pod:2250
11070 #, no-wrap
11071 msgid ""
11072 " int\n"
11073 " guestfs_grub_install (guestfs_h *g,\n"
11074 "                       const char *root,\n"
11075 "                       const char *device);\n"
11076 "\n"
11077 msgstr ""
11078
11079 # type: textblock
11080 #. type: textblock
11081 #: ../src/guestfs-actions.pod:2255 ../fish/guestfish-actions.pod:1512
11082 msgid ""
11083 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
11084 "the root directory being C<root>."
11085 msgstr ""
11086
11087 # type: textblock
11088 #. type: textblock
11089 #: ../src/guestfs-actions.pod:2258 ../fish/guestfish-actions.pod:1515
11090 msgid ""
11091 "Note: If grub-install reports the error \"No suitable drive was found in the "
11092 "generated device map.\" it may be that you need to create a C</boot/grub/"
11093 "device.map> file first that contains the mapping between grub device names "
11094 "and Linux device names.  It is usually sufficient to create a file "
11095 "containing:"
11096 msgstr ""
11097
11098 # type: verbatim
11099 #. type: verbatim
11100 #: ../src/guestfs-actions.pod:2265 ../fish/guestfish-actions.pod:1522
11101 #, no-wrap
11102 msgid ""
11103 " (hd0) /dev/vda\n"
11104 "\n"
11105 msgstr ""
11106
11107 # type: textblock
11108 #. type: textblock
11109 #: ../src/guestfs-actions.pod:2267 ../fish/guestfish-actions.pod:1524
11110 msgid "replacing C</dev/vda> with the name of the installation device."
11111 msgstr ""
11112
11113 # type: textblock
11114 #. type: textblock
11115 #: ../src/guestfs-actions.pod:2271
11116 msgid "(Added in 1.0.17)"
11117 msgstr ""
11118
11119 # type: =head2
11120 #. type: =head2
11121 #: ../src/guestfs-actions.pod:2273
11122 msgid "guestfs_head"
11123 msgstr ""
11124
11125 # type: verbatim
11126 #. type: verbatim
11127 #: ../src/guestfs-actions.pod:2275
11128 #, no-wrap
11129 msgid ""
11130 " char **\n"
11131 " guestfs_head (guestfs_h *g,\n"
11132 "               const char *path);\n"
11133 "\n"
11134 msgstr ""
11135
11136 # type: textblock
11137 #. type: textblock
11138 #: ../src/guestfs-actions.pod:2279 ../fish/guestfish-actions.pod:1530
11139 msgid ""
11140 "This command returns up to the first 10 lines of a file as a list of strings."
11141 msgstr ""
11142
11143 # type: =head2
11144 #. type: =head2
11145 #: ../src/guestfs-actions.pod:2291
11146 msgid "guestfs_head_n"
11147 msgstr ""
11148
11149 # type: verbatim
11150 #. type: verbatim
11151 #: ../src/guestfs-actions.pod:2293
11152 #, no-wrap
11153 msgid ""
11154 " char **\n"
11155 " guestfs_head_n (guestfs_h *g,\n"
11156 "                 int nrlines,\n"
11157 "                 const char *path);\n"
11158 "\n"
11159 msgstr ""
11160
11161 # type: textblock
11162 #. type: textblock
11163 #: ../src/guestfs-actions.pod:2298 ../fish/guestfish-actions.pod:1540
11164 msgid ""
11165 "If the parameter C<nrlines> is a positive number, this returns the first "
11166 "C<nrlines> lines of the file C<path>."
11167 msgstr ""
11168
11169 # type: textblock
11170 #. type: textblock
11171 #: ../src/guestfs-actions.pod:2301 ../fish/guestfish-actions.pod:1543
11172 msgid ""
11173 "If the parameter C<nrlines> is a negative number, this returns lines from "
11174 "the file C<path>, excluding the last C<nrlines> lines."
11175 msgstr ""
11176
11177 # type: textblock
11178 #. type: textblock
11179 #: ../src/guestfs-actions.pod:2304 ../src/guestfs-actions.pod:6739
11180 #: ../fish/guestfish-actions.pod:1546 ../fish/guestfish-actions.pod:4508
11181 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
11182 msgstr ""
11183
11184 # type: =head2
11185 #. type: =head2
11186 #: ../src/guestfs-actions.pod:2315
11187 msgid "guestfs_hexdump"
11188 msgstr ""
11189
11190 # type: verbatim
11191 #. type: verbatim
11192 #: ../src/guestfs-actions.pod:2317
11193 #, no-wrap
11194 msgid ""
11195 " char *\n"
11196 " guestfs_hexdump (guestfs_h *g,\n"
11197 "                  const char *path);\n"
11198 "\n"
11199 msgstr ""
11200
11201 # type: textblock
11202 #. type: textblock
11203 #: ../src/guestfs-actions.pod:2321 ../fish/guestfish-actions.pod:1555
11204 msgid ""
11205 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
11206 "readable, canonical hex dump of the file."
11207 msgstr ""
11208
11209 # type: textblock
11210 #. type: textblock
11211 #: ../src/guestfs-actions.pod:2330 ../src/guestfs-actions.pod:6523
11212 #: ../src/guestfs-actions.pod:6578
11213 msgid "(Added in 1.0.22)"
11214 msgstr ""
11215
11216 # type: =head2
11217 #. type: =head2
11218 #: ../src/guestfs-actions.pod:2332
11219 msgid "guestfs_initrd_cat"
11220 msgstr ""
11221
11222 # type: verbatim
11223 #. type: verbatim
11224 #: ../src/guestfs-actions.pod:2334
11225 #, no-wrap
11226 msgid ""
11227 " char *\n"
11228 " guestfs_initrd_cat (guestfs_h *g,\n"
11229 "                     const char *initrdpath,\n"
11230 "                     const char *filename,\n"
11231 "                     size_t *size_r);\n"
11232 "\n"
11233 msgstr ""
11234
11235 # type: textblock
11236 #. type: textblock
11237 #: ../src/guestfs-actions.pod:2340 ../fish/guestfish-actions.pod:1565
11238 msgid ""
11239 "This command unpacks the file C<filename> from the initrd file called "
11240 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
11241 "character."
11242 msgstr ""
11243
11244 # type: textblock
11245 #. type: textblock
11246 #: ../src/guestfs-actions.pod:2344 ../fish/guestfish-actions.pod:1569
11247 msgid ""
11248 "For example, in guestfish you could use the following command to examine the "
11249 "boot script (usually called C</init>)  contained in a Linux initrd or "
11250 "initramfs image:"
11251 msgstr ""
11252
11253 # type: verbatim
11254 #. type: verbatim
11255 #: ../src/guestfs-actions.pod:2348 ../fish/guestfish-actions.pod:1573
11256 #, no-wrap
11257 msgid ""
11258 " initrd-cat /boot/initrd-<version>.img init\n"
11259 "\n"
11260 msgstr ""
11261
11262 # type: textblock
11263 #. type: textblock
11264 #: ../src/guestfs-actions.pod:2350
11265 msgid "See also C<guestfs_initrd_list>."
11266 msgstr ""
11267
11268 # type: =head2
11269 #. type: =head2
11270 #: ../src/guestfs-actions.pod:2361
11271 msgid "guestfs_initrd_list"
11272 msgstr ""
11273
11274 # type: verbatim
11275 #. type: verbatim
11276 #: ../src/guestfs-actions.pod:2363
11277 #, no-wrap
11278 msgid ""
11279 " char **\n"
11280 " guestfs_initrd_list (guestfs_h *g,\n"
11281 "                      const char *path);\n"
11282 "\n"
11283 msgstr ""
11284
11285 # type: textblock
11286 #. type: textblock
11287 #: ../src/guestfs-actions.pod:2367 ../fish/guestfish-actions.pod:1584
11288 msgid "This command lists out files contained in an initrd."
11289 msgstr ""
11290
11291 # type: textblock
11292 #. type: textblock
11293 #: ../src/guestfs-actions.pod:2369 ../fish/guestfish-actions.pod:1586
11294 msgid ""
11295 "The files are listed without any initial C</> character.  The files are "
11296 "listed in the order they appear (not necessarily alphabetical).  Directory "
11297 "names are listed as separate items."
11298 msgstr ""
11299
11300 # type: textblock
11301 #. type: textblock
11302 #: ../src/guestfs-actions.pod:2373 ../fish/guestfish-actions.pod:1590
11303 msgid ""
11304 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
11305 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
11306 "files)."
11307 msgstr ""
11308
11309 # type: =head2
11310 #. type: =head2
11311 #: ../src/guestfs-actions.pod:2383
11312 msgid "guestfs_inotify_add_watch"
11313 msgstr ""
11314
11315 # type: verbatim
11316 #. type: verbatim
11317 #: ../src/guestfs-actions.pod:2385
11318 #, no-wrap
11319 msgid ""
11320 " int64_t\n"
11321 " guestfs_inotify_add_watch (guestfs_h *g,\n"
11322 "                            const char *path,\n"
11323 "                            int mask);\n"
11324 "\n"
11325 msgstr ""
11326
11327 # type: textblock
11328 #. type: textblock
11329 #: ../src/guestfs-actions.pod:2390 ../fish/guestfish-actions.pod:1598
11330 msgid "Watch C<path> for the events listed in C<mask>."
11331 msgstr ""
11332
11333 # type: textblock
11334 #. type: textblock
11335 #: ../src/guestfs-actions.pod:2392 ../fish/guestfish-actions.pod:1600
11336 msgid ""
11337 "Note that if C<path> is a directory then events within that directory are "
11338 "watched, but this does I<not> happen recursively (in subdirectories)."
11339 msgstr ""
11340
11341 # type: textblock
11342 #. type: textblock
11343 #: ../src/guestfs-actions.pod:2396 ../fish/guestfish-actions.pod:1604
11344 msgid ""
11345 "Note for non-C or non-Linux callers: the inotify events are defined by the "
11346 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
11347 msgstr ""
11348
11349 # type: =head2
11350 #. type: =head2
11351 #: ../src/guestfs-actions.pod:2404
11352 msgid "guestfs_inotify_close"
11353 msgstr ""
11354
11355 # type: verbatim
11356 #. type: verbatim
11357 #: ../src/guestfs-actions.pod:2406
11358 #, no-wrap
11359 msgid ""
11360 " int\n"
11361 " guestfs_inotify_close (guestfs_h *g);\n"
11362 "\n"
11363 msgstr ""
11364
11365 # type: textblock
11366 #. type: textblock
11367 #: ../src/guestfs-actions.pod:2409 ../fish/guestfish-actions.pod:1612
11368 msgid ""
11369 "This closes the inotify handle which was previously opened by inotify_init.  "
11370 "It removes all watches, throws away any pending events, and deallocates all "
11371 "resources."
11372 msgstr ""
11373
11374 # type: =head2
11375 #. type: =head2
11376 #: ../src/guestfs-actions.pod:2417
11377 msgid "guestfs_inotify_files"
11378 msgstr ""
11379
11380 # type: verbatim
11381 #. type: verbatim
11382 #: ../src/guestfs-actions.pod:2419
11383 #, no-wrap
11384 msgid ""
11385 " char **\n"
11386 " guestfs_inotify_files (guestfs_h *g);\n"
11387 "\n"
11388 msgstr ""
11389
11390 # type: textblock
11391 #. type: textblock
11392 #: ../src/guestfs-actions.pod:2422
11393 msgid ""
11394 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
11395 "returns a list of pathnames of objects that were touched.  The returned "
11396 "pathnames are sorted and deduplicated."
11397 msgstr ""
11398
11399 # type: =head2
11400 #. type: =head2
11401 #: ../src/guestfs-actions.pod:2432
11402 msgid "guestfs_inotify_init"
11403 msgstr ""
11404
11405 # type: verbatim
11406 #. type: verbatim
11407 #: ../src/guestfs-actions.pod:2434
11408 #, no-wrap
11409 msgid ""
11410 " int\n"
11411 " guestfs_inotify_init (guestfs_h *g,\n"
11412 "                       int maxevents);\n"
11413 "\n"
11414 msgstr ""
11415
11416 # type: textblock
11417 #. type: textblock
11418 #: ../src/guestfs-actions.pod:2438 ../fish/guestfish-actions.pod:1628
11419 msgid ""
11420 "This command creates a new inotify handle.  The inotify subsystem can be "
11421 "used to notify events which happen to objects in the guest filesystem."
11422 msgstr ""
11423
11424 # type: textblock
11425 #. type: textblock
11426 #: ../src/guestfs-actions.pod:2442
11427 msgid ""
11428 "C<maxevents> is the maximum number of events which will be queued up between "
11429 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
11430 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
11431 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
11432 "throws away events, but records the fact that it threw them away by setting "
11433 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
11434 "C<guestfs_inotify_read>)."
11435 msgstr ""
11436
11437 # type: textblock
11438 #. type: textblock
11439 #: ../src/guestfs-actions.pod:2452
11440 msgid ""
11441 "Before any events are generated, you have to add some watches to the "
11442 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
11443 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
11444 msgstr ""
11445
11446 # type: textblock
11447 #. type: textblock
11448 #: ../src/guestfs-actions.pod:2458
11449 msgid ""
11450 "Queued up events should be read periodically by calling "
11451 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
11452 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
11453 "often enough then you risk the internal queue overflowing."
11454 msgstr ""
11455
11456 # type: textblock
11457 #. type: textblock
11458 #: ../src/guestfs-actions.pod:2465
11459 msgid ""
11460 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
11461 "This also removes any watches automatically."
11462 msgstr ""
11463
11464 # type: textblock
11465 #. type: textblock
11466 #: ../src/guestfs-actions.pod:2469 ../fish/guestfish-actions.pod:1659
11467 msgid ""
11468 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
11469 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
11470 "that there is one global inotify handle per libguestfs instance."
11471 msgstr ""
11472
11473 # type: =head2
11474 #. type: =head2
11475 #: ../src/guestfs-actions.pod:2478
11476 msgid "guestfs_inotify_read"
11477 msgstr ""
11478
11479 # type: verbatim
11480 #. type: verbatim
11481 #: ../src/guestfs-actions.pod:2480
11482 #, no-wrap
11483 msgid ""
11484 " struct guestfs_inotify_event_list *\n"
11485 " guestfs_inotify_read (guestfs_h *g);\n"
11486 "\n"
11487 msgstr ""
11488
11489 # type: textblock
11490 #. type: textblock
11491 #: ../src/guestfs-actions.pod:2483 ../fish/guestfish-actions.pod:1668
11492 msgid ""
11493 "Return the complete queue of events that have happened since the previous "
11494 "read call."
11495 msgstr ""
11496
11497 # type: textblock
11498 #. type: textblock
11499 #: ../src/guestfs-actions.pod:2486 ../fish/guestfish-actions.pod:1671
11500 msgid "If no events have happened, this returns an empty list."
11501 msgstr ""
11502
11503 # type: textblock
11504 #. type: textblock
11505 #: ../src/guestfs-actions.pod:2488 ../fish/guestfish-actions.pod:1673
11506 msgid ""
11507 "I<Note>: In order to make sure that all events have been read, you must call "
11508 "this function repeatedly until it returns an empty list.  The reason is that "
11509 "the call will read events up to the maximum appliance-to-host message size "
11510 "and leave remaining events in the queue."
11511 msgstr ""
11512
11513 # type: textblock
11514 #. type: textblock
11515 #: ../src/guestfs-actions.pod:2494
11516 msgid ""
11517 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
11518 "there was an error.  I<The caller must call "
11519 "C<guestfs_free_inotify_event_list> after use>."
11520 msgstr ""
11521
11522 # type: =head2
11523 #. type: =head2
11524 #: ../src/guestfs-actions.pod:2500
11525 msgid "guestfs_inotify_rm_watch"
11526 msgstr ""
11527
11528 # type: verbatim
11529 #. type: verbatim
11530 #: ../src/guestfs-actions.pod:2502
11531 #, no-wrap
11532 msgid ""
11533 " int\n"
11534 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
11535 "                           int wd);\n"
11536 "\n"
11537 msgstr ""
11538
11539 # type: textblock
11540 #. type: textblock
11541 #: ../src/guestfs-actions.pod:2506
11542 msgid ""
11543 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
11544 msgstr ""
11545
11546 # type: =head2
11547 #. type: =head2
11548 #: ../src/guestfs-actions.pod:2513
11549 msgid "guestfs_inspect_get_arch"
11550 msgstr ""
11551
11552 # type: verbatim
11553 #. type: verbatim
11554 #: ../src/guestfs-actions.pod:2515
11555 #, no-wrap
11556 msgid ""
11557 " char *\n"
11558 " guestfs_inspect_get_arch (guestfs_h *g,\n"
11559 "                           const char *root);\n"
11560 "\n"
11561 msgstr ""
11562
11563 # type: textblock
11564 #. type: textblock
11565 #: ../src/guestfs-actions.pod:2519
11566 msgid ""
11567 "This returns the architecture of the inspected operating system.  The "
11568 "possible return values are listed under C<guestfs_file_architecture>."
11569 msgstr ""
11570
11571 # type: textblock
11572 #. type: textblock
11573 #: ../src/guestfs-actions.pod:2523 ../fish/guestfish-actions.pod:1694
11574 msgid ""
11575 "If the architecture could not be determined, then the string C<unknown> is "
11576 "returned."
11577 msgstr ""
11578
11579 # type: textblock
11580 #. type: textblock
11581 #: ../src/guestfs-actions.pod:2526 ../src/guestfs-actions.pod:2616
11582 #: ../src/guestfs-actions.pod:2718 ../src/guestfs-actions.pod:2735
11583 #: ../src/guestfs-actions.pod:2864 ../src/guestfs-actions.pod:2947
11584 #: ../src/guestfs-actions.pod:2975 ../src/guestfs-actions.pod:2996
11585 #: ../src/guestfs-actions.pod:3047 ../src/guestfs-actions.pod:3087
11586 #: ../src/guestfs-actions.pod:3107 ../src/guestfs-actions.pod:3125
11587 #: ../src/guestfs-actions.pod:3142 ../src/guestfs-actions.pod:3156
11588 #: ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3272
11589 #: ../src/guestfs-actions.pod:3313 ../fish/guestfish-actions.pod:1697
11590 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1859
11591 #: ../fish/guestfish-actions.pod:1871 ../fish/guestfish-actions.pod:1955
11592 #: ../fish/guestfish-actions.pod:2016 ../fish/guestfish-actions.pod:2037
11593 #: ../fish/guestfish-actions.pod:2051 ../fish/guestfish-actions.pod:2091
11594 #: ../fish/guestfish-actions.pod:2123 ../fish/guestfish-actions.pod:2136
11595 #: ../fish/guestfish-actions.pod:2149 ../fish/guestfish-actions.pod:2159
11596 #: ../fish/guestfish-actions.pod:2169 ../fish/guestfish-actions.pod:2181
11597 #: ../fish/guestfish-actions.pod:2277 ../fish/guestfish-actions.pod:2311
11598 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
11599 msgstr ""
11600
11601 # type: =head2
11602 #. type: =head2
11603 #: ../src/guestfs-actions.pod:2533
11604 msgid "guestfs_inspect_get_distro"
11605 msgstr ""
11606
11607 # type: verbatim
11608 #. type: verbatim
11609 #: ../src/guestfs-actions.pod:2535
11610 #, no-wrap
11611 msgid ""
11612 " char *\n"
11613 " guestfs_inspect_get_distro (guestfs_h *g,\n"
11614 "                             const char *root);\n"
11615 "\n"
11616 msgstr ""
11617
11618 # type: textblock
11619 #. type: textblock
11620 #: ../src/guestfs-actions.pod:2539 ../fish/guestfish-actions.pod:1703
11621 msgid ""
11622 "This returns the distro (distribution) of the inspected operating system."
11623 msgstr ""
11624
11625 # type: textblock
11626 #. type: textblock
11627 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1706
11628 msgid "Currently defined distros are:"
11629 msgstr ""
11630
11631 # type: =item
11632 #. type: =item
11633 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:1710
11634 msgid "\"archlinux\""
11635 msgstr ""
11636
11637 # type: textblock
11638 #. type: textblock
11639 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1712
11640 msgid "Arch Linux."
11641 msgstr ""
11642
11643 #. type: =item
11644 #: ../src/guestfs-actions.pod:2550 ../fish/guestfish-actions.pod:1714
11645 msgid "\"centos\""
11646 msgstr ""
11647
11648 #. type: textblock
11649 #: ../src/guestfs-actions.pod:2552 ../fish/guestfish-actions.pod:1716
11650 msgid "CentOS."
11651 msgstr ""
11652
11653 # type: =item
11654 #. type: =item
11655 #: ../src/guestfs-actions.pod:2554 ../fish/guestfish-actions.pod:1718
11656 msgid "\"debian\""
11657 msgstr ""
11658
11659 # type: textblock
11660 #. type: textblock
11661 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:1720
11662 msgid "Debian."
11663 msgstr ""
11664
11665 # type: =item
11666 #. type: =item
11667 #: ../src/guestfs-actions.pod:2558 ../fish/guestfish-actions.pod:1722
11668 msgid "\"fedora\""
11669 msgstr ""
11670
11671 # type: textblock
11672 #. type: textblock
11673 #: ../src/guestfs-actions.pod:2560 ../fish/guestfish-actions.pod:1724
11674 msgid "Fedora."
11675 msgstr ""
11676
11677 # type: =item
11678 #. type: =item
11679 #: ../src/guestfs-actions.pod:2562 ../fish/guestfish-actions.pod:1726
11680 msgid "\"gentoo\""
11681 msgstr ""
11682
11683 # type: textblock
11684 #. type: textblock
11685 #: ../src/guestfs-actions.pod:2564 ../fish/guestfish-actions.pod:1728
11686 msgid "Gentoo."
11687 msgstr ""
11688
11689 # type: =item
11690 #. type: =item
11691 #: ../src/guestfs-actions.pod:2566 ../fish/guestfish-actions.pod:1730
11692 msgid "\"linuxmint\""
11693 msgstr ""
11694
11695 # type: textblock
11696 #. type: textblock
11697 #: ../src/guestfs-actions.pod:2568 ../fish/guestfish-actions.pod:1732
11698 msgid "Linux Mint."
11699 msgstr ""
11700
11701 # type: =item
11702 #. type: =item
11703 #: ../src/guestfs-actions.pod:2570 ../fish/guestfish-actions.pod:1734
11704 msgid "\"mandriva\""
11705 msgstr ""
11706
11707 # type: textblock
11708 #. type: textblock
11709 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:1736
11710 msgid "Mandriva."
11711 msgstr ""
11712
11713 # type: =item
11714 #. type: =item
11715 #: ../src/guestfs-actions.pod:2574 ../fish/guestfish-actions.pod:1738
11716 msgid "\"meego\""
11717 msgstr ""
11718
11719 # type: textblock
11720 #. type: textblock
11721 #: ../src/guestfs-actions.pod:2576 ../fish/guestfish-actions.pod:1740
11722 msgid "MeeGo."
11723 msgstr ""
11724
11725 # type: =item
11726 #. type: =item
11727 #: ../src/guestfs-actions.pod:2578 ../fish/guestfish-actions.pod:1742
11728 msgid "\"pardus\""
11729 msgstr ""
11730
11731 # type: textblock
11732 #. type: textblock
11733 #: ../src/guestfs-actions.pod:2580 ../fish/guestfish-actions.pod:1744
11734 msgid "Pardus."
11735 msgstr ""
11736
11737 # type: =item
11738 #. type: =item
11739 #: ../src/guestfs-actions.pod:2582 ../fish/guestfish-actions.pod:1746
11740 msgid "\"redhat-based\""
11741 msgstr ""
11742
11743 # type: textblock
11744 #. type: textblock
11745 #: ../src/guestfs-actions.pod:2584 ../fish/guestfish-actions.pod:1748
11746 msgid "Some Red Hat-derived distro."
11747 msgstr ""
11748
11749 # type: =item
11750 #. type: =item
11751 #: ../src/guestfs-actions.pod:2586 ../fish/guestfish-actions.pod:1750
11752 msgid "\"rhel\""
11753 msgstr ""
11754
11755 #. type: textblock
11756 #: ../src/guestfs-actions.pod:2588 ../fish/guestfish-actions.pod:1752
11757 msgid "Red Hat Enterprise Linux."
11758 msgstr ""
11759
11760 #. type: =item
11761 #: ../src/guestfs-actions.pod:2590 ../fish/guestfish-actions.pod:1754
11762 msgid "\"scientificlinux\""
11763 msgstr ""
11764
11765 #. type: textblock
11766 #: ../src/guestfs-actions.pod:2592 ../fish/guestfish-actions.pod:1756
11767 msgid "Scientific Linux."
11768 msgstr ""
11769
11770 #. type: =item
11771 #: ../src/guestfs-actions.pod:2594 ../fish/guestfish-actions.pod:1758
11772 msgid "\"slackware\""
11773 msgstr ""
11774
11775 #. type: textblock
11776 #: ../src/guestfs-actions.pod:2596 ../fish/guestfish-actions.pod:1760
11777 msgid "Slackware."
11778 msgstr ""
11779
11780 # type: =item
11781 #. type: =item
11782 #: ../src/guestfs-actions.pod:2598 ../fish/guestfish-actions.pod:1762
11783 msgid "\"ubuntu\""
11784 msgstr ""
11785
11786 # type: textblock
11787 #. type: textblock
11788 #: ../src/guestfs-actions.pod:2600 ../fish/guestfish-actions.pod:1764
11789 msgid "Ubuntu."
11790 msgstr ""
11791
11792 # type: =item
11793 #. type: =item
11794 #: ../src/guestfs-actions.pod:2602 ../src/guestfs-actions.pod:2709
11795 #: ../src/guestfs-actions.pod:3078 ../fish/guestfish-actions.pod:1766
11796 #: ../fish/guestfish-actions.pod:1850 ../fish/guestfish-actions.pod:2114
11797 msgid "\"unknown\""
11798 msgstr ""
11799
11800 # type: textblock
11801 #. type: textblock
11802 #: ../src/guestfs-actions.pod:2604 ../fish/guestfish-actions.pod:1768
11803 msgid "The distro could not be determined."
11804 msgstr ""
11805
11806 # type: =item
11807 #. type: =item
11808 #: ../src/guestfs-actions.pod:2606 ../src/guestfs-actions.pod:3070
11809 #: ../fish/guestfish-actions.pod:1770 ../fish/guestfish-actions.pod:2106
11810 msgid "\"windows\""
11811 msgstr ""
11812
11813 # type: textblock
11814 #. type: textblock
11815 #: ../src/guestfs-actions.pod:2608 ../fish/guestfish-actions.pod:1772
11816 msgid ""
11817 "Windows does not have distributions.  This string is returned if the OS type "
11818 "is Windows."
11819 msgstr ""
11820
11821 # type: textblock
11822 #. type: textblock
11823 #: ../src/guestfs-actions.pod:2613 ../src/guestfs-actions.pod:2715
11824 #: ../src/guestfs-actions.pod:3084 ../fish/guestfish-actions.pod:1777
11825 #: ../fish/guestfish-actions.pod:1856 ../fish/guestfish-actions.pod:2120
11826 msgid ""
11827 "Future versions of libguestfs may return other strings here.  The caller "
11828 "should be prepared to handle any string."
11829 msgstr ""
11830
11831 #. type: =head2
11832 #: ../src/guestfs-actions.pod:2623
11833 msgid "guestfs_inspect_get_drive_mappings"
11834 msgstr ""
11835
11836 #. type: verbatim
11837 #: ../src/guestfs-actions.pod:2625
11838 #, no-wrap
11839 msgid ""
11840 " char **\n"
11841 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
11842 "                                     const char *root);\n"
11843 "\n"
11844 msgstr ""
11845
11846 #. type: textblock
11847 #: ../src/guestfs-actions.pod:2629 ../fish/guestfish-actions.pod:1786
11848 msgid ""
11849 "This call is useful for Windows which uses a primitive system of assigning "
11850 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
11851 "Windows Registry to find out how disks/partitions are mapped to drive "
11852 "letters, and returns a hash table as in the example below:"
11853 msgstr ""
11854
11855 #. type: verbatim
11856 #: ../src/guestfs-actions.pod:2635 ../fish/guestfish-actions.pod:1792
11857 #, no-wrap
11858 msgid ""
11859 " C      =>     /dev/vda2\n"
11860 " E      =>     /dev/vdb1\n"
11861 " F      =>     /dev/vdc1\n"
11862 "\n"
11863 msgstr ""
11864
11865 #. type: textblock
11866 #: ../src/guestfs-actions.pod:2639 ../fish/guestfish-actions.pod:1796
11867 msgid ""
11868 "Note that keys are drive letters.  For Windows, the key is case insensitive "
11869 "and just contains the drive letter, without the customary colon separator "
11870 "character."
11871 msgstr ""
11872
11873 #. type: textblock
11874 #: ../src/guestfs-actions.pod:2643 ../fish/guestfish-actions.pod:1800
11875 msgid ""
11876 "In future we may support other operating systems that also used drive "
11877 "letters, but the keys for those might not be case insensitive and might be "
11878 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
11879 "C<h1> etc."
11880 msgstr ""
11881
11882 #. type: textblock
11883 #: ../src/guestfs-actions.pod:2648 ../fish/guestfish-actions.pod:1805
11884 msgid ""
11885 "For Windows guests, currently only hard drive mappings are returned.  "
11886 "Removable disks (eg. DVD-ROMs) are ignored."
11887 msgstr ""
11888
11889 #. type: textblock
11890 #: ../src/guestfs-actions.pod:2651 ../fish/guestfish-actions.pod:1808
11891 msgid ""
11892 "For guests that do not use drive mappings, or if the drive mappings could "
11893 "not be determined, this returns an empty hash table."
11894 msgstr ""
11895
11896 #. type: textblock
11897 #: ../src/guestfs-actions.pod:2654
11898 msgid ""
11899 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11900 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
11901 msgstr ""
11902
11903 # type: textblock
11904 #. type: textblock
11905 #: ../src/guestfs-actions.pod:2658 ../src/guestfs-actions.pod:2920
11906 #: ../src/guestfs-actions.pod:3682 ../src/guestfs-actions.pod:4947
11907 #: ../src/guestfs-actions.pod:6880
11908 msgid ""
11909 "This function returns a NULL-terminated array of strings, or NULL if there "
11910 "was an error.  The array of strings will always have length C<2n+1>, where "
11911 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
11912 "caller must free the strings and the array after use>."
11913 msgstr ""
11914
11915 # type: =head2
11916 #. type: =head2
11917 #: ../src/guestfs-actions.pod:2664
11918 msgid "guestfs_inspect_get_filesystems"
11919 msgstr ""
11920
11921 # type: verbatim
11922 #. type: verbatim
11923 #: ../src/guestfs-actions.pod:2666
11924 #, no-wrap
11925 msgid ""
11926 " char **\n"
11927 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
11928 "                                  const char *root);\n"
11929 "\n"
11930 msgstr ""
11931
11932 # type: textblock
11933 #. type: textblock
11934 #: ../src/guestfs-actions.pod:2670 ../fish/guestfish-actions.pod:1819
11935 msgid ""
11936 "This returns a list of all the filesystems that we think are associated with "
11937 "this operating system.  This includes the root filesystem, other ordinary "
11938 "filesystems, and non-mounted devices like swap partitions."
11939 msgstr ""
11940
11941 # type: textblock
11942 #. type: textblock
11943 #: ../src/guestfs-actions.pod:2675 ../fish/guestfish-actions.pod:1824
11944 msgid ""
11945 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
11946 "to be shared between operating systems."
11947 msgstr ""
11948
11949 # type: textblock
11950 #. type: textblock
11951 #: ../src/guestfs-actions.pod:2678
11952 msgid ""
11953 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11954 "C<guestfs_inspect_get_mountpoints>."
11955 msgstr ""
11956
11957 #. type: =head2
11958 #: ../src/guestfs-actions.pod:2687
11959 msgid "guestfs_inspect_get_format"
11960 msgstr ""
11961
11962 #. type: verbatim
11963 #: ../src/guestfs-actions.pod:2689
11964 #, no-wrap
11965 msgid ""
11966 " char *\n"
11967 " guestfs_inspect_get_format (guestfs_h *g,\n"
11968 "                             const char *root);\n"
11969 "\n"
11970 msgstr ""
11971
11972 #. type: textblock
11973 #: ../src/guestfs-actions.pod:2693 ../fish/guestfish-actions.pod:1834
11974 msgid ""
11975 "This returns the format of the inspected operating system.  You can use it "
11976 "to detect install images, live CDs and similar."
11977 msgstr ""
11978
11979 #. type: textblock
11980 #: ../src/guestfs-actions.pod:2696 ../fish/guestfish-actions.pod:1837
11981 msgid "Currently defined formats are:"
11982 msgstr ""
11983
11984 #. type: =item
11985 #: ../src/guestfs-actions.pod:2700 ../fish/guestfish-actions.pod:1841
11986 msgid "\"installed\""
11987 msgstr ""
11988
11989 #. type: textblock
11990 #: ../src/guestfs-actions.pod:2702 ../fish/guestfish-actions.pod:1843
11991 msgid "This is an installed operating system."
11992 msgstr ""
11993
11994 #. type: =item
11995 #: ../src/guestfs-actions.pod:2704 ../fish/guestfish-actions.pod:1845
11996 msgid "\"installer\""
11997 msgstr ""
11998
11999 #. type: textblock
12000 #: ../src/guestfs-actions.pod:2706 ../fish/guestfish-actions.pod:1847
12001 msgid ""
12002 "The disk image being inspected is not an installed operating system, but a "
12003 "I<bootable> install disk, live CD, or similar."
12004 msgstr ""
12005
12006 #. type: textblock
12007 #: ../src/guestfs-actions.pod:2711 ../fish/guestfish-actions.pod:1852
12008 msgid "The format of this disk image is not known."
12009 msgstr ""
12010
12011 # type: =head2
12012 #. type: =head2
12013 #: ../src/guestfs-actions.pod:2723
12014 msgid "guestfs_inspect_get_hostname"
12015 msgstr ""
12016
12017 # type: verbatim
12018 #. type: verbatim
12019 #: ../src/guestfs-actions.pod:2725
12020 #, no-wrap
12021 msgid ""
12022 " char *\n"
12023 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
12024 "                               const char *root);\n"
12025 "\n"
12026 msgstr ""
12027
12028 # type: textblock
12029 #. type: textblock
12030 #: ../src/guestfs-actions.pod:2729 ../fish/guestfish-actions.pod:1865
12031 msgid ""
12032 "This function returns the hostname of the operating system as found by "
12033 "inspection of the guest's configuration files."
12034 msgstr ""
12035
12036 # type: textblock
12037 #. type: textblock
12038 #: ../src/guestfs-actions.pod:2732 ../fish/guestfish-actions.pod:1868
12039 msgid ""
12040 "If the hostname could not be determined, then the string C<unknown> is "
12041 "returned."
12042 msgstr ""
12043
12044 # type: textblock
12045 #. type: textblock
12046 #: ../src/guestfs-actions.pod:2740
12047 msgid "(Added in 1.7.9)"
12048 msgstr ""
12049
12050 #. type: =head2
12051 #: ../src/guestfs-actions.pod:2742
12052 msgid "guestfs_inspect_get_icon"
12053 msgstr ""
12054
12055 #. type: verbatim
12056 #: ../src/guestfs-actions.pod:2744
12057 #, no-wrap
12058 msgid ""
12059 " char *\n"
12060 " guestfs_inspect_get_icon (guestfs_h *g,\n"
12061 "                           const char *root,\n"
12062 "                           size_t *size_r,\n"
12063 "                           ...);\n"
12064 "\n"
12065 msgstr ""
12066
12067 #. type: verbatim
12068 #: ../src/guestfs-actions.pod:2755
12069 #, no-wrap
12070 msgid ""
12071 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
12072 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
12073 "\n"
12074 msgstr ""
12075
12076 #. type: textblock
12077 #: ../src/guestfs-actions.pod:2758 ../fish/guestfish-actions.pod:1877
12078 msgid ""
12079 "This function returns an icon corresponding to the inspected operating "
12080 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
12081 "to PNG if necessary)."
12082 msgstr ""
12083
12084 #. type: textblock
12085 #: ../src/guestfs-actions.pod:2762 ../fish/guestfish-actions.pod:1881
12086 msgid ""
12087 "If it was not possible to get an icon this function returns a zero-length "
12088 "(non-NULL) buffer.  I<Callers must check for this case>."
12089 msgstr ""
12090
12091 #. type: textblock
12092 #: ../src/guestfs-actions.pod:2765 ../fish/guestfish-actions.pod:1884
12093 msgid ""
12094 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
12095 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
12096 "this file will be returned.  You can disable favicons by passing the "
12097 "optional C<favicon> boolean as false (default is true)."
12098 msgstr ""
12099
12100 #. type: textblock
12101 #: ../src/guestfs-actions.pod:2771 ../fish/guestfish-actions.pod:1890
12102 msgid ""
12103 "If finding the favicon fails, then we look in other places in the guest for "
12104 "a suitable icon."
12105 msgstr ""
12106
12107 #. type: textblock
12108 #: ../src/guestfs-actions.pod:2774 ../fish/guestfish-actions.pod:1893
12109 msgid ""
12110 "If the optional C<highquality> boolean is true then only high quality icons "
12111 "are returned, which means only icons of high resolution with an alpha "
12112 "channel.  The default (false) is to return any icon we can, even if it is of "
12113 "substandard quality."
12114 msgstr ""
12115
12116 #. type: textblock
12117 #: ../src/guestfs-actions.pod:2785 ../fish/guestfish-actions.pod:1904
12118 msgid ""
12119 "Unlike most other inspection API calls, the guest's disks must be mounted up "
12120 "before you call this, since it needs to read information from the guest "
12121 "filesystem during the call."
12122 msgstr ""
12123
12124 #. type: textblock
12125 #: ../src/guestfs-actions.pod:2791 ../fish/guestfish-actions.pod:1910
12126 msgid ""
12127 "B<Security:> The icon data comes from the untrusted guest, and should be "
12128 "treated with caution.  PNG files have been known to contain exploits.  "
12129 "Ensure that libpng (or other relevant libraries) are fully up to date before "
12130 "trying to process or display the icon."
12131 msgstr ""
12132
12133 #. type: textblock
12134 #: ../src/guestfs-actions.pod:2799 ../fish/guestfish-actions.pod:1918
12135 msgid ""
12136 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
12137 "tries to return the largest, highest quality icon available.  The "
12138 "application must scale the icon to the required size."
12139 msgstr ""
12140
12141 #. type: textblock
12142 #: ../src/guestfs-actions.pod:2806 ../fish/guestfish-actions.pod:1925
12143 msgid ""
12144 "Extracting icons from Windows guests requires the external C<wrestool> "
12145 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
12146 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
12147 "installed separately."
12148 msgstr ""
12149
12150 #. type: textblock
12151 #: ../src/guestfs-actions.pod:2813 ../fish/guestfish-actions.pod:1932
12152 msgid ""
12153 "Operating system icons are usually trademarks.  Seek legal advice before "
12154 "using trademarks in applications."
12155 msgstr ""
12156
12157 #. type: =head2
12158 #: ../src/guestfs-actions.pod:2822
12159 msgid "guestfs_inspect_get_icon_va"
12160 msgstr ""
12161
12162 #. type: verbatim
12163 #: ../src/guestfs-actions.pod:2824
12164 #, no-wrap
12165 msgid ""
12166 " char *\n"
12167 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
12168 "                              const char *root,\n"
12169 "                              size_t *size_r,\n"
12170 "                              va_list args);\n"
12171 "\n"
12172 msgstr ""
12173
12174 #. type: textblock
12175 #: ../src/guestfs-actions.pod:2830
12176 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
12177 msgstr ""
12178
12179 #. type: =head2
12180 #: ../src/guestfs-actions.pod:2834
12181 msgid "guestfs_inspect_get_icon_argv"
12182 msgstr ""
12183
12184 #. type: verbatim
12185 #: ../src/guestfs-actions.pod:2836
12186 #, no-wrap
12187 msgid ""
12188 " char *\n"
12189 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
12190 "                                const char *root,\n"
12191 "                                size_t *size_r,\n"
12192 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
12193 "\n"
12194 msgstr ""
12195
12196 #. type: textblock
12197 #: ../src/guestfs-actions.pod:2842
12198 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
12199 msgstr ""
12200
12201 # type: =head2
12202 #. type: =head2
12203 #: ../src/guestfs-actions.pod:2846
12204 msgid "guestfs_inspect_get_major_version"
12205 msgstr ""
12206
12207 # type: verbatim
12208 #. type: verbatim
12209 #: ../src/guestfs-actions.pod:2848
12210 #, no-wrap
12211 msgid ""
12212 " int\n"
12213 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
12214 "                                    const char *root);\n"
12215 "\n"
12216 msgstr ""
12217
12218 # type: textblock
12219 #. type: textblock
12220 #: ../src/guestfs-actions.pod:2852 ../fish/guestfish-actions.pod:1943
12221 msgid ""
12222 "This returns the major version number of the inspected operating system."
12223 msgstr ""
12224
12225 # type: textblock
12226 #. type: textblock
12227 #: ../src/guestfs-actions.pod:2855 ../fish/guestfish-actions.pod:1946
12228 msgid ""
12229 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
12230 "popular public names used by the operating system.  Notably the operating "
12231 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
12232 "1).  You can find out the real versions corresponding to releases of Windows "
12233 "by consulting Wikipedia or MSDN."
12234 msgstr ""
12235
12236 # type: textblock
12237 #. type: textblock
12238 #: ../src/guestfs-actions.pod:2862 ../src/guestfs-actions.pod:2879
12239 #: ../fish/guestfish-actions.pod:1953 ../fish/guestfish-actions.pod:1964
12240 msgid "If the version could not be determined, then C<0> is returned."
12241 msgstr ""
12242
12243 # type: =head2
12244 #. type: =head2
12245 #: ../src/guestfs-actions.pod:2870
12246 msgid "guestfs_inspect_get_minor_version"
12247 msgstr ""
12248
12249 # type: verbatim
12250 #. type: verbatim
12251 #: ../src/guestfs-actions.pod:2872
12252 #, no-wrap
12253 msgid ""
12254 " int\n"
12255 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
12256 "                                    const char *root);\n"
12257 "\n"
12258 msgstr ""
12259
12260 # type: textblock
12261 #. type: textblock
12262 #: ../src/guestfs-actions.pod:2876 ../fish/guestfish-actions.pod:1961
12263 msgid ""
12264 "This returns the minor version number of the inspected operating system."
12265 msgstr ""
12266
12267 # type: textblock
12268 #. type: textblock
12269 #: ../src/guestfs-actions.pod:2881
12270 msgid ""
12271 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
12272 "C<guestfs_inspect_get_major_version>."
12273 msgstr ""
12274
12275 # type: =head2
12276 #. type: =head2
12277 #: ../src/guestfs-actions.pod:2888
12278 msgid "guestfs_inspect_get_mountpoints"
12279 msgstr ""
12280
12281 # type: verbatim
12282 #. type: verbatim
12283 #: ../src/guestfs-actions.pod:2890
12284 #, no-wrap
12285 msgid ""
12286 " char **\n"
12287 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
12288 "                                  const char *root);\n"
12289 "\n"
12290 msgstr ""
12291
12292 #. type: textblock
12293 #: ../src/guestfs-actions.pod:2894 ../fish/guestfish-actions.pod:1973
12294 msgid ""
12295 "This returns a hash of where we think the filesystems associated with this "
12296 "operating system should be mounted.  Callers should note that this is at "
12297 "best an educated guess made by reading configuration files such as C</etc/"
12298 "fstab>.  I<In particular note> that this may return filesystems which are "
12299 "non-existent or not mountable and callers should be prepared to handle or "
12300 "ignore failures if they try to mount them."
12301 msgstr ""
12302
12303 # type: textblock
12304 #. type: textblock
12305 #: ../src/guestfs-actions.pod:2903 ../fish/guestfish-actions.pod:1982
12306 msgid ""
12307 "Each element in the returned hashtable has a key which is the path of the "
12308 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
12309 "mounted there (eg. C</dev/sda1>)."
12310 msgstr ""
12311
12312 # type: textblock
12313 #. type: textblock
12314 #: ../src/guestfs-actions.pod:2908 ../fish/guestfish-actions.pod:1987
12315 msgid ""
12316 "Non-mounted devices such as swap devices are I<not> returned in this list."
12317 msgstr ""
12318
12319 #. type: textblock
12320 #: ../src/guestfs-actions.pod:2911
12321 msgid ""
12322 "For operating systems like Windows which still use drive letters, this call "
12323 "will only return an entry for the first drive \"mounted on\" C</>.  For "
12324 "information about the mapping of drive letters to partitions, see "
12325 "C<guestfs_inspect_get_drive_mappings>."
12326 msgstr ""
12327
12328 # type: textblock
12329 #. type: textblock
12330 #: ../src/guestfs-actions.pod:2917
12331 msgid ""
12332 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
12333 "C<guestfs_inspect_get_filesystems>."
12334 msgstr ""
12335
12336 # type: =head2
12337 #. type: =head2
12338 #: ../src/guestfs-actions.pod:2928
12339 msgid "guestfs_inspect_get_package_format"
12340 msgstr ""
12341
12342 # type: verbatim
12343 #. type: verbatim
12344 #: ../src/guestfs-actions.pod:2930
12345 #, no-wrap
12346 msgid ""
12347 " char *\n"
12348 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
12349 "                                     const char *root);\n"
12350 "\n"
12351 msgstr ""
12352
12353 # type: textblock
12354 #. type: textblock
12355 #: ../src/guestfs-actions.pod:2934
12356 msgid ""
12357 "This function and C<guestfs_inspect_get_package_management> return the "
12358 "package format and package management tool used by the inspected operating "
12359 "system.  For example for Fedora these functions would return C<rpm> (package "
12360 "format) and C<yum> (package management)."
12361 msgstr ""
12362
12363 # type: textblock
12364 #. type: textblock
12365 #: ../src/guestfs-actions.pod:2940 ../fish/guestfish-actions.pod:2009
12366 msgid ""
12367 "This returns the string C<unknown> if we could not determine the package "
12368 "format I<or> if the operating system does not have a real packaging system "
12369 "(eg. Windows)."
12370 msgstr ""
12371
12372 # type: textblock
12373 #. type: textblock
12374 #: ../src/guestfs-actions.pod:2944 ../fish/guestfish-actions.pod:2013
12375 msgid ""
12376 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
12377 "Future versions of libguestfs may return other strings."
12378 msgstr ""
12379
12380 # type: textblock
12381 #. type: textblock
12382 #: ../src/guestfs-actions.pod:2952 ../src/guestfs-actions.pod:2980
12383 msgid "(Added in 1.7.5)"
12384 msgstr ""
12385
12386 # type: =head2
12387 #. type: =head2
12388 #: ../src/guestfs-actions.pod:2954
12389 msgid "guestfs_inspect_get_package_management"
12390 msgstr ""
12391
12392 # type: verbatim
12393 #. type: verbatim
12394 #: ../src/guestfs-actions.pod:2956
12395 #, no-wrap
12396 msgid ""
12397 " char *\n"
12398 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
12399 "                                         const char *root);\n"
12400 "\n"
12401 msgstr ""
12402
12403 # type: textblock
12404 #. type: textblock
12405 #: ../src/guestfs-actions.pod:2960
12406 msgid ""
12407 "C<guestfs_inspect_get_package_format> and this function return the package "
12408 "format and package management tool used by the inspected operating system.  "
12409 "For example for Fedora these functions would return C<rpm> (package format) "
12410 "and C<yum> (package management)."
12411 msgstr ""
12412
12413 # type: textblock
12414 #. type: textblock
12415 #: ../src/guestfs-actions.pod:2966 ../fish/guestfish-actions.pod:2028
12416 msgid ""
12417 "This returns the string C<unknown> if we could not determine the package "
12418 "management tool I<or> if the operating system does not have a real packaging "
12419 "system (eg. Windows)."
12420 msgstr ""
12421
12422 # type: textblock
12423 #. type: textblock
12424 #: ../src/guestfs-actions.pod:2970 ../fish/guestfish-actions.pod:2032
12425 msgid ""
12426 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
12427 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
12428 "libguestfs may return other strings."
12429 msgstr ""
12430
12431 # type: =head2
12432 #. type: =head2
12433 #: ../src/guestfs-actions.pod:2982
12434 msgid "guestfs_inspect_get_product_name"
12435 msgstr ""
12436
12437 # type: verbatim
12438 #. type: verbatim
12439 #: ../src/guestfs-actions.pod:2984
12440 #, no-wrap
12441 msgid ""
12442 " char *\n"
12443 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
12444 "                                   const char *root);\n"
12445 "\n"
12446 msgstr ""
12447
12448 # type: textblock
12449 #. type: textblock
12450 #: ../src/guestfs-actions.pod:2988 ../fish/guestfish-actions.pod:2043
12451 msgid ""
12452 "This returns the product name of the inspected operating system.  The "
12453 "product name is generally some freeform string which can be displayed to the "
12454 "user, but should not be parsed by programs."
12455 msgstr ""
12456
12457 # type: textblock
12458 #. type: textblock
12459 #: ../src/guestfs-actions.pod:2993 ../fish/guestfish-actions.pod:2048
12460 msgid ""
12461 "If the product name could not be determined, then the string C<unknown> is "
12462 "returned."
12463 msgstr ""
12464
12465 #. type: =head2
12466 #: ../src/guestfs-actions.pod:3003
12467 msgid "guestfs_inspect_get_product_variant"
12468 msgstr ""
12469
12470 #. type: verbatim
12471 #: ../src/guestfs-actions.pod:3005
12472 #, no-wrap
12473 msgid ""
12474 " char *\n"
12475 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
12476 "                                      const char *root);\n"
12477 "\n"
12478 msgstr ""
12479
12480 #. type: textblock
12481 #: ../src/guestfs-actions.pod:3009 ../fish/guestfish-actions.pod:2057
12482 msgid "This returns the product variant of the inspected operating system."
12483 msgstr ""
12484
12485 #. type: textblock
12486 #: ../src/guestfs-actions.pod:3012 ../fish/guestfish-actions.pod:2060
12487 msgid ""
12488 "For Windows guests, this returns the contents of the Registry key C<HKLM"
12489 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
12490 "is usually a string such as C<Client> or C<Server> (other values are "
12491 "possible).  This can be used to distinguish consumer and enterprise versions "
12492 "of Windows that have the same version number (for example, Windows 7 and "
12493 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
12494 "the latter is C<Server>)."
12495 msgstr ""
12496
12497 #. type: textblock
12498 #: ../src/guestfs-actions.pod:3021 ../fish/guestfish-actions.pod:2069
12499 msgid ""
12500 "For enterprise Linux guests, in future we intend this to return the product "
12501 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
12502 "implemented at present."
12503 msgstr ""
12504
12505 #. type: textblock
12506 #: ../src/guestfs-actions.pod:3025 ../fish/guestfish-actions.pod:2073
12507 msgid ""
12508 "If the product variant could not be determined, then the string C<unknown> "
12509 "is returned."
12510 msgstr ""
12511
12512 #. type: textblock
12513 #: ../src/guestfs-actions.pod:3028
12514 msgid ""
12515 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
12516 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
12517 msgstr ""
12518
12519 # type: =head2
12520 #. type: =head2
12521 #: ../src/guestfs-actions.pod:3035
12522 msgid "guestfs_inspect_get_roots"
12523 msgstr ""
12524
12525 # type: verbatim
12526 #. type: verbatim
12527 #: ../src/guestfs-actions.pod:3037
12528 #, no-wrap
12529 msgid ""
12530 " char **\n"
12531 " guestfs_inspect_get_roots (guestfs_h *g);\n"
12532 "\n"
12533 msgstr ""
12534
12535 # type: textblock
12536 #. type: textblock
12537 #: ../src/guestfs-actions.pod:3040
12538 msgid ""
12539 "This function is a convenient way to get the list of root devices, as "
12540 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
12541 "the whole inspection process."
12542 msgstr ""
12543
12544 # type: textblock
12545 #. type: textblock
12546 #: ../src/guestfs-actions.pod:3044
12547 msgid ""
12548 "This returns an empty list if either no root devices were found or the "
12549 "caller has not called C<guestfs_inspect_os>."
12550 msgstr ""
12551
12552 # type: textblock
12553 #. type: textblock
12554 #: ../src/guestfs-actions.pod:3053
12555 msgid "(Added in 1.7.3)"
12556 msgstr ""
12557
12558 # type: =head2
12559 #. type: =head2
12560 #: ../src/guestfs-actions.pod:3055
12561 msgid "guestfs_inspect_get_type"
12562 msgstr ""
12563
12564 # type: verbatim
12565 #. type: verbatim
12566 #: ../src/guestfs-actions.pod:3057
12567 #, no-wrap
12568 msgid ""
12569 " char *\n"
12570 " guestfs_inspect_get_type (guestfs_h *g,\n"
12571 "                           const char *root);\n"
12572 "\n"
12573 msgstr ""
12574
12575 # type: textblock
12576 #. type: textblock
12577 #: ../src/guestfs-actions.pod:3061 ../fish/guestfish-actions.pod:2097
12578 msgid ""
12579 "This returns the type of the inspected operating system.  Currently defined "
12580 "types are:"
12581 msgstr ""
12582
12583 # type: =item
12584 #. type: =item
12585 #: ../src/guestfs-actions.pod:3066 ../fish/guestfish-actions.pod:2102
12586 msgid "\"linux\""
12587 msgstr ""
12588
12589 # type: textblock
12590 #. type: textblock
12591 #: ../src/guestfs-actions.pod:3068 ../fish/guestfish-actions.pod:2104
12592 msgid "Any Linux-based operating system."
12593 msgstr ""
12594
12595 # type: textblock
12596 #. type: textblock
12597 #: ../src/guestfs-actions.pod:3072 ../fish/guestfish-actions.pod:2108
12598 msgid "Any Microsoft Windows operating system."
12599 msgstr ""
12600
12601 # type: =item
12602 #. type: =item
12603 #: ../src/guestfs-actions.pod:3074 ../fish/guestfish-actions.pod:2110
12604 msgid "\"freebsd\""
12605 msgstr ""
12606
12607 # type: textblock
12608 #. type: textblock
12609 #: ../src/guestfs-actions.pod:3076 ../fish/guestfish-actions.pod:2112
12610 msgid "FreeBSD."
12611 msgstr ""
12612
12613 # type: textblock
12614 #. type: textblock
12615 #: ../src/guestfs-actions.pod:3080 ../fish/guestfish-actions.pod:2116
12616 msgid "The operating system type could not be determined."
12617 msgstr ""
12618
12619 #. type: =head2
12620 #: ../src/guestfs-actions.pod:3094
12621 msgid "guestfs_inspect_get_windows_current_control_set"
12622 msgstr ""
12623
12624 #. type: verbatim
12625 #: ../src/guestfs-actions.pod:3096
12626 #, no-wrap
12627 msgid ""
12628 " char *\n"
12629 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
12630 "                                                  const char *root);\n"
12631 "\n"
12632 msgstr ""
12633
12634 #. type: textblock
12635 #: ../src/guestfs-actions.pod:3100 ../fish/guestfish-actions.pod:2129
12636 msgid ""
12637 "This returns the Windows CurrentControlSet of the inspected guest.  The "
12638 "CurrentControlSet is a registry key name such as C<ControlSet001>."
12639 msgstr ""
12640
12641 #. type: textblock
12642 #: ../src/guestfs-actions.pod:3103 ../fish/guestfish-actions.pod:2132
12643 msgid ""
12644 "This call assumes that the guest is Windows and that the Registry could be "
12645 "examined by inspection.  If this is not the case then an error is returned."
12646 msgstr ""
12647
12648 # type: =head2
12649 #. type: =head2
12650 #: ../src/guestfs-actions.pod:3112
12651 msgid "guestfs_inspect_get_windows_systemroot"
12652 msgstr ""
12653
12654 # type: verbatim
12655 #. type: verbatim
12656 #: ../src/guestfs-actions.pod:3114
12657 #, no-wrap
12658 msgid ""
12659 " char *\n"
12660 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
12661 "                                         const char *root);\n"
12662 "\n"
12663 msgstr ""
12664
12665 # type: textblock
12666 #. type: textblock
12667 #: ../src/guestfs-actions.pod:3118 ../fish/guestfish-actions.pod:2142
12668 msgid ""
12669 "This returns the Windows systemroot of the inspected guest.  The systemroot "
12670 "is a directory path such as C</WINDOWS>."
12671 msgstr ""
12672
12673 # type: textblock
12674 #. type: textblock
12675 #: ../src/guestfs-actions.pod:3121 ../fish/guestfish-actions.pod:2145
12676 msgid ""
12677 "This call assumes that the guest is Windows and that the systemroot could be "
12678 "determined by inspection.  If this is not the case then an error is returned."
12679 msgstr ""
12680
12681 # type: textblock
12682 #. type: textblock
12683 #: ../src/guestfs-actions.pod:3130
12684 msgid "(Added in 1.5.25)"
12685 msgstr ""
12686
12687 #. type: =head2
12688 #: ../src/guestfs-actions.pod:3132
12689 msgid "guestfs_inspect_is_live"
12690 msgstr ""
12691
12692 #. type: verbatim
12693 #: ../src/guestfs-actions.pod:3134
12694 #, no-wrap
12695 msgid ""
12696 " int\n"
12697 " guestfs_inspect_is_live (guestfs_h *g,\n"
12698 "                          const char *root);\n"
12699 "\n"
12700 msgstr ""
12701
12702 #. type: textblock
12703 #: ../src/guestfs-actions.pod:3138
12704 msgid ""
12705 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12706 "disk), then this returns true if a live image was detected on the disk."
12707 msgstr ""
12708
12709 #. type: =head2
12710 #: ../src/guestfs-actions.pod:3146
12711 msgid "guestfs_inspect_is_multipart"
12712 msgstr ""
12713
12714 #. type: verbatim
12715 #: ../src/guestfs-actions.pod:3148
12716 #, no-wrap
12717 msgid ""
12718 " int\n"
12719 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
12720 "                               const char *root);\n"
12721 "\n"
12722 msgstr ""
12723
12724 #. type: textblock
12725 #: ../src/guestfs-actions.pod:3152
12726 msgid ""
12727 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12728 "disk), then this returns true if the disk is part of a set."
12729 msgstr ""
12730
12731 #. type: =head2
12732 #: ../src/guestfs-actions.pod:3160
12733 msgid "guestfs_inspect_is_netinst"
12734 msgstr ""
12735
12736 #. type: verbatim
12737 #: ../src/guestfs-actions.pod:3162
12738 #, no-wrap
12739 msgid ""
12740 " int\n"
12741 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
12742 "                             const char *root);\n"
12743 "\n"
12744 msgstr ""
12745
12746 #. type: textblock
12747 #: ../src/guestfs-actions.pod:3166
12748 msgid ""
12749 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12750 "disk), then this returns true if the disk is a network installer, ie. not a "
12751 "self-contained install CD but one which is likely to require network access "
12752 "to complete the install."
12753 msgstr ""
12754
12755 # type: =head2
12756 #. type: =head2
12757 #: ../src/guestfs-actions.pod:3176
12758 msgid "guestfs_inspect_list_applications"
12759 msgstr ""
12760
12761 # type: verbatim
12762 #. type: verbatim
12763 #: ../src/guestfs-actions.pod:3178
12764 #, no-wrap
12765 msgid ""
12766 " struct guestfs_application_list *\n"
12767 " guestfs_inspect_list_applications (guestfs_h *g,\n"
12768 "                                    const char *root);\n"
12769 "\n"
12770 msgstr ""
12771
12772 # type: textblock
12773 #. type: textblock
12774 #: ../src/guestfs-actions.pod:3182 ../fish/guestfish-actions.pod:2187
12775 msgid "Return the list of applications installed in the operating system."
12776 msgstr ""
12777
12778 # type: textblock
12779 #. type: textblock
12780 #: ../src/guestfs-actions.pod:3184
12781 msgid ""
12782 "I<Note:> This call works differently from other parts of the inspection "
12783 "API.  You have to call C<guestfs_inspect_os>, then "
12784 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
12785 "this.  Listing applications is a significantly more difficult operation "
12786 "which requires access to the full filesystem.  Also note that unlike the "
12787 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
12788 "the libguestfs handle, this call actually reads parts of the mounted "
12789 "filesystems during the call."
12790 msgstr ""
12791
12792 # type: textblock
12793 #. type: textblock
12794 #: ../src/guestfs-actions.pod:3194 ../fish/guestfish-actions.pod:2199
12795 msgid ""
12796 "This returns an empty list if the inspection code was not able to determine "
12797 "the list of applications."
12798 msgstr ""
12799
12800 # type: textblock
12801 #. type: textblock
12802 #: ../src/guestfs-actions.pod:3197 ../fish/guestfish-actions.pod:2202
12803 msgid "The application structure contains the following fields:"
12804 msgstr ""
12805
12806 # type: =item
12807 #. type: =item
12808 #: ../src/guestfs-actions.pod:3201 ../fish/guestfish-actions.pod:2206
12809 msgid "C<app_name>"
12810 msgstr ""
12811
12812 # type: textblock
12813 #. type: textblock
12814 #: ../src/guestfs-actions.pod:3203 ../fish/guestfish-actions.pod:2208
12815 msgid ""
12816 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
12817 "guests, this is the package name."
12818 msgstr ""
12819
12820 # type: =item
12821 #. type: =item
12822 #: ../src/guestfs-actions.pod:3206 ../fish/guestfish-actions.pod:2211
12823 msgid "C<app_display_name>"
12824 msgstr ""
12825
12826 # type: textblock
12827 #. type: textblock
12828 #: ../src/guestfs-actions.pod:3208 ../fish/guestfish-actions.pod:2213
12829 msgid ""
12830 "The display name of the application, sometimes localized to the install "
12831 "language of the guest operating system."
12832 msgstr ""
12833
12834 # type: textblock
12835 #. type: textblock
12836 #: ../src/guestfs-actions.pod:3211 ../fish/guestfish-actions.pod:2216
12837 msgid ""
12838 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
12839 "to display something can use C<app_name> instead."
12840 msgstr ""
12841
12842 # type: =item
12843 #. type: =item
12844 #: ../src/guestfs-actions.pod:3214 ../fish/guestfish-actions.pod:2219
12845 msgid "C<app_epoch>"
12846 msgstr ""
12847
12848 # type: textblock
12849 #. type: textblock
12850 #: ../src/guestfs-actions.pod:3216 ../fish/guestfish-actions.pod:2221
12851 msgid ""
12852 "For package managers which use epochs, this contains the epoch of the "
12853 "package (an integer).  If unavailable, this is returned as C<0>."
12854 msgstr ""
12855
12856 # type: =item
12857 #. type: =item
12858 #: ../src/guestfs-actions.pod:3219 ../fish/guestfish-actions.pod:2224
12859 msgid "C<app_version>"
12860 msgstr ""
12861
12862 # type: textblock
12863 #. type: textblock
12864 #: ../src/guestfs-actions.pod:3221 ../fish/guestfish-actions.pod:2226
12865 msgid ""
12866 "The version string of the application or package.  If unavailable this is "
12867 "returned as an empty string C<\"\">."
12868 msgstr ""
12869
12870 # type: =item
12871 #. type: =item
12872 #: ../src/guestfs-actions.pod:3224 ../fish/guestfish-actions.pod:2229
12873 msgid "C<app_release>"
12874 msgstr ""
12875
12876 # type: textblock
12877 #. type: textblock
12878 #: ../src/guestfs-actions.pod:3226 ../fish/guestfish-actions.pod:2231
12879 msgid ""
12880 "The release string of the application or package, for package managers that "
12881 "use this.  If unavailable this is returned as an empty string C<\"\">."
12882 msgstr ""
12883
12884 # type: =item
12885 #. type: =item
12886 #: ../src/guestfs-actions.pod:3230 ../fish/guestfish-actions.pod:2235
12887 msgid "C<app_install_path>"
12888 msgstr ""
12889
12890 # type: textblock
12891 #. type: textblock
12892 #: ../src/guestfs-actions.pod:3232 ../fish/guestfish-actions.pod:2237
12893 msgid ""
12894 "The installation path of the application (on operating systems such as "
12895 "Windows which use installation paths).  This path is in the format used by "
12896 "the guest operating system, it is not a libguestfs path."
12897 msgstr ""
12898
12899 # type: textblock
12900 #. type: textblock
12901 #: ../src/guestfs-actions.pod:3237 ../fish/guestfish-actions.pod:2242
12902 msgid "If unavailable this is returned as an empty string C<\"\">."
12903 msgstr ""
12904
12905 # type: =item
12906 #. type: =item
12907 #: ../src/guestfs-actions.pod:3239 ../fish/guestfish-actions.pod:2244
12908 msgid "C<app_trans_path>"
12909 msgstr ""
12910
12911 # type: textblock
12912 #. type: textblock
12913 #: ../src/guestfs-actions.pod:3241 ../fish/guestfish-actions.pod:2246
12914 msgid ""
12915 "The install path translated into a libguestfs path.  If unavailable this is "
12916 "returned as an empty string C<\"\">."
12917 msgstr ""
12918
12919 # type: =item
12920 #. type: =item
12921 #: ../src/guestfs-actions.pod:3244 ../fish/guestfish-actions.pod:2249
12922 msgid "C<app_publisher>"
12923 msgstr ""
12924
12925 # type: textblock
12926 #. type: textblock
12927 #: ../src/guestfs-actions.pod:3246 ../fish/guestfish-actions.pod:2251
12928 msgid ""
12929 "The name of the publisher of the application, for package managers that use "
12930 "this.  If unavailable this is returned as an empty string C<\"\">."
12931 msgstr ""
12932
12933 # type: =item
12934 #. type: =item
12935 #: ../src/guestfs-actions.pod:3250 ../fish/guestfish-actions.pod:2255
12936 msgid "C<app_url>"
12937 msgstr ""
12938
12939 # type: textblock
12940 #. type: textblock
12941 #: ../src/guestfs-actions.pod:3252 ../fish/guestfish-actions.pod:2257
12942 msgid ""
12943 "The URL (eg. upstream URL) of the application.  If unavailable this is "
12944 "returned as an empty string C<\"\">."
12945 msgstr ""
12946
12947 # type: =item
12948 #. type: =item
12949 #: ../src/guestfs-actions.pod:3255 ../fish/guestfish-actions.pod:2260
12950 msgid "C<app_source_package>"
12951 msgstr ""
12952
12953 # type: textblock
12954 #. type: textblock
12955 #: ../src/guestfs-actions.pod:3257 ../fish/guestfish-actions.pod:2262
12956 msgid ""
12957 "For packaging systems which support this, the name of the source package.  "
12958 "If unavailable this is returned as an empty string C<\"\">."
12959 msgstr ""
12960
12961 # type: =item
12962 #. type: =item
12963 #: ../src/guestfs-actions.pod:3260 ../fish/guestfish-actions.pod:2265
12964 msgid "C<app_summary>"
12965 msgstr ""
12966
12967 # type: textblock
12968 #. type: textblock
12969 #: ../src/guestfs-actions.pod:3262 ../fish/guestfish-actions.pod:2267
12970 msgid ""
12971 "A short (usually one line) description of the application or package.  If "
12972 "unavailable this is returned as an empty string C<\"\">."
12973 msgstr ""
12974
12975 # type: =item
12976 #. type: =item
12977 #: ../src/guestfs-actions.pod:3265 ../fish/guestfish-actions.pod:2270
12978 msgid "C<app_description>"
12979 msgstr ""
12980
12981 # type: textblock
12982 #. type: textblock
12983 #: ../src/guestfs-actions.pod:3267 ../fish/guestfish-actions.pod:2272
12984 msgid ""
12985 "A longer description of the application or package.  If unavailable this is "
12986 "returned as an empty string C<\"\">."
12987 msgstr ""
12988
12989 # type: textblock
12990 #. type: textblock
12991 #: ../src/guestfs-actions.pod:3274
12992 msgid ""
12993 "This function returns a C<struct guestfs_application_list *>, or NULL if "
12994 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
12995 "after use>."
12996 msgstr ""
12997
12998 # type: textblock
12999 #. type: textblock
13000 #: ../src/guestfs-actions.pod:3278
13001 msgid "(Added in 1.7.8)"
13002 msgstr ""
13003
13004 # type: =head2
13005 #. type: =head2
13006 #: ../src/guestfs-actions.pod:3280
13007 msgid "guestfs_inspect_os"
13008 msgstr ""
13009
13010 # type: verbatim
13011 #. type: verbatim
13012 #: ../src/guestfs-actions.pod:3282
13013 #, no-wrap
13014 msgid ""
13015 " char **\n"
13016 " guestfs_inspect_os (guestfs_h *g);\n"
13017 "\n"
13018 msgstr ""
13019
13020 # type: textblock
13021 #. type: textblock
13022 #: ../src/guestfs-actions.pod:3285 ../fish/guestfish-actions.pod:2283
13023 msgid ""
13024 "This function uses other libguestfs functions and certain heuristics to "
13025 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
13026 "for operating systems."
13027 msgstr ""
13028
13029 # type: textblock
13030 #. type: textblock
13031 #: ../src/guestfs-actions.pod:3289 ../fish/guestfish-actions.pod:2287
13032 msgid "The list returned is empty if no operating systems were found."
13033 msgstr ""
13034
13035 # type: textblock
13036 #. type: textblock
13037 #: ../src/guestfs-actions.pod:3291 ../fish/guestfish-actions.pod:2289
13038 msgid ""
13039 "If one operating system was found, then this returns a list with a single "
13040 "element, which is the name of the root filesystem of this operating system.  "
13041 "It is also possible for this function to return a list containing more than "
13042 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
13043 "element being the root filesystem of one of the operating systems."
13044 msgstr ""
13045
13046 # type: textblock
13047 #. type: textblock
13048 #: ../src/guestfs-actions.pod:3298
13049 msgid ""
13050 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
13051 "functions in order to query further information about each operating system, "
13052 "such as the name and version."
13053 msgstr ""
13054
13055 # type: textblock
13056 #. type: textblock
13057 #: ../src/guestfs-actions.pod:3303
13058 msgid ""
13059 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
13060 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
13061 "the contents.  This should be called with no disks currently mounted.  The "
13062 "function may also use Augeas, so any existing Augeas handle will be closed."
13063 msgstr ""
13064
13065 # type: textblock
13066 #. type: textblock
13067 #: ../src/guestfs-actions.pod:3309 ../fish/guestfish-actions.pod:2307
13068 msgid ""
13069 "This function cannot decrypt encrypted disks.  The caller must do that first "
13070 "(supplying the necessary keys) if the disk is encrypted."
13071 msgstr ""
13072
13073 # type: textblock
13074 #. type: textblock
13075 #: ../src/guestfs-actions.pod:3315 ../src/guestfs-actions.pod:3640
13076 #: ../src/guestfs-actions.pod:3702
13077 msgid "See also C<guestfs_list_filesystems>."
13078 msgstr ""
13079
13080 # type: =head2
13081 #. type: =head2
13082 #: ../src/guestfs-actions.pod:3323
13083 msgid "guestfs_is_blockdev"
13084 msgstr ""
13085
13086 # type: verbatim
13087 #. type: verbatim
13088 #: ../src/guestfs-actions.pod:3325
13089 #, no-wrap
13090 msgid ""
13091 " int\n"
13092 " guestfs_is_blockdev (guestfs_h *g,\n"
13093 "                      const char *path);\n"
13094 "\n"
13095 msgstr ""
13096
13097 # type: textblock
13098 #. type: textblock
13099 #: ../src/guestfs-actions.pod:3329 ../fish/guestfish-actions.pod:2319
13100 msgid ""
13101 "This returns C<true> if and only if there is a block device with the given "
13102 "C<path> name."
13103 msgstr ""
13104
13105 # type: textblock
13106 #. type: textblock
13107 #: ../src/guestfs-actions.pod:3332 ../src/guestfs-actions.pod:3361
13108 #: ../src/guestfs-actions.pod:3391 ../src/guestfs-actions.pod:3406
13109 #: ../src/guestfs-actions.pod:3422 ../src/guestfs-actions.pod:3478
13110 #: ../src/guestfs-actions.pod:3493
13111 msgid "See also C<guestfs_stat>."
13112 msgstr ""
13113
13114 # type: textblock
13115 #. type: textblock
13116 #: ../src/guestfs-actions.pod:3336 ../src/guestfs-actions.pod:3365
13117 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3482
13118 #: ../src/guestfs-actions.pod:3497
13119 msgid "(Added in 1.5.10)"
13120 msgstr ""
13121
13122 # type: =head2
13123 #. type: =head2
13124 #: ../src/guestfs-actions.pod:3338
13125 msgid "guestfs_is_busy"
13126 msgstr ""
13127
13128 # type: verbatim
13129 #. type: verbatim
13130 #: ../src/guestfs-actions.pod:3340
13131 #, no-wrap
13132 msgid ""
13133 " int\n"
13134 " guestfs_is_busy (guestfs_h *g);\n"
13135 "\n"
13136 msgstr ""
13137
13138 # type: textblock
13139 #. type: textblock
13140 #: ../src/guestfs-actions.pod:3343 ../fish/guestfish-actions.pod:2328
13141 msgid ""
13142 "This returns true iff this handle is busy processing a command (in the "
13143 "C<BUSY> state)."
13144 msgstr ""
13145
13146 # type: =head2
13147 #. type: =head2
13148 #: ../src/guestfs-actions.pod:3352
13149 msgid "guestfs_is_chardev"
13150 msgstr ""
13151
13152 # type: verbatim
13153 #. type: verbatim
13154 #: ../src/guestfs-actions.pod:3354
13155 #, no-wrap
13156 msgid ""
13157 " int\n"
13158 " guestfs_is_chardev (guestfs_h *g,\n"
13159 "                     const char *path);\n"
13160 "\n"
13161 msgstr ""
13162
13163 # type: textblock
13164 #. type: textblock
13165 #: ../src/guestfs-actions.pod:3358 ../fish/guestfish-actions.pod:2337
13166 msgid ""
13167 "This returns C<true> if and only if there is a character device with the "
13168 "given C<path> name."
13169 msgstr ""
13170
13171 # type: =head2
13172 #. type: =head2
13173 #: ../src/guestfs-actions.pod:3367
13174 msgid "guestfs_is_config"
13175 msgstr ""
13176
13177 # type: verbatim
13178 #. type: verbatim
13179 #: ../src/guestfs-actions.pod:3369
13180 #, no-wrap
13181 msgid ""
13182 " int\n"
13183 " guestfs_is_config (guestfs_h *g);\n"
13184 "\n"
13185 msgstr ""
13186
13187 # type: textblock
13188 #. type: textblock
13189 #: ../src/guestfs-actions.pod:3372 ../fish/guestfish-actions.pod:2346
13190 msgid ""
13191 "This returns true iff this handle is being configured (in the C<CONFIG> "
13192 "state)."
13193 msgstr ""
13194
13195 # type: =head2
13196 #. type: =head2
13197 #: ../src/guestfs-actions.pod:3381
13198 msgid "guestfs_is_dir"
13199 msgstr ""
13200
13201 # type: verbatim
13202 #. type: verbatim
13203 #: ../src/guestfs-actions.pod:3383
13204 #, no-wrap
13205 msgid ""
13206 " int\n"
13207 " guestfs_is_dir (guestfs_h *g,\n"
13208 "                 const char *path);\n"
13209 "\n"
13210 msgstr ""
13211
13212 # type: textblock
13213 #. type: textblock
13214 #: ../src/guestfs-actions.pod:3387 ../fish/guestfish-actions.pod:2355
13215 msgid ""
13216 "This returns C<true> if and only if there is a directory with the given "
13217 "C<path> name.  Note that it returns false for other objects like files."
13218 msgstr ""
13219
13220 # type: =head2
13221 #. type: =head2
13222 #: ../src/guestfs-actions.pod:3397
13223 msgid "guestfs_is_fifo"
13224 msgstr ""
13225
13226 # type: verbatim
13227 #. type: verbatim
13228 #: ../src/guestfs-actions.pod:3399
13229 #, no-wrap
13230 msgid ""
13231 " int\n"
13232 " guestfs_is_fifo (guestfs_h *g,\n"
13233 "                  const char *path);\n"
13234 "\n"
13235 msgstr ""
13236
13237 # type: textblock
13238 #. type: textblock
13239 #: ../src/guestfs-actions.pod:3403 ../fish/guestfish-actions.pod:2365
13240 msgid ""
13241 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
13242 "given C<path> name."
13243 msgstr ""
13244
13245 # type: =head2
13246 #. type: =head2
13247 #: ../src/guestfs-actions.pod:3412
13248 msgid "guestfs_is_file"
13249 msgstr ""
13250
13251 # type: verbatim
13252 #. type: verbatim
13253 #: ../src/guestfs-actions.pod:3414
13254 #, no-wrap
13255 msgid ""
13256 " int\n"
13257 " guestfs_is_file (guestfs_h *g,\n"
13258 "                  const char *path);\n"
13259 "\n"
13260 msgstr ""
13261
13262 # type: textblock
13263 #. type: textblock
13264 #: ../src/guestfs-actions.pod:3418 ../fish/guestfish-actions.pod:2374
13265 msgid ""
13266 "This returns C<true> if and only if there is a regular file with the given "
13267 "C<path> name.  Note that it returns false for other objects like directories."
13268 msgstr ""
13269
13270 # type: =head2
13271 #. type: =head2
13272 #: ../src/guestfs-actions.pod:3428
13273 msgid "guestfs_is_launching"
13274 msgstr ""
13275
13276 # type: verbatim
13277 #. type: verbatim
13278 #: ../src/guestfs-actions.pod:3430
13279 #, no-wrap
13280 msgid ""
13281 " int\n"
13282 " guestfs_is_launching (guestfs_h *g);\n"
13283 "\n"
13284 msgstr ""
13285
13286 # type: textblock
13287 #. type: textblock
13288 #: ../src/guestfs-actions.pod:3433 ../fish/guestfish-actions.pod:2384
13289 msgid ""
13290 "This returns true iff this handle is launching the subprocess (in the "
13291 "C<LAUNCHING> state)."
13292 msgstr ""
13293
13294 # type: =head2
13295 #. type: =head2
13296 #: ../src/guestfs-actions.pod:3442
13297 msgid "guestfs_is_lv"
13298 msgstr ""
13299
13300 # type: verbatim
13301 #. type: verbatim
13302 #: ../src/guestfs-actions.pod:3444
13303 #, no-wrap
13304 msgid ""
13305 " int\n"
13306 " guestfs_is_lv (guestfs_h *g,\n"
13307 "                const char *device);\n"
13308 "\n"
13309 msgstr ""
13310
13311 # type: textblock
13312 #. type: textblock
13313 #: ../src/guestfs-actions.pod:3448 ../fish/guestfish-actions.pod:2393
13314 msgid ""
13315 "This command tests whether C<device> is a logical volume, and returns true "
13316 "iff this is the case."
13317 msgstr ""
13318
13319 # type: =head2
13320 #. type: =head2
13321 #: ../src/guestfs-actions.pod:3455
13322 msgid "guestfs_is_ready"
13323 msgstr ""
13324
13325 # type: verbatim
13326 #. type: verbatim
13327 #: ../src/guestfs-actions.pod:3457
13328 #, no-wrap
13329 msgid ""
13330 " int\n"
13331 " guestfs_is_ready (guestfs_h *g);\n"
13332 "\n"
13333 msgstr ""
13334
13335 # type: textblock
13336 #. type: textblock
13337 #: ../src/guestfs-actions.pod:3460 ../fish/guestfish-actions.pod:2400
13338 msgid ""
13339 "This returns true iff this handle is ready to accept commands (in the "
13340 "C<READY> state)."
13341 msgstr ""
13342
13343 # type: =head2
13344 #. type: =head2
13345 #: ../src/guestfs-actions.pod:3469
13346 msgid "guestfs_is_socket"
13347 msgstr ""
13348
13349 # type: verbatim
13350 #. type: verbatim
13351 #: ../src/guestfs-actions.pod:3471
13352 #, no-wrap
13353 msgid ""
13354 " int\n"
13355 " guestfs_is_socket (guestfs_h *g,\n"
13356 "                    const char *path);\n"
13357 "\n"
13358 msgstr ""
13359
13360 # type: textblock
13361 #. type: textblock
13362 #: ../src/guestfs-actions.pod:3475 ../fish/guestfish-actions.pod:2409
13363 msgid ""
13364 "This returns C<true> if and only if there is a Unix domain socket with the "
13365 "given C<path> name."
13366 msgstr ""
13367
13368 # type: =head2
13369 #. type: =head2
13370 #: ../src/guestfs-actions.pod:3484
13371 msgid "guestfs_is_symlink"
13372 msgstr ""
13373
13374 # type: verbatim
13375 #. type: verbatim
13376 #: ../src/guestfs-actions.pod:3486
13377 #, no-wrap
13378 msgid ""
13379 " int\n"
13380 " guestfs_is_symlink (guestfs_h *g,\n"
13381 "                     const char *path);\n"
13382 "\n"
13383 msgstr ""
13384
13385 # type: textblock
13386 #. type: textblock
13387 #: ../src/guestfs-actions.pod:3490 ../fish/guestfish-actions.pod:2418
13388 msgid ""
13389 "This returns C<true> if and only if there is a symbolic link with the given "
13390 "C<path> name."
13391 msgstr ""
13392
13393 #. type: =head2
13394 #: ../src/guestfs-actions.pod:3499
13395 msgid "guestfs_is_zero"
13396 msgstr ""
13397
13398 #. type: verbatim
13399 #: ../src/guestfs-actions.pod:3501
13400 #, no-wrap
13401 msgid ""
13402 " int\n"
13403 " guestfs_is_zero (guestfs_h *g,\n"
13404 "                  const char *path);\n"
13405 "\n"
13406 msgstr ""
13407
13408 #. type: textblock
13409 #: ../src/guestfs-actions.pod:3505 ../fish/guestfish-actions.pod:2427
13410 msgid ""
13411 "This returns true iff the file exists and the file is empty or it contains "
13412 "all zero bytes."
13413 msgstr ""
13414
13415 #. type: =head2
13416 #: ../src/guestfs-actions.pod:3510
13417 msgid "guestfs_is_zero_device"
13418 msgstr ""
13419
13420 #. type: verbatim
13421 #: ../src/guestfs-actions.pod:3512
13422 #, no-wrap
13423 msgid ""
13424 " int\n"
13425 " guestfs_is_zero_device (guestfs_h *g,\n"
13426 "                         const char *device);\n"
13427 "\n"
13428 msgstr ""
13429
13430 #. type: textblock
13431 #: ../src/guestfs-actions.pod:3516 ../fish/guestfish-actions.pod:2434
13432 msgid "This returns true iff the device exists and contains all zero bytes."
13433 msgstr ""
13434
13435 #. type: textblock
13436 #: ../src/guestfs-actions.pod:3518 ../fish/guestfish-actions.pod:2436
13437 msgid "Note that for large devices this can take a long time to run."
13438 msgstr ""
13439
13440 # type: =head2
13441 #. type: =head2
13442 #: ../src/guestfs-actions.pod:3522
13443 msgid "guestfs_kill_subprocess"
13444 msgstr ""
13445
13446 # type: verbatim
13447 #. type: verbatim
13448 #: ../src/guestfs-actions.pod:3524
13449 #, no-wrap
13450 msgid ""
13451 " int\n"
13452 " guestfs_kill_subprocess (guestfs_h *g);\n"
13453 "\n"
13454 msgstr ""
13455
13456 # type: textblock
13457 #. type: textblock
13458 #: ../src/guestfs-actions.pod:3527 ../fish/guestfish-actions.pod:2442
13459 msgid "This kills the qemu subprocess.  You should never need to call this."
13460 msgstr ""
13461
13462 # type: =head2
13463 #. type: =head2
13464 #: ../src/guestfs-actions.pod:3533
13465 msgid "guestfs_launch"
13466 msgstr ""
13467
13468 # type: verbatim
13469 #. type: verbatim
13470 #: ../src/guestfs-actions.pod:3535
13471 #, no-wrap
13472 msgid ""
13473 " int\n"
13474 " guestfs_launch (guestfs_h *g);\n"
13475 "\n"
13476 msgstr ""
13477
13478 # type: textblock
13479 #. type: textblock
13480 #: ../src/guestfs-actions.pod:3538 ../fish/guestfish-actions.pod:2450
13481 msgid ""
13482 "Internally libguestfs is implemented by running a virtual machine using "
13483 "L<qemu(1)>."
13484 msgstr ""
13485
13486 # type: textblock
13487 #. type: textblock
13488 #: ../src/guestfs-actions.pod:3541 ../fish/guestfish-actions.pod:2453
13489 msgid ""
13490 "You should call this after configuring the handle (eg. adding drives) but "
13491 "before performing any actions."
13492 msgstr ""
13493
13494 # type: =head2
13495 #. type: =head2
13496 #: ../src/guestfs-actions.pod:3553
13497 msgid "guestfs_lchown"
13498 msgstr ""
13499
13500 # type: verbatim
13501 #. type: verbatim
13502 #: ../src/guestfs-actions.pod:3555
13503 #, no-wrap
13504 msgid ""
13505 " int\n"
13506 " guestfs_lchown (guestfs_h *g,\n"
13507 "                 int owner,\n"
13508 "                 int group,\n"
13509 "                 const char *path);\n"
13510 "\n"
13511 msgstr ""
13512
13513 # type: textblock
13514 #. type: textblock
13515 #: ../src/guestfs-actions.pod:3561
13516 msgid ""
13517 "Change the file owner to C<owner> and group to C<group>.  This is like "
13518 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
13519 "changed, not the target."
13520 msgstr ""
13521
13522 # type: =head2
13523 #. type: =head2
13524 #: ../src/guestfs-actions.pod:3573
13525 msgid "guestfs_lgetxattr"
13526 msgstr ""
13527
13528 # type: verbatim
13529 #. type: verbatim
13530 #: ../src/guestfs-actions.pod:3575
13531 #, no-wrap
13532 msgid ""
13533 " char *\n"
13534 " guestfs_lgetxattr (guestfs_h *g,\n"
13535 "                    const char *path,\n"
13536 "                    const char *name,\n"
13537 "                    size_t *size_r);\n"
13538 "\n"
13539 msgstr ""
13540
13541 # type: textblock
13542 #. type: textblock
13543 #: ../src/guestfs-actions.pod:3581 ../fish/guestfish-actions.pod:2472
13544 msgid ""
13545 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
13546 "is a symlink, then this call returns an extended attribute from the symlink."
13547 msgstr ""
13548
13549 # type: textblock
13550 #. type: textblock
13551 #: ../src/guestfs-actions.pod:3595
13552 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
13553 msgstr ""
13554
13555 # type: =head2
13556 #. type: =head2
13557 #: ../src/guestfs-actions.pod:3603
13558 msgid "guestfs_lgetxattrs"
13559 msgstr ""
13560
13561 # type: verbatim
13562 #. type: verbatim
13563 #: ../src/guestfs-actions.pod:3605
13564 #, no-wrap
13565 msgid ""
13566 " struct guestfs_xattr_list *\n"
13567 " guestfs_lgetxattrs (guestfs_h *g,\n"
13568 "                     const char *path);\n"
13569 "\n"
13570 msgstr ""
13571
13572 # type: textblock
13573 #. type: textblock
13574 #: ../src/guestfs-actions.pod:3609
13575 msgid ""
13576 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
13577 "then it returns the extended attributes of the link itself."
13578 msgstr ""
13579
13580 #. type: =head2
13581 #: ../src/guestfs-actions.pod:3619
13582 msgid "guestfs_list_9p"
13583 msgstr ""
13584
13585 #. type: verbatim
13586 #: ../src/guestfs-actions.pod:3621
13587 #, no-wrap
13588 msgid ""
13589 " char **\n"
13590 " guestfs_list_9p (guestfs_h *g);\n"
13591 "\n"
13592 msgstr ""
13593
13594 #. type: textblock
13595 #: ../src/guestfs-actions.pod:3624 ../fish/guestfish-actions.pod:2500
13596 msgid ""
13597 "List all 9p filesystems attached to the guest.  A list of mount tags is "
13598 "returned."
13599 msgstr ""
13600
13601 # type: =head2
13602 #. type: =head2
13603 #: ../src/guestfs-actions.pod:3631
13604 msgid "guestfs_list_devices"
13605 msgstr ""
13606
13607 # type: verbatim
13608 #. type: verbatim
13609 #: ../src/guestfs-actions.pod:3633
13610 #, no-wrap
13611 msgid ""
13612 " char **\n"
13613 " guestfs_list_devices (guestfs_h *g);\n"
13614 "\n"
13615 msgstr ""
13616
13617 # type: textblock
13618 #. type: textblock
13619 #: ../src/guestfs-actions.pod:3636 ../fish/guestfish-actions.pod:2507
13620 msgid "List all the block devices."
13621 msgstr ""
13622
13623 # type: textblock
13624 #. type: textblock
13625 #: ../src/guestfs-actions.pod:3638 ../fish/guestfish-actions.pod:2509
13626 msgid "The full block device names are returned, eg. C</dev/sda>."
13627 msgstr ""
13628
13629 # type: =head2
13630 #. type: =head2
13631 #: ../src/guestfs-actions.pod:3648
13632 msgid "guestfs_list_filesystems"
13633 msgstr ""
13634
13635 # type: verbatim
13636 #. type: verbatim
13637 #: ../src/guestfs-actions.pod:3650
13638 #, no-wrap
13639 msgid ""
13640 " char **\n"
13641 " guestfs_list_filesystems (guestfs_h *g);\n"
13642 "\n"
13643 msgstr ""
13644
13645 # type: textblock
13646 #. type: textblock
13647 #: ../src/guestfs-actions.pod:3653 ../fish/guestfish-actions.pod:2517
13648 msgid ""
13649 "This inspection command looks for filesystems on partitions, block devices "
13650 "and logical volumes, returning a list of devices containing filesystems and "
13651 "their type."
13652 msgstr ""
13653
13654 # type: textblock
13655 #. type: textblock
13656 #: ../src/guestfs-actions.pod:3657 ../fish/guestfish-actions.pod:2521
13657 msgid ""
13658 "The return value is a hash, where the keys are the devices containing "
13659 "filesystems, and the values are the filesystem types.  For example:"
13660 msgstr ""
13661
13662 # type: verbatim
13663 #. type: verbatim
13664 #: ../src/guestfs-actions.pod:3661 ../fish/guestfish-actions.pod:2525
13665 #, no-wrap
13666 msgid ""
13667 " \"/dev/sda1\" => \"ntfs\"\n"
13668 " \"/dev/sda2\" => \"ext2\"\n"
13669 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
13670 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
13671 "\n"
13672 msgstr ""
13673
13674 # type: textblock
13675 #. type: textblock
13676 #: ../src/guestfs-actions.pod:3666 ../fish/guestfish-actions.pod:2530
13677 msgid ""
13678 "The value can have the special value \"unknown\", meaning the content of the "
13679 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
13680 msgstr ""
13681
13682 # type: textblock
13683 #. type: textblock
13684 #: ../src/guestfs-actions.pod:3670
13685 msgid ""
13686 "This command runs other libguestfs commands, which might include "
13687 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
13688 "soon after launch and only when nothing is mounted."
13689 msgstr ""
13690
13691 # type: textblock
13692 #. type: textblock
13693 #: ../src/guestfs-actions.pod:3674
13694 msgid ""
13695 "Not all of the filesystems returned will be mountable.  In particular, swap "
13696 "partitions are returned in the list.  Also this command does not check that "
13697 "each filesystem found is valid and mountable, and some filesystems might be "
13698 "mountable but require special options.  Filesystems may not all belong to a "
13699 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
13700 msgstr ""
13701
13702 # type: textblock
13703 #. type: textblock
13704 #: ../src/guestfs-actions.pod:3688 ../src/guestfs-actions.pod:5348
13705 msgid "(Added in 1.5.15)"
13706 msgstr ""
13707
13708 # type: =head2
13709 #. type: =head2
13710 #: ../src/guestfs-actions.pod:3690
13711 msgid "guestfs_list_partitions"
13712 msgstr ""
13713
13714 # type: verbatim
13715 #. type: verbatim
13716 #: ../src/guestfs-actions.pod:3692
13717 #, no-wrap
13718 msgid ""
13719 " char **\n"
13720 " guestfs_list_partitions (guestfs_h *g);\n"
13721 "\n"
13722 msgstr ""
13723
13724 # type: textblock
13725 #. type: textblock
13726 #: ../src/guestfs-actions.pod:3695 ../fish/guestfish-actions.pod:2550
13727 msgid "List all the partitions detected on all block devices."
13728 msgstr ""
13729
13730 # type: textblock
13731 #. type: textblock
13732 #: ../src/guestfs-actions.pod:3697 ../fish/guestfish-actions.pod:2552
13733 msgid "The full partition device names are returned, eg. C</dev/sda1>"
13734 msgstr ""
13735
13736 # type: textblock
13737 #. type: textblock
13738 #: ../src/guestfs-actions.pod:3699
13739 msgid ""
13740 "This does not return logical volumes.  For that you will need to call "
13741 "C<guestfs_lvs>."
13742 msgstr ""
13743
13744 # type: =head2
13745 #. type: =head2
13746 #: ../src/guestfs-actions.pod:3710
13747 msgid "guestfs_ll"
13748 msgstr ""
13749
13750 # type: verbatim
13751 #. type: verbatim
13752 #: ../src/guestfs-actions.pod:3712
13753 #, no-wrap
13754 msgid ""
13755 " char *\n"
13756 " guestfs_ll (guestfs_h *g,\n"
13757 "             const char *directory);\n"
13758 "\n"
13759 msgstr ""
13760
13761 # type: textblock
13762 #. type: textblock
13763 #: ../src/guestfs-actions.pod:3716 ../fish/guestfish-actions.pod:2563
13764 msgid ""
13765 "List the files in C<directory> (relative to the root directory, there is no "
13766 "cwd) in the format of 'ls -la'."
13767 msgstr ""
13768
13769 # type: textblock
13770 #. type: textblock
13771 #: ../src/guestfs-actions.pod:3719 ../fish/guestfish-actions.pod:2566
13772 msgid ""
13773 "This command is mostly useful for interactive sessions.  It is I<not> "
13774 "intended that you try to parse the output string."
13775 msgstr ""
13776
13777 # type: =head2
13778 #. type: =head2
13779 #: ../src/guestfs-actions.pod:3727
13780 msgid "guestfs_ln"
13781 msgstr ""
13782
13783 # type: verbatim
13784 #. type: verbatim
13785 #: ../src/guestfs-actions.pod:3729
13786 #, no-wrap
13787 msgid ""
13788 " int\n"
13789 " guestfs_ln (guestfs_h *g,\n"
13790 "             const char *target,\n"
13791 "             const char *linkname);\n"
13792 "\n"
13793 msgstr ""
13794
13795 # type: textblock
13796 #. type: textblock
13797 #: ../src/guestfs-actions.pod:3734 ../fish/guestfish-actions.pod:2573
13798 msgid "This command creates a hard link using the C<ln> command."
13799 msgstr ""
13800
13801 # type: =head2
13802 #. type: =head2
13803 #: ../src/guestfs-actions.pod:3740
13804 msgid "guestfs_ln_f"
13805 msgstr ""
13806
13807 # type: verbatim
13808 #. type: verbatim
13809 #: ../src/guestfs-actions.pod:3742
13810 #, no-wrap
13811 msgid ""
13812 " int\n"
13813 " guestfs_ln_f (guestfs_h *g,\n"
13814 "               const char *target,\n"
13815 "               const char *linkname);\n"
13816 "\n"
13817 msgstr ""
13818
13819 #. type: textblock
13820 #: ../src/guestfs-actions.pod:3747 ../fish/guestfish-actions.pod:2579
13821 msgid ""
13822 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
13823 "option removes the link (C<linkname>) if it exists already."
13824 msgstr ""
13825
13826 # type: =head2
13827 #. type: =head2
13828 #: ../src/guestfs-actions.pod:3754
13829 msgid "guestfs_ln_s"
13830 msgstr ""
13831
13832 # type: verbatim
13833 #. type: verbatim
13834 #: ../src/guestfs-actions.pod:3756
13835 #, no-wrap
13836 msgid ""
13837 " int\n"
13838 " guestfs_ln_s (guestfs_h *g,\n"
13839 "               const char *target,\n"
13840 "               const char *linkname);\n"
13841 "\n"
13842 msgstr ""
13843
13844 # type: textblock
13845 #. type: textblock
13846 #: ../src/guestfs-actions.pod:3761 ../fish/guestfish-actions.pod:2586
13847 msgid "This command creates a symbolic link using the C<ln -s> command."
13848 msgstr ""
13849
13850 # type: =head2
13851 #. type: =head2
13852 #: ../src/guestfs-actions.pod:3767
13853 msgid "guestfs_ln_sf"
13854 msgstr ""
13855
13856 # type: verbatim
13857 #. type: verbatim
13858 #: ../src/guestfs-actions.pod:3769
13859 #, no-wrap
13860 msgid ""
13861 " int\n"
13862 " guestfs_ln_sf (guestfs_h *g,\n"
13863 "                const char *target,\n"
13864 "                const char *linkname);\n"
13865 "\n"
13866 msgstr ""
13867
13868 #. type: textblock
13869 #: ../src/guestfs-actions.pod:3774 ../fish/guestfish-actions.pod:2592
13870 msgid ""
13871 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
13872 "option removes the link (C<linkname>) if it exists already."
13873 msgstr ""
13874
13875 # type: =head2
13876 #. type: =head2
13877 #: ../src/guestfs-actions.pod:3781
13878 msgid "guestfs_lremovexattr"
13879 msgstr ""
13880
13881 # type: verbatim
13882 #. type: verbatim
13883 #: ../src/guestfs-actions.pod:3783
13884 #, no-wrap
13885 msgid ""
13886 " int\n"
13887 " guestfs_lremovexattr (guestfs_h *g,\n"
13888 "                       const char *xattr,\n"
13889 "                       const char *path);\n"
13890 "\n"
13891 msgstr ""
13892
13893 # type: textblock
13894 #. type: textblock
13895 #: ../src/guestfs-actions.pod:3788
13896 msgid ""
13897 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
13898 "link, then it removes an extended attribute of the link itself."
13899 msgstr ""
13900
13901 # type: =head2
13902 #. type: =head2
13903 #: ../src/guestfs-actions.pod:3796
13904 msgid "guestfs_ls"
13905 msgstr ""
13906
13907 # type: verbatim
13908 #. type: verbatim
13909 #: ../src/guestfs-actions.pod:3798
13910 #, no-wrap
13911 msgid ""
13912 " char **\n"
13913 " guestfs_ls (guestfs_h *g,\n"
13914 "             const char *directory);\n"
13915 "\n"
13916 msgstr ""
13917
13918 # type: textblock
13919 #. type: textblock
13920 #: ../src/guestfs-actions.pod:3802 ../fish/guestfish-actions.pod:2607
13921 msgid ""
13922 "List the files in C<directory> (relative to the root directory, there is no "
13923 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
13924 msgstr ""
13925
13926 # type: textblock
13927 #. type: textblock
13928 #: ../src/guestfs-actions.pod:3806
13929 msgid ""
13930 "This command is mostly useful for interactive sessions.  Programs should "
13931 "probably use C<guestfs_readdir> instead."
13932 msgstr ""
13933
13934 # type: =head2
13935 #. type: =head2
13936 #: ../src/guestfs-actions.pod:3815
13937 msgid "guestfs_lsetxattr"
13938 msgstr ""
13939
13940 # type: verbatim
13941 #. type: verbatim
13942 #: ../src/guestfs-actions.pod:3817
13943 #, no-wrap
13944 msgid ""
13945 " int\n"
13946 " guestfs_lsetxattr (guestfs_h *g,\n"
13947 "                    const char *xattr,\n"
13948 "                    const char *val,\n"
13949 "                    int vallen,\n"
13950 "                    const char *path);\n"
13951 "\n"
13952 msgstr ""
13953
13954 # type: textblock
13955 #. type: textblock
13956 #: ../src/guestfs-actions.pod:3824
13957 msgid ""
13958 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
13959 "then it sets an extended attribute of the link itself."
13960 msgstr ""
13961
13962 # type: =head2
13963 #. type: =head2
13964 #: ../src/guestfs-actions.pod:3832
13965 msgid "guestfs_lstat"
13966 msgstr ""
13967
13968 # type: verbatim
13969 #. type: verbatim
13970 #: ../src/guestfs-actions.pod:3834
13971 #, no-wrap
13972 msgid ""
13973 " struct guestfs_stat *\n"
13974 " guestfs_lstat (guestfs_h *g,\n"
13975 "                const char *path);\n"
13976 "\n"
13977 msgstr ""
13978
13979 # type: textblock
13980 #. type: textblock
13981 #: ../src/guestfs-actions.pod:3838 ../src/guestfs-actions.pod:6479
13982 #: ../fish/guestfish-actions.pod:2626 ../fish/guestfish-actions.pod:4343
13983 msgid "Returns file information for the given C<path>."
13984 msgstr ""
13985
13986 # type: textblock
13987 #. type: textblock
13988 #: ../src/guestfs-actions.pod:3840
13989 msgid ""
13990 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
13991 "link, then the link is stat-ed, not the file it refers to."
13992 msgstr ""
13993
13994 # type: textblock
13995 #. type: textblock
13996 #: ../src/guestfs-actions.pod:3844 ../fish/guestfish-actions.pod:2632
13997 msgid "This is the same as the C<lstat(2)> system call."
13998 msgstr ""
13999
14000 # type: textblock
14001 #. type: textblock
14002 #: ../src/guestfs-actions.pod:3846 ../src/guestfs-actions.pod:6483
14003 msgid ""
14004 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
14005 "error.  I<The caller must call C<guestfs_free_stat> after use>."
14006 msgstr ""
14007
14008 # type: textblock
14009 #. type: textblock
14010 #: ../src/guestfs-actions.pod:3850 ../src/guestfs-actions.pod:6487
14011 #: ../src/guestfs-actions.pod:6505 ../src/guestfs-actions.pod:6886
14012 msgid "(Added in 0.9.2)"
14013 msgstr ""
14014
14015 # type: =head2
14016 #. type: =head2
14017 #: ../src/guestfs-actions.pod:3852
14018 msgid "guestfs_lstatlist"
14019 msgstr ""
14020
14021 # type: verbatim
14022 #. type: verbatim
14023 #: ../src/guestfs-actions.pod:3854
14024 #, no-wrap
14025 msgid ""
14026 " struct guestfs_stat_list *\n"
14027 " guestfs_lstatlist (guestfs_h *g,\n"
14028 "                    const char *path,\n"
14029 "                    char *const *names);\n"
14030 "\n"
14031 msgstr ""
14032
14033 # type: textblock
14034 #. type: textblock
14035 #: ../src/guestfs-actions.pod:3859
14036 msgid ""
14037 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
14038 "files, where all files are in the directory C<path>.  C<names> is the list "
14039 "of files from this directory."
14040 msgstr ""
14041
14042 # type: textblock
14043 #. type: textblock
14044 #: ../src/guestfs-actions.pod:3863 ../fish/guestfish-actions.pod:2642
14045 msgid ""
14046 "On return you get a list of stat structs, with a one-to-one correspondence "
14047 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
14048 "then the C<ino> field of that structure is set to C<-1>."
14049 msgstr ""
14050
14051 # type: textblock
14052 #. type: textblock
14053 #: ../src/guestfs-actions.pod:3868
14054 msgid ""
14055 "This call is intended for programs that want to efficiently list a directory "
14056 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
14057 "for a similarly efficient call for getting extended attributes.  Very long "
14058 "directory listings might cause the protocol message size to be exceeded, "
14059 "causing this call to fail.  The caller must split up such requests into "
14060 "smaller groups of names."
14061 msgstr ""
14062
14063 # type: textblock
14064 #. type: textblock
14065 #: ../src/guestfs-actions.pod:3876
14066 msgid ""
14067 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
14068 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
14069 msgstr ""
14070
14071 # type: =head2
14072 #. type: =head2
14073 #: ../src/guestfs-actions.pod:3882
14074 msgid "guestfs_luks_add_key"
14075 msgstr ""
14076
14077 # type: verbatim
14078 #. type: verbatim
14079 #: ../src/guestfs-actions.pod:3884
14080 #, no-wrap
14081 msgid ""
14082 " int\n"
14083 " guestfs_luks_add_key (guestfs_h *g,\n"
14084 "                       const char *device,\n"
14085 "                       const char *key,\n"
14086 "                       const char *newkey,\n"
14087 "                       int keyslot);\n"
14088 "\n"
14089 msgstr ""
14090
14091 # type: textblock
14092 #. type: textblock
14093 #: ../src/guestfs-actions.pod:3891 ../fish/guestfish-actions.pod:2659
14094 msgid ""
14095 "This command adds a new key on LUKS device C<device>.  C<key> is any "
14096 "existing key, and is used to access the device.  C<newkey> is the new key to "
14097 "add.  C<keyslot> is the key slot that will be replaced."
14098 msgstr ""
14099
14100 # type: textblock
14101 #. type: textblock
14102 #: ../src/guestfs-actions.pod:3896
14103 msgid ""
14104 "Note that if C<keyslot> already contains a key, then this command will "
14105 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
14106 msgstr ""
14107
14108 # type: textblock
14109 #. type: textblock
14110 #: ../src/guestfs-actions.pod:3902 ../src/guestfs-actions.pod:3942
14111 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:3985
14112 #: ../src/guestfs-actions.pod:4017 ../src/guestfs-actions.pod:4036
14113 msgid ""
14114 "This function takes a key or passphrase parameter which could contain "
14115 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
14116 "information."
14117 msgstr ""
14118
14119 # type: textblock
14120 #. type: textblock
14121 #: ../src/guestfs-actions.pod:3906 ../src/guestfs-actions.pod:3946
14122 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:3989
14123 msgid "(Added in 1.5.2)"
14124 msgstr ""
14125
14126 # type: =head2
14127 #. type: =head2
14128 #: ../src/guestfs-actions.pod:3908
14129 msgid "guestfs_luks_close"
14130 msgstr ""
14131
14132 # type: verbatim
14133 #. type: verbatim
14134 #: ../src/guestfs-actions.pod:3910
14135 #, no-wrap
14136 msgid ""
14137 " int\n"
14138 " guestfs_luks_close (guestfs_h *g,\n"
14139 "                     const char *device);\n"
14140 "\n"
14141 msgstr ""
14142
14143 # type: textblock
14144 #. type: textblock
14145 #: ../src/guestfs-actions.pod:3914
14146 msgid ""
14147 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
14148 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
14149 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
14150 "underlying block device."
14151 msgstr ""
14152
14153 # type: textblock
14154 #. type: textblock
14155 #: ../src/guestfs-actions.pod:3922 ../src/guestfs-actions.pod:4021
14156 #: ../src/guestfs-actions.pod:4040 ../src/guestfs-actions.pod:4090
14157 #: ../src/guestfs-actions.pod:4138
14158 msgid "(Added in 1.5.1)"
14159 msgstr ""
14160
14161 # type: =head2
14162 #. type: =head2
14163 #: ../src/guestfs-actions.pod:3924
14164 msgid "guestfs_luks_format"
14165 msgstr ""
14166
14167 # type: verbatim
14168 #. type: verbatim
14169 #: ../src/guestfs-actions.pod:3926
14170 #, no-wrap
14171 msgid ""
14172 " int\n"
14173 " guestfs_luks_format (guestfs_h *g,\n"
14174 "                      const char *device,\n"
14175 "                      const char *key,\n"
14176 "                      int keyslot);\n"
14177 "\n"
14178 msgstr ""
14179
14180 # type: textblock
14181 #. type: textblock
14182 #: ../src/guestfs-actions.pod:3932 ../fish/guestfish-actions.pod:2685
14183 msgid ""
14184 "This command erases existing data on C<device> and formats the device as a "
14185 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
14186 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
14187 msgstr ""
14188
14189 # type: textblock
14190 #. type: textblock
14191 #: ../src/guestfs-actions.pod:3939 ../src/guestfs-actions.pod:3962
14192 #: ../src/guestfs-actions.pod:4102 ../src/guestfs-actions.pod:5099
14193 #: ../src/guestfs-actions.pod:5879 ../src/guestfs-actions.pod:6286
14194 #: ../src/guestfs-actions.pod:6316 ../src/guestfs-actions.pod:6349
14195 #: ../src/guestfs-actions.pod:7531 ../fish/guestfish-actions.pod:2693
14196 #: ../fish/guestfish-actions.pod:2706 ../fish/guestfish-actions.pod:2790
14197 #: ../fish/guestfish-actions.pod:3384 ../fish/guestfish-actions.pod:3904
14198 #: ../fish/guestfish-actions.pod:4214 ../fish/guestfish-actions.pod:4237
14199 #: ../fish/guestfish-actions.pod:4259 ../fish/guestfish-actions.pod:4989
14200 msgid ""
14201 "B<This command is dangerous.  Without careful use you can easily destroy all "
14202 "your data>."
14203 msgstr ""
14204
14205 # type: =head2
14206 #. type: =head2
14207 #: ../src/guestfs-actions.pod:3948
14208 msgid "guestfs_luks_format_cipher"
14209 msgstr ""
14210
14211 # type: verbatim
14212 #. type: verbatim
14213 #: ../src/guestfs-actions.pod:3950
14214 #, no-wrap
14215 msgid ""
14216 " int\n"
14217 " guestfs_luks_format_cipher (guestfs_h *g,\n"
14218 "                             const char *device,\n"
14219 "                             const char *key,\n"
14220 "                             int keyslot,\n"
14221 "                             const char *cipher);\n"
14222 "\n"
14223 msgstr ""
14224
14225 # type: textblock
14226 #. type: textblock
14227 #: ../src/guestfs-actions.pod:3957
14228 msgid ""
14229 "This command is the same as C<guestfs_luks_format> but it also allows you to "
14230 "set the C<cipher> used."
14231 msgstr ""
14232
14233 # type: =head2
14234 #. type: =head2
14235 #: ../src/guestfs-actions.pod:3971
14236 msgid "guestfs_luks_kill_slot"
14237 msgstr ""
14238
14239 # type: verbatim
14240 #. type: verbatim
14241 #: ../src/guestfs-actions.pod:3973
14242 #, no-wrap
14243 msgid ""
14244 " int\n"
14245 " guestfs_luks_kill_slot (guestfs_h *g,\n"
14246 "                         const char *device,\n"
14247 "                         const char *key,\n"
14248 "                         int keyslot);\n"
14249 "\n"
14250 msgstr ""
14251
14252 # type: textblock
14253 #. type: textblock
14254 #: ../src/guestfs-actions.pod:3979 ../fish/guestfish-actions.pod:2713
14255 msgid ""
14256 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
14257 "device C<device>.  C<key> must be one of the I<other> keys."
14258 msgstr ""
14259
14260 # type: =head2
14261 #. type: =head2
14262 #: ../src/guestfs-actions.pod:3991
14263 msgid "guestfs_luks_open"
14264 msgstr ""
14265
14266 # type: verbatim
14267 #. type: verbatim
14268 #: ../src/guestfs-actions.pod:3993
14269 #, no-wrap
14270 msgid ""
14271 " int\n"
14272 " guestfs_luks_open (guestfs_h *g,\n"
14273 "                    const char *device,\n"
14274 "                    const char *key,\n"
14275 "                    const char *mapname);\n"
14276 "\n"
14277 msgstr ""
14278
14279 # type: textblock
14280 #. type: textblock
14281 #: ../src/guestfs-actions.pod:3999 ../fish/guestfish-actions.pod:2724
14282 msgid ""
14283 "This command opens a block device which has been encrypted according to the "
14284 "Linux Unified Key Setup (LUKS) standard."
14285 msgstr ""
14286
14287 # type: textblock
14288 #. type: textblock
14289 #: ../src/guestfs-actions.pod:4002 ../fish/guestfish-actions.pod:2727
14290 msgid "C<device> is the encrypted block device or partition."
14291 msgstr ""
14292
14293 # type: textblock
14294 #. type: textblock
14295 #: ../src/guestfs-actions.pod:4004 ../fish/guestfish-actions.pod:2729
14296 msgid ""
14297 "The caller must supply one of the keys associated with the LUKS block "
14298 "device, in the C<key> parameter."
14299 msgstr ""
14300
14301 # type: textblock
14302 #. type: textblock
14303 #: ../src/guestfs-actions.pod:4007 ../fish/guestfish-actions.pod:2732
14304 msgid ""
14305 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
14306 "writes to this block device are decrypted from and encrypted to the "
14307 "underlying C<device> respectively."
14308 msgstr ""
14309
14310 # type: textblock
14311 #. type: textblock
14312 #: ../src/guestfs-actions.pod:4011
14313 msgid ""
14314 "If this block device contains LVM volume groups, then calling "
14315 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
14316 "visible."
14317 msgstr ""
14318
14319 # type: =head2
14320 #. type: =head2
14321 #: ../src/guestfs-actions.pod:4023
14322 msgid "guestfs_luks_open_ro"
14323 msgstr ""
14324
14325 # type: verbatim
14326 #. type: verbatim
14327 #: ../src/guestfs-actions.pod:4025
14328 #, no-wrap
14329 msgid ""
14330 " int\n"
14331 " guestfs_luks_open_ro (guestfs_h *g,\n"
14332 "                       const char *device,\n"
14333 "                       const char *key,\n"
14334 "                       const char *mapname);\n"
14335 "\n"
14336 msgstr ""
14337
14338 # type: textblock
14339 #. type: textblock
14340 #: ../src/guestfs-actions.pod:4031
14341 msgid ""
14342 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
14343 "created."
14344 msgstr ""
14345
14346 # type: =head2
14347 #. type: =head2
14348 #: ../src/guestfs-actions.pod:4042
14349 msgid "guestfs_lvcreate"
14350 msgstr ""
14351
14352 # type: verbatim
14353 #. type: verbatim
14354 #: ../src/guestfs-actions.pod:4044
14355 #, no-wrap
14356 msgid ""
14357 " int\n"
14358 " guestfs_lvcreate (guestfs_h *g,\n"
14359 "                   const char *logvol,\n"
14360 "                   const char *volgroup,\n"
14361 "                   int mbytes);\n"
14362 "\n"
14363 msgstr ""
14364
14365 # type: textblock
14366 #. type: textblock
14367 #: ../src/guestfs-actions.pod:4050 ../fish/guestfish-actions.pod:2757
14368 msgid ""
14369 "This creates an LVM logical volume called C<logvol> on the volume group "
14370 "C<volgroup>, with C<size> megabytes."
14371 msgstr ""
14372
14373 # type: =head2
14374 #. type: =head2
14375 #: ../src/guestfs-actions.pod:4057
14376 msgid "guestfs_lvm_canonical_lv_name"
14377 msgstr ""
14378
14379 # type: verbatim
14380 #. type: verbatim
14381 #: ../src/guestfs-actions.pod:4059
14382 #, no-wrap
14383 msgid ""
14384 " char *\n"
14385 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
14386 "                                const char *lvname);\n"
14387 "\n"
14388 msgstr ""
14389
14390 # type: textblock
14391 #. type: textblock
14392 #: ../src/guestfs-actions.pod:4063 ../fish/guestfish-actions.pod:2764
14393 msgid ""
14394 "This converts alternative naming schemes for LVs that you might find to the "
14395 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
14396 "LV>."
14397 msgstr ""
14398
14399 # type: textblock
14400 #. type: textblock
14401 #: ../src/guestfs-actions.pod:4067 ../fish/guestfish-actions.pod:2768
14402 msgid ""
14403 "This command returns an error if the C<lvname> parameter does not refer to a "
14404 "logical volume."
14405 msgstr ""
14406
14407 # type: textblock
14408 #. type: textblock
14409 #: ../src/guestfs-actions.pod:4070
14410 msgid "See also C<guestfs_is_lv>."
14411 msgstr ""
14412
14413 # type: textblock
14414 #. type: textblock
14415 #: ../src/guestfs-actions.pod:4075
14416 msgid "(Added in 1.5.24)"
14417 msgstr ""
14418
14419 # type: =head2
14420 #. type: =head2
14421 #: ../src/guestfs-actions.pod:4077
14422 msgid "guestfs_lvm_clear_filter"
14423 msgstr ""
14424
14425 # type: verbatim
14426 #. type: verbatim
14427 #: ../src/guestfs-actions.pod:4079
14428 #, no-wrap
14429 msgid ""
14430 " int\n"
14431 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
14432 "\n"
14433 msgstr ""
14434
14435 # type: textblock
14436 #. type: textblock
14437 #: ../src/guestfs-actions.pod:4082
14438 msgid ""
14439 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
14440 "see every block device."
14441 msgstr ""
14442
14443 # type: textblock
14444 #. type: textblock
14445 #: ../src/guestfs-actions.pod:4085 ../src/guestfs-actions.pod:4127
14446 #: ../fish/guestfish-actions.pod:2780 ../fish/guestfish-actions.pod:2811
14447 msgid ""
14448 "This command also clears the LVM cache and performs a volume group scan."
14449 msgstr ""
14450
14451 # type: =head2
14452 #. type: =head2
14453 #: ../src/guestfs-actions.pod:4092
14454 msgid "guestfs_lvm_remove_all"
14455 msgstr ""
14456
14457 # type: verbatim
14458 #. type: verbatim
14459 #: ../src/guestfs-actions.pod:4094
14460 #, no-wrap
14461 msgid ""
14462 " int\n"
14463 " guestfs_lvm_remove_all (guestfs_h *g);\n"
14464 "\n"
14465 msgstr ""
14466
14467 # type: textblock
14468 #. type: textblock
14469 #: ../src/guestfs-actions.pod:4097 ../fish/guestfish-actions.pod:2787
14470 msgid ""
14471 "This command removes all LVM logical volumes, volume groups and physical "
14472 "volumes."
14473 msgstr ""
14474
14475 # type: =head2
14476 #. type: =head2
14477 #: ../src/guestfs-actions.pod:4107
14478 msgid "guestfs_lvm_set_filter"
14479 msgstr ""
14480
14481 # type: verbatim
14482 #. type: verbatim
14483 #: ../src/guestfs-actions.pod:4109
14484 #, no-wrap
14485 msgid ""
14486 " int\n"
14487 " guestfs_lvm_set_filter (guestfs_h *g,\n"
14488 "                         char *const *devices);\n"
14489 "\n"
14490 msgstr ""
14491
14492 # type: textblock
14493 #. type: textblock
14494 #: ../src/guestfs-actions.pod:4113 ../fish/guestfish-actions.pod:2797
14495 msgid ""
14496 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
14497 "block devices in the list C<devices>, and will ignore all other attached "
14498 "block devices."
14499 msgstr ""
14500
14501 # type: textblock
14502 #. type: textblock
14503 #: ../src/guestfs-actions.pod:4117 ../fish/guestfish-actions.pod:2801
14504 msgid ""
14505 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
14506 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
14507 "there are two types of duplication possible: either cloned PVs/VGs which "
14508 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
14509 "same name.  In normal operation you cannot create this situation, but you "
14510 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
14511 "inside the LVM metadata."
14512 msgstr ""
14513
14514 # type: textblock
14515 #. type: textblock
14516 #: ../src/guestfs-actions.pod:4130 ../fish/guestfish-actions.pod:2814
14517 msgid "You can filter whole block devices or individual partitions."
14518 msgstr ""
14519
14520 # type: textblock
14521 #. type: textblock
14522 #: ../src/guestfs-actions.pod:4132 ../fish/guestfish-actions.pod:2816
14523 msgid ""
14524 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
14525 "filesystem), even if you are not filtering out that VG."
14526 msgstr ""
14527
14528 # type: =head2
14529 #. type: =head2
14530 #: ../src/guestfs-actions.pod:4140
14531 msgid "guestfs_lvremove"
14532 msgstr ""
14533
14534 # type: verbatim
14535 #. type: verbatim
14536 #: ../src/guestfs-actions.pod:4142
14537 #, no-wrap
14538 msgid ""
14539 " int\n"
14540 " guestfs_lvremove (guestfs_h *g,\n"
14541 "                   const char *device);\n"
14542 "\n"
14543 msgstr ""
14544
14545 # type: textblock
14546 #. type: textblock
14547 #: ../src/guestfs-actions.pod:4146 ../fish/guestfish-actions.pod:2824
14548 msgid ""
14549 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
14550 "LV, such as C</dev/VG/LV>."
14551 msgstr ""
14552
14553 # type: textblock
14554 #. type: textblock
14555 #: ../src/guestfs-actions.pod:4149 ../fish/guestfish-actions.pod:2827
14556 msgid ""
14557 "You can also remove all LVs in a volume group by specifying the VG name, C</"
14558 "dev/VG>."
14559 msgstr ""
14560
14561 # type: textblock
14562 #. type: textblock
14563 #: ../src/guestfs-actions.pod:4154 ../src/guestfs-actions.pod:5445
14564 #: ../src/guestfs-actions.pod:7262
14565 msgid "(Added in 1.0.13)"
14566 msgstr ""
14567
14568 # type: =head2
14569 #. type: =head2
14570 #: ../src/guestfs-actions.pod:4156
14571 msgid "guestfs_lvrename"
14572 msgstr ""
14573
14574 # type: verbatim
14575 #. type: verbatim
14576 #: ../src/guestfs-actions.pod:4158
14577 #, no-wrap
14578 msgid ""
14579 " int\n"
14580 " guestfs_lvrename (guestfs_h *g,\n"
14581 "                   const char *logvol,\n"
14582 "                   const char *newlogvol);\n"
14583 "\n"
14584 msgstr ""
14585
14586 # type: textblock
14587 #. type: textblock
14588 #: ../src/guestfs-actions.pod:4163 ../fish/guestfish-actions.pod:2834
14589 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
14590 msgstr ""
14591
14592 # type: textblock
14593 #. type: textblock
14594 #: ../src/guestfs-actions.pod:4167 ../src/guestfs-actions.pod:7275
14595 msgid "(Added in 1.0.83)"
14596 msgstr ""
14597
14598 # type: =head2
14599 #. type: =head2
14600 #: ../src/guestfs-actions.pod:4169
14601 msgid "guestfs_lvresize"
14602 msgstr ""
14603
14604 # type: verbatim
14605 #. type: verbatim
14606 #: ../src/guestfs-actions.pod:4171
14607 #, no-wrap
14608 msgid ""
14609 " int\n"
14610 " guestfs_lvresize (guestfs_h *g,\n"
14611 "                   const char *device,\n"
14612 "                   int mbytes);\n"
14613 "\n"
14614 msgstr ""
14615
14616 # type: textblock
14617 #. type: textblock
14618 #: ../src/guestfs-actions.pod:4176 ../fish/guestfish-actions.pod:2840
14619 msgid ""
14620 "This resizes (expands or shrinks) an existing LVM logical volume to "
14621 "C<mbytes>.  When reducing, data in the reduced part is lost."
14622 msgstr ""
14623
14624 # type: =head2
14625 #. type: =head2
14626 #: ../src/guestfs-actions.pod:4184
14627 msgid "guestfs_lvresize_free"
14628 msgstr ""
14629
14630 # type: verbatim
14631 #. type: verbatim
14632 #: ../src/guestfs-actions.pod:4186
14633 #, no-wrap
14634 msgid ""
14635 " int\n"
14636 " guestfs_lvresize_free (guestfs_h *g,\n"
14637 "                        const char *lv,\n"
14638 "                        int percent);\n"
14639 "\n"
14640 msgstr ""
14641
14642 # type: textblock
14643 #. type: textblock
14644 #: ../src/guestfs-actions.pod:4191 ../fish/guestfish-actions.pod:2848
14645 msgid ""
14646 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
14647 "remaining free space in the volume group.  Commonly you would call this with "
14648 "pc = 100 which expands the logical volume as much as possible, using all "
14649 "remaining free space in the volume group."
14650 msgstr ""
14651
14652 # type: textblock
14653 #. type: textblock
14654 #: ../src/guestfs-actions.pod:4199
14655 msgid "(Added in 1.3.3)"
14656 msgstr ""
14657
14658 # type: =head2
14659 #. type: =head2
14660 #: ../src/guestfs-actions.pod:4201
14661 msgid "guestfs_lvs"
14662 msgstr ""
14663
14664 # type: verbatim
14665 #. type: verbatim
14666 #: ../src/guestfs-actions.pod:4203
14667 #, no-wrap
14668 msgid ""
14669 " char **\n"
14670 " guestfs_lvs (guestfs_h *g);\n"
14671 "\n"
14672 msgstr ""
14673
14674 # type: textblock
14675 #. type: textblock
14676 #: ../src/guestfs-actions.pod:4206 ../fish/guestfish-actions.pod:2858
14677 msgid ""
14678 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
14679 "(8)> command."
14680 msgstr ""
14681
14682 # type: textblock
14683 #. type: textblock
14684 #: ../src/guestfs-actions.pod:4209 ../fish/guestfish-actions.pod:2861
14685 msgid ""
14686 "This returns a list of the logical volume device names (eg. C</dev/"
14687 "VolGroup00/LogVol00>)."
14688 msgstr ""
14689
14690 # type: textblock
14691 #. type: textblock
14692 #: ../src/guestfs-actions.pod:4212
14693 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
14694 msgstr ""
14695
14696 # type: =head2
14697 #. type: =head2
14698 #: ../src/guestfs-actions.pod:4220
14699 msgid "guestfs_lvs_full"
14700 msgstr ""
14701
14702 # type: verbatim
14703 #. type: verbatim
14704 #: ../src/guestfs-actions.pod:4222
14705 #, no-wrap
14706 msgid ""
14707 " struct guestfs_lvm_lv_list *\n"
14708 " guestfs_lvs_full (guestfs_h *g);\n"
14709 "\n"
14710 msgstr ""
14711
14712 # type: textblock
14713 #. type: textblock
14714 #: ../src/guestfs-actions.pod:4225 ../fish/guestfish-actions.pod:2870
14715 msgid ""
14716 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
14717 "(8)> command.  The \"full\" version includes all fields."
14718 msgstr ""
14719
14720 # type: textblock
14721 #. type: textblock
14722 #: ../src/guestfs-actions.pod:4228
14723 msgid ""
14724 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
14725 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
14726 msgstr ""
14727
14728 # type: =head2
14729 #. type: =head2
14730 #: ../src/guestfs-actions.pod:4234
14731 msgid "guestfs_lvuuid"
14732 msgstr ""
14733
14734 # type: verbatim
14735 #. type: verbatim
14736 #: ../src/guestfs-actions.pod:4236
14737 #, no-wrap
14738 msgid ""
14739 " char *\n"
14740 " guestfs_lvuuid (guestfs_h *g,\n"
14741 "                 const char *device);\n"
14742 "\n"
14743 msgstr ""
14744
14745 # type: textblock
14746 #. type: textblock
14747 #: ../src/guestfs-actions.pod:4240 ../fish/guestfish-actions.pod:2877
14748 msgid "This command returns the UUID of the LVM LV C<device>."
14749 msgstr ""
14750
14751 # type: =head2
14752 #. type: =head2
14753 #: ../src/guestfs-actions.pod:4247
14754 msgid "guestfs_lxattrlist"
14755 msgstr ""
14756
14757 # type: verbatim
14758 #. type: verbatim
14759 #: ../src/guestfs-actions.pod:4249
14760 #, no-wrap
14761 msgid ""
14762 " struct guestfs_xattr_list *\n"
14763 " guestfs_lxattrlist (guestfs_h *g,\n"
14764 "                     const char *path,\n"
14765 "                     char *const *names);\n"
14766 "\n"
14767 msgstr ""
14768
14769 # type: textblock
14770 #. type: textblock
14771 #: ../src/guestfs-actions.pod:4254 ../fish/guestfish-actions.pod:2883
14772 msgid ""
14773 "This call allows you to get the extended attributes of multiple files, where "
14774 "all files are in the directory C<path>.  C<names> is the list of files from "
14775 "this directory."
14776 msgstr ""
14777
14778 # type: textblock
14779 #. type: textblock
14780 #: ../src/guestfs-actions.pod:4258 ../fish/guestfish-actions.pod:2887
14781 msgid ""
14782 "On return you get a flat list of xattr structs which must be interpreted "
14783 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
14784 "C<attrval> in this struct is zero-length to indicate there was an error "
14785 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
14786 "number (the number of following attributes for this file, which could be C<"
14787 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
14788 "for the first named file.  This repeats for the second and subsequent files."
14789 msgstr ""
14790
14791 # type: textblock
14792 #. type: textblock
14793 #: ../src/guestfs-actions.pod:4268
14794 msgid ""
14795 "This call is intended for programs that want to efficiently list a directory "
14796 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
14797 "a similarly efficient call for getting standard stats.  Very long directory "
14798 "listings might cause the protocol message size to be exceeded, causing this "
14799 "call to fail.  The caller must split up such requests into smaller groups of "
14800 "names."
14801 msgstr ""
14802
14803 # type: =head2
14804 #. type: =head2
14805 #: ../src/guestfs-actions.pod:4282
14806 msgid "guestfs_mkdir"
14807 msgstr ""
14808
14809 # type: verbatim
14810 #. type: verbatim
14811 #: ../src/guestfs-actions.pod:4284
14812 #, no-wrap
14813 msgid ""
14814 " int\n"
14815 " guestfs_mkdir (guestfs_h *g,\n"
14816 "                const char *path);\n"
14817 "\n"
14818 msgstr ""
14819
14820 # type: textblock
14821 #. type: textblock
14822 #: ../src/guestfs-actions.pod:4288 ../fish/guestfish-actions.pod:2909
14823 msgid "Create a directory named C<path>."
14824 msgstr ""
14825
14826 # type: =head2
14827 #. type: =head2
14828 #: ../src/guestfs-actions.pod:4294
14829 msgid "guestfs_mkdir_mode"
14830 msgstr ""
14831
14832 # type: verbatim
14833 #. type: verbatim
14834 #: ../src/guestfs-actions.pod:4296
14835 #, no-wrap
14836 msgid ""
14837 " int\n"
14838 " guestfs_mkdir_mode (guestfs_h *g,\n"
14839 "                     const char *path,\n"
14840 "                     int mode);\n"
14841 "\n"
14842 msgstr ""
14843
14844 # type: textblock
14845 #. type: textblock
14846 #: ../src/guestfs-actions.pod:4301 ../fish/guestfish-actions.pod:2915
14847 msgid ""
14848 "This command creates a directory, setting the initial permissions of the "
14849 "directory to C<mode>."
14850 msgstr ""
14851
14852 # type: textblock
14853 #. type: textblock
14854 #: ../src/guestfs-actions.pod:4304 ../fish/guestfish-actions.pod:2918
14855 msgid ""
14856 "For common Linux filesystems, the actual mode which is set will be C<mode & "
14857 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
14858 "other ways."
14859 msgstr ""
14860
14861 # type: textblock
14862 #. type: textblock
14863 #: ../src/guestfs-actions.pod:4308
14864 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
14865 msgstr ""
14866
14867 # type: =head2
14868 #. type: =head2
14869 #: ../src/guestfs-actions.pod:4314
14870 msgid "guestfs_mkdir_p"
14871 msgstr ""
14872
14873 # type: verbatim
14874 #. type: verbatim
14875 #: ../src/guestfs-actions.pod:4316
14876 #, no-wrap
14877 msgid ""
14878 " int\n"
14879 " guestfs_mkdir_p (guestfs_h *g,\n"
14880 "                  const char *path);\n"
14881 "\n"
14882 msgstr ""
14883
14884 # type: textblock
14885 #. type: textblock
14886 #: ../src/guestfs-actions.pod:4320 ../fish/guestfish-actions.pod:2928
14887 msgid ""
14888 "Create a directory named C<path>, creating any parent directories as "
14889 "necessary.  This is like the C<mkdir -p> shell command."
14890 msgstr ""
14891
14892 # type: =head2
14893 #. type: =head2
14894 #: ../src/guestfs-actions.pod:4327
14895 msgid "guestfs_mkdtemp"
14896 msgstr ""
14897
14898 # type: verbatim
14899 #. type: verbatim
14900 #: ../src/guestfs-actions.pod:4329
14901 #, no-wrap
14902 msgid ""
14903 " char *\n"
14904 " guestfs_mkdtemp (guestfs_h *g,\n"
14905 "                  const char *template);\n"
14906 "\n"
14907 msgstr ""
14908
14909 # type: textblock
14910 #. type: textblock
14911 #: ../src/guestfs-actions.pod:4333 ../fish/guestfish-actions.pod:2935
14912 msgid ""
14913 "This command creates a temporary directory.  The C<template> parameter "
14914 "should be a full pathname for the temporary directory name with the final "
14915 "six characters being \"XXXXXX\"."
14916 msgstr ""
14917
14918 # type: textblock
14919 #. type: textblock
14920 #: ../src/guestfs-actions.pod:4338 ../fish/guestfish-actions.pod:2940
14921 msgid ""
14922 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
14923 "being suitable for Windows filesystems."
14924 msgstr ""
14925
14926 # type: textblock
14927 #. type: textblock
14928 #: ../src/guestfs-actions.pod:4341 ../fish/guestfish-actions.pod:2943
14929 msgid "The name of the temporary directory that was created is returned."
14930 msgstr ""
14931
14932 # type: textblock
14933 #. type: textblock
14934 #: ../src/guestfs-actions.pod:4344 ../fish/guestfish-actions.pod:2946
14935 msgid "The temporary directory is created with mode 0700 and is owned by root."
14936 msgstr ""
14937
14938 # type: textblock
14939 #. type: textblock
14940 #: ../src/guestfs-actions.pod:4347 ../fish/guestfish-actions.pod:2949
14941 msgid ""
14942 "The caller is responsible for deleting the temporary directory and its "
14943 "contents after use."
14944 msgstr ""
14945
14946 # type: textblock
14947 #. type: textblock
14948 #: ../src/guestfs-actions.pod:4350 ../fish/guestfish-actions.pod:2952
14949 msgid "See also: L<mkdtemp(3)>"
14950 msgstr ""
14951
14952 # type: =head2
14953 #. type: =head2
14954 #: ../src/guestfs-actions.pod:4357
14955 msgid "guestfs_mke2fs_J"
14956 msgstr ""
14957
14958 # type: verbatim
14959 #. type: verbatim
14960 #: ../src/guestfs-actions.pod:4359
14961 #, no-wrap
14962 msgid ""
14963 " int\n"
14964 " guestfs_mke2fs_J (guestfs_h *g,\n"
14965 "                   const char *fstype,\n"
14966 "                   int blocksize,\n"
14967 "                   const char *device,\n"
14968 "                   const char *journal);\n"
14969 "\n"
14970 msgstr ""
14971
14972 # type: textblock
14973 #. type: textblock
14974 #: ../src/guestfs-actions.pod:4366 ../fish/guestfish-actions.pod:2958
14975 msgid ""
14976 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14977 "C<journal>.  It is equivalent to the command:"
14978 msgstr ""
14979
14980 # type: verbatim
14981 #. type: verbatim
14982 #: ../src/guestfs-actions.pod:4370 ../fish/guestfish-actions.pod:2962
14983 #, no-wrap
14984 msgid ""
14985 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
14986 "\n"
14987 msgstr ""
14988
14989 # type: textblock
14990 #. type: textblock
14991 #: ../src/guestfs-actions.pod:4372
14992 msgid "See also C<guestfs_mke2journal>."
14993 msgstr ""
14994
14995 # type: textblock
14996 #. type: textblock
14997 #: ../src/guestfs-actions.pod:4376 ../src/guestfs-actions.pod:4394
14998 #: ../src/guestfs-actions.pod:4412 ../src/guestfs-actions.pod:4428
14999 #: ../src/guestfs-actions.pod:4442 ../src/guestfs-actions.pod:4456
15000 #: ../src/guestfs-actions.pod:4515 ../src/guestfs-actions.pod:4780
15001 msgid "(Added in 1.0.68)"
15002 msgstr ""
15003
15004 # type: =head2
15005 #. type: =head2
15006 #: ../src/guestfs-actions.pod:4378
15007 msgid "guestfs_mke2fs_JL"
15008 msgstr ""
15009
15010 # type: verbatim
15011 #. type: verbatim
15012 #: ../src/guestfs-actions.pod:4380
15013 #, no-wrap
15014 msgid ""
15015 " int\n"
15016 " guestfs_mke2fs_JL (guestfs_h *g,\n"
15017 "                    const char *fstype,\n"
15018 "                    int blocksize,\n"
15019 "                    const char *device,\n"
15020 "                    const char *label);\n"
15021 "\n"
15022 msgstr ""
15023
15024 # type: textblock
15025 #. type: textblock
15026 #: ../src/guestfs-actions.pod:4387 ../fish/guestfish-actions.pod:2970
15027 msgid ""
15028 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
15029 "the journal labeled C<label>."
15030 msgstr ""
15031
15032 # type: textblock
15033 #. type: textblock
15034 #: ../src/guestfs-actions.pod:4390
15035 msgid "See also C<guestfs_mke2journal_L>."
15036 msgstr ""
15037
15038 # type: =head2
15039 #. type: =head2
15040 #: ../src/guestfs-actions.pod:4396
15041 msgid "guestfs_mke2fs_JU"
15042 msgstr ""
15043
15044 # type: verbatim
15045 #. type: verbatim
15046 #: ../src/guestfs-actions.pod:4398
15047 #, no-wrap
15048 msgid ""
15049 " int\n"
15050 " guestfs_mke2fs_JU (guestfs_h *g,\n"
15051 "                    const char *fstype,\n"
15052 "                    int blocksize,\n"
15053 "                    const char *device,\n"
15054 "                    const char *uuid);\n"
15055 "\n"
15056 msgstr ""
15057
15058 # type: textblock
15059 #. type: textblock
15060 #: ../src/guestfs-actions.pod:4405 ../fish/guestfish-actions.pod:2979
15061 msgid ""
15062 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
15063 "the journal with UUID C<uuid>."
15064 msgstr ""
15065
15066 # type: textblock
15067 #. type: textblock
15068 #: ../src/guestfs-actions.pod:4408
15069 msgid "See also C<guestfs_mke2journal_U>."
15070 msgstr ""
15071
15072 # type: =head2
15073 #. type: =head2
15074 #: ../src/guestfs-actions.pod:4414
15075 msgid "guestfs_mke2journal"
15076 msgstr ""
15077
15078 # type: verbatim
15079 #. type: verbatim
15080 #: ../src/guestfs-actions.pod:4416
15081 #, no-wrap
15082 msgid ""
15083 " int\n"
15084 " guestfs_mke2journal (guestfs_h *g,\n"
15085 "                      int blocksize,\n"
15086 "                      const char *device);\n"
15087 "\n"
15088 msgstr ""
15089
15090 # type: textblock
15091 #. type: textblock
15092 #: ../src/guestfs-actions.pod:4421 ../fish/guestfish-actions.pod:2988
15093 msgid ""
15094 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
15095 "command:"
15096 msgstr ""
15097
15098 # type: verbatim
15099 #. type: verbatim
15100 #: ../src/guestfs-actions.pod:4424 ../fish/guestfish-actions.pod:2991
15101 #, no-wrap
15102 msgid ""
15103 " mke2fs -O journal_dev -b blocksize device\n"
15104 "\n"
15105 msgstr ""
15106
15107 # type: =head2
15108 #. type: =head2
15109 #: ../src/guestfs-actions.pod:4430
15110 msgid "guestfs_mke2journal_L"
15111 msgstr ""
15112
15113 # type: verbatim
15114 #. type: verbatim
15115 #: ../src/guestfs-actions.pod:4432
15116 #, no-wrap
15117 msgid ""
15118 " int\n"
15119 " guestfs_mke2journal_L (guestfs_h *g,\n"
15120 "                        int blocksize,\n"
15121 "                        const char *label,\n"
15122 "                        const char *device);\n"
15123 "\n"
15124 msgstr ""
15125
15126 # type: textblock
15127 #. type: textblock
15128 #: ../src/guestfs-actions.pod:4438 ../fish/guestfish-actions.pod:2997
15129 msgid "This creates an ext2 external journal on C<device> with label C<label>."
15130 msgstr ""
15131
15132 # type: =head2
15133 #. type: =head2
15134 #: ../src/guestfs-actions.pod:4444
15135 msgid "guestfs_mke2journal_U"
15136 msgstr ""
15137
15138 # type: verbatim
15139 #. type: verbatim
15140 #: ../src/guestfs-actions.pod:4446
15141 #, no-wrap
15142 msgid ""
15143 " int\n"
15144 " guestfs_mke2journal_U (guestfs_h *g,\n"
15145 "                        int blocksize,\n"
15146 "                        const char *uuid,\n"
15147 "                        const char *device);\n"
15148 "\n"
15149 msgstr ""
15150
15151 # type: textblock
15152 #. type: textblock
15153 #: ../src/guestfs-actions.pod:4452 ../fish/guestfish-actions.pod:3003
15154 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
15155 msgstr ""
15156
15157 # type: =head2
15158 #. type: =head2
15159 #: ../src/guestfs-actions.pod:4458
15160 msgid "guestfs_mkfifo"
15161 msgstr ""
15162
15163 # type: verbatim
15164 #. type: verbatim
15165 #: ../src/guestfs-actions.pod:4460
15166 #, no-wrap
15167 msgid ""
15168 " int\n"
15169 " guestfs_mkfifo (guestfs_h *g,\n"
15170 "                 int mode,\n"
15171 "                 const char *path);\n"
15172 "\n"
15173 msgstr ""
15174
15175 # type: textblock
15176 #. type: textblock
15177 #: ../src/guestfs-actions.pod:4465
15178 msgid ""
15179 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
15180 "is just a convenient wrapper around C<guestfs_mknod>."
15181 msgstr ""
15182
15183 # type: =head2
15184 #. type: =head2
15185 #: ../src/guestfs-actions.pod:4475
15186 msgid "guestfs_mkfs"
15187 msgstr ""
15188
15189 # type: verbatim
15190 #. type: verbatim
15191 #: ../src/guestfs-actions.pod:4477
15192 #, no-wrap
15193 msgid ""
15194 " int\n"
15195 " guestfs_mkfs (guestfs_h *g,\n"
15196 "               const char *fstype,\n"
15197 "               const char *device);\n"
15198 "\n"
15199 msgstr ""
15200
15201 # type: textblock
15202 #. type: textblock
15203 #: ../src/guestfs-actions.pod:4482 ../fish/guestfish-actions.pod:3019
15204 msgid ""
15205 "This creates a filesystem on C<device> (usually a partition or LVM logical "
15206 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
15207 msgstr ""
15208
15209 # type: =head2
15210 #. type: =head2
15211 #: ../src/guestfs-actions.pod:4490
15212 msgid "guestfs_mkfs_b"
15213 msgstr ""
15214
15215 # type: verbatim
15216 #. type: verbatim
15217 #: ../src/guestfs-actions.pod:4492
15218 #, no-wrap
15219 msgid ""
15220 " int\n"
15221 " guestfs_mkfs_b (guestfs_h *g,\n"
15222 "                 const char *fstype,\n"
15223 "                 int blocksize,\n"
15224 "                 const char *device);\n"
15225 "\n"
15226 msgstr ""
15227
15228 # type: textblock
15229 #. type: textblock
15230 #: ../src/guestfs-actions.pod:4498
15231 msgid ""
15232 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
15233 "block size of the resulting filesystem.  Supported block sizes depend on the "
15234 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
15235 msgstr ""
15236
15237 # type: textblock
15238 #. type: textblock
15239 #: ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:4546
15240 #: ../fish/guestfish-actions.pod:3032 ../fish/guestfish-actions.pod:3059
15241 msgid ""
15242 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
15243 "cluster size."
15244 msgstr ""
15245
15246 # type: textblock
15247 #. type: textblock
15248 #: ../src/guestfs-actions.pod:4508 ../fish/guestfish-actions.pod:3035
15249 msgid ""
15250 "This function is deprecated.  In new code, use the C<mkfs_opts> call instead."
15251 msgstr ""
15252
15253 # type: =head2
15254 #. type: =head2
15255 #: ../src/guestfs-actions.pod:4517
15256 msgid "guestfs_mkfs_opts"
15257 msgstr ""
15258
15259 # type: verbatim
15260 #. type: verbatim
15261 #: ../src/guestfs-actions.pod:4519
15262 #, no-wrap
15263 msgid ""
15264 " int\n"
15265 " guestfs_mkfs_opts (guestfs_h *g,\n"
15266 "                    const char *fstype,\n"
15267 "                    const char *device,\n"
15268 "                    ...);\n"
15269 "\n"
15270 msgstr ""
15271
15272 #. type: verbatim
15273 #: ../src/guestfs-actions.pod:4530
15274 #, no-wrap
15275 msgid ""
15276 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
15277 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
15278 "\n"
15279 msgstr ""
15280
15281 # type: textblock
15282 #. type: textblock
15283 #: ../src/guestfs-actions.pod:4533 ../fish/guestfish-actions.pod:3046
15284 msgid ""
15285 "This function creates a filesystem on C<device>.  The filesystem type is "
15286 "C<fstype>, for example C<ext3>."
15287 msgstr ""
15288
15289 # type: =item
15290 #. type: =item
15291 #: ../src/guestfs-actions.pod:4540 ../fish/guestfish-actions.pod:3053
15292 msgid "C<blocksize>"
15293 msgstr ""
15294
15295 # type: textblock
15296 #. type: textblock
15297 #: ../src/guestfs-actions.pod:4542 ../fish/guestfish-actions.pod:3055
15298 msgid ""
15299 "The filesystem block size.  Supported block sizes depend on the filesystem "
15300 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
15301 "filesystems."
15302 msgstr ""
15303
15304 #. type: textblock
15305 #: ../src/guestfs-actions.pod:4549 ../fish/guestfish-actions.pod:3062
15306 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
15307 msgstr ""
15308
15309 #. type: =item
15310 #: ../src/guestfs-actions.pod:4551 ../fish/guestfish-actions.pod:3064
15311 msgid "C<features>"
15312 msgstr ""
15313
15314 #. type: textblock
15315 #: ../src/guestfs-actions.pod:4553 ../fish/guestfish-actions.pod:3066
15316 msgid "This passes the I<-O> parameter to the external mkfs program."
15317 msgstr ""
15318
15319 #. type: textblock
15320 #: ../src/guestfs-actions.pod:4555 ../fish/guestfish-actions.pod:3068
15321 msgid ""
15322 "For certain filesystem types, this allows extra filesystem features to be "
15323 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
15324 msgstr ""
15325
15326 #. type: textblock
15327 #: ../src/guestfs-actions.pod:4559 ../fish/guestfish-actions.pod:3072
15328 msgid ""
15329 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
15330 "type."
15331 msgstr ""
15332
15333 #. type: textblock
15334 #: ../src/guestfs-actions.pod:4566
15335 msgid "(Added in 1.7.19)"
15336 msgstr ""
15337
15338 # type: =head2
15339 #. type: =head2
15340 #: ../src/guestfs-actions.pod:4568
15341 msgid "guestfs_mkfs_opts_va"
15342 msgstr ""
15343
15344 # type: verbatim
15345 #. type: verbatim
15346 #: ../src/guestfs-actions.pod:4570
15347 #, no-wrap
15348 msgid ""
15349 " int\n"
15350 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
15351 "                       const char *fstype,\n"
15352 "                       const char *device,\n"
15353 "                       va_list args);\n"
15354 "\n"
15355 msgstr ""
15356
15357 # type: textblock
15358 #. type: textblock
15359 #: ../src/guestfs-actions.pod:4576
15360 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
15361 msgstr ""
15362
15363 # type: =head2
15364 #. type: =head2
15365 #: ../src/guestfs-actions.pod:4580
15366 msgid "guestfs_mkfs_opts_argv"
15367 msgstr ""
15368
15369 # type: verbatim
15370 #. type: verbatim
15371 #: ../src/guestfs-actions.pod:4582
15372 #, no-wrap
15373 msgid ""
15374 " int\n"
15375 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
15376 "                         const char *fstype,\n"
15377 "                         const char *device,\n"
15378 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
15379 "\n"
15380 msgstr ""
15381
15382 # type: textblock
15383 #. type: textblock
15384 #: ../src/guestfs-actions.pod:4588
15385 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
15386 msgstr ""
15387
15388 # type: =head2
15389 #. type: =head2
15390 #: ../src/guestfs-actions.pod:4592
15391 msgid "guestfs_mkmountpoint"
15392 msgstr ""
15393
15394 # type: verbatim
15395 #. type: verbatim
15396 #: ../src/guestfs-actions.pod:4594
15397 #, no-wrap
15398 msgid ""
15399 " int\n"
15400 " guestfs_mkmountpoint (guestfs_h *g,\n"
15401 "                       const char *exemptpath);\n"
15402 "\n"
15403 msgstr ""
15404
15405 # type: textblock
15406 #. type: textblock
15407 #: ../src/guestfs-actions.pod:4598
15408 msgid ""
15409 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
15410 "that can be used to create extra mountpoints before mounting the first "
15411 "filesystem."
15412 msgstr ""
15413
15414 # type: textblock
15415 #. type: textblock
15416 #: ../src/guestfs-actions.pod:4602 ../fish/guestfish-actions.pod:3087
15417 msgid ""
15418 "These calls are I<only> necessary in some very limited circumstances, mainly "
15419 "the case where you want to mount a mix of unrelated and/or read-only "
15420 "filesystems together."
15421 msgstr ""
15422
15423 # type: textblock
15424 #. type: textblock
15425 #: ../src/guestfs-actions.pod:4606 ../fish/guestfish-actions.pod:3091
15426 msgid ""
15427 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
15428 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
15429 "inside that.  You can unpack this as follows in guestfish:"
15430 msgstr ""
15431
15432 # type: verbatim
15433 #. type: verbatim
15434 #: ../src/guestfs-actions.pod:4611 ../fish/guestfish-actions.pod:3096
15435 #, no-wrap
15436 msgid ""
15437 " add-ro Fedora-11-i686-Live.iso\n"
15438 " run\n"
15439 " mkmountpoint /cd\n"
15440 " mkmountpoint /sqsh\n"
15441 " mkmountpoint /ext3fs\n"
15442 " mount /dev/sda /cd\n"
15443 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
15444 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
15445 "\n"
15446 msgstr ""
15447
15448 # type: textblock
15449 #. type: textblock
15450 #: ../src/guestfs-actions.pod:4620 ../fish/guestfish-actions.pod:3105
15451 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
15452 msgstr ""
15453
15454 # type: textblock
15455 #. type: textblock
15456 #: ../src/guestfs-actions.pod:4622
15457 msgid ""
15458 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
15459 "may get unexpected errors if you try to mix these calls.  It is safest to "
15460 "manually unmount filesystems and remove mountpoints after use."
15461 msgstr ""
15462
15463 # type: textblock
15464 #. type: textblock
15465 #: ../src/guestfs-actions.pod:4626
15466 msgid ""
15467 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
15468 "first, so for this to work for manual mountpoints, you must ensure that the "
15469 "innermost mountpoints have the longest pathnames, as in the example code "
15470 "above."
15471 msgstr ""
15472
15473 # type: textblock
15474 #. type: textblock
15475 #: ../src/guestfs-actions.pod:4631 ../fish/guestfish-actions.pod:3116
15476 msgid ""
15477 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
15478 msgstr ""
15479
15480 #. type: textblock
15481 #: ../src/guestfs-actions.pod:4633
15482 msgid ""
15483 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
15484 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
15485 "can also trigger these issues."
15486 msgstr ""
15487
15488 # type: textblock
15489 #. type: textblock
15490 #: ../src/guestfs-actions.pod:4639 ../src/guestfs-actions.pod:4953
15491 #: ../src/guestfs-actions.pod:5863
15492 msgid "(Added in 1.0.62)"
15493 msgstr ""
15494
15495 # type: =head2
15496 #. type: =head2
15497 #: ../src/guestfs-actions.pod:4641
15498 msgid "guestfs_mknod"
15499 msgstr ""
15500
15501 # type: verbatim
15502 #. type: verbatim
15503 #: ../src/guestfs-actions.pod:4643
15504 #, no-wrap
15505 msgid ""
15506 " int\n"
15507 " guestfs_mknod (guestfs_h *g,\n"
15508 "                int mode,\n"
15509 "                int devmajor,\n"
15510 "                int devminor,\n"
15511 "                const char *path);\n"
15512 "\n"
15513 msgstr ""
15514
15515 # type: textblock
15516 #. type: textblock
15517 #: ../src/guestfs-actions.pod:4650 ../fish/guestfish-actions.pod:3126
15518 msgid ""
15519 "This call creates block or character special devices, or named pipes (FIFOs)."
15520 msgstr ""
15521
15522 # type: textblock
15523 #. type: textblock
15524 #: ../src/guestfs-actions.pod:4653 ../fish/guestfish-actions.pod:3129
15525 msgid ""
15526 "The C<mode> parameter should be the mode, using the standard constants.  "
15527 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
15528 "used when creating block and character special devices."
15529 msgstr ""
15530
15531 # type: textblock
15532 #. type: textblock
15533 #: ../src/guestfs-actions.pod:4658
15534 msgid ""
15535 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
15536 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
15537 "regular file).  These constants are available in the standard Linux header "
15538 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
15539 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
15540 "the appropriate constant for you."
15541 msgstr ""
15542
15543 # type: =head2
15544 #. type: =head2
15545 #: ../src/guestfs-actions.pod:4672
15546 msgid "guestfs_mknod_b"
15547 msgstr ""
15548
15549 # type: verbatim
15550 #. type: verbatim
15551 #: ../src/guestfs-actions.pod:4674
15552 #, no-wrap
15553 msgid ""
15554 " int\n"
15555 " guestfs_mknod_b (guestfs_h *g,\n"
15556 "                  int mode,\n"
15557 "                  int devmajor,\n"
15558 "                  int devminor,\n"
15559 "                  const char *path);\n"
15560 "\n"
15561 msgstr ""
15562
15563 # type: textblock
15564 #. type: textblock
15565 #: ../src/guestfs-actions.pod:4681
15566 msgid ""
15567 "This call creates a block device node called C<path> with mode C<mode> and "
15568 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
15569 "wrapper around C<guestfs_mknod>."
15570 msgstr ""
15571
15572 # type: =head2
15573 #. type: =head2
15574 #: ../src/guestfs-actions.pod:4691
15575 msgid "guestfs_mknod_c"
15576 msgstr ""
15577
15578 # type: verbatim
15579 #. type: verbatim
15580 #: ../src/guestfs-actions.pod:4693
15581 #, no-wrap
15582 msgid ""
15583 " int\n"
15584 " guestfs_mknod_c (guestfs_h *g,\n"
15585 "                  int mode,\n"
15586 "                  int devmajor,\n"
15587 "                  int devminor,\n"
15588 "                  const char *path);\n"
15589 "\n"
15590 msgstr ""
15591
15592 # type: textblock
15593 #. type: textblock
15594 #: ../src/guestfs-actions.pod:4700
15595 msgid ""
15596 "This call creates a char device node called C<path> with mode C<mode> and "
15597 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
15598 "wrapper around C<guestfs_mknod>."
15599 msgstr ""
15600
15601 # type: =head2
15602 #. type: =head2
15603 #: ../src/guestfs-actions.pod:4710
15604 msgid "guestfs_mkswap"
15605 msgstr ""
15606
15607 # type: verbatim
15608 #. type: verbatim
15609 #: ../src/guestfs-actions.pod:4712
15610 #, no-wrap
15611 msgid ""
15612 " int\n"
15613 " guestfs_mkswap (guestfs_h *g,\n"
15614 "                 const char *device);\n"
15615 "\n"
15616 msgstr ""
15617
15618 # type: textblock
15619 #. type: textblock
15620 #: ../src/guestfs-actions.pod:4716 ../fish/guestfish-actions.pod:3168
15621 msgid "Create a swap partition on C<device>."
15622 msgstr ""
15623
15624 # type: =head2
15625 #. type: =head2
15626 #: ../src/guestfs-actions.pod:4722
15627 msgid "guestfs_mkswap_L"
15628 msgstr ""
15629
15630 # type: verbatim
15631 #. type: verbatim
15632 #: ../src/guestfs-actions.pod:4724
15633 #, no-wrap
15634 msgid ""
15635 " int\n"
15636 " guestfs_mkswap_L (guestfs_h *g,\n"
15637 "                   const char *label,\n"
15638 "                   const char *device);\n"
15639 "\n"
15640 msgstr ""
15641
15642 # type: textblock
15643 #. type: textblock
15644 #: ../src/guestfs-actions.pod:4729 ../fish/guestfish-actions.pod:3174
15645 msgid "Create a swap partition on C<device> with label C<label>."
15646 msgstr ""
15647
15648 # type: textblock
15649 #. type: textblock
15650 #: ../src/guestfs-actions.pod:4731 ../fish/guestfish-actions.pod:3176
15651 msgid ""
15652 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
15653 "sda>), just to a partition.  This appears to be a limitation of the kernel "
15654 "or swap tools."
15655 msgstr ""
15656
15657 # type: =head2
15658 #. type: =head2
15659 #: ../src/guestfs-actions.pod:4739
15660 msgid "guestfs_mkswap_U"
15661 msgstr ""
15662
15663 # type: verbatim
15664 #. type: verbatim
15665 #: ../src/guestfs-actions.pod:4741
15666 #, no-wrap
15667 msgid ""
15668 " int\n"
15669 " guestfs_mkswap_U (guestfs_h *g,\n"
15670 "                   const char *uuid,\n"
15671 "                   const char *device);\n"
15672 "\n"
15673 msgstr ""
15674
15675 # type: textblock
15676 #. type: textblock
15677 #: ../src/guestfs-actions.pod:4746 ../fish/guestfish-actions.pod:3184
15678 msgid "Create a swap partition on C<device> with UUID C<uuid>."
15679 msgstr ""
15680
15681 # type: =head2
15682 #. type: =head2
15683 #: ../src/guestfs-actions.pod:4752
15684 msgid "guestfs_mkswap_file"
15685 msgstr ""
15686
15687 # type: verbatim
15688 #. type: verbatim
15689 #: ../src/guestfs-actions.pod:4754
15690 #, no-wrap
15691 msgid ""
15692 " int\n"
15693 " guestfs_mkswap_file (guestfs_h *g,\n"
15694 "                      const char *path);\n"
15695 "\n"
15696 msgstr ""
15697
15698 # type: textblock
15699 #. type: textblock
15700 #: ../src/guestfs-actions.pod:4758 ../fish/guestfish-actions.pod:3190
15701 msgid "Create a swap file."
15702 msgstr ""
15703
15704 # type: textblock
15705 #. type: textblock
15706 #: ../src/guestfs-actions.pod:4760
15707 msgid ""
15708 "This command just writes a swap file signature to an existing file.  To "
15709 "create the file itself, use something like C<guestfs_fallocate>."
15710 msgstr ""
15711
15712 # type: =head2
15713 #. type: =head2
15714 #: ../src/guestfs-actions.pod:4767
15715 msgid "guestfs_modprobe"
15716 msgstr ""
15717
15718 # type: verbatim
15719 #. type: verbatim
15720 #: ../src/guestfs-actions.pod:4769
15721 #, no-wrap
15722 msgid ""
15723 " int\n"
15724 " guestfs_modprobe (guestfs_h *g,\n"
15725 "                   const char *modulename);\n"
15726 "\n"
15727 msgstr ""
15728
15729 # type: textblock
15730 #. type: textblock
15731 #: ../src/guestfs-actions.pod:4773 ../fish/guestfish-actions.pod:3199
15732 msgid "This loads a kernel module in the appliance."
15733 msgstr ""
15734
15735 # type: textblock
15736 #. type: textblock
15737 #: ../src/guestfs-actions.pod:4775 ../fish/guestfish-actions.pod:3201
15738 msgid ""
15739 "The kernel module must have been whitelisted when libguestfs was built (see "
15740 "C<appliance/kmod.whitelist.in> in the source)."
15741 msgstr ""
15742
15743 # type: =head2
15744 #. type: =head2
15745 #: ../src/guestfs-actions.pod:4782
15746 msgid "guestfs_mount"
15747 msgstr ""
15748
15749 # type: verbatim
15750 #. type: verbatim
15751 #: ../src/guestfs-actions.pod:4784
15752 #, no-wrap
15753 msgid ""
15754 " int\n"
15755 " guestfs_mount (guestfs_h *g,\n"
15756 "                const char *device,\n"
15757 "                const char *mountpoint);\n"
15758 "\n"
15759 msgstr ""
15760
15761 # type: textblock
15762 #. type: textblock
15763 #: ../src/guestfs-actions.pod:4789 ../fish/guestfish-actions.pod:3208
15764 msgid ""
15765 "Mount a guest disk at a position in the filesystem.  Block devices are named "
15766 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
15767 "those block devices contain partitions, they will have the usual names (eg. "
15768 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
15769 msgstr ""
15770
15771 # type: textblock
15772 #. type: textblock
15773 #: ../src/guestfs-actions.pod:4795 ../fish/guestfish-actions.pod:3214
15774 msgid ""
15775 "The rules are the same as for L<mount(2)>: A filesystem must first be "
15776 "mounted on C</> before others can be mounted.  Other filesystems can only be "
15777 "mounted on directories which already exist."
15778 msgstr ""
15779
15780 # type: textblock
15781 #. type: textblock
15782 #: ../src/guestfs-actions.pod:4800 ../fish/guestfish-actions.pod:3219
15783 msgid ""
15784 "The mounted filesystem is writable, if we have sufficient permissions on the "
15785 "underlying device."
15786 msgstr ""
15787
15788 # type: textblock
15789 #. type: textblock
15790 #: ../src/guestfs-actions.pod:4803
15791 msgid ""
15792 "B<Important note:> When you use this call, the filesystem options C<sync> "
15793 "and C<noatime> are set implicitly.  This was originally done because we "
15794 "thought it would improve reliability, but it turns out that I<-o sync> has a "
15795 "very large negative performance impact and negligible effect on "
15796 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
15797 "in any code that needs performance, and instead use C<guestfs_mount_options> "
15798 "(use an empty string for the first parameter if you don't want any options)."
15799 msgstr ""
15800
15801 #. type: textblock
15802 #: ../src/guestfs-actions.pod:4815 ../fish/guestfish-actions.pod:3232
15803 msgid ""
15804 "This function is deprecated.  In new code, use the C<mount_options> call "
15805 "instead."
15806 msgstr ""
15807
15808 #. type: =head2
15809 #: ../src/guestfs-actions.pod:4824
15810 msgid "guestfs_mount_9p"
15811 msgstr ""
15812
15813 #. type: verbatim
15814 #: ../src/guestfs-actions.pod:4826
15815 #, no-wrap
15816 msgid ""
15817 " int\n"
15818 " guestfs_mount_9p (guestfs_h *g,\n"
15819 "                   const char *mounttag,\n"
15820 "                   const char *mountpoint,\n"
15821 "                   ...);\n"
15822 "\n"
15823 msgstr ""
15824
15825 #. type: verbatim
15826 #: ../src/guestfs-actions.pod:4837
15827 #, no-wrap
15828 msgid ""
15829 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
15830 "\n"
15831 msgstr ""
15832
15833 #. type: textblock
15834 #: ../src/guestfs-actions.pod:4839 ../fish/guestfish-actions.pod:3243
15835 msgid ""
15836 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
15837 "C<mountpoint>."
15838 msgstr ""
15839
15840 #. type: textblock
15841 #: ../src/guestfs-actions.pod:4842 ../fish/guestfish-actions.pod:3246
15842 msgid ""
15843 "If required, C<trans=virtio> will be automatically added to the options.  "
15844 "Any other options required can be passed in the optional C<options> "
15845 "parameter."
15846 msgstr ""
15847
15848 #. type: =head2
15849 #: ../src/guestfs-actions.pod:4848
15850 msgid "guestfs_mount_9p_va"
15851 msgstr ""
15852
15853 #. type: verbatim
15854 #: ../src/guestfs-actions.pod:4850
15855 #, no-wrap
15856 msgid ""
15857 " int\n"
15858 " guestfs_mount_9p_va (guestfs_h *g,\n"
15859 "                      const char *mounttag,\n"
15860 "                      const char *mountpoint,\n"
15861 "                      va_list args);\n"
15862 "\n"
15863 msgstr ""
15864
15865 #. type: textblock
15866 #: ../src/guestfs-actions.pod:4856
15867 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
15868 msgstr ""
15869
15870 #. type: =head2
15871 #: ../src/guestfs-actions.pod:4860
15872 msgid "guestfs_mount_9p_argv"
15873 msgstr ""
15874
15875 #. type: verbatim
15876 #: ../src/guestfs-actions.pod:4862
15877 #, no-wrap
15878 msgid ""
15879 " int\n"
15880 " guestfs_mount_9p_argv (guestfs_h *g,\n"
15881 "                        const char *mounttag,\n"
15882 "                        const char *mountpoint,\n"
15883 "                        const struct guestfs_mount_9p_argv *optargs);\n"
15884 "\n"
15885 msgstr ""
15886
15887 #. type: textblock
15888 #: ../src/guestfs-actions.pod:4868
15889 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
15890 msgstr ""
15891
15892 # type: =head2
15893 #. type: =head2
15894 #: ../src/guestfs-actions.pod:4872
15895 msgid "guestfs_mount_loop"
15896 msgstr ""
15897
15898 # type: verbatim
15899 #. type: verbatim
15900 #: ../src/guestfs-actions.pod:4874
15901 #, no-wrap
15902 msgid ""
15903 " int\n"
15904 " guestfs_mount_loop (guestfs_h *g,\n"
15905 "                     const char *file,\n"
15906 "                     const char *mountpoint);\n"
15907 "\n"
15908 msgstr ""
15909
15910 # type: textblock
15911 #. type: textblock
15912 #: ../src/guestfs-actions.pod:4879 ../fish/guestfish-actions.pod:3256
15913 msgid ""
15914 "This command lets you mount C<file> (a filesystem image in a file) on a "
15915 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
15916 "mountpoint>."
15917 msgstr ""
15918
15919 # type: =head2
15920 #. type: =head2
15921 #: ../src/guestfs-actions.pod:4887
15922 msgid "guestfs_mount_options"
15923 msgstr ""
15924
15925 # type: verbatim
15926 #. type: verbatim
15927 #: ../src/guestfs-actions.pod:4889
15928 #, no-wrap
15929 msgid ""
15930 " int\n"
15931 " guestfs_mount_options (guestfs_h *g,\n"
15932 "                        const char *options,\n"
15933 "                        const char *device,\n"
15934 "                        const char *mountpoint);\n"
15935 "\n"
15936 msgstr ""
15937
15938 # type: textblock
15939 #. type: textblock
15940 #: ../src/guestfs-actions.pod:4895
15941 msgid ""
15942 "This is the same as the C<guestfs_mount> command, but it allows you to set "
15943 "the mount options as for the L<mount(8)> I<-o> flag."
15944 msgstr ""
15945
15946 # type: textblock
15947 #. type: textblock
15948 #: ../src/guestfs-actions.pod:4899 ../fish/guestfish-actions.pod:3268
15949 msgid ""
15950 "If the C<options> parameter is an empty string, then no options are passed "
15951 "(all options default to whatever the filesystem uses)."
15952 msgstr ""
15953
15954 # type: textblock
15955 #. type: textblock
15956 #: ../src/guestfs-actions.pod:4905 ../src/guestfs-actions.pod:4919
15957 #: ../src/guestfs-actions.pod:4936
15958 msgid "(Added in 1.0.10)"
15959 msgstr ""
15960
15961 # type: =head2
15962 #. type: =head2
15963 #: ../src/guestfs-actions.pod:4907
15964 msgid "guestfs_mount_ro"
15965 msgstr ""
15966
15967 # type: verbatim
15968 #. type: verbatim
15969 #: ../src/guestfs-actions.pod:4909
15970 #, no-wrap
15971 msgid ""
15972 " int\n"
15973 " guestfs_mount_ro (guestfs_h *g,\n"
15974 "                   const char *device,\n"
15975 "                   const char *mountpoint);\n"
15976 "\n"
15977 msgstr ""
15978
15979 # type: textblock
15980 #. type: textblock
15981 #: ../src/guestfs-actions.pod:4914
15982 msgid ""
15983 "This is the same as the C<guestfs_mount> command, but it mounts the "
15984 "filesystem with the read-only (I<-o ro>) flag."
15985 msgstr ""
15986
15987 # type: =head2
15988 #. type: =head2
15989 #: ../src/guestfs-actions.pod:4921
15990 msgid "guestfs_mount_vfs"
15991 msgstr ""
15992
15993 # type: verbatim
15994 #. type: verbatim
15995 #: ../src/guestfs-actions.pod:4923
15996 #, no-wrap
15997 msgid ""
15998 " int\n"
15999 " guestfs_mount_vfs (guestfs_h *g,\n"
16000 "                    const char *options,\n"
16001 "                    const char *vfstype,\n"
16002 "                    const char *device,\n"
16003 "                    const char *mountpoint);\n"
16004 "\n"
16005 msgstr ""
16006
16007 # type: textblock
16008 #. type: textblock
16009 #: ../src/guestfs-actions.pod:4930
16010 msgid ""
16011 "This is the same as the C<guestfs_mount> command, but it allows you to set "
16012 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
16013 "t> flags."
16014 msgstr ""
16015
16016 # type: =head2
16017 #. type: =head2
16018 #: ../src/guestfs-actions.pod:4938
16019 msgid "guestfs_mountpoints"
16020 msgstr ""
16021
16022 # type: verbatim
16023 #. type: verbatim
16024 #: ../src/guestfs-actions.pod:4940
16025 #, no-wrap
16026 msgid ""
16027 " char **\n"
16028 " guestfs_mountpoints (guestfs_h *g);\n"
16029 "\n"
16030 msgstr ""
16031
16032 # type: textblock
16033 #. type: textblock
16034 #: ../src/guestfs-actions.pod:4943
16035 msgid ""
16036 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
16037 "devices.  This one returns a hash table (map) of device name to directory "
16038 "where the device is mounted."
16039 msgstr ""
16040
16041 # type: =head2
16042 #. type: =head2
16043 #: ../src/guestfs-actions.pod:4955
16044 msgid "guestfs_mounts"
16045 msgstr ""
16046
16047 # type: verbatim
16048 #. type: verbatim
16049 #: ../src/guestfs-actions.pod:4957
16050 #, no-wrap
16051 msgid ""
16052 " char **\n"
16053 " guestfs_mounts (guestfs_h *g);\n"
16054 "\n"
16055 msgstr ""
16056
16057 # type: textblock
16058 #. type: textblock
16059 #: ../src/guestfs-actions.pod:4960 ../fish/guestfish-actions.pod:3299
16060 msgid ""
16061 "This returns the list of currently mounted filesystems.  It returns the list "
16062 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
16063 msgstr ""
16064
16065 # type: textblock
16066 #. type: textblock
16067 #: ../src/guestfs-actions.pod:4963 ../fish/guestfish-actions.pod:3302
16068 msgid "Some internal mounts are not shown."
16069 msgstr ""
16070
16071 # type: textblock
16072 #. type: textblock
16073 #: ../src/guestfs-actions.pod:4965
16074 msgid "See also: C<guestfs_mountpoints>"
16075 msgstr ""
16076
16077 # type: =head2
16078 #. type: =head2
16079 #: ../src/guestfs-actions.pod:4973
16080 msgid "guestfs_mv"
16081 msgstr ""
16082
16083 # type: verbatim
16084 #. type: verbatim
16085 #: ../src/guestfs-actions.pod:4975
16086 #, no-wrap
16087 msgid ""
16088 " int\n"
16089 " guestfs_mv (guestfs_h *g,\n"
16090 "             const char *src,\n"
16091 "             const char *dest);\n"
16092 "\n"
16093 msgstr ""
16094
16095 # type: textblock
16096 #. type: textblock
16097 #: ../src/guestfs-actions.pod:4980 ../fish/guestfish-actions.pod:3310
16098 msgid ""
16099 "This moves a file from C<src> to C<dest> where C<dest> is either a "
16100 "destination filename or destination directory."
16101 msgstr ""
16102
16103 # type: =head2
16104 #. type: =head2
16105 #: ../src/guestfs-actions.pod:4987
16106 msgid "guestfs_ntfs_3g_probe"
16107 msgstr ""
16108
16109 # type: verbatim
16110 #. type: verbatim
16111 #: ../src/guestfs-actions.pod:4989
16112 #, no-wrap
16113 msgid ""
16114 " int\n"
16115 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
16116 "                        int rw,\n"
16117 "                        const char *device);\n"
16118 "\n"
16119 msgstr ""
16120
16121 # type: textblock
16122 #. type: textblock
16123 #: ../src/guestfs-actions.pod:4994 ../fish/guestfish-actions.pod:3317
16124 msgid ""
16125 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
16126 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
16127 "write, and some cannot be mounted at all)."
16128 msgstr ""
16129
16130 # type: textblock
16131 #. type: textblock
16132 #: ../src/guestfs-actions.pod:4998 ../fish/guestfish-actions.pod:3321
16133 msgid ""
16134 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
16135 "can be mounted read-write.  Set it to false if you want to test if the "
16136 "volume can be mounted read-only."
16137 msgstr ""
16138
16139 # type: textblock
16140 #. type: textblock
16141 #: ../src/guestfs-actions.pod:5002 ../fish/guestfish-actions.pod:3325
16142 msgid ""
16143 "The return value is an integer which C<0> if the operation would succeed, or "
16144 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
16145 msgstr ""
16146
16147 # type: textblock
16148 #. type: textblock
16149 #: ../src/guestfs-actions.pod:5008
16150 msgid "(Added in 1.0.43)"
16151 msgstr ""
16152
16153 # type: =head2
16154 #. type: =head2
16155 #: ../src/guestfs-actions.pod:5010
16156 msgid "guestfs_ntfsresize"
16157 msgstr ""
16158
16159 # type: verbatim
16160 #. type: verbatim
16161 #: ../src/guestfs-actions.pod:5012
16162 #, no-wrap
16163 msgid ""
16164 " int\n"
16165 " guestfs_ntfsresize (guestfs_h *g,\n"
16166 "                     const char *device);\n"
16167 "\n"
16168 msgstr ""
16169
16170 # type: textblock
16171 #. type: textblock
16172 #: ../src/guestfs-actions.pod:5016 ../fish/guestfish-actions.pod:3333
16173 msgid ""
16174 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
16175 "size of the underlying device.  See also L<ntfsresize(8)>."
16176 msgstr ""
16177
16178 # type: =head2
16179 #. type: =head2
16180 #: ../src/guestfs-actions.pod:5024
16181 msgid "guestfs_ntfsresize_size"
16182 msgstr ""
16183
16184 # type: verbatim
16185 #. type: verbatim
16186 #: ../src/guestfs-actions.pod:5026
16187 #, no-wrap
16188 msgid ""
16189 " int\n"
16190 " guestfs_ntfsresize_size (guestfs_h *g,\n"
16191 "                          const char *device,\n"
16192 "                          int64_t size);\n"
16193 "\n"
16194 msgstr ""
16195
16196 # type: textblock
16197 #. type: textblock
16198 #: ../src/guestfs-actions.pod:5031
16199 msgid ""
16200 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
16201 "to specify the new size (in bytes) explicitly."
16202 msgstr ""
16203
16204 # type: textblock
16205 #. type: textblock
16206 #: ../src/guestfs-actions.pod:5036 ../src/guestfs-actions.pod:5472
16207 #: ../src/guestfs-actions.pod:5545 ../src/guestfs-actions.pod:5811
16208 #: ../src/guestfs-actions.pod:7417
16209 msgid "(Added in 1.3.14)"
16210 msgstr ""
16211
16212 # type: =head2
16213 #. type: =head2
16214 #: ../src/guestfs-actions.pod:5038
16215 msgid "guestfs_part_add"
16216 msgstr ""
16217
16218 # type: verbatim
16219 #. type: verbatim
16220 #: ../src/guestfs-actions.pod:5040
16221 #, no-wrap
16222 msgid ""
16223 " int\n"
16224 " guestfs_part_add (guestfs_h *g,\n"
16225 "                   const char *device,\n"
16226 "                   const char *prlogex,\n"
16227 "                   int64_t startsect,\n"
16228 "                   int64_t endsect);\n"
16229 "\n"
16230 msgstr ""
16231
16232 # type: textblock
16233 #. type: textblock
16234 #: ../src/guestfs-actions.pod:5047
16235 msgid ""
16236 "This command adds a partition to C<device>.  If there is no partition table "
16237 "on the device, call C<guestfs_part_init> first."
16238 msgstr ""
16239
16240 # type: textblock
16241 #. type: textblock
16242 #: ../src/guestfs-actions.pod:5050 ../fish/guestfish-actions.pod:3351
16243 msgid ""
16244 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
16245 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
16246 "C<logical>) and C<e> (or C<extended>) partition types."
16247 msgstr ""
16248
16249 # type: textblock
16250 #. type: textblock
16251 #: ../src/guestfs-actions.pod:5055 ../fish/guestfish-actions.pod:3356
16252 msgid ""
16253 "C<startsect> and C<endsect> are the start and end of the partition in "
16254 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
16255 "from the end of the disk (C<-1> is the last sector)."
16256 msgstr ""
16257
16258 # type: textblock
16259 #. type: textblock
16260 #: ../src/guestfs-actions.pod:5059
16261 msgid ""
16262 "Creating a partition which covers the whole disk is not so easy.  Use "
16263 "C<guestfs_part_disk> to do that."
16264 msgstr ""
16265
16266 # type: textblock
16267 #. type: textblock
16268 #: ../src/guestfs-actions.pod:5064 ../src/guestfs-actions.pod:5102
16269 #: ../src/guestfs-actions.pod:5155 ../src/guestfs-actions.pod:5233
16270 #: ../src/guestfs-actions.pod:5271 ../src/guestfs-actions.pod:5290
16271 #: ../src/guestfs-actions.pod:5330
16272 msgid "(Added in 1.0.78)"
16273 msgstr ""
16274
16275 # type: =head2
16276 #. type: =head2
16277 #: ../src/guestfs-actions.pod:5066
16278 msgid "guestfs_part_del"
16279 msgstr ""
16280
16281 # type: verbatim
16282 #. type: verbatim
16283 #: ../src/guestfs-actions.pod:5068
16284 #, no-wrap
16285 msgid ""
16286 " int\n"
16287 " guestfs_part_del (guestfs_h *g,\n"
16288 "                   const char *device,\n"
16289 "                   int partnum);\n"
16290 "\n"
16291 msgstr ""
16292
16293 # type: textblock
16294 #. type: textblock
16295 #: ../src/guestfs-actions.pod:5073 ../fish/guestfish-actions.pod:3367
16296 msgid "This command deletes the partition numbered C<partnum> on C<device>."
16297 msgstr ""
16298
16299 # type: textblock
16300 #. type: textblock
16301 #: ../src/guestfs-actions.pod:5075 ../fish/guestfish-actions.pod:3369
16302 msgid ""
16303 "Note that in the case of MBR partitioning, deleting an extended partition "
16304 "also deletes any logical partitions it contains."
16305 msgstr ""
16306
16307 # type: =head2
16308 #. type: =head2
16309 #: ../src/guestfs-actions.pod:5083
16310 msgid "guestfs_part_disk"
16311 msgstr ""
16312
16313 # type: verbatim
16314 #. type: verbatim
16315 #: ../src/guestfs-actions.pod:5085
16316 #, no-wrap
16317 msgid ""
16318 " int\n"
16319 " guestfs_part_disk (guestfs_h *g,\n"
16320 "                    const char *device,\n"
16321 "                    const char *parttype);\n"
16322 "\n"
16323 msgstr ""
16324
16325 # type: textblock
16326 #. type: textblock
16327 #: ../src/guestfs-actions.pod:5090
16328 msgid ""
16329 "This command is simply a combination of C<guestfs_part_init> followed by "
16330 "C<guestfs_part_add> to create a single primary partition covering the whole "
16331 "disk."
16332 msgstr ""
16333
16334 # type: textblock
16335 #. type: textblock
16336 #: ../src/guestfs-actions.pod:5094
16337 msgid ""
16338 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
16339 "possible values are described in C<guestfs_part_init>."
16340 msgstr ""
16341
16342 # type: =head2
16343 #. type: =head2
16344 #: ../src/guestfs-actions.pod:5104
16345 msgid "guestfs_part_get_bootable"
16346 msgstr ""
16347
16348 # type: verbatim
16349 #. type: verbatim
16350 #: ../src/guestfs-actions.pod:5106
16351 #, no-wrap
16352 msgid ""
16353 " int\n"
16354 " guestfs_part_get_bootable (guestfs_h *g,\n"
16355 "                            const char *device,\n"
16356 "                            int partnum);\n"
16357 "\n"
16358 msgstr ""
16359
16360 # type: textblock
16361 #. type: textblock
16362 #: ../src/guestfs-actions.pod:5111 ../fish/guestfish-actions.pod:3391
16363 msgid ""
16364 "This command returns true if the partition C<partnum> on C<device> has the "
16365 "bootable flag set."
16366 msgstr ""
16367
16368 # type: textblock
16369 #. type: textblock
16370 #: ../src/guestfs-actions.pod:5114
16371 msgid "See also C<guestfs_part_set_bootable>."
16372 msgstr ""
16373
16374 # type: =head2
16375 #. type: =head2
16376 #: ../src/guestfs-actions.pod:5120
16377 msgid "guestfs_part_get_mbr_id"
16378 msgstr ""
16379
16380 # type: verbatim
16381 #. type: verbatim
16382 #: ../src/guestfs-actions.pod:5122
16383 #, no-wrap
16384 msgid ""
16385 " int\n"
16386 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
16387 "                          const char *device,\n"
16388 "                          int partnum);\n"
16389 "\n"
16390 msgstr ""
16391
16392 # type: textblock
16393 #. type: textblock
16394 #: ../src/guestfs-actions.pod:5127 ../fish/guestfish-actions.pod:3400
16395 msgid ""
16396 "Returns the MBR type byte (also known as the ID byte) from the numbered "
16397 "partition C<partnum>."
16398 msgstr ""
16399
16400 # type: textblock
16401 #. type: textblock
16402 #: ../src/guestfs-actions.pod:5130 ../src/guestfs-actions.pod:5306
16403 msgid ""
16404 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
16405 "undefined results for other partition table types (see "
16406 "C<guestfs_part_get_parttype>)."
16407 msgstr ""
16408
16409 # type: =head2
16410 #. type: =head2
16411 #: ../src/guestfs-actions.pod:5138
16412 msgid "guestfs_part_get_parttype"
16413 msgstr ""
16414
16415 # type: verbatim
16416 #. type: verbatim
16417 #: ../src/guestfs-actions.pod:5140
16418 #, no-wrap
16419 msgid ""
16420 " char *\n"
16421 " guestfs_part_get_parttype (guestfs_h *g,\n"
16422 "                            const char *device);\n"
16423 "\n"
16424 msgstr ""
16425
16426 # type: textblock
16427 #. type: textblock
16428 #: ../src/guestfs-actions.pod:5144 ../fish/guestfish-actions.pod:3411
16429 msgid ""
16430 "This command examines the partition table on C<device> and returns the "
16431 "partition table type (format) being used."
16432 msgstr ""
16433
16434 # type: textblock
16435 #. type: textblock
16436 #: ../src/guestfs-actions.pod:5147
16437 msgid ""
16438 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
16439 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
16440 "possible, although unusual.  See C<guestfs_part_init> for a full list."
16441 msgstr ""
16442
16443 # type: =head2
16444 #. type: =head2
16445 #: ../src/guestfs-actions.pod:5157
16446 msgid "guestfs_part_init"
16447 msgstr ""
16448
16449 # type: verbatim
16450 #. type: verbatim
16451 #: ../src/guestfs-actions.pod:5159
16452 #, no-wrap
16453 msgid ""
16454 " int\n"
16455 " guestfs_part_init (guestfs_h *g,\n"
16456 "                    const char *device,\n"
16457 "                    const char *parttype);\n"
16458 "\n"
16459 msgstr ""
16460
16461 # type: textblock
16462 #. type: textblock
16463 #: ../src/guestfs-actions.pod:5164 ../fish/guestfish-actions.pod:3423
16464 msgid ""
16465 "This creates an empty partition table on C<device> of one of the partition "
16466 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
16467 "(for large disks)."
16468 msgstr ""
16469
16470 # type: textblock
16471 #. type: textblock
16472 #: ../src/guestfs-actions.pod:5168
16473 msgid ""
16474 "Initially there are no partitions.  Following this, you should call "
16475 "C<guestfs_part_add> for each partition required."
16476 msgstr ""
16477
16478 # type: textblock
16479 #. type: textblock
16480 #: ../src/guestfs-actions.pod:5171 ../fish/guestfish-actions.pod:3430
16481 msgid "Possible values for C<parttype> are:"
16482 msgstr ""
16483
16484 # type: =item
16485 #. type: =item
16486 #: ../src/guestfs-actions.pod:5175 ../fish/guestfish-actions.pod:3434
16487 msgid "B<efi> | B<gpt>"
16488 msgstr ""
16489
16490 # type: textblock
16491 #. type: textblock
16492 #: ../src/guestfs-actions.pod:5177 ../fish/guestfish-actions.pod:3436
16493 msgid "Intel EFI / GPT partition table."
16494 msgstr ""
16495
16496 # type: textblock
16497 #. type: textblock
16498 #: ../src/guestfs-actions.pod:5179 ../fish/guestfish-actions.pod:3438
16499 msgid ""
16500 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
16501 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
16502 "the C<mbr> format."
16503 msgstr ""
16504
16505 # type: =item
16506 #. type: =item
16507 #: ../src/guestfs-actions.pod:5183 ../fish/guestfish-actions.pod:3442
16508 msgid "B<mbr> | B<msdos>"
16509 msgstr ""
16510
16511 # type: textblock
16512 #. type: textblock
16513 #: ../src/guestfs-actions.pod:5185 ../fish/guestfish-actions.pod:3444
16514 msgid ""
16515 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
16516 "Windows.  This partition type will B<only> work for device sizes up to 2 "
16517 "TB.  For large disks we recommend using C<gpt>."
16518 msgstr ""
16519
16520 # type: textblock
16521 #. type: textblock
16522 #: ../src/guestfs-actions.pod:5192 ../fish/guestfish-actions.pod:3451
16523 msgid ""
16524 "Other partition table types that may work but are not supported include:"
16525 msgstr ""
16526
16527 # type: =item
16528 #. type: =item
16529 #: ../src/guestfs-actions.pod:5197 ../fish/guestfish-actions.pod:3456
16530 msgid "B<aix>"
16531 msgstr ""
16532
16533 # type: textblock
16534 #. type: textblock
16535 #: ../src/guestfs-actions.pod:5199 ../fish/guestfish-actions.pod:3458
16536 msgid "AIX disk labels."
16537 msgstr ""
16538
16539 # type: =item
16540 #. type: =item
16541 #: ../src/guestfs-actions.pod:5201 ../fish/guestfish-actions.pod:3460
16542 msgid "B<amiga> | B<rdb>"
16543 msgstr ""
16544
16545 # type: textblock
16546 #. type: textblock
16547 #: ../src/guestfs-actions.pod:5203 ../fish/guestfish-actions.pod:3462
16548 msgid "Amiga \"Rigid Disk Block\" format."
16549 msgstr ""
16550
16551 # type: =item
16552 #. type: =item
16553 #: ../src/guestfs-actions.pod:5205 ../fish/guestfish-actions.pod:3464
16554 msgid "B<bsd>"
16555 msgstr ""
16556
16557 # type: textblock
16558 #. type: textblock
16559 #: ../src/guestfs-actions.pod:5207 ../fish/guestfish-actions.pod:3466
16560 msgid "BSD disk labels."
16561 msgstr ""
16562
16563 # type: =item
16564 #. type: =item
16565 #: ../src/guestfs-actions.pod:5209 ../fish/guestfish-actions.pod:3468
16566 msgid "B<dasd>"
16567 msgstr ""
16568
16569 # type: textblock
16570 #. type: textblock
16571 #: ../src/guestfs-actions.pod:5211 ../fish/guestfish-actions.pod:3470
16572 msgid "DASD, used on IBM mainframes."
16573 msgstr ""
16574
16575 # type: =item
16576 #. type: =item
16577 #: ../src/guestfs-actions.pod:5213 ../fish/guestfish-actions.pod:3472
16578 msgid "B<dvh>"
16579 msgstr ""
16580
16581 # type: textblock
16582 #. type: textblock
16583 #: ../src/guestfs-actions.pod:5215 ../fish/guestfish-actions.pod:3474
16584 msgid "MIPS/SGI volumes."
16585 msgstr ""
16586
16587 # type: =item
16588 #. type: =item
16589 #: ../src/guestfs-actions.pod:5217 ../fish/guestfish-actions.pod:3476
16590 msgid "B<mac>"
16591 msgstr ""
16592
16593 # type: textblock
16594 #. type: textblock
16595 #: ../src/guestfs-actions.pod:5219 ../fish/guestfish-actions.pod:3478
16596 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
16597 msgstr ""
16598
16599 # type: =item
16600 #. type: =item
16601 #: ../src/guestfs-actions.pod:5221 ../fish/guestfish-actions.pod:3480
16602 msgid "B<pc98>"
16603 msgstr ""
16604
16605 # type: textblock
16606 #. type: textblock
16607 #: ../src/guestfs-actions.pod:5223 ../fish/guestfish-actions.pod:3482
16608 msgid "NEC PC-98 format, common in Japan apparently."
16609 msgstr ""
16610
16611 # type: =item
16612 #. type: =item
16613 #: ../src/guestfs-actions.pod:5225 ../fish/guestfish-actions.pod:3484
16614 msgid "B<sun>"
16615 msgstr ""
16616
16617 # type: textblock
16618 #. type: textblock
16619 #: ../src/guestfs-actions.pod:5227 ../fish/guestfish-actions.pod:3486
16620 msgid "Sun disk labels."
16621 msgstr ""
16622
16623 # type: =head2
16624 #. type: =head2
16625 #: ../src/guestfs-actions.pod:5235
16626 msgid "guestfs_part_list"
16627 msgstr ""
16628
16629 # type: verbatim
16630 #. type: verbatim
16631 #: ../src/guestfs-actions.pod:5237
16632 #, no-wrap
16633 msgid ""
16634 " struct guestfs_partition_list *\n"
16635 " guestfs_part_list (guestfs_h *g,\n"
16636 "                    const char *device);\n"
16637 "\n"
16638 msgstr ""
16639
16640 # type: textblock
16641 #. type: textblock
16642 #: ../src/guestfs-actions.pod:5241 ../fish/guestfish-actions.pod:3494
16643 msgid ""
16644 "This command parses the partition table on C<device> and returns the list of "
16645 "partitions found."
16646 msgstr ""
16647
16648 # type: textblock
16649 #. type: textblock
16650 #: ../src/guestfs-actions.pod:5244 ../fish/guestfish-actions.pod:3497
16651 msgid "The fields in the returned structure are:"
16652 msgstr ""
16653
16654 # type: =item
16655 #. type: =item
16656 #: ../src/guestfs-actions.pod:5248 ../fish/guestfish-actions.pod:3501
16657 msgid "B<part_num>"
16658 msgstr ""
16659
16660 # type: textblock
16661 #. type: textblock
16662 #: ../src/guestfs-actions.pod:5250 ../fish/guestfish-actions.pod:3503
16663 msgid "Partition number, counting from 1."
16664 msgstr ""
16665
16666 # type: =item
16667 #. type: =item
16668 #: ../src/guestfs-actions.pod:5252 ../fish/guestfish-actions.pod:3505
16669 msgid "B<part_start>"
16670 msgstr ""
16671
16672 # type: textblock
16673 #. type: textblock
16674 #: ../src/guestfs-actions.pod:5254
16675 msgid ""
16676 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
16677 "the device's sector size, see C<guestfs_blockdev_getss>."
16678 msgstr ""
16679
16680 # type: =item
16681 #. type: =item
16682 #: ../src/guestfs-actions.pod:5257 ../fish/guestfish-actions.pod:3510
16683 msgid "B<part_end>"
16684 msgstr ""
16685
16686 # type: textblock
16687 #. type: textblock
16688 #: ../src/guestfs-actions.pod:5259 ../fish/guestfish-actions.pod:3512
16689 msgid "End of the partition in bytes."
16690 msgstr ""
16691
16692 # type: =item
16693 #. type: =item
16694 #: ../src/guestfs-actions.pod:5261 ../fish/guestfish-actions.pod:3514
16695 msgid "B<part_size>"
16696 msgstr ""
16697
16698 # type: textblock
16699 #. type: textblock
16700 #: ../src/guestfs-actions.pod:5263 ../fish/guestfish-actions.pod:3516
16701 msgid "Size of the partition in bytes."
16702 msgstr ""
16703
16704 # type: textblock
16705 #. type: textblock
16706 #: ../src/guestfs-actions.pod:5267
16707 msgid ""
16708 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
16709 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
16710 "use>."
16711 msgstr ""
16712
16713 # type: =head2
16714 #. type: =head2
16715 #: ../src/guestfs-actions.pod:5273
16716 msgid "guestfs_part_set_bootable"
16717 msgstr ""
16718
16719 # type: verbatim
16720 #. type: verbatim
16721 #: ../src/guestfs-actions.pod:5275
16722 #, no-wrap
16723 msgid ""
16724 " int\n"
16725 " guestfs_part_set_bootable (guestfs_h *g,\n"
16726 "                            const char *device,\n"
16727 "                            int partnum,\n"
16728 "                            int bootable);\n"
16729 "\n"
16730 msgstr ""
16731
16732 # type: textblock
16733 #. type: textblock
16734 #: ../src/guestfs-actions.pod:5281 ../fish/guestfish-actions.pod:3524
16735 msgid ""
16736 "This sets the bootable flag on partition numbered C<partnum> on device "
16737 "C<device>.  Note that partitions are numbered from 1."
16738 msgstr ""
16739
16740 # type: textblock
16741 #. type: textblock
16742 #: ../src/guestfs-actions.pod:5284 ../fish/guestfish-actions.pod:3527
16743 msgid ""
16744 "The bootable flag is used by some operating systems (notably Windows) to "
16745 "determine which partition to boot from.  It is by no means universally "
16746 "recognized."
16747 msgstr ""
16748
16749 # type: =head2
16750 #. type: =head2
16751 #: ../src/guestfs-actions.pod:5292
16752 msgid "guestfs_part_set_mbr_id"
16753 msgstr ""
16754
16755 # type: verbatim
16756 #. type: verbatim
16757 #: ../src/guestfs-actions.pod:5294
16758 #, no-wrap
16759 msgid ""
16760 " int\n"
16761 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
16762 "                          const char *device,\n"
16763 "                          int partnum,\n"
16764 "                          int idbyte);\n"
16765 "\n"
16766 msgstr ""
16767
16768 # type: textblock
16769 #. type: textblock
16770 #: ../src/guestfs-actions.pod:5300 ../fish/guestfish-actions.pod:3535
16771 msgid ""
16772 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
16773 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
16774 "documentation are in fact hexadecimal numbers, but usually documented "
16775 "without any leading \"0x\" which might be confusing."
16776 msgstr ""
16777
16778 # type: =head2
16779 #. type: =head2
16780 #: ../src/guestfs-actions.pod:5314
16781 msgid "guestfs_part_set_name"
16782 msgstr ""
16783
16784 # type: verbatim
16785 #. type: verbatim
16786 #: ../src/guestfs-actions.pod:5316
16787 #, no-wrap
16788 msgid ""
16789 " int\n"
16790 " guestfs_part_set_name (guestfs_h *g,\n"
16791 "                        const char *device,\n"
16792 "                        int partnum,\n"
16793 "                        const char *name);\n"
16794 "\n"
16795 msgstr ""
16796
16797 # type: textblock
16798 #. type: textblock
16799 #: ../src/guestfs-actions.pod:5322 ../fish/guestfish-actions.pod:3549
16800 msgid ""
16801 "This sets the partition name on partition numbered C<partnum> on device "
16802 "C<device>.  Note that partitions are numbered from 1."
16803 msgstr ""
16804
16805 # type: textblock
16806 #. type: textblock
16807 #: ../src/guestfs-actions.pod:5325 ../fish/guestfish-actions.pod:3552
16808 msgid ""
16809 "The partition name can only be set on certain types of partition table.  "
16810 "This works on C<gpt> but not on C<mbr> partitions."
16811 msgstr ""
16812
16813 # type: =head2
16814 #. type: =head2
16815 #: ../src/guestfs-actions.pod:5332
16816 msgid "guestfs_part_to_dev"
16817 msgstr ""
16818
16819 # type: verbatim
16820 #. type: verbatim
16821 #: ../src/guestfs-actions.pod:5334
16822 #, no-wrap
16823 msgid ""
16824 " char *\n"
16825 " guestfs_part_to_dev (guestfs_h *g,\n"
16826 "                      const char *partition);\n"
16827 "\n"
16828 msgstr ""
16829
16830 # type: textblock
16831 #. type: textblock
16832 #: ../src/guestfs-actions.pod:5338 ../fish/guestfish-actions.pod:3559
16833 msgid ""
16834 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
16835 "partition number, returning the device name (eg. \"/dev/sdb\")."
16836 msgstr ""
16837
16838 # type: textblock
16839 #. type: textblock
16840 #: ../src/guestfs-actions.pod:5342
16841 msgid ""
16842 "The named partition must exist, for example as a string returned from "
16843 "C<guestfs_list_partitions>."
16844 msgstr ""
16845
16846 # type: =head2
16847 #. type: =head2
16848 #: ../src/guestfs-actions.pod:5350
16849 msgid "guestfs_ping_daemon"
16850 msgstr ""
16851
16852 # type: verbatim
16853 #. type: verbatim
16854 #: ../src/guestfs-actions.pod:5352
16855 #, no-wrap
16856 msgid ""
16857 " int\n"
16858 " guestfs_ping_daemon (guestfs_h *g);\n"
16859 "\n"
16860 msgstr ""
16861
16862 # type: textblock
16863 #. type: textblock
16864 #: ../src/guestfs-actions.pod:5355 ../fish/guestfish-actions.pod:3570
16865 msgid ""
16866 "This is a test probe into the guestfs daemon running inside the qemu "
16867 "subprocess.  Calling this function checks that the daemon responds to the "
16868 "ping message, without affecting the daemon or attached block device(s) in "
16869 "any other way."
16870 msgstr ""
16871
16872 # type: =head2
16873 #. type: =head2
16874 #: ../src/guestfs-actions.pod:5364
16875 msgid "guestfs_pread"
16876 msgstr ""
16877
16878 # type: verbatim
16879 #. type: verbatim
16880 #: ../src/guestfs-actions.pod:5366
16881 #, no-wrap
16882 msgid ""
16883 " char *\n"
16884 " guestfs_pread (guestfs_h *g,\n"
16885 "                const char *path,\n"
16886 "                int count,\n"
16887 "                int64_t offset,\n"
16888 "                size_t *size_r);\n"
16889 "\n"
16890 msgstr ""
16891
16892 # type: textblock
16893 #. type: textblock
16894 #: ../src/guestfs-actions.pod:5373 ../fish/guestfish-actions.pod:3579
16895 msgid ""
16896 "This command lets you read part of a file.  It reads C<count> bytes of the "
16897 "file, starting at C<offset>, from file C<path>."
16898 msgstr ""
16899
16900 # type: textblock
16901 #. type: textblock
16902 #: ../src/guestfs-actions.pod:5376 ../src/guestfs-actions.pod:5402
16903 #: ../fish/guestfish-actions.pod:3582 ../fish/guestfish-actions.pod:3597
16904 msgid ""
16905 "This may read fewer bytes than requested.  For further details see the "
16906 "L<pread(2)> system call."
16907 msgstr ""
16908
16909 # type: textblock
16910 #. type: textblock
16911 #: ../src/guestfs-actions.pod:5379
16912 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
16913 msgstr ""
16914
16915 # type: =head2
16916 #. type: =head2
16917 #: ../src/guestfs-actions.pod:5390
16918 msgid "guestfs_pread_device"
16919 msgstr ""
16920
16921 # type: verbatim
16922 #. type: verbatim
16923 #: ../src/guestfs-actions.pod:5392
16924 #, no-wrap
16925 msgid ""
16926 " char *\n"
16927 " guestfs_pread_device (guestfs_h *g,\n"
16928 "                       const char *device,\n"
16929 "                       int count,\n"
16930 "                       int64_t offset,\n"
16931 "                       size_t *size_r);\n"
16932 "\n"
16933 msgstr ""
16934
16935 # type: textblock
16936 #. type: textblock
16937 #: ../src/guestfs-actions.pod:5399 ../fish/guestfish-actions.pod:3594
16938 msgid ""
16939 "This command lets you read part of a file.  It reads C<count> bytes of "
16940 "C<device>, starting at C<offset>."
16941 msgstr ""
16942
16943 # type: textblock
16944 #. type: textblock
16945 #: ../src/guestfs-actions.pod:5405
16946 msgid "See also C<guestfs_pread>."
16947 msgstr ""
16948
16949 # type: textblock
16950 #. type: textblock
16951 #: ../src/guestfs-actions.pod:5414
16952 msgid "(Added in 1.5.21)"
16953 msgstr ""
16954
16955 # type: =head2
16956 #. type: =head2
16957 #: ../src/guestfs-actions.pod:5416
16958 msgid "guestfs_pvcreate"
16959 msgstr ""
16960
16961 # type: verbatim
16962 #. type: verbatim
16963 #: ../src/guestfs-actions.pod:5418
16964 #, no-wrap
16965 msgid ""
16966 " int\n"
16967 " guestfs_pvcreate (guestfs_h *g,\n"
16968 "                   const char *device);\n"
16969 "\n"
16970 msgstr ""
16971
16972 # type: textblock
16973 #. type: textblock
16974 #: ../src/guestfs-actions.pod:5422 ../fish/guestfish-actions.pod:3609
16975 msgid ""
16976 "This creates an LVM physical volume on the named C<device>, where C<device> "
16977 "should usually be a partition name such as C</dev/sda1>."
16978 msgstr ""
16979
16980 # type: =head2
16981 #. type: =head2
16982 #: ../src/guestfs-actions.pod:5430
16983 msgid "guestfs_pvremove"
16984 msgstr ""
16985
16986 # type: verbatim
16987 #. type: verbatim
16988 #: ../src/guestfs-actions.pod:5432
16989 #, no-wrap
16990 msgid ""
16991 " int\n"
16992 " guestfs_pvremove (guestfs_h *g,\n"
16993 "                   const char *device);\n"
16994 "\n"
16995 msgstr ""
16996
16997 # type: textblock
16998 #. type: textblock
16999 #: ../src/guestfs-actions.pod:5436 ../fish/guestfish-actions.pod:3617
17000 msgid ""
17001 "This wipes a physical volume C<device> so that LVM will no longer recognise "
17002 "it."
17003 msgstr ""
17004
17005 # type: textblock
17006 #. type: textblock
17007 #: ../src/guestfs-actions.pod:5439 ../fish/guestfish-actions.pod:3620
17008 msgid ""
17009 "The implementation uses the C<pvremove> command which refuses to wipe "
17010 "physical volumes that contain any volume groups, so you have to remove those "
17011 "first."
17012 msgstr ""
17013
17014 # type: =head2
17015 #. type: =head2
17016 #: ../src/guestfs-actions.pod:5447
17017 msgid "guestfs_pvresize"
17018 msgstr ""
17019
17020 # type: verbatim
17021 #. type: verbatim
17022 #: ../src/guestfs-actions.pod:5449
17023 #, no-wrap
17024 msgid ""
17025 " int\n"
17026 " guestfs_pvresize (guestfs_h *g,\n"
17027 "                   const char *device);\n"
17028 "\n"
17029 msgstr ""
17030
17031 # type: textblock
17032 #. type: textblock
17033 #: ../src/guestfs-actions.pod:5453 ../fish/guestfish-actions.pod:3628
17034 msgid ""
17035 "This resizes (expands or shrinks) an existing LVM physical volume to match "
17036 "the new size of the underlying device."
17037 msgstr ""
17038
17039 # type: =head2
17040 #. type: =head2
17041 #: ../src/guestfs-actions.pod:5460
17042 msgid "guestfs_pvresize_size"
17043 msgstr ""
17044
17045 # type: verbatim
17046 #. type: verbatim
17047 #: ../src/guestfs-actions.pod:5462
17048 #, no-wrap
17049 msgid ""
17050 " int\n"
17051 " guestfs_pvresize_size (guestfs_h *g,\n"
17052 "                        const char *device,\n"
17053 "                        int64_t size);\n"
17054 "\n"
17055 msgstr ""
17056
17057 # type: textblock
17058 #. type: textblock
17059 #: ../src/guestfs-actions.pod:5467
17060 msgid ""
17061 "This command is the same as C<guestfs_pvresize> except that it allows you to "
17062 "specify the new size (in bytes) explicitly."
17063 msgstr ""
17064
17065 # type: =head2
17066 #. type: =head2
17067 #: ../src/guestfs-actions.pod:5474
17068 msgid "guestfs_pvs"
17069 msgstr ""
17070
17071 # type: verbatim
17072 #. type: verbatim
17073 #: ../src/guestfs-actions.pod:5476
17074 #, no-wrap
17075 msgid ""
17076 " char **\n"
17077 " guestfs_pvs (guestfs_h *g);\n"
17078 "\n"
17079 msgstr ""
17080
17081 # type: textblock
17082 #. type: textblock
17083 #: ../src/guestfs-actions.pod:5479 ../fish/guestfish-actions.pod:3642
17084 msgid ""
17085 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
17086 "(8)> command."
17087 msgstr ""
17088
17089 # type: textblock
17090 #. type: textblock
17091 #: ../src/guestfs-actions.pod:5482 ../fish/guestfish-actions.pod:3645
17092 msgid ""
17093 "This returns a list of just the device names that contain PVs (eg. C</dev/"
17094 "sda2>)."
17095 msgstr ""
17096
17097 # type: textblock
17098 #. type: textblock
17099 #: ../src/guestfs-actions.pod:5485
17100 msgid "See also C<guestfs_pvs_full>."
17101 msgstr ""
17102
17103 # type: =head2
17104 #. type: =head2
17105 #: ../src/guestfs-actions.pod:5493
17106 msgid "guestfs_pvs_full"
17107 msgstr ""
17108
17109 # type: verbatim
17110 #. type: verbatim
17111 #: ../src/guestfs-actions.pod:5495
17112 #, no-wrap
17113 msgid ""
17114 " struct guestfs_lvm_pv_list *\n"
17115 " guestfs_pvs_full (guestfs_h *g);\n"
17116 "\n"
17117 msgstr ""
17118
17119 # type: textblock
17120 #. type: textblock
17121 #: ../src/guestfs-actions.pod:5498 ../fish/guestfish-actions.pod:3654
17122 msgid ""
17123 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
17124 "(8)> command.  The \"full\" version includes all fields."
17125 msgstr ""
17126
17127 # type: textblock
17128 #. type: textblock
17129 #: ../src/guestfs-actions.pod:5501
17130 msgid ""
17131 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
17132 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
17133 msgstr ""
17134
17135 # type: =head2
17136 #. type: =head2
17137 #: ../src/guestfs-actions.pod:5507
17138 msgid "guestfs_pvuuid"
17139 msgstr ""
17140
17141 # type: verbatim
17142 #. type: verbatim
17143 #: ../src/guestfs-actions.pod:5509
17144 #, no-wrap
17145 msgid ""
17146 " char *\n"
17147 " guestfs_pvuuid (guestfs_h *g,\n"
17148 "                 const char *device);\n"
17149 "\n"
17150 msgstr ""
17151
17152 # type: textblock
17153 #. type: textblock
17154 #: ../src/guestfs-actions.pod:5513 ../fish/guestfish-actions.pod:3661
17155 msgid "This command returns the UUID of the LVM PV C<device>."
17156 msgstr ""
17157
17158 # type: =head2
17159 #. type: =head2
17160 #: ../src/guestfs-actions.pod:5520
17161 msgid "guestfs_pwrite"
17162 msgstr ""
17163
17164 # type: verbatim
17165 #. type: verbatim
17166 #: ../src/guestfs-actions.pod:5522
17167 #, no-wrap
17168 msgid ""
17169 " int\n"
17170 " guestfs_pwrite (guestfs_h *g,\n"
17171 "                 const char *path,\n"
17172 "                 const char *content,\n"
17173 "                 size_t content_size,\n"
17174 "                 int64_t offset);\n"
17175 "\n"
17176 msgstr ""
17177
17178 # type: textblock
17179 #. type: textblock
17180 #: ../src/guestfs-actions.pod:5529 ../fish/guestfish-actions.pod:3667
17181 msgid ""
17182 "This command writes to part of a file.  It writes the data buffer C<content> "
17183 "to the file C<path> starting at offset C<offset>."
17184 msgstr ""
17185
17186 # type: textblock
17187 #. type: textblock
17188 #: ../src/guestfs-actions.pod:5532 ../fish/guestfish-actions.pod:3670
17189 msgid ""
17190 "This command implements the L<pwrite(2)> system call, and like that system "
17191 "call it may not write the full data requested.  The return value is the "
17192 "number of bytes that were actually written to the file.  This could even be "
17193 "0, although short writes are unlikely for regular files in ordinary "
17194 "circumstances."
17195 msgstr ""
17196
17197 # type: textblock
17198 #. type: textblock
17199 #: ../src/guestfs-actions.pod:5538
17200 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
17201 msgstr ""
17202
17203 # type: =head2
17204 #. type: =head2
17205 #: ../src/guestfs-actions.pod:5547
17206 msgid "guestfs_pwrite_device"
17207 msgstr ""
17208
17209 # type: verbatim
17210 #. type: verbatim
17211 #: ../src/guestfs-actions.pod:5549
17212 #, no-wrap
17213 msgid ""
17214 " int\n"
17215 " guestfs_pwrite_device (guestfs_h *g,\n"
17216 "                        const char *device,\n"
17217 "                        const char *content,\n"
17218 "                        size_t content_size,\n"
17219 "                        int64_t offset);\n"
17220 "\n"
17221 msgstr ""
17222
17223 # type: textblock
17224 #. type: textblock
17225 #: ../src/guestfs-actions.pod:5556 ../fish/guestfish-actions.pod:3685
17226 msgid ""
17227 "This command writes to part of a device.  It writes the data buffer "
17228 "C<content> to C<device> starting at offset C<offset>."
17229 msgstr ""
17230
17231 # type: textblock
17232 #. type: textblock
17233 #: ../src/guestfs-actions.pod:5559 ../fish/guestfish-actions.pod:3688
17234 msgid ""
17235 "This command implements the L<pwrite(2)> system call, and like that system "
17236 "call it may not write the full data requested (although short writes to disk "
17237 "devices and partitions are probably impossible with standard Linux kernels)."
17238 msgstr ""
17239
17240 # type: textblock
17241 #. type: textblock
17242 #: ../src/guestfs-actions.pod:5564
17243 msgid "See also C<guestfs_pwrite>."
17244 msgstr ""
17245
17246 # type: textblock
17247 #. type: textblock
17248 #: ../src/guestfs-actions.pod:5571
17249 msgid "(Added in 1.5.20)"
17250 msgstr ""
17251
17252 # type: =head2
17253 #. type: =head2
17254 #: ../src/guestfs-actions.pod:5573
17255 msgid "guestfs_read_file"
17256 msgstr ""
17257
17258 # type: verbatim
17259 #. type: verbatim
17260 #: ../src/guestfs-actions.pod:5575
17261 #, no-wrap
17262 msgid ""
17263 " char *\n"
17264 " guestfs_read_file (guestfs_h *g,\n"
17265 "                    const char *path,\n"
17266 "                    size_t *size_r);\n"
17267 "\n"
17268 msgstr ""
17269
17270 # type: textblock
17271 #. type: textblock
17272 #: ../src/guestfs-actions.pod:5580 ../fish/guestfish-actions.pod:3702
17273 msgid "This calls returns the contents of the file C<path> as a buffer."
17274 msgstr ""
17275
17276 # type: textblock
17277 #. type: textblock
17278 #: ../src/guestfs-actions.pod:5583
17279 msgid ""
17280 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
17281 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
17282 "function is limited in the total size of file that can be handled."
17283 msgstr ""
17284
17285 # type: textblock
17286 #. type: textblock
17287 #: ../src/guestfs-actions.pod:5595
17288 msgid "(Added in 1.0.63)"
17289 msgstr ""
17290
17291 # type: =head2
17292 #. type: =head2
17293 #: ../src/guestfs-actions.pod:5597
17294 msgid "guestfs_read_lines"
17295 msgstr ""
17296
17297 # type: verbatim
17298 #. type: verbatim
17299 #: ../src/guestfs-actions.pod:5599
17300 #, no-wrap
17301 msgid ""
17302 " char **\n"
17303 " guestfs_read_lines (guestfs_h *g,\n"
17304 "                     const char *path);\n"
17305 "\n"
17306 msgstr ""
17307
17308 # type: textblock
17309 #. type: textblock
17310 #: ../src/guestfs-actions.pod:5605 ../fish/guestfish-actions.pod:3719
17311 msgid ""
17312 "The file contents are returned as a list of lines.  Trailing C<LF> and "
17313 "C<CRLF> character sequences are I<not> returned."
17314 msgstr ""
17315
17316 # type: textblock
17317 #. type: textblock
17318 #: ../src/guestfs-actions.pod:5608
17319 msgid ""
17320 "Note that this function cannot correctly handle binary files (specifically, "
17321 "files containing C<\\0> character which is treated as end of line).  For "
17322 "those you need to use the C<guestfs_read_file> function which has a more "
17323 "complex interface."
17324 msgstr ""
17325
17326 # type: =head2
17327 #. type: =head2
17328 #: ../src/guestfs-actions.pod:5619
17329 msgid "guestfs_readdir"
17330 msgstr ""
17331
17332 # type: verbatim
17333 #. type: verbatim
17334 #: ../src/guestfs-actions.pod:5621
17335 #, no-wrap
17336 msgid ""
17337 " struct guestfs_dirent_list *\n"
17338 " guestfs_readdir (guestfs_h *g,\n"
17339 "                  const char *dir);\n"
17340 "\n"
17341 msgstr ""
17342
17343 # type: textblock
17344 #. type: textblock
17345 #: ../src/guestfs-actions.pod:5625 ../fish/guestfish-actions.pod:3731
17346 msgid "This returns the list of directory entries in directory C<dir>."
17347 msgstr ""
17348
17349 # type: textblock
17350 #. type: textblock
17351 #: ../src/guestfs-actions.pod:5627 ../fish/guestfish-actions.pod:3733
17352 msgid ""
17353 "All entries in the directory are returned, including C<.> and C<..>.  The "
17354 "entries are I<not> sorted, but returned in the same order as the underlying "
17355 "filesystem."
17356 msgstr ""
17357
17358 # type: textblock
17359 #. type: textblock
17360 #: ../src/guestfs-actions.pod:5631 ../fish/guestfish-actions.pod:3737
17361 msgid ""
17362 "Also this call returns basic file type information about each file.  The "
17363 "C<ftyp> field will contain one of the following characters:"
17364 msgstr ""
17365
17366 # type: =item
17367 #. type: =item
17368 #: ../src/guestfs-actions.pod:5636 ../fish/guestfish-actions.pod:3742
17369 msgid "'b'"
17370 msgstr ""
17371
17372 # type: textblock
17373 #. type: textblock
17374 #: ../src/guestfs-actions.pod:5638 ../fish/guestfish-actions.pod:3744
17375 msgid "Block special"
17376 msgstr ""
17377
17378 # type: =item
17379 #. type: =item
17380 #: ../src/guestfs-actions.pod:5640 ../fish/guestfish-actions.pod:3746
17381 msgid "'c'"
17382 msgstr ""
17383
17384 # type: textblock
17385 #. type: textblock
17386 #: ../src/guestfs-actions.pod:5642 ../fish/guestfish-actions.pod:3748
17387 msgid "Char special"
17388 msgstr ""
17389
17390 # type: =item
17391 #. type: =item
17392 #: ../src/guestfs-actions.pod:5644 ../fish/guestfish-actions.pod:3750
17393 msgid "'d'"
17394 msgstr ""
17395
17396 # type: textblock
17397 #. type: textblock
17398 #: ../src/guestfs-actions.pod:5646 ../fish/guestfish-actions.pod:3752
17399 msgid "Directory"
17400 msgstr ""
17401
17402 # type: =item
17403 #. type: =item
17404 #: ../src/guestfs-actions.pod:5648 ../fish/guestfish-actions.pod:3754
17405 msgid "'f'"
17406 msgstr ""
17407
17408 # type: textblock
17409 #. type: textblock
17410 #: ../src/guestfs-actions.pod:5650 ../fish/guestfish-actions.pod:3756
17411 msgid "FIFO (named pipe)"
17412 msgstr ""
17413
17414 # type: =item
17415 #. type: =item
17416 #: ../src/guestfs-actions.pod:5652 ../fish/guestfish-actions.pod:3758
17417 msgid "'l'"
17418 msgstr ""
17419
17420 # type: textblock
17421 #. type: textblock
17422 #: ../src/guestfs-actions.pod:5654 ../fish/guestfish-actions.pod:3760
17423 msgid "Symbolic link"
17424 msgstr ""
17425
17426 # type: =item
17427 #. type: =item
17428 #: ../src/guestfs-actions.pod:5656 ../fish/guestfish-actions.pod:3762
17429 msgid "'r'"
17430 msgstr ""
17431
17432 # type: textblock
17433 #. type: textblock
17434 #: ../src/guestfs-actions.pod:5658 ../fish/guestfish-actions.pod:3764
17435 msgid "Regular file"
17436 msgstr ""
17437
17438 # type: =item
17439 #. type: =item
17440 #: ../src/guestfs-actions.pod:5660 ../fish/guestfish-actions.pod:3766
17441 msgid "'s'"
17442 msgstr ""
17443
17444 # type: textblock
17445 #. type: textblock
17446 #: ../src/guestfs-actions.pod:5662 ../fish/guestfish-actions.pod:3768
17447 msgid "Socket"
17448 msgstr ""
17449
17450 # type: =item
17451 #. type: =item
17452 #: ../src/guestfs-actions.pod:5664 ../fish/guestfish-actions.pod:3770
17453 msgid "'u'"
17454 msgstr ""
17455
17456 # type: textblock
17457 #. type: textblock
17458 #: ../src/guestfs-actions.pod:5666 ../fish/guestfish-actions.pod:3772
17459 msgid "Unknown file type"
17460 msgstr ""
17461
17462 # type: =item
17463 #. type: =item
17464 #: ../src/guestfs-actions.pod:5668 ../fish/guestfish-actions.pod:3774
17465 msgid "'?'"
17466 msgstr ""
17467
17468 # type: textblock
17469 #. type: textblock
17470 #: ../src/guestfs-actions.pod:5670 ../fish/guestfish-actions.pod:3776
17471 msgid ""
17472 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
17473 msgstr ""
17474
17475 # type: textblock
17476 #. type: textblock
17477 #: ../src/guestfs-actions.pod:5675
17478 msgid ""
17479 "This function is primarily intended for use by programs.  To get a simple "
17480 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
17481 "consumption, use C<guestfs_ll>."
17482 msgstr ""
17483
17484 # type: textblock
17485 #. type: textblock
17486 #: ../src/guestfs-actions.pod:5679
17487 msgid ""
17488 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
17489 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
17490 msgstr ""
17491
17492 # type: =head2
17493 #. type: =head2
17494 #: ../src/guestfs-actions.pod:5685
17495 msgid "guestfs_readlink"
17496 msgstr ""
17497
17498 # type: verbatim
17499 #. type: verbatim
17500 #: ../src/guestfs-actions.pod:5687
17501 #, no-wrap
17502 msgid ""
17503 " char *\n"
17504 " guestfs_readlink (guestfs_h *g,\n"
17505 "                   const char *path);\n"
17506 "\n"
17507 msgstr ""
17508
17509 # type: textblock
17510 #. type: textblock
17511 #: ../src/guestfs-actions.pod:5691 ../fish/guestfish-actions.pod:3789
17512 msgid "This command reads the target of a symbolic link."
17513 msgstr ""
17514
17515 # type: =head2
17516 #. type: =head2
17517 #: ../src/guestfs-actions.pod:5698
17518 msgid "guestfs_readlinklist"
17519 msgstr ""
17520
17521 # type: verbatim
17522 #. type: verbatim
17523 #: ../src/guestfs-actions.pod:5700
17524 #, no-wrap
17525 msgid ""
17526 " char **\n"
17527 " guestfs_readlinklist (guestfs_h *g,\n"
17528 "                       const char *path,\n"
17529 "                       char *const *names);\n"
17530 "\n"
17531 msgstr ""
17532
17533 # type: textblock
17534 #. type: textblock
17535 #: ../src/guestfs-actions.pod:5705 ../fish/guestfish-actions.pod:3795
17536 msgid ""
17537 "This call allows you to do a C<readlink> operation on multiple files, where "
17538 "all files are in the directory C<path>.  C<names> is the list of files from "
17539 "this directory."
17540 msgstr ""
17541
17542 # type: textblock
17543 #. type: textblock
17544 #: ../src/guestfs-actions.pod:5709 ../fish/guestfish-actions.pod:3799
17545 msgid ""
17546 "On return you get a list of strings, with a one-to-one correspondence to the "
17547 "C<names> list.  Each string is the value of the symbolic link."
17548 msgstr ""
17549
17550 # type: textblock
17551 #. type: textblock
17552 #: ../src/guestfs-actions.pod:5713 ../fish/guestfish-actions.pod:3803
17553 msgid ""
17554 "If the C<readlink(2)> operation fails on any name, then the corresponding "
17555 "result string is the empty string C<\"\">.  However the whole operation is "
17556 "completed even if there were C<readlink(2)> errors, and so you can call this "
17557 "function with names where you don't know if they are symbolic links already "
17558 "(albeit slightly less efficient)."
17559 msgstr ""
17560
17561 # type: textblock
17562 #. type: textblock
17563 #: ../src/guestfs-actions.pod:5720 ../fish/guestfish-actions.pod:3810
17564 msgid ""
17565 "This call is intended for programs that want to efficiently list a directory "
17566 "contents without making many round-trips.  Very long directory listings "
17567 "might cause the protocol message size to be exceeded, causing this call to "
17568 "fail.  The caller must split up such requests into smaller groups of names."
17569 msgstr ""
17570
17571 # type: =head2
17572 #. type: =head2
17573 #: ../src/guestfs-actions.pod:5733
17574 msgid "guestfs_realpath"
17575 msgstr ""
17576
17577 # type: verbatim
17578 #. type: verbatim
17579 #: ../src/guestfs-actions.pod:5735
17580 #, no-wrap
17581 msgid ""
17582 " char *\n"
17583 " guestfs_realpath (guestfs_h *g,\n"
17584 "                   const char *path);\n"
17585 "\n"
17586 msgstr ""
17587
17588 # type: textblock
17589 #. type: textblock
17590 #: ../src/guestfs-actions.pod:5739 ../fish/guestfish-actions.pod:3821
17591 msgid ""
17592 "Return the canonicalized absolute pathname of C<path>.  The returned path "
17593 "has no C<.>, C<..> or symbolic link path elements."
17594 msgstr ""
17595
17596 # type: =head2
17597 #. type: =head2
17598 #: ../src/guestfs-actions.pod:5747
17599 msgid "guestfs_removexattr"
17600 msgstr ""
17601
17602 # type: verbatim
17603 #. type: verbatim
17604 #: ../src/guestfs-actions.pod:5749
17605 #, no-wrap
17606 msgid ""
17607 " int\n"
17608 " guestfs_removexattr (guestfs_h *g,\n"
17609 "                      const char *xattr,\n"
17610 "                      const char *path);\n"
17611 "\n"
17612 msgstr ""
17613
17614 # type: textblock
17615 #. type: textblock
17616 #: ../src/guestfs-actions.pod:5754 ../fish/guestfish-actions.pod:3828
17617 msgid ""
17618 "This call removes the extended attribute named C<xattr> of the file C<path>."
17619 msgstr ""
17620
17621 # type: textblock
17622 #. type: textblock
17623 #: ../src/guestfs-actions.pod:5757
17624 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
17625 msgstr ""
17626
17627 # type: =head2
17628 #. type: =head2
17629 #: ../src/guestfs-actions.pod:5763
17630 msgid "guestfs_resize2fs"
17631 msgstr ""
17632
17633 # type: verbatim
17634 #. type: verbatim
17635 #: ../src/guestfs-actions.pod:5765
17636 #, no-wrap
17637 msgid ""
17638 " int\n"
17639 " guestfs_resize2fs (guestfs_h *g,\n"
17640 "                    const char *device);\n"
17641 "\n"
17642 msgstr ""
17643
17644 # type: textblock
17645 #. type: textblock
17646 #: ../src/guestfs-actions.pod:5769 ../fish/guestfish-actions.pod:3837
17647 msgid ""
17648 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
17649 "underlying device."
17650 msgstr ""
17651
17652 # type: textblock
17653 #. type: textblock
17654 #: ../src/guestfs-actions.pod:5772
17655 msgid ""
17656 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
17657 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
17658 "sometimes gives an error about this and sometimes not.  In any case, it is "
17659 "always safe to call C<guestfs_e2fsck_f> before calling this function."
17660 msgstr ""
17661
17662 #. type: =head2
17663 #: ../src/guestfs-actions.pod:5782
17664 msgid "guestfs_resize2fs_M"
17665 msgstr ""
17666
17667 #. type: verbatim
17668 #: ../src/guestfs-actions.pod:5784
17669 #, no-wrap
17670 msgid ""
17671 " int\n"
17672 " guestfs_resize2fs_M (guestfs_h *g,\n"
17673 "                      const char *device);\n"
17674 "\n"
17675 msgstr ""
17676
17677 #. type: textblock
17678 #: ../src/guestfs-actions.pod:5788
17679 msgid ""
17680 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
17681 "resized to its minimum size.  This works like the I<-M> option to the "
17682 "C<resize2fs> command."
17683 msgstr ""
17684
17685 #. type: textblock
17686 #: ../src/guestfs-actions.pod:5792
17687 msgid ""
17688 "To get the resulting size of the filesystem you should call "
17689 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
17690 "These two numbers, multiplied together, give the resulting size of the "
17691 "minimal filesystem in bytes."
17692 msgstr ""
17693
17694 # type: =head2
17695 #. type: =head2
17696 #: ../src/guestfs-actions.pod:5799
17697 msgid "guestfs_resize2fs_size"
17698 msgstr ""
17699
17700 # type: verbatim
17701 #. type: verbatim
17702 #: ../src/guestfs-actions.pod:5801
17703 #, no-wrap
17704 msgid ""
17705 " int\n"
17706 " guestfs_resize2fs_size (guestfs_h *g,\n"
17707 "                         const char *device,\n"
17708 "                         int64_t size);\n"
17709 "\n"
17710 msgstr ""
17711
17712 # type: textblock
17713 #. type: textblock
17714 #: ../src/guestfs-actions.pod:5806
17715 msgid ""
17716 "This command is the same as C<guestfs_resize2fs> except that it allows you "
17717 "to specify the new size (in bytes) explicitly."
17718 msgstr ""
17719
17720 # type: =head2
17721 #. type: =head2
17722 #: ../src/guestfs-actions.pod:5813
17723 msgid "guestfs_rm"
17724 msgstr ""
17725
17726 # type: verbatim
17727 #. type: verbatim
17728 #: ../src/guestfs-actions.pod:5815
17729 #, no-wrap
17730 msgid ""
17731 " int\n"
17732 " guestfs_rm (guestfs_h *g,\n"
17733 "             const char *path);\n"
17734 "\n"
17735 msgstr ""
17736
17737 # type: textblock
17738 #. type: textblock
17739 #: ../src/guestfs-actions.pod:5819 ../fish/guestfish-actions.pod:3870
17740 msgid "Remove the single file C<path>."
17741 msgstr ""
17742
17743 # type: =head2
17744 #. type: =head2
17745 #: ../src/guestfs-actions.pod:5825
17746 msgid "guestfs_rm_rf"
17747 msgstr ""
17748
17749 # type: verbatim
17750 #. type: verbatim
17751 #: ../src/guestfs-actions.pod:5827
17752 #, no-wrap
17753 msgid ""
17754 " int\n"
17755 " guestfs_rm_rf (guestfs_h *g,\n"
17756 "                const char *path);\n"
17757 "\n"
17758 msgstr ""
17759
17760 # type: textblock
17761 #. type: textblock
17762 #: ../src/guestfs-actions.pod:5831 ../fish/guestfish-actions.pod:3876
17763 msgid ""
17764 "Remove the file or directory C<path>, recursively removing the contents if "
17765 "its a directory.  This is like the C<rm -rf> shell command."
17766 msgstr ""
17767
17768 # type: =head2
17769 #. type: =head2
17770 #: ../src/guestfs-actions.pod:5839
17771 msgid "guestfs_rmdir"
17772 msgstr ""
17773
17774 # type: verbatim
17775 #. type: verbatim
17776 #: ../src/guestfs-actions.pod:5841
17777 #, no-wrap
17778 msgid ""
17779 " int\n"
17780 " guestfs_rmdir (guestfs_h *g,\n"
17781 "                const char *path);\n"
17782 "\n"
17783 msgstr ""
17784
17785 # type: textblock
17786 #. type: textblock
17787 #: ../src/guestfs-actions.pod:5845 ../fish/guestfish-actions.pod:3884
17788 msgid "Remove the single directory C<path>."
17789 msgstr ""
17790
17791 # type: =head2
17792 #. type: =head2
17793 #: ../src/guestfs-actions.pod:5851
17794 msgid "guestfs_rmmountpoint"
17795 msgstr ""
17796
17797 # type: verbatim
17798 #. type: verbatim
17799 #: ../src/guestfs-actions.pod:5853
17800 #, no-wrap
17801 msgid ""
17802 " int\n"
17803 " guestfs_rmmountpoint (guestfs_h *g,\n"
17804 "                       const char *exemptpath);\n"
17805 "\n"
17806 msgstr ""
17807
17808 # type: textblock
17809 #. type: textblock
17810 #: ../src/guestfs-actions.pod:5857
17811 msgid ""
17812 "This calls removes a mountpoint that was previously created with "
17813 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
17814 msgstr ""
17815
17816 # type: =head2
17817 #. type: =head2
17818 #: ../src/guestfs-actions.pod:5865
17819 msgid "guestfs_scrub_device"
17820 msgstr ""
17821
17822 # type: verbatim
17823 #. type: verbatim
17824 #: ../src/guestfs-actions.pod:5867
17825 #, no-wrap
17826 msgid ""
17827 " int\n"
17828 " guestfs_scrub_device (guestfs_h *g,\n"
17829 "                       const char *device);\n"
17830 "\n"
17831 msgstr ""
17832
17833 # type: textblock
17834 #. type: textblock
17835 #: ../src/guestfs-actions.pod:5871 ../fish/guestfish-actions.pod:3898
17836 msgid ""
17837 "This command writes patterns over C<device> to make data retrieval more "
17838 "difficult."
17839 msgstr ""
17840
17841 # type: textblock
17842 #. type: textblock
17843 #: ../src/guestfs-actions.pod:5874 ../src/guestfs-actions.pod:5895
17844 #: ../src/guestfs-actions.pod:5914 ../fish/guestfish-actions.pod:3901
17845 #: ../fish/guestfish-actions.pod:3916 ../fish/guestfish-actions.pod:3929
17846 msgid ""
17847 "It is an interface to the L<scrub(1)> program.  See that manual page for "
17848 "more details."
17849 msgstr ""
17850
17851 # type: textblock
17852 #. type: textblock
17853 #: ../src/guestfs-actions.pod:5882 ../src/guestfs-actions.pod:5900
17854 #: ../src/guestfs-actions.pod:5919
17855 msgid "(Added in 1.0.52)"
17856 msgstr ""
17857
17858 # type: =head2
17859 #. type: =head2
17860 #: ../src/guestfs-actions.pod:5884
17861 msgid "guestfs_scrub_file"
17862 msgstr ""
17863
17864 # type: verbatim
17865 #. type: verbatim
17866 #: ../src/guestfs-actions.pod:5886
17867 #, no-wrap
17868 msgid ""
17869 " int\n"
17870 " guestfs_scrub_file (guestfs_h *g,\n"
17871 "                     const char *file);\n"
17872 "\n"
17873 msgstr ""
17874
17875 # type: textblock
17876 #. type: textblock
17877 #: ../src/guestfs-actions.pod:5890 ../fish/guestfish-actions.pod:3911
17878 msgid ""
17879 "This command writes patterns over a file to make data retrieval more "
17880 "difficult."
17881 msgstr ""
17882
17883 # type: textblock
17884 #. type: textblock
17885 #: ../src/guestfs-actions.pod:5893 ../fish/guestfish-actions.pod:3914
17886 msgid "The file is I<removed> after scrubbing."
17887 msgstr ""
17888
17889 # type: =head2
17890 #. type: =head2
17891 #: ../src/guestfs-actions.pod:5902
17892 msgid "guestfs_scrub_freespace"
17893 msgstr ""
17894
17895 # type: verbatim
17896 #. type: verbatim
17897 #: ../src/guestfs-actions.pod:5904
17898 #, no-wrap
17899 msgid ""
17900 " int\n"
17901 " guestfs_scrub_freespace (guestfs_h *g,\n"
17902 "                          const char *dir);\n"
17903 "\n"
17904 msgstr ""
17905
17906 # type: textblock
17907 #. type: textblock
17908 #: ../src/guestfs-actions.pod:5908
17909 msgid ""
17910 "This command creates the directory C<dir> and then fills it with files until "
17911 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
17912 "and deletes them.  The intention is to scrub any free space on the partition "
17913 "containing C<dir>."
17914 msgstr ""
17915
17916 # type: =head2
17917 #. type: =head2
17918 #: ../src/guestfs-actions.pod:5921
17919 msgid "guestfs_set_append"
17920 msgstr ""
17921
17922 # type: verbatim
17923 #. type: verbatim
17924 #: ../src/guestfs-actions.pod:5923
17925 #, no-wrap
17926 msgid ""
17927 " int\n"
17928 " guestfs_set_append (guestfs_h *g,\n"
17929 "                     const char *append);\n"
17930 "\n"
17931 msgstr ""
17932
17933 # type: textblock
17934 #. type: textblock
17935 #: ../src/guestfs-actions.pod:5927 ../fish/guestfish-actions.pod:3938
17936 msgid ""
17937 "This function is used to add additional options to the guest kernel command "
17938 "line."
17939 msgstr ""
17940
17941 # type: textblock
17942 #. type: textblock
17943 #: ../src/guestfs-actions.pod:5930 ../fish/guestfish-actions.pod:3941
17944 msgid ""
17945 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
17946 "environment variable."
17947 msgstr ""
17948
17949 # type: textblock
17950 #. type: textblock
17951 #: ../src/guestfs-actions.pod:5933 ../fish/guestfish-actions.pod:3944
17952 msgid ""
17953 "Setting C<append> to C<NULL> means I<no> additional options are passed "
17954 "(libguestfs always adds a few of its own)."
17955 msgstr ""
17956
17957 #. type: =head2
17958 #: ../src/guestfs-actions.pod:5940
17959 msgid "guestfs_set_attach_method"
17960 msgstr ""
17961
17962 #. type: verbatim
17963 #: ../src/guestfs-actions.pod:5942
17964 #, no-wrap
17965 msgid ""
17966 " int\n"
17967 " guestfs_set_attach_method (guestfs_h *g,\n"
17968 "                            const char *attachmethod);\n"
17969 "\n"
17970 msgstr ""
17971
17972 #. type: textblock
17973 #: ../src/guestfs-actions.pod:5946 ../fish/guestfish-actions.pod:3953
17974 msgid ""
17975 "Set the method that libguestfs uses to connect to the back end guestfsd "
17976 "daemon.  Possible methods are:"
17977 msgstr ""
17978
17979 #. type: textblock
17980 #: ../src/guestfs-actions.pod:5953 ../fish/guestfish-actions.pod:3960
17981 msgid ""
17982 "Launch an appliance and connect to it.  This is the ordinary method and the "
17983 "default."
17984 msgstr ""
17985
17986 #. type: =item
17987 #: ../src/guestfs-actions.pod:5956 ../fish/guestfish-actions.pod:3963
17988 msgid "C<unix:I<path>>"
17989 msgstr ""
17990
17991 #. type: textblock
17992 #: ../src/guestfs-actions.pod:5958 ../fish/guestfish-actions.pod:3965
17993 msgid "Connect to the Unix domain socket I<path>."
17994 msgstr ""
17995
17996 #. type: textblock
17997 #: ../src/guestfs-actions.pod:5960 ../fish/guestfish-actions.pod:3967
17998 msgid ""
17999 "This method lets you connect to an existing daemon or (using virtio-serial) "
18000 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
18001 "RUNNING DAEMONS>."
18002 msgstr ""
18003
18004 # type: =head2
18005 #. type: =head2
18006 #: ../src/guestfs-actions.pod:5968
18007 msgid "guestfs_set_autosync"
18008 msgstr ""
18009
18010 # type: verbatim
18011 #. type: verbatim
18012 #: ../src/guestfs-actions.pod:5970
18013 #, no-wrap
18014 msgid ""
18015 " int\n"
18016 " guestfs_set_autosync (guestfs_h *g,\n"
18017 "                       int autosync);\n"
18018 "\n"
18019 msgstr ""
18020
18021 #. type: textblock
18022 #: ../src/guestfs-actions.pod:5974 ../fish/guestfish-actions.pod:3979
18023 msgid ""
18024 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
18025 "effort attempt to make filesystems consistent and synchronized when the "
18026 "handle is closed (also if the program exits without closing handles)."
18027 msgstr ""
18028
18029 # type: textblock
18030 #. type: textblock
18031 #: ../src/guestfs-actions.pod:5979 ../fish/guestfish-actions.pod:3984
18032 msgid ""
18033 "This is enabled by default (since libguestfs 1.5.24, previously it was "
18034 "disabled by default)."
18035 msgstr ""
18036
18037 # type: =head2
18038 #. type: =head2
18039 #: ../src/guestfs-actions.pod:5986
18040 msgid "guestfs_set_direct"
18041 msgstr ""
18042
18043 # type: verbatim
18044 #. type: verbatim
18045 #: ../src/guestfs-actions.pod:5988
18046 #, no-wrap
18047 msgid ""
18048 " int\n"
18049 " guestfs_set_direct (guestfs_h *g,\n"
18050 "                     int direct);\n"
18051 "\n"
18052 msgstr ""
18053
18054 # type: textblock
18055 #. type: textblock
18056 #: ../src/guestfs-actions.pod:5992 ../fish/guestfish-actions.pod:3993
18057 msgid ""
18058 "If the direct appliance mode flag is enabled, then stdin and stdout are "
18059 "passed directly through to the appliance once it is launched."
18060 msgstr ""
18061
18062 # type: textblock
18063 #. type: textblock
18064 #: ../src/guestfs-actions.pod:5996
18065 msgid ""
18066 "One consequence of this is that log messages aren't caught by the library "
18067 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
18068 "stdout."
18069 msgstr ""
18070
18071 # type: textblock
18072 #. type: textblock
18073 #: ../src/guestfs-actions.pod:6000 ../fish/guestfish-actions.pod:4001
18074 msgid "You probably don't want to use this unless you know what you are doing."
18075 msgstr ""
18076
18077 # type: textblock
18078 #. type: textblock
18079 #: ../src/guestfs-actions.pod:6003 ../fish/guestfish-actions.pod:4004
18080 msgid "The default is disabled."
18081 msgstr ""
18082
18083 # type: =head2
18084 #. type: =head2
18085 #: ../src/guestfs-actions.pod:6009
18086 msgid "guestfs_set_e2label"
18087 msgstr ""
18088
18089 # type: verbatim
18090 #. type: verbatim
18091 #: ../src/guestfs-actions.pod:6011
18092 #, no-wrap
18093 msgid ""
18094 " int\n"
18095 " guestfs_set_e2label (guestfs_h *g,\n"
18096 "                      const char *device,\n"
18097 "                      const char *label);\n"
18098 "\n"
18099 msgstr ""
18100
18101 # type: textblock
18102 #. type: textblock
18103 #: ../src/guestfs-actions.pod:6016 ../fish/guestfish-actions.pod:4010
18104 msgid ""
18105 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
18106 "C<label>.  Filesystem labels are limited to 16 characters."
18107 msgstr ""
18108
18109 # type: textblock
18110 #. type: textblock
18111 #: ../src/guestfs-actions.pod:6020
18112 msgid ""
18113 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
18114 "the existing label on a filesystem."
18115 msgstr ""
18116
18117 # type: =head2
18118 #. type: =head2
18119 #: ../src/guestfs-actions.pod:6027
18120 msgid "guestfs_set_e2uuid"
18121 msgstr ""
18122
18123 # type: verbatim
18124 #. type: verbatim
18125 #: ../src/guestfs-actions.pod:6029
18126 #, no-wrap
18127 msgid ""
18128 " int\n"
18129 " guestfs_set_e2uuid (guestfs_h *g,\n"
18130 "                     const char *device,\n"
18131 "                     const char *uuid);\n"
18132 "\n"
18133 msgstr ""
18134
18135 # type: textblock
18136 #. type: textblock
18137 #: ../src/guestfs-actions.pod:6034 ../fish/guestfish-actions.pod:4021
18138 msgid ""
18139 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
18140 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
18141 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
18142 msgstr ""
18143
18144 # type: textblock
18145 #. type: textblock
18146 #: ../src/guestfs-actions.pod:6039
18147 msgid ""
18148 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
18149 "the existing UUID of a filesystem."
18150 msgstr ""
18151
18152 # type: =head2
18153 #. type: =head2
18154 #: ../src/guestfs-actions.pod:6046
18155 msgid "guestfs_set_memsize"
18156 msgstr ""
18157
18158 # type: verbatim
18159 #. type: verbatim
18160 #: ../src/guestfs-actions.pod:6048
18161 #, no-wrap
18162 msgid ""
18163 " int\n"
18164 " guestfs_set_memsize (guestfs_h *g,\n"
18165 "                      int memsize);\n"
18166 "\n"
18167 msgstr ""
18168
18169 # type: textblock
18170 #. type: textblock
18171 #: ../src/guestfs-actions.pod:6052
18172 msgid ""
18173 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
18174 "This only has any effect if called before C<guestfs_launch>."
18175 msgstr ""
18176
18177 # type: textblock
18178 #. type: textblock
18179 #: ../src/guestfs-actions.pod:6056 ../fish/guestfish-actions.pod:4039
18180 msgid ""
18181 "You can also change this by setting the environment variable "
18182 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
18183 msgstr ""
18184
18185 # type: =head2
18186 #. type: =head2
18187 #: ../src/guestfs-actions.pod:6067
18188 msgid "guestfs_set_network"
18189 msgstr ""
18190
18191 # type: verbatim
18192 #. type: verbatim
18193 #: ../src/guestfs-actions.pod:6069
18194 #, no-wrap
18195 msgid ""
18196 " int\n"
18197 " guestfs_set_network (guestfs_h *g,\n"
18198 "                      int network);\n"
18199 "\n"
18200 msgstr ""
18201
18202 # type: textblock
18203 #. type: textblock
18204 #: ../src/guestfs-actions.pod:6073 ../fish/guestfish-actions.pod:4052
18205 msgid ""
18206 "If C<network> is true, then the network is enabled in the libguestfs "
18207 "appliance.  The default is false."
18208 msgstr ""
18209
18210 # type: textblock
18211 #. type: textblock
18212 #: ../src/guestfs-actions.pod:6076 ../fish/guestfish-actions.pod:4055
18213 msgid ""
18214 "This affects whether commands are able to access the network (see L<guestfs"
18215 "(3)/RUNNING COMMANDS>)."
18216 msgstr ""
18217
18218 # type: textblock
18219 #. type: textblock
18220 #: ../src/guestfs-actions.pod:6079
18221 msgid ""
18222 "You must call this before calling C<guestfs_launch>, otherwise it has no "
18223 "effect."
18224 msgstr ""
18225
18226 # type: =head2
18227 #. type: =head2
18228 #: ../src/guestfs-actions.pod:6086
18229 msgid "guestfs_set_path"
18230 msgstr ""
18231
18232 # type: verbatim
18233 #. type: verbatim
18234 #: ../src/guestfs-actions.pod:6088
18235 #, no-wrap
18236 msgid ""
18237 " int\n"
18238 " guestfs_set_path (guestfs_h *g,\n"
18239 "                   const char *searchpath);\n"
18240 "\n"
18241 msgstr ""
18242
18243 # type: textblock
18244 #. type: textblock
18245 #: ../src/guestfs-actions.pod:6092 ../fish/guestfish-actions.pod:4067
18246 msgid "Set the path that libguestfs searches for kernel and initrd.img."
18247 msgstr ""
18248
18249 # type: textblock
18250 #. type: textblock
18251 #: ../src/guestfs-actions.pod:6094 ../fish/guestfish-actions.pod:4069
18252 msgid ""
18253 "The default is C<$libdir/guestfs> unless overridden by setting "
18254 "C<LIBGUESTFS_PATH> environment variable."
18255 msgstr ""
18256
18257 # type: textblock
18258 #. type: textblock
18259 #: ../src/guestfs-actions.pod:6097 ../fish/guestfish-actions.pod:4072
18260 msgid "Setting C<path> to C<NULL> restores the default path."
18261 msgstr ""
18262
18263 # type: =head2
18264 #. type: =head2
18265 #: ../src/guestfs-actions.pod:6103
18266 msgid "guestfs_set_qemu"
18267 msgstr ""
18268
18269 # type: verbatim
18270 #. type: verbatim
18271 #: ../src/guestfs-actions.pod:6105
18272 #, no-wrap
18273 msgid ""
18274 " int\n"
18275 " guestfs_set_qemu (guestfs_h *g,\n"
18276 "                   const char *qemu);\n"
18277 "\n"
18278 msgstr ""
18279
18280 # type: textblock
18281 #. type: textblock
18282 #: ../src/guestfs-actions.pod:6109 ../fish/guestfish-actions.pod:4080
18283 msgid "Set the qemu binary that we will use."
18284 msgstr ""
18285
18286 # type: textblock
18287 #. type: textblock
18288 #: ../src/guestfs-actions.pod:6111 ../fish/guestfish-actions.pod:4082
18289 msgid ""
18290 "The default is chosen when the library was compiled by the configure script."
18291 msgstr ""
18292
18293 # type: textblock
18294 #. type: textblock
18295 #: ../src/guestfs-actions.pod:6114 ../fish/guestfish-actions.pod:4085
18296 msgid ""
18297 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
18298 "variable."
18299 msgstr ""
18300
18301 # type: textblock
18302 #. type: textblock
18303 #: ../src/guestfs-actions.pod:6117 ../fish/guestfish-actions.pod:4088
18304 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
18305 msgstr ""
18306
18307 # type: textblock
18308 #. type: textblock
18309 #: ../src/guestfs-actions.pod:6119 ../fish/guestfish-actions.pod:4090
18310 msgid ""
18311 "Note that you should call this function as early as possible after creating "
18312 "the handle.  This is because some pre-launch operations depend on testing "
18313 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
18314 "don't retest features, and so you might see inconsistent results.  Using the "
18315 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
18316 "the qemu binary at the same time as the handle is created."
18317 msgstr ""
18318
18319 # type: =head2
18320 #. type: =head2
18321 #: ../src/guestfs-actions.pod:6131
18322 msgid "guestfs_set_recovery_proc"
18323 msgstr ""
18324
18325 # type: verbatim
18326 #. type: verbatim
18327 #: ../src/guestfs-actions.pod:6133
18328 #, no-wrap
18329 msgid ""
18330 " int\n"
18331 " guestfs_set_recovery_proc (guestfs_h *g,\n"
18332 "                            int recoveryproc);\n"
18333 "\n"
18334 msgstr ""
18335
18336 # type: textblock
18337 #. type: textblock
18338 #: ../src/guestfs-actions.pod:6137
18339 msgid ""
18340 "If this is called with the parameter C<false> then C<guestfs_launch> does "
18341 "not create a recovery process.  The purpose of the recovery process is to "
18342 "stop runaway qemu processes in the case where the main program aborts "
18343 "abruptly."
18344 msgstr ""
18345
18346 # type: textblock
18347 #. type: textblock
18348 #: ../src/guestfs-actions.pod:6142
18349 msgid ""
18350 "This only has any effect if called before C<guestfs_launch>, and the default "
18351 "is true."
18352 msgstr ""
18353
18354 # type: textblock
18355 #. type: textblock
18356 #: ../src/guestfs-actions.pod:6145 ../fish/guestfish-actions.pod:4112
18357 msgid ""
18358 "About the only time when you would want to disable this is if the main "
18359 "process will fork itself into the background (\"daemonize\" itself).  In "
18360 "this case the recovery process thinks that the main program has disappeared "
18361 "and so kills qemu, which is not very helpful."
18362 msgstr ""
18363
18364 # type: =head2
18365 #. type: =head2
18366 #: ../src/guestfs-actions.pod:6155
18367 msgid "guestfs_set_selinux"
18368 msgstr ""
18369
18370 # type: verbatim
18371 #. type: verbatim
18372 #: ../src/guestfs-actions.pod:6157
18373 #, no-wrap
18374 msgid ""
18375 " int\n"
18376 " guestfs_set_selinux (guestfs_h *g,\n"
18377 "                      int selinux);\n"
18378 "\n"
18379 msgstr ""
18380
18381 # type: textblock
18382 #. type: textblock
18383 #: ../src/guestfs-actions.pod:6161 ../fish/guestfish-actions.pod:4124
18384 msgid ""
18385 "This sets the selinux flag that is passed to the appliance at boot time.  "
18386 "The default is C<selinux=0> (disabled)."
18387 msgstr ""
18388
18389 # type: textblock
18390 #. type: textblock
18391 #: ../src/guestfs-actions.pod:6164 ../fish/guestfish-actions.pod:4127
18392 msgid ""
18393 "Note that if SELinux is enabled, it is always in Permissive mode "
18394 "(C<enforcing=0>)."
18395 msgstr ""
18396
18397 # type: =head2
18398 #. type: =head2
18399 #: ../src/guestfs-actions.pod:6174
18400 msgid "guestfs_set_trace"
18401 msgstr ""
18402
18403 # type: verbatim
18404 #. type: verbatim
18405 #: ../src/guestfs-actions.pod:6176
18406 #, no-wrap
18407 msgid ""
18408 " int\n"
18409 " guestfs_set_trace (guestfs_h *g,\n"
18410 "                    int trace);\n"
18411 "\n"
18412 msgstr ""
18413
18414 #. type: textblock
18415 #: ../src/guestfs-actions.pod:6180 ../fish/guestfish-actions.pod:4139
18416 msgid ""
18417 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
18418 "return values are traced."
18419 msgstr ""
18420
18421 # type: textblock
18422 #. type: textblock
18423 #: ../src/guestfs-actions.pod:6183 ../fish/guestfish-actions.pod:4142
18424 msgid ""
18425 "If you want to trace C API calls into libguestfs (and other libraries) then "
18426 "possibly a better way is to use the external ltrace(1) command."
18427 msgstr ""
18428
18429 # type: textblock
18430 #. type: textblock
18431 #: ../src/guestfs-actions.pod:6187 ../fish/guestfish-actions.pod:4146
18432 msgid ""
18433 "Command traces are disabled unless the environment variable "
18434 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
18435 msgstr ""
18436
18437 #. type: textblock
18438 #: ../src/guestfs-actions.pod:6190
18439 msgid ""
18440 "Trace messages are normally sent to C<stderr>, unless you register a "
18441 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
18442 msgstr ""
18443
18444 # type: =head2
18445 #. type: =head2
18446 #: ../src/guestfs-actions.pod:6198
18447 msgid "guestfs_set_verbose"
18448 msgstr ""
18449
18450 # type: verbatim
18451 #. type: verbatim
18452 #: ../src/guestfs-actions.pod:6200
18453 #, no-wrap
18454 msgid ""
18455 " int\n"
18456 " guestfs_set_verbose (guestfs_h *g,\n"
18457 "                      int verbose);\n"
18458 "\n"
18459 msgstr ""
18460
18461 #. type: textblock
18462 #: ../src/guestfs-actions.pod:6204 ../fish/guestfish-actions.pod:4159
18463 msgid "If C<verbose> is true, this turns on verbose messages."
18464 msgstr ""
18465
18466 # type: textblock
18467 #. type: textblock
18468 #: ../src/guestfs-actions.pod:6206 ../fish/guestfish-actions.pod:4161
18469 msgid ""
18470 "Verbose messages are disabled unless the environment variable "
18471 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
18472 msgstr ""
18473
18474 #. type: textblock
18475 #: ../src/guestfs-actions.pod:6209
18476 msgid ""
18477 "Verbose messages are normally sent to C<stderr>, unless you register a "
18478 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
18479 msgstr ""
18480
18481 # type: =head2
18482 #. type: =head2
18483 #: ../src/guestfs-actions.pod:6217
18484 msgid "guestfs_setcon"
18485 msgstr ""
18486
18487 # type: verbatim
18488 #. type: verbatim
18489 #: ../src/guestfs-actions.pod:6219
18490 #, no-wrap
18491 msgid ""
18492 " int\n"
18493 " guestfs_setcon (guestfs_h *g,\n"
18494 "                 const char *context);\n"
18495 "\n"
18496 msgstr ""
18497
18498 # type: textblock
18499 #. type: textblock
18500 #: ../src/guestfs-actions.pod:6223 ../fish/guestfish-actions.pod:4172
18501 msgid ""
18502 "This sets the SELinux security context of the daemon to the string "
18503 "C<context>."
18504 msgstr ""
18505
18506 # type: textblock
18507 #. type: textblock
18508 #: ../src/guestfs-actions.pod:6226 ../fish/guestfish-actions.pod:4175
18509 msgid "See the documentation about SELINUX in L<guestfs(3)>."
18510 msgstr ""
18511
18512 # type: =head2
18513 #. type: =head2
18514 #: ../src/guestfs-actions.pod:6232
18515 msgid "guestfs_setxattr"
18516 msgstr ""
18517
18518 # type: verbatim
18519 #. type: verbatim
18520 #: ../src/guestfs-actions.pod:6234
18521 #, no-wrap
18522 msgid ""
18523 " int\n"
18524 " guestfs_setxattr (guestfs_h *g,\n"
18525 "                   const char *xattr,\n"
18526 "                   const char *val,\n"
18527 "                   int vallen,\n"
18528 "                   const char *path);\n"
18529 "\n"
18530 msgstr ""
18531
18532 # type: textblock
18533 #. type: textblock
18534 #: ../src/guestfs-actions.pod:6241 ../fish/guestfish-actions.pod:4181
18535 msgid ""
18536 "This call sets the extended attribute named C<xattr> of the file C<path> to "
18537 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
18538 msgstr ""
18539
18540 # type: textblock
18541 #. type: textblock
18542 #: ../src/guestfs-actions.pod:6245
18543 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
18544 msgstr ""
18545
18546 # type: =head2
18547 #. type: =head2
18548 #: ../src/guestfs-actions.pod:6251
18549 msgid "guestfs_sfdisk"
18550 msgstr ""
18551
18552 # type: verbatim
18553 #. type: verbatim
18554 #: ../src/guestfs-actions.pod:6253
18555 #, no-wrap
18556 msgid ""
18557 " int\n"
18558 " guestfs_sfdisk (guestfs_h *g,\n"
18559 "                 const char *device,\n"
18560 "                 int cyls,\n"
18561 "                 int heads,\n"
18562 "                 int sectors,\n"
18563 "                 char *const *lines);\n"
18564 "\n"
18565 msgstr ""
18566
18567 # type: textblock
18568 #. type: textblock
18569 #: ../src/guestfs-actions.pod:6261 ../fish/guestfish-actions.pod:4191
18570 msgid ""
18571 "This is a direct interface to the L<sfdisk(8)> program for creating "
18572 "partitions on block devices."
18573 msgstr ""
18574
18575 # type: textblock
18576 #. type: textblock
18577 #: ../src/guestfs-actions.pod:6264 ../fish/guestfish-actions.pod:4194
18578 msgid "C<device> should be a block device, for example C</dev/sda>."
18579 msgstr ""
18580
18581 # type: textblock
18582 #. type: textblock
18583 #: ../src/guestfs-actions.pod:6266 ../fish/guestfish-actions.pod:4196
18584 msgid ""
18585 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
18586 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
18587 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
18588 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
18589 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
18590 "the kernel) cannot work out the right geometry and you will need to tell it."
18591 msgstr ""
18592
18593 # type: textblock
18594 #. type: textblock
18595 #: ../src/guestfs-actions.pod:6274 ../fish/guestfish-actions.pod:4204
18596 msgid ""
18597 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
18598 "refer to the L<sfdisk(8)> manpage."
18599 msgstr ""
18600
18601 # type: textblock
18602 #. type: textblock
18603 #: ../src/guestfs-actions.pod:6277 ../fish/guestfish-actions.pod:4207
18604 msgid ""
18605 "To create a single partition occupying the whole disk, you would pass "
18606 "C<lines> as a single element list, when the single element being the string "
18607 "C<,> (comma)."
18608 msgstr ""
18609
18610 # type: textblock
18611 #. type: textblock
18612 #: ../src/guestfs-actions.pod:6281
18613 msgid ""
18614 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
18615 msgstr ""
18616
18617 #. type: textblock
18618 #: ../src/guestfs-actions.pod:6289 ../src/guestfs-actions.pod:6319
18619 #: ../src/guestfs-actions.pod:6352 ../fish/guestfish-actions.pod:4217
18620 #: ../fish/guestfish-actions.pod:4240 ../fish/guestfish-actions.pod:4262
18621 msgid ""
18622 "This function is deprecated.  In new code, use the C<part_add> call instead."
18623 msgstr ""
18624
18625 # type: =head2
18626 #. type: =head2
18627 #: ../src/guestfs-actions.pod:6298
18628 msgid "guestfs_sfdiskM"
18629 msgstr ""
18630
18631 # type: verbatim
18632 #. type: verbatim
18633 #: ../src/guestfs-actions.pod:6300
18634 #, no-wrap
18635 msgid ""
18636 " int\n"
18637 " guestfs_sfdiskM (guestfs_h *g,\n"
18638 "                  const char *device,\n"
18639 "                  char *const *lines);\n"
18640 "\n"
18641 msgstr ""
18642
18643 # type: textblock
18644 #. type: textblock
18645 #: ../src/guestfs-actions.pod:6305
18646 msgid ""
18647 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
18648 "partition sizes are specified in megabytes only (rounded to the nearest "
18649 "cylinder) and you don't need to specify the cyls, heads and sectors "
18650 "parameters which were rarely if ever used anyway."
18651 msgstr ""
18652
18653 # type: textblock
18654 #. type: textblock
18655 #: ../src/guestfs-actions.pod:6311
18656 msgid ""
18657 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
18658 "C<guestfs_part_disk>"
18659 msgstr ""
18660
18661 # type: =head2
18662 #. type: =head2
18663 #: ../src/guestfs-actions.pod:6328
18664 msgid "guestfs_sfdisk_N"
18665 msgstr ""
18666
18667 # type: verbatim
18668 #. type: verbatim
18669 #: ../src/guestfs-actions.pod:6330
18670 #, no-wrap
18671 msgid ""
18672 " int\n"
18673 " guestfs_sfdisk_N (guestfs_h *g,\n"
18674 "                   const char *device,\n"
18675 "                   int partnum,\n"
18676 "                   int cyls,\n"
18677 "                   int heads,\n"
18678 "                   int sectors,\n"
18679 "                   const char *line);\n"
18680 "\n"
18681 msgstr ""
18682
18683 # type: textblock
18684 #. type: textblock
18685 #: ../src/guestfs-actions.pod:6339 ../fish/guestfish-actions.pod:4251
18686 msgid ""
18687 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
18688 "(note: C<n> counts from 1)."
18689 msgstr ""
18690
18691 # type: textblock
18692 #. type: textblock
18693 #: ../src/guestfs-actions.pod:6342
18694 msgid ""
18695 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
18696 "for the cyls/heads/sectors parameters."
18697 msgstr ""
18698
18699 # type: textblock
18700 #. type: textblock
18701 #: ../src/guestfs-actions.pod:6345
18702 msgid "See also: C<guestfs_part_add>"
18703 msgstr ""
18704
18705 # type: =head2
18706 #. type: =head2
18707 #: ../src/guestfs-actions.pod:6361
18708 msgid "guestfs_sfdisk_disk_geometry"
18709 msgstr ""
18710
18711 # type: verbatim
18712 #. type: verbatim
18713 #: ../src/guestfs-actions.pod:6363
18714 #, no-wrap
18715 msgid ""
18716 " char *\n"
18717 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
18718 "                               const char *device);\n"
18719 "\n"
18720 msgstr ""
18721
18722 # type: textblock
18723 #. type: textblock
18724 #: ../src/guestfs-actions.pod:6367
18725 msgid ""
18726 "This displays the disk geometry of C<device> read from the partition table.  "
18727 "Especially in the case where the underlying block device has been resized, "
18728 "this can be different from the kernel's idea of the geometry (see "
18729 "C<guestfs_sfdisk_kernel_geometry>)."
18730 msgstr ""
18731
18732 # type: textblock
18733 #. type: textblock
18734 #: ../src/guestfs-actions.pod:6372 ../src/guestfs-actions.pod:6388
18735 #: ../fish/guestfish-actions.pod:4278 ../fish/guestfish-actions.pod:4287
18736 msgid "The result is in human-readable format, and not designed to be parsed."
18737 msgstr ""
18738
18739 # type: =head2
18740 #. type: =head2
18741 #: ../src/guestfs-actions.pod:6380
18742 msgid "guestfs_sfdisk_kernel_geometry"
18743 msgstr ""
18744
18745 # type: verbatim
18746 #. type: verbatim
18747 #: ../src/guestfs-actions.pod:6382
18748 #, no-wrap
18749 msgid ""
18750 " char *\n"
18751 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
18752 "                                 const char *device);\n"
18753 "\n"
18754 msgstr ""
18755
18756 # type: textblock
18757 #. type: textblock
18758 #: ../src/guestfs-actions.pod:6386 ../fish/guestfish-actions.pod:4285
18759 msgid "This displays the kernel's idea of the geometry of C<device>."
18760 msgstr ""
18761
18762 # type: =head2
18763 #. type: =head2
18764 #: ../src/guestfs-actions.pod:6396
18765 msgid "guestfs_sfdisk_l"
18766 msgstr ""
18767
18768 # type: verbatim
18769 #. type: verbatim
18770 #: ../src/guestfs-actions.pod:6398
18771 #, no-wrap
18772 msgid ""
18773 " char *\n"
18774 " guestfs_sfdisk_l (guestfs_h *g,\n"
18775 "                   const char *device);\n"
18776 "\n"
18777 msgstr ""
18778
18779 # type: textblock
18780 #. type: textblock
18781 #: ../src/guestfs-actions.pod:6402 ../fish/guestfish-actions.pod:4294
18782 msgid ""
18783 "This displays the partition table on C<device>, in the human-readable output "
18784 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
18785 msgstr ""
18786
18787 # type: textblock
18788 #. type: textblock
18789 #: ../src/guestfs-actions.pod:6406
18790 msgid "See also: C<guestfs_part_list>"
18791 msgstr ""
18792
18793 #. type: textblock
18794 #: ../src/guestfs-actions.pod:6411 ../fish/guestfish-actions.pod:4300
18795 msgid ""
18796 "This function is deprecated.  In new code, use the C<part_list> call instead."
18797 msgstr ""
18798
18799 # type: =head2
18800 #. type: =head2
18801 #: ../src/guestfs-actions.pod:6420
18802 msgid "guestfs_sh"
18803 msgstr ""
18804
18805 # type: verbatim
18806 #. type: verbatim
18807 #: ../src/guestfs-actions.pod:6422
18808 #, no-wrap
18809 msgid ""
18810 " char *\n"
18811 " guestfs_sh (guestfs_h *g,\n"
18812 "             const char *command);\n"
18813 "\n"
18814 msgstr ""
18815
18816 # type: textblock
18817 #. type: textblock
18818 #: ../src/guestfs-actions.pod:6426 ../fish/guestfish-actions.pod:4311
18819 msgid ""
18820 "This call runs a command from the guest filesystem via the guest's C</bin/"
18821 "sh>."
18822 msgstr ""
18823
18824 # type: textblock
18825 #. type: textblock
18826 #: ../src/guestfs-actions.pod:6429
18827 msgid "This is like C<guestfs_command>, but passes the command to:"
18828 msgstr ""
18829
18830 # type: verbatim
18831 #. type: verbatim
18832 #: ../src/guestfs-actions.pod:6431 ../fish/guestfish-actions.pod:4316
18833 #, no-wrap
18834 msgid ""
18835 " /bin/sh -c \"command\"\n"
18836 "\n"
18837 msgstr ""
18838
18839 # type: textblock
18840 #. type: textblock
18841 #: ../src/guestfs-actions.pod:6433 ../fish/guestfish-actions.pod:4318
18842 msgid ""
18843 "Depending on the guest's shell, this usually results in wildcards being "
18844 "expanded, shell expressions being interpolated and so on."
18845 msgstr ""
18846
18847 # type: textblock
18848 #. type: textblock
18849 #: ../src/guestfs-actions.pod:6437
18850 msgid "All the provisos about C<guestfs_command> apply to this call."
18851 msgstr ""
18852
18853 # type: =head2
18854 #. type: =head2
18855 #: ../src/guestfs-actions.pod:6444
18856 msgid "guestfs_sh_lines"
18857 msgstr ""
18858
18859 # type: verbatim
18860 #. type: verbatim
18861 #: ../src/guestfs-actions.pod:6446
18862 #, no-wrap
18863 msgid ""
18864 " char **\n"
18865 " guestfs_sh_lines (guestfs_h *g,\n"
18866 "                   const char *command);\n"
18867 "\n"
18868 msgstr ""
18869
18870 # type: textblock
18871 #. type: textblock
18872 #: ../src/guestfs-actions.pod:6450
18873 msgid ""
18874 "This is the same as C<guestfs_sh>, but splits the result into a list of "
18875 "lines."
18876 msgstr ""
18877
18878 # type: textblock
18879 #. type: textblock
18880 #: ../src/guestfs-actions.pod:6453
18881 msgid "See also: C<guestfs_command_lines>"
18882 msgstr ""
18883
18884 # type: =head2
18885 #. type: =head2
18886 #: ../src/guestfs-actions.pod:6461
18887 msgid "guestfs_sleep"
18888 msgstr ""
18889
18890 # type: verbatim
18891 #. type: verbatim
18892 #: ../src/guestfs-actions.pod:6463
18893 #, no-wrap
18894 msgid ""
18895 " int\n"
18896 " guestfs_sleep (guestfs_h *g,\n"
18897 "                int secs);\n"
18898 "\n"
18899 msgstr ""
18900
18901 # type: textblock
18902 #. type: textblock
18903 #: ../src/guestfs-actions.pod:6467 ../fish/guestfish-actions.pod:4337
18904 msgid "Sleep for C<secs> seconds."
18905 msgstr ""
18906
18907 # type: textblock
18908 #. type: textblock
18909 #: ../src/guestfs-actions.pod:6471
18910 msgid "(Added in 1.0.41)"
18911 msgstr ""
18912
18913 # type: =head2
18914 #. type: =head2
18915 #: ../src/guestfs-actions.pod:6473 ../src/guestfs-structs.pod:109
18916 msgid "guestfs_stat"
18917 msgstr ""
18918
18919 # type: verbatim
18920 #. type: verbatim
18921 #: ../src/guestfs-actions.pod:6475
18922 #, no-wrap
18923 msgid ""
18924 " struct guestfs_stat *\n"
18925 " guestfs_stat (guestfs_h *g,\n"
18926 "               const char *path);\n"
18927 "\n"
18928 msgstr ""
18929
18930 # type: textblock
18931 #. type: textblock
18932 #: ../src/guestfs-actions.pod:6481 ../fish/guestfish-actions.pod:4345
18933 msgid "This is the same as the C<stat(2)> system call."
18934 msgstr ""
18935
18936 # type: =head2
18937 #. type: =head2
18938 #: ../src/guestfs-actions.pod:6489 ../src/guestfs-structs.pod:135
18939 msgid "guestfs_statvfs"
18940 msgstr ""
18941
18942 # type: verbatim
18943 #. type: verbatim
18944 #: ../src/guestfs-actions.pod:6491
18945 #, no-wrap
18946 msgid ""
18947 " struct guestfs_statvfs *\n"
18948 " guestfs_statvfs (guestfs_h *g,\n"
18949 "                  const char *path);\n"
18950 "\n"
18951 msgstr ""
18952
18953 # type: textblock
18954 #. type: textblock
18955 #: ../src/guestfs-actions.pod:6495 ../fish/guestfish-actions.pod:4351
18956 msgid ""
18957 "Returns file system statistics for any mounted file system.  C<path> should "
18958 "be a file or directory in the mounted file system (typically it is the mount "
18959 "point itself, but it doesn't need to be)."
18960 msgstr ""
18961
18962 # type: textblock
18963 #. type: textblock
18964 #: ../src/guestfs-actions.pod:6499 ../fish/guestfish-actions.pod:4355
18965 msgid "This is the same as the C<statvfs(2)> system call."
18966 msgstr ""
18967
18968 # type: textblock
18969 #. type: textblock
18970 #: ../src/guestfs-actions.pod:6501
18971 msgid ""
18972 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
18973 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
18974 msgstr ""
18975
18976 # type: =head2
18977 #. type: =head2
18978 #: ../src/guestfs-actions.pod:6507
18979 msgid "guestfs_strings"
18980 msgstr ""
18981
18982 # type: verbatim
18983 #. type: verbatim
18984 #: ../src/guestfs-actions.pod:6509
18985 #, no-wrap
18986 msgid ""
18987 " char **\n"
18988 " guestfs_strings (guestfs_h *g,\n"
18989 "                  const char *path);\n"
18990 "\n"
18991 msgstr ""
18992
18993 # type: textblock
18994 #. type: textblock
18995 #: ../src/guestfs-actions.pod:6513 ../fish/guestfish-actions.pod:4361
18996 msgid ""
18997 "This runs the L<strings(1)> command on a file and returns the list of "
18998 "printable strings found."
18999 msgstr ""
19000
19001 # type: =head2
19002 #. type: =head2
19003 #: ../src/guestfs-actions.pod:6525
19004 msgid "guestfs_strings_e"
19005 msgstr ""
19006
19007 # type: verbatim
19008 #. type: verbatim
19009 #: ../src/guestfs-actions.pod:6527
19010 #, no-wrap
19011 msgid ""
19012 " char **\n"
19013 " guestfs_strings_e (guestfs_h *g,\n"
19014 "                    const char *encoding,\n"
19015 "                    const char *path);\n"
19016 "\n"
19017 msgstr ""
19018
19019 # type: textblock
19020 #. type: textblock
19021 #: ../src/guestfs-actions.pod:6532
19022 msgid ""
19023 "This is like the C<guestfs_strings> command, but allows you to specify the "
19024 "encoding of strings that are looked for in the source file C<path>."
19025 msgstr ""
19026
19027 # type: textblock
19028 #. type: textblock
19029 #: ../src/guestfs-actions.pod:6536 ../fish/guestfish-actions.pod:4375
19030 msgid "Allowed encodings are:"
19031 msgstr ""
19032
19033 # type: =item
19034 #. type: =item
19035 #: ../src/guestfs-actions.pod:6540 ../fish/guestfish-actions.pod:4379
19036 msgid "s"
19037 msgstr ""
19038
19039 # type: textblock
19040 #. type: textblock
19041 #: ../src/guestfs-actions.pod:6542
19042 msgid ""
19043 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
19044 "ISO-8859-X (this is what C<guestfs_strings> uses)."
19045 msgstr ""
19046
19047 # type: =item
19048 #. type: =item
19049 #: ../src/guestfs-actions.pod:6545 ../fish/guestfish-actions.pod:4384
19050 msgid "S"
19051 msgstr ""
19052
19053 # type: textblock
19054 #. type: textblock
19055 #: ../src/guestfs-actions.pod:6547 ../fish/guestfish-actions.pod:4386
19056 msgid "Single 8-bit-byte characters."
19057 msgstr ""
19058
19059 # type: =item
19060 #. type: =item
19061 #: ../src/guestfs-actions.pod:6549 ../fish/guestfish-actions.pod:4388
19062 msgid "b"
19063 msgstr ""
19064
19065 # type: textblock
19066 #. type: textblock
19067 #: ../src/guestfs-actions.pod:6551 ../fish/guestfish-actions.pod:4390
19068 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
19069 msgstr ""
19070
19071 # type: =item
19072 #. type: =item
19073 #: ../src/guestfs-actions.pod:6554 ../fish/guestfish-actions.pod:4393
19074 msgid "l (lower case letter L)"
19075 msgstr ""
19076
19077 # type: textblock
19078 #. type: textblock
19079 #: ../src/guestfs-actions.pod:6556 ../fish/guestfish-actions.pod:4395
19080 msgid ""
19081 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
19082 "examining binaries in Windows guests."
19083 msgstr ""
19084
19085 # type: =item
19086 #. type: =item
19087 #: ../src/guestfs-actions.pod:6559 ../fish/guestfish-actions.pod:4398
19088 msgid "B"
19089 msgstr ""
19090
19091 # type: textblock
19092 #. type: textblock
19093 #: ../src/guestfs-actions.pod:6561 ../fish/guestfish-actions.pod:4400
19094 msgid "32-bit big endian such as UCS-4BE."
19095 msgstr ""
19096
19097 # type: =item
19098 #. type: =item
19099 #: ../src/guestfs-actions.pod:6563 ../fish/guestfish-actions.pod:4402
19100 msgid "L"
19101 msgstr ""
19102
19103 # type: textblock
19104 #. type: textblock
19105 #: ../src/guestfs-actions.pod:6565 ../fish/guestfish-actions.pod:4404
19106 msgid "32-bit little endian such as UCS-4LE."
19107 msgstr ""
19108
19109 # type: textblock
19110 #. type: textblock
19111 #: ../src/guestfs-actions.pod:6569 ../fish/guestfish-actions.pod:4408
19112 msgid "The returned strings are transcoded to UTF-8."
19113 msgstr ""
19114
19115 # type: =head2
19116 #. type: =head2
19117 #: ../src/guestfs-actions.pod:6580
19118 msgid "guestfs_swapoff_device"
19119 msgstr ""
19120
19121 # type: verbatim
19122 #. type: verbatim
19123 #: ../src/guestfs-actions.pod:6582
19124 #, no-wrap
19125 msgid ""
19126 " int\n"
19127 " guestfs_swapoff_device (guestfs_h *g,\n"
19128 "                         const char *device);\n"
19129 "\n"
19130 msgstr ""
19131
19132 # type: textblock
19133 #. type: textblock
19134 #: ../src/guestfs-actions.pod:6586
19135 msgid ""
19136 "This command disables the libguestfs appliance swap device or partition "
19137 "named C<device>.  See C<guestfs_swapon_device>."
19138 msgstr ""
19139
19140 # type: =head2
19141 #. type: =head2
19142 #: ../src/guestfs-actions.pod:6594
19143 msgid "guestfs_swapoff_file"
19144 msgstr ""
19145
19146 # type: verbatim
19147 #. type: verbatim
19148 #: ../src/guestfs-actions.pod:6596
19149 #, no-wrap
19150 msgid ""
19151 " int\n"
19152 " guestfs_swapoff_file (guestfs_h *g,\n"
19153 "                       const char *file);\n"
19154 "\n"
19155 msgstr ""
19156
19157 # type: textblock
19158 #. type: textblock
19159 #: ../src/guestfs-actions.pod:6600 ../fish/guestfish-actions.pod:4425
19160 msgid "This command disables the libguestfs appliance swap on file."
19161 msgstr ""
19162
19163 # type: =head2
19164 #. type: =head2
19165 #: ../src/guestfs-actions.pod:6606
19166 msgid "guestfs_swapoff_label"
19167 msgstr ""
19168
19169 # type: verbatim
19170 #. type: verbatim
19171 #: ../src/guestfs-actions.pod:6608
19172 #, no-wrap
19173 msgid ""
19174 " int\n"
19175 " guestfs_swapoff_label (guestfs_h *g,\n"
19176 "                        const char *label);\n"
19177 "\n"
19178 msgstr ""
19179
19180 # type: textblock
19181 #. type: textblock
19182 #: ../src/guestfs-actions.pod:6612 ../fish/guestfish-actions.pod:4431
19183 msgid ""
19184 "This command disables the libguestfs appliance swap on labeled swap "
19185 "partition."
19186 msgstr ""
19187
19188 # type: =head2
19189 #. type: =head2
19190 #: ../src/guestfs-actions.pod:6619
19191 msgid "guestfs_swapoff_uuid"
19192 msgstr ""
19193
19194 # type: verbatim
19195 #. type: verbatim
19196 #: ../src/guestfs-actions.pod:6621
19197 #, no-wrap
19198 msgid ""
19199 " int\n"
19200 " guestfs_swapoff_uuid (guestfs_h *g,\n"
19201 "                       const char *uuid);\n"
19202 "\n"
19203 msgstr ""
19204
19205 # type: textblock
19206 #. type: textblock
19207 #: ../src/guestfs-actions.pod:6625 ../fish/guestfish-actions.pod:4438
19208 msgid ""
19209 "This command disables the libguestfs appliance swap partition with the given "
19210 "UUID."
19211 msgstr ""
19212
19213 # type: =head2
19214 #. type: =head2
19215 #: ../src/guestfs-actions.pod:6632
19216 msgid "guestfs_swapon_device"
19217 msgstr ""
19218
19219 # type: verbatim
19220 #. type: verbatim
19221 #: ../src/guestfs-actions.pod:6634
19222 #, no-wrap
19223 msgid ""
19224 " int\n"
19225 " guestfs_swapon_device (guestfs_h *g,\n"
19226 "                        const char *device);\n"
19227 "\n"
19228 msgstr ""
19229
19230 # type: textblock
19231 #. type: textblock
19232 #: ../src/guestfs-actions.pod:6638
19233 msgid ""
19234 "This command enables the libguestfs appliance to use the swap device or "
19235 "partition named C<device>.  The increased memory is made available for all "
19236 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
19237 msgstr ""
19238
19239 # type: textblock
19240 #. type: textblock
19241 #: ../src/guestfs-actions.pod:6643 ../fish/guestfish-actions.pod:4450
19242 msgid ""
19243 "Note that you should not swap to existing guest swap partitions unless you "
19244 "know what you are doing.  They may contain hibernation information, or other "
19245 "information that the guest doesn't want you to trash.  You also risk leaking "
19246 "information about the host to the guest this way.  Instead, attach a new "
19247 "host device to the guest and swap on that."
19248 msgstr ""
19249
19250 # type: =head2
19251 #. type: =head2
19252 #: ../src/guestfs-actions.pod:6654
19253 msgid "guestfs_swapon_file"
19254 msgstr ""
19255
19256 # type: verbatim
19257 #. type: verbatim
19258 #: ../src/guestfs-actions.pod:6656
19259 #, no-wrap
19260 msgid ""
19261 " int\n"
19262 " guestfs_swapon_file (guestfs_h *g,\n"
19263 "                      const char *file);\n"
19264 "\n"
19265 msgstr ""
19266
19267 # type: textblock
19268 #. type: textblock
19269 #: ../src/guestfs-actions.pod:6660
19270 msgid ""
19271 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
19272 "notes."
19273 msgstr ""
19274
19275 # type: =head2
19276 #. type: =head2
19277 #: ../src/guestfs-actions.pod:6667
19278 msgid "guestfs_swapon_label"
19279 msgstr ""
19280
19281 # type: verbatim
19282 #. type: verbatim
19283 #: ../src/guestfs-actions.pod:6669
19284 #, no-wrap
19285 msgid ""
19286 " int\n"
19287 " guestfs_swapon_label (guestfs_h *g,\n"
19288 "                       const char *label);\n"
19289 "\n"
19290 msgstr ""
19291
19292 # type: textblock
19293 #. type: textblock
19294 #: ../src/guestfs-actions.pod:6673
19295 msgid ""
19296 "This command enables swap to a labeled swap partition.  See "
19297 "C<guestfs_swapon_device> for other notes."
19298 msgstr ""
19299
19300 # type: =head2
19301 #. type: =head2
19302 #: ../src/guestfs-actions.pod:6680
19303 msgid "guestfs_swapon_uuid"
19304 msgstr ""
19305
19306 # type: verbatim
19307 #. type: verbatim
19308 #: ../src/guestfs-actions.pod:6682
19309 #, no-wrap
19310 msgid ""
19311 " int\n"
19312 " guestfs_swapon_uuid (guestfs_h *g,\n"
19313 "                      const char *uuid);\n"
19314 "\n"
19315 msgstr ""
19316
19317 # type: textblock
19318 #. type: textblock
19319 #: ../src/guestfs-actions.pod:6686
19320 msgid ""
19321 "This command enables swap to a swap partition with the given UUID.  See "
19322 "C<guestfs_swapon_device> for other notes."
19323 msgstr ""
19324
19325 # type: =head2
19326 #. type: =head2
19327 #: ../src/guestfs-actions.pod:6693
19328 msgid "guestfs_sync"
19329 msgstr ""
19330
19331 # type: verbatim
19332 #. type: verbatim
19333 #: ../src/guestfs-actions.pod:6695
19334 #, no-wrap
19335 msgid ""
19336 " int\n"
19337 " guestfs_sync (guestfs_h *g);\n"
19338 "\n"
19339 msgstr ""
19340
19341 # type: textblock
19342 #. type: textblock
19343 #: ../src/guestfs-actions.pod:6698 ../fish/guestfish-actions.pod:4482
19344 msgid ""
19345 "This syncs the disk, so that any writes are flushed through to the "
19346 "underlying disk image."
19347 msgstr ""
19348
19349 # type: textblock
19350 #. type: textblock
19351 #: ../src/guestfs-actions.pod:6701 ../fish/guestfish-actions.pod:4485
19352 msgid ""
19353 "You should always call this if you have modified a disk image, before "
19354 "closing the handle."
19355 msgstr ""
19356
19357 # type: =head2
19358 #. type: =head2
19359 #: ../src/guestfs-actions.pod:6708
19360 msgid "guestfs_tail"
19361 msgstr ""
19362
19363 # type: verbatim
19364 #. type: verbatim
19365 #: ../src/guestfs-actions.pod:6710
19366 #, no-wrap
19367 msgid ""
19368 " char **\n"
19369 " guestfs_tail (guestfs_h *g,\n"
19370 "               const char *path);\n"
19371 "\n"
19372 msgstr ""
19373
19374 # type: textblock
19375 #. type: textblock
19376 #: ../src/guestfs-actions.pod:6714 ../fish/guestfish-actions.pod:4492
19377 msgid ""
19378 "This command returns up to the last 10 lines of a file as a list of strings."
19379 msgstr ""
19380
19381 # type: =head2
19382 #. type: =head2
19383 #: ../src/guestfs-actions.pod:6726
19384 msgid "guestfs_tail_n"
19385 msgstr ""
19386
19387 # type: verbatim
19388 #. type: verbatim
19389 #: ../src/guestfs-actions.pod:6728
19390 #, no-wrap
19391 msgid ""
19392 " char **\n"
19393 " guestfs_tail_n (guestfs_h *g,\n"
19394 "                 int nrlines,\n"
19395 "                 const char *path);\n"
19396 "\n"
19397 msgstr ""
19398
19399 # type: textblock
19400 #. type: textblock
19401 #: ../src/guestfs-actions.pod:6733 ../fish/guestfish-actions.pod:4502
19402 msgid ""
19403 "If the parameter C<nrlines> is a positive number, this returns the last "
19404 "C<nrlines> lines of the file C<path>."
19405 msgstr ""
19406
19407 # type: textblock
19408 #. type: textblock
19409 #: ../src/guestfs-actions.pod:6736 ../fish/guestfish-actions.pod:4505
19410 msgid ""
19411 "If the parameter C<nrlines> is a negative number, this returns lines from "
19412 "the file C<path>, starting with the C<-nrlines>th line."
19413 msgstr ""
19414
19415 # type: =head2
19416 #. type: =head2
19417 #: ../src/guestfs-actions.pod:6750
19418 msgid "guestfs_tar_in"
19419 msgstr ""
19420
19421 # type: verbatim
19422 #. type: verbatim
19423 #: ../src/guestfs-actions.pod:6752
19424 #, no-wrap
19425 msgid ""
19426 " int\n"
19427 " guestfs_tar_in (guestfs_h *g,\n"
19428 "                 const char *tarfile,\n"
19429 "                 const char *directory);\n"
19430 "\n"
19431 msgstr ""
19432
19433 # type: textblock
19434 #. type: textblock
19435 #: ../src/guestfs-actions.pod:6757 ../fish/guestfish-actions.pod:4517
19436 msgid ""
19437 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
19438 "tar file) into C<directory>."
19439 msgstr ""
19440
19441 # type: textblock
19442 #. type: textblock
19443 #: ../src/guestfs-actions.pod:6760
19444 msgid ""
19445 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
19446 msgstr ""
19447
19448 # type: textblock
19449 #. type: textblock
19450 #: ../src/guestfs-actions.pod:6765 ../src/guestfs-actions.pod:6782
19451 #: ../src/guestfs-actions.pod:6798 ../src/guestfs-actions.pod:6814
19452 msgid "(Added in 1.0.3)"
19453 msgstr ""
19454
19455 # type: =head2
19456 #. type: =head2
19457 #: ../src/guestfs-actions.pod:6767
19458 msgid "guestfs_tar_out"
19459 msgstr ""
19460
19461 # type: verbatim
19462 #. type: verbatim
19463 #: ../src/guestfs-actions.pod:6769
19464 #, no-wrap
19465 msgid ""
19466 " int\n"
19467 " guestfs_tar_out (guestfs_h *g,\n"
19468 "                  const char *directory,\n"
19469 "                  const char *tarfile);\n"
19470 "\n"
19471 msgstr ""
19472
19473 # type: textblock
19474 #. type: textblock
19475 #: ../src/guestfs-actions.pod:6774 ../fish/guestfish-actions.pod:4529
19476 msgid ""
19477 "This command packs the contents of C<directory> and downloads it to local "
19478 "file C<tarfile>."
19479 msgstr ""
19480
19481 # type: textblock
19482 #. type: textblock
19483 #: ../src/guestfs-actions.pod:6777
19484 msgid ""
19485 "To download a compressed tarball, use C<guestfs_tgz_out> or "
19486 "C<guestfs_txz_out>."
19487 msgstr ""
19488
19489 # type: =head2
19490 #. type: =head2
19491 #: ../src/guestfs-actions.pod:6784
19492 msgid "guestfs_tgz_in"
19493 msgstr ""
19494
19495 # type: verbatim
19496 #. type: verbatim
19497 #: ../src/guestfs-actions.pod:6786
19498 #, no-wrap
19499 msgid ""
19500 " int\n"
19501 " guestfs_tgz_in (guestfs_h *g,\n"
19502 "                 const char *tarball,\n"
19503 "                 const char *directory);\n"
19504 "\n"
19505 msgstr ""
19506
19507 # type: textblock
19508 #. type: textblock
19509 #: ../src/guestfs-actions.pod:6791 ../fish/guestfish-actions.pod:4541
19510 msgid ""
19511 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
19512 "tar file) into C<directory>."
19513 msgstr ""
19514
19515 # type: textblock
19516 #. type: textblock
19517 #: ../src/guestfs-actions.pod:6794
19518 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
19519 msgstr ""
19520
19521 # type: =head2
19522 #. type: =head2
19523 #: ../src/guestfs-actions.pod:6800
19524 msgid "guestfs_tgz_out"
19525 msgstr ""
19526
19527 # type: verbatim
19528 #. type: verbatim
19529 #: ../src/guestfs-actions.pod:6802
19530 #, no-wrap
19531 msgid ""
19532 " int\n"
19533 " guestfs_tgz_out (guestfs_h *g,\n"
19534 "                  const char *directory,\n"
19535 "                  const char *tarball);\n"
19536 "\n"
19537 msgstr ""
19538
19539 # type: textblock
19540 #. type: textblock
19541 #: ../src/guestfs-actions.pod:6807 ../fish/guestfish-actions.pod:4552
19542 msgid ""
19543 "This command packs the contents of C<directory> and downloads it to local "
19544 "file C<tarball>."
19545 msgstr ""
19546
19547 # type: textblock
19548 #. type: textblock
19549 #: ../src/guestfs-actions.pod:6810
19550 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
19551 msgstr ""
19552
19553 # type: =head2
19554 #. type: =head2
19555 #: ../src/guestfs-actions.pod:6816
19556 msgid "guestfs_touch"
19557 msgstr ""
19558
19559 # type: verbatim
19560 #. type: verbatim
19561 #: ../src/guestfs-actions.pod:6818
19562 #, no-wrap
19563 msgid ""
19564 " int\n"
19565 " guestfs_touch (guestfs_h *g,\n"
19566 "                const char *path);\n"
19567 "\n"
19568 msgstr ""
19569
19570 # type: textblock
19571 #. type: textblock
19572 #: ../src/guestfs-actions.pod:6822 ../fish/guestfish-actions.pod:4563
19573 msgid ""
19574 "Touch acts like the L<touch(1)> command.  It can be used to update the "
19575 "timestamps on a file, or, if the file does not exist, to create a new zero-"
19576 "length file."
19577 msgstr ""
19578
19579 # type: textblock
19580 #. type: textblock
19581 #: ../src/guestfs-actions.pod:6826 ../fish/guestfish-actions.pod:4567
19582 msgid ""
19583 "This command only works on regular files, and will fail on other file types "
19584 "such as directories, symbolic links, block special etc."
19585 msgstr ""
19586
19587 # type: =head2
19588 #. type: =head2
19589 #: ../src/guestfs-actions.pod:6833
19590 msgid "guestfs_truncate"
19591 msgstr ""
19592
19593 # type: verbatim
19594 #. type: verbatim
19595 #: ../src/guestfs-actions.pod:6835
19596 #, no-wrap
19597 msgid ""
19598 " int\n"
19599 " guestfs_truncate (guestfs_h *g,\n"
19600 "                   const char *path);\n"
19601 "\n"
19602 msgstr ""
19603
19604 # type: textblock
19605 #. type: textblock
19606 #: ../src/guestfs-actions.pod:6839 ../fish/guestfish-actions.pod:4574
19607 msgid ""
19608 "This command truncates C<path> to a zero-length file.  The file must exist "
19609 "already."
19610 msgstr ""
19611
19612 # type: =head2
19613 #. type: =head2
19614 #: ../src/guestfs-actions.pod:6846
19615 msgid "guestfs_truncate_size"
19616 msgstr ""
19617
19618 # type: verbatim
19619 #. type: verbatim
19620 #: ../src/guestfs-actions.pod:6848
19621 #, no-wrap
19622 msgid ""
19623 " int\n"
19624 " guestfs_truncate_size (guestfs_h *g,\n"
19625 "                        const char *path,\n"
19626 "                        int64_t size);\n"
19627 "\n"
19628 msgstr ""
19629
19630 # type: textblock
19631 #. type: textblock
19632 #: ../src/guestfs-actions.pod:6853 ../fish/guestfish-actions.pod:4581
19633 msgid ""
19634 "This command truncates C<path> to size C<size> bytes.  The file must exist "
19635 "already."
19636 msgstr ""
19637
19638 # type: textblock
19639 #. type: textblock
19640 #: ../src/guestfs-actions.pod:6856
19641 msgid ""
19642 "If the current file size is less than C<size> then the file is extended to "
19643 "the required size with zero bytes.  This creates a sparse file (ie. disk "
19644 "blocks are not allocated for the file until you write to it).  To create a "
19645 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
19646 msgstr ""
19647
19648 # type: =head2
19649 #. type: =head2
19650 #: ../src/guestfs-actions.pod:6866
19651 msgid "guestfs_tune2fs_l"
19652 msgstr ""
19653
19654 # type: verbatim
19655 #. type: verbatim
19656 #: ../src/guestfs-actions.pod:6868
19657 #, no-wrap
19658 msgid ""
19659 " char **\n"
19660 " guestfs_tune2fs_l (guestfs_h *g,\n"
19661 "                    const char *device);\n"
19662 "\n"
19663 msgstr ""
19664
19665 # type: textblock
19666 #. type: textblock
19667 #: ../src/guestfs-actions.pod:6872 ../fish/guestfish-actions.pod:4594
19668 msgid ""
19669 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
19670 "C<device>."
19671 msgstr ""
19672
19673 # type: textblock
19674 #. type: textblock
19675 #: ../src/guestfs-actions.pod:6875 ../fish/guestfish-actions.pod:4597
19676 msgid ""
19677 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
19678 "for more details.  The list of fields returned isn't clearly defined, and "
19679 "depends on both the version of C<tune2fs> that libguestfs was built against, "
19680 "and the filesystem itself."
19681 msgstr ""
19682
19683 # type: =head2
19684 #. type: =head2
19685 #: ../src/guestfs-actions.pod:6888
19686 msgid "guestfs_txz_in"
19687 msgstr ""
19688
19689 # type: verbatim
19690 #. type: verbatim
19691 #: ../src/guestfs-actions.pod:6890
19692 #, no-wrap
19693 msgid ""
19694 " int\n"
19695 " guestfs_txz_in (guestfs_h *g,\n"
19696 "                 const char *tarball,\n"
19697 "                 const char *directory);\n"
19698 "\n"
19699 msgstr ""
19700
19701 # type: textblock
19702 #. type: textblock
19703 #: ../src/guestfs-actions.pod:6895 ../fish/guestfish-actions.pod:4606
19704 msgid ""
19705 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
19706 "tar file) into C<directory>."
19707 msgstr ""
19708
19709 # type: =head2
19710 #. type: =head2
19711 #: ../src/guestfs-actions.pod:6902
19712 msgid "guestfs_txz_out"
19713 msgstr ""
19714
19715 # type: verbatim
19716 #. type: verbatim
19717 #: ../src/guestfs-actions.pod:6904
19718 #, no-wrap
19719 msgid ""
19720 " int\n"
19721 " guestfs_txz_out (guestfs_h *g,\n"
19722 "                  const char *directory,\n"
19723 "                  const char *tarball);\n"
19724 "\n"
19725 msgstr ""
19726
19727 # type: textblock
19728 #. type: textblock
19729 #: ../src/guestfs-actions.pod:6909 ../fish/guestfish-actions.pod:4615
19730 msgid ""
19731 "This command packs the contents of C<directory> and downloads it to local "
19732 "file C<tarball> (as an xz compressed tar archive)."
19733 msgstr ""
19734
19735 # type: =head2
19736 #. type: =head2
19737 #: ../src/guestfs-actions.pod:6916
19738 msgid "guestfs_umask"
19739 msgstr ""
19740
19741 # type: verbatim
19742 #. type: verbatim
19743 #: ../src/guestfs-actions.pod:6918
19744 #, no-wrap
19745 msgid ""
19746 " int\n"
19747 " guestfs_umask (guestfs_h *g,\n"
19748 "                int mask);\n"
19749 "\n"
19750 msgstr ""
19751
19752 # type: textblock
19753 #. type: textblock
19754 #: ../src/guestfs-actions.pod:6922 ../fish/guestfish-actions.pod:4624
19755 msgid ""
19756 "This function sets the mask used for creating new files and device nodes to "
19757 "C<mask & 0777>."
19758 msgstr ""
19759
19760 # type: textblock
19761 #. type: textblock
19762 #: ../src/guestfs-actions.pod:6925 ../fish/guestfish-actions.pod:4627
19763 msgid ""
19764 "Typical umask values would be C<022> which creates new files with "
19765 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
19766 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
19767 msgstr ""
19768
19769 # type: textblock
19770 #. type: textblock
19771 #: ../src/guestfs-actions.pod:6930 ../fish/guestfish-actions.pod:4632
19772 msgid ""
19773 "The default umask is C<022>.  This is important because it means that "
19774 "directories and device nodes will be created with C<0644> or C<0755> mode "
19775 "even if you specify C<0777>."
19776 msgstr ""
19777
19778 # type: textblock
19779 #. type: textblock
19780 #: ../src/guestfs-actions.pod:6934
19781 msgid ""
19782 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
19783 "C<guestfs_mkdir>."
19784 msgstr ""
19785
19786 # type: textblock
19787 #. type: textblock
19788 #: ../src/guestfs-actions.pod:6937 ../fish/guestfish-actions.pod:4639
19789 msgid "This call returns the previous umask."
19790 msgstr ""
19791
19792 # type: =head2
19793 #. type: =head2
19794 #: ../src/guestfs-actions.pod:6943
19795 msgid "guestfs_umount"
19796 msgstr ""
19797
19798 # type: verbatim
19799 #. type: verbatim
19800 #: ../src/guestfs-actions.pod:6945
19801 #, no-wrap
19802 msgid ""
19803 " int\n"
19804 " guestfs_umount (guestfs_h *g,\n"
19805 "                 const char *pathordevice);\n"
19806 "\n"
19807 msgstr ""
19808
19809 # type: textblock
19810 #. type: textblock
19811 #: ../src/guestfs-actions.pod:6949 ../fish/guestfish-actions.pod:4647
19812 msgid ""
19813 "This unmounts the given filesystem.  The filesystem may be specified either "
19814 "by its mountpoint (path) or the device which contains the filesystem."
19815 msgstr ""
19816
19817 # type: =head2
19818 #. type: =head2
19819 #: ../src/guestfs-actions.pod:6957
19820 msgid "guestfs_umount_all"
19821 msgstr ""
19822
19823 # type: verbatim
19824 #. type: verbatim
19825 #: ../src/guestfs-actions.pod:6959
19826 #, no-wrap
19827 msgid ""
19828 " int\n"
19829 " guestfs_umount_all (guestfs_h *g);\n"
19830 "\n"
19831 msgstr ""
19832
19833 # type: textblock
19834 #. type: textblock
19835 #: ../src/guestfs-actions.pod:6962 ../fish/guestfish-actions.pod:4657
19836 msgid "This unmounts all mounted filesystems."
19837 msgstr ""
19838
19839 # type: textblock
19840 #. type: textblock
19841 #: ../src/guestfs-actions.pod:6964 ../fish/guestfish-actions.pod:4659
19842 msgid "Some internal mounts are not unmounted by this call."
19843 msgstr ""
19844
19845 # type: =head2
19846 #. type: =head2
19847 #: ../src/guestfs-actions.pod:6970
19848 msgid "guestfs_upload"
19849 msgstr ""
19850
19851 # type: verbatim
19852 #. type: verbatim
19853 #: ../src/guestfs-actions.pod:6972
19854 #, no-wrap
19855 msgid ""
19856 " int\n"
19857 " guestfs_upload (guestfs_h *g,\n"
19858 "                 const char *filename,\n"
19859 "                 const char *remotefilename);\n"
19860 "\n"
19861 msgstr ""
19862
19863 # type: textblock
19864 #. type: textblock
19865 #: ../src/guestfs-actions.pod:6977 ../src/guestfs-actions.pod:7001
19866 #: ../fish/guestfish-actions.pod:4665 ../fish/guestfish-actions.pod:4678
19867 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
19868 msgstr ""
19869
19870 # type: textblock
19871 #. type: textblock
19872 #: ../src/guestfs-actions.pod:6982
19873 msgid "See also C<guestfs_download>."
19874 msgstr ""
19875
19876 # type: =head2
19877 #. type: =head2
19878 #: ../src/guestfs-actions.pod:6993
19879 msgid "guestfs_upload_offset"
19880 msgstr ""
19881
19882 # type: verbatim
19883 #. type: verbatim
19884 #: ../src/guestfs-actions.pod:6995
19885 #, no-wrap
19886 msgid ""
19887 " int\n"
19888 " guestfs_upload_offset (guestfs_h *g,\n"
19889 "                        const char *filename,\n"
19890 "                        const char *remotefilename,\n"
19891 "                        int64_t offset);\n"
19892 "\n"
19893 msgstr ""
19894
19895 # type: textblock
19896 #. type: textblock
19897 #: ../src/guestfs-actions.pod:7004 ../fish/guestfish-actions.pod:4681
19898 msgid ""
19899 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
19900 "The intention is to overwrite parts of existing files or devices, although "
19901 "if a non-existant file is specified then it is created with a \"hole\" "
19902 "before C<offset>.  The size of the data written is implicit in the size of "
19903 "the source C<filename>."
19904 msgstr ""
19905
19906 # type: textblock
19907 #. type: textblock
19908 #: ../src/guestfs-actions.pod:7011
19909 msgid ""
19910 "Note that there is no limit on the amount of data that can be uploaded with "
19911 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
19912 "full amount unless an error occurs."
19913 msgstr ""
19914
19915 # type: textblock
19916 #. type: textblock
19917 #: ../src/guestfs-actions.pod:7016
19918 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
19919 msgstr ""
19920
19921 # type: =head2
19922 #. type: =head2
19923 #: ../src/guestfs-actions.pod:7027
19924 msgid "guestfs_utimens"
19925 msgstr ""
19926
19927 # type: verbatim
19928 #. type: verbatim
19929 #: ../src/guestfs-actions.pod:7029
19930 #, no-wrap
19931 msgid ""
19932 " int\n"
19933 " guestfs_utimens (guestfs_h *g,\n"
19934 "                  const char *path,\n"
19935 "                  int64_t atsecs,\n"
19936 "                  int64_t atnsecs,\n"
19937 "                  int64_t mtsecs,\n"
19938 "                  int64_t mtnsecs);\n"
19939 "\n"
19940 msgstr ""
19941
19942 # type: textblock
19943 #. type: textblock
19944 #: ../src/guestfs-actions.pod:7037 ../fish/guestfish-actions.pod:4701
19945 msgid "This command sets the timestamps of a file with nanosecond precision."
19946 msgstr ""
19947
19948 # type: textblock
19949 #. type: textblock
19950 #: ../src/guestfs-actions.pod:7040 ../fish/guestfish-actions.pod:4704
19951 msgid ""
19952 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
19953 "from the epoch."
19954 msgstr ""
19955
19956 # type: textblock
19957 #. type: textblock
19958 #: ../src/guestfs-actions.pod:7043 ../fish/guestfish-actions.pod:4707
19959 msgid ""
19960 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
19961 "nanoseconds from the epoch."
19962 msgstr ""
19963
19964 # type: textblock
19965 #. type: textblock
19966 #: ../src/guestfs-actions.pod:7046 ../fish/guestfish-actions.pod:4710
19967 msgid ""
19968 "If the C<*nsecs> field contains the special value C<-1> then the "
19969 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
19970 "ignored in this case)."
19971 msgstr ""
19972
19973 # type: textblock
19974 #. type: textblock
19975 #: ../src/guestfs-actions.pod:7050 ../fish/guestfish-actions.pod:4714
19976 msgid ""
19977 "If the C<*nsecs> field contains the special value C<-2> then the "
19978 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
19979 "in this case)."
19980 msgstr ""
19981
19982 # type: =head2
19983 #. type: =head2
19984 #: ../src/guestfs-actions.pod:7058 ../src/guestfs-structs.pod:175
19985 msgid "guestfs_version"
19986 msgstr ""
19987
19988 # type: verbatim
19989 #. type: verbatim
19990 #: ../src/guestfs-actions.pod:7060
19991 #, no-wrap
19992 msgid ""
19993 " struct guestfs_version *\n"
19994 " guestfs_version (guestfs_h *g);\n"
19995 "\n"
19996 msgstr ""
19997
19998 # type: textblock
19999 #. type: textblock
20000 #: ../src/guestfs-actions.pod:7063 ../fish/guestfish-actions.pod:4722
20001 msgid ""
20002 "Return the libguestfs version number that the program is linked against."
20003 msgstr ""
20004
20005 # type: textblock
20006 #. type: textblock
20007 #: ../src/guestfs-actions.pod:7066 ../fish/guestfish-actions.pod:4725
20008 msgid ""
20009 "Note that because of dynamic linking this is not necessarily the version of "
20010 "libguestfs that you compiled against.  You can compile the program, and then "
20011 "at runtime dynamically link against a completely different C<libguestfs.so> "
20012 "library."
20013 msgstr ""
20014
20015 # type: textblock
20016 #. type: textblock
20017 #: ../src/guestfs-actions.pod:7071 ../fish/guestfish-actions.pod:4730
20018 msgid ""
20019 "This call was added in version C<1.0.58>.  In previous versions of "
20020 "libguestfs there was no way to get the version number.  From C code you can "
20021 "use dynamic linker functions to find out if this symbol exists (if it "
20022 "doesn't, then it's an earlier version)."
20023 msgstr ""
20024
20025 # type: textblock
20026 #. type: textblock
20027 #: ../src/guestfs-actions.pod:7077 ../fish/guestfish-actions.pod:4736
20028 msgid ""
20029 "The call returns a structure with four elements.  The first three (C<major>, "
20030 "C<minor> and C<release>) are numbers and correspond to the usual version "
20031 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
20032 "but may be used for distro-specific information."
20033 msgstr ""
20034
20035 # type: textblock
20036 #. type: textblock
20037 #: ../src/guestfs-actions.pod:7083 ../fish/guestfish-actions.pod:4742
20038 msgid ""
20039 "To construct the original version string: C<$major.$minor.$release$extra>"
20040 msgstr ""
20041
20042 # type: textblock
20043 #. type: textblock
20044 #: ../src/guestfs-actions.pod:7086 ../fish/guestfish-actions.pod:4745
20045 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
20046 msgstr ""
20047
20048 # type: textblock
20049 #. type: textblock
20050 #: ../src/guestfs-actions.pod:7088
20051 msgid ""
20052 "I<Note:> Don't use this call to test for availability of features.  In "
20053 "enterprise distributions we backport features from later versions into "
20054 "earlier versions, making this an unreliable way to test for features.  Use "
20055 "C<guestfs_available> instead."
20056 msgstr ""
20057
20058 # type: textblock
20059 #. type: textblock
20060 #: ../src/guestfs-actions.pod:7094
20061 msgid ""
20062 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
20063 "error.  I<The caller must call C<guestfs_free_version> after use>."
20064 msgstr ""
20065
20066 # type: textblock
20067 #. type: textblock
20068 #: ../src/guestfs-actions.pod:7098
20069 msgid "(Added in 1.0.58)"
20070 msgstr ""
20071
20072 # type: =head2
20073 #. type: =head2
20074 #: ../src/guestfs-actions.pod:7100
20075 msgid "guestfs_vfs_label"
20076 msgstr ""
20077
20078 # type: verbatim
20079 #. type: verbatim
20080 #: ../src/guestfs-actions.pod:7102
20081 #, no-wrap
20082 msgid ""
20083 " char *\n"
20084 " guestfs_vfs_label (guestfs_h *g,\n"
20085 "                    const char *device);\n"
20086 "\n"
20087 msgstr ""
20088
20089 # type: textblock
20090 #. type: textblock
20091 #: ../src/guestfs-actions.pod:7106 ../fish/guestfish-actions.pod:4757
20092 msgid "This returns the filesystem label of the filesystem on C<device>."
20093 msgstr ""
20094
20095 # type: textblock
20096 #. type: textblock
20097 #: ../src/guestfs-actions.pod:7109 ../fish/guestfish-actions.pod:4760
20098 msgid "If the filesystem is unlabeled, this returns the empty string."
20099 msgstr ""
20100
20101 # type: textblock
20102 #. type: textblock
20103 #: ../src/guestfs-actions.pod:7111
20104 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
20105 msgstr ""
20106
20107 # type: textblock
20108 #. type: textblock
20109 #: ../src/guestfs-actions.pod:7116 ../src/guestfs-actions.pod:7153
20110 msgid "(Added in 1.3.18)"
20111 msgstr ""
20112
20113 # type: =head2
20114 #. type: =head2
20115 #: ../src/guestfs-actions.pod:7118
20116 msgid "guestfs_vfs_type"
20117 msgstr ""
20118
20119 # type: verbatim
20120 #. type: verbatim
20121 #: ../src/guestfs-actions.pod:7120
20122 #, no-wrap
20123 msgid ""
20124 " char *\n"
20125 " guestfs_vfs_type (guestfs_h *g,\n"
20126 "                   const char *device);\n"
20127 "\n"
20128 msgstr ""
20129
20130 # type: textblock
20131 #. type: textblock
20132 #: ../src/guestfs-actions.pod:7124 ../fish/guestfish-actions.pod:4768
20133 msgid ""
20134 "This command gets the filesystem type corresponding to the filesystem on "
20135 "C<device>."
20136 msgstr ""
20137
20138 # type: textblock
20139 #. type: textblock
20140 #: ../src/guestfs-actions.pod:7127 ../fish/guestfish-actions.pod:4771
20141 msgid ""
20142 "For most filesystems, the result is the name of the Linux VFS module which "
20143 "would be used to mount this filesystem if you mounted it without specifying "
20144 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
20145 msgstr ""
20146
20147 # type: =head2
20148 #. type: =head2
20149 #: ../src/guestfs-actions.pod:7137
20150 msgid "guestfs_vfs_uuid"
20151 msgstr ""
20152
20153 # type: verbatim
20154 #. type: verbatim
20155 #: ../src/guestfs-actions.pod:7139
20156 #, no-wrap
20157 msgid ""
20158 " char *\n"
20159 " guestfs_vfs_uuid (guestfs_h *g,\n"
20160 "                   const char *device);\n"
20161 "\n"
20162 msgstr ""
20163
20164 # type: textblock
20165 #. type: textblock
20166 #: ../src/guestfs-actions.pod:7143 ../fish/guestfish-actions.pod:4780
20167 msgid "This returns the filesystem UUID of the filesystem on C<device>."
20168 msgstr ""
20169
20170 # type: textblock
20171 #. type: textblock
20172 #: ../src/guestfs-actions.pod:7146 ../fish/guestfish-actions.pod:4783
20173 msgid "If the filesystem does not have a UUID, this returns the empty string."
20174 msgstr ""
20175
20176 # type: textblock
20177 #. type: textblock
20178 #: ../src/guestfs-actions.pod:7148
20179 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
20180 msgstr ""
20181
20182 # type: =head2
20183 #. type: =head2
20184 #: ../src/guestfs-actions.pod:7155
20185 msgid "guestfs_vg_activate"
20186 msgstr ""
20187
20188 # type: verbatim
20189 #. type: verbatim
20190 #: ../src/guestfs-actions.pod:7157
20191 #, no-wrap
20192 msgid ""
20193 " int\n"
20194 " guestfs_vg_activate (guestfs_h *g,\n"
20195 "                      int activate,\n"
20196 "                      char *const *volgroups);\n"
20197 "\n"
20198 msgstr ""
20199
20200 # type: textblock
20201 #. type: textblock
20202 #: ../src/guestfs-actions.pod:7162 ../fish/guestfish-actions.pod:4791
20203 msgid ""
20204 "This command activates or (if C<activate> is false) deactivates all logical "
20205 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
20206 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
20207 "deactivated, then those devices disappear."
20208 msgstr ""
20209
20210 # type: textblock
20211 #. type: textblock
20212 #: ../src/guestfs-actions.pod:7168 ../fish/guestfish-actions.pod:4797
20213 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
20214 msgstr ""
20215
20216 # type: textblock
20217 #. type: textblock
20218 #: ../src/guestfs-actions.pod:7170 ../fish/guestfish-actions.pod:4799
20219 msgid ""
20220 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
20221 "activated or deactivated."
20222 msgstr ""
20223
20224 # type: =head2
20225 #. type: =head2
20226 #: ../src/guestfs-actions.pod:7177
20227 msgid "guestfs_vg_activate_all"
20228 msgstr ""
20229
20230 # type: verbatim
20231 #. type: verbatim
20232 #: ../src/guestfs-actions.pod:7179
20233 #, no-wrap
20234 msgid ""
20235 " int\n"
20236 " guestfs_vg_activate_all (guestfs_h *g,\n"
20237 "                          int activate);\n"
20238 "\n"
20239 msgstr ""
20240
20241 # type: textblock
20242 #. type: textblock
20243 #: ../src/guestfs-actions.pod:7183 ../fish/guestfish-actions.pod:4806
20244 msgid ""
20245 "This command activates or (if C<activate> is false) deactivates all logical "
20246 "volumes in all volume groups.  If activated, then they are made known to the "
20247 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
20248 "those devices disappear."
20249 msgstr ""
20250
20251 # type: textblock
20252 #. type: textblock
20253 #: ../src/guestfs-actions.pod:7189 ../fish/guestfish-actions.pod:4812
20254 msgid "This command is the same as running C<vgchange -a y|n>"
20255 msgstr ""
20256
20257 # type: =head2
20258 #. type: =head2
20259 #: ../src/guestfs-actions.pod:7195
20260 msgid "guestfs_vgcreate"
20261 msgstr ""
20262
20263 # type: verbatim
20264 #. type: verbatim
20265 #: ../src/guestfs-actions.pod:7197
20266 #, no-wrap
20267 msgid ""
20268 " int\n"
20269 " guestfs_vgcreate (guestfs_h *g,\n"
20270 "                   const char *volgroup,\n"
20271 "                   char *const *physvols);\n"
20272 "\n"
20273 msgstr ""
20274
20275 # type: textblock
20276 #. type: textblock
20277 #: ../src/guestfs-actions.pod:7202 ../fish/guestfish-actions.pod:4818
20278 msgid ""
20279 "This creates an LVM volume group called C<volgroup> from the non-empty list "
20280 "of physical volumes C<physvols>."
20281 msgstr ""
20282
20283 # type: =head2
20284 #. type: =head2
20285 #: ../src/guestfs-actions.pod:7209
20286 msgid "guestfs_vglvuuids"
20287 msgstr ""
20288
20289 # type: verbatim
20290 #. type: verbatim
20291 #: ../src/guestfs-actions.pod:7211
20292 #, no-wrap
20293 msgid ""
20294 " char **\n"
20295 " guestfs_vglvuuids (guestfs_h *g,\n"
20296 "                    const char *vgname);\n"
20297 "\n"
20298 msgstr ""
20299
20300 # type: textblock
20301 #. type: textblock
20302 #: ../src/guestfs-actions.pod:7215 ../fish/guestfish-actions.pod:4825
20303 msgid ""
20304 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
20305 "volumes created in this volume group."
20306 msgstr ""
20307
20308 # type: textblock
20309 #. type: textblock
20310 #: ../src/guestfs-actions.pod:7218
20311 msgid ""
20312 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
20313 "associate logical volumes and volume groups."
20314 msgstr ""
20315
20316 # type: textblock
20317 #. type: textblock
20318 #: ../src/guestfs-actions.pod:7221
20319 msgid "See also C<guestfs_vgpvuuids>."
20320 msgstr ""
20321
20322 # type: =head2
20323 #. type: =head2
20324 #: ../src/guestfs-actions.pod:7229
20325 msgid "guestfs_vgpvuuids"
20326 msgstr ""
20327
20328 # type: verbatim
20329 #. type: verbatim
20330 #: ../src/guestfs-actions.pod:7231
20331 #, no-wrap
20332 msgid ""
20333 " char **\n"
20334 " guestfs_vgpvuuids (guestfs_h *g,\n"
20335 "                    const char *vgname);\n"
20336 "\n"
20337 msgstr ""
20338
20339 # type: textblock
20340 #. type: textblock
20341 #: ../src/guestfs-actions.pod:7235 ../fish/guestfish-actions.pod:4837
20342 msgid ""
20343 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
20344 "volumes that this volume group resides on."
20345 msgstr ""
20346
20347 # type: textblock
20348 #. type: textblock
20349 #: ../src/guestfs-actions.pod:7238
20350 msgid ""
20351 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
20352 "associate physical volumes and volume groups."
20353 msgstr ""
20354
20355 # type: textblock
20356 #. type: textblock
20357 #: ../src/guestfs-actions.pod:7241
20358 msgid "See also C<guestfs_vglvuuids>."
20359 msgstr ""
20360
20361 # type: =head2
20362 #. type: =head2
20363 #: ../src/guestfs-actions.pod:7249
20364 msgid "guestfs_vgremove"
20365 msgstr ""
20366
20367 # type: verbatim
20368 #. type: verbatim
20369 #: ../src/guestfs-actions.pod:7251
20370 #, no-wrap
20371 msgid ""
20372 " int\n"
20373 " guestfs_vgremove (guestfs_h *g,\n"
20374 "                   const char *vgname);\n"
20375 "\n"
20376 msgstr ""
20377
20378 # type: textblock
20379 #. type: textblock
20380 #: ../src/guestfs-actions.pod:7255 ../fish/guestfish-actions.pod:4849
20381 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
20382 msgstr ""
20383
20384 # type: textblock
20385 #. type: textblock
20386 #: ../src/guestfs-actions.pod:7257 ../fish/guestfish-actions.pod:4851
20387 msgid ""
20388 "This also forcibly removes all logical volumes in the volume group (if any)."
20389 msgstr ""
20390
20391 # type: =head2
20392 #. type: =head2
20393 #: ../src/guestfs-actions.pod:7264
20394 msgid "guestfs_vgrename"
20395 msgstr ""
20396
20397 # type: verbatim
20398 #. type: verbatim
20399 #: ../src/guestfs-actions.pod:7266
20400 #, no-wrap
20401 msgid ""
20402 " int\n"
20403 " guestfs_vgrename (guestfs_h *g,\n"
20404 "                   const char *volgroup,\n"
20405 "                   const char *newvolgroup);\n"
20406 "\n"
20407 msgstr ""
20408
20409 # type: textblock
20410 #. type: textblock
20411 #: ../src/guestfs-actions.pod:7271 ../fish/guestfish-actions.pod:4858
20412 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
20413 msgstr ""
20414
20415 # type: =head2
20416 #. type: =head2
20417 #: ../src/guestfs-actions.pod:7277
20418 msgid "guestfs_vgs"
20419 msgstr ""
20420
20421 # type: verbatim
20422 #. type: verbatim
20423 #: ../src/guestfs-actions.pod:7279
20424 #, no-wrap
20425 msgid ""
20426 " char **\n"
20427 " guestfs_vgs (guestfs_h *g);\n"
20428 "\n"
20429 msgstr ""
20430
20431 # type: textblock
20432 #. type: textblock
20433 #: ../src/guestfs-actions.pod:7282 ../fish/guestfish-actions.pod:4864
20434 msgid ""
20435 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
20436 "> command."
20437 msgstr ""
20438
20439 # type: textblock
20440 #. type: textblock
20441 #: ../src/guestfs-actions.pod:7285 ../fish/guestfish-actions.pod:4867
20442 msgid ""
20443 "This returns a list of just the volume group names that were detected (eg. "
20444 "C<VolGroup00>)."
20445 msgstr ""
20446
20447 # type: textblock
20448 #. type: textblock
20449 #: ../src/guestfs-actions.pod:7288
20450 msgid "See also C<guestfs_vgs_full>."
20451 msgstr ""
20452
20453 # type: =head2
20454 #. type: =head2
20455 #: ../src/guestfs-actions.pod:7296
20456 msgid "guestfs_vgs_full"
20457 msgstr ""
20458
20459 # type: verbatim
20460 #. type: verbatim
20461 #: ../src/guestfs-actions.pod:7298
20462 #, no-wrap
20463 msgid ""
20464 " struct guestfs_lvm_vg_list *\n"
20465 " guestfs_vgs_full (guestfs_h *g);\n"
20466 "\n"
20467 msgstr ""
20468
20469 # type: textblock
20470 #. type: textblock
20471 #: ../src/guestfs-actions.pod:7301 ../fish/guestfish-actions.pod:4876
20472 msgid ""
20473 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
20474 "> command.  The \"full\" version includes all fields."
20475 msgstr ""
20476
20477 # type: textblock
20478 #. type: textblock
20479 #: ../src/guestfs-actions.pod:7304
20480 msgid ""
20481 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
20482 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
20483 msgstr ""
20484
20485 # type: =head2
20486 #. type: =head2
20487 #: ../src/guestfs-actions.pod:7310
20488 msgid "guestfs_vgscan"
20489 msgstr ""
20490
20491 # type: verbatim
20492 #. type: verbatim
20493 #: ../src/guestfs-actions.pod:7312
20494 #, no-wrap
20495 msgid ""
20496 " int\n"
20497 " guestfs_vgscan (guestfs_h *g);\n"
20498 "\n"
20499 msgstr ""
20500
20501 # type: textblock
20502 #. type: textblock
20503 #: ../src/guestfs-actions.pod:7315 ../fish/guestfish-actions.pod:4883
20504 msgid ""
20505 "This rescans all block devices and rebuilds the list of LVM physical "
20506 "volumes, volume groups and logical volumes."
20507 msgstr ""
20508
20509 # type: =head2
20510 #. type: =head2
20511 #: ../src/guestfs-actions.pod:7322
20512 msgid "guestfs_vguuid"
20513 msgstr ""
20514
20515 # type: verbatim
20516 #. type: verbatim
20517 #: ../src/guestfs-actions.pod:7324
20518 #, no-wrap
20519 msgid ""
20520 " char *\n"
20521 " guestfs_vguuid (guestfs_h *g,\n"
20522 "                 const char *vgname);\n"
20523 "\n"
20524 msgstr ""
20525
20526 # type: textblock
20527 #. type: textblock
20528 #: ../src/guestfs-actions.pod:7328 ../fish/guestfish-actions.pod:4890
20529 msgid "This command returns the UUID of the LVM VG named C<vgname>."
20530 msgstr ""
20531
20532 # type: =head2
20533 #. type: =head2
20534 #: ../src/guestfs-actions.pod:7335
20535 msgid "guestfs_wait_ready"
20536 msgstr ""
20537
20538 # type: verbatim
20539 #. type: verbatim
20540 #: ../src/guestfs-actions.pod:7337
20541 #, no-wrap
20542 msgid ""
20543 " int\n"
20544 " guestfs_wait_ready (guestfs_h *g);\n"
20545 "\n"
20546 msgstr ""
20547
20548 # type: textblock
20549 #. type: textblock
20550 #: ../src/guestfs-actions.pod:7340
20551 msgid "This function is a no op."
20552 msgstr ""
20553
20554 # type: textblock
20555 #. type: textblock
20556 #: ../src/guestfs-actions.pod:7342
20557 msgid ""
20558 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
20559 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
20560 "is no longer necessary because C<guestfs_launch> now does the waiting."
20561 msgstr ""
20562
20563 # type: textblock
20564 #. type: textblock
20565 #: ../src/guestfs-actions.pod:7347
20566 msgid ""
20567 "If you see any calls to this function in code then you can just remove them, "
20568 "unless you want to retain compatibility with older versions of the API."
20569 msgstr ""
20570
20571 #. type: textblock
20572 #: ../src/guestfs-actions.pod:7353
20573 msgid ""
20574 "This function is deprecated.  In new code, use the C<launch> call instead."
20575 msgstr ""
20576
20577 # type: =head2
20578 #. type: =head2
20579 #: ../src/guestfs-actions.pod:7362
20580 msgid "guestfs_wc_c"
20581 msgstr ""
20582
20583 # type: verbatim
20584 #. type: verbatim
20585 #: ../src/guestfs-actions.pod:7364
20586 #, no-wrap
20587 msgid ""
20588 " int\n"
20589 " guestfs_wc_c (guestfs_h *g,\n"
20590 "               const char *path);\n"
20591 "\n"
20592 msgstr ""
20593
20594 # type: textblock
20595 #. type: textblock
20596 #: ../src/guestfs-actions.pod:7368 ../fish/guestfish-actions.pod:4896
20597 msgid ""
20598 "This command counts the characters in a file, using the C<wc -c> external "
20599 "command."
20600 msgstr ""
20601
20602 # type: =head2
20603 #. type: =head2
20604 #: ../src/guestfs-actions.pod:7375
20605 msgid "guestfs_wc_l"
20606 msgstr ""
20607
20608 # type: verbatim
20609 #. type: verbatim
20610 #: ../src/guestfs-actions.pod:7377
20611 #, no-wrap
20612 msgid ""
20613 " int\n"
20614 " guestfs_wc_l (guestfs_h *g,\n"
20615 "               const char *path);\n"
20616 "\n"
20617 msgstr ""
20618
20619 # type: textblock
20620 #. type: textblock
20621 #: ../src/guestfs-actions.pod:7381 ../fish/guestfish-actions.pod:4903
20622 msgid ""
20623 "This command counts the lines in a file, using the C<wc -l> external command."
20624 msgstr ""
20625
20626 # type: =head2
20627 #. type: =head2
20628 #: ../src/guestfs-actions.pod:7388
20629 msgid "guestfs_wc_w"
20630 msgstr ""
20631
20632 # type: verbatim
20633 #. type: verbatim
20634 #: ../src/guestfs-actions.pod:7390
20635 #, no-wrap
20636 msgid ""
20637 " int\n"
20638 " guestfs_wc_w (guestfs_h *g,\n"
20639 "               const char *path);\n"
20640 "\n"
20641 msgstr ""
20642
20643 # type: textblock
20644 #. type: textblock
20645 #: ../src/guestfs-actions.pod:7394 ../fish/guestfish-actions.pod:4910
20646 msgid ""
20647 "This command counts the words in a file, using the C<wc -w> external command."
20648 msgstr ""
20649
20650 # type: =head2
20651 #. type: =head2
20652 #: ../src/guestfs-actions.pod:7401
20653 msgid "guestfs_write"
20654 msgstr ""
20655
20656 # type: verbatim
20657 #. type: verbatim
20658 #: ../src/guestfs-actions.pod:7403
20659 #, no-wrap
20660 msgid ""
20661 " int\n"
20662 " guestfs_write (guestfs_h *g,\n"
20663 "                const char *path,\n"
20664 "                const char *content,\n"
20665 "                size_t content_size);\n"
20666 "\n"
20667 msgstr ""
20668
20669 # type: textblock
20670 #. type: textblock
20671 #: ../src/guestfs-actions.pod:7409 ../fish/guestfish-actions.pod:4917
20672 msgid ""
20673 "This call creates a file called C<path>.  The content of the file is the "
20674 "string C<content> (which can contain any 8 bit data)."
20675 msgstr ""
20676
20677 # type: =head2
20678 #. type: =head2
20679 #: ../src/guestfs-actions.pod:7419
20680 msgid "guestfs_write_file"
20681 msgstr ""
20682
20683 # type: verbatim
20684 #. type: verbatim
20685 #: ../src/guestfs-actions.pod:7421
20686 #, no-wrap
20687 msgid ""
20688 " int\n"
20689 " guestfs_write_file (guestfs_h *g,\n"
20690 "                     const char *path,\n"
20691 "                     const char *content,\n"
20692 "                     int size);\n"
20693 "\n"
20694 msgstr ""
20695
20696 # type: textblock
20697 #. type: textblock
20698 #: ../src/guestfs-actions.pod:7427 ../fish/guestfish-actions.pod:4927
20699 msgid ""
20700 "This call creates a file called C<path>.  The contents of the file is the "
20701 "string C<content> (which can contain any 8 bit data), with length C<size>."
20702 msgstr ""
20703
20704 # type: textblock
20705 #. type: textblock
20706 #: ../src/guestfs-actions.pod:7431 ../fish/guestfish-actions.pod:4931
20707 msgid ""
20708 "As a special case, if C<size> is C<0> then the length is calculated using "
20709 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
20710 msgstr ""
20711
20712 # type: textblock
20713 #. type: textblock
20714 #: ../src/guestfs-actions.pod:7435 ../fish/guestfish-actions.pod:4935
20715 msgid ""
20716 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
20717 "I<not> work, even if the length is specified."
20718 msgstr ""
20719
20720 # type: textblock
20721 #. type: textblock
20722 #: ../src/guestfs-actions.pod:7443 ../fish/guestfish-actions.pod:4941
20723 msgid ""
20724 "This function is deprecated.  In new code, use the C<write> call instead."
20725 msgstr ""
20726
20727 # type: =head2
20728 #. type: =head2
20729 #: ../src/guestfs-actions.pod:7452
20730 msgid "guestfs_zegrep"
20731 msgstr ""
20732
20733 # type: verbatim
20734 #. type: verbatim
20735 #: ../src/guestfs-actions.pod:7454
20736 #, no-wrap
20737 msgid ""
20738 " char **\n"
20739 " guestfs_zegrep (guestfs_h *g,\n"
20740 "                 const char *regex,\n"
20741 "                 const char *path);\n"
20742 "\n"
20743 msgstr ""
20744
20745 # type: textblock
20746 #. type: textblock
20747 #: ../src/guestfs-actions.pod:7459 ../fish/guestfish-actions.pod:4952
20748 msgid ""
20749 "This calls the external C<zegrep> program and returns the matching lines."
20750 msgstr ""
20751
20752 # type: =head2
20753 #. type: =head2
20754 #: ../src/guestfs-actions.pod:7471
20755 msgid "guestfs_zegrepi"
20756 msgstr ""
20757
20758 # type: verbatim
20759 #. type: verbatim
20760 #: ../src/guestfs-actions.pod:7473
20761 #, no-wrap
20762 msgid ""
20763 " char **\n"
20764 " guestfs_zegrepi (guestfs_h *g,\n"
20765 "                  const char *regex,\n"
20766 "                  const char *path);\n"
20767 "\n"
20768 msgstr ""
20769
20770 # type: textblock
20771 #. type: textblock
20772 #: ../src/guestfs-actions.pod:7478 ../fish/guestfish-actions.pod:4962
20773 msgid ""
20774 "This calls the external C<zegrep -i> program and returns the matching lines."
20775 msgstr ""
20776
20777 # type: =head2
20778 #. type: =head2
20779 #: ../src/guestfs-actions.pod:7490
20780 msgid "guestfs_zero"
20781 msgstr ""
20782
20783 # type: verbatim
20784 #. type: verbatim
20785 #: ../src/guestfs-actions.pod:7492
20786 #, no-wrap
20787 msgid ""
20788 " int\n"
20789 " guestfs_zero (guestfs_h *g,\n"
20790 "               const char *device);\n"
20791 "\n"
20792 msgstr ""
20793
20794 # type: textblock
20795 #. type: textblock
20796 #: ../src/guestfs-actions.pod:7496 ../fish/guestfish-actions.pod:4972
20797 msgid "This command writes zeroes over the first few blocks of C<device>."
20798 msgstr ""
20799
20800 # type: textblock
20801 #. type: textblock
20802 #: ../src/guestfs-actions.pod:7498 ../fish/guestfish-actions.pod:4974
20803 msgid ""
20804 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
20805 "securely wipe the device).  It should be sufficient to remove any partition "
20806 "tables, filesystem superblocks and so on."
20807 msgstr ""
20808
20809 #. type: textblock
20810 #: ../src/guestfs-actions.pod:7502
20811 msgid ""
20812 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
20813 "C<guestfs_is_zero_device>"
20814 msgstr ""
20815
20816 # type: =head2
20817 #. type: =head2
20818 #: ../src/guestfs-actions.pod:7514
20819 msgid "guestfs_zero_device"
20820 msgstr ""
20821
20822 # type: verbatim
20823 #. type: verbatim
20824 #: ../src/guestfs-actions.pod:7516
20825 #, no-wrap
20826 msgid ""
20827 " int\n"
20828 " guestfs_zero_device (guestfs_h *g,\n"
20829 "                      const char *device);\n"
20830 "\n"
20831 msgstr ""
20832
20833 # type: textblock
20834 #. type: textblock
20835 #: ../src/guestfs-actions.pod:7520
20836 msgid ""
20837 "This command writes zeroes over the entire C<device>.  Compare with "
20838 "C<guestfs_zero> which just zeroes the first few blocks of a device."
20839 msgstr ""
20840
20841 # type: textblock
20842 #. type: textblock
20843 #: ../src/guestfs-actions.pod:7534
20844 msgid "(Added in 1.3.1)"
20845 msgstr ""
20846
20847 # type: =head2
20848 #. type: =head2
20849 #: ../src/guestfs-actions.pod:7536
20850 msgid "guestfs_zerofree"
20851 msgstr ""
20852
20853 # type: verbatim
20854 #. type: verbatim
20855 #: ../src/guestfs-actions.pod:7538
20856 #, no-wrap
20857 msgid ""
20858 " int\n"
20859 " guestfs_zerofree (guestfs_h *g,\n"
20860 "                   const char *device);\n"
20861 "\n"
20862 msgstr ""
20863
20864 # type: textblock
20865 #. type: textblock
20866 #: ../src/guestfs-actions.pod:7542 ../fish/guestfish-actions.pod:4996
20867 msgid ""
20868 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
20869 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
20870 "possible to compress the filesystem more effectively."
20871 msgstr ""
20872
20873 # type: textblock
20874 #. type: textblock
20875 #: ../src/guestfs-actions.pod:7547 ../fish/guestfish-actions.pod:5001
20876 msgid "You should B<not> run this program if the filesystem is mounted."
20877 msgstr ""
20878
20879 # type: textblock
20880 #. type: textblock
20881 #: ../src/guestfs-actions.pod:7550 ../fish/guestfish-actions.pod:5004
20882 msgid ""
20883 "It is possible that using this program can damage the filesystem or data on "
20884 "the filesystem."
20885 msgstr ""
20886
20887 # type: =head2
20888 #. type: =head2
20889 #: ../src/guestfs-actions.pod:7557
20890 msgid "guestfs_zfgrep"
20891 msgstr ""
20892
20893 # type: verbatim
20894 #. type: verbatim
20895 #: ../src/guestfs-actions.pod:7559
20896 #, no-wrap
20897 msgid ""
20898 " char **\n"
20899 " guestfs_zfgrep (guestfs_h *g,\n"
20900 "                 const char *pattern,\n"
20901 "                 const char *path);\n"
20902 "\n"
20903 msgstr ""
20904
20905 # type: textblock
20906 #. type: textblock
20907 #: ../src/guestfs-actions.pod:7564 ../fish/guestfish-actions.pod:5011
20908 msgid ""
20909 "This calls the external C<zfgrep> program and returns the matching lines."
20910 msgstr ""
20911
20912 # type: =head2
20913 #. type: =head2
20914 #: ../src/guestfs-actions.pod:7576
20915 msgid "guestfs_zfgrepi"
20916 msgstr ""
20917
20918 # type: verbatim
20919 #. type: verbatim
20920 #: ../src/guestfs-actions.pod:7578
20921 #, no-wrap
20922 msgid ""
20923 " char **\n"
20924 " guestfs_zfgrepi (guestfs_h *g,\n"
20925 "                  const char *pattern,\n"
20926 "                  const char *path);\n"
20927 "\n"
20928 msgstr ""
20929
20930 # type: textblock
20931 #. type: textblock
20932 #: ../src/guestfs-actions.pod:7583 ../fish/guestfish-actions.pod:5021
20933 msgid ""
20934 "This calls the external C<zfgrep -i> program and returns the matching lines."
20935 msgstr ""
20936
20937 # type: =head2
20938 #. type: =head2
20939 #: ../src/guestfs-actions.pod:7595
20940 msgid "guestfs_zfile"
20941 msgstr ""
20942
20943 # type: verbatim
20944 #. type: verbatim
20945 #: ../src/guestfs-actions.pod:7597
20946 #, no-wrap
20947 msgid ""
20948 " char *\n"
20949 " guestfs_zfile (guestfs_h *g,\n"
20950 "                const char *meth,\n"
20951 "                const char *path);\n"
20952 "\n"
20953 msgstr ""
20954
20955 # type: textblock
20956 #. type: textblock
20957 #: ../src/guestfs-actions.pod:7602 ../fish/guestfish-actions.pod:5031
20958 msgid ""
20959 "This command runs C<file> after first decompressing C<path> using C<method>."
20960 msgstr ""
20961
20962 # type: textblock
20963 #. type: textblock
20964 #: ../src/guestfs-actions.pod:7605 ../fish/guestfish-actions.pod:5034
20965 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
20966 msgstr ""
20967
20968 # type: textblock
20969 #. type: textblock
20970 #: ../src/guestfs-actions.pod:7607
20971 msgid ""
20972 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
20973 "files."
20974 msgstr ""
20975
20976 # type: textblock
20977 #. type: textblock
20978 #: ../src/guestfs-actions.pod:7613 ../fish/guestfish-actions.pod:5039
20979 msgid ""
20980 "This function is deprecated.  In new code, use the C<file> call instead."
20981 msgstr ""
20982
20983 # type: =head2
20984 #. type: =head2
20985 #: ../src/guestfs-actions.pod:7622
20986 msgid "guestfs_zgrep"
20987 msgstr ""
20988
20989 # type: verbatim
20990 #. type: verbatim
20991 #: ../src/guestfs-actions.pod:7624
20992 #, no-wrap
20993 msgid ""
20994 " char **\n"
20995 " guestfs_zgrep (guestfs_h *g,\n"
20996 "                const char *regex,\n"
20997 "                const char *path);\n"
20998 "\n"
20999 msgstr ""
21000
21001 # type: textblock
21002 #. type: textblock
21003 #: ../src/guestfs-actions.pod:7629 ../fish/guestfish-actions.pod:5050
21004 msgid ""
21005 "This calls the external C<zgrep> program and returns the matching lines."
21006 msgstr ""
21007
21008 # type: =head2
21009 #. type: =head2
21010 #: ../src/guestfs-actions.pod:7641
21011 msgid "guestfs_zgrepi"
21012 msgstr ""
21013
21014 # type: verbatim
21015 #. type: verbatim
21016 #: ../src/guestfs-actions.pod:7643
21017 #, no-wrap
21018 msgid ""
21019 " char **\n"
21020 " guestfs_zgrepi (guestfs_h *g,\n"
21021 "                 const char *regex,\n"
21022 "                 const char *path);\n"
21023 "\n"
21024 msgstr ""
21025
21026 # type: textblock
21027 #. type: textblock
21028 #: ../src/guestfs-actions.pod:7648 ../fish/guestfish-actions.pod:5060
21029 msgid ""
21030 "This calls the external C<zgrep -i> program and returns the matching lines."
21031 msgstr ""
21032
21033 # type: =item
21034 #. type: =item
21035 #: ../src/guestfs-availability.pod:3
21036 msgid "B<augeas>"
21037 msgstr ""
21038
21039 # type: textblock
21040 #. type: textblock
21041 #: ../src/guestfs-availability.pod:5
21042 msgid ""
21043 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
21044 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
21045 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
21046 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
21047 "L</guestfs_aug_save> L</guestfs_aug_set>"
21048 msgstr ""
21049
21050 # type: =item
21051 #. type: =item
21052 #: ../src/guestfs-availability.pod:21
21053 msgid "B<inotify>"
21054 msgstr ""
21055
21056 # type: textblock
21057 #. type: textblock
21058 #: ../src/guestfs-availability.pod:23
21059 msgid ""
21060 "The following functions: L</guestfs_inotify_add_watch> L</"
21061 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
21062 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
21063 msgstr ""
21064
21065 # type: =item
21066 #. type: =item
21067 #: ../src/guestfs-availability.pod:31
21068 msgid "B<linuxfsuuid>"
21069 msgstr ""
21070
21071 # type: textblock
21072 #. type: textblock
21073 #: ../src/guestfs-availability.pod:33
21074 msgid ""
21075 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
21076 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
21077 msgstr ""
21078
21079 # type: =item
21080 #. type: =item
21081 #: ../src/guestfs-availability.pod:40
21082 msgid "B<linuxmodules>"
21083 msgstr ""
21084
21085 # type: textblock
21086 #. type: textblock
21087 #: ../src/guestfs-availability.pod:42
21088 msgid "The following functions: L</guestfs_modprobe>"
21089 msgstr ""
21090
21091 # type: =item
21092 #. type: =item
21093 #: ../src/guestfs-availability.pod:45
21094 msgid "B<linuxxattrs>"
21095 msgstr ""
21096
21097 # type: textblock
21098 #. type: textblock
21099 #: ../src/guestfs-availability.pod:47
21100 msgid ""
21101 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
21102 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
21103 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
21104 "guestfs_setxattr>"
21105 msgstr ""
21106
21107 # type: =item
21108 #. type: =item
21109 #: ../src/guestfs-availability.pod:58
21110 msgid "B<luks>"
21111 msgstr ""
21112
21113 # type: textblock
21114 #. type: textblock
21115 #: ../src/guestfs-availability.pod:60
21116 msgid ""
21117 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
21118 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
21119 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
21120 msgstr ""
21121
21122 # type: =item
21123 #. type: =item
21124 #: ../src/guestfs-availability.pod:69
21125 msgid "B<lvm2>"
21126 msgstr ""
21127
21128 # type: textblock
21129 #. type: textblock
21130 #: ../src/guestfs-availability.pod:71
21131 msgid ""
21132 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
21133 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
21134 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
21135 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
21136 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
21137 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
21138 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
21139 msgstr ""
21140
21141 # type: =item
21142 #. type: =item
21143 #: ../src/guestfs-availability.pod:94
21144 msgid "B<mknod>"
21145 msgstr ""
21146
21147 # type: textblock
21148 #. type: textblock
21149 #: ../src/guestfs-availability.pod:96
21150 msgid ""
21151 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
21152 "guestfs_mknod_b> L</guestfs_mknod_c>"
21153 msgstr ""
21154
21155 # type: =item
21156 #. type: =item
21157 #: ../src/guestfs-availability.pod:102
21158 msgid "B<ntfs3g>"
21159 msgstr ""
21160
21161 # type: textblock
21162 #. type: textblock
21163 #: ../src/guestfs-availability.pod:104
21164 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
21165 msgstr ""
21166
21167 # type: =item
21168 #. type: =item
21169 #: ../src/guestfs-availability.pod:107
21170 msgid "B<ntfsprogs>"
21171 msgstr ""
21172
21173 # type: textblock
21174 #. type: textblock
21175 #: ../src/guestfs-availability.pod:109
21176 msgid ""
21177 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
21178 msgstr ""
21179
21180 # type: =item
21181 #. type: =item
21182 #: ../src/guestfs-availability.pod:113
21183 msgid "B<realpath>"
21184 msgstr ""
21185
21186 # type: textblock
21187 #. type: textblock
21188 #: ../src/guestfs-availability.pod:115
21189 msgid "The following functions: L</guestfs_realpath>"
21190 msgstr ""
21191
21192 # type: =item
21193 #. type: =item
21194 #: ../src/guestfs-availability.pod:118
21195 msgid "B<scrub>"
21196 msgstr ""
21197
21198 # type: textblock
21199 #. type: textblock
21200 #: ../src/guestfs-availability.pod:120
21201 msgid ""
21202 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
21203 "guestfs_scrub_freespace>"
21204 msgstr ""
21205
21206 # type: =item
21207 #. type: =item
21208 #: ../src/guestfs-availability.pod:125
21209 msgid "B<selinux>"
21210 msgstr ""
21211
21212 # type: textblock
21213 #. type: textblock
21214 #: ../src/guestfs-availability.pod:127
21215 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
21216 msgstr ""
21217
21218 # type: =item
21219 #. type: =item
21220 #: ../src/guestfs-availability.pod:131
21221 msgid "B<xz>"
21222 msgstr ""
21223
21224 # type: textblock
21225 #. type: textblock
21226 #: ../src/guestfs-availability.pod:133
21227 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
21228 msgstr ""
21229
21230 # type: =item
21231 #. type: =item
21232 #: ../src/guestfs-availability.pod:137
21233 msgid "B<zerofree>"
21234 msgstr ""
21235
21236 # type: textblock
21237 #. type: textblock
21238 #: ../src/guestfs-availability.pod:139
21239 msgid "The following functions: L</guestfs_zerofree>"
21240 msgstr ""
21241
21242 # type: =head2
21243 #. type: =head2
21244 #: ../src/guestfs-structs.pod:1
21245 msgid "guestfs_int_bool"
21246 msgstr ""
21247
21248 # type: verbatim
21249 #. type: verbatim
21250 #: ../src/guestfs-structs.pod:3
21251 #, no-wrap
21252 msgid ""
21253 " struct guestfs_int_bool {\n"
21254 "   int32_t i;\n"
21255 "   int32_t b;\n"
21256 " };\n"
21257 " \n"
21258 msgstr ""
21259
21260 # type: verbatim
21261 #. type: verbatim
21262 #: ../src/guestfs-structs.pod:8
21263 #, no-wrap
21264 msgid ""
21265 " struct guestfs_int_bool_list {\n"
21266 "   uint32_t len; /* Number of elements in list. */\n"
21267 "   struct guestfs_int_bool *val; /* Elements. */\n"
21268 " };\n"
21269 " \n"
21270 msgstr ""
21271
21272 # type: verbatim
21273 #. type: verbatim
21274 #: ../src/guestfs-structs.pod:13
21275 #, no-wrap
21276 msgid ""
21277 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
21278 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
21279 "\n"
21280 msgstr ""
21281
21282 # type: =head2
21283 #. type: =head2
21284 #: ../src/guestfs-structs.pod:16
21285 msgid "guestfs_lvm_pv"
21286 msgstr ""
21287
21288 # type: verbatim
21289 #. type: verbatim
21290 #: ../src/guestfs-structs.pod:18
21291 #, no-wrap
21292 msgid ""
21293 " struct guestfs_lvm_pv {\n"
21294 "   char *pv_name;\n"
21295 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
21296 "   char pv_uuid[32];\n"
21297 "   char *pv_fmt;\n"
21298 "   uint64_t pv_size;\n"
21299 "   uint64_t dev_size;\n"
21300 "   uint64_t pv_free;\n"
21301 "   uint64_t pv_used;\n"
21302 "   char *pv_attr;\n"
21303 "   int64_t pv_pe_count;\n"
21304 "   int64_t pv_pe_alloc_count;\n"
21305 "   char *pv_tags;\n"
21306 "   uint64_t pe_start;\n"
21307 "   int64_t pv_mda_count;\n"
21308 "   uint64_t pv_mda_free;\n"
21309 " };\n"
21310 " \n"
21311 msgstr ""
21312
21313 # type: verbatim
21314 #. type: verbatim
21315 #: ../src/guestfs-structs.pod:36
21316 #, no-wrap
21317 msgid ""
21318 " struct guestfs_lvm_pv_list {\n"
21319 "   uint32_t len; /* Number of elements in list. */\n"
21320 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
21321 " };\n"
21322 " \n"
21323 msgstr ""
21324
21325 # type: verbatim
21326 #. type: verbatim
21327 #: ../src/guestfs-structs.pod:41
21328 #, no-wrap
21329 msgid ""
21330 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
21331 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
21332 "\n"
21333 msgstr ""
21334
21335 # type: =head2
21336 #. type: =head2
21337 #: ../src/guestfs-structs.pod:44
21338 msgid "guestfs_lvm_vg"
21339 msgstr ""
21340
21341 # type: verbatim
21342 #. type: verbatim
21343 #: ../src/guestfs-structs.pod:46
21344 #, no-wrap
21345 msgid ""
21346 " struct guestfs_lvm_vg {\n"
21347 "   char *vg_name;\n"
21348 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
21349 "   char vg_uuid[32];\n"
21350 "   char *vg_fmt;\n"
21351 "   char *vg_attr;\n"
21352 "   uint64_t vg_size;\n"
21353 "   uint64_t vg_free;\n"
21354 "   char *vg_sysid;\n"
21355 "   uint64_t vg_extent_size;\n"
21356 "   int64_t vg_extent_count;\n"
21357 "   int64_t vg_free_count;\n"
21358 "   int64_t max_lv;\n"
21359 "   int64_t max_pv;\n"
21360 "   int64_t pv_count;\n"
21361 "   int64_t lv_count;\n"
21362 "   int64_t snap_count;\n"
21363 "   int64_t vg_seqno;\n"
21364 "   char *vg_tags;\n"
21365 "   int64_t vg_mda_count;\n"
21366 "   uint64_t vg_mda_free;\n"
21367 " };\n"
21368 " \n"
21369 msgstr ""
21370
21371 # type: verbatim
21372 #. type: verbatim
21373 #: ../src/guestfs-structs.pod:69
21374 #, no-wrap
21375 msgid ""
21376 " struct guestfs_lvm_vg_list {\n"
21377 "   uint32_t len; /* Number of elements in list. */\n"
21378 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
21379 " };\n"
21380 " \n"
21381 msgstr ""
21382
21383 # type: verbatim
21384 #. type: verbatim
21385 #: ../src/guestfs-structs.pod:74
21386 #, no-wrap
21387 msgid ""
21388 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
21389 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
21390 "\n"
21391 msgstr ""
21392
21393 # type: =head2
21394 #. type: =head2
21395 #: ../src/guestfs-structs.pod:77
21396 msgid "guestfs_lvm_lv"
21397 msgstr ""
21398
21399 # type: verbatim
21400 #. type: verbatim
21401 #: ../src/guestfs-structs.pod:79
21402 #, no-wrap
21403 msgid ""
21404 " struct guestfs_lvm_lv {\n"
21405 "   char *lv_name;\n"
21406 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
21407 "   char lv_uuid[32];\n"
21408 "   char *lv_attr;\n"
21409 "   int64_t lv_major;\n"
21410 "   int64_t lv_minor;\n"
21411 "   int64_t lv_kernel_major;\n"
21412 "   int64_t lv_kernel_minor;\n"
21413 "   uint64_t lv_size;\n"
21414 "   int64_t seg_count;\n"
21415 "   char *origin;\n"
21416 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
21417 "   float snap_percent;\n"
21418 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
21419 "   float copy_percent;\n"
21420 "   char *move_pv;\n"
21421 "   char *lv_tags;\n"
21422 "   char *mirror_log;\n"
21423 "   char *modules;\n"
21424 " };\n"
21425 " \n"
21426 msgstr ""
21427
21428 # type: verbatim
21429 #. type: verbatim
21430 #: ../src/guestfs-structs.pod:101
21431 #, no-wrap
21432 msgid ""
21433 " struct guestfs_lvm_lv_list {\n"
21434 "   uint32_t len; /* Number of elements in list. */\n"
21435 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
21436 " };\n"
21437 " \n"
21438 msgstr ""
21439
21440 # type: verbatim
21441 #. type: verbatim
21442 #: ../src/guestfs-structs.pod:106
21443 #, no-wrap
21444 msgid ""
21445 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
21446 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
21447 "\n"
21448 msgstr ""
21449
21450 # type: verbatim
21451 #. type: verbatim
21452 #: ../src/guestfs-structs.pod:111
21453 #, no-wrap
21454 msgid ""
21455 " struct guestfs_stat {\n"
21456 "   int64_t dev;\n"
21457 "   int64_t ino;\n"
21458 "   int64_t mode;\n"
21459 "   int64_t nlink;\n"
21460 "   int64_t uid;\n"
21461 "   int64_t gid;\n"
21462 "   int64_t rdev;\n"
21463 "   int64_t size;\n"
21464 "   int64_t blksize;\n"
21465 "   int64_t blocks;\n"
21466 "   int64_t atime;\n"
21467 "   int64_t mtime;\n"
21468 "   int64_t ctime;\n"
21469 " };\n"
21470 " \n"
21471 msgstr ""
21472
21473 # type: verbatim
21474 #. type: verbatim
21475 #: ../src/guestfs-structs.pod:127
21476 #, no-wrap
21477 msgid ""
21478 " struct guestfs_stat_list {\n"
21479 "   uint32_t len; /* Number of elements in list. */\n"
21480 "   struct guestfs_stat *val; /* Elements. */\n"
21481 " };\n"
21482 " \n"
21483 msgstr ""
21484
21485 # type: verbatim
21486 #. type: verbatim
21487 #: ../src/guestfs-structs.pod:132
21488 #, no-wrap
21489 msgid ""
21490 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
21491 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
21492 "\n"
21493 msgstr ""
21494
21495 # type: verbatim
21496 #. type: verbatim
21497 #: ../src/guestfs-structs.pod:137
21498 #, no-wrap
21499 msgid ""
21500 " struct guestfs_statvfs {\n"
21501 "   int64_t bsize;\n"
21502 "   int64_t frsize;\n"
21503 "   int64_t blocks;\n"
21504 "   int64_t bfree;\n"
21505 "   int64_t bavail;\n"
21506 "   int64_t files;\n"
21507 "   int64_t ffree;\n"
21508 "   int64_t favail;\n"
21509 "   int64_t fsid;\n"
21510 "   int64_t flag;\n"
21511 "   int64_t namemax;\n"
21512 " };\n"
21513 " \n"
21514 msgstr ""
21515
21516 # type: verbatim
21517 #. type: verbatim
21518 #: ../src/guestfs-structs.pod:151
21519 #, no-wrap
21520 msgid ""
21521 " struct guestfs_statvfs_list {\n"
21522 "   uint32_t len; /* Number of elements in list. */\n"
21523 "   struct guestfs_statvfs *val; /* Elements. */\n"
21524 " };\n"
21525 " \n"
21526 msgstr ""
21527
21528 # type: verbatim
21529 #. type: verbatim
21530 #: ../src/guestfs-structs.pod:156
21531 #, no-wrap
21532 msgid ""
21533 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
21534 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
21535 "\n"
21536 msgstr ""
21537
21538 # type: =head2
21539 #. type: =head2
21540 #: ../src/guestfs-structs.pod:159
21541 msgid "guestfs_dirent"
21542 msgstr ""
21543
21544 # type: verbatim
21545 #. type: verbatim
21546 #: ../src/guestfs-structs.pod:161
21547 #, no-wrap
21548 msgid ""
21549 " struct guestfs_dirent {\n"
21550 "   int64_t ino;\n"
21551 "   char ftyp;\n"
21552 "   char *name;\n"
21553 " };\n"
21554 " \n"
21555 msgstr ""
21556
21557 # type: verbatim
21558 #. type: verbatim
21559 #: ../src/guestfs-structs.pod:167
21560 #, no-wrap
21561 msgid ""
21562 " struct guestfs_dirent_list {\n"
21563 "   uint32_t len; /* Number of elements in list. */\n"
21564 "   struct guestfs_dirent *val; /* Elements. */\n"
21565 " };\n"
21566 " \n"
21567 msgstr ""
21568
21569 # type: verbatim
21570 #. type: verbatim
21571 #: ../src/guestfs-structs.pod:172
21572 #, no-wrap
21573 msgid ""
21574 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
21575 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
21576 "\n"
21577 msgstr ""
21578
21579 # type: verbatim
21580 #. type: verbatim
21581 #: ../src/guestfs-structs.pod:177
21582 #, no-wrap
21583 msgid ""
21584 " struct guestfs_version {\n"
21585 "   int64_t major;\n"
21586 "   int64_t minor;\n"
21587 "   int64_t release;\n"
21588 "   char *extra;\n"
21589 " };\n"
21590 " \n"
21591 msgstr ""
21592
21593 # type: verbatim
21594 #. type: verbatim
21595 #: ../src/guestfs-structs.pod:184
21596 #, no-wrap
21597 msgid ""
21598 " struct guestfs_version_list {\n"
21599 "   uint32_t len; /* Number of elements in list. */\n"
21600 "   struct guestfs_version *val; /* Elements. */\n"
21601 " };\n"
21602 " \n"
21603 msgstr ""
21604
21605 # type: verbatim
21606 #. type: verbatim
21607 #: ../src/guestfs-structs.pod:189
21608 #, no-wrap
21609 msgid ""
21610 " void guestfs_free_version (struct guestfs_free_version *);\n"
21611 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
21612 "\n"
21613 msgstr ""
21614
21615 # type: =head2
21616 #. type: =head2
21617 #: ../src/guestfs-structs.pod:192
21618 msgid "guestfs_xattr"
21619 msgstr ""
21620
21621 # type: verbatim
21622 #. type: verbatim
21623 #: ../src/guestfs-structs.pod:194
21624 #, no-wrap
21625 msgid ""
21626 " struct guestfs_xattr {\n"
21627 "   char *attrname;\n"
21628 "   /* The next two fields describe a byte array. */\n"
21629 "   uint32_t attrval_len;\n"
21630 "   char *attrval;\n"
21631 " };\n"
21632 " \n"
21633 msgstr ""
21634
21635 # type: verbatim
21636 #. type: verbatim
21637 #: ../src/guestfs-structs.pod:201
21638 #, no-wrap
21639 msgid ""
21640 " struct guestfs_xattr_list {\n"
21641 "   uint32_t len; /* Number of elements in list. */\n"
21642 "   struct guestfs_xattr *val; /* Elements. */\n"
21643 " };\n"
21644 " \n"
21645 msgstr ""
21646
21647 # type: verbatim
21648 #. type: verbatim
21649 #: ../src/guestfs-structs.pod:206
21650 #, no-wrap
21651 msgid ""
21652 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
21653 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
21654 "\n"
21655 msgstr ""
21656
21657 # type: =head2
21658 #. type: =head2
21659 #: ../src/guestfs-structs.pod:209
21660 msgid "guestfs_inotify_event"
21661 msgstr ""
21662
21663 # type: verbatim
21664 #. type: verbatim
21665 #: ../src/guestfs-structs.pod:211
21666 #, no-wrap
21667 msgid ""
21668 " struct guestfs_inotify_event {\n"
21669 "   int64_t in_wd;\n"
21670 "   uint32_t in_mask;\n"
21671 "   uint32_t in_cookie;\n"
21672 "   char *in_name;\n"
21673 " };\n"
21674 " \n"
21675 msgstr ""
21676
21677 # type: verbatim
21678 #. type: verbatim
21679 #: ../src/guestfs-structs.pod:218
21680 #, no-wrap
21681 msgid ""
21682 " struct guestfs_inotify_event_list {\n"
21683 "   uint32_t len; /* Number of elements in list. */\n"
21684 "   struct guestfs_inotify_event *val; /* Elements. */\n"
21685 " };\n"
21686 " \n"
21687 msgstr ""
21688
21689 # type: verbatim
21690 #. type: verbatim
21691 #: ../src/guestfs-structs.pod:223
21692 #, no-wrap
21693 msgid ""
21694 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
21695 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
21696 "\n"
21697 msgstr ""
21698
21699 # type: =head2
21700 #. type: =head2
21701 #: ../src/guestfs-structs.pod:226
21702 msgid "guestfs_partition"
21703 msgstr ""
21704
21705 # type: verbatim
21706 #. type: verbatim
21707 #: ../src/guestfs-structs.pod:228
21708 #, no-wrap
21709 msgid ""
21710 " struct guestfs_partition {\n"
21711 "   int32_t part_num;\n"
21712 "   uint64_t part_start;\n"
21713 "   uint64_t part_end;\n"
21714 "   uint64_t part_size;\n"
21715 " };\n"
21716 " \n"
21717 msgstr ""
21718
21719 # type: verbatim
21720 #. type: verbatim
21721 #: ../src/guestfs-structs.pod:235
21722 #, no-wrap
21723 msgid ""
21724 " struct guestfs_partition_list {\n"
21725 "   uint32_t len; /* Number of elements in list. */\n"
21726 "   struct guestfs_partition *val; /* Elements. */\n"
21727 " };\n"
21728 " \n"
21729 msgstr ""
21730
21731 # type: verbatim
21732 #. type: verbatim
21733 #: ../src/guestfs-structs.pod:240
21734 #, no-wrap
21735 msgid ""
21736 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
21737 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
21738 "\n"
21739 msgstr ""
21740
21741 # type: =head2
21742 #. type: =head2
21743 #: ../src/guestfs-structs.pod:243
21744 msgid "guestfs_application"
21745 msgstr ""
21746
21747 # type: verbatim
21748 #. type: verbatim
21749 #: ../src/guestfs-structs.pod:245
21750 #, no-wrap
21751 msgid ""
21752 " struct guestfs_application {\n"
21753 "   char *app_name;\n"
21754 "   char *app_display_name;\n"
21755 "   int32_t app_epoch;\n"
21756 "   char *app_version;\n"
21757 "   char *app_release;\n"
21758 "   char *app_install_path;\n"
21759 "   char *app_trans_path;\n"
21760 "   char *app_publisher;\n"
21761 "   char *app_url;\n"
21762 "   char *app_source_package;\n"
21763 "   char *app_summary;\n"
21764 "   char *app_description;\n"
21765 " };\n"
21766 " \n"
21767 msgstr ""
21768
21769 # type: verbatim
21770 #. type: verbatim
21771 #: ../src/guestfs-structs.pod:260
21772 #, no-wrap
21773 msgid ""
21774 " struct guestfs_application_list {\n"
21775 "   uint32_t len; /* Number of elements in list. */\n"
21776 "   struct guestfs_application *val; /* Elements. */\n"
21777 " };\n"
21778 " \n"
21779 msgstr ""
21780
21781 # type: verbatim
21782 #. type: verbatim
21783 #: ../src/guestfs-structs.pod:265
21784 #, no-wrap
21785 msgid ""
21786 " void guestfs_free_application (struct guestfs_free_application *);\n"
21787 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
21788 "\n"
21789 msgstr ""
21790
21791 # type: textblock
21792 #. type: textblock
21793 #: ../fish/guestfish.pod:5
21794 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
21795 msgstr ""
21796
21797 # type: verbatim
21798 #. type: verbatim
21799 #: ../fish/guestfish.pod:9
21800 #, no-wrap
21801 msgid ""
21802 " guestfish [--options] [commands]\n"
21803 "\n"
21804 msgstr ""
21805
21806 # type: verbatim
21807 #. type: verbatim
21808 #: ../fish/guestfish.pod:11
21809 #, no-wrap
21810 msgid ""
21811 " guestfish\n"
21812 "\n"
21813 msgstr ""
21814
21815 # type: verbatim
21816 #. type: verbatim
21817 #: ../fish/guestfish.pod:13
21818 #, no-wrap
21819 msgid ""
21820 " guestfish [--ro|--rw] -a disk.img\n"
21821 "\n"
21822 msgstr ""
21823
21824 # type: verbatim
21825 #. type: verbatim
21826 #: ../fish/guestfish.pod:15
21827 #, no-wrap
21828 msgid ""
21829 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
21830 "\n"
21831 msgstr ""
21832
21833 # type: verbatim
21834 #. type: verbatim
21835 #: ../fish/guestfish.pod:17
21836 #, no-wrap
21837 msgid ""
21838 " guestfish -d libvirt-domain\n"
21839 "\n"
21840 msgstr ""
21841
21842 # type: verbatim
21843 #. type: verbatim
21844 #: ../fish/guestfish.pod:19
21845 #, no-wrap
21846 msgid ""
21847 " guestfish [--ro|--rw] -a disk.img -i\n"
21848 "\n"
21849 msgstr ""
21850
21851 # type: verbatim
21852 #. type: verbatim
21853 #: ../fish/guestfish.pod:21
21854 #, no-wrap
21855 msgid ""
21856 " guestfish -d libvirt-domain -i\n"
21857 "\n"
21858 msgstr ""
21859
21860 # type: =head1
21861 #. type: =head1
21862 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15
21863 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:64
21864 msgid "WARNING"
21865 msgstr ""
21866
21867 # type: textblock
21868 #. type: textblock
21869 #: ../fish/guestfish.pod:25
21870 msgid ""
21871 "Using guestfish in read/write mode on live virtual machines can be "
21872 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
21873 "option to use guestfish safely if the disk image or virtual machine might be "
21874 "live."
21875 msgstr ""
21876
21877 # type: textblock
21878 #. type: textblock
21879 #: ../fish/guestfish.pod:32
21880 msgid ""
21881 "Guestfish is a shell and command-line tool for examining and modifying "
21882 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
21883 "functionality of the guestfs API, see L<guestfs(3)>."
21884 msgstr ""
21885
21886 # type: textblock
21887 #. type: textblock
21888 #: ../fish/guestfish.pod:36
21889 msgid ""
21890 "Guestfish gives you structured access to the libguestfs API, from shell "
21891 "scripts or the command line or interactively.  If you want to rescue a "
21892 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
21893 "command."
21894 msgstr ""
21895
21896 # type: =head1
21897 #. type: =head1
21898 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:949
21899 #: ../fuse/guestmount.pod:39 ../tools/virt-tar.pl:50
21900 msgid "EXAMPLES"
21901 msgstr ""
21902
21903 # type: =head2
21904 #. type: =head2
21905 #: ../fish/guestfish.pod:43
21906 msgid "As an interactive shell"
21907 msgstr ""
21908
21909 # type: verbatim
21910 #. type: verbatim
21911 #: ../fish/guestfish.pod:45
21912 #, no-wrap
21913 msgid ""
21914 " $ guestfish\n"
21915 " \n"
21916 msgstr ""
21917
21918 # type: verbatim
21919 #. type: verbatim
21920 #: ../fish/guestfish.pod:47
21921 #, no-wrap
21922 msgid ""
21923 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
21924 " editing virtual machine filesystems.\n"
21925 " \n"
21926 msgstr ""
21927
21928 # type: verbatim
21929 #. type: verbatim
21930 #: ../fish/guestfish.pod:50
21931 #, no-wrap
21932 msgid ""
21933 " Type: 'help' for a list of commands\n"
21934 "       'man' to read the manual\n"
21935 "       'quit' to quit the shell\n"
21936 " \n"
21937 msgstr ""
21938
21939 # type: verbatim
21940 #. type: verbatim
21941 #: ../fish/guestfish.pod:54
21942 #, no-wrap
21943 msgid ""
21944 " ><fs> add-ro disk.img\n"
21945 " ><fs> run\n"
21946 " ><fs> list-filesystems\n"
21947 " /dev/sda1: ext4\n"
21948 " /dev/vg_guest/lv_root: ext4\n"
21949 " /dev/vg_guest/lv_swap: swap\n"
21950 " ><fs> mount /dev/vg_guest/lv_root /\n"
21951 " ><fs> cat /etc/fstab\n"
21952 " # /etc/fstab\n"
21953 " # Created by anaconda\n"
21954 " [...]\n"
21955 " ><fs> exit\n"
21956 "\n"
21957 msgstr ""
21958
21959 # type: =head2
21960 #. type: =head2
21961 #: ../fish/guestfish.pod:67
21962 msgid "From shell scripts"
21963 msgstr ""
21964
21965 # type: textblock
21966 #. type: textblock
21967 #: ../fish/guestfish.pod:69
21968 msgid "Create a new C</etc/motd> file in a guest or disk image:"
21969 msgstr ""
21970
21971 # type: verbatim
21972 #. type: verbatim
21973 #: ../fish/guestfish.pod:71
21974 #, no-wrap
21975 msgid ""
21976 " guestfish <<_EOF_\n"
21977 " add disk.img\n"
21978 " run\n"
21979 " mount /dev/vg_guest/lv_root /\n"
21980 " write /etc/motd \"Welcome, new users\"\n"
21981 " _EOF_\n"
21982 "\n"
21983 msgstr ""
21984
21985 # type: textblock
21986 #. type: textblock
21987 #: ../fish/guestfish.pod:78
21988 msgid "List the LVM logical volumes in a disk image:"
21989 msgstr ""
21990
21991 # type: verbatim
21992 #. type: verbatim
21993 #: ../fish/guestfish.pod:80
21994 #, no-wrap
21995 msgid ""
21996 " guestfish -a disk.img --ro <<_EOF_\n"
21997 " run\n"
21998 " lvs\n"
21999 " _EOF_\n"
22000 "\n"
22001 msgstr ""
22002
22003 # type: textblock
22004 #. type: textblock
22005 #: ../fish/guestfish.pod:85
22006 msgid "List all the filesystems in a disk image:"
22007 msgstr ""
22008
22009 # type: verbatim
22010 #. type: verbatim
22011 #: ../fish/guestfish.pod:87
22012 #, no-wrap
22013 msgid ""
22014 " guestfish -a disk.img --ro <<_EOF_\n"
22015 " run\n"
22016 " list-filesystems\n"
22017 " _EOF_\n"
22018 "\n"
22019 msgstr ""
22020
22021 # type: =head2
22022 #. type: =head2
22023 #: ../fish/guestfish.pod:92
22024 msgid "On one command line"
22025 msgstr ""
22026
22027 # type: textblock
22028 #. type: textblock
22029 #: ../fish/guestfish.pod:94
22030 msgid "Update C</etc/resolv.conf> in a guest:"
22031 msgstr ""
22032
22033 # type: verbatim
22034 #. type: verbatim
22035 #: ../fish/guestfish.pod:96
22036 #, no-wrap
22037 msgid ""
22038 " guestfish \\\n"
22039 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
22040 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
22041 "\n"
22042 msgstr ""
22043
22044 # type: textblock
22045 #. type: textblock
22046 #: ../fish/guestfish.pod:100
22047 msgid "Edit C</boot/grub/grub.conf> interactively:"
22048 msgstr ""
22049
22050 # type: verbatim
22051 #. type: verbatim
22052 #: ../fish/guestfish.pod:102
22053 #, no-wrap
22054 msgid ""
22055 " guestfish --rw --add disk.img \\\n"
22056 "   --mount /dev/vg_guest/lv_root \\\n"
22057 "   --mount /dev/sda1:/boot \\\n"
22058 "   edit /boot/grub/grub.conf\n"
22059 "\n"
22060 msgstr ""
22061
22062 # type: =head2
22063 #. type: =head2
22064 #: ../fish/guestfish.pod:107
22065 msgid "Mount disks automatically"
22066 msgstr ""
22067
22068 # type: textblock
22069 #. type: textblock
22070 #: ../fish/guestfish.pod:109
22071 msgid ""
22072 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
22073 msgstr ""
22074
22075 # type: verbatim
22076 #. type: verbatim
22077 #: ../fish/guestfish.pod:112
22078 #, no-wrap
22079 msgid ""
22080 " guestfish --ro -a disk.img -i cat /etc/group\n"
22081 "\n"
22082 msgstr ""
22083
22084 # type: verbatim
22085 #. type: verbatim
22086 #: ../fish/guestfish.pod:114
22087 #, no-wrap
22088 msgid ""
22089 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
22090 "\n"
22091 msgstr ""
22092
22093 # type: textblock
22094 #. type: textblock
22095 #: ../fish/guestfish.pod:116
22096 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
22097 msgstr ""
22098
22099 # type: verbatim
22100 #. type: verbatim
22101 #: ../fish/guestfish.pod:118
22102 #, no-wrap
22103 msgid ""
22104 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
22105 "\n"
22106 msgstr ""
22107
22108 # type: =head2
22109 #. type: =head2
22110 #: ../fish/guestfish.pod:120
22111 msgid "As a script interpreter"
22112 msgstr ""
22113
22114 # type: textblock
22115 #. type: textblock
22116 #: ../fish/guestfish.pod:122
22117 msgid "Create a 100MB disk containing an ext2-formatted partition:"
22118 msgstr ""
22119
22120 # type: verbatim
22121 #. type: verbatim
22122 #: ../fish/guestfish.pod:124
22123 #, no-wrap
22124 msgid ""
22125 " #!/usr/bin/guestfish -f\n"
22126 " sparse test1.img 100M\n"
22127 " run\n"
22128 " part-disk /dev/sda mbr\n"
22129 " mkfs ext2 /dev/sda1\n"
22130 "\n"
22131 msgstr ""
22132
22133 # type: =head2
22134 #. type: =head2
22135 #: ../fish/guestfish.pod:130
22136 msgid "Start with a prepared disk"
22137 msgstr ""
22138
22139 # type: textblock
22140 #. type: textblock
22141 #: ../fish/guestfish.pod:132
22142 msgid ""
22143 "An alternate way to create a 100MB disk called C<test1.img> containing a "
22144 "single ext2-formatted partition:"
22145 msgstr ""
22146
22147 # type: verbatim
22148 #. type: verbatim
22149 #: ../fish/guestfish.pod:135
22150 #, no-wrap
22151 msgid ""
22152 " guestfish -N fs\n"
22153 "\n"
22154 msgstr ""
22155
22156 # type: textblock
22157 #. type: textblock
22158 #: ../fish/guestfish.pod:137
22159 msgid "To list what is available do:"
22160 msgstr ""
22161
22162 # type: verbatim
22163 #. type: verbatim
22164 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:940
22165 #, no-wrap
22166 msgid ""
22167 " guestfish -N help | less\n"
22168 "\n"
22169 msgstr ""
22170
22171 # type: =head2
22172 #. type: =head2
22173 #: ../fish/guestfish.pod:141
22174 msgid "Remote control"
22175 msgstr ""
22176
22177 # type: verbatim
22178 #. type: verbatim
22179 #: ../fish/guestfish.pod:143
22180 #, no-wrap
22181 msgid ""
22182 " eval \"`guestfish --listen`\"\n"
22183 " guestfish --remote add-ro disk.img\n"
22184 " guestfish --remote run\n"
22185 " guestfish --remote lvs\n"
22186 "\n"
22187 msgstr ""
22188
22189 # type: =head1
22190 #. type: =head1
22191 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
22192 #: ../fuse/guestmount.pod:83 ../tools/virt-win-reg.pl:96
22193 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:103
22194 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
22195 msgid "OPTIONS"
22196 msgstr ""
22197
22198 # type: =item
22199 #. type: =item
22200 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:143
22201 #: ../tools/virt-win-reg.pl:104 ../tools/virt-list-filesystems.pl:61
22202 #: ../tools/virt-tar.pl:111 ../tools/virt-make-fs.pl:161
22203 #: ../tools/virt-list-partitions.pl:62
22204 msgid "B<--help>"
22205 msgstr ""
22206
22207 # type: textblock
22208 #. type: textblock
22209 #: ../fish/guestfish.pod:154
22210 msgid "Displays general help on options."
22211 msgstr ""
22212
22213 # type: =item
22214 #. type: =item
22215 #: ../fish/guestfish.pod:156
22216 msgid "B<-h>"
22217 msgstr ""
22218
22219 # type: =item
22220 #. type: =item
22221 #: ../fish/guestfish.pod:158
22222 msgid "B<--cmd-help>"
22223 msgstr ""
22224
22225 # type: textblock
22226 #. type: textblock
22227 #: ../fish/guestfish.pod:160
22228 msgid "Lists all available guestfish commands."
22229 msgstr ""
22230
22231 # type: =item
22232 #. type: =item
22233 #: ../fish/guestfish.pod:162
22234 msgid "B<-h cmd>"
22235 msgstr ""
22236
22237 # type: =item
22238 #. type: =item
22239 #: ../fish/guestfish.pod:164
22240 msgid "B<--cmd-help cmd>"
22241 msgstr ""
22242
22243 # type: textblock
22244 #. type: textblock
22245 #: ../fish/guestfish.pod:166
22246 msgid "Displays detailed help on a single command C<cmd>."
22247 msgstr ""
22248
22249 # type: =item
22250 #. type: =item
22251 #: ../fish/guestfish.pod:168
22252 msgid "B<-a image>"
22253 msgstr ""
22254
22255 # type: =item
22256 #. type: =item
22257 #: ../fish/guestfish.pod:170
22258 msgid "B<--add image>"
22259 msgstr ""
22260
22261 # type: textblock
22262 #. type: textblock
22263 #: ../fish/guestfish.pod:172
22264 msgid "Add a block device or virtual machine image to the shell."
22265 msgstr ""
22266
22267 # type: textblock
22268 #. type: textblock
22269 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:91
22270 msgid ""
22271 "The format of the disk image is auto-detected.  To override this and force a "
22272 "particular format use the I<--format=..> option."
22273 msgstr ""
22274
22275 #. type: textblock
22276 #: ../fish/guestfish.pod:177
22277 msgid ""
22278 "Using this flag is mostly equivalent to using the C<add> command, with "
22279 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
22280 "the I<--format=...> flag was given."
22281 msgstr ""
22282
22283 # type: =item
22284 #. type: =item
22285 #: ../fish/guestfish.pod:181
22286 msgid "B<-c URI>"
22287 msgstr ""
22288
22289 # type: =item
22290 #. type: =item
22291 #: ../fish/guestfish.pod:183
22292 msgid "B<--connect URI>"
22293 msgstr ""
22294
22295 # type: textblock
22296 #. type: textblock
22297 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:96
22298 msgid ""
22299 "When used in conjunction with the I<-d> option, this specifies the libvirt "
22300 "URI to use.  The default is to use the default libvirt connection."
22301 msgstr ""
22302
22303 # type: =item
22304 #. type: =item
22305 #: ../fish/guestfish.pod:189
22306 msgid "B<--csh>"
22307 msgstr ""
22308
22309 # type: textblock
22310 #. type: textblock
22311 #: ../fish/guestfish.pod:191
22312 msgid ""
22313 "If using the I<--listen> option and a csh-like shell, use this option.  See "
22314 "section L</REMOTE CONTROL AND CSH> below."
22315 msgstr ""
22316
22317 # type: =item
22318 #. type: =item
22319 #: ../fish/guestfish.pod:194
22320 msgid "B<-d libvirt-domain>"
22321 msgstr ""
22322
22323 # type: =item
22324 #. type: =item
22325 #: ../fish/guestfish.pod:196
22326 msgid "B<--domain libvirt-domain>"
22327 msgstr ""
22328
22329 # type: textblock
22330 #. type: textblock
22331 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:102
22332 msgid ""
22333 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
22334 "used, then any libvirt domain can be used.  However in write mode, only "
22335 "libvirt domains which are shut down can be named here."
22336 msgstr ""
22337
22338 #. type: textblock
22339 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:106
22340 msgid "Domain UUIDs can be used instead of names."
22341 msgstr ""
22342
22343 # type: textblock
22344 #. type: textblock
22345 #: ../fish/guestfish.pod:204
22346 msgid ""
22347 "Using this flag is mostly equivalent to using the C<add-domain> command, "
22348 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
22349 "if the I<--format:...> flag was given."
22350 msgstr ""
22351
22352 # type: =item
22353 #. type: =item
22354 #: ../fish/guestfish.pod:208
22355 msgid "B<-D>"
22356 msgstr ""
22357
22358 # type: =item
22359 #. type: =item
22360 #: ../fish/guestfish.pod:210
22361 msgid "B<--no-dest-paths>"
22362 msgstr ""
22363
22364 # type: textblock
22365 #. type: textblock
22366 #: ../fish/guestfish.pod:212
22367 msgid ""
22368 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
22369 "to hit the tab key to complete paths on the guest filesystem, but this "
22370 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
22371 "allow this feature to be disabled."
22372 msgstr ""
22373
22374 # type: =item
22375 #. type: =item
22376 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:120
22377 msgid "B<--echo-keys>"
22378 msgstr ""
22379
22380 # type: textblock
22381 #. type: textblock
22382 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:122
22383 msgid ""
22384 "When prompting for keys and passphrases, guestfish normally turns echoing "
22385 "off so you cannot see what you are typing.  If you are not worried about "
22386 "Tempest attacks and there is no one else in the room you can specify this "
22387 "flag to see what you are typing."
22388 msgstr ""
22389
22390 # type: =item
22391 #. type: =item
22392 #: ../fish/guestfish.pod:224
22393 msgid "B<-f file>"
22394 msgstr ""
22395
22396 # type: =item
22397 #. type: =item
22398 #: ../fish/guestfish.pod:226
22399 msgid "B<--file file>"
22400 msgstr ""
22401
22402 # type: textblock
22403 #. type: textblock
22404 #: ../fish/guestfish.pod:228
22405 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
22406 msgstr ""
22407
22408 # type: verbatim
22409 #. type: verbatim
22410 #: ../fish/guestfish.pod:231
22411 #, no-wrap
22412 msgid ""
22413 " #!/usr/bin/guestfish -f\n"
22414 "\n"
22415 msgstr ""
22416
22417 # type: =item
22418 #. type: =item
22419 #: ../fish/guestfish.pod:233
22420 msgid "B<--format=raw|qcow2|..>"
22421 msgstr ""
22422
22423 # type: =item
22424 #. type: =item
22425 #: ../fish/guestfish.pod:235
22426 msgid "B<--format>"
22427 msgstr ""
22428
22429 # type: textblock
22430 #. type: textblock
22431 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:129
22432 msgid ""
22433 "The default for the I<-a> option is to auto-detect the format of the disk "
22434 "image.  Using this forces the disk format for I<-a> options which follow on "
22435 "the command line.  Using I<--format> with no argument switches back to auto-"
22436 "detection for subsequent I<-a> options."
22437 msgstr ""
22438
22439 # type: verbatim
22440 #. type: verbatim
22441 #: ../fish/guestfish.pod:244
22442 #, no-wrap
22443 msgid ""
22444 " guestfish --format=raw -a disk.img\n"
22445 "\n"
22446 msgstr ""
22447
22448 # type: textblock
22449 #. type: textblock
22450 #: ../fish/guestfish.pod:246
22451 msgid "forces raw format (no auto-detection) for C<disk.img>."
22452 msgstr ""
22453
22454 # type: verbatim
22455 #. type: verbatim
22456 #: ../fish/guestfish.pod:248
22457 #, no-wrap
22458 msgid ""
22459 " guestfish --format=raw -a disk.img --format -a another.img\n"
22460 "\n"
22461 msgstr ""
22462
22463 # type: textblock
22464 #. type: textblock
22465 #: ../fish/guestfish.pod:250
22466 msgid ""
22467 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
22468 "detection for C<another.img>."
22469 msgstr ""
22470
22471 # type: textblock
22472 #. type: textblock
22473 #: ../fish/guestfish.pod:253
22474 msgid ""
22475 "If you have untrusted raw-format guest disk images, you should use this "
22476 "option to specify the disk format.  This avoids a possible security problem "
22477 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
22478 msgstr ""
22479
22480 # type: =item
22481 #. type: =item
22482 #: ../fish/guestfish.pod:258
22483 msgid "B<-i>"
22484 msgstr ""
22485
22486 # type: =item
22487 #. type: =item
22488 #: ../fish/guestfish.pod:260
22489 msgid "B<--inspector>"
22490 msgstr ""
22491
22492 # type: textblock
22493 #. type: textblock
22494 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:149
22495 msgid ""
22496 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
22497 "system and mount filesystems as they would be mounted on the real virtual "
22498 "machine."
22499 msgstr ""
22500
22501 # type: textblock
22502 #. type: textblock
22503 #: ../fish/guestfish.pod:266
22504 msgid "Typical usage is either:"
22505 msgstr ""
22506
22507 # type: verbatim
22508 #. type: verbatim
22509 #: ../fish/guestfish.pod:268
22510 #, no-wrap
22511 msgid ""
22512 " guestfish -d myguest -i\n"
22513 "\n"
22514 msgstr ""
22515
22516 # type: textblock
22517 #. type: textblock
22518 #: ../fish/guestfish.pod:270
22519 msgid "(for an inactive libvirt domain called I<myguest>), or:"
22520 msgstr ""
22521
22522 # type: verbatim
22523 #. type: verbatim
22524 #: ../fish/guestfish.pod:272
22525 #, no-wrap
22526 msgid ""
22527 " guestfish --ro -d myguest -i\n"
22528 "\n"
22529 msgstr ""
22530
22531 # type: textblock
22532 #. type: textblock
22533 #: ../fish/guestfish.pod:274
22534 msgid "(for active domains, readonly), or specify the block device directly:"
22535 msgstr ""
22536
22537 # type: verbatim
22538 #. type: verbatim
22539 #: ../fish/guestfish.pod:276
22540 #, no-wrap
22541 msgid ""
22542 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
22543 "\n"
22544 msgstr ""
22545
22546 # type: textblock
22547 #. type: textblock
22548 #: ../fish/guestfish.pod:278
22549 msgid ""
22550 "Note that the command line syntax changed slightly over older versions of "
22551 "guestfish.  You can still use the old syntax:"
22552 msgstr ""
22553
22554 # type: verbatim
22555 #. type: verbatim
22556 #: ../fish/guestfish.pod:281
22557 #, no-wrap
22558 msgid ""
22559 " guestfish [--ro] -i disk.img\n"
22560 "\n"
22561 msgstr ""
22562
22563 # type: verbatim
22564 #. type: verbatim
22565 #: ../fish/guestfish.pod:283
22566 #, no-wrap
22567 msgid ""
22568 " guestfish [--ro] -i libvirt-domain\n"
22569 "\n"
22570 msgstr ""
22571
22572 # type: textblock
22573 #. type: textblock
22574 #: ../fish/guestfish.pod:285
22575 msgid ""
22576 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
22577 "then using other commands to mount the filesystems that were found."
22578 msgstr ""
22579
22580 # type: =item
22581 #. type: =item
22582 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:153
22583 msgid "B<--keys-from-stdin>"
22584 msgstr ""
22585
22586 # type: textblock
22587 #. type: textblock
22588 #: ../fish/guestfish.pod:291 ../fuse/guestmount.pod:155
22589 msgid ""
22590 "Read key or passphrase parameters from stdin.  The default is to try to read "
22591 "passphrases from the user by opening C</dev/tty>."
22592 msgstr ""
22593
22594 # type: =item
22595 #. type: =item
22596 #: ../fish/guestfish.pod:294
22597 msgid "B<--listen>"
22598 msgstr ""
22599
22600 # type: textblock
22601 #. type: textblock
22602 #: ../fish/guestfish.pod:296
22603 msgid ""
22604 "Fork into the background and listen for remote commands.  See section L</"
22605 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
22606 msgstr ""
22607
22608 #. type: =item
22609 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:158
22610 msgid "B<--live>"
22611 msgstr ""
22612
22613 #. type: textblock
22614 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:160
22615 msgid ""
22616 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
22617 "ATTACHING TO RUNNING DAEMONS>)."
22618 msgstr ""
22619
22620 #. type: =item
22621 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:163
22622 msgid "B<-m dev[:mountpoint[:options]]>"
22623 msgstr ""
22624
22625 #. type: =item
22626 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:165
22627 msgid "B<--mount dev[:mountpoint[:options]]>"
22628 msgstr ""
22629
22630 # type: textblock
22631 #. type: textblock
22632 #: ../fish/guestfish.pod:308
22633 msgid "Mount the named partition or logical volume on the given mountpoint."
22634 msgstr ""
22635
22636 # type: textblock
22637 #. type: textblock
22638 #: ../fish/guestfish.pod:310
22639 msgid "If the mountpoint is omitted, it defaults to C</>."
22640 msgstr ""
22641
22642 # type: textblock
22643 #. type: textblock
22644 #: ../fish/guestfish.pod:312
22645 msgid "You have to mount something on C</> before most commands will work."
22646 msgstr ""
22647
22648 # type: textblock
22649 #. type: textblock
22650 #: ../fish/guestfish.pod:314
22651 msgid ""
22652 "If any I<-m> or I<--mount> options are given, the guest is automatically "
22653 "launched."
22654 msgstr ""
22655
22656 # type: textblock
22657 #. type: textblock
22658 #: ../fish/guestfish.pod:317
22659 msgid ""
22660 "If you don't know what filesystems a disk image contains, you can either run "
22661 "guestfish without this option, then list the partitions, filesystems and LVs "
22662 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
22663 "commands), or you can use the L<virt-filesystems(1)> program."
22664 msgstr ""
22665
22666 #. type: textblock
22667 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:173
22668 msgid ""
22669 "The third (and rarely used) part of the mount parameter is the list of mount "
22670 "options used to mount the underlying filesystem.  If this is not given, then "
22671 "the mount options are either the empty string or C<ro> (the latter if the "
22672 "I<--ro> flag is used).  By specifying the mount options, you override this "
22673 "default choice.  Probably the only time you would use this is to enable ACLs "
22674 "and/or extended attributes if the filesystem can support them:"
22675 msgstr ""
22676
22677 #. type: verbatim
22678 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:181
22679 #, no-wrap
22680 msgid ""
22681 " -m /dev/sda1:/:acl,user_xattr\n"
22682 "\n"
22683 msgstr ""
22684
22685 #. type: textblock
22686 #: ../fish/guestfish.pod:333
22687 msgid "Using this flag is equivalent to using the C<mount-options> command."
22688 msgstr ""
22689
22690 # type: =item
22691 #. type: =item
22692 #: ../fish/guestfish.pod:335
22693 msgid "B<-n>"
22694 msgstr ""
22695
22696 # type: =item
22697 #. type: =item
22698 #: ../fish/guestfish.pod:337
22699 msgid "B<--no-sync>"
22700 msgstr ""
22701
22702 # type: textblock
22703 #. type: textblock
22704 #: ../fish/guestfish.pod:339
22705 msgid ""
22706 "Disable autosync.  This is enabled by default.  See the discussion of "
22707 "autosync in the L<guestfs(3)> manpage."
22708 msgstr ""
22709
22710 # type: =item
22711 #. type: =item
22712 #: ../fish/guestfish.pod:342
22713 msgid "B<-N type>"
22714 msgstr ""
22715
22716 # type: =item
22717 #. type: =item
22718 #: ../fish/guestfish.pod:344
22719 msgid "B<--new type>"
22720 msgstr ""
22721
22722 # type: =item
22723 #. type: =item
22724 #: ../fish/guestfish.pod:346
22725 msgid "B<-N help>"
22726 msgstr ""
22727
22728 # type: textblock
22729 #. type: textblock
22730 #: ../fish/guestfish.pod:348
22731 msgid ""
22732 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
22733 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
22734 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
22735 "IMAGES> below."
22736 msgstr ""
22737
22738 # type: =item
22739 #. type: =item
22740 #: ../fish/guestfish.pod:353
22741 msgid "B<--progress-bars>"
22742 msgstr ""
22743
22744 # type: textblock
22745 #. type: textblock
22746 #: ../fish/guestfish.pod:355
22747 msgid "Enable progress bars, even when guestfish is used non-interactively."
22748 msgstr ""
22749
22750 # type: textblock
22751 #. type: textblock
22752 #: ../fish/guestfish.pod:357
22753 msgid ""
22754 "Progress bars are enabled by default when guestfish is used as an "
22755 "interactive shell."
22756 msgstr ""
22757
22758 # type: =item
22759 #. type: =item
22760 #: ../fish/guestfish.pod:360
22761 msgid "B<--no-progress-bars>"
22762 msgstr ""
22763
22764 # type: textblock
22765 #. type: textblock
22766 #: ../fish/guestfish.pod:362
22767 msgid "Disable progress bars."
22768 msgstr ""
22769
22770 # type: =item
22771 #. type: =item
22772 #: ../fish/guestfish.pod:364
22773 msgid "B<--remote[=pid]>"
22774 msgstr ""
22775
22776 # type: textblock
22777 #. type: textblock
22778 #: ../fish/guestfish.pod:366
22779 msgid ""
22780 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
22781 "CONTROL GUESTFISH OVER A SOCKET> below."
22782 msgstr ""
22783
22784 # type: =item
22785 #. type: =item
22786 #: ../fish/guestfish.pod:369
22787 msgid "B<-r>"
22788 msgstr ""
22789
22790 # type: =item
22791 #. type: =item
22792 #: ../fish/guestfish.pod:371
22793 msgid "B<--ro>"
22794 msgstr ""
22795
22796 # type: textblock
22797 #. type: textblock
22798 #: ../fish/guestfish.pod:373
22799 msgid ""
22800 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
22801 "mounts are done read-only."
22802 msgstr ""
22803
22804 # type: textblock
22805 #. type: textblock
22806 #: ../fish/guestfish.pod:376
22807 msgid ""
22808 "The option must always be used if the disk image or virtual machine might be "
22809 "running, and is generally recommended in cases where you don't need write "
22810 "access to the disk."
22811 msgstr ""
22812
22813 # type: textblock
22814 #. type: textblock
22815 #: ../fish/guestfish.pod:380
22816 msgid ""
22817 "Note that prepared disk images created with I<-N> are not affected by this "
22818 "option.  Also commands like C<add> are not affected - you have to specify "
22819 "the C<readonly:true> option explicitly if you need it."
22820 msgstr ""
22821
22822 # type: textblock
22823 #. type: textblock
22824 #: ../fish/guestfish.pod:384
22825 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
22826 msgstr ""
22827
22828 # type: =item
22829 #. type: =item
22830 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:237
22831 msgid "B<--selinux>"
22832 msgstr ""
22833
22834 # type: textblock
22835 #. type: textblock
22836 #: ../fish/guestfish.pod:388
22837 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
22838 msgstr ""
22839
22840 # type: =item
22841 #. type: =item
22842 #: ../fish/guestfish.pod:390
22843 msgid "B<-v>"
22844 msgstr ""
22845
22846 # type: =item
22847 #. type: =item
22848 #: ../fish/guestfish.pod:392
22849 msgid "B<--verbose>"
22850 msgstr ""
22851
22852 # type: textblock
22853 #. type: textblock
22854 #: ../fish/guestfish.pod:394
22855 msgid ""
22856 "Enable very verbose messages.  This is particularly useful if you find a bug."
22857 msgstr ""
22858
22859 # type: =item
22860 #. type: =item
22861 #: ../fish/guestfish.pod:397
22862 msgid "B<-V>"
22863 msgstr ""
22864
22865 # type: =item
22866 #. type: =item
22867 #: ../fish/guestfish.pod:399 ../tools/virt-win-reg.pl:112
22868 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:119
22869 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
22870 msgid "B<--version>"
22871 msgstr ""
22872
22873 # type: textblock
22874 #. type: textblock
22875 #: ../fish/guestfish.pod:401
22876 msgid "Display the guestfish / libguestfs version number and exit."
22877 msgstr ""
22878
22879 # type: =item
22880 #. type: =item
22881 #: ../fish/guestfish.pod:403
22882 msgid "B<-w>"
22883 msgstr ""
22884
22885 # type: =item
22886 #. type: =item
22887 #: ../fish/guestfish.pod:405
22888 msgid "B<--rw>"
22889 msgstr ""
22890
22891 #. type: textblock
22892 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:251
22893 msgid ""
22894 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
22895 "mounts are done read-write."
22896 msgstr ""
22897
22898 #. type: textblock
22899 #: ../fish/guestfish.pod:410
22900 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
22901 msgstr ""
22902
22903 # type: =item
22904 #. type: =item
22905 #: ../fish/guestfish.pod:412
22906 msgid "B<-x>"
22907 msgstr ""
22908
22909 # type: textblock
22910 #. type: textblock
22911 #: ../fish/guestfish.pod:414
22912 msgid "Echo each command before executing it."
22913 msgstr ""
22914
22915 # type: =head1
22916 #. type: =head1
22917 #: ../fish/guestfish.pod:418
22918 msgid "COMMANDS ON COMMAND LINE"
22919 msgstr ""
22920
22921 # type: textblock
22922 #. type: textblock
22923 #: ../fish/guestfish.pod:420
22924 msgid ""
22925 "Any additional (non-option) arguments are treated as commands to execute."
22926 msgstr ""
22927
22928 # type: textblock
22929 #. type: textblock
22930 #: ../fish/guestfish.pod:423
22931 msgid ""
22932 "Commands to execute should be separated by a colon (C<:>), where the colon "
22933 "is a separate parameter.  Thus:"
22934 msgstr ""
22935
22936 # type: verbatim
22937 #. type: verbatim
22938 #: ../fish/guestfish.pod:426
22939 #, no-wrap
22940 msgid ""
22941 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
22942 "\n"
22943 msgstr ""
22944
22945 # type: textblock
22946 #. type: textblock
22947 #: ../fish/guestfish.pod:428
22948 msgid ""
22949 "If there are no additional arguments, then we enter a shell, either an "
22950 "interactive shell with a prompt (if the input is a terminal) or a non-"
22951 "interactive shell."
22952 msgstr ""
22953
22954 # type: textblock
22955 #. type: textblock
22956 #: ../fish/guestfish.pod:432
22957 msgid ""
22958 "In either command line mode or non-interactive shell, the first command that "
22959 "gives an error causes the whole shell to exit.  In interactive mode (with a "
22960 "prompt) if a command fails, you can continue to enter commands."
22961 msgstr ""
22962
22963 # type: =head1
22964 #. type: =head1
22965 #: ../fish/guestfish.pod:437
22966 msgid "USING launch (OR run)"
22967 msgstr ""
22968
22969 # type: textblock
22970 #. type: textblock
22971 #: ../fish/guestfish.pod:439
22972 msgid ""
22973 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
22974 "then launch it, then mount any disks you need, and finally issue actions/"
22975 "commands.  So the general order of the day is:"
22976 msgstr ""
22977
22978 # type: textblock
22979 #. type: textblock
22980 #: ../fish/guestfish.pod:447
22981 msgid "add or -a/--add"
22982 msgstr ""
22983
22984 # type: textblock
22985 #. type: textblock
22986 #: ../fish/guestfish.pod:451
22987 msgid "launch (aka run)"
22988 msgstr ""
22989
22990 # type: textblock
22991 #. type: textblock
22992 #: ../fish/guestfish.pod:455
22993 msgid "mount or -m/--mount"
22994 msgstr ""
22995
22996 # type: textblock
22997 #. type: textblock
22998 #: ../fish/guestfish.pod:459
22999 msgid "any other commands"
23000 msgstr ""
23001
23002 # type: textblock
23003 #. type: textblock
23004 #: ../fish/guestfish.pod:463
23005 msgid ""
23006 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
23007 "guest before mounting or performing any other commands."
23008 msgstr ""
23009
23010 # type: textblock
23011 #. type: textblock
23012 #: ../fish/guestfish.pod:466
23013 msgid ""
23014 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
23015 "I<--new> options were given then C<run> is done automatically, simply "
23016 "because guestfish can't perform the action you asked for without doing this."
23017 msgstr ""
23018
23019 # type: =head1
23020 #. type: =head1
23021 #: ../fish/guestfish.pod:471
23022 msgid "OPENING DISKS FOR READ AND WRITE"
23023 msgstr ""
23024
23025 #. type: textblock
23026 #: ../fish/guestfish.pod:473
23027 msgid ""
23028 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
23029 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
23030 "I<-i> and I<-m> open disk images read-only or for writing."
23031 msgstr ""
23032
23033 #. type: textblock
23034 #: ../fish/guestfish.pod:478
23035 msgid ""
23036 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
23037 "opening disk images supplied on the command line for write.  To open a disk "
23038 "image read-only you have to do I<-a image --ro>."
23039 msgstr ""
23040
23041 # type: textblock
23042 #. type: textblock
23043 #: ../fish/guestfish.pod:482
23044 msgid ""
23045 "This matters: If you accidentally open a live VM disk image writable then "
23046 "you will cause irreversible disk corruption."
23047 msgstr ""
23048
23049 #. type: textblock
23050 #: ../fish/guestfish.pod:485
23051 msgid ""
23052 "By libguestfs 1.12 we intend to change the default the other way.  Disk "
23053 "images will be opened read-only.  You will have to either specify "
23054 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
23055 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
23056 "access for disk images specified by those other command line options."
23057 msgstr ""
23058
23059 #. type: textblock
23060 #: ../fish/guestfish.pod:492
23061 msgid ""
23062 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
23063 "which does nothing (it is already the default).  However it is highly "
23064 "recommended that you use this option to indicate that you need write access, "
23065 "and prepare your scripts for the day when this option will be required for "
23066 "write access."
23067 msgstr ""
23068
23069 # type: textblock
23070 #. type: textblock
23071 #: ../fish/guestfish.pod:498
23072 msgid ""
23073 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
23074 "other libguestfs program apart from guestfish and guestmount."
23075 msgstr ""
23076
23077 # type: =head1
23078 #. type: =head1
23079 #: ../fish/guestfish.pod:501
23080 msgid "QUOTING"
23081 msgstr ""
23082
23083 # type: textblock
23084 #. type: textblock
23085 #: ../fish/guestfish.pod:503
23086 msgid ""
23087 "You can quote ordinary parameters using either single or double quotes.  For "
23088 "example:"
23089 msgstr ""
23090
23091 # type: verbatim
23092 #. type: verbatim
23093 #: ../fish/guestfish.pod:506
23094 #, no-wrap
23095 msgid ""
23096 " add \"file with a space.img\"\n"
23097 "\n"
23098 msgstr ""
23099
23100 # type: verbatim
23101 #. type: verbatim
23102 #: ../fish/guestfish.pod:508
23103 #, no-wrap
23104 msgid ""
23105 " rm '/file name'\n"
23106 "\n"
23107 msgstr ""
23108
23109 # type: verbatim
23110 #. type: verbatim
23111 #: ../fish/guestfish.pod:510
23112 #, no-wrap
23113 msgid ""
23114 " rm '/\"'\n"
23115 "\n"
23116 msgstr ""
23117
23118 # type: textblock
23119 #. type: textblock
23120 #: ../fish/guestfish.pod:512
23121 msgid ""
23122 "A few commands require a list of strings to be passed.  For these, use a "
23123 "whitespace-separated list, enclosed in quotes.  Strings containing "
23124 "whitespace to be passed through must be enclosed in single quotes.  A "
23125 "literal single quote must be escaped with a backslash."
23126 msgstr ""
23127
23128 # type: verbatim
23129 #. type: verbatim
23130 #: ../fish/guestfish.pod:517
23131 #, no-wrap
23132 msgid ""
23133 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
23134 " command \"/bin/echo 'foo      bar'\"\n"
23135 " command \"/bin/echo \\'foo\\'\"\n"
23136 "\n"
23137 msgstr ""
23138
23139 # type: =head1
23140 #. type: =head1
23141 #: ../fish/guestfish.pod:521
23142 msgid "OPTIONAL ARGUMENTS"
23143 msgstr ""
23144
23145 # type: textblock
23146 #. type: textblock
23147 #: ../fish/guestfish.pod:523
23148 msgid ""
23149 "Some commands take optional arguments.  These arguments appear in this "
23150 "documentation as C<[argname:..]>.  You can use them as in these examples:"
23151 msgstr ""
23152
23153 # type: verbatim
23154 #. type: verbatim
23155 #: ../fish/guestfish.pod:527
23156 #, no-wrap
23157 msgid ""
23158 " add-drive-opts filename\n"
23159 "\n"
23160 msgstr ""
23161
23162 # type: verbatim
23163 #. type: verbatim
23164 #: ../fish/guestfish.pod:529
23165 #, no-wrap
23166 msgid ""
23167 " add-drive-opts filename readonly:true\n"
23168 "\n"
23169 msgstr ""
23170
23171 # type: verbatim
23172 #. type: verbatim
23173 #: ../fish/guestfish.pod:531
23174 #, no-wrap
23175 msgid ""
23176 " add-drive-opts filename format:qcow2 readonly:false\n"
23177 "\n"
23178 msgstr ""
23179
23180 # type: textblock
23181 #. type: textblock
23182 #: ../fish/guestfish.pod:533
23183 msgid ""
23184 "Each optional argument can appear at most once.  All optional arguments must "
23185 "appear after the required ones."
23186 msgstr ""
23187
23188 # type: =head1
23189 #. type: =head1
23190 #: ../fish/guestfish.pod:536
23191 msgid "NUMBERS"
23192 msgstr ""
23193
23194 # type: textblock
23195 #. type: textblock
23196 #: ../fish/guestfish.pod:538
23197 msgid ""
23198 "This section applies to all commands which can take integers as parameters."
23199 msgstr ""
23200
23201 # type: =head2
23202 #. type: =head2
23203 #: ../fish/guestfish.pod:541
23204 msgid "SIZE SUFFIX"
23205 msgstr ""
23206
23207 # type: textblock
23208 #. type: textblock
23209 #: ../fish/guestfish.pod:543
23210 msgid ""
23211 "When the command takes a parameter measured in bytes, you can use one of the "
23212 "following suffixes to specify kilobytes, megabytes and larger sizes:"
23213 msgstr ""
23214
23215 # type: =item
23216 #. type: =item
23217 #: ../fish/guestfish.pod:549
23218 msgid "B<k> or B<K> or B<KiB>"
23219 msgstr ""
23220
23221 # type: textblock
23222 #. type: textblock
23223 #: ../fish/guestfish.pod:551
23224 msgid "The size in kilobytes (multiplied by 1024)."
23225 msgstr ""
23226
23227 # type: =item
23228 #. type: =item
23229 #: ../fish/guestfish.pod:553
23230 msgid "B<KB>"
23231 msgstr ""
23232
23233 # type: textblock
23234 #. type: textblock
23235 #: ../fish/guestfish.pod:555
23236 msgid "The size in SI 1000 byte units."
23237 msgstr ""
23238
23239 # type: =item
23240 #. type: =item
23241 #: ../fish/guestfish.pod:557
23242 msgid "B<M> or B<MiB>"
23243 msgstr ""
23244
23245 # type: textblock
23246 #. type: textblock
23247 #: ../fish/guestfish.pod:559
23248 msgid "The size in megabytes (multiplied by 1048576)."
23249 msgstr ""
23250
23251 # type: =item
23252 #. type: =item
23253 #: ../fish/guestfish.pod:561
23254 msgid "B<MB>"
23255 msgstr ""
23256
23257 # type: textblock
23258 #. type: textblock
23259 #: ../fish/guestfish.pod:563
23260 msgid "The size in SI 1000000 byte units."
23261 msgstr ""
23262
23263 # type: =item
23264 #. type: =item
23265 #: ../fish/guestfish.pod:565
23266 msgid "B<G> or B<GiB>"
23267 msgstr ""
23268
23269 # type: textblock
23270 #. type: textblock
23271 #: ../fish/guestfish.pod:567
23272 msgid "The size in gigabytes (multiplied by 2**30)."
23273 msgstr ""
23274
23275 # type: =item
23276 #. type: =item
23277 #: ../fish/guestfish.pod:569
23278 msgid "B<GB>"
23279 msgstr ""
23280
23281 # type: textblock
23282 #. type: textblock
23283 #: ../fish/guestfish.pod:571
23284 msgid "The size in SI 10**9 byte units."
23285 msgstr ""
23286
23287 # type: =item
23288 #. type: =item
23289 #: ../fish/guestfish.pod:573
23290 msgid "B<T> or B<TiB>"
23291 msgstr ""
23292
23293 # type: textblock
23294 #. type: textblock
23295 #: ../fish/guestfish.pod:575
23296 msgid "The size in terabytes (multiplied by 2**40)."
23297 msgstr ""
23298
23299 # type: =item
23300 #. type: =item
23301 #: ../fish/guestfish.pod:577
23302 msgid "B<TB>"
23303 msgstr ""
23304
23305 # type: textblock
23306 #. type: textblock
23307 #: ../fish/guestfish.pod:579
23308 msgid "The size in SI 10**12 byte units."
23309 msgstr ""
23310
23311 # type: =item
23312 #. type: =item
23313 #: ../fish/guestfish.pod:581
23314 msgid "B<P> or B<PiB>"
23315 msgstr ""
23316
23317 # type: textblock
23318 #. type: textblock
23319 #: ../fish/guestfish.pod:583
23320 msgid "The size in petabytes (multiplied by 2**50)."
23321 msgstr ""
23322
23323 # type: =item
23324 #. type: =item
23325 #: ../fish/guestfish.pod:585
23326 msgid "B<PB>"
23327 msgstr ""
23328
23329 # type: textblock
23330 #. type: textblock
23331 #: ../fish/guestfish.pod:587
23332 msgid "The size in SI 10**15 byte units."
23333 msgstr ""
23334
23335 # type: =item
23336 #. type: =item
23337 #: ../fish/guestfish.pod:589
23338 msgid "B<E> or B<EiB>"
23339 msgstr ""
23340
23341 # type: textblock
23342 #. type: textblock
23343 #: ../fish/guestfish.pod:591
23344 msgid "The size in exabytes (multiplied by 2**60)."
23345 msgstr ""
23346
23347 # type: =item
23348 #. type: =item
23349 #: ../fish/guestfish.pod:593
23350 msgid "B<EB>"
23351 msgstr ""
23352
23353 # type: textblock
23354 #. type: textblock
23355 #: ../fish/guestfish.pod:595
23356 msgid "The size in SI 10**18 byte units."
23357 msgstr ""
23358
23359 # type: =item
23360 #. type: =item
23361 #: ../fish/guestfish.pod:597
23362 msgid "B<Z> or B<ZiB>"
23363 msgstr ""
23364
23365 # type: textblock
23366 #. type: textblock
23367 #: ../fish/guestfish.pod:599
23368 msgid "The size in zettabytes (multiplied by 2**70)."
23369 msgstr ""
23370
23371 # type: =item
23372 #. type: =item
23373 #: ../fish/guestfish.pod:601
23374 msgid "B<ZB>"
23375 msgstr ""
23376
23377 # type: textblock
23378 #. type: textblock
23379 #: ../fish/guestfish.pod:603
23380 msgid "The size in SI 10**21 byte units."
23381 msgstr ""
23382
23383 # type: =item
23384 #. type: =item
23385 #: ../fish/guestfish.pod:605
23386 msgid "B<Y> or B<YiB>"
23387 msgstr ""
23388
23389 # type: textblock
23390 #. type: textblock
23391 #: ../fish/guestfish.pod:607
23392 msgid "The size in yottabytes (multiplied by 2**80)."
23393 msgstr ""
23394
23395 # type: =item
23396 #. type: =item
23397 #: ../fish/guestfish.pod:609
23398 msgid "B<YB>"
23399 msgstr ""
23400
23401 # type: textblock
23402 #. type: textblock
23403 #: ../fish/guestfish.pod:611
23404 msgid "The size in SI 10**24 byte units."
23405 msgstr ""
23406
23407 # type: verbatim
23408 #. type: verbatim
23409 #: ../fish/guestfish.pod:617
23410 #, no-wrap
23411 msgid ""
23412 " truncate-size /file 1G\n"
23413 "\n"
23414 msgstr ""
23415
23416 # type: textblock
23417 #. type: textblock
23418 #: ../fish/guestfish.pod:619
23419 msgid "would truncate the file to 1 gigabyte."
23420 msgstr ""
23421
23422 # type: textblock
23423 #. type: textblock
23424 #: ../fish/guestfish.pod:621
23425 msgid ""
23426 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
23427 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
23428 "suffix will probably not do what you expect."
23429 msgstr ""
23430
23431 # type: =head2
23432 #. type: =head2
23433 #: ../fish/guestfish.pod:625
23434 msgid "OCTAL AND HEXADECIMAL NUMBERS"
23435 msgstr ""
23436
23437 # type: textblock
23438 #. type: textblock
23439 #: ../fish/guestfish.pod:627
23440 msgid ""
23441 "For specifying the radix (base) use the C convention: C<0> to prefix an "
23442 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
23443 msgstr ""
23444
23445 # type: verbatim
23446 #. type: verbatim
23447 #: ../fish/guestfish.pod:630
23448 #, no-wrap
23449 msgid ""
23450 " 1234      decimal number 1234\n"
23451 " 02322     octal number, equivalent to decimal 1234\n"
23452 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
23453 "\n"
23454 msgstr ""
23455
23456 # type: textblock
23457 #. type: textblock
23458 #: ../fish/guestfish.pod:634
23459 msgid ""
23460 "When using the C<chmod> command, you almost always want to specify an octal "
23461 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
23462 "L<chmod(1)> program):"
23463 msgstr ""
23464
23465 # type: verbatim
23466 #. type: verbatim
23467 #: ../fish/guestfish.pod:638
23468 #, no-wrap
23469 msgid ""
23470 " chmod 0777 /public  # OK\n"
23471 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
23472 "\n"
23473 msgstr ""
23474
23475 # type: textblock
23476 #. type: textblock
23477 #: ../fish/guestfish.pod:641
23478 msgid ""
23479 "Commands that return numbers usually print them in decimal, but some "
23480 "commands print numbers in other radices (eg. C<umask> prints the mode in "
23481 "octal, preceeded by C<0>)."
23482 msgstr ""
23483
23484 # type: =head1
23485 #. type: =head1
23486 #: ../fish/guestfish.pod:645
23487 msgid "WILDCARDS AND GLOBBING"
23488 msgstr ""
23489
23490 # type: textblock
23491 #. type: textblock
23492 #: ../fish/guestfish.pod:647
23493 msgid ""
23494 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
23495 "(globbing) by default.  So for example the following will not do what you "
23496 "expect:"
23497 msgstr ""
23498
23499 # type: verbatim
23500 #. type: verbatim
23501 #: ../fish/guestfish.pod:651
23502 #, no-wrap
23503 msgid ""
23504 " rm-rf /home/*\n"
23505 "\n"
23506 msgstr ""
23507
23508 # type: textblock
23509 #. type: textblock
23510 #: ../fish/guestfish.pod:653
23511 msgid ""
23512 "Assuming you don't have a directory called literally C</home/*> then the "
23513 "above command will return an error."
23514 msgstr ""
23515
23516 # type: textblock
23517 #. type: textblock
23518 #: ../fish/guestfish.pod:656
23519 msgid "To perform wildcard expansion, use the C<glob> command."
23520 msgstr ""
23521
23522 # type: verbatim
23523 #. type: verbatim
23524 #: ../fish/guestfish.pod:658
23525 #, no-wrap
23526 msgid ""
23527 " glob rm-rf /home/*\n"
23528 "\n"
23529 msgstr ""
23530
23531 # type: textblock
23532 #. type: textblock
23533 #: ../fish/guestfish.pod:660
23534 msgid ""
23535 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
23536 "many times), equivalent to:"
23537 msgstr ""
23538
23539 # type: verbatim
23540 #. type: verbatim
23541 #: ../fish/guestfish.pod:663
23542 #, no-wrap
23543 msgid ""
23544 " rm-rf /home/jim\n"
23545 " rm-rf /home/joe\n"
23546 " rm-rf /home/mary\n"
23547 "\n"
23548 msgstr ""
23549
23550 # type: textblock
23551 #. type: textblock
23552 #: ../fish/guestfish.pod:667
23553 msgid "C<glob> only works on simple guest paths and not on device names."
23554 msgstr ""
23555
23556 # type: textblock
23557 #. type: textblock
23558 #: ../fish/guestfish.pod:669
23559 msgid ""
23560 "If you have several parameters, each containing a wildcard, then glob will "
23561 "perform a Cartesian product."
23562 msgstr ""
23563
23564 # type: =head1
23565 #. type: =head1
23566 #: ../fish/guestfish.pod:672
23567 msgid "COMMENTS"
23568 msgstr ""
23569
23570 # type: textblock
23571 #. type: textblock
23572 #: ../fish/guestfish.pod:674
23573 msgid ""
23574 "Any line which starts with a I<#> character is treated as a comment and "
23575 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
23576 "a command.  For example:"
23577 msgstr ""
23578
23579 # type: verbatim
23580 #. type: verbatim
23581 #: ../fish/guestfish.pod:678
23582 #, no-wrap
23583 msgid ""
23584 " # this is a comment\n"
23585 "         # this is a comment\n"
23586 " foo # NOT a comment\n"
23587 "\n"
23588 msgstr ""
23589
23590 # type: textblock
23591 #. type: textblock
23592 #: ../fish/guestfish.pod:682
23593 msgid "Blank lines are also ignored."
23594 msgstr ""
23595
23596 # type: =head1
23597 #. type: =head1
23598 #: ../fish/guestfish.pod:684
23599 msgid "RUNNING COMMANDS LOCALLY"
23600 msgstr ""
23601
23602 # type: textblock
23603 #. type: textblock
23604 #: ../fish/guestfish.pod:686
23605 msgid ""
23606 "Any line which starts with a I<!> character is treated as a command sent to "
23607 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
23608 msgstr ""
23609
23610 # type: verbatim
23611 #. type: verbatim
23612 #: ../fish/guestfish.pod:690
23613 #, no-wrap
23614 msgid ""
23615 " !mkdir local\n"
23616 " tgz-out /remote local/remote-data.tar.gz\n"
23617 "\n"
23618 msgstr ""
23619
23620 # type: textblock
23621 #. type: textblock
23622 #: ../fish/guestfish.pod:693
23623 msgid ""
23624 "will create a directory C<local> on the host, and then export the contents "
23625 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
23626 "(See C<tgz-out>)."
23627 msgstr ""
23628
23629 # type: textblock
23630 #. type: textblock
23631 #: ../fish/guestfish.pod:697
23632 msgid ""
23633 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
23634 "effect, due to the way that subprocesses work in Unix."
23635 msgstr ""
23636
23637 #. type: =head2
23638 #: ../fish/guestfish.pod:700
23639 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
23640 msgstr ""
23641
23642 #. type: textblock
23643 #: ../fish/guestfish.pod:702
23644 msgid ""
23645 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
23646 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
23647 "and executed as guestfish commands."
23648 msgstr ""
23649
23650 #. type: textblock
23651 #: ../fish/guestfish.pod:706
23652 msgid ""
23653 "Thus you can use shell script to construct arbitrary guestfish commands "
23654 "which are then parsed by guestfish."
23655 msgstr ""
23656
23657 #. type: textblock
23658 #: ../fish/guestfish.pod:709
23659 msgid ""
23660 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
23661 "through C</foo.100>) using guestfish commands alone.  However this is simple "
23662 "if we use a shell script to create the guestfish commands for us:"
23663 msgstr ""
23664
23665 #. type: verbatim
23666 #: ../fish/guestfish.pod:714
23667 #, no-wrap
23668 msgid ""
23669 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
23670 "\n"
23671 msgstr ""
23672
23673 #. type: textblock
23674 #: ../fish/guestfish.pod:716
23675 msgid "or with names like C</foo.001>:"
23676 msgstr ""
23677
23678 #. type: verbatim
23679 #: ../fish/guestfish.pod:718
23680 #, no-wrap
23681 msgid ""
23682 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
23683 "\n"
23684 msgstr ""
23685
23686 #. type: textblock
23687 #: ../fish/guestfish.pod:720
23688 msgid ""
23689 "When using guestfish interactively it can be helpful to just run the shell "
23690 "script first (ie. remove the initial C<E<lt>> character so it is just an "
23691 "ordinary I<!> local command), see what guestfish commands it would run, and "
23692 "when you are happy with those prepend the C<E<lt>> character to run the "
23693 "guestfish commands for real."
23694 msgstr ""
23695
23696 # type: =head1
23697 #. type: =head1
23698 #: ../fish/guestfish.pod:726
23699 msgid "PIPES"
23700 msgstr ""
23701
23702 # type: textblock
23703 #. type: textblock
23704 #: ../fish/guestfish.pod:728
23705 msgid ""
23706 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
23707 "command (a guestfish command) to the second command (any host command).  For "
23708 "example:"
23709 msgstr ""
23710
23711 # type: verbatim
23712 #. type: verbatim
23713 #: ../fish/guestfish.pod:732
23714 #, no-wrap
23715 msgid ""
23716 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
23717 "\n"
23718 msgstr ""
23719
23720 # type: textblock
23721 #. type: textblock
23722 #: ../fish/guestfish.pod:734
23723 msgid ""
23724 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
23725 "program).  The above command would list all accounts in the guest filesystem "
23726 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
23727 msgstr ""
23728
23729 # type: verbatim
23730 #. type: verbatim
23731 #: ../fish/guestfish.pod:739
23732 #, no-wrap
23733 msgid ""
23734 " hexdump /bin/ls | head\n"
23735 " list-devices | tail -1\n"
23736 " tgz-out / - | tar ztf -\n"
23737 "\n"
23738 msgstr ""
23739
23740 # type: textblock
23741 #. type: textblock
23742 #: ../fish/guestfish.pod:743
23743 msgid ""
23744 "The space before the pipe symbol is required, any space after the pipe "
23745 "symbol is optional.  Everything after the pipe symbol is just passed "
23746 "straight to the host shell, so it can contain redirections, globs and "
23747 "anything else that makes sense on the host side."
23748 msgstr ""
23749
23750 # type: textblock
23751 #. type: textblock
23752 #: ../fish/guestfish.pod:748
23753 msgid ""
23754 "To use a literal argument which begins with a pipe symbol, you have to quote "
23755 "it, eg:"
23756 msgstr ""
23757
23758 # type: verbatim
23759 #. type: verbatim
23760 #: ../fish/guestfish.pod:751
23761 #, no-wrap
23762 msgid ""
23763 " echo \"|\"\n"
23764 "\n"
23765 msgstr ""
23766
23767 # type: =head1
23768 #. type: =head1
23769 #: ../fish/guestfish.pod:753
23770 msgid "HOME DIRECTORIES"
23771 msgstr ""
23772
23773 # type: textblock
23774 #. type: textblock
23775 #: ../fish/guestfish.pod:755
23776 msgid ""
23777 "If a parameter starts with the character C<~> then the tilde may be expanded "
23778 "as a home directory path (either C<~> for the current user's home directory, "
23779 "or C<~user> for another user)."
23780 msgstr ""
23781
23782 # type: textblock
23783 #. type: textblock
23784 #: ../fish/guestfish.pod:759
23785 msgid ""
23786 "Note that home directory expansion happens for users known I<on the host>, "
23787 "not in the guest filesystem."
23788 msgstr ""
23789
23790 # type: textblock
23791 #. type: textblock
23792 #: ../fish/guestfish.pod:762
23793 msgid ""
23794 "To use a literal argument which begins with a tilde, you have to quote it, "
23795 "eg:"
23796 msgstr ""
23797
23798 # type: verbatim
23799 #. type: verbatim
23800 #: ../fish/guestfish.pod:765
23801 #, no-wrap
23802 msgid ""
23803 " echo \"~\"\n"
23804 "\n"
23805 msgstr ""
23806
23807 # type: textblock
23808 #. type: textblock
23809 #: ../fish/guestfish.pod:769
23810 msgid ""
23811 "Libguestfs has some support for Linux guests encrypted according to the "
23812 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
23813 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
23814 "LUKS is supported."
23815 msgstr ""
23816
23817 # type: textblock
23818 #. type: textblock
23819 #: ../fish/guestfish.pod:774
23820 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
23821 msgstr ""
23822
23823 # type: verbatim
23824 #. type: verbatim
23825 #: ../fish/guestfish.pod:776
23826 #, no-wrap
23827 msgid ""
23828 " ><fs> vfs-type /dev/sda2\n"
23829 " crypto_LUKS\n"
23830 "\n"
23831 msgstr ""
23832
23833 # type: textblock
23834 #. type: textblock
23835 #: ../fish/guestfish.pod:779
23836 msgid ""
23837 "Then open those devices using L</luks-open>.  This creates a device-mapper "
23838 "device called C</dev/mapper/luksdev>."
23839 msgstr ""
23840
23841 # type: verbatim
23842 #. type: verbatim
23843 #: ../fish/guestfish.pod:782
23844 #, no-wrap
23845 msgid ""
23846 " ><fs> luks-open /dev/sda2 luksdev\n"
23847 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
23848 "\n"
23849 msgstr ""
23850
23851 # type: textblock
23852 #. type: textblock
23853 #: ../fish/guestfish.pod:785
23854 msgid ""
23855 "Finally you have to tell LVM to scan for volume groups on the newly created "
23856 "mapper device:"
23857 msgstr ""
23858
23859 # type: verbatim
23860 #. type: verbatim
23861 #: ../fish/guestfish.pod:788
23862 #, no-wrap
23863 msgid ""
23864 " vgscan\n"
23865 " vg-activate-all true\n"
23866 "\n"
23867 msgstr ""
23868
23869 # type: textblock
23870 #. type: textblock
23871 #: ../fish/guestfish.pod:791
23872 msgid "The logical volume(s) can now be mounted in the usual way."
23873 msgstr ""
23874
23875 # type: textblock
23876 #. type: textblock
23877 #: ../fish/guestfish.pod:793
23878 msgid ""
23879 "Before closing a LUKS device you must unmount any logical volumes on it and "
23880 "deactivate the volume groups by calling C<vg-activate false VG> on each "
23881 "one.  Then you can close the mapper device:"
23882 msgstr ""
23883
23884 # type: verbatim
23885 #. type: verbatim
23886 #: ../fish/guestfish.pod:797
23887 #, no-wrap
23888 msgid ""
23889 " vg-activate false /dev/VG\n"
23890 " luks-close /dev/mapper/luksdev\n"
23891 "\n"
23892 msgstr ""
23893
23894 # type: =head1
23895 #. type: =head1
23896 #: ../fish/guestfish.pod:800
23897 msgid "WINDOWS PATHS"
23898 msgstr ""
23899
23900 #. type: textblock
23901 #: ../fish/guestfish.pod:802
23902 msgid ""
23903 "If a path is prefixed with C<win:> then you can use Windows-style drive "
23904 "letters and paths (with some limitations).  The following commands are "
23905 "equivalent:"
23906 msgstr ""
23907
23908 # type: verbatim
23909 #. type: verbatim
23910 #: ../fish/guestfish.pod:806
23911 #, no-wrap
23912 msgid ""
23913 " file /WINDOWS/system32/config/system.LOG\n"
23914 "\n"
23915 msgstr ""
23916
23917 # type: verbatim
23918 #. type: verbatim
23919 #: ../fish/guestfish.pod:808
23920 #, no-wrap
23921 msgid ""
23922 " file win:\\windows\\system32\\config\\system.log\n"
23923 "\n"
23924 msgstr ""
23925
23926 #. type: verbatim
23927 #: ../fish/guestfish.pod:810
23928 #, no-wrap
23929 msgid ""
23930 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
23931 "\n"
23932 msgstr ""
23933
23934 #. type: textblock
23935 #: ../fish/guestfish.pod:812
23936 msgid ""
23937 "The parameter is rewritten \"behind the scenes\" by looking up the position "
23938 "where the drive is mounted, prepending that to the path, changing all "
23939 "backslash characters to forward slash, then resolving the result using L</"
23940 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
23941 "the parameter might be rewritten like this:"
23942 msgstr ""
23943
23944 #. type: verbatim
23945 #: ../fish/guestfish.pod:818
23946 #, no-wrap
23947 msgid ""
23948 " win:e:\\foo\\bar => /e/FOO/bar\n"
23949 "\n"
23950 msgstr ""
23951
23952 #. type: textblock
23953 #: ../fish/guestfish.pod:820
23954 msgid "This only works in argument positions that expect a path."
23955 msgstr ""
23956
23957 # type: =head1
23958 #. type: =head1
23959 #: ../fish/guestfish.pod:822
23960 msgid "UPLOADING AND DOWNLOADING FILES"
23961 msgstr ""
23962
23963 # type: textblock
23964 #. type: textblock
23965 #: ../fish/guestfish.pod:824
23966 msgid ""
23967 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
23968 "others which upload from or download to a local file, you can use the "
23969 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
23970 msgstr ""
23971
23972 # type: verbatim
23973 #. type: verbatim
23974 #: ../fish/guestfish.pod:828
23975 #, no-wrap
23976 msgid ""
23977 " upload - /foo\n"
23978 "\n"
23979 msgstr ""
23980
23981 # type: textblock
23982 #. type: textblock
23983 #: ../fish/guestfish.pod:830
23984 msgid ""
23985 "reads stdin and creates from that a file C</foo> in the disk image, and:"
23986 msgstr ""
23987
23988 # type: verbatim
23989 #. type: verbatim
23990 #: ../fish/guestfish.pod:833
23991 #, no-wrap
23992 msgid ""
23993 " tar-out /etc - | tar tf -\n"
23994 "\n"
23995 msgstr ""
23996
23997 # type: textblock
23998 #. type: textblock
23999 #: ../fish/guestfish.pod:835
24000 msgid ""
24001 "writes the tarball to stdout and then pipes that into the external \"tar\" "
24002 "command (see L</PIPES>)."
24003 msgstr ""
24004
24005 # type: textblock
24006 #. type: textblock
24007 #: ../fish/guestfish.pod:838
24008 msgid ""
24009 "When using C<-> to read from stdin, the input is read up to the end of "
24010 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
24011 "some arbitrary end marker:"
24012 msgstr ""
24013
24014 # type: verbatim
24015 #. type: verbatim
24016 #: ../fish/guestfish.pod:842
24017 #, no-wrap
24018 msgid ""
24019 " upload -<<END /foo\n"
24020 " input line 1\n"
24021 " input line 2\n"
24022 " input line 3\n"
24023 " END\n"
24024 "\n"
24025 msgstr ""
24026
24027 # type: textblock
24028 #. type: textblock
24029 #: ../fish/guestfish.pod:848
24030 msgid ""
24031 "Any string of characters can be used instead of C<END>.  The end marker must "
24032 "appear on a line of its own, without any preceeding or following characters "
24033 "(not even spaces)."
24034 msgstr ""
24035
24036 # type: textblock
24037 #. type: textblock
24038 #: ../fish/guestfish.pod:852
24039 msgid ""
24040 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
24041 "upload local files (so-called \"FileIn\" parameters in the generator)."
24042 msgstr ""
24043
24044 # type: =head1
24045 #. type: =head1
24046 #: ../fish/guestfish.pod:855
24047 msgid "EXIT ON ERROR BEHAVIOUR"
24048 msgstr ""
24049
24050 # type: textblock
24051 #. type: textblock
24052 #: ../fish/guestfish.pod:857
24053 msgid ""
24054 "By default, guestfish will ignore any errors when in interactive mode (ie. "
24055 "taking commands from a human over a tty), and will exit on the first error "
24056 "in non-interactive mode (scripts, commands given on the command line)."
24057 msgstr ""
24058
24059 # type: textblock
24060 #. type: textblock
24061 #: ../fish/guestfish.pod:862
24062 msgid ""
24063 "If you prefix a command with a I<-> character, then that command will not "
24064 "cause guestfish to exit, even if that (one) command returns an error."
24065 msgstr ""
24066
24067 # type: =head1
24068 #. type: =head1
24069 #: ../fish/guestfish.pod:866
24070 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
24071 msgstr ""
24072
24073 # type: textblock
24074 #. type: textblock
24075 #: ../fish/guestfish.pod:868
24076 msgid ""
24077 "Guestfish can be remote-controlled over a socket.  This is useful "
24078 "particularly in shell scripts where you want to make several different "
24079 "changes to a filesystem, but you don't want the overhead of starting up a "
24080 "guestfish process each time."
24081 msgstr ""
24082
24083 # type: textblock
24084 #. type: textblock
24085 #: ../fish/guestfish.pod:873
24086 msgid "Start a guestfish server process using:"
24087 msgstr ""
24088
24089 # type: verbatim
24090 #. type: verbatim
24091 #: ../fish/guestfish.pod:875
24092 #, no-wrap
24093 msgid ""
24094 " eval \"`guestfish --listen`\"\n"
24095 "\n"
24096 msgstr ""
24097
24098 # type: textblock
24099 #. type: textblock
24100 #: ../fish/guestfish.pod:877
24101 msgid "and then send it commands by doing:"
24102 msgstr ""
24103
24104 # type: verbatim
24105 #. type: verbatim
24106 #: ../fish/guestfish.pod:879
24107 #, no-wrap
24108 msgid ""
24109 " guestfish --remote cmd [...]\n"
24110 "\n"
24111 msgstr ""
24112
24113 # type: textblock
24114 #. type: textblock
24115 #: ../fish/guestfish.pod:881
24116 msgid "To cause the server to exit, send it the exit command:"
24117 msgstr ""
24118
24119 # type: verbatim
24120 #. type: verbatim
24121 #: ../fish/guestfish.pod:883
24122 #, no-wrap
24123 msgid ""
24124 " guestfish --remote exit\n"
24125 "\n"
24126 msgstr ""
24127
24128 # type: textblock
24129 #. type: textblock
24130 #: ../fish/guestfish.pod:885
24131 msgid ""
24132 "Note that the server will normally exit if there is an error in a command.  "
24133 "You can change this in the usual way.  See section L</EXIT ON ERROR "
24134 "BEHAVIOUR>."
24135 msgstr ""
24136
24137 # type: =head2
24138 #. type: =head2
24139 #: ../fish/guestfish.pod:889
24140 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
24141 msgstr ""
24142
24143 # type: textblock
24144 #. type: textblock
24145 #: ../fish/guestfish.pod:891
24146 msgid ""
24147 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
24148 "is how the I<--remote> option knows where to send the commands.  You can "
24149 "have several guestfish listener processes running using:"
24150 msgstr ""
24151
24152 # type: verbatim
24153 #. type: verbatim
24154 #: ../fish/guestfish.pod:895
24155 #, no-wrap
24156 msgid ""
24157 " eval \"`guestfish --listen`\"\n"
24158 " pid1=$GUESTFISH_PID\n"
24159 " eval \"`guestfish --listen`\"\n"
24160 " pid2=$GUESTFISH_PID\n"
24161 " ...\n"
24162 " guestfish --remote=$pid1 cmd\n"
24163 " guestfish --remote=$pid2 cmd\n"
24164 "\n"
24165 msgstr ""
24166
24167 # type: =head2
24168 #. type: =head2
24169 #: ../fish/guestfish.pod:903
24170 msgid "REMOTE CONTROL AND CSH"
24171 msgstr ""
24172
24173 # type: textblock
24174 #. type: textblock
24175 #: ../fish/guestfish.pod:905
24176 msgid ""
24177 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
24178 "option:"
24179 msgstr ""
24180
24181 # type: verbatim
24182 #. type: verbatim
24183 #: ../fish/guestfish.pod:908
24184 #, no-wrap
24185 msgid ""
24186 " eval \"`guestfish --listen --csh`\"\n"
24187 "\n"
24188 msgstr ""
24189
24190 # type: =head2
24191 #. type: =head2
24192 #: ../fish/guestfish.pod:910
24193 msgid "REMOTE CONTROL DETAILS"
24194 msgstr ""
24195
24196 # type: textblock
24197 #. type: textblock
24198 #: ../fish/guestfish.pod:912
24199 msgid ""
24200 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
24201 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
24202 "and C<$PID> is the process ID of the server."
24203 msgstr ""
24204
24205 # type: textblock
24206 #. type: textblock
24207 #: ../fish/guestfish.pod:916
24208 msgid "Guestfish client and server versions must match exactly."
24209 msgstr ""
24210
24211 # type: =head1
24212 #. type: =head1
24213 #: ../fish/guestfish.pod:918
24214 msgid "PREPARED DISK IMAGES"
24215 msgstr ""
24216
24217 # type: textblock
24218 #. type: textblock
24219 #: ../fish/guestfish.pod:920
24220 msgid ""
24221 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
24222 "preformatted disk images that guestfish can make for you to save typing.  "
24223 "This is particularly useful for testing purposes.  This option is used "
24224 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
24225 "can be mixed with I<-a>)."
24226 msgstr ""
24227
24228 # type: textblock
24229 #. type: textblock
24230 #: ../fish/guestfish.pod:926
24231 msgid ""
24232 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
24233 "the second and so on.  Existing files in the current directory are "
24234 "I<overwritten>."
24235 msgstr ""
24236
24237 # type: textblock
24238 #. type: textblock
24239 #: ../fish/guestfish.pod:930
24240 msgid ""
24241 "The type briefly describes how the disk should be sized, partitioned, how "
24242 "filesystem(s) should be created, and how content should be added.  "
24243 "Optionally the type can be followed by extra parameters, separated by C<:> "
24244 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
24245 "allocated disk, containing a single partition, with the partition formatted "
24246 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
24247 "disk instead."
24248 msgstr ""
24249
24250 # type: textblock
24251 #. type: textblock
24252 #: ../fish/guestfish.pod:938
24253 msgid "To list the available types and any extra parameters they take, run:"
24254 msgstr ""
24255
24256 # type: textblock
24257 #. type: textblock
24258 #: ../fish/guestfish.pod:942
24259 msgid ""
24260 "Note that the prepared filesystem is not mounted.  You would usually have to "
24261 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
24262 msgstr ""
24263
24264 # type: textblock
24265 #. type: textblock
24266 #: ../fish/guestfish.pod:946
24267 msgid ""
24268 "If any I<-N> or I<--new> options are given, the guest is automatically "
24269 "launched."
24270 msgstr ""
24271
24272 # type: textblock
24273 #. type: textblock
24274 #: ../fish/guestfish.pod:951
24275 msgid "Create a 100MB disk with an ext4-formatted partition:"
24276 msgstr ""
24277
24278 # type: verbatim
24279 #. type: verbatim
24280 #: ../fish/guestfish.pod:953
24281 #, no-wrap
24282 msgid ""
24283 " guestfish -N fs:ext4\n"
24284 "\n"
24285 msgstr ""
24286
24287 # type: textblock
24288 #. type: textblock
24289 #: ../fish/guestfish.pod:955
24290 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
24291 msgstr ""
24292
24293 # type: verbatim
24294 #. type: verbatim
24295 #: ../fish/guestfish.pod:957
24296 #, no-wrap
24297 msgid ""
24298 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
24299 "\n"
24300 msgstr ""
24301
24302 # type: textblock
24303 #. type: textblock
24304 #: ../fish/guestfish.pod:959
24305 msgid "Create a blank 200MB disk:"
24306 msgstr ""
24307
24308 # type: verbatim
24309 #. type: verbatim
24310 #: ../fish/guestfish.pod:961
24311 #, no-wrap
24312 msgid ""
24313 " guestfish -N disk:200M\n"
24314 "\n"
24315 msgstr ""
24316
24317 # type: =head1
24318 #. type: =head1
24319 #: ../fish/guestfish.pod:963
24320 msgid "PROGRESS BARS"
24321 msgstr ""
24322
24323 # type: textblock
24324 #. type: textblock
24325 #: ../fish/guestfish.pod:965
24326 msgid ""
24327 "Some (not all) long-running commands send progress notification messages as "
24328 "they are running.  Guestfish turns these messages into progress bars."
24329 msgstr ""
24330
24331 # type: textblock
24332 #. type: textblock
24333 #: ../fish/guestfish.pod:969
24334 msgid ""
24335 "When a command that supports progress bars takes longer than two seconds to "
24336 "run, and if progress bars are enabled, then you will see one appearing below "
24337 "the command:"
24338 msgstr ""
24339
24340 # type: verbatim
24341 #. type: verbatim
24342 #: ../fish/guestfish.pod:973
24343 #, no-wrap
24344 msgid ""
24345 " ><fs> copy-size /large-file /another-file 2048M\n"
24346 " / 10% [#####-----------------------------------------] 00:30\n"
24347 "\n"
24348 msgstr ""
24349
24350 # type: textblock
24351 #. type: textblock
24352 #: ../fish/guestfish.pod:976
24353 msgid ""
24354 "The spinner on the left hand side moves round once for every progress "
24355 "notification received from the backend.  This is a (reasonably) golden "
24356 "assurance that the command is \"doing something\" even if the progress bar "
24357 "is not moving, because the command is able to send the progress "
24358 "notifications.  When the bar reaches 100% and the command finishes, the "
24359 "spinner disappears."
24360 msgstr ""
24361
24362 # type: textblock
24363 #. type: textblock
24364 #: ../fish/guestfish.pod:983
24365 msgid ""
24366 "Progress bars are enabled by default when guestfish is used interactively.  "
24367 "You can enable them even for non-interactive modes using I<--progress-bars>, "
24368 "and you can disable them completely using I<--no-progress-bars>."
24369 msgstr ""
24370
24371 # type: =head1
24372 #. type: =head1
24373 #: ../fish/guestfish.pod:988
24374 msgid "GUESTFISH COMMANDS"
24375 msgstr ""
24376
24377 # type: textblock
24378 #. type: textblock
24379 #: ../fish/guestfish.pod:990
24380 msgid ""
24381 "The commands in this section are guestfish convenience commands, in other "
24382 "words, they are not part of the L<guestfs(3)> API."
24383 msgstr ""
24384
24385 # type: =head2
24386 #. type: =head2
24387 #: ../fish/guestfish.pod:993
24388 msgid "help"
24389 msgstr ""
24390
24391 # type: verbatim
24392 #. type: verbatim
24393 #: ../fish/guestfish.pod:995
24394 #, no-wrap
24395 msgid ""
24396 " help\n"
24397 " help cmd\n"
24398 "\n"
24399 msgstr ""
24400
24401 # type: textblock
24402 #. type: textblock
24403 #: ../fish/guestfish.pod:998
24404 msgid "Without any parameter, this provides general help."
24405 msgstr ""
24406
24407 # type: textblock
24408 #. type: textblock
24409 #: ../fish/guestfish.pod:1000
24410 msgid "With a C<cmd> parameter, this displays detailed help for that command."
24411 msgstr ""
24412
24413 # type: =head2
24414 #. type: =head2
24415 #: ../fish/guestfish.pod:1002
24416 msgid "quit | exit"
24417 msgstr ""
24418
24419 # type: textblock
24420 #. type: textblock
24421 #: ../fish/guestfish.pod:1004
24422 msgid "This exits guestfish.  You can also use C<^D> key."
24423 msgstr ""
24424
24425 # type: textblock
24426 #. type: textblock
24427 #: ../fish/guestfish.pod:1006
24428 msgid "@FISH_COMMANDS@"
24429 msgstr ""
24430
24431 # type: =head1
24432 #. type: =head1
24433 #: ../fish/guestfish.pod:1008
24434 msgid "COMMANDS"
24435 msgstr ""
24436
24437 # type: =head1
24438 #. type: =head1
24439 #: ../fish/guestfish.pod:1012 ../test-tool/libguestfs-test-tool.pod:77
24440 msgid "EXIT CODE"
24441 msgstr ""
24442
24443 # type: textblock
24444 #. type: textblock
24445 #: ../fish/guestfish.pod:1014
24446 msgid ""
24447 "guestfish returns 0 if the commands completed without error, or 1 if there "
24448 "was an error."
24449 msgstr ""
24450
24451 # type: =item
24452 #. type: =item
24453 #: ../fish/guestfish.pod:1021
24454 msgid "EDITOR"
24455 msgstr ""
24456
24457 # type: textblock
24458 #. type: textblock
24459 #: ../fish/guestfish.pod:1023
24460 msgid ""
24461 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
24462 "C<vi>."
24463 msgstr ""
24464
24465 #. type: =item
24466 #: ../fish/guestfish.pod:1026
24467 msgid "GUESTFISH_DISPLAY_IMAGE"
24468 msgstr ""
24469
24470 #. type: textblock
24471 #: ../fish/guestfish.pod:1028
24472 msgid ""
24473 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
24474 "If not set, it uses L<display(1)>."
24475 msgstr ""
24476
24477 # type: =item
24478 #. type: =item
24479 #: ../fish/guestfish.pod:1031
24480 msgid "GUESTFISH_PID"
24481 msgstr ""
24482
24483 # type: textblock
24484 #. type: textblock
24485 #: ../fish/guestfish.pod:1033
24486 msgid ""
24487 "Used with the I<--remote> option to specify the remote guestfish process to "
24488 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
24489 msgstr ""
24490
24491 # type: =item
24492 #. type: =item
24493 #: ../fish/guestfish.pod:1037
24494 msgid "HEXEDITOR"
24495 msgstr ""
24496
24497 # type: textblock
24498 #. type: textblock
24499 #: ../fish/guestfish.pod:1039
24500 msgid ""
24501 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
24502 "not specified, the external L<hexedit(1)> program is used."
24503 msgstr ""
24504
24505 # type: =item
24506 #. type: =item
24507 #: ../fish/guestfish.pod:1043
24508 msgid "HOME"
24509 msgstr ""
24510
24511 # type: textblock
24512 #. type: textblock
24513 #: ../fish/guestfish.pod:1045
24514 msgid ""
24515 "If compiled with GNU readline support, various files in the home directory "
24516 "can be used.  See L</FILES>."
24517 msgstr ""
24518
24519 # type: textblock
24520 #. type: textblock
24521 #: ../fish/guestfish.pod:1054
24522 msgid ""
24523 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
24524 "effect as using the B<-v> option."
24525 msgstr ""
24526
24527 # type: textblock
24528 #. type: textblock
24529 #: ../fish/guestfish.pod:1066
24530 msgid ""
24531 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
24532 "the discussion of paths in L<guestfs(3)>."
24533 msgstr ""
24534
24535 # type: textblock
24536 #. type: textblock
24537 #: ../fish/guestfish.pod:1077
24538 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
24539 msgstr ""
24540
24541 # type: =item
24542 #. type: =item
24543 #: ../fish/guestfish.pod:1079
24544 msgid "PAGER"
24545 msgstr ""
24546
24547 # type: textblock
24548 #. type: textblock
24549 #: ../fish/guestfish.pod:1081
24550 msgid ""
24551 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
24552 "C<more>."
24553 msgstr ""
24554
24555 # type: =head1
24556 #. type: =head1
24557 #: ../fish/guestfish.pod:1097 ../fuse/guestmount.pod:264
24558 msgid "FILES"
24559 msgstr ""
24560
24561 #. type: =item
24562 #: ../fish/guestfish.pod:1101 ../fuse/guestmount.pod:268
24563 msgid "$HOME/.libguestfs-tools.rc"
24564 msgstr ""
24565
24566 #. type: =item
24567 #: ../fish/guestfish.pod:1103 ../fuse/guestmount.pod:270
24568 msgid "/etc/libguestfs-tools.conf"
24569 msgstr ""
24570
24571 #. type: textblock
24572 #: ../fish/guestfish.pod:1105 ../fuse/guestmount.pod:272
24573 msgid ""
24574 "This configuration file controls the default read-only or read-write mode "
24575 "(I<--ro> or I<--rw>)."
24576 msgstr ""
24577
24578 #. type: textblock
24579 #: ../fish/guestfish.pod:1108
24580 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
24581 msgstr ""
24582
24583 # type: =item
24584 #. type: =item
24585 #: ../fish/guestfish.pod:1110
24586 msgid "$HOME/.guestfish"
24587 msgstr ""
24588
24589 # type: textblock
24590 #. type: textblock
24591 #: ../fish/guestfish.pod:1112
24592 msgid ""
24593 "If compiled with GNU readline support, then the command history is saved in "
24594 "this file."
24595 msgstr ""
24596
24597 # type: =item
24598 #. type: =item
24599 #: ../fish/guestfish.pod:1115
24600 msgid "$HOME/.inputrc"
24601 msgstr ""
24602
24603 # type: =item
24604 #. type: =item
24605 #: ../fish/guestfish.pod:1117
24606 msgid "/etc/inputrc"
24607 msgstr ""
24608
24609 # type: textblock
24610 #. type: textblock
24611 #: ../fish/guestfish.pod:1119
24612 msgid ""
24613 "If compiled with GNU readline support, then these files can be used to "
24614 "configure readline.  For further information, please see L<readline(3)/"
24615 "INITIALIZATION FILE>."
24616 msgstr ""
24617
24618 # type: textblock
24619 #. type: textblock
24620 #: ../fish/guestfish.pod:1123
24621 msgid "To write rules which only apply to guestfish, use:"
24622 msgstr ""
24623
24624 # type: verbatim
24625 #. type: verbatim
24626 #: ../fish/guestfish.pod:1125
24627 #, no-wrap
24628 msgid ""
24629 " $if guestfish\n"
24630 " ...\n"
24631 " $endif\n"
24632 "\n"
24633 msgstr ""
24634
24635 # type: textblock
24636 #. type: textblock
24637 #: ../fish/guestfish.pod:1129
24638 msgid ""
24639 "Variables that you can set in inputrc that change the behaviour of guestfish "
24640 "in useful ways include:"
24641 msgstr ""
24642
24643 # type: =item
24644 #. type: =item
24645 #: ../fish/guestfish.pod:1134
24646 msgid "completion-ignore-case (default: on)"
24647 msgstr ""
24648
24649 # type: textblock
24650 #. type: textblock
24651 #: ../fish/guestfish.pod:1136
24652 msgid ""
24653 "By default, guestfish will ignore case when tab-completing paths on the "
24654 "disk.  Use:"
24655 msgstr ""
24656
24657 # type: verbatim
24658 #. type: verbatim
24659 #: ../fish/guestfish.pod:1139
24660 #, no-wrap
24661 msgid ""
24662 " set completion-ignore-case off\n"
24663 "\n"
24664 msgstr ""
24665
24666 # type: textblock
24667 #. type: textblock
24668 #: ../fish/guestfish.pod:1141
24669 msgid "to make guestfish case sensitive."
24670 msgstr ""
24671
24672 # type: =item
24673 #. type: =item
24674 #: ../fish/guestfish.pod:1145
24675 msgid "test1.img"
24676 msgstr ""
24677
24678 # type: =item
24679 #. type: =item
24680 #: ../fish/guestfish.pod:1147
24681 msgid "test2.img (etc)"
24682 msgstr ""
24683
24684 #. type: textblock
24685 #: ../fish/guestfish.pod:1149
24686 msgid ""
24687 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
24688 "will be created in the file C<test1.img> in the current directory.  The "
24689 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
24690 "the same name will be overwritten."
24691 msgstr ""
24692
24693 #. type: textblock
24694 #: ../fish/guestfish.pod:1158
24695 msgid ""
24696 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
24697 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
24698 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
24699 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
24700 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
24701 ">, L<display(1)>, L<hexedit(1)>."
24702 msgstr ""
24703
24704 # type: textblock
24705 #. type: textblock
24706 #: ../fish/guestfish.pod:1189 ../test-tool/libguestfs-test-tool.pod:102
24707 #: ../fuse/guestmount.pod:299 ../tools/virt-win-reg.pl:778
24708 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:309
24709 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:277
24710 msgid ""
24711 "This program is free software; you can redistribute it and/or modify it "
24712 "under the terms of the GNU General Public License as published by the Free "
24713 "Software Foundation; either version 2 of the License, or (at your option) "
24714 "any later version."
24715 msgstr ""
24716
24717 # type: textblock
24718 #. type: textblock
24719 #: ../fish/guestfish.pod:1194 ../test-tool/libguestfs-test-tool.pod:107
24720 #: ../fuse/guestmount.pod:304 ../tools/virt-win-reg.pl:783
24721 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:314
24722 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:282
24723 msgid ""
24724 "This program is distributed in the hope that it will be useful, but WITHOUT "
24725 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
24726 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
24727 "more details."
24728 msgstr ""
24729
24730 # type: textblock
24731 #. type: textblock
24732 #: ../fish/guestfish.pod:1199 ../test-tool/libguestfs-test-tool.pod:112
24733 #: ../fuse/guestmount.pod:309 ../tools/virt-win-reg.pl:788
24734 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:319
24735 #: ../tools/virt-make-fs.pl:582 ../tools/virt-list-partitions.pl:287
24736 msgid ""
24737 "You should have received a copy of the GNU General Public License along with "
24738 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
24739 "Ave, Cambridge, MA 02139, USA."
24740 msgstr ""
24741
24742 # type: =head2
24743 #. type: =head2
24744 #: ../fish/guestfish-actions.pod:1
24745 msgid "add-cdrom"
24746 msgstr ""
24747
24748 # type: verbatim
24749 #. type: verbatim
24750 #: ../fish/guestfish-actions.pod:3
24751 #, no-wrap
24752 msgid ""
24753 " add-cdrom filename\n"
24754 "\n"
24755 msgstr ""
24756
24757 # type: textblock
24758 #. type: textblock
24759 #: ../fish/guestfish-actions.pod:15
24760 msgid ""
24761 "This call checks for the existence of C<filename>.  This stops you from "
24762 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24763 "and C<http:> URLs.  To specify those, use the general L</config> call "
24764 "instead."
24765 msgstr ""
24766
24767 # type: textblock
24768 #. type: textblock
24769 #: ../fish/guestfish-actions.pod:22
24770 msgid ""
24771 "If you just want to add an ISO file (often you use this as an efficient way "
24772 "to transfer large files into the guest), then you should probably use L</add-"
24773 "drive-ro> instead."
24774 msgstr ""
24775
24776 # type: =head2
24777 #. type: =head2
24778 #: ../fish/guestfish-actions.pod:35
24779 msgid "add-domain"
24780 msgstr ""
24781
24782 # type: =head2
24783 #. type: =head2
24784 #: ../fish/guestfish-actions.pod:37
24785 msgid "domain"
24786 msgstr ""
24787
24788 #. type: verbatim
24789 #: ../fish/guestfish-actions.pod:39
24790 #, no-wrap
24791 msgid ""
24792 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
24793 "\n"
24794 msgstr ""
24795
24796 # type: textblock
24797 #. type: textblock
24798 #: ../fish/guestfish-actions.pod:41
24799 msgid ""
24800 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
24801 "It works by connecting to libvirt, requesting the domain and domain XML from "
24802 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
24803 msgstr ""
24804
24805 # type: textblock
24806 #. type: textblock
24807 #: ../fish/guestfish-actions.pod:76
24808 msgid ""
24809 "The other optional parameters are passed directly through to L</add-drive-"
24810 "opts>."
24811 msgstr ""
24812
24813 # type: textblock
24814 #. type: textblock
24815 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
24816 #: ../fish/guestfish-actions.pod:1937 ../fish/guestfish-actions.pod:3077
24817 #: ../fish/guestfish-actions.pod:3250
24818 msgid ""
24819 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
24820 msgstr ""
24821
24822 # type: =head2
24823 #. type: =head2
24824 #: ../fish/guestfish-actions.pod:81
24825 msgid "add-drive"
24826 msgstr ""
24827
24828 # type: verbatim
24829 #. type: verbatim
24830 #: ../fish/guestfish-actions.pod:83
24831 #, no-wrap
24832 msgid ""
24833 " add-drive filename\n"
24834 "\n"
24835 msgstr ""
24836
24837 # type: textblock
24838 #. type: textblock
24839 #: ../fish/guestfish-actions.pod:85
24840 msgid ""
24841 "This function is the equivalent of calling L</add-drive-opts> with no "
24842 "optional parameters, so the disk is added writable, with the format being "
24843 "detected automatically."
24844 msgstr ""
24845
24846 # type: textblock
24847 #. type: textblock
24848 #: ../fish/guestfish-actions.pod:89
24849 msgid ""
24850 "Automatic detection of the format opens you up to a potential security hole "
24851 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
24852 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
24853 "you should think about replacing calls to this function with calls to L</add-"
24854 "drive-opts>, and specifying the format."
24855 msgstr ""
24856
24857 # type: =head2
24858 #. type: =head2
24859 #: ../fish/guestfish-actions.pod:96
24860 msgid "add-drive-opts"
24861 msgstr ""
24862
24863 # type: =head2
24864 #. type: =head2
24865 #: ../fish/guestfish-actions.pod:98
24866 msgid "add"
24867 msgstr ""
24868
24869 # type: verbatim
24870 #. type: verbatim
24871 #: ../fish/guestfish-actions.pod:100
24872 #, no-wrap
24873 msgid ""
24874 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
24875 "\n"
24876 msgstr ""
24877
24878 # type: textblock
24879 #. type: textblock
24880 #: ../fish/guestfish-actions.pod:127
24881 msgid ""
24882 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
24883 "add-drive-ro>) then the format is automatically detected.  Possible formats "
24884 "include C<raw> and C<qcow2>."
24885 msgstr ""
24886
24887 # type: textblock
24888 #. type: textblock
24889 #: ../fish/guestfish-actions.pod:138
24890 msgid ""
24891 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
24892 "add-drive-with-if> call (q.v.)"
24893 msgstr ""
24894
24895 # type: =head2
24896 #. type: =head2
24897 #: ../fish/guestfish-actions.pod:145
24898 msgid "add-drive-ro"
24899 msgstr ""
24900
24901 # type: =head2
24902 #. type: =head2
24903 #: ../fish/guestfish-actions.pod:147
24904 msgid "add-ro"
24905 msgstr ""
24906
24907 # type: verbatim
24908 #. type: verbatim
24909 #: ../fish/guestfish-actions.pod:149
24910 #, no-wrap
24911 msgid ""
24912 " add-drive-ro filename\n"
24913 "\n"
24914 msgstr ""
24915
24916 # type: textblock
24917 #. type: textblock
24918 #: ../fish/guestfish-actions.pod:151
24919 msgid ""
24920 "This function is the equivalent of calling L</add-drive-opts> with the "
24921 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
24922 "is added read-only, with the format being detected automatically."
24923 msgstr ""
24924
24925 # type: =head2
24926 #. type: =head2
24927 #: ../fish/guestfish-actions.pod:156
24928 msgid "add-drive-ro-with-if"
24929 msgstr ""
24930
24931 # type: verbatim
24932 #. type: verbatim
24933 #: ../fish/guestfish-actions.pod:158
24934 #, no-wrap
24935 msgid ""
24936 " add-drive-ro-with-if filename iface\n"
24937 "\n"
24938 msgstr ""
24939
24940 # type: textblock
24941 #. type: textblock
24942 #: ../fish/guestfish-actions.pod:160
24943 msgid ""
24944 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
24945 "interface emulation to use at run time."
24946 msgstr ""
24947
24948 # type: =head2
24949 #. type: =head2
24950 #: ../fish/guestfish-actions.pod:170
24951 msgid "add-drive-with-if"
24952 msgstr ""
24953
24954 # type: verbatim
24955 #. type: verbatim
24956 #: ../fish/guestfish-actions.pod:172
24957 #, no-wrap
24958 msgid ""
24959 " add-drive-with-if filename iface\n"
24960 "\n"
24961 msgstr ""
24962
24963 # type: textblock
24964 #. type: textblock
24965 #: ../fish/guestfish-actions.pod:174
24966 msgid ""
24967 "This is the same as L</add-drive> but it allows you to specify the QEMU "
24968 "interface emulation to use at run time."
24969 msgstr ""
24970
24971 # type: =head2
24972 #. type: =head2
24973 #: ../fish/guestfish-actions.pod:184
24974 msgid "aug-clear"
24975 msgstr ""
24976
24977 # type: verbatim
24978 #. type: verbatim
24979 #: ../fish/guestfish-actions.pod:186
24980 #, no-wrap
24981 msgid ""
24982 " aug-clear augpath\n"
24983 "\n"
24984 msgstr ""
24985
24986 # type: =head2
24987 #. type: =head2
24988 #: ../fish/guestfish-actions.pod:191
24989 msgid "aug-close"
24990 msgstr ""
24991
24992 # type: verbatim
24993 #. type: verbatim
24994 #: ../fish/guestfish-actions.pod:193
24995 #, no-wrap
24996 msgid ""
24997 " aug-close\n"
24998 "\n"
24999 msgstr ""
25000
25001 # type: textblock
25002 #. type: textblock
25003 #: ../fish/guestfish-actions.pod:195
25004 msgid ""
25005 "Close the current Augeas handle and free up any resources used by it.  After "
25006 "calling this, you have to call L</aug-init> again before you can use any "
25007 "other Augeas functions."
25008 msgstr ""
25009
25010 # type: =head2
25011 #. type: =head2
25012 #: ../fish/guestfish-actions.pod:200
25013 msgid "aug-defnode"
25014 msgstr ""
25015
25016 # type: verbatim
25017 #. type: verbatim
25018 #: ../fish/guestfish-actions.pod:202
25019 #, no-wrap
25020 msgid ""
25021 " aug-defnode name expr val\n"
25022 "\n"
25023 msgstr ""
25024
25025 # type: textblock
25026 #. type: textblock
25027 #: ../fish/guestfish-actions.pod:207
25028 msgid ""
25029 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25030 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
25031 "containing that single node."
25032 msgstr ""
25033
25034 # type: =head2
25035 #. type: =head2
25036 #: ../fish/guestfish-actions.pod:215
25037 msgid "aug-defvar"
25038 msgstr ""
25039
25040 # type: verbatim
25041 #. type: verbatim
25042 #: ../fish/guestfish-actions.pod:217
25043 #, no-wrap
25044 msgid ""
25045 " aug-defvar name expr\n"
25046 "\n"
25047 msgstr ""
25048
25049 # type: =head2
25050 #. type: =head2
25051 #: ../fish/guestfish-actions.pod:226
25052 msgid "aug-get"
25053 msgstr ""
25054
25055 # type: verbatim
25056 #. type: verbatim
25057 #: ../fish/guestfish-actions.pod:228
25058 #, no-wrap
25059 msgid ""
25060 " aug-get augpath\n"
25061 "\n"
25062 msgstr ""
25063
25064 # type: =head2
25065 #. type: =head2
25066 #: ../fish/guestfish-actions.pod:233
25067 msgid "aug-init"
25068 msgstr ""
25069
25070 # type: verbatim
25071 #. type: verbatim
25072 #: ../fish/guestfish-actions.pod:235
25073 #, no-wrap
25074 msgid ""
25075 " aug-init root flags\n"
25076 "\n"
25077 msgstr ""
25078
25079 # type: textblock
25080 #. type: textblock
25081 #: ../fish/guestfish-actions.pod:241
25082 msgid "You must call this before using any other L</aug-*> commands."
25083 msgstr ""
25084
25085 # type: textblock
25086 #. type: textblock
25087 #: ../fish/guestfish-actions.pod:276
25088 msgid "Do not load the tree in L</aug-init>."
25089 msgstr ""
25090
25091 # type: textblock
25092 #. type: textblock
25093 #: ../fish/guestfish-actions.pod:280
25094 msgid "To close the handle, you can call L</aug-close>."
25095 msgstr ""
25096
25097 # type: =head2
25098 #. type: =head2
25099 #: ../fish/guestfish-actions.pod:284
25100 msgid "aug-insert"
25101 msgstr ""
25102
25103 # type: verbatim
25104 #. type: verbatim
25105 #: ../fish/guestfish-actions.pod:286
25106 #, no-wrap
25107 msgid ""
25108 " aug-insert augpath label true|false\n"
25109 "\n"
25110 msgstr ""
25111
25112 # type: =head2
25113 #. type: =head2
25114 #: ../fish/guestfish-actions.pod:296
25115 msgid "aug-load"
25116 msgstr ""
25117
25118 # type: verbatim
25119 #. type: verbatim
25120 #: ../fish/guestfish-actions.pod:298
25121 #, no-wrap
25122 msgid ""
25123 " aug-load\n"
25124 "\n"
25125 msgstr ""
25126
25127 # type: =head2
25128 #. type: =head2
25129 #: ../fish/guestfish-actions.pod:305
25130 msgid "aug-ls"
25131 msgstr ""
25132
25133 # type: verbatim
25134 #. type: verbatim
25135 #: ../fish/guestfish-actions.pod:307
25136 #, no-wrap
25137 msgid ""
25138 " aug-ls augpath\n"
25139 "\n"
25140 msgstr ""
25141
25142 # type: textblock
25143 #. type: textblock
25144 #: ../fish/guestfish-actions.pod:309
25145 msgid ""
25146 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
25147 "resulting nodes into alphabetical order."
25148 msgstr ""
25149
25150 # type: =head2
25151 #. type: =head2
25152 #: ../fish/guestfish-actions.pod:312
25153 msgid "aug-match"
25154 msgstr ""
25155
25156 # type: verbatim
25157 #. type: verbatim
25158 #: ../fish/guestfish-actions.pod:314
25159 #, no-wrap
25160 msgid ""
25161 " aug-match augpath\n"
25162 "\n"
25163 msgstr ""
25164
25165 # type: =head2
25166 #. type: =head2
25167 #: ../fish/guestfish-actions.pod:320
25168 msgid "aug-mv"
25169 msgstr ""
25170
25171 # type: verbatim
25172 #. type: verbatim
25173 #: ../fish/guestfish-actions.pod:322
25174 #, no-wrap
25175 msgid ""
25176 " aug-mv src dest\n"
25177 "\n"
25178 msgstr ""
25179
25180 # type: =head2
25181 #. type: =head2
25182 #: ../fish/guestfish-actions.pod:327
25183 msgid "aug-rm"
25184 msgstr ""
25185
25186 # type: verbatim
25187 #. type: verbatim
25188 #: ../fish/guestfish-actions.pod:329
25189 #, no-wrap
25190 msgid ""
25191 " aug-rm augpath\n"
25192 "\n"
25193 msgstr ""
25194
25195 # type: =head2
25196 #. type: =head2
25197 #: ../fish/guestfish-actions.pod:335
25198 msgid "aug-save"
25199 msgstr ""
25200
25201 # type: verbatim
25202 #. type: verbatim
25203 #: ../fish/guestfish-actions.pod:337
25204 #, no-wrap
25205 msgid ""
25206 " aug-save\n"
25207 "\n"
25208 msgstr ""
25209
25210 # type: textblock
25211 #. type: textblock
25212 #: ../fish/guestfish-actions.pod:341
25213 msgid ""
25214 "The flags which were passed to L</aug-init> affect exactly how files are "
25215 "saved."
25216 msgstr ""
25217
25218 # type: =head2
25219 #. type: =head2
25220 #: ../fish/guestfish-actions.pod:344
25221 msgid "aug-set"
25222 msgstr ""
25223
25224 # type: verbatim
25225 #. type: verbatim
25226 #: ../fish/guestfish-actions.pod:346
25227 #, no-wrap
25228 msgid ""
25229 " aug-set augpath val\n"
25230 "\n"
25231 msgstr ""
25232
25233 # type: textblock
25234 #. type: textblock
25235 #: ../fish/guestfish-actions.pod:350
25236 msgid ""
25237 "In the Augeas API, it is possible to clear a node by setting the value to "
25238 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
25239 "this call.  Instead you must use the L</aug-clear> call."
25240 msgstr ""
25241
25242 # type: =head2
25243 #. type: =head2
25244 #: ../fish/guestfish-actions.pod:355
25245 msgid "available"
25246 msgstr ""
25247
25248 # type: verbatim
25249 #. type: verbatim
25250 #: ../fish/guestfish-actions.pod:357
25251 #, no-wrap
25252 msgid ""
25253 " available 'groups ...'\n"
25254 "\n"
25255 msgstr ""
25256
25257 # type: textblock
25258 #. type: textblock
25259 #: ../fish/guestfish-actions.pod:363
25260 msgid ""
25261 "The libguestfs groups, and the functions that those groups correspond to, "
25262 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25263 "runtime by calling L</available-all-groups>."
25264 msgstr ""
25265
25266 # type: textblock
25267 #. type: textblock
25268 #: ../fish/guestfish-actions.pod:387
25269 msgid "You must call L</launch> before calling this function."
25270 msgstr ""
25271
25272 # type: textblock
25273 #. type: textblock
25274 #: ../fish/guestfish-actions.pod:409
25275 msgid ""
25276 "This call was added in version C<1.0.80>.  In previous versions of "
25277 "libguestfs all you could do would be to speculatively execute a command to "
25278 "find out if the daemon implemented it.  See also L</version>."
25279 msgstr ""
25280
25281 # type: =head2
25282 #. type: =head2
25283 #: ../fish/guestfish-actions.pod:416
25284 msgid "available-all-groups"
25285 msgstr ""
25286
25287 # type: verbatim
25288 #. type: verbatim
25289 #: ../fish/guestfish-actions.pod:418
25290 #, no-wrap
25291 msgid ""
25292 " available-all-groups\n"
25293 "\n"
25294 msgstr ""
25295
25296 # type: textblock
25297 #. type: textblock
25298 #: ../fish/guestfish-actions.pod:420
25299 msgid ""
25300 "This command returns a list of all optional groups that this daemon knows "
25301 "about.  Note this returns both supported and unsupported groups.  To find "
25302 "out which ones the daemon can actually support you have to call L</"
25303 "available> on each member of the returned list."
25304 msgstr ""
25305
25306 # type: textblock
25307 #. type: textblock
25308 #: ../fish/guestfish-actions.pod:426
25309 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
25310 msgstr ""
25311
25312 # type: =head2
25313 #. type: =head2
25314 #: ../fish/guestfish-actions.pod:428
25315 msgid "base64-in"
25316 msgstr ""
25317
25318 # type: verbatim
25319 #. type: verbatim
25320 #: ../fish/guestfish-actions.pod:430
25321 #, no-wrap
25322 msgid ""
25323 " base64-in (base64file|-) filename\n"
25324 "\n"
25325 msgstr ""
25326
25327 # type: textblock
25328 #. type: textblock
25329 #: ../fish/guestfish-actions.pod:435 ../fish/guestfish-actions.pod:444
25330 #: ../fish/guestfish-actions.pod:668 ../fish/guestfish-actions.pod:837
25331 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:1230
25332 #: ../fish/guestfish-actions.pod:4523 ../fish/guestfish-actions.pod:4535
25333 #: ../fish/guestfish-actions.pod:4546 ../fish/guestfish-actions.pod:4557
25334 #: ../fish/guestfish-actions.pod:4609 ../fish/guestfish-actions.pod:4618
25335 #: ../fish/guestfish-actions.pod:4672 ../fish/guestfish-actions.pod:4695
25336 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
25337 msgstr ""
25338
25339 # type: =head2
25340 #. type: =head2
25341 #: ../fish/guestfish-actions.pod:437
25342 msgid "base64-out"
25343 msgstr ""
25344
25345 # type: verbatim
25346 #. type: verbatim
25347 #: ../fish/guestfish-actions.pod:439
25348 #, no-wrap
25349 msgid ""
25350 " base64-out filename (base64file|-)\n"
25351 "\n"
25352 msgstr ""
25353
25354 # type: =head2
25355 #. type: =head2
25356 #: ../fish/guestfish-actions.pod:446
25357 msgid "blockdev-flushbufs"
25358 msgstr ""
25359
25360 # type: verbatim
25361 #. type: verbatim
25362 #: ../fish/guestfish-actions.pod:448
25363 #, no-wrap
25364 msgid ""
25365 " blockdev-flushbufs device\n"
25366 "\n"
25367 msgstr ""
25368
25369 # type: =head2
25370 #. type: =head2
25371 #: ../fish/guestfish-actions.pod:455
25372 msgid "blockdev-getbsz"
25373 msgstr ""
25374
25375 # type: verbatim
25376 #. type: verbatim
25377 #: ../fish/guestfish-actions.pod:457
25378 #, no-wrap
25379 msgid ""
25380 " blockdev-getbsz device\n"
25381 "\n"
25382 msgstr ""
25383
25384 # type: =head2
25385 #. type: =head2
25386 #: ../fish/guestfish-actions.pod:466
25387 msgid "blockdev-getro"
25388 msgstr ""
25389
25390 # type: verbatim
25391 #. type: verbatim
25392 #: ../fish/guestfish-actions.pod:468
25393 #, no-wrap
25394 msgid ""
25395 " blockdev-getro device\n"
25396 "\n"
25397 msgstr ""
25398
25399 # type: =head2
25400 #. type: =head2
25401 #: ../fish/guestfish-actions.pod:475
25402 msgid "blockdev-getsize64"
25403 msgstr ""
25404
25405 # type: verbatim
25406 #. type: verbatim
25407 #: ../fish/guestfish-actions.pod:477
25408 #, no-wrap
25409 msgid ""
25410 " blockdev-getsize64 device\n"
25411 "\n"
25412 msgstr ""
25413
25414 # type: textblock
25415 #. type: textblock
25416 #: ../fish/guestfish-actions.pod:481
25417 msgid "See also L</blockdev-getsz>."
25418 msgstr ""
25419
25420 # type: =head2
25421 #. type: =head2
25422 #: ../fish/guestfish-actions.pod:485
25423 msgid "blockdev-getss"
25424 msgstr ""
25425
25426 # type: verbatim
25427 #. type: verbatim
25428 #: ../fish/guestfish-actions.pod:487
25429 #, no-wrap
25430 msgid ""
25431 " blockdev-getss device\n"
25432 "\n"
25433 msgstr ""
25434
25435 # type: textblock
25436 #. type: textblock
25437 #: ../fish/guestfish-actions.pod:492
25438 msgid ""
25439 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
25440 msgstr ""
25441
25442 # type: =head2
25443 #. type: =head2
25444 #: ../fish/guestfish-actions.pod:497
25445 msgid "blockdev-getsz"
25446 msgstr ""
25447
25448 # type: verbatim
25449 #. type: verbatim
25450 #: ../fish/guestfish-actions.pod:499
25451 #, no-wrap
25452 msgid ""
25453 " blockdev-getsz device\n"
25454 "\n"
25455 msgstr ""
25456
25457 # type: textblock
25458 #. type: textblock
25459 #: ../fish/guestfish-actions.pod:504
25460 msgid ""
25461 "See also L</blockdev-getss> for the real sector size of the device, and L</"
25462 "blockdev-getsize64> for the more useful I<size in bytes>."
25463 msgstr ""
25464
25465 # type: =head2
25466 #. type: =head2
25467 #: ../fish/guestfish-actions.pod:510
25468 msgid "blockdev-rereadpt"
25469 msgstr ""
25470
25471 # type: verbatim
25472 #. type: verbatim
25473 #: ../fish/guestfish-actions.pod:512
25474 #, no-wrap
25475 msgid ""
25476 " blockdev-rereadpt device\n"
25477 "\n"
25478 msgstr ""
25479
25480 # type: =head2
25481 #. type: =head2
25482 #: ../fish/guestfish-actions.pod:518
25483 msgid "blockdev-setbsz"
25484 msgstr ""
25485
25486 # type: verbatim
25487 #. type: verbatim
25488 #: ../fish/guestfish-actions.pod:520
25489 #, no-wrap
25490 msgid ""
25491 " blockdev-setbsz device blocksize\n"
25492 "\n"
25493 msgstr ""
25494
25495 # type: =head2
25496 #. type: =head2
25497 #: ../fish/guestfish-actions.pod:529
25498 msgid "blockdev-setro"
25499 msgstr ""
25500
25501 # type: verbatim
25502 #. type: verbatim
25503 #: ../fish/guestfish-actions.pod:531
25504 #, no-wrap
25505 msgid ""
25506 " blockdev-setro device\n"
25507 "\n"
25508 msgstr ""
25509
25510 # type: =head2
25511 #. type: =head2
25512 #: ../fish/guestfish-actions.pod:537
25513 msgid "blockdev-setrw"
25514 msgstr ""
25515
25516 # type: verbatim
25517 #. type: verbatim
25518 #: ../fish/guestfish-actions.pod:539
25519 #, no-wrap
25520 msgid ""
25521 " blockdev-setrw device\n"
25522 "\n"
25523 msgstr ""
25524
25525 # type: =head2
25526 #. type: =head2
25527 #: ../fish/guestfish-actions.pod:545
25528 msgid "case-sensitive-path"
25529 msgstr ""
25530
25531 # type: verbatim
25532 #. type: verbatim
25533 #: ../fish/guestfish-actions.pod:547
25534 #, no-wrap
25535 msgid ""
25536 " case-sensitive-path path\n"
25537 "\n"
25538 msgstr ""
25539
25540 # type: textblock
25541 #. type: textblock
25542 #: ../fish/guestfish-actions.pod:571
25543 msgid ""
25544 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
25545 "WINDOWS/system32\"> (the exact return value would depend on details of how "
25546 "the directories were originally created under Windows)."
25547 msgstr ""
25548
25549 # type: textblock
25550 #. type: textblock
25551 #: ../fish/guestfish-actions.pod:579
25552 msgid "See also L</realpath>."
25553 msgstr ""
25554
25555 # type: =head2
25556 #. type: =head2
25557 #: ../fish/guestfish-actions.pod:581
25558 msgid "cat"
25559 msgstr ""
25560
25561 # type: verbatim
25562 #. type: verbatim
25563 #: ../fish/guestfish-actions.pod:583
25564 #, no-wrap
25565 msgid ""
25566 " cat path\n"
25567 "\n"
25568 msgstr ""
25569
25570 # type: textblock
25571 #. type: textblock
25572 #: ../fish/guestfish-actions.pod:587
25573 msgid ""
25574 "Note that this function cannot correctly handle binary files (specifically, "
25575 "files containing C<\\0> character which is treated as end of string).  For "
25576 "those you need to use the L</read-file> or L</download> functions which have "
25577 "a more complex interface."
25578 msgstr ""
25579
25580 # type: =head2
25581 #. type: =head2
25582 #: ../fish/guestfish-actions.pod:595
25583 msgid "checksum"
25584 msgstr ""
25585
25586 # type: verbatim
25587 #. type: verbatim
25588 #: ../fish/guestfish-actions.pod:597
25589 #, no-wrap
25590 msgid ""
25591 " checksum csumtype path\n"
25592 "\n"
25593 msgstr ""
25594
25595 # type: textblock
25596 #. type: textblock
25597 #: ../fish/guestfish-actions.pod:640
25598 msgid "To get the checksum for a device, use L</checksum-device>."
25599 msgstr ""
25600
25601 # type: textblock
25602 #. type: textblock
25603 #: ../fish/guestfish-actions.pod:642
25604 msgid "To get the checksums for many files, use L</checksums-out>."
25605 msgstr ""
25606
25607 # type: =head2
25608 #. type: =head2
25609 #: ../fish/guestfish-actions.pod:644
25610 msgid "checksum-device"
25611 msgstr ""
25612
25613 # type: verbatim
25614 #. type: verbatim
25615 #: ../fish/guestfish-actions.pod:646
25616 #, no-wrap
25617 msgid ""
25618 " checksum-device csumtype device\n"
25619 "\n"
25620 msgstr ""
25621
25622 # type: textblock
25623 #. type: textblock
25624 #: ../fish/guestfish-actions.pod:648
25625 msgid ""
25626 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
25627 "device named C<device>.  For the types of checksums supported see the L</"
25628 "checksum> command."
25629 msgstr ""
25630
25631 # type: =head2
25632 #. type: =head2
25633 #: ../fish/guestfish-actions.pod:652
25634 msgid "checksums-out"
25635 msgstr ""
25636
25637 # type: verbatim
25638 #. type: verbatim
25639 #: ../fish/guestfish-actions.pod:654
25640 #, no-wrap
25641 msgid ""
25642 " checksums-out csumtype directory (sumsfile|-)\n"
25643 "\n"
25644 msgstr ""
25645
25646 # type: =head2
25647 #. type: =head2
25648 #: ../fish/guestfish-actions.pod:670
25649 msgid "chmod"
25650 msgstr ""
25651
25652 # type: verbatim
25653 #. type: verbatim
25654 #: ../fish/guestfish-actions.pod:672
25655 #, no-wrap
25656 msgid ""
25657 " chmod mode path\n"
25658 "\n"
25659 msgstr ""
25660
25661 # type: =head2
25662 #. type: =head2
25663 #: ../fish/guestfish-actions.pod:683
25664 msgid "chown"
25665 msgstr ""
25666
25667 # type: verbatim
25668 #. type: verbatim
25669 #: ../fish/guestfish-actions.pod:685
25670 #, no-wrap
25671 msgid ""
25672 " chown owner group path\n"
25673 "\n"
25674 msgstr ""
25675
25676 # type: =head2
25677 #. type: =head2
25678 #: ../fish/guestfish-actions.pod:693
25679 msgid "command"
25680 msgstr ""
25681
25682 # type: verbatim
25683 #. type: verbatim
25684 #: ../fish/guestfish-actions.pod:695
25685 #, no-wrap
25686 msgid ""
25687 " command 'arguments ...'\n"
25688 "\n"
25689 msgstr ""
25690
25691 # type: textblock
25692 #. type: textblock
25693 #: ../fish/guestfish-actions.pod:702
25694 msgid ""
25695 "The single parameter is an argv-style list of arguments.  The first element "
25696 "is the name of the program to run.  Subsequent elements are parameters.  The "
25697 "list must be non-empty (ie. must contain a program name).  Note that the "
25698 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
25699 msgstr ""
25700
25701 # type: =head2
25702 #. type: =head2
25703 #: ../fish/guestfish-actions.pod:730
25704 msgid "command-lines"
25705 msgstr ""
25706
25707 # type: verbatim
25708 #. type: verbatim
25709 #: ../fish/guestfish-actions.pod:732
25710 #, no-wrap
25711 msgid ""
25712 " command-lines 'arguments ...'\n"
25713 "\n"
25714 msgstr ""
25715
25716 # type: textblock
25717 #. type: textblock
25718 #: ../fish/guestfish-actions.pod:734
25719 msgid ""
25720 "This is the same as L</command>, but splits the result into a list of lines."
25721 msgstr ""
25722
25723 # type: textblock
25724 #. type: textblock
25725 #: ../fish/guestfish-actions.pod:737
25726 msgid "See also: L</sh-lines>"
25727 msgstr ""
25728
25729 # type: =head2
25730 #. type: =head2
25731 #: ../fish/guestfish-actions.pod:742
25732 msgid "config"
25733 msgstr ""
25734
25735 # type: verbatim
25736 #. type: verbatim
25737 #: ../fish/guestfish-actions.pod:744
25738 #, no-wrap
25739 msgid ""
25740 " config qemuparam qemuvalue\n"
25741 "\n"
25742 msgstr ""
25743
25744 # type: =head2
25745 #. type: =head2
25746 #: ../fish/guestfish-actions.pod:755
25747 msgid "copy-size"
25748 msgstr ""
25749
25750 # type: verbatim
25751 #. type: verbatim
25752 #: ../fish/guestfish-actions.pod:757
25753 #, no-wrap
25754 msgid ""
25755 " copy-size src dest size\n"
25756 "\n"
25757 msgstr ""
25758
25759 # type: =head2
25760 #. type: =head2
25761 #: ../fish/guestfish-actions.pod:765
25762 msgid "cp"
25763 msgstr ""
25764
25765 # type: verbatim
25766 #. type: verbatim
25767 #: ../fish/guestfish-actions.pod:767
25768 #, no-wrap
25769 msgid ""
25770 " cp src dest\n"
25771 "\n"
25772 msgstr ""
25773
25774 # type: =head2
25775 #. type: =head2
25776 #: ../fish/guestfish-actions.pod:772
25777 msgid "cp-a"
25778 msgstr ""
25779
25780 # type: verbatim
25781 #. type: verbatim
25782 #: ../fish/guestfish-actions.pod:774
25783 #, no-wrap
25784 msgid ""
25785 " cp-a src dest\n"
25786 "\n"
25787 msgstr ""
25788
25789 # type: =head2
25790 #. type: =head2
25791 #: ../fish/guestfish-actions.pod:779
25792 msgid "dd"
25793 msgstr ""
25794
25795 # type: verbatim
25796 #. type: verbatim
25797 #: ../fish/guestfish-actions.pod:781
25798 #, no-wrap
25799 msgid ""
25800 " dd src dest\n"
25801 "\n"
25802 msgstr ""
25803
25804 # type: textblock
25805 #. type: textblock
25806 #: ../fish/guestfish-actions.pod:788
25807 msgid ""
25808 "If the destination is a device, it must be as large or larger than the "
25809 "source file or device, otherwise the copy will fail.  This command cannot do "
25810 "partial copies (see L</copy-size>)."
25811 msgstr ""
25812
25813 # type: =head2
25814 #. type: =head2
25815 #: ../fish/guestfish-actions.pod:792
25816 msgid "df"
25817 msgstr ""
25818
25819 # type: verbatim
25820 #. type: verbatim
25821 #: ../fish/guestfish-actions.pod:794
25822 #, no-wrap
25823 msgid ""
25824 " df\n"
25825 "\n"
25826 msgstr ""
25827
25828 # type: textblock
25829 #. type: textblock
25830 #: ../fish/guestfish-actions.pod:798 ../fish/guestfish-actions.pod:809
25831 msgid ""
25832 "This command is mostly useful for interactive sessions.  It is I<not> "
25833 "intended that you try to parse the output string.  Use L</statvfs> from "
25834 "programs."
25835 msgstr ""
25836
25837 # type: =head2
25838 #. type: =head2
25839 #: ../fish/guestfish-actions.pod:802
25840 msgid "df-h"
25841 msgstr ""
25842
25843 # type: verbatim
25844 #. type: verbatim
25845 #: ../fish/guestfish-actions.pod:804
25846 #, no-wrap
25847 msgid ""
25848 " df-h\n"
25849 "\n"
25850 msgstr ""
25851
25852 # type: =head2
25853 #. type: =head2
25854 #: ../fish/guestfish-actions.pod:813
25855 msgid "dmesg"
25856 msgstr ""
25857
25858 # type: verbatim
25859 #. type: verbatim
25860 #: ../fish/guestfish-actions.pod:815
25861 #, no-wrap
25862 msgid ""
25863 " dmesg\n"
25864 "\n"
25865 msgstr ""
25866
25867 # type: textblock
25868 #. type: textblock
25869 #: ../fish/guestfish-actions.pod:821
25870 msgid ""
25871 "Another way to get the same information is to enable verbose messages with "
25872 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
25873 "before running the program."
25874 msgstr ""
25875
25876 # type: =head2
25877 #. type: =head2
25878 #: ../fish/guestfish-actions.pod:826
25879 msgid "download"
25880 msgstr ""
25881
25882 # type: verbatim
25883 #. type: verbatim
25884 #: ../fish/guestfish-actions.pod:828
25885 #, no-wrap
25886 msgid ""
25887 " download remotefilename (filename|-)\n"
25888 "\n"
25889 msgstr ""
25890
25891 # type: textblock
25892 #. type: textblock
25893 #: ../fish/guestfish-actions.pod:835
25894 msgid "See also L</upload>, L</cat>."
25895 msgstr ""
25896
25897 # type: =head2
25898 #. type: =head2
25899 #: ../fish/guestfish-actions.pod:839
25900 msgid "download-offset"
25901 msgstr ""
25902
25903 # type: verbatim
25904 #. type: verbatim
25905 #: ../fish/guestfish-actions.pod:841
25906 #, no-wrap
25907 msgid ""
25908 " download-offset remotefilename (filename|-) offset size\n"
25909 "\n"
25910 msgstr ""
25911
25912 # type: textblock
25913 #. type: textblock
25914 #: ../fish/guestfish-actions.pod:849
25915 msgid ""
25916 "Note that there is no limit on the amount of data that can be downloaded "
25917 "with this call, unlike with L</pread>, and this call always reads the full "
25918 "amount unless an error occurs."
25919 msgstr ""
25920
25921 # type: textblock
25922 #. type: textblock
25923 #: ../fish/guestfish-actions.pod:854
25924 msgid "See also L</download>, L</pread>."
25925 msgstr ""
25926
25927 # type: =head2
25928 #. type: =head2
25929 #: ../fish/guestfish-actions.pod:858
25930 msgid "drop-caches"
25931 msgstr ""
25932
25933 # type: verbatim
25934 #. type: verbatim
25935 #: ../fish/guestfish-actions.pod:860
25936 #, no-wrap
25937 msgid ""
25938 " drop-caches whattodrop\n"
25939 "\n"
25940 msgstr ""
25941
25942 # type: =head2
25943 #. type: =head2
25944 #: ../fish/guestfish-actions.pod:872
25945 msgid "du"
25946 msgstr ""
25947
25948 # type: verbatim
25949 #. type: verbatim
25950 #: ../fish/guestfish-actions.pod:874
25951 #, no-wrap
25952 msgid ""
25953 " du path\n"
25954 "\n"
25955 msgstr ""
25956
25957 # type: =head2
25958 #. type: =head2
25959 #: ../fish/guestfish-actions.pod:886
25960 msgid "e2fsck-f"
25961 msgstr ""
25962
25963 # type: verbatim
25964 #. type: verbatim
25965 #: ../fish/guestfish-actions.pod:888
25966 #, no-wrap
25967 msgid ""
25968 " e2fsck-f device\n"
25969 "\n"
25970 msgstr ""
25971
25972 # type: textblock
25973 #. type: textblock
25974 #: ../fish/guestfish-actions.pod:894
25975 msgid ""
25976 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
25977 "should use L</fsck>."
25978 msgstr ""
25979
25980 # type: =head2
25981 #. type: =head2
25982 #: ../fish/guestfish-actions.pod:897
25983 msgid "echo-daemon"
25984 msgstr ""
25985
25986 # type: verbatim
25987 #. type: verbatim
25988 #: ../fish/guestfish-actions.pod:899
25989 #, no-wrap
25990 msgid ""
25991 " echo-daemon 'words ...'\n"
25992 "\n"
25993 msgstr ""
25994
25995 # type: textblock
25996 #. type: textblock
25997 #: ../fish/guestfish-actions.pod:906
25998 msgid "See also L</ping-daemon>."
25999 msgstr ""
26000
26001 # type: =head2
26002 #. type: =head2
26003 #: ../fish/guestfish-actions.pod:908
26004 msgid "egrep"
26005 msgstr ""
26006
26007 # type: verbatim
26008 #. type: verbatim
26009 #: ../fish/guestfish-actions.pod:910
26010 #, no-wrap
26011 msgid ""
26012 " egrep regex path\n"
26013 "\n"
26014 msgstr ""
26015
26016 # type: =head2
26017 #. type: =head2
26018 #: ../fish/guestfish-actions.pod:918
26019 msgid "egrepi"
26020 msgstr ""
26021
26022 # type: verbatim
26023 #. type: verbatim
26024 #: ../fish/guestfish-actions.pod:920
26025 #, no-wrap
26026 msgid ""
26027 " egrepi regex path\n"
26028 "\n"
26029 msgstr ""
26030
26031 # type: =head2
26032 #. type: =head2
26033 #: ../fish/guestfish-actions.pod:928
26034 msgid "equal"
26035 msgstr ""
26036
26037 # type: verbatim
26038 #. type: verbatim
26039 #: ../fish/guestfish-actions.pod:930
26040 #, no-wrap
26041 msgid ""
26042 " equal file1 file2\n"
26043 "\n"
26044 msgstr ""
26045
26046 # type: =head2
26047 #. type: =head2
26048 #: ../fish/guestfish-actions.pod:937
26049 msgid "exists"
26050 msgstr ""
26051
26052 # type: verbatim
26053 #. type: verbatim
26054 #: ../fish/guestfish-actions.pod:939
26055 #, no-wrap
26056 msgid ""
26057 " exists path\n"
26058 "\n"
26059 msgstr ""
26060
26061 # type: textblock
26062 #. type: textblock
26063 #: ../fish/guestfish-actions.pod:944
26064 msgid "See also L</is-file>, L</is-dir>, L</stat>."
26065 msgstr ""
26066
26067 # type: =head2
26068 #. type: =head2
26069 #: ../fish/guestfish-actions.pod:946
26070 msgid "fallocate"
26071 msgstr ""
26072
26073 # type: verbatim
26074 #. type: verbatim
26075 #: ../fish/guestfish-actions.pod:948
26076 #, no-wrap
26077 msgid ""
26078 " fallocate path len\n"
26079 "\n"
26080 msgstr ""
26081
26082 # type: =head2
26083 #. type: =head2
26084 #: ../fish/guestfish-actions.pod:965
26085 msgid "fallocate64"
26086 msgstr ""
26087
26088 # type: verbatim
26089 #. type: verbatim
26090 #: ../fish/guestfish-actions.pod:967
26091 #, no-wrap
26092 msgid ""
26093 " fallocate64 path len\n"
26094 "\n"
26095 msgstr ""
26096
26097 # type: textblock
26098 #. type: textblock
26099 #: ../fish/guestfish-actions.pod:973
26100 msgid ""
26101 "Note that this call allocates disk blocks for the file.  To create a sparse "
26102 "file use L</truncate-size> instead."
26103 msgstr ""
26104
26105 # type: textblock
26106 #. type: textblock
26107 #: ../fish/guestfish-actions.pod:976
26108 msgid ""
26109 "The deprecated call L</fallocate> does the same, but owing to an oversight "
26110 "it only allowed 30 bit lengths to be specified, effectively limiting the "
26111 "maximum size of files created through that call to 1GB."
26112 msgstr ""
26113
26114 # type: =head2
26115 #. type: =head2
26116 #: ../fish/guestfish-actions.pod:985
26117 msgid "fgrep"
26118 msgstr ""
26119
26120 # type: verbatim
26121 #. type: verbatim
26122 #: ../fish/guestfish-actions.pod:987
26123 #, no-wrap
26124 msgid ""
26125 " fgrep pattern path\n"
26126 "\n"
26127 msgstr ""
26128
26129 # type: =head2
26130 #. type: =head2
26131 #: ../fish/guestfish-actions.pod:995
26132 msgid "fgrepi"
26133 msgstr ""
26134
26135 # type: verbatim
26136 #. type: verbatim
26137 #: ../fish/guestfish-actions.pod:997
26138 #, no-wrap
26139 msgid ""
26140 " fgrepi pattern path\n"
26141 "\n"
26142 msgstr ""
26143
26144 # type: =head2
26145 #. type: =head2
26146 #: ../fish/guestfish-actions.pod:1005
26147 msgid "file"
26148 msgstr ""
26149
26150 # type: verbatim
26151 #. type: verbatim
26152 #: ../fish/guestfish-actions.pod:1007
26153 #, no-wrap
26154 msgid ""
26155 " file path\n"
26156 "\n"
26157 msgstr ""
26158
26159 #. type: textblock
26160 #: ../fish/guestfish-actions.pod:1023
26161 msgid ""
26162 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
26163 "(etc), L</is-zero>."
26164 msgstr ""
26165
26166 # type: =head2
26167 #. type: =head2
26168 #: ../fish/guestfish-actions.pod:1026
26169 msgid "file-architecture"
26170 msgstr ""
26171
26172 # type: verbatim
26173 #. type: verbatim
26174 #: ../fish/guestfish-actions.pod:1028
26175 #, no-wrap
26176 msgid ""
26177 " file-architecture filename\n"
26178 "\n"
26179 msgstr ""
26180
26181 # type: =head2
26182 #. type: =head2
26183 #: ../fish/guestfish-actions.pod:1131
26184 msgid "filesize"
26185 msgstr ""
26186
26187 # type: verbatim
26188 #. type: verbatim
26189 #: ../fish/guestfish-actions.pod:1133
26190 #, no-wrap
26191 msgid ""
26192 " filesize file\n"
26193 "\n"
26194 msgstr ""
26195
26196 # type: textblock
26197 #. type: textblock
26198 #: ../fish/guestfish-actions.pod:1137
26199 msgid ""
26200 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
26201 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
26202 msgstr ""
26203
26204 # type: =head2
26205 #. type: =head2
26206 #: ../fish/guestfish-actions.pod:1141
26207 msgid "fill"
26208 msgstr ""
26209
26210 # type: verbatim
26211 #. type: verbatim
26212 #: ../fish/guestfish-actions.pod:1143
26213 #, no-wrap
26214 msgid ""
26215 " fill c len path\n"
26216 "\n"
26217 msgstr ""
26218
26219 # type: textblock
26220 #. type: textblock
26221 #: ../fish/guestfish-actions.pod:1149
26222 msgid ""
26223 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
26224 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
26225 "L</fill-pattern>."
26226 msgstr ""
26227
26228 # type: =head2
26229 #. type: =head2
26230 #: ../fish/guestfish-actions.pod:1154
26231 msgid "fill-pattern"
26232 msgstr ""
26233
26234 # type: verbatim
26235 #. type: verbatim
26236 #: ../fish/guestfish-actions.pod:1156
26237 #, no-wrap
26238 msgid ""
26239 " fill-pattern pattern len path\n"
26240 "\n"
26241 msgstr ""
26242
26243 # type: textblock
26244 #. type: textblock
26245 #: ../fish/guestfish-actions.pod:1158
26246 msgid ""
26247 "This function is like L</fill> except that it creates a new file of length "
26248 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
26249 "is truncated if necessary to ensure the length of the file is exactly C<len> "
26250 "bytes."
26251 msgstr ""
26252
26253 # type: =head2
26254 #. type: =head2
26255 #: ../fish/guestfish-actions.pod:1163
26256 msgid "find"
26257 msgstr ""
26258
26259 # type: verbatim
26260 #. type: verbatim
26261 #: ../fish/guestfish-actions.pod:1165
26262 #, no-wrap
26263 msgid ""
26264 " find directory\n"
26265 "\n"
26266 msgstr ""
26267
26268 # type: textblock
26269 #. type: textblock
26270 #: ../fish/guestfish-actions.pod:1179
26271 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
26272 msgstr ""
26273
26274 # type: textblock
26275 #. type: textblock
26276 #: ../fish/guestfish-actions.pod:1192
26277 msgid "See also L</find0>."
26278 msgstr ""
26279
26280 # type: =head2
26281 #. type: =head2
26282 #: ../fish/guestfish-actions.pod:1197
26283 msgid "find0"
26284 msgstr ""
26285
26286 # type: verbatim
26287 #. type: verbatim
26288 #: ../fish/guestfish-actions.pod:1199
26289 #, no-wrap
26290 msgid ""
26291 " find0 directory (files|-)\n"
26292 "\n"
26293 msgstr ""
26294
26295 # type: textblock
26296 #. type: textblock
26297 #: ../fish/guestfish-actions.pod:1205
26298 msgid ""
26299 "This command works the same way as L</find> with the following exceptions:"
26300 msgstr ""
26301
26302 # type: =head2
26303 #. type: =head2
26304 #: ../fish/guestfish-actions.pod:1232
26305 msgid "findfs-label"
26306 msgstr ""
26307
26308 # type: verbatim
26309 #. type: verbatim
26310 #: ../fish/guestfish-actions.pod:1234
26311 #, no-wrap
26312 msgid ""
26313 " findfs-label label\n"
26314 "\n"
26315 msgstr ""
26316
26317 # type: textblock
26318 #. type: textblock
26319 #: ../fish/guestfish-actions.pod:1240
26320 msgid "To find the label of a filesystem, use L</vfs-label>."
26321 msgstr ""
26322
26323 # type: =head2
26324 #. type: =head2
26325 #: ../fish/guestfish-actions.pod:1242
26326 msgid "findfs-uuid"
26327 msgstr ""
26328
26329 # type: verbatim
26330 #. type: verbatim
26331 #: ../fish/guestfish-actions.pod:1244
26332 #, no-wrap
26333 msgid ""
26334 " findfs-uuid uuid\n"
26335 "\n"
26336 msgstr ""
26337
26338 # type: textblock
26339 #. type: textblock
26340 #: ../fish/guestfish-actions.pod:1250
26341 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
26342 msgstr ""
26343
26344 # type: =head2
26345 #. type: =head2
26346 #: ../fish/guestfish-actions.pod:1252
26347 msgid "fsck"
26348 msgstr ""
26349
26350 # type: verbatim
26351 #. type: verbatim
26352 #: ../fish/guestfish-actions.pod:1254
26353 #, no-wrap
26354 msgid ""
26355 " fsck fstype device\n"
26356 "\n"
26357 msgstr ""
26358
26359 # type: =head2
26360 #. type: =head2
26361 #: ../fish/guestfish-actions.pod:1284
26362 msgid "get-append"
26363 msgstr ""
26364
26365 # type: verbatim
26366 #. type: verbatim
26367 #: ../fish/guestfish-actions.pod:1286
26368 #, no-wrap
26369 msgid ""
26370 " get-append\n"
26371 "\n"
26372 msgstr ""
26373
26374 #. type: =head2
26375 #: ../fish/guestfish-actions.pod:1293
26376 msgid "get-attach-method"
26377 msgstr ""
26378
26379 #. type: verbatim
26380 #: ../fish/guestfish-actions.pod:1295
26381 #, no-wrap
26382 msgid ""
26383 " get-attach-method\n"
26384 "\n"
26385 msgstr ""
26386
26387 #. type: textblock
26388 #: ../fish/guestfish-actions.pod:1297
26389 msgid "Return the current attach method.  See L</set-attach-method>."
26390 msgstr ""
26391
26392 # type: =head2
26393 #. type: =head2
26394 #: ../fish/guestfish-actions.pod:1299
26395 msgid "get-autosync"
26396 msgstr ""
26397
26398 # type: verbatim
26399 #. type: verbatim
26400 #: ../fish/guestfish-actions.pod:1301
26401 #, no-wrap
26402 msgid ""
26403 " get-autosync\n"
26404 "\n"
26405 msgstr ""
26406
26407 # type: =head2
26408 #. type: =head2
26409 #: ../fish/guestfish-actions.pod:1305
26410 msgid "get-direct"
26411 msgstr ""
26412
26413 # type: verbatim
26414 #. type: verbatim
26415 #: ../fish/guestfish-actions.pod:1307
26416 #, no-wrap
26417 msgid ""
26418 " get-direct\n"
26419 "\n"
26420 msgstr ""
26421
26422 # type: =head2
26423 #. type: =head2
26424 #: ../fish/guestfish-actions.pod:1311
26425 msgid "get-e2label"
26426 msgstr ""
26427
26428 # type: verbatim
26429 #. type: verbatim
26430 #: ../fish/guestfish-actions.pod:1313
26431 #, no-wrap
26432 msgid ""
26433 " get-e2label device\n"
26434 "\n"
26435 msgstr ""
26436
26437 # type: =head2
26438 #. type: =head2
26439 #: ../fish/guestfish-actions.pod:1325
26440 msgid "get-e2uuid"
26441 msgstr ""
26442
26443 # type: verbatim
26444 #. type: verbatim
26445 #: ../fish/guestfish-actions.pod:1327
26446 #, no-wrap
26447 msgid ""
26448 " get-e2uuid device\n"
26449 "\n"
26450 msgstr ""
26451
26452 # type: =head2
26453 #. type: =head2
26454 #: ../fish/guestfish-actions.pod:1339
26455 msgid "get-memsize"
26456 msgstr ""
26457
26458 # type: verbatim
26459 #. type: verbatim
26460 #: ../fish/guestfish-actions.pod:1341
26461 #, no-wrap
26462 msgid ""
26463 " get-memsize\n"
26464 "\n"
26465 msgstr ""
26466
26467 # type: textblock
26468 #. type: textblock
26469 #: ../fish/guestfish-actions.pod:1346
26470 msgid ""
26471 "If L</set-memsize> was not called on this handle, and if "
26472 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
26473 "value for memsize."
26474 msgstr ""
26475
26476 # type: =head2
26477 #. type: =head2
26478 #: ../fish/guestfish-actions.pod:1353
26479 msgid "get-network"
26480 msgstr ""
26481
26482 # type: verbatim
26483 #. type: verbatim
26484 #: ../fish/guestfish-actions.pod:1355
26485 #, no-wrap
26486 msgid ""
26487 " get-network\n"
26488 "\n"
26489 msgstr ""
26490
26491 # type: =head2
26492 #. type: =head2
26493 #: ../fish/guestfish-actions.pod:1359
26494 msgid "get-path"
26495 msgstr ""
26496
26497 # type: verbatim
26498 #. type: verbatim
26499 #: ../fish/guestfish-actions.pod:1361
26500 #, no-wrap
26501 msgid ""
26502 " get-path\n"
26503 "\n"
26504 msgstr ""
26505
26506 # type: =head2
26507 #. type: =head2
26508 #: ../fish/guestfish-actions.pod:1368
26509 msgid "get-pid"
26510 msgstr ""
26511
26512 # type: =head2
26513 #. type: =head2
26514 #: ../fish/guestfish-actions.pod:1370
26515 msgid "pid"
26516 msgstr ""
26517
26518 # type: verbatim
26519 #. type: verbatim
26520 #: ../fish/guestfish-actions.pod:1372
26521 #, no-wrap
26522 msgid ""
26523 " get-pid\n"
26524 "\n"
26525 msgstr ""
26526
26527 # type: =head2
26528 #. type: =head2
26529 #: ../fish/guestfish-actions.pod:1379
26530 msgid "get-qemu"
26531 msgstr ""
26532
26533 # type: verbatim
26534 #. type: verbatim
26535 #: ../fish/guestfish-actions.pod:1381
26536 #, no-wrap
26537 msgid ""
26538 " get-qemu\n"
26539 "\n"
26540 msgstr ""
26541
26542 # type: =head2
26543 #. type: =head2
26544 #: ../fish/guestfish-actions.pod:1388
26545 msgid "get-recovery-proc"
26546 msgstr ""
26547
26548 # type: verbatim
26549 #. type: verbatim
26550 #: ../fish/guestfish-actions.pod:1390
26551 #, no-wrap
26552 msgid ""
26553 " get-recovery-proc\n"
26554 "\n"
26555 msgstr ""
26556
26557 # type: =head2
26558 #. type: =head2
26559 #: ../fish/guestfish-actions.pod:1394
26560 msgid "get-selinux"
26561 msgstr ""
26562
26563 # type: verbatim
26564 #. type: verbatim
26565 #: ../fish/guestfish-actions.pod:1396
26566 #, no-wrap
26567 msgid ""
26568 " get-selinux\n"
26569 "\n"
26570 msgstr ""
26571
26572 # type: textblock
26573 #. type: textblock
26574 #: ../fish/guestfish-actions.pod:1398
26575 msgid ""
26576 "This returns the current setting of the selinux flag which is passed to the "
26577 "appliance at boot time.  See L</set-selinux>."
26578 msgstr ""
26579
26580 # type: =head2
26581 #. type: =head2
26582 #: ../fish/guestfish-actions.pod:1404
26583 msgid "get-state"
26584 msgstr ""
26585
26586 # type: verbatim
26587 #. type: verbatim
26588 #: ../fish/guestfish-actions.pod:1406
26589 #, no-wrap
26590 msgid ""
26591 " get-state\n"
26592 "\n"
26593 msgstr ""
26594
26595 # type: =head2
26596 #. type: =head2
26597 #: ../fish/guestfish-actions.pod:1413
26598 msgid "get-trace"
26599 msgstr ""
26600
26601 # type: verbatim
26602 #. type: verbatim
26603 #: ../fish/guestfish-actions.pod:1415
26604 #, no-wrap
26605 msgid ""
26606 " get-trace\n"
26607 "\n"
26608 msgstr ""
26609
26610 # type: =head2
26611 #. type: =head2
26612 #: ../fish/guestfish-actions.pod:1419
26613 msgid "get-umask"
26614 msgstr ""
26615
26616 # type: verbatim
26617 #. type: verbatim
26618 #: ../fish/guestfish-actions.pod:1421
26619 #, no-wrap
26620 msgid ""
26621 " get-umask\n"
26622 "\n"
26623 msgstr ""
26624
26625 # type: textblock
26626 #. type: textblock
26627 #: ../fish/guestfish-actions.pod:1423
26628 msgid ""
26629 "Return the current umask.  By default the umask is C<022> unless it has been "
26630 "set by calling L</umask>."
26631 msgstr ""
26632
26633 # type: =head2
26634 #. type: =head2
26635 #: ../fish/guestfish-actions.pod:1426
26636 msgid "get-verbose"
26637 msgstr ""
26638
26639 # type: verbatim
26640 #. type: verbatim
26641 #: ../fish/guestfish-actions.pod:1428
26642 #, no-wrap
26643 msgid ""
26644 " get-verbose\n"
26645 "\n"
26646 msgstr ""
26647
26648 # type: =head2
26649 #. type: =head2
26650 #: ../fish/guestfish-actions.pod:1432
26651 msgid "getcon"
26652 msgstr ""
26653
26654 # type: verbatim
26655 #. type: verbatim
26656 #: ../fish/guestfish-actions.pod:1434
26657 #, no-wrap
26658 msgid ""
26659 " getcon\n"
26660 "\n"
26661 msgstr ""
26662
26663 # type: textblock
26664 #. type: textblock
26665 #: ../fish/guestfish-actions.pod:1438
26666 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
26667 msgstr ""
26668
26669 # type: =head2
26670 #. type: =head2
26671 #: ../fish/guestfish-actions.pod:1441
26672 msgid "getxattr"
26673 msgstr ""
26674
26675 # type: verbatim
26676 #. type: verbatim
26677 #: ../fish/guestfish-actions.pod:1443
26678 #, no-wrap
26679 msgid ""
26680 " getxattr path name\n"
26681 "\n"
26682 msgstr ""
26683
26684 # type: textblock
26685 #. type: textblock
26686 #: ../fish/guestfish-actions.pod:1445
26687 msgid ""
26688 "Get a single extended attribute from file C<path> named C<name>.  This call "
26689 "follows symlinks.  If you want to lookup an extended attribute for the "
26690 "symlink itself, use L</lgetxattr>."
26691 msgstr ""
26692
26693 # type: textblock
26694 #. type: textblock
26695 #: ../fish/guestfish-actions.pod:1449 ../fish/guestfish-actions.pod:2476
26696 msgid ""
26697 "Normally it is better to get all extended attributes from a file in one go "
26698 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
26699 "buggy and do not provide a way to list out attributes.  For these "
26700 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
26701 "attributes you want in advance and call this function."
26702 msgstr ""
26703
26704 # type: textblock
26705 #. type: textblock
26706 #: ../fish/guestfish-actions.pod:1459
26707 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
26708 msgstr ""
26709
26710 # type: =head2
26711 #. type: =head2
26712 #: ../fish/guestfish-actions.pod:1461
26713 msgid "getxattrs"
26714 msgstr ""
26715
26716 # type: verbatim
26717 #. type: verbatim
26718 #: ../fish/guestfish-actions.pod:1463
26719 #, no-wrap
26720 msgid ""
26721 " getxattrs path\n"
26722 "\n"
26723 msgstr ""
26724
26725 # type: textblock
26726 #. type: textblock
26727 #: ../fish/guestfish-actions.pod:1471
26728 msgid "See also: L</lgetxattrs>, L<attr(5)>."
26729 msgstr ""
26730
26731 # type: =head2
26732 #. type: =head2
26733 #: ../fish/guestfish-actions.pod:1473
26734 msgid "glob-expand"
26735 msgstr ""
26736
26737 # type: verbatim
26738 #. type: verbatim
26739 #: ../fish/guestfish-actions.pod:1475
26740 #, no-wrap
26741 msgid ""
26742 " glob-expand pattern\n"
26743 "\n"
26744 msgstr ""
26745
26746 # type: =head2
26747 #. type: =head2
26748 #: ../fish/guestfish-actions.pod:1488
26749 msgid "grep"
26750 msgstr ""
26751
26752 # type: verbatim
26753 #. type: verbatim
26754 #: ../fish/guestfish-actions.pod:1490
26755 #, no-wrap
26756 msgid ""
26757 " grep regex path\n"
26758 "\n"
26759 msgstr ""
26760
26761 # type: =head2
26762 #. type: =head2
26763 #: ../fish/guestfish-actions.pod:1498
26764 msgid "grepi"
26765 msgstr ""
26766
26767 # type: verbatim
26768 #. type: verbatim
26769 #: ../fish/guestfish-actions.pod:1500
26770 #, no-wrap
26771 msgid ""
26772 " grepi regex path\n"
26773 "\n"
26774 msgstr ""
26775
26776 # type: =head2
26777 #. type: =head2
26778 #: ../fish/guestfish-actions.pod:1508
26779 msgid "grub-install"
26780 msgstr ""
26781
26782 # type: verbatim
26783 #. type: verbatim
26784 #: ../fish/guestfish-actions.pod:1510
26785 #, no-wrap
26786 msgid ""
26787 " grub-install root device\n"
26788 "\n"
26789 msgstr ""
26790
26791 # type: =head2
26792 #. type: =head2
26793 #: ../fish/guestfish-actions.pod:1526
26794 msgid "head"
26795 msgstr ""
26796
26797 # type: verbatim
26798 #. type: verbatim
26799 #: ../fish/guestfish-actions.pod:1528
26800 #, no-wrap
26801 msgid ""
26802 " head path\n"
26803 "\n"
26804 msgstr ""
26805
26806 # type: =head2
26807 #. type: =head2
26808 #: ../fish/guestfish-actions.pod:1536
26809 msgid "head-n"
26810 msgstr ""
26811
26812 # type: verbatim
26813 #. type: verbatim
26814 #: ../fish/guestfish-actions.pod:1538
26815 #, no-wrap
26816 msgid ""
26817 " head-n nrlines path\n"
26818 "\n"
26819 msgstr ""
26820
26821 # type: =head2
26822 #. type: =head2
26823 #: ../fish/guestfish-actions.pod:1551
26824 msgid "hexdump"
26825 msgstr ""
26826
26827 # type: verbatim
26828 #. type: verbatim
26829 #: ../fish/guestfish-actions.pod:1553
26830 #, no-wrap
26831 msgid ""
26832 " hexdump path\n"
26833 "\n"
26834 msgstr ""
26835
26836 # type: =head2
26837 #. type: =head2
26838 #: ../fish/guestfish-actions.pod:1561
26839 msgid "initrd-cat"
26840 msgstr ""
26841
26842 # type: verbatim
26843 #. type: verbatim
26844 #: ../fish/guestfish-actions.pod:1563
26845 #, no-wrap
26846 msgid ""
26847 " initrd-cat initrdpath filename\n"
26848 "\n"
26849 msgstr ""
26850
26851 # type: textblock
26852 #. type: textblock
26853 #: ../fish/guestfish-actions.pod:1575
26854 msgid "See also L</initrd-list>."
26855 msgstr ""
26856
26857 # type: =head2
26858 #. type: =head2
26859 #: ../fish/guestfish-actions.pod:1580
26860 msgid "initrd-list"
26861 msgstr ""
26862
26863 # type: verbatim
26864 #. type: verbatim
26865 #: ../fish/guestfish-actions.pod:1582
26866 #, no-wrap
26867 msgid ""
26868 " initrd-list path\n"
26869 "\n"
26870 msgstr ""
26871
26872 # type: =head2
26873 #. type: =head2
26874 #: ../fish/guestfish-actions.pod:1594
26875 msgid "inotify-add-watch"
26876 msgstr ""
26877
26878 # type: verbatim
26879 #. type: verbatim
26880 #: ../fish/guestfish-actions.pod:1596
26881 #, no-wrap
26882 msgid ""
26883 " inotify-add-watch path mask\n"
26884 "\n"
26885 msgstr ""
26886
26887 # type: =head2
26888 #. type: =head2
26889 #: ../fish/guestfish-actions.pod:1608
26890 msgid "inotify-close"
26891 msgstr ""
26892
26893 # type: verbatim
26894 #. type: verbatim
26895 #: ../fish/guestfish-actions.pod:1610
26896 #, no-wrap
26897 msgid ""
26898 " inotify-close\n"
26899 "\n"
26900 msgstr ""
26901
26902 # type: =head2
26903 #. type: =head2
26904 #: ../fish/guestfish-actions.pod:1616
26905 msgid "inotify-files"
26906 msgstr ""
26907
26908 # type: verbatim
26909 #. type: verbatim
26910 #: ../fish/guestfish-actions.pod:1618
26911 #, no-wrap
26912 msgid ""
26913 " inotify-files\n"
26914 "\n"
26915 msgstr ""
26916
26917 # type: textblock
26918 #. type: textblock
26919 #: ../fish/guestfish-actions.pod:1620
26920 msgid ""
26921 "This function is a helpful wrapper around L</inotify-read> which just "
26922 "returns a list of pathnames of objects that were touched.  The returned "
26923 "pathnames are sorted and deduplicated."
26924 msgstr ""
26925
26926 # type: =head2
26927 #. type: =head2
26928 #: ../fish/guestfish-actions.pod:1624
26929 msgid "inotify-init"
26930 msgstr ""
26931
26932 # type: verbatim
26933 #. type: verbatim
26934 #: ../fish/guestfish-actions.pod:1626
26935 #, no-wrap
26936 msgid ""
26937 " inotify-init maxevents\n"
26938 "\n"
26939 msgstr ""
26940
26941 # type: textblock
26942 #. type: textblock
26943 #: ../fish/guestfish-actions.pod:1632
26944 msgid ""
26945 "C<maxevents> is the maximum number of events which will be queued up between "
26946 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
26947 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
26948 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
26949 "but records the fact that it threw them away by setting a flag "
26950 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
26951 msgstr ""
26952
26953 # type: textblock
26954 #. type: textblock
26955 #: ../fish/guestfish-actions.pod:1642
26956 msgid ""
26957 "Before any events are generated, you have to add some watches to the "
26958 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
26959 "L</inotify-watch-all>."
26960 msgstr ""
26961
26962 # type: textblock
26963 #. type: textblock
26964 #: ../fish/guestfish-actions.pod:1648
26965 msgid ""
26966 "Queued up events should be read periodically by calling L</inotify-read> (or "
26967 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
26968 "If you don't read the events out often enough then you risk the internal "
26969 "queue overflowing."
26970 msgstr ""
26971
26972 # type: textblock
26973 #. type: textblock
26974 #: ../fish/guestfish-actions.pod:1655
26975 msgid ""
26976 "The handle should be closed after use by calling L</inotify-close>.  This "
26977 "also removes any watches automatically."
26978 msgstr ""
26979
26980 # type: =head2
26981 #. type: =head2
26982 #: ../fish/guestfish-actions.pod:1664
26983 msgid "inotify-read"
26984 msgstr ""
26985
26986 # type: verbatim
26987 #. type: verbatim
26988 #: ../fish/guestfish-actions.pod:1666
26989 #, no-wrap
26990 msgid ""
26991 " inotify-read\n"
26992 "\n"
26993 msgstr ""
26994
26995 # type: =head2
26996 #. type: =head2
26997 #: ../fish/guestfish-actions.pod:1679
26998 msgid "inotify-rm-watch"
26999 msgstr ""
27000
27001 # type: verbatim
27002 #. type: verbatim
27003 #: ../fish/guestfish-actions.pod:1681
27004 #, no-wrap
27005 msgid ""
27006 " inotify-rm-watch wd\n"
27007 "\n"
27008 msgstr ""
27009
27010 # type: textblock
27011 #. type: textblock
27012 #: ../fish/guestfish-actions.pod:1683
27013 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
27014 msgstr ""
27015
27016 # type: =head2
27017 #. type: =head2
27018 #: ../fish/guestfish-actions.pod:1686
27019 msgid "inspect-get-arch"
27020 msgstr ""
27021
27022 # type: verbatim
27023 #. type: verbatim
27024 #: ../fish/guestfish-actions.pod:1688
27025 #, no-wrap
27026 msgid ""
27027 " inspect-get-arch root\n"
27028 "\n"
27029 msgstr ""
27030
27031 # type: textblock
27032 #. type: textblock
27033 #: ../fish/guestfish-actions.pod:1690
27034 msgid ""
27035 "This returns the architecture of the inspected operating system.  The "
27036 "possible return values are listed under L</file-architecture>."
27037 msgstr ""
27038
27039 # type: =head2
27040 #. type: =head2
27041 #: ../fish/guestfish-actions.pod:1699
27042 msgid "inspect-get-distro"
27043 msgstr ""
27044
27045 # type: verbatim
27046 #. type: verbatim
27047 #: ../fish/guestfish-actions.pod:1701
27048 #, no-wrap
27049 msgid ""
27050 " inspect-get-distro root\n"
27051 "\n"
27052 msgstr ""
27053
27054 #. type: =head2
27055 #: ../fish/guestfish-actions.pod:1782
27056 msgid "inspect-get-drive-mappings"
27057 msgstr ""
27058
27059 #. type: verbatim
27060 #: ../fish/guestfish-actions.pod:1784
27061 #, no-wrap
27062 msgid ""
27063 " inspect-get-drive-mappings root\n"
27064 "\n"
27065 msgstr ""
27066
27067 #. type: textblock
27068 #: ../fish/guestfish-actions.pod:1811
27069 msgid ""
27070 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
27071 "get-mountpoints>, L</inspect-get-filesystems>."
27072 msgstr ""
27073
27074 # type: =head2
27075 #. type: =head2
27076 #: ../fish/guestfish-actions.pod:1815
27077 msgid "inspect-get-filesystems"
27078 msgstr ""
27079
27080 # type: verbatim
27081 #. type: verbatim
27082 #: ../fish/guestfish-actions.pod:1817
27083 #, no-wrap
27084 msgid ""
27085 " inspect-get-filesystems root\n"
27086 "\n"
27087 msgstr ""
27088
27089 # type: textblock
27090 #. type: textblock
27091 #: ../fish/guestfish-actions.pod:1827
27092 msgid ""
27093 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
27094 "get-mountpoints>."
27095 msgstr ""
27096
27097 #. type: =head2
27098 #: ../fish/guestfish-actions.pod:1830
27099 msgid "inspect-get-format"
27100 msgstr ""
27101
27102 #. type: verbatim
27103 #: ../fish/guestfish-actions.pod:1832
27104 #, no-wrap
27105 msgid ""
27106 " inspect-get-format root\n"
27107 "\n"
27108 msgstr ""
27109
27110 # type: =head2
27111 #. type: =head2
27112 #: ../fish/guestfish-actions.pod:1861
27113 msgid "inspect-get-hostname"
27114 msgstr ""
27115
27116 # type: verbatim
27117 #. type: verbatim
27118 #: ../fish/guestfish-actions.pod:1863
27119 #, no-wrap
27120 msgid ""
27121 " inspect-get-hostname root\n"
27122 "\n"
27123 msgstr ""
27124
27125 #. type: =head2
27126 #: ../fish/guestfish-actions.pod:1873
27127 msgid "inspect-get-icon"
27128 msgstr ""
27129
27130 #. type: verbatim
27131 #: ../fish/guestfish-actions.pod:1875
27132 #, no-wrap
27133 msgid ""
27134 " inspect-get-icon root [favicon:..] [highquality:..]\n"
27135 "\n"
27136 msgstr ""
27137
27138 # type: =head2
27139 #. type: =head2
27140 #: ../fish/guestfish-actions.pod:1939
27141 msgid "inspect-get-major-version"
27142 msgstr ""
27143
27144 # type: verbatim
27145 #. type: verbatim
27146 #: ../fish/guestfish-actions.pod:1941
27147 #, no-wrap
27148 msgid ""
27149 " inspect-get-major-version root\n"
27150 "\n"
27151 msgstr ""
27152
27153 # type: =head2
27154 #. type: =head2
27155 #: ../fish/guestfish-actions.pod:1957
27156 msgid "inspect-get-minor-version"
27157 msgstr ""
27158
27159 # type: verbatim
27160 #. type: verbatim
27161 #: ../fish/guestfish-actions.pod:1959
27162 #, no-wrap
27163 msgid ""
27164 " inspect-get-minor-version root\n"
27165 "\n"
27166 msgstr ""
27167
27168 # type: textblock
27169 #. type: textblock
27170 #: ../fish/guestfish-actions.pod:1966
27171 msgid ""
27172 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
27173 "get-major-version>."
27174 msgstr ""
27175
27176 # type: =head2
27177 #. type: =head2
27178 #: ../fish/guestfish-actions.pod:1969
27179 msgid "inspect-get-mountpoints"
27180 msgstr ""
27181
27182 # type: verbatim
27183 #. type: verbatim
27184 #: ../fish/guestfish-actions.pod:1971
27185 #, no-wrap
27186 msgid ""
27187 " inspect-get-mountpoints root\n"
27188 "\n"
27189 msgstr ""
27190
27191 #. type: textblock
27192 #: ../fish/guestfish-actions.pod:1990
27193 msgid ""
27194 "For operating systems like Windows which still use drive letters, this call "
27195 "will only return an entry for the first drive \"mounted on\" C</>.  For "
27196 "information about the mapping of drive letters to partitions, see L</inspect-"
27197 "get-drive-mappings>."
27198 msgstr ""
27199
27200 # type: textblock
27201 #. type: textblock
27202 #: ../fish/guestfish-actions.pod:1996
27203 msgid ""
27204 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
27205 "get-filesystems>."
27206 msgstr ""
27207
27208 # type: =head2
27209 #. type: =head2
27210 #: ../fish/guestfish-actions.pod:1999
27211 msgid "inspect-get-package-format"
27212 msgstr ""
27213
27214 # type: verbatim
27215 #. type: verbatim
27216 #: ../fish/guestfish-actions.pod:2001
27217 #, no-wrap
27218 msgid ""
27219 " inspect-get-package-format root\n"
27220 "\n"
27221 msgstr ""
27222
27223 # type: textblock
27224 #. type: textblock
27225 #: ../fish/guestfish-actions.pod:2003
27226 msgid ""
27227 "This function and L</inspect-get-package-management> return the package "
27228 "format and package management tool used by the inspected operating system.  "
27229 "For example for Fedora these functions would return C<rpm> (package format) "
27230 "and C<yum> (package management)."
27231 msgstr ""
27232
27233 # type: =head2
27234 #. type: =head2
27235 #: ../fish/guestfish-actions.pod:2018
27236 msgid "inspect-get-package-management"
27237 msgstr ""
27238
27239 # type: verbatim
27240 #. type: verbatim
27241 #: ../fish/guestfish-actions.pod:2020
27242 #, no-wrap
27243 msgid ""
27244 " inspect-get-package-management root\n"
27245 "\n"
27246 msgstr ""
27247
27248 # type: textblock
27249 #. type: textblock
27250 #: ../fish/guestfish-actions.pod:2022
27251 msgid ""
27252 "L</inspect-get-package-format> and this function return the package format "
27253 "and package management tool used by the inspected operating system.  For "
27254 "example for Fedora these functions would return C<rpm> (package format) and "
27255 "C<yum> (package management)."
27256 msgstr ""
27257
27258 # type: =head2
27259 #. type: =head2
27260 #: ../fish/guestfish-actions.pod:2039
27261 msgid "inspect-get-product-name"
27262 msgstr ""
27263
27264 # type: verbatim
27265 #. type: verbatim
27266 #: ../fish/guestfish-actions.pod:2041
27267 #, no-wrap
27268 msgid ""
27269 " inspect-get-product-name root\n"
27270 "\n"
27271 msgstr ""
27272
27273 #. type: =head2
27274 #: ../fish/guestfish-actions.pod:2053
27275 msgid "inspect-get-product-variant"
27276 msgstr ""
27277
27278 #. type: verbatim
27279 #: ../fish/guestfish-actions.pod:2055
27280 #, no-wrap
27281 msgid ""
27282 " inspect-get-product-variant root\n"
27283 "\n"
27284 msgstr ""
27285
27286 #. type: textblock
27287 #: ../fish/guestfish-actions.pod:2076
27288 msgid ""
27289 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
27290 "get-product-name>, L</inspect-get-major-version>."
27291 msgstr ""
27292
27293 # type: =head2
27294 #. type: =head2
27295 #: ../fish/guestfish-actions.pod:2080
27296 msgid "inspect-get-roots"
27297 msgstr ""
27298
27299 # type: verbatim
27300 #. type: verbatim
27301 #: ../fish/guestfish-actions.pod:2082
27302 #, no-wrap
27303 msgid ""
27304 " inspect-get-roots\n"
27305 "\n"
27306 msgstr ""
27307
27308 # type: textblock
27309 #. type: textblock
27310 #: ../fish/guestfish-actions.pod:2084
27311 msgid ""
27312 "This function is a convenient way to get the list of root devices, as "
27313 "returned from a previous call to L</inspect-os>, but without redoing the "
27314 "whole inspection process."
27315 msgstr ""
27316
27317 # type: textblock
27318 #. type: textblock
27319 #: ../fish/guestfish-actions.pod:2088
27320 msgid ""
27321 "This returns an empty list if either no root devices were found or the "
27322 "caller has not called L</inspect-os>."
27323 msgstr ""
27324
27325 # type: =head2
27326 #. type: =head2
27327 #: ../fish/guestfish-actions.pod:2093
27328 msgid "inspect-get-type"
27329 msgstr ""
27330
27331 # type: verbatim
27332 #. type: verbatim
27333 #: ../fish/guestfish-actions.pod:2095
27334 #, no-wrap
27335 msgid ""
27336 " inspect-get-type root\n"
27337 "\n"
27338 msgstr ""
27339
27340 #. type: =head2
27341 #: ../fish/guestfish-actions.pod:2125
27342 msgid "inspect-get-windows-current-control-set"
27343 msgstr ""
27344
27345 #. type: verbatim
27346 #: ../fish/guestfish-actions.pod:2127
27347 #, no-wrap
27348 msgid ""
27349 " inspect-get-windows-current-control-set root\n"
27350 "\n"
27351 msgstr ""
27352
27353 # type: =head2
27354 #. type: =head2
27355 #: ../fish/guestfish-actions.pod:2138
27356 msgid "inspect-get-windows-systemroot"
27357 msgstr ""
27358
27359 # type: verbatim
27360 #. type: verbatim
27361 #: ../fish/guestfish-actions.pod:2140
27362 #, no-wrap
27363 msgid ""
27364 " inspect-get-windows-systemroot root\n"
27365 "\n"
27366 msgstr ""
27367
27368 #. type: =head2
27369 #: ../fish/guestfish-actions.pod:2151
27370 msgid "inspect-is-live"
27371 msgstr ""
27372
27373 #. type: verbatim
27374 #: ../fish/guestfish-actions.pod:2153
27375 #, no-wrap
27376 msgid ""
27377 " inspect-is-live root\n"
27378 "\n"
27379 msgstr ""
27380
27381 #. type: textblock
27382 #: ../fish/guestfish-actions.pod:2155
27383 msgid ""
27384 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
27385 "then this returns true if a live image was detected on the disk."
27386 msgstr ""
27387
27388 #. type: =head2
27389 #: ../fish/guestfish-actions.pod:2161
27390 msgid "inspect-is-multipart"
27391 msgstr ""
27392
27393 #. type: verbatim
27394 #: ../fish/guestfish-actions.pod:2163
27395 #, no-wrap
27396 msgid ""
27397 " inspect-is-multipart root\n"
27398 "\n"
27399 msgstr ""
27400
27401 #. type: textblock
27402 #: ../fish/guestfish-actions.pod:2165
27403 msgid ""
27404 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
27405 "then this returns true if the disk is part of a set."
27406 msgstr ""
27407
27408 #. type: =head2
27409 #: ../fish/guestfish-actions.pod:2171
27410 msgid "inspect-is-netinst"
27411 msgstr ""
27412
27413 #. type: verbatim
27414 #: ../fish/guestfish-actions.pod:2173
27415 #, no-wrap
27416 msgid ""
27417 " inspect-is-netinst root\n"
27418 "\n"
27419 msgstr ""
27420
27421 #. type: textblock
27422 #: ../fish/guestfish-actions.pod:2175
27423 msgid ""
27424 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
27425 "then this returns true if the disk is a network installer, ie. not a self-"
27426 "contained install CD but one which is likely to require network access to "
27427 "complete the install."
27428 msgstr ""
27429
27430 # type: =head2
27431 #. type: =head2
27432 #: ../fish/guestfish-actions.pod:2183
27433 msgid "inspect-list-applications"
27434 msgstr ""
27435
27436 # type: verbatim
27437 #. type: verbatim
27438 #: ../fish/guestfish-actions.pod:2185
27439 #, no-wrap
27440 msgid ""
27441 " inspect-list-applications root\n"
27442 "\n"
27443 msgstr ""
27444
27445 # type: textblock
27446 #. type: textblock
27447 #: ../fish/guestfish-actions.pod:2189
27448 msgid ""
27449 "I<Note:> This call works differently from other parts of the inspection "
27450 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
27451 "then mount up the disks, before calling this.  Listing applications is a "
27452 "significantly more difficult operation which requires access to the full "
27453 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
27454 "are just returning data cached in the libguestfs handle, this call actually "
27455 "reads parts of the mounted filesystems during the call."
27456 msgstr ""
27457
27458 # type: =head2
27459 #. type: =head2
27460 #: ../fish/guestfish-actions.pod:2279
27461 msgid "inspect-os"
27462 msgstr ""
27463
27464 # type: verbatim
27465 #. type: verbatim
27466 #: ../fish/guestfish-actions.pod:2281
27467 #, no-wrap
27468 msgid ""
27469 " inspect-os\n"
27470 "\n"
27471 msgstr ""
27472
27473 # type: textblock
27474 #. type: textblock
27475 #: ../fish/guestfish-actions.pod:2296
27476 msgid ""
27477 "You can pass the root string(s) returned to other L</inspect-get-*> "
27478 "functions in order to query further information about each operating system, "
27479 "such as the name and version."
27480 msgstr ""
27481
27482 # type: textblock
27483 #. type: textblock
27484 #: ../fish/guestfish-actions.pod:2301
27485 msgid ""
27486 "This function uses other libguestfs features such as L</mount-ro> and L</"
27487 "umount-all> in order to mount and unmount filesystems and look at the "
27488 "contents.  This should be called with no disks currently mounted.  The "
27489 "function may also use Augeas, so any existing Augeas handle will be closed."
27490 msgstr ""
27491
27492 # type: textblock
27493 #. type: textblock
27494 #: ../fish/guestfish-actions.pod:2313 ../fish/guestfish-actions.pod:2511
27495 #: ../fish/guestfish-actions.pod:2557
27496 msgid "See also L</list-filesystems>."
27497 msgstr ""
27498
27499 # type: =head2
27500 #. type: =head2
27501 #: ../fish/guestfish-actions.pod:2315
27502 msgid "is-blockdev"
27503 msgstr ""
27504
27505 # type: verbatim
27506 #. type: verbatim
27507 #: ../fish/guestfish-actions.pod:2317
27508 #, no-wrap
27509 msgid ""
27510 " is-blockdev path\n"
27511 "\n"
27512 msgstr ""
27513
27514 # type: textblock
27515 #. type: textblock
27516 #: ../fish/guestfish-actions.pod:2322 ../fish/guestfish-actions.pod:2340
27517 #: ../fish/guestfish-actions.pod:2359 ../fish/guestfish-actions.pod:2368
27518 #: ../fish/guestfish-actions.pod:2378 ../fish/guestfish-actions.pod:2412
27519 #: ../fish/guestfish-actions.pod:2421
27520 msgid "See also L</stat>."
27521 msgstr ""
27522
27523 # type: =head2
27524 #. type: =head2
27525 #: ../fish/guestfish-actions.pod:2324
27526 msgid "is-busy"
27527 msgstr ""
27528
27529 # type: verbatim
27530 #. type: verbatim
27531 #: ../fish/guestfish-actions.pod:2326
27532 #, no-wrap
27533 msgid ""
27534 " is-busy\n"
27535 "\n"
27536 msgstr ""
27537
27538 # type: =head2
27539 #. type: =head2
27540 #: ../fish/guestfish-actions.pod:2333
27541 msgid "is-chardev"
27542 msgstr ""
27543
27544 # type: verbatim
27545 #. type: verbatim
27546 #: ../fish/guestfish-actions.pod:2335
27547 #, no-wrap
27548 msgid ""
27549 " is-chardev path\n"
27550 "\n"
27551 msgstr ""
27552
27553 # type: =head2
27554 #. type: =head2
27555 #: ../fish/guestfish-actions.pod:2342
27556 msgid "is-config"
27557 msgstr ""
27558
27559 # type: verbatim
27560 #. type: verbatim
27561 #: ../fish/guestfish-actions.pod:2344
27562 #, no-wrap
27563 msgid ""
27564 " is-config\n"
27565 "\n"
27566 msgstr ""
27567
27568 # type: =head2
27569 #. type: =head2
27570 #: ../fish/guestfish-actions.pod:2351
27571 msgid "is-dir"
27572 msgstr ""
27573
27574 # type: verbatim
27575 #. type: verbatim
27576 #: ../fish/guestfish-actions.pod:2353
27577 #, no-wrap
27578 msgid ""
27579 " is-dir path\n"
27580 "\n"
27581 msgstr ""
27582
27583 # type: =head2
27584 #. type: =head2
27585 #: ../fish/guestfish-actions.pod:2361
27586 msgid "is-fifo"
27587 msgstr ""
27588
27589 # type: verbatim
27590 #. type: verbatim
27591 #: ../fish/guestfish-actions.pod:2363
27592 #, no-wrap
27593 msgid ""
27594 " is-fifo path\n"
27595 "\n"
27596 msgstr ""
27597
27598 # type: =head2
27599 #. type: =head2
27600 #: ../fish/guestfish-actions.pod:2370
27601 msgid "is-file"
27602 msgstr ""
27603
27604 # type: verbatim
27605 #. type: verbatim
27606 #: ../fish/guestfish-actions.pod:2372
27607 #, no-wrap
27608 msgid ""
27609 " is-file path\n"
27610 "\n"
27611 msgstr ""
27612
27613 # type: =head2
27614 #. type: =head2
27615 #: ../fish/guestfish-actions.pod:2380
27616 msgid "is-launching"
27617 msgstr ""
27618
27619 # type: verbatim
27620 #. type: verbatim
27621 #: ../fish/guestfish-actions.pod:2382
27622 #, no-wrap
27623 msgid ""
27624 " is-launching\n"
27625 "\n"
27626 msgstr ""
27627
27628 # type: =head2
27629 #. type: =head2
27630 #: ../fish/guestfish-actions.pod:2389
27631 msgid "is-lv"
27632 msgstr ""
27633
27634 # type: verbatim
27635 #. type: verbatim
27636 #: ../fish/guestfish-actions.pod:2391
27637 #, no-wrap
27638 msgid ""
27639 " is-lv device\n"
27640 "\n"
27641 msgstr ""
27642
27643 # type: =head2
27644 #. type: =head2
27645 #: ../fish/guestfish-actions.pod:2396
27646 msgid "is-ready"
27647 msgstr ""
27648
27649 # type: verbatim
27650 #. type: verbatim
27651 #: ../fish/guestfish-actions.pod:2398
27652 #, no-wrap
27653 msgid ""
27654 " is-ready\n"
27655 "\n"
27656 msgstr ""
27657
27658 # type: =head2
27659 #. type: =head2
27660 #: ../fish/guestfish-actions.pod:2405
27661 msgid "is-socket"
27662 msgstr ""
27663
27664 # type: verbatim
27665 #. type: verbatim
27666 #: ../fish/guestfish-actions.pod:2407
27667 #, no-wrap
27668 msgid ""
27669 " is-socket path\n"
27670 "\n"
27671 msgstr ""
27672
27673 # type: =head2
27674 #. type: =head2
27675 #: ../fish/guestfish-actions.pod:2414
27676 msgid "is-symlink"
27677 msgstr ""
27678
27679 # type: verbatim
27680 #. type: verbatim
27681 #: ../fish/guestfish-actions.pod:2416
27682 #, no-wrap
27683 msgid ""
27684 " is-symlink path\n"
27685 "\n"
27686 msgstr ""
27687
27688 #. type: =head2
27689 #: ../fish/guestfish-actions.pod:2423
27690 msgid "is-zero"
27691 msgstr ""
27692
27693 #. type: verbatim
27694 #: ../fish/guestfish-actions.pod:2425
27695 #, no-wrap
27696 msgid ""
27697 " is-zero path\n"
27698 "\n"
27699 msgstr ""
27700
27701 #. type: =head2
27702 #: ../fish/guestfish-actions.pod:2430
27703 msgid "is-zero-device"
27704 msgstr ""
27705
27706 #. type: verbatim
27707 #: ../fish/guestfish-actions.pod:2432
27708 #, no-wrap
27709 msgid ""
27710 " is-zero-device device\n"
27711 "\n"
27712 msgstr ""
27713
27714 # type: =head2
27715 #. type: =head2
27716 #: ../fish/guestfish-actions.pod:2438
27717 msgid "kill-subprocess"
27718 msgstr ""
27719
27720 # type: verbatim
27721 #. type: verbatim
27722 #: ../fish/guestfish-actions.pod:2440
27723 #, no-wrap
27724 msgid ""
27725 " kill-subprocess\n"
27726 "\n"
27727 msgstr ""
27728
27729 # type: =head2
27730 #. type: =head2
27731 #: ../fish/guestfish-actions.pod:2444
27732 msgid "launch"
27733 msgstr ""
27734
27735 # type: =head2
27736 #. type: =head2
27737 #: ../fish/guestfish-actions.pod:2446
27738 msgid "run"
27739 msgstr ""
27740
27741 # type: verbatim
27742 #. type: verbatim
27743 #: ../fish/guestfish-actions.pod:2448
27744 #, no-wrap
27745 msgid ""
27746 " launch\n"
27747 "\n"
27748 msgstr ""
27749
27750 # type: =head2
27751 #. type: =head2
27752 #: ../fish/guestfish-actions.pod:2456
27753 msgid "lchown"
27754 msgstr ""
27755
27756 # type: verbatim
27757 #. type: verbatim
27758 #: ../fish/guestfish-actions.pod:2458
27759 #, no-wrap
27760 msgid ""
27761 " lchown owner group path\n"
27762 "\n"
27763 msgstr ""
27764
27765 # type: textblock
27766 #. type: textblock
27767 #: ../fish/guestfish-actions.pod:2460
27768 msgid ""
27769 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
27770 "chown> but if C<path> is a symlink then the link itself is changed, not the "
27771 "target."
27772 msgstr ""
27773
27774 # type: =head2
27775 #. type: =head2
27776 #: ../fish/guestfish-actions.pod:2468
27777 msgid "lgetxattr"
27778 msgstr ""
27779
27780 # type: verbatim
27781 #. type: verbatim
27782 #: ../fish/guestfish-actions.pod:2470
27783 #, no-wrap
27784 msgid ""
27785 " lgetxattr path name\n"
27786 "\n"
27787 msgstr ""
27788
27789 # type: textblock
27790 #. type: textblock
27791 #: ../fish/guestfish-actions.pod:2486
27792 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
27793 msgstr ""
27794
27795 # type: =head2
27796 #. type: =head2
27797 #: ../fish/guestfish-actions.pod:2488
27798 msgid "lgetxattrs"
27799 msgstr ""
27800
27801 # type: verbatim
27802 #. type: verbatim
27803 #: ../fish/guestfish-actions.pod:2490
27804 #, no-wrap
27805 msgid ""
27806 " lgetxattrs path\n"
27807 "\n"
27808 msgstr ""
27809
27810 # type: textblock
27811 #. type: textblock
27812 #: ../fish/guestfish-actions.pod:2492
27813 msgid ""
27814 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
27815 "it returns the extended attributes of the link itself."
27816 msgstr ""
27817
27818 #. type: =head2
27819 #: ../fish/guestfish-actions.pod:2496
27820 msgid "list-9p"
27821 msgstr ""
27822
27823 #. type: verbatim
27824 #: ../fish/guestfish-actions.pod:2498
27825 #, no-wrap
27826 msgid ""
27827 " list-9p\n"
27828 "\n"
27829 msgstr ""
27830
27831 # type: =head2
27832 #. type: =head2
27833 #: ../fish/guestfish-actions.pod:2503
27834 msgid "list-devices"
27835 msgstr ""
27836
27837 # type: verbatim
27838 #. type: verbatim
27839 #: ../fish/guestfish-actions.pod:2505
27840 #, no-wrap
27841 msgid ""
27842 " list-devices\n"
27843 "\n"
27844 msgstr ""
27845
27846 # type: =head2
27847 #. type: =head2
27848 #: ../fish/guestfish-actions.pod:2513
27849 msgid "list-filesystems"
27850 msgstr ""
27851
27852 # type: verbatim
27853 #. type: verbatim
27854 #: ../fish/guestfish-actions.pod:2515
27855 #, no-wrap
27856 msgid ""
27857 " list-filesystems\n"
27858 "\n"
27859 msgstr ""
27860
27861 # type: textblock
27862 #. type: textblock
27863 #: ../fish/guestfish-actions.pod:2534
27864 msgid ""
27865 "This command runs other libguestfs commands, which might include L</mount> "
27866 "and L</umount>, and therefore you should use this soon after launch and only "
27867 "when nothing is mounted."
27868 msgstr ""
27869
27870 # type: textblock
27871 #. type: textblock
27872 #: ../fish/guestfish-actions.pod:2538
27873 msgid ""
27874 "Not all of the filesystems returned will be mountable.  In particular, swap "
27875 "partitions are returned in the list.  Also this command does not check that "
27876 "each filesystem found is valid and mountable, and some filesystems might be "
27877 "mountable but require special options.  Filesystems may not all belong to a "
27878 "single logical operating system (use L</inspect-os> to look for OSes)."
27879 msgstr ""
27880
27881 # type: =head2
27882 #. type: =head2
27883 #: ../fish/guestfish-actions.pod:2546
27884 msgid "list-partitions"
27885 msgstr ""
27886
27887 # type: verbatim
27888 #. type: verbatim
27889 #: ../fish/guestfish-actions.pod:2548
27890 #, no-wrap
27891 msgid ""
27892 " list-partitions\n"
27893 "\n"
27894 msgstr ""
27895
27896 # type: textblock
27897 #. type: textblock
27898 #: ../fish/guestfish-actions.pod:2554
27899 msgid ""
27900 "This does not return logical volumes.  For that you will need to call L</"
27901 "lvs>."
27902 msgstr ""
27903
27904 # type: =head2
27905 #. type: =head2
27906 #: ../fish/guestfish-actions.pod:2559
27907 msgid "ll"
27908 msgstr ""
27909
27910 # type: verbatim
27911 #. type: verbatim
27912 #: ../fish/guestfish-actions.pod:2561
27913 #, no-wrap
27914 msgid ""
27915 " ll directory\n"
27916 "\n"
27917 msgstr ""
27918
27919 # type: =head2
27920 #. type: =head2
27921 #: ../fish/guestfish-actions.pod:2569
27922 msgid "ln"
27923 msgstr ""
27924
27925 # type: verbatim
27926 #. type: verbatim
27927 #: ../fish/guestfish-actions.pod:2571
27928 #, no-wrap
27929 msgid ""
27930 " ln target linkname\n"
27931 "\n"
27932 msgstr ""
27933
27934 # type: =head2
27935 #. type: =head2
27936 #: ../fish/guestfish-actions.pod:2575
27937 msgid "ln-f"
27938 msgstr ""
27939
27940 # type: verbatim
27941 #. type: verbatim
27942 #: ../fish/guestfish-actions.pod:2577
27943 #, no-wrap
27944 msgid ""
27945 " ln-f target linkname\n"
27946 "\n"
27947 msgstr ""
27948
27949 # type: =head2
27950 #. type: =head2
27951 #: ../fish/guestfish-actions.pod:2582
27952 msgid "ln-s"
27953 msgstr ""
27954
27955 # type: verbatim
27956 #. type: verbatim
27957 #: ../fish/guestfish-actions.pod:2584
27958 #, no-wrap
27959 msgid ""
27960 " ln-s target linkname\n"
27961 "\n"
27962 msgstr ""
27963
27964 # type: =head2
27965 #. type: =head2
27966 #: ../fish/guestfish-actions.pod:2588
27967 msgid "ln-sf"
27968 msgstr ""
27969
27970 # type: verbatim
27971 #. type: verbatim
27972 #: ../fish/guestfish-actions.pod:2590
27973 #, no-wrap
27974 msgid ""
27975 " ln-sf target linkname\n"
27976 "\n"
27977 msgstr ""
27978
27979 # type: =head2
27980 #. type: =head2
27981 #: ../fish/guestfish-actions.pod:2595
27982 msgid "lremovexattr"
27983 msgstr ""
27984
27985 # type: verbatim
27986 #. type: verbatim
27987 #: ../fish/guestfish-actions.pod:2597
27988 #, no-wrap
27989 msgid ""
27990 " lremovexattr xattr path\n"
27991 "\n"
27992 msgstr ""
27993
27994 # type: textblock
27995 #. type: textblock
27996 #: ../fish/guestfish-actions.pod:2599
27997 msgid ""
27998 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
27999 "it removes an extended attribute of the link itself."
28000 msgstr ""
28001
28002 # type: =head2
28003 #. type: =head2
28004 #: ../fish/guestfish-actions.pod:2603
28005 msgid "ls"
28006 msgstr ""
28007
28008 # type: verbatim
28009 #. type: verbatim
28010 #: ../fish/guestfish-actions.pod:2605
28011 #, no-wrap
28012 msgid ""
28013 " ls directory\n"
28014 "\n"
28015 msgstr ""
28016
28017 # type: textblock
28018 #. type: textblock
28019 #: ../fish/guestfish-actions.pod:2611
28020 msgid ""
28021 "This command is mostly useful for interactive sessions.  Programs should "
28022 "probably use L</readdir> instead."
28023 msgstr ""
28024
28025 # type: =head2
28026 #. type: =head2
28027 #: ../fish/guestfish-actions.pod:2614
28028 msgid "lsetxattr"
28029 msgstr ""
28030
28031 # type: verbatim
28032 #. type: verbatim
28033 #: ../fish/guestfish-actions.pod:2616
28034 #, no-wrap
28035 msgid ""
28036 " lsetxattr xattr val vallen path\n"
28037 "\n"
28038 msgstr ""
28039
28040 # type: textblock
28041 #. type: textblock
28042 #: ../fish/guestfish-actions.pod:2618
28043 msgid ""
28044 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
28045 "sets an extended attribute of the link itself."
28046 msgstr ""
28047
28048 # type: =head2
28049 #. type: =head2
28050 #: ../fish/guestfish-actions.pod:2622
28051 msgid "lstat"
28052 msgstr ""
28053
28054 # type: verbatim
28055 #. type: verbatim
28056 #: ../fish/guestfish-actions.pod:2624
28057 #, no-wrap
28058 msgid ""
28059 " lstat path\n"
28060 "\n"
28061 msgstr ""
28062
28063 # type: textblock
28064 #. type: textblock
28065 #: ../fish/guestfish-actions.pod:2628
28066 msgid ""
28067 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
28068 "the link is stat-ed, not the file it refers to."
28069 msgstr ""
28070
28071 # type: =head2
28072 #. type: =head2
28073 #: ../fish/guestfish-actions.pod:2634
28074 msgid "lstatlist"
28075 msgstr ""
28076
28077 # type: verbatim
28078 #. type: verbatim
28079 #: ../fish/guestfish-actions.pod:2636
28080 #, no-wrap
28081 msgid ""
28082 " lstatlist path 'names ...'\n"
28083 "\n"
28084 msgstr ""
28085
28086 # type: textblock
28087 #. type: textblock
28088 #: ../fish/guestfish-actions.pod:2638
28089 msgid ""
28090 "This call allows you to perform the L</lstat> operation on multiple files, "
28091 "where all files are in the directory C<path>.  C<names> is the list of files "
28092 "from this directory."
28093 msgstr ""
28094
28095 # type: textblock
28096 #. type: textblock
28097 #: ../fish/guestfish-actions.pod:2647
28098 msgid ""
28099 "This call is intended for programs that want to efficiently list a directory "
28100 "contents without making many round-trips.  See also L</lxattrlist> for a "
28101 "similarly efficient call for getting extended attributes.  Very long "
28102 "directory listings might cause the protocol message size to be exceeded, "
28103 "causing this call to fail.  The caller must split up such requests into "
28104 "smaller groups of names."
28105 msgstr ""
28106
28107 # type: =head2
28108 #. type: =head2
28109 #: ../fish/guestfish-actions.pod:2655
28110 msgid "luks-add-key"
28111 msgstr ""
28112
28113 # type: verbatim
28114 #. type: verbatim
28115 #: ../fish/guestfish-actions.pod:2657
28116 #, no-wrap
28117 msgid ""
28118 " luks-add-key device keyslot\n"
28119 "\n"
28120 msgstr ""
28121
28122 # type: textblock
28123 #. type: textblock
28124 #: ../fish/guestfish-actions.pod:2664
28125 msgid ""
28126 "Note that if C<keyslot> already contains a key, then this command will "
28127 "fail.  You have to use L</luks-kill-slot> first to remove that key."
28128 msgstr ""
28129
28130 # type: textblock
28131 #. type: textblock
28132 #: ../fish/guestfish-actions.pod:2668 ../fish/guestfish-actions.pod:2690
28133 #: ../fish/guestfish-actions.pod:2703 ../fish/guestfish-actions.pod:2717
28134 #: ../fish/guestfish-actions.pod:2740 ../fish/guestfish-actions.pod:2750
28135 msgid ""
28136 "This command has one or more key or passphrase parameters.  Guestfish will "
28137 "prompt for these separately."
28138 msgstr ""
28139
28140 # type: =head2
28141 #. type: =head2
28142 #: ../fish/guestfish-actions.pod:2671
28143 msgid "luks-close"
28144 msgstr ""
28145
28146 # type: verbatim
28147 #. type: verbatim
28148 #: ../fish/guestfish-actions.pod:2673
28149 #, no-wrap
28150 msgid ""
28151 " luks-close device\n"
28152 "\n"
28153 msgstr ""
28154
28155 # type: textblock
28156 #. type: textblock
28157 #: ../fish/guestfish-actions.pod:2675
28158 msgid ""
28159 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
28160 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
28161 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
28162 "block device."
28163 msgstr ""
28164
28165 # type: =head2
28166 #. type: =head2
28167 #: ../fish/guestfish-actions.pod:2681
28168 msgid "luks-format"
28169 msgstr ""
28170
28171 # type: verbatim
28172 #. type: verbatim
28173 #: ../fish/guestfish-actions.pod:2683
28174 #, no-wrap
28175 msgid ""
28176 " luks-format device keyslot\n"
28177 "\n"
28178 msgstr ""
28179
28180 # type: =head2
28181 #. type: =head2
28182 #: ../fish/guestfish-actions.pod:2696
28183 msgid "luks-format-cipher"
28184 msgstr ""
28185
28186 # type: verbatim
28187 #. type: verbatim
28188 #: ../fish/guestfish-actions.pod:2698
28189 #, no-wrap
28190 msgid ""
28191 " luks-format-cipher device keyslot cipher\n"
28192 "\n"
28193 msgstr ""
28194
28195 # type: textblock
28196 #. type: textblock
28197 #: ../fish/guestfish-actions.pod:2700
28198 msgid ""
28199 "This command is the same as L</luks-format> but it also allows you to set "
28200 "the C<cipher> used."
28201 msgstr ""
28202
28203 # type: =head2
28204 #. type: =head2
28205 #: ../fish/guestfish-actions.pod:2709
28206 msgid "luks-kill-slot"
28207 msgstr ""
28208
28209 # type: verbatim
28210 #. type: verbatim
28211 #: ../fish/guestfish-actions.pod:2711
28212 #, no-wrap
28213 msgid ""
28214 " luks-kill-slot device keyslot\n"
28215 "\n"
28216 msgstr ""
28217
28218 # type: =head2
28219 #. type: =head2
28220 #: ../fish/guestfish-actions.pod:2720
28221 msgid "luks-open"
28222 msgstr ""
28223
28224 # type: verbatim
28225 #. type: verbatim
28226 #: ../fish/guestfish-actions.pod:2722
28227 #, no-wrap
28228 msgid ""
28229 " luks-open device mapname\n"
28230 "\n"
28231 msgstr ""
28232
28233 # type: textblock
28234 #. type: textblock
28235 #: ../fish/guestfish-actions.pod:2736
28236 msgid ""
28237 "If this block device contains LVM volume groups, then calling L</vgscan> "
28238 "followed by L</vg-activate-all> will make them visible."
28239 msgstr ""
28240
28241 # type: =head2
28242 #. type: =head2
28243 #: ../fish/guestfish-actions.pod:2743
28244 msgid "luks-open-ro"
28245 msgstr ""
28246
28247 # type: verbatim
28248 #. type: verbatim
28249 #: ../fish/guestfish-actions.pod:2745
28250 #, no-wrap
28251 msgid ""
28252 " luks-open-ro device mapname\n"
28253 "\n"
28254 msgstr ""
28255
28256 # type: textblock
28257 #. type: textblock
28258 #: ../fish/guestfish-actions.pod:2747
28259 msgid ""
28260 "This is the same as L</luks-open> except that a read-only mapping is created."
28261 msgstr ""
28262
28263 # type: =head2
28264 #. type: =head2
28265 #: ../fish/guestfish-actions.pod:2753
28266 msgid "lvcreate"
28267 msgstr ""
28268
28269 # type: verbatim
28270 #. type: verbatim
28271 #: ../fish/guestfish-actions.pod:2755
28272 #, no-wrap
28273 msgid ""
28274 " lvcreate logvol volgroup mbytes\n"
28275 "\n"
28276 msgstr ""
28277
28278 # type: =head2
28279 #. type: =head2
28280 #: ../fish/guestfish-actions.pod:2760
28281 msgid "lvm-canonical-lv-name"
28282 msgstr ""
28283
28284 # type: verbatim
28285 #. type: verbatim
28286 #: ../fish/guestfish-actions.pod:2762
28287 #, no-wrap
28288 msgid ""
28289 " lvm-canonical-lv-name lvname\n"
28290 "\n"
28291 msgstr ""
28292
28293 # type: textblock
28294 #. type: textblock
28295 #: ../fish/guestfish-actions.pod:2771
28296 msgid "See also L</is-lv>."
28297 msgstr ""
28298
28299 # type: =head2
28300 #. type: =head2
28301 #: ../fish/guestfish-actions.pod:2773
28302 msgid "lvm-clear-filter"
28303 msgstr ""
28304
28305 # type: verbatim
28306 #. type: verbatim
28307 #: ../fish/guestfish-actions.pod:2775
28308 #, no-wrap
28309 msgid ""
28310 " lvm-clear-filter\n"
28311 "\n"
28312 msgstr ""
28313
28314 # type: textblock
28315 #. type: textblock
28316 #: ../fish/guestfish-actions.pod:2777
28317 msgid ""
28318 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
28319 "block device."
28320 msgstr ""
28321
28322 # type: =head2
28323 #. type: =head2
28324 #: ../fish/guestfish-actions.pod:2783
28325 msgid "lvm-remove-all"
28326 msgstr ""
28327
28328 # type: verbatim
28329 #. type: verbatim
28330 #: ../fish/guestfish-actions.pod:2785
28331 #, no-wrap
28332 msgid ""
28333 " lvm-remove-all\n"
28334 "\n"
28335 msgstr ""
28336
28337 # type: =head2
28338 #. type: =head2
28339 #: ../fish/guestfish-actions.pod:2793
28340 msgid "lvm-set-filter"
28341 msgstr ""
28342
28343 # type: verbatim
28344 #. type: verbatim
28345 #: ../fish/guestfish-actions.pod:2795
28346 #, no-wrap
28347 msgid ""
28348 " lvm-set-filter 'devices ...'\n"
28349 "\n"
28350 msgstr ""
28351
28352 # type: =head2
28353 #. type: =head2
28354 #: ../fish/guestfish-actions.pod:2820
28355 msgid "lvremove"
28356 msgstr ""
28357
28358 # type: verbatim
28359 #. type: verbatim
28360 #: ../fish/guestfish-actions.pod:2822
28361 #, no-wrap
28362 msgid ""
28363 " lvremove device\n"
28364 "\n"
28365 msgstr ""
28366
28367 # type: =head2
28368 #. type: =head2
28369 #: ../fish/guestfish-actions.pod:2830
28370 msgid "lvrename"
28371 msgstr ""
28372
28373 # type: verbatim
28374 #. type: verbatim
28375 #: ../fish/guestfish-actions.pod:2832
28376 #, no-wrap
28377 msgid ""
28378 " lvrename logvol newlogvol\n"
28379 "\n"
28380 msgstr ""
28381
28382 # type: =head2
28383 #. type: =head2
28384 #: ../fish/guestfish-actions.pod:2836
28385 msgid "lvresize"
28386 msgstr ""
28387
28388 # type: verbatim
28389 #. type: verbatim
28390 #: ../fish/guestfish-actions.pod:2838
28391 #, no-wrap
28392 msgid ""
28393 " lvresize device mbytes\n"
28394 "\n"
28395 msgstr ""
28396
28397 # type: =head2
28398 #. type: =head2
28399 #: ../fish/guestfish-actions.pod:2844
28400 msgid "lvresize-free"
28401 msgstr ""
28402
28403 # type: verbatim
28404 #. type: verbatim
28405 #: ../fish/guestfish-actions.pod:2846
28406 #, no-wrap
28407 msgid ""
28408 " lvresize-free lv percent\n"
28409 "\n"
28410 msgstr ""
28411
28412 # type: =head2
28413 #. type: =head2
28414 #: ../fish/guestfish-actions.pod:2854
28415 msgid "lvs"
28416 msgstr ""
28417
28418 # type: verbatim
28419 #. type: verbatim
28420 #: ../fish/guestfish-actions.pod:2856
28421 #, no-wrap
28422 msgid ""
28423 " lvs\n"
28424 "\n"
28425 msgstr ""
28426
28427 # type: textblock
28428 #. type: textblock
28429 #: ../fish/guestfish-actions.pod:2864
28430 msgid "See also L</lvs-full>, L</list-filesystems>."
28431 msgstr ""
28432
28433 # type: =head2
28434 #. type: =head2
28435 #: ../fish/guestfish-actions.pod:2866
28436 msgid "lvs-full"
28437 msgstr ""
28438
28439 # type: verbatim
28440 #. type: verbatim
28441 #: ../fish/guestfish-actions.pod:2868
28442 #, no-wrap
28443 msgid ""
28444 " lvs-full\n"
28445 "\n"
28446 msgstr ""
28447
28448 # type: =head2
28449 #. type: =head2
28450 #: ../fish/guestfish-actions.pod:2873
28451 msgid "lvuuid"
28452 msgstr ""
28453
28454 # type: verbatim
28455 #. type: verbatim
28456 #: ../fish/guestfish-actions.pod:2875
28457 #, no-wrap
28458 msgid ""
28459 " lvuuid device\n"
28460 "\n"
28461 msgstr ""
28462
28463 # type: =head2
28464 #. type: =head2
28465 #: ../fish/guestfish-actions.pod:2879
28466 msgid "lxattrlist"
28467 msgstr ""
28468
28469 # type: verbatim
28470 #. type: verbatim
28471 #: ../fish/guestfish-actions.pod:2881
28472 #, no-wrap
28473 msgid ""
28474 " lxattrlist path 'names ...'\n"
28475 "\n"
28476 msgstr ""
28477
28478 # type: textblock
28479 #. type: textblock
28480 #: ../fish/guestfish-actions.pod:2897
28481 msgid ""
28482 "This call is intended for programs that want to efficiently list a directory "
28483 "contents without making many round-trips.  See also L</lstatlist> for a "
28484 "similarly efficient call for getting standard stats.  Very long directory "
28485 "listings might cause the protocol message size to be exceeded, causing this "
28486 "call to fail.  The caller must split up such requests into smaller groups of "
28487 "names."
28488 msgstr ""
28489
28490 # type: =head2
28491 #. type: =head2
28492 #: ../fish/guestfish-actions.pod:2905
28493 msgid "mkdir"
28494 msgstr ""
28495
28496 # type: verbatim
28497 #. type: verbatim
28498 #: ../fish/guestfish-actions.pod:2907
28499 #, no-wrap
28500 msgid ""
28501 " mkdir path\n"
28502 "\n"
28503 msgstr ""
28504
28505 # type: =head2
28506 #. type: =head2
28507 #: ../fish/guestfish-actions.pod:2911
28508 msgid "mkdir-mode"
28509 msgstr ""
28510
28511 # type: verbatim
28512 #. type: verbatim
28513 #: ../fish/guestfish-actions.pod:2913
28514 #, no-wrap
28515 msgid ""
28516 " mkdir-mode path mode\n"
28517 "\n"
28518 msgstr ""
28519
28520 # type: textblock
28521 #. type: textblock
28522 #: ../fish/guestfish-actions.pod:2922
28523 msgid "See also L</mkdir>, L</umask>"
28524 msgstr ""
28525
28526 # type: =head2
28527 #. type: =head2
28528 #: ../fish/guestfish-actions.pod:2924
28529 msgid "mkdir-p"
28530 msgstr ""
28531
28532 # type: verbatim
28533 #. type: verbatim
28534 #: ../fish/guestfish-actions.pod:2926
28535 #, no-wrap
28536 msgid ""
28537 " mkdir-p path\n"
28538 "\n"
28539 msgstr ""
28540
28541 # type: =head2
28542 #. type: =head2
28543 #: ../fish/guestfish-actions.pod:2931
28544 msgid "mkdtemp"
28545 msgstr ""
28546
28547 # type: verbatim
28548 #. type: verbatim
28549 #: ../fish/guestfish-actions.pod:2933
28550 #, no-wrap
28551 msgid ""
28552 " mkdtemp template\n"
28553 "\n"
28554 msgstr ""
28555
28556 # type: =head2
28557 #. type: =head2
28558 #: ../fish/guestfish-actions.pod:2954
28559 msgid "mke2fs-J"
28560 msgstr ""
28561
28562 # type: verbatim
28563 #. type: verbatim
28564 #: ../fish/guestfish-actions.pod:2956
28565 #, no-wrap
28566 msgid ""
28567 " mke2fs-J fstype blocksize device journal\n"
28568 "\n"
28569 msgstr ""
28570
28571 # type: textblock
28572 #. type: textblock
28573 #: ../fish/guestfish-actions.pod:2964
28574 msgid "See also L</mke2journal>."
28575 msgstr ""
28576
28577 # type: =head2
28578 #. type: =head2
28579 #: ../fish/guestfish-actions.pod:2966
28580 msgid "mke2fs-JL"
28581 msgstr ""
28582
28583 # type: verbatim
28584 #. type: verbatim
28585 #: ../fish/guestfish-actions.pod:2968
28586 #, no-wrap
28587 msgid ""
28588 " mke2fs-JL fstype blocksize device label\n"
28589 "\n"
28590 msgstr ""
28591
28592 # type: textblock
28593 #. type: textblock
28594 #: ../fish/guestfish-actions.pod:2973
28595 msgid "See also L</mke2journal-L>."
28596 msgstr ""
28597
28598 # type: =head2
28599 #. type: =head2
28600 #: ../fish/guestfish-actions.pod:2975
28601 msgid "mke2fs-JU"
28602 msgstr ""
28603
28604 # type: verbatim
28605 #. type: verbatim
28606 #: ../fish/guestfish-actions.pod:2977
28607 #, no-wrap
28608 msgid ""
28609 " mke2fs-JU fstype blocksize device uuid\n"
28610 "\n"
28611 msgstr ""
28612
28613 # type: textblock
28614 #. type: textblock
28615 #: ../fish/guestfish-actions.pod:2982
28616 msgid "See also L</mke2journal-U>."
28617 msgstr ""
28618
28619 # type: =head2
28620 #. type: =head2
28621 #: ../fish/guestfish-actions.pod:2984
28622 msgid "mke2journal"
28623 msgstr ""
28624
28625 # type: verbatim
28626 #. type: verbatim
28627 #: ../fish/guestfish-actions.pod:2986
28628 #, no-wrap
28629 msgid ""
28630 " mke2journal blocksize device\n"
28631 "\n"
28632 msgstr ""
28633
28634 # type: =head2
28635 #. type: =head2
28636 #: ../fish/guestfish-actions.pod:2993
28637 msgid "mke2journal-L"
28638 msgstr ""
28639
28640 # type: verbatim
28641 #. type: verbatim
28642 #: ../fish/guestfish-actions.pod:2995
28643 #, no-wrap
28644 msgid ""
28645 " mke2journal-L blocksize label device\n"
28646 "\n"
28647 msgstr ""
28648
28649 # type: =head2
28650 #. type: =head2
28651 #: ../fish/guestfish-actions.pod:2999
28652 msgid "mke2journal-U"
28653 msgstr ""
28654
28655 # type: verbatim
28656 #. type: verbatim
28657 #: ../fish/guestfish-actions.pod:3001
28658 #, no-wrap
28659 msgid ""
28660 " mke2journal-U blocksize uuid device\n"
28661 "\n"
28662 msgstr ""
28663
28664 # type: =head2
28665 #. type: =head2
28666 #: ../fish/guestfish-actions.pod:3005
28667 msgid "mkfifo"
28668 msgstr ""
28669
28670 # type: verbatim
28671 #. type: verbatim
28672 #: ../fish/guestfish-actions.pod:3007
28673 #, no-wrap
28674 msgid ""
28675 " mkfifo mode path\n"
28676 "\n"
28677 msgstr ""
28678
28679 # type: textblock
28680 #. type: textblock
28681 #: ../fish/guestfish-actions.pod:3009
28682 msgid ""
28683 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
28684 "is just a convenient wrapper around L</mknod>."
28685 msgstr ""
28686
28687 # type: =head2
28688 #. type: =head2
28689 #: ../fish/guestfish-actions.pod:3015
28690 msgid "mkfs"
28691 msgstr ""
28692
28693 # type: verbatim
28694 #. type: verbatim
28695 #: ../fish/guestfish-actions.pod:3017
28696 #, no-wrap
28697 msgid ""
28698 " mkfs fstype device\n"
28699 "\n"
28700 msgstr ""
28701
28702 # type: =head2
28703 #. type: =head2
28704 #: ../fish/guestfish-actions.pod:3023
28705 msgid "mkfs-b"
28706 msgstr ""
28707
28708 # type: verbatim
28709 #. type: verbatim
28710 #: ../fish/guestfish-actions.pod:3025
28711 #, no-wrap
28712 msgid ""
28713 " mkfs-b fstype blocksize device\n"
28714 "\n"
28715 msgstr ""
28716
28717 # type: textblock
28718 #. type: textblock
28719 #: ../fish/guestfish-actions.pod:3027
28720 msgid ""
28721 "This call is similar to L</mkfs>, but it allows you to control the block "
28722 "size of the resulting filesystem.  Supported block sizes depend on the "
28723 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28724 msgstr ""
28725
28726 # type: =head2
28727 #. type: =head2
28728 #: ../fish/guestfish-actions.pod:3042
28729 msgid "mkfs-opts"
28730 msgstr ""
28731
28732 #. type: verbatim
28733 #: ../fish/guestfish-actions.pod:3044
28734 #, no-wrap
28735 msgid ""
28736 " mkfs-opts fstype device [blocksize:..] [features:..]\n"
28737 "\n"
28738 msgstr ""
28739
28740 # type: =head2
28741 #. type: =head2
28742 #: ../fish/guestfish-actions.pod:3079
28743 msgid "mkmountpoint"
28744 msgstr ""
28745
28746 # type: verbatim
28747 #. type: verbatim
28748 #: ../fish/guestfish-actions.pod:3081
28749 #, no-wrap
28750 msgid ""
28751 " mkmountpoint exemptpath\n"
28752 "\n"
28753 msgstr ""
28754
28755 # type: textblock
28756 #. type: textblock
28757 #: ../fish/guestfish-actions.pod:3083
28758 msgid ""
28759 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
28760 "to create extra mountpoints before mounting the first filesystem."
28761 msgstr ""
28762
28763 # type: textblock
28764 #. type: textblock
28765 #: ../fish/guestfish-actions.pod:3107
28766 msgid ""
28767 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
28768 "unexpected errors if you try to mix these calls.  It is safest to manually "
28769 "unmount filesystems and remove mountpoints after use."
28770 msgstr ""
28771
28772 # type: textblock
28773 #. type: textblock
28774 #: ../fish/guestfish-actions.pod:3111
28775 msgid ""
28776 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
28777 "for this to work for manual mountpoints, you must ensure that the innermost "
28778 "mountpoints have the longest pathnames, as in the example code above."
28779 msgstr ""
28780
28781 #. type: textblock
28782 #: ../fish/guestfish-actions.pod:3118
28783 msgid ""
28784 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
28785 "L</umount-all> to be called when the handle is closed which can also trigger "
28786 "these issues."
28787 msgstr ""
28788
28789 # type: =head2
28790 #. type: =head2
28791 #: ../fish/guestfish-actions.pod:3122
28792 msgid "mknod"
28793 msgstr ""
28794
28795 # type: verbatim
28796 #. type: verbatim
28797 #: ../fish/guestfish-actions.pod:3124
28798 #, no-wrap
28799 msgid ""
28800 " mknod mode devmajor devminor path\n"
28801 "\n"
28802 msgstr ""
28803
28804 # type: textblock
28805 #. type: textblock
28806 #: ../fish/guestfish-actions.pod:3134
28807 msgid ""
28808 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28809 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28810 "regular file).  These constants are available in the standard Linux header "
28811 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
28812 "wrappers around this command which bitwise OR in the appropriate constant "
28813 "for you."
28814 msgstr ""
28815
28816 # type: =head2
28817 #. type: =head2
28818 #: ../fish/guestfish-actions.pod:3144
28819 msgid "mknod-b"
28820 msgstr ""
28821
28822 # type: verbatim
28823 #. type: verbatim
28824 #: ../fish/guestfish-actions.pod:3146
28825 #, no-wrap
28826 msgid ""
28827 " mknod-b mode devmajor devminor path\n"
28828 "\n"
28829 msgstr ""
28830
28831 # type: textblock
28832 #. type: textblock
28833 #: ../fish/guestfish-actions.pod:3148
28834 msgid ""
28835 "This call creates a block device node called C<path> with mode C<mode> and "
28836 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28837 "wrapper around L</mknod>."
28838 msgstr ""
28839
28840 # type: =head2
28841 #. type: =head2
28842 #: ../fish/guestfish-actions.pod:3154
28843 msgid "mknod-c"
28844 msgstr ""
28845
28846 # type: verbatim
28847 #. type: verbatim
28848 #: ../fish/guestfish-actions.pod:3156
28849 #, no-wrap
28850 msgid ""
28851 " mknod-c mode devmajor devminor path\n"
28852 "\n"
28853 msgstr ""
28854
28855 # type: textblock
28856 #. type: textblock
28857 #: ../fish/guestfish-actions.pod:3158
28858 msgid ""
28859 "This call creates a char device node called C<path> with mode C<mode> and "
28860 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28861 "wrapper around L</mknod>."
28862 msgstr ""
28863
28864 # type: =head2
28865 #. type: =head2
28866 #: ../fish/guestfish-actions.pod:3164
28867 msgid "mkswap"
28868 msgstr ""
28869
28870 # type: verbatim
28871 #. type: verbatim
28872 #: ../fish/guestfish-actions.pod:3166
28873 #, no-wrap
28874 msgid ""
28875 " mkswap device\n"
28876 "\n"
28877 msgstr ""
28878
28879 # type: =head2
28880 #. type: =head2
28881 #: ../fish/guestfish-actions.pod:3170
28882 msgid "mkswap-L"
28883 msgstr ""
28884
28885 # type: verbatim
28886 #. type: verbatim
28887 #: ../fish/guestfish-actions.pod:3172
28888 #, no-wrap
28889 msgid ""
28890 " mkswap-L label device\n"
28891 "\n"
28892 msgstr ""
28893
28894 # type: =head2
28895 #. type: =head2
28896 #: ../fish/guestfish-actions.pod:3180
28897 msgid "mkswap-U"
28898 msgstr ""
28899
28900 # type: verbatim
28901 #. type: verbatim
28902 #: ../fish/guestfish-actions.pod:3182
28903 #, no-wrap
28904 msgid ""
28905 " mkswap-U uuid device\n"
28906 "\n"
28907 msgstr ""
28908
28909 # type: =head2
28910 #. type: =head2
28911 #: ../fish/guestfish-actions.pod:3186
28912 msgid "mkswap-file"
28913 msgstr ""
28914
28915 # type: verbatim
28916 #. type: verbatim
28917 #: ../fish/guestfish-actions.pod:3188
28918 #, no-wrap
28919 msgid ""
28920 " mkswap-file path\n"
28921 "\n"
28922 msgstr ""
28923
28924 # type: textblock
28925 #. type: textblock
28926 #: ../fish/guestfish-actions.pod:3192
28927 msgid ""
28928 "This command just writes a swap file signature to an existing file.  To "
28929 "create the file itself, use something like L</fallocate>."
28930 msgstr ""
28931
28932 # type: =head2
28933 #. type: =head2
28934 #: ../fish/guestfish-actions.pod:3195
28935 msgid "modprobe"
28936 msgstr ""
28937
28938 # type: verbatim
28939 #. type: verbatim
28940 #: ../fish/guestfish-actions.pod:3197
28941 #, no-wrap
28942 msgid ""
28943 " modprobe modulename\n"
28944 "\n"
28945 msgstr ""
28946
28947 # type: =head2
28948 #. type: =head2
28949 #: ../fish/guestfish-actions.pod:3204
28950 msgid "mount"
28951 msgstr ""
28952
28953 # type: verbatim
28954 #. type: verbatim
28955 #: ../fish/guestfish-actions.pod:3206
28956 #, no-wrap
28957 msgid ""
28958 " mount device mountpoint\n"
28959 "\n"
28960 msgstr ""
28961
28962 # type: textblock
28963 #. type: textblock
28964 #: ../fish/guestfish-actions.pod:3222
28965 msgid ""
28966 "B<Important note:> When you use this call, the filesystem options C<sync> "
28967 "and C<noatime> are set implicitly.  This was originally done because we "
28968 "thought it would improve reliability, but it turns out that I<-o sync> has a "
28969 "very large negative performance impact and negligible effect on "
28970 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
28971 "code that needs performance, and instead use L</mount-options> (use an empty "
28972 "string for the first parameter if you don't want any options)."
28973 msgstr ""
28974
28975 #. type: =head2
28976 #: ../fish/guestfish-actions.pod:3239
28977 msgid "mount-9p"
28978 msgstr ""
28979
28980 #. type: verbatim
28981 #: ../fish/guestfish-actions.pod:3241
28982 #, no-wrap
28983 msgid ""
28984 " mount-9p mounttag mountpoint [options:..]\n"
28985 "\n"
28986 msgstr ""
28987
28988 # type: =head2
28989 #. type: =head2
28990 #: ../fish/guestfish-actions.pod:3252
28991 msgid "mount-loop"
28992 msgstr ""
28993
28994 # type: verbatim
28995 #. type: verbatim
28996 #: ../fish/guestfish-actions.pod:3254
28997 #, no-wrap
28998 msgid ""
28999 " mount-loop file mountpoint\n"
29000 "\n"
29001 msgstr ""
29002
29003 # type: =head2
29004 #. type: =head2
29005 #: ../fish/guestfish-actions.pod:3260
29006 msgid "mount-options"
29007 msgstr ""
29008
29009 # type: verbatim
29010 #. type: verbatim
29011 #: ../fish/guestfish-actions.pod:3262
29012 #, no-wrap
29013 msgid ""
29014 " mount-options options device mountpoint\n"
29015 "\n"
29016 msgstr ""
29017
29018 # type: textblock
29019 #. type: textblock
29020 #: ../fish/guestfish-actions.pod:3264
29021 msgid ""
29022 "This is the same as the L</mount> command, but it allows you to set the "
29023 "mount options as for the L<mount(8)> I<-o> flag."
29024 msgstr ""
29025
29026 # type: =head2
29027 #. type: =head2
29028 #: ../fish/guestfish-actions.pod:3272
29029 msgid "mount-ro"
29030 msgstr ""
29031
29032 # type: verbatim
29033 #. type: verbatim
29034 #: ../fish/guestfish-actions.pod:3274
29035 #, no-wrap
29036 msgid ""
29037 " mount-ro device mountpoint\n"
29038 "\n"
29039 msgstr ""
29040
29041 # type: textblock
29042 #. type: textblock
29043 #: ../fish/guestfish-actions.pod:3276
29044 msgid ""
29045 "This is the same as the L</mount> command, but it mounts the filesystem with "
29046 "the read-only (I<-o ro>) flag."
29047 msgstr ""
29048
29049 # type: =head2
29050 #. type: =head2
29051 #: ../fish/guestfish-actions.pod:3279
29052 msgid "mount-vfs"
29053 msgstr ""
29054
29055 # type: verbatim
29056 #. type: verbatim
29057 #: ../fish/guestfish-actions.pod:3281
29058 #, no-wrap
29059 msgid ""
29060 " mount-vfs options vfstype device mountpoint\n"
29061 "\n"
29062 msgstr ""
29063
29064 # type: textblock
29065 #. type: textblock
29066 #: ../fish/guestfish-actions.pod:3283
29067 msgid ""
29068 "This is the same as the L</mount> command, but it allows you to set both the "
29069 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
29070 msgstr ""
29071
29072 # type: =head2
29073 #. type: =head2
29074 #: ../fish/guestfish-actions.pod:3287
29075 msgid "mountpoints"
29076 msgstr ""
29077
29078 # type: verbatim
29079 #. type: verbatim
29080 #: ../fish/guestfish-actions.pod:3289
29081 #, no-wrap
29082 msgid ""
29083 " mountpoints\n"
29084 "\n"
29085 msgstr ""
29086
29087 # type: textblock
29088 #. type: textblock
29089 #: ../fish/guestfish-actions.pod:3291
29090 msgid ""
29091 "This call is similar to L</mounts>.  That call returns a list of devices.  "
29092 "This one returns a hash table (map) of device name to directory where the "
29093 "device is mounted."
29094 msgstr ""
29095
29096 # type: =head2
29097 #. type: =head2
29098 #: ../fish/guestfish-actions.pod:3295
29099 msgid "mounts"
29100 msgstr ""
29101
29102 # type: verbatim
29103 #. type: verbatim
29104 #: ../fish/guestfish-actions.pod:3297
29105 #, no-wrap
29106 msgid ""
29107 " mounts\n"
29108 "\n"
29109 msgstr ""
29110
29111 # type: textblock
29112 #. type: textblock
29113 #: ../fish/guestfish-actions.pod:3304
29114 msgid "See also: L</mountpoints>"
29115 msgstr ""
29116
29117 # type: =head2
29118 #. type: =head2
29119 #: ../fish/guestfish-actions.pod:3306
29120 msgid "mv"
29121 msgstr ""
29122
29123 # type: verbatim
29124 #. type: verbatim
29125 #: ../fish/guestfish-actions.pod:3308
29126 #, no-wrap
29127 msgid ""
29128 " mv src dest\n"
29129 "\n"
29130 msgstr ""
29131
29132 # type: =head2
29133 #. type: =head2
29134 #: ../fish/guestfish-actions.pod:3313
29135 msgid "ntfs-3g-probe"
29136 msgstr ""
29137
29138 # type: verbatim
29139 #. type: verbatim
29140 #: ../fish/guestfish-actions.pod:3315
29141 #, no-wrap
29142 msgid ""
29143 " ntfs-3g-probe true|false device\n"
29144 "\n"
29145 msgstr ""
29146
29147 # type: =head2
29148 #. type: =head2
29149 #: ../fish/guestfish-actions.pod:3329
29150 msgid "ntfsresize"
29151 msgstr ""
29152
29153 # type: verbatim
29154 #. type: verbatim
29155 #: ../fish/guestfish-actions.pod:3331
29156 #, no-wrap
29157 msgid ""
29158 " ntfsresize device\n"
29159 "\n"
29160 msgstr ""
29161
29162 # type: =head2
29163 #. type: =head2
29164 #: ../fish/guestfish-actions.pod:3337
29165 msgid "ntfsresize-size"
29166 msgstr ""
29167
29168 # type: verbatim
29169 #. type: verbatim
29170 #: ../fish/guestfish-actions.pod:3339
29171 #, no-wrap
29172 msgid ""
29173 " ntfsresize-size device size\n"
29174 "\n"
29175 msgstr ""
29176
29177 # type: textblock
29178 #. type: textblock
29179 #: ../fish/guestfish-actions.pod:3341
29180 msgid ""
29181 "This command is the same as L</ntfsresize> except that it allows you to "
29182 "specify the new size (in bytes) explicitly."
29183 msgstr ""
29184
29185 # type: =head2
29186 #. type: =head2
29187 #: ../fish/guestfish-actions.pod:3344
29188 msgid "part-add"
29189 msgstr ""
29190
29191 # type: verbatim
29192 #. type: verbatim
29193 #: ../fish/guestfish-actions.pod:3346
29194 #, no-wrap
29195 msgid ""
29196 " part-add device prlogex startsect endsect\n"
29197 "\n"
29198 msgstr ""
29199
29200 # type: textblock
29201 #. type: textblock
29202 #: ../fish/guestfish-actions.pod:3348
29203 msgid ""
29204 "This command adds a partition to C<device>.  If there is no partition table "
29205 "on the device, call L</part-init> first."
29206 msgstr ""
29207
29208 # type: textblock
29209 #. type: textblock
29210 #: ../fish/guestfish-actions.pod:3360
29211 msgid ""
29212 "Creating a partition which covers the whole disk is not so easy.  Use L</"
29213 "part-disk> to do that."
29214 msgstr ""
29215
29216 # type: =head2
29217 #. type: =head2
29218 #: ../fish/guestfish-actions.pod:3363
29219 msgid "part-del"
29220 msgstr ""
29221
29222 # type: verbatim
29223 #. type: verbatim
29224 #: ../fish/guestfish-actions.pod:3365
29225 #, no-wrap
29226 msgid ""
29227 " part-del device partnum\n"
29228 "\n"
29229 msgstr ""
29230
29231 # type: =head2
29232 #. type: =head2
29233 #: ../fish/guestfish-actions.pod:3373
29234 msgid "part-disk"
29235 msgstr ""
29236
29237 # type: verbatim
29238 #. type: verbatim
29239 #: ../fish/guestfish-actions.pod:3375
29240 #, no-wrap
29241 msgid ""
29242 " part-disk device parttype\n"
29243 "\n"
29244 msgstr ""
29245
29246 # type: textblock
29247 #. type: textblock
29248 #: ../fish/guestfish-actions.pod:3377
29249 msgid ""
29250 "This command is simply a combination of L</part-init> followed by L</part-"
29251 "add> to create a single primary partition covering the whole disk."
29252 msgstr ""
29253
29254 # type: textblock
29255 #. type: textblock
29256 #: ../fish/guestfish-actions.pod:3381
29257 msgid ""
29258 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
29259 "possible values are described in L</part-init>."
29260 msgstr ""
29261
29262 # type: =head2
29263 #. type: =head2
29264 #: ../fish/guestfish-actions.pod:3387
29265 msgid "part-get-bootable"
29266 msgstr ""
29267
29268 # type: verbatim
29269 #. type: verbatim
29270 #: ../fish/guestfish-actions.pod:3389
29271 #, no-wrap
29272 msgid ""
29273 " part-get-bootable device partnum\n"
29274 "\n"
29275 msgstr ""
29276
29277 # type: textblock
29278 #. type: textblock
29279 #: ../fish/guestfish-actions.pod:3394
29280 msgid "See also L</part-set-bootable>."
29281 msgstr ""
29282
29283 # type: =head2
29284 #. type: =head2
29285 #: ../fish/guestfish-actions.pod:3396
29286 msgid "part-get-mbr-id"
29287 msgstr ""
29288
29289 # type: verbatim
29290 #. type: verbatim
29291 #: ../fish/guestfish-actions.pod:3398
29292 #, no-wrap
29293 msgid ""
29294 " part-get-mbr-id device partnum\n"
29295 "\n"
29296 msgstr ""
29297
29298 # type: textblock
29299 #. type: textblock
29300 #: ../fish/guestfish-actions.pod:3403 ../fish/guestfish-actions.pod:3541
29301 msgid ""
29302 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
29303 "undefined results for other partition table types (see L</part-get-"
29304 "parttype>)."
29305 msgstr ""
29306
29307 # type: =head2
29308 #. type: =head2
29309 #: ../fish/guestfish-actions.pod:3407
29310 msgid "part-get-parttype"
29311 msgstr ""
29312
29313 # type: verbatim
29314 #. type: verbatim
29315 #: ../fish/guestfish-actions.pod:3409
29316 #, no-wrap
29317 msgid ""
29318 " part-get-parttype device\n"
29319 "\n"
29320 msgstr ""
29321
29322 # type: textblock
29323 #. type: textblock
29324 #: ../fish/guestfish-actions.pod:3414
29325 msgid ""
29326 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29327 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
29328 "possible, although unusual.  See L</part-init> for a full list."
29329 msgstr ""
29330
29331 # type: =head2
29332 #. type: =head2
29333 #: ../fish/guestfish-actions.pod:3419
29334 msgid "part-init"
29335 msgstr ""
29336
29337 # type: verbatim
29338 #. type: verbatim
29339 #: ../fish/guestfish-actions.pod:3421
29340 #, no-wrap
29341 msgid ""
29342 " part-init device parttype\n"
29343 "\n"
29344 msgstr ""
29345
29346 # type: textblock
29347 #. type: textblock
29348 #: ../fish/guestfish-actions.pod:3427
29349 msgid ""
29350 "Initially there are no partitions.  Following this, you should call L</part-"
29351 "add> for each partition required."
29352 msgstr ""
29353
29354 # type: =head2
29355 #. type: =head2
29356 #: ../fish/guestfish-actions.pod:3490
29357 msgid "part-list"
29358 msgstr ""
29359
29360 # type: verbatim
29361 #. type: verbatim
29362 #: ../fish/guestfish-actions.pod:3492
29363 #, no-wrap
29364 msgid ""
29365 " part-list device\n"
29366 "\n"
29367 msgstr ""
29368
29369 # type: textblock
29370 #. type: textblock
29371 #: ../fish/guestfish-actions.pod:3507
29372 msgid ""
29373 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
29374 "the device's sector size, see L</blockdev-getss>."
29375 msgstr ""
29376
29377 # type: =head2
29378 #. type: =head2
29379 #: ../fish/guestfish-actions.pod:3520
29380 msgid "part-set-bootable"
29381 msgstr ""
29382
29383 # type: verbatim
29384 #. type: verbatim
29385 #: ../fish/guestfish-actions.pod:3522
29386 #, no-wrap
29387 msgid ""
29388 " part-set-bootable device partnum true|false\n"
29389 "\n"
29390 msgstr ""
29391
29392 # type: =head2
29393 #. type: =head2
29394 #: ../fish/guestfish-actions.pod:3531
29395 msgid "part-set-mbr-id"
29396 msgstr ""
29397
29398 # type: verbatim
29399 #. type: verbatim
29400 #: ../fish/guestfish-actions.pod:3533
29401 #, no-wrap
29402 msgid ""
29403 " part-set-mbr-id device partnum idbyte\n"
29404 "\n"
29405 msgstr ""
29406
29407 # type: =head2
29408 #. type: =head2
29409 #: ../fish/guestfish-actions.pod:3545
29410 msgid "part-set-name"
29411 msgstr ""
29412
29413 # type: verbatim
29414 #. type: verbatim
29415 #: ../fish/guestfish-actions.pod:3547
29416 #, no-wrap
29417 msgid ""
29418 " part-set-name device partnum name\n"
29419 "\n"
29420 msgstr ""
29421
29422 # type: =head2
29423 #. type: =head2
29424 #: ../fish/guestfish-actions.pod:3555
29425 msgid "part-to-dev"
29426 msgstr ""
29427
29428 # type: verbatim
29429 #. type: verbatim
29430 #: ../fish/guestfish-actions.pod:3557
29431 #, no-wrap
29432 msgid ""
29433 " part-to-dev partition\n"
29434 "\n"
29435 msgstr ""
29436
29437 # type: textblock
29438 #. type: textblock
29439 #: ../fish/guestfish-actions.pod:3563
29440 msgid ""
29441 "The named partition must exist, for example as a string returned from L</"
29442 "list-partitions>."
29443 msgstr ""
29444
29445 # type: =head2
29446 #. type: =head2
29447 #: ../fish/guestfish-actions.pod:3566
29448 msgid "ping-daemon"
29449 msgstr ""
29450
29451 # type: verbatim
29452 #. type: verbatim
29453 #: ../fish/guestfish-actions.pod:3568
29454 #, no-wrap
29455 msgid ""
29456 " ping-daemon\n"
29457 "\n"
29458 msgstr ""
29459
29460 # type: =head2
29461 #. type: =head2
29462 #: ../fish/guestfish-actions.pod:3575
29463 msgid "pread"
29464 msgstr ""
29465
29466 # type: verbatim
29467 #. type: verbatim
29468 #: ../fish/guestfish-actions.pod:3577
29469 #, no-wrap
29470 msgid ""
29471 " pread path count offset\n"
29472 "\n"
29473 msgstr ""
29474
29475 # type: textblock
29476 #. type: textblock
29477 #: ../fish/guestfish-actions.pod:3585
29478 msgid "See also L</pwrite>, L</pread-device>."
29479 msgstr ""
29480
29481 # type: =head2
29482 #. type: =head2
29483 #: ../fish/guestfish-actions.pod:3590
29484 msgid "pread-device"
29485 msgstr ""
29486
29487 # type: verbatim
29488 #. type: verbatim
29489 #: ../fish/guestfish-actions.pod:3592
29490 #, no-wrap
29491 msgid ""
29492 " pread-device device count offset\n"
29493 "\n"
29494 msgstr ""
29495
29496 # type: textblock
29497 #. type: textblock
29498 #: ../fish/guestfish-actions.pod:3600
29499 msgid "See also L</pread>."
29500 msgstr ""
29501
29502 # type: =head2
29503 #. type: =head2
29504 #: ../fish/guestfish-actions.pod:3605
29505 msgid "pvcreate"
29506 msgstr ""
29507
29508 # type: verbatim
29509 #. type: verbatim
29510 #: ../fish/guestfish-actions.pod:3607
29511 #, no-wrap
29512 msgid ""
29513 " pvcreate device\n"
29514 "\n"
29515 msgstr ""
29516
29517 # type: =head2
29518 #. type: =head2
29519 #: ../fish/guestfish-actions.pod:3613
29520 msgid "pvremove"
29521 msgstr ""
29522
29523 # type: verbatim
29524 #. type: verbatim
29525 #: ../fish/guestfish-actions.pod:3615
29526 #, no-wrap
29527 msgid ""
29528 " pvremove device\n"
29529 "\n"
29530 msgstr ""
29531
29532 # type: =head2
29533 #. type: =head2
29534 #: ../fish/guestfish-actions.pod:3624
29535 msgid "pvresize"
29536 msgstr ""
29537
29538 # type: verbatim
29539 #. type: verbatim
29540 #: ../fish/guestfish-actions.pod:3626
29541 #, no-wrap
29542 msgid ""
29543 " pvresize device\n"
29544 "\n"
29545 msgstr ""
29546
29547 # type: =head2
29548 #. type: =head2
29549 #: ../fish/guestfish-actions.pod:3631
29550 msgid "pvresize-size"
29551 msgstr ""
29552
29553 # type: verbatim
29554 #. type: verbatim
29555 #: ../fish/guestfish-actions.pod:3633
29556 #, no-wrap
29557 msgid ""
29558 " pvresize-size device size\n"
29559 "\n"
29560 msgstr ""
29561
29562 # type: textblock
29563 #. type: textblock
29564 #: ../fish/guestfish-actions.pod:3635
29565 msgid ""
29566 "This command is the same as L</pvresize> except that it allows you to "
29567 "specify the new size (in bytes) explicitly."
29568 msgstr ""
29569
29570 # type: =head2
29571 #. type: =head2
29572 #: ../fish/guestfish-actions.pod:3638
29573 msgid "pvs"
29574 msgstr ""
29575
29576 # type: verbatim
29577 #. type: verbatim
29578 #: ../fish/guestfish-actions.pod:3640
29579 #, no-wrap
29580 msgid ""
29581 " pvs\n"
29582 "\n"
29583 msgstr ""
29584
29585 # type: textblock
29586 #. type: textblock
29587 #: ../fish/guestfish-actions.pod:3648
29588 msgid "See also L</pvs-full>."
29589 msgstr ""
29590
29591 # type: =head2
29592 #. type: =head2
29593 #: ../fish/guestfish-actions.pod:3650
29594 msgid "pvs-full"
29595 msgstr ""
29596
29597 # type: verbatim
29598 #. type: verbatim
29599 #: ../fish/guestfish-actions.pod:3652
29600 #, no-wrap
29601 msgid ""
29602 " pvs-full\n"
29603 "\n"
29604 msgstr ""
29605
29606 # type: =head2
29607 #. type: =head2
29608 #: ../fish/guestfish-actions.pod:3657
29609 msgid "pvuuid"
29610 msgstr ""
29611
29612 # type: verbatim
29613 #. type: verbatim
29614 #: ../fish/guestfish-actions.pod:3659
29615 #, no-wrap
29616 msgid ""
29617 " pvuuid device\n"
29618 "\n"
29619 msgstr ""
29620
29621 # type: =head2
29622 #. type: =head2
29623 #: ../fish/guestfish-actions.pod:3663
29624 msgid "pwrite"
29625 msgstr ""
29626
29627 # type: verbatim
29628 #. type: verbatim
29629 #: ../fish/guestfish-actions.pod:3665
29630 #, no-wrap
29631 msgid ""
29632 " pwrite path content offset\n"
29633 "\n"
29634 msgstr ""
29635
29636 # type: textblock
29637 #. type: textblock
29638 #: ../fish/guestfish-actions.pod:3676
29639 msgid "See also L</pread>, L</pwrite-device>."
29640 msgstr ""
29641
29642 # type: =head2
29643 #. type: =head2
29644 #: ../fish/guestfish-actions.pod:3681
29645 msgid "pwrite-device"
29646 msgstr ""
29647
29648 # type: verbatim
29649 #. type: verbatim
29650 #: ../fish/guestfish-actions.pod:3683
29651 #, no-wrap
29652 msgid ""
29653 " pwrite-device device content offset\n"
29654 "\n"
29655 msgstr ""
29656
29657 # type: textblock
29658 #. type: textblock
29659 #: ../fish/guestfish-actions.pod:3693
29660 msgid "See also L</pwrite>."
29661 msgstr ""
29662
29663 # type: =head2
29664 #. type: =head2
29665 #: ../fish/guestfish-actions.pod:3698
29666 msgid "read-file"
29667 msgstr ""
29668
29669 # type: verbatim
29670 #. type: verbatim
29671 #: ../fish/guestfish-actions.pod:3700
29672 #, no-wrap
29673 msgid ""
29674 " read-file path\n"
29675 "\n"
29676 msgstr ""
29677
29678 # type: textblock
29679 #. type: textblock
29680 #: ../fish/guestfish-actions.pod:3705
29681 msgid ""
29682 "Unlike L</cat>, this function can correctly handle files that contain "
29683 "embedded ASCII NUL characters.  However unlike L</download>, this function "
29684 "is limited in the total size of file that can be handled."
29685 msgstr ""
29686
29687 # type: =head2
29688 #. type: =head2
29689 #: ../fish/guestfish-actions.pod:3713
29690 msgid "read-lines"
29691 msgstr ""
29692
29693 # type: verbatim
29694 #. type: verbatim
29695 #: ../fish/guestfish-actions.pod:3715
29696 #, no-wrap
29697 msgid ""
29698 " read-lines path\n"
29699 "\n"
29700 msgstr ""
29701
29702 # type: textblock
29703 #. type: textblock
29704 #: ../fish/guestfish-actions.pod:3722
29705 msgid ""
29706 "Note that this function cannot correctly handle binary files (specifically, "
29707 "files containing C<\\0> character which is treated as end of line).  For "
29708 "those you need to use the L</read-file> function which has a more complex "
29709 "interface."
29710 msgstr ""
29711
29712 # type: =head2
29713 #. type: =head2
29714 #: ../fish/guestfish-actions.pod:3727
29715 msgid "readdir"
29716 msgstr ""
29717
29718 # type: verbatim
29719 #. type: verbatim
29720 #: ../fish/guestfish-actions.pod:3729
29721 #, no-wrap
29722 msgid ""
29723 " readdir dir\n"
29724 "\n"
29725 msgstr ""
29726
29727 # type: textblock
29728 #. type: textblock
29729 #: ../fish/guestfish-actions.pod:3781
29730 msgid ""
29731 "This function is primarily intended for use by programs.  To get a simple "
29732 "list of names, use L</ls>.  To get a printable directory for human "
29733 "consumption, use L</ll>."
29734 msgstr ""
29735
29736 # type: =head2
29737 #. type: =head2
29738 #: ../fish/guestfish-actions.pod:3785
29739 msgid "readlink"
29740 msgstr ""
29741
29742 # type: verbatim
29743 #. type: verbatim
29744 #: ../fish/guestfish-actions.pod:3787
29745 #, no-wrap
29746 msgid ""
29747 " readlink path\n"
29748 "\n"
29749 msgstr ""
29750
29751 # type: =head2
29752 #. type: =head2
29753 #: ../fish/guestfish-actions.pod:3791
29754 msgid "readlinklist"
29755 msgstr ""
29756
29757 # type: verbatim
29758 #. type: verbatim
29759 #: ../fish/guestfish-actions.pod:3793
29760 #, no-wrap
29761 msgid ""
29762 " readlinklist path 'names ...'\n"
29763 "\n"
29764 msgstr ""
29765
29766 # type: =head2
29767 #. type: =head2
29768 #: ../fish/guestfish-actions.pod:3817
29769 msgid "realpath"
29770 msgstr ""
29771
29772 # type: verbatim
29773 #. type: verbatim
29774 #: ../fish/guestfish-actions.pod:3819
29775 #, no-wrap
29776 msgid ""
29777 " realpath path\n"
29778 "\n"
29779 msgstr ""
29780
29781 # type: =head2
29782 #. type: =head2
29783 #: ../fish/guestfish-actions.pod:3824
29784 msgid "removexattr"
29785 msgstr ""
29786
29787 # type: verbatim
29788 #. type: verbatim
29789 #: ../fish/guestfish-actions.pod:3826
29790 #, no-wrap
29791 msgid ""
29792 " removexattr xattr path\n"
29793 "\n"
29794 msgstr ""
29795
29796 # type: textblock
29797 #. type: textblock
29798 #: ../fish/guestfish-actions.pod:3831
29799 msgid "See also: L</lremovexattr>, L<attr(5)>."
29800 msgstr ""
29801
29802 # type: =head2
29803 #. type: =head2
29804 #: ../fish/guestfish-actions.pod:3833
29805 msgid "resize2fs"
29806 msgstr ""
29807
29808 # type: verbatim
29809 #. type: verbatim
29810 #: ../fish/guestfish-actions.pod:3835
29811 #, no-wrap
29812 msgid ""
29813 " resize2fs device\n"
29814 "\n"
29815 msgstr ""
29816
29817 # type: textblock
29818 #. type: textblock
29819 #: ../fish/guestfish-actions.pod:3840
29820 msgid ""
29821 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
29822 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
29823 "gives an error about this and sometimes not.  In any case, it is always safe "
29824 "to call L</e2fsck-f> before calling this function."
29825 msgstr ""
29826
29827 #. type: =head2
29828 #: ../fish/guestfish-actions.pod:3846
29829 msgid "resize2fs-M"
29830 msgstr ""
29831
29832 #. type: verbatim
29833 #: ../fish/guestfish-actions.pod:3848
29834 #, no-wrap
29835 msgid ""
29836 " resize2fs-M device\n"
29837 "\n"
29838 msgstr ""
29839
29840 #. type: textblock
29841 #: ../fish/guestfish-actions.pod:3850
29842 msgid ""
29843 "This command is the same as L</resize2fs>, but the filesystem is resized to "
29844 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
29845 "command."
29846 msgstr ""
29847
29848 #. type: textblock
29849 #: ../fish/guestfish-actions.pod:3854
29850 msgid ""
29851 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
29852 "and read the C<Block size> and C<Block count> values.  These two numbers, "
29853 "multiplied together, give the resulting size of the minimal filesystem in "
29854 "bytes."
29855 msgstr ""
29856
29857 # type: =head2
29858 #. type: =head2
29859 #: ../fish/guestfish-actions.pod:3859
29860 msgid "resize2fs-size"
29861 msgstr ""
29862
29863 # type: verbatim
29864 #. type: verbatim
29865 #: ../fish/guestfish-actions.pod:3861
29866 #, no-wrap
29867 msgid ""
29868 " resize2fs-size device size\n"
29869 "\n"
29870 msgstr ""
29871
29872 # type: textblock
29873 #. type: textblock
29874 #: ../fish/guestfish-actions.pod:3863
29875 msgid ""
29876 "This command is the same as L</resize2fs> except that it allows you to "
29877 "specify the new size (in bytes) explicitly."
29878 msgstr ""
29879
29880 # type: =head2
29881 #. type: =head2
29882 #: ../fish/guestfish-actions.pod:3866
29883 msgid "rm"
29884 msgstr ""
29885
29886 # type: verbatim
29887 #. type: verbatim
29888 #: ../fish/guestfish-actions.pod:3868
29889 #, no-wrap
29890 msgid ""
29891 " rm path\n"
29892 "\n"
29893 msgstr ""
29894
29895 # type: =head2
29896 #. type: =head2
29897 #: ../fish/guestfish-actions.pod:3872
29898 msgid "rm-rf"
29899 msgstr ""
29900
29901 # type: verbatim
29902 #. type: verbatim
29903 #: ../fish/guestfish-actions.pod:3874
29904 #, no-wrap
29905 msgid ""
29906 " rm-rf path\n"
29907 "\n"
29908 msgstr ""
29909
29910 # type: =head2
29911 #. type: =head2
29912 #: ../fish/guestfish-actions.pod:3880
29913 msgid "rmdir"
29914 msgstr ""
29915
29916 # type: verbatim
29917 #. type: verbatim
29918 #: ../fish/guestfish-actions.pod:3882
29919 #, no-wrap
29920 msgid ""
29921 " rmdir path\n"
29922 "\n"
29923 msgstr ""
29924
29925 # type: =head2
29926 #. type: =head2
29927 #: ../fish/guestfish-actions.pod:3886
29928 msgid "rmmountpoint"
29929 msgstr ""
29930
29931 # type: verbatim
29932 #. type: verbatim
29933 #: ../fish/guestfish-actions.pod:3888
29934 #, no-wrap
29935 msgid ""
29936 " rmmountpoint exemptpath\n"
29937 "\n"
29938 msgstr ""
29939
29940 # type: textblock
29941 #. type: textblock
29942 #: ../fish/guestfish-actions.pod:3890
29943 msgid ""
29944 "This calls removes a mountpoint that was previously created with L</"
29945 "mkmountpoint>.  See L</mkmountpoint> for full details."
29946 msgstr ""
29947
29948 # type: =head2
29949 #. type: =head2
29950 #: ../fish/guestfish-actions.pod:3894
29951 msgid "scrub-device"
29952 msgstr ""
29953
29954 # type: verbatim
29955 #. type: verbatim
29956 #: ../fish/guestfish-actions.pod:3896
29957 #, no-wrap
29958 msgid ""
29959 " scrub-device device\n"
29960 "\n"
29961 msgstr ""
29962
29963 # type: =head2
29964 #. type: =head2
29965 #: ../fish/guestfish-actions.pod:3907
29966 msgid "scrub-file"
29967 msgstr ""
29968
29969 # type: verbatim
29970 #. type: verbatim
29971 #: ../fish/guestfish-actions.pod:3909
29972 #, no-wrap
29973 msgid ""
29974 " scrub-file file\n"
29975 "\n"
29976 msgstr ""
29977
29978 # type: =head2
29979 #. type: =head2
29980 #: ../fish/guestfish-actions.pod:3919
29981 msgid "scrub-freespace"
29982 msgstr ""
29983
29984 # type: verbatim
29985 #. type: verbatim
29986 #: ../fish/guestfish-actions.pod:3921
29987 #, no-wrap
29988 msgid ""
29989 " scrub-freespace dir\n"
29990 "\n"
29991 msgstr ""
29992
29993 # type: textblock
29994 #. type: textblock
29995 #: ../fish/guestfish-actions.pod:3923
29996 msgid ""
29997 "This command creates the directory C<dir> and then fills it with files until "
29998 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
29999 "deletes them.  The intention is to scrub any free space on the partition "
30000 "containing C<dir>."
30001 msgstr ""
30002
30003 # type: =head2
30004 #. type: =head2
30005 #: ../fish/guestfish-actions.pod:3932
30006 msgid "set-append"
30007 msgstr ""
30008
30009 # type: =head2
30010 #. type: =head2
30011 #: ../fish/guestfish-actions.pod:3934
30012 msgid "append"
30013 msgstr ""
30014
30015 # type: verbatim
30016 #. type: verbatim
30017 #: ../fish/guestfish-actions.pod:3936
30018 #, no-wrap
30019 msgid ""
30020 " set-append append\n"
30021 "\n"
30022 msgstr ""
30023
30024 #. type: =head2
30025 #: ../fish/guestfish-actions.pod:3947
30026 msgid "set-attach-method"
30027 msgstr ""
30028
30029 #. type: =head2
30030 #: ../fish/guestfish-actions.pod:3949
30031 msgid "attach-method"
30032 msgstr ""
30033
30034 #. type: verbatim
30035 #: ../fish/guestfish-actions.pod:3951
30036 #, no-wrap
30037 msgid ""
30038 " set-attach-method attachmethod\n"
30039 "\n"
30040 msgstr ""
30041
30042 # type: =head2
30043 #. type: =head2
30044 #: ../fish/guestfish-actions.pod:3973
30045 msgid "set-autosync"
30046 msgstr ""
30047
30048 # type: =head2
30049 #. type: =head2
30050 #: ../fish/guestfish-actions.pod:3975
30051 msgid "autosync"
30052 msgstr ""
30053
30054 # type: verbatim
30055 #. type: verbatim
30056 #: ../fish/guestfish-actions.pod:3977
30057 #, no-wrap
30058 msgid ""
30059 " set-autosync true|false\n"
30060 "\n"
30061 msgstr ""
30062
30063 # type: =head2
30064 #. type: =head2
30065 #: ../fish/guestfish-actions.pod:3987
30066 msgid "set-direct"
30067 msgstr ""
30068
30069 # type: =head2
30070 #. type: =head2
30071 #: ../fish/guestfish-actions.pod:3989
30072 msgid "direct"
30073 msgstr ""
30074
30075 # type: verbatim
30076 #. type: verbatim
30077 #: ../fish/guestfish-actions.pod:3991
30078 #, no-wrap
30079 msgid ""
30080 " set-direct true|false\n"
30081 "\n"
30082 msgstr ""
30083
30084 # type: textblock
30085 #. type: textblock
30086 #: ../fish/guestfish-actions.pod:3997
30087 msgid ""
30088 "One consequence of this is that log messages aren't caught by the library "
30089 "and handled by L</set-log-message-callback>, but go straight to stdout."
30090 msgstr ""
30091
30092 # type: =head2
30093 #. type: =head2
30094 #: ../fish/guestfish-actions.pod:4006
30095 msgid "set-e2label"
30096 msgstr ""
30097
30098 # type: verbatim
30099 #. type: verbatim
30100 #: ../fish/guestfish-actions.pod:4008
30101 #, no-wrap
30102 msgid ""
30103 " set-e2label device label\n"
30104 "\n"
30105 msgstr ""
30106
30107 # type: textblock
30108 #. type: textblock
30109 #: ../fish/guestfish-actions.pod:4014
30110 msgid ""
30111 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
30112 "label on a filesystem."
30113 msgstr ""
30114
30115 # type: =head2
30116 #. type: =head2
30117 #: ../fish/guestfish-actions.pod:4017
30118 msgid "set-e2uuid"
30119 msgstr ""
30120
30121 # type: verbatim
30122 #. type: verbatim
30123 #: ../fish/guestfish-actions.pod:4019
30124 #, no-wrap
30125 msgid ""
30126 " set-e2uuid device uuid\n"
30127 "\n"
30128 msgstr ""
30129
30130 # type: textblock
30131 #. type: textblock
30132 #: ../fish/guestfish-actions.pod:4026
30133 msgid ""
30134 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
30135 "UUID of a filesystem."
30136 msgstr ""
30137
30138 # type: =head2
30139 #. type: =head2
30140 #: ../fish/guestfish-actions.pod:4029
30141 msgid "set-memsize"
30142 msgstr ""
30143
30144 # type: =head2
30145 #. type: =head2
30146 #: ../fish/guestfish-actions.pod:4031
30147 msgid "memsize"
30148 msgstr ""
30149
30150 # type: verbatim
30151 #. type: verbatim
30152 #: ../fish/guestfish-actions.pod:4033
30153 #, no-wrap
30154 msgid ""
30155 " set-memsize memsize\n"
30156 "\n"
30157 msgstr ""
30158
30159 # type: textblock
30160 #. type: textblock
30161 #: ../fish/guestfish-actions.pod:4035
30162 msgid ""
30163 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
30164 "This only has any effect if called before L</launch>."
30165 msgstr ""
30166
30167 # type: =head2
30168 #. type: =head2
30169 #: ../fish/guestfish-actions.pod:4046
30170 msgid "set-network"
30171 msgstr ""
30172
30173 # type: =head2
30174 #. type: =head2
30175 #: ../fish/guestfish-actions.pod:4048
30176 msgid "network"
30177 msgstr ""
30178
30179 # type: verbatim
30180 #. type: verbatim
30181 #: ../fish/guestfish-actions.pod:4050
30182 #, no-wrap
30183 msgid ""
30184 " set-network true|false\n"
30185 "\n"
30186 msgstr ""
30187
30188 # type: textblock
30189 #. type: textblock
30190 #: ../fish/guestfish-actions.pod:4058
30191 msgid ""
30192 "You must call this before calling L</launch>, otherwise it has no effect."
30193 msgstr ""
30194
30195 # type: =head2
30196 #. type: =head2
30197 #: ../fish/guestfish-actions.pod:4061
30198 msgid "set-path"
30199 msgstr ""
30200
30201 # type: =head2
30202 #. type: =head2
30203 #: ../fish/guestfish-actions.pod:4063
30204 msgid "path"
30205 msgstr ""
30206
30207 # type: verbatim
30208 #. type: verbatim
30209 #: ../fish/guestfish-actions.pod:4065
30210 #, no-wrap
30211 msgid ""
30212 " set-path searchpath\n"
30213 "\n"
30214 msgstr ""
30215
30216 # type: =head2
30217 #. type: =head2
30218 #: ../fish/guestfish-actions.pod:4074
30219 msgid "set-qemu"
30220 msgstr ""
30221
30222 # type: =head2
30223 #. type: =head2
30224 #: ../fish/guestfish-actions.pod:4076
30225 msgid "qemu"
30226 msgstr ""
30227
30228 # type: verbatim
30229 #. type: verbatim
30230 #: ../fish/guestfish-actions.pod:4078
30231 #, no-wrap
30232 msgid ""
30233 " set-qemu qemu\n"
30234 "\n"
30235 msgstr ""
30236
30237 # type: =head2
30238 #. type: =head2
30239 #: ../fish/guestfish-actions.pod:4098
30240 msgid "set-recovery-proc"
30241 msgstr ""
30242
30243 # type: =head2
30244 #. type: =head2
30245 #: ../fish/guestfish-actions.pod:4100
30246 msgid "recovery-proc"
30247 msgstr ""
30248
30249 # type: verbatim
30250 #. type: verbatim
30251 #: ../fish/guestfish-actions.pod:4102
30252 #, no-wrap
30253 msgid ""
30254 " set-recovery-proc true|false\n"
30255 "\n"
30256 msgstr ""
30257
30258 # type: textblock
30259 #. type: textblock
30260 #: ../fish/guestfish-actions.pod:4104
30261 msgid ""
30262 "If this is called with the parameter C<false> then L</launch> does not "
30263 "create a recovery process.  The purpose of the recovery process is to stop "
30264 "runaway qemu processes in the case where the main program aborts abruptly."
30265 msgstr ""
30266
30267 # type: textblock
30268 #. type: textblock
30269 #: ../fish/guestfish-actions.pod:4109
30270 msgid ""
30271 "This only has any effect if called before L</launch>, and the default is "
30272 "true."
30273 msgstr ""
30274
30275 # type: =head2
30276 #. type: =head2
30277 #: ../fish/guestfish-actions.pod:4118
30278 msgid "set-selinux"
30279 msgstr ""
30280
30281 # type: =head2
30282 #. type: =head2
30283 #: ../fish/guestfish-actions.pod:4120
30284 msgid "selinux"
30285 msgstr ""
30286
30287 # type: verbatim
30288 #. type: verbatim
30289 #: ../fish/guestfish-actions.pod:4122
30290 #, no-wrap
30291 msgid ""
30292 " set-selinux true|false\n"
30293 "\n"
30294 msgstr ""
30295
30296 # type: =head2
30297 #. type: =head2
30298 #: ../fish/guestfish-actions.pod:4133
30299 msgid "set-trace"
30300 msgstr ""
30301
30302 # type: =head2
30303 #. type: =head2
30304 #: ../fish/guestfish-actions.pod:4135
30305 msgid "trace"
30306 msgstr ""
30307
30308 # type: verbatim
30309 #. type: verbatim
30310 #: ../fish/guestfish-actions.pod:4137
30311 #, no-wrap
30312 msgid ""
30313 " set-trace true|false\n"
30314 "\n"
30315 msgstr ""
30316
30317 #. type: textblock
30318 #: ../fish/guestfish-actions.pod:4149
30319 msgid ""
30320 "Trace messages are normally sent to C<stderr>, unless you register a "
30321 "callback to send them somewhere else (see L</set-event-callback>)."
30322 msgstr ""
30323
30324 # type: =head2
30325 #. type: =head2
30326 #: ../fish/guestfish-actions.pod:4153
30327 msgid "set-verbose"
30328 msgstr ""
30329
30330 # type: =head2
30331 #. type: =head2
30332 #: ../fish/guestfish-actions.pod:4155
30333 msgid "verbose"
30334 msgstr ""
30335
30336 # type: verbatim
30337 #. type: verbatim
30338 #: ../fish/guestfish-actions.pod:4157
30339 #, no-wrap
30340 msgid ""
30341 " set-verbose true|false\n"
30342 "\n"
30343 msgstr ""
30344
30345 #. type: textblock
30346 #: ../fish/guestfish-actions.pod:4164
30347 msgid ""
30348 "Verbose messages are normally sent to C<stderr>, unless you register a "
30349 "callback to send them somewhere else (see L</set-event-callback>)."
30350 msgstr ""
30351
30352 # type: =head2
30353 #. type: =head2
30354 #: ../fish/guestfish-actions.pod:4168
30355 msgid "setcon"
30356 msgstr ""
30357
30358 # type: verbatim
30359 #. type: verbatim
30360 #: ../fish/guestfish-actions.pod:4170
30361 #, no-wrap
30362 msgid ""
30363 " setcon context\n"
30364 "\n"
30365 msgstr ""
30366
30367 # type: =head2
30368 #. type: =head2
30369 #: ../fish/guestfish-actions.pod:4177
30370 msgid "setxattr"
30371 msgstr ""
30372
30373 # type: verbatim
30374 #. type: verbatim
30375 #: ../fish/guestfish-actions.pod:4179
30376 #, no-wrap
30377 msgid ""
30378 " setxattr xattr val vallen path\n"
30379 "\n"
30380 msgstr ""
30381
30382 # type: textblock
30383 #. type: textblock
30384 #: ../fish/guestfish-actions.pod:4185
30385 msgid "See also: L</lsetxattr>, L<attr(5)>."
30386 msgstr ""
30387
30388 # type: =head2
30389 #. type: =head2
30390 #: ../fish/guestfish-actions.pod:4187
30391 msgid "sfdisk"
30392 msgstr ""
30393
30394 # type: verbatim
30395 #. type: verbatim
30396 #: ../fish/guestfish-actions.pod:4189
30397 #, no-wrap
30398 msgid ""
30399 " sfdisk device cyls heads sectors 'lines ...'\n"
30400 "\n"
30401 msgstr ""
30402
30403 # type: textblock
30404 #. type: textblock
30405 #: ../fish/guestfish-actions.pod:4211
30406 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
30407 msgstr ""
30408
30409 # type: =head2
30410 #. type: =head2
30411 #: ../fish/guestfish-actions.pod:4224
30412 msgid "sfdiskM"
30413 msgstr ""
30414
30415 # type: verbatim
30416 #. type: verbatim
30417 #: ../fish/guestfish-actions.pod:4226
30418 #, no-wrap
30419 msgid ""
30420 " sfdiskM device 'lines ...'\n"
30421 "\n"
30422 msgstr ""
30423
30424 # type: textblock
30425 #. type: textblock
30426 #: ../fish/guestfish-actions.pod:4228
30427 msgid ""
30428 "This is a simplified interface to the L</sfdisk> command, where partition "
30429 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
30430 "you don't need to specify the cyls, heads and sectors parameters which were "
30431 "rarely if ever used anyway."
30432 msgstr ""
30433
30434 # type: textblock
30435 #. type: textblock
30436 #: ../fish/guestfish-actions.pod:4234
30437 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
30438 msgstr ""
30439
30440 # type: =head2
30441 #. type: =head2
30442 #: ../fish/guestfish-actions.pod:4247
30443 msgid "sfdisk-N"
30444 msgstr ""
30445
30446 # type: verbatim
30447 #. type: verbatim
30448 #: ../fish/guestfish-actions.pod:4249
30449 #, no-wrap
30450 msgid ""
30451 " sfdisk-N device partnum cyls heads sectors line\n"
30452 "\n"
30453 msgstr ""
30454
30455 # type: textblock
30456 #. type: textblock
30457 #: ../fish/guestfish-actions.pod:4254
30458 msgid ""
30459 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
30460 "cyls/heads/sectors parameters."
30461 msgstr ""
30462
30463 # type: textblock
30464 #. type: textblock
30465 #: ../fish/guestfish-actions.pod:4257
30466 msgid "See also: L</part-add>"
30467 msgstr ""
30468
30469 # type: =head2
30470 #. type: =head2
30471 #: ../fish/guestfish-actions.pod:4269
30472 msgid "sfdisk-disk-geometry"
30473 msgstr ""
30474
30475 # type: verbatim
30476 #. type: verbatim
30477 #: ../fish/guestfish-actions.pod:4271
30478 #, no-wrap
30479 msgid ""
30480 " sfdisk-disk-geometry device\n"
30481 "\n"
30482 msgstr ""
30483
30484 # type: textblock
30485 #. type: textblock
30486 #: ../fish/guestfish-actions.pod:4273
30487 msgid ""
30488 "This displays the disk geometry of C<device> read from the partition table.  "
30489 "Especially in the case where the underlying block device has been resized, "
30490 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
30491 "kernel-geometry>)."
30492 msgstr ""
30493
30494 # type: =head2
30495 #. type: =head2
30496 #: ../fish/guestfish-actions.pod:4281
30497 msgid "sfdisk-kernel-geometry"
30498 msgstr ""
30499
30500 # type: verbatim
30501 #. type: verbatim
30502 #: ../fish/guestfish-actions.pod:4283
30503 #, no-wrap
30504 msgid ""
30505 " sfdisk-kernel-geometry device\n"
30506 "\n"
30507 msgstr ""
30508
30509 # type: =head2
30510 #. type: =head2
30511 #: ../fish/guestfish-actions.pod:4290
30512 msgid "sfdisk-l"
30513 msgstr ""
30514
30515 # type: verbatim
30516 #. type: verbatim
30517 #: ../fish/guestfish-actions.pod:4292
30518 #, no-wrap
30519 msgid ""
30520 " sfdisk-l device\n"
30521 "\n"
30522 msgstr ""
30523
30524 # type: textblock
30525 #. type: textblock
30526 #: ../fish/guestfish-actions.pod:4298
30527 msgid "See also: L</part-list>"
30528 msgstr ""
30529
30530 # type: =head2
30531 #. type: =head2
30532 #: ../fish/guestfish-actions.pod:4307
30533 msgid "sh"
30534 msgstr ""
30535
30536 # type: verbatim
30537 #. type: verbatim
30538 #: ../fish/guestfish-actions.pod:4309
30539 #, no-wrap
30540 msgid ""
30541 " sh command\n"
30542 "\n"
30543 msgstr ""
30544
30545 # type: textblock
30546 #. type: textblock
30547 #: ../fish/guestfish-actions.pod:4314
30548 msgid "This is like L</command>, but passes the command to:"
30549 msgstr ""
30550
30551 # type: textblock
30552 #. type: textblock
30553 #: ../fish/guestfish-actions.pod:4322
30554 msgid "All the provisos about L</command> apply to this call."
30555 msgstr ""
30556
30557 # type: =head2
30558 #. type: =head2
30559 #: ../fish/guestfish-actions.pod:4324
30560 msgid "sh-lines"
30561 msgstr ""
30562
30563 # type: verbatim
30564 #. type: verbatim
30565 #: ../fish/guestfish-actions.pod:4326
30566 #, no-wrap
30567 msgid ""
30568 " sh-lines command\n"
30569 "\n"
30570 msgstr ""
30571
30572 # type: textblock
30573 #. type: textblock
30574 #: ../fish/guestfish-actions.pod:4328
30575 msgid "This is the same as L</sh>, but splits the result into a list of lines."
30576 msgstr ""
30577
30578 # type: textblock
30579 #. type: textblock
30580 #: ../fish/guestfish-actions.pod:4331
30581 msgid "See also: L</command-lines>"
30582 msgstr ""
30583
30584 # type: =head2
30585 #. type: =head2
30586 #: ../fish/guestfish-actions.pod:4333
30587 msgid "sleep"
30588 msgstr ""
30589
30590 # type: verbatim
30591 #. type: verbatim
30592 #: ../fish/guestfish-actions.pod:4335
30593 #, no-wrap
30594 msgid ""
30595 " sleep secs\n"
30596 "\n"
30597 msgstr ""
30598
30599 # type: =head2
30600 #. type: =head2
30601 #: ../fish/guestfish-actions.pod:4339
30602 msgid "stat"
30603 msgstr ""
30604
30605 # type: verbatim
30606 #. type: verbatim
30607 #: ../fish/guestfish-actions.pod:4341
30608 #, no-wrap
30609 msgid ""
30610 " stat path\n"
30611 "\n"
30612 msgstr ""
30613
30614 # type: =head2
30615 #. type: =head2
30616 #: ../fish/guestfish-actions.pod:4347
30617 msgid "statvfs"
30618 msgstr ""
30619
30620 # type: verbatim
30621 #. type: verbatim
30622 #: ../fish/guestfish-actions.pod:4349
30623 #, no-wrap
30624 msgid ""
30625 " statvfs path\n"
30626 "\n"
30627 msgstr ""
30628
30629 # type: =head2
30630 #. type: =head2
30631 #: ../fish/guestfish-actions.pod:4357
30632 msgid "strings"
30633 msgstr ""
30634
30635 # type: verbatim
30636 #. type: verbatim
30637 #: ../fish/guestfish-actions.pod:4359
30638 #, no-wrap
30639 msgid ""
30640 " strings path\n"
30641 "\n"
30642 msgstr ""
30643
30644 # type: =head2
30645 #. type: =head2
30646 #: ../fish/guestfish-actions.pod:4367
30647 msgid "strings-e"
30648 msgstr ""
30649
30650 # type: verbatim
30651 #. type: verbatim
30652 #: ../fish/guestfish-actions.pod:4369
30653 #, no-wrap
30654 msgid ""
30655 " strings-e encoding path\n"
30656 "\n"
30657 msgstr ""
30658
30659 # type: textblock
30660 #. type: textblock
30661 #: ../fish/guestfish-actions.pod:4371
30662 msgid ""
30663 "This is like the L</strings> command, but allows you to specify the encoding "
30664 "of strings that are looked for in the source file C<path>."
30665 msgstr ""
30666
30667 # type: textblock
30668 #. type: textblock
30669 #: ../fish/guestfish-actions.pod:4381
30670 msgid ""
30671 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30672 "ISO-8859-X (this is what L</strings> uses)."
30673 msgstr ""
30674
30675 # type: =head2
30676 #. type: =head2
30677 #: ../fish/guestfish-actions.pod:4413
30678 msgid "swapoff-device"
30679 msgstr ""
30680
30681 # type: verbatim
30682 #. type: verbatim
30683 #: ../fish/guestfish-actions.pod:4415
30684 #, no-wrap
30685 msgid ""
30686 " swapoff-device device\n"
30687 "\n"
30688 msgstr ""
30689
30690 # type: textblock
30691 #. type: textblock
30692 #: ../fish/guestfish-actions.pod:4417
30693 msgid ""
30694 "This command disables the libguestfs appliance swap device or partition "
30695 "named C<device>.  See L</swapon-device>."
30696 msgstr ""
30697
30698 # type: =head2
30699 #. type: =head2
30700 #: ../fish/guestfish-actions.pod:4421
30701 msgid "swapoff-file"
30702 msgstr ""
30703
30704 # type: verbatim
30705 #. type: verbatim
30706 #: ../fish/guestfish-actions.pod:4423
30707 #, no-wrap
30708 msgid ""
30709 " swapoff-file file\n"
30710 "\n"
30711 msgstr ""
30712
30713 # type: =head2
30714 #. type: =head2
30715 #: ../fish/guestfish-actions.pod:4427
30716 msgid "swapoff-label"
30717 msgstr ""
30718
30719 # type: verbatim
30720 #. type: verbatim
30721 #: ../fish/guestfish-actions.pod:4429
30722 #, no-wrap
30723 msgid ""
30724 " swapoff-label label\n"
30725 "\n"
30726 msgstr ""
30727
30728 # type: =head2
30729 #. type: =head2
30730 #: ../fish/guestfish-actions.pod:4434
30731 msgid "swapoff-uuid"
30732 msgstr ""
30733
30734 # type: verbatim
30735 #. type: verbatim
30736 #: ../fish/guestfish-actions.pod:4436
30737 #, no-wrap
30738 msgid ""
30739 " swapoff-uuid uuid\n"
30740 "\n"
30741 msgstr ""
30742
30743 # type: =head2
30744 #. type: =head2
30745 #: ../fish/guestfish-actions.pod:4441
30746 msgid "swapon-device"
30747 msgstr ""
30748
30749 # type: verbatim
30750 #. type: verbatim
30751 #: ../fish/guestfish-actions.pod:4443
30752 #, no-wrap
30753 msgid ""
30754 " swapon-device device\n"
30755 "\n"
30756 msgstr ""
30757
30758 # type: textblock
30759 #. type: textblock
30760 #: ../fish/guestfish-actions.pod:4445
30761 msgid ""
30762 "This command enables the libguestfs appliance to use the swap device or "
30763 "partition named C<device>.  The increased memory is made available for all "
30764 "commands, for example those run using L</command> or L</sh>."
30765 msgstr ""
30766
30767 # type: =head2
30768 #. type: =head2
30769 #: ../fish/guestfish-actions.pod:4457
30770 msgid "swapon-file"
30771 msgstr ""
30772
30773 # type: verbatim
30774 #. type: verbatim
30775 #: ../fish/guestfish-actions.pod:4459
30776 #, no-wrap
30777 msgid ""
30778 " swapon-file file\n"
30779 "\n"
30780 msgstr ""
30781
30782 # type: textblock
30783 #. type: textblock
30784 #: ../fish/guestfish-actions.pod:4461
30785 msgid ""
30786 "This command enables swap to a file.  See L</swapon-device> for other notes."
30787 msgstr ""
30788
30789 # type: =head2
30790 #. type: =head2
30791 #: ../fish/guestfish-actions.pod:4464
30792 msgid "swapon-label"
30793 msgstr ""
30794
30795 # type: verbatim
30796 #. type: verbatim
30797 #: ../fish/guestfish-actions.pod:4466
30798 #, no-wrap
30799 msgid ""
30800 " swapon-label label\n"
30801 "\n"
30802 msgstr ""
30803
30804 # type: textblock
30805 #. type: textblock
30806 #: ../fish/guestfish-actions.pod:4468
30807 msgid ""
30808 "This command enables swap to a labeled swap partition.  See L</swapon-"
30809 "device> for other notes."
30810 msgstr ""
30811
30812 # type: =head2
30813 #. type: =head2
30814 #: ../fish/guestfish-actions.pod:4471
30815 msgid "swapon-uuid"
30816 msgstr ""
30817
30818 # type: verbatim
30819 #. type: verbatim
30820 #: ../fish/guestfish-actions.pod:4473
30821 #, no-wrap
30822 msgid ""
30823 " swapon-uuid uuid\n"
30824 "\n"
30825 msgstr ""
30826
30827 # type: textblock
30828 #. type: textblock
30829 #: ../fish/guestfish-actions.pod:4475
30830 msgid ""
30831 "This command enables swap to a swap partition with the given UUID.  See L</"
30832 "swapon-device> for other notes."
30833 msgstr ""
30834
30835 # type: =head2
30836 #. type: =head2
30837 #: ../fish/guestfish-actions.pod:4478
30838 msgid "sync"
30839 msgstr ""
30840
30841 # type: verbatim
30842 #. type: verbatim
30843 #: ../fish/guestfish-actions.pod:4480
30844 #, no-wrap
30845 msgid ""
30846 " sync\n"
30847 "\n"
30848 msgstr ""
30849
30850 # type: =head2
30851 #. type: =head2
30852 #: ../fish/guestfish-actions.pod:4488
30853 msgid "tail"
30854 msgstr ""
30855
30856 # type: verbatim
30857 #. type: verbatim
30858 #: ../fish/guestfish-actions.pod:4490
30859 #, no-wrap
30860 msgid ""
30861 " tail path\n"
30862 "\n"
30863 msgstr ""
30864
30865 # type: =head2
30866 #. type: =head2
30867 #: ../fish/guestfish-actions.pod:4498
30868 msgid "tail-n"
30869 msgstr ""
30870
30871 # type: verbatim
30872 #. type: verbatim
30873 #: ../fish/guestfish-actions.pod:4500
30874 #, no-wrap
30875 msgid ""
30876 " tail-n nrlines path\n"
30877 "\n"
30878 msgstr ""
30879
30880 # type: =head2
30881 #. type: =head2
30882 #: ../fish/guestfish-actions.pod:4513
30883 msgid "tar-in"
30884 msgstr ""
30885
30886 # type: verbatim
30887 #. type: verbatim
30888 #: ../fish/guestfish-actions.pod:4515
30889 #, no-wrap
30890 msgid ""
30891 " tar-in (tarfile|-) directory\n"
30892 "\n"
30893 msgstr ""
30894
30895 # type: textblock
30896 #. type: textblock
30897 #: ../fish/guestfish-actions.pod:4520
30898 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
30899 msgstr ""
30900
30901 # type: =head2
30902 #. type: =head2
30903 #: ../fish/guestfish-actions.pod:4525
30904 msgid "tar-out"
30905 msgstr ""
30906
30907 # type: verbatim
30908 #. type: verbatim
30909 #: ../fish/guestfish-actions.pod:4527
30910 #, no-wrap
30911 msgid ""
30912 " tar-out directory (tarfile|-)\n"
30913 "\n"
30914 msgstr ""
30915
30916 # type: textblock
30917 #. type: textblock
30918 #: ../fish/guestfish-actions.pod:4532
30919 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
30920 msgstr ""
30921
30922 # type: =head2
30923 #. type: =head2
30924 #: ../fish/guestfish-actions.pod:4537
30925 msgid "tgz-in"
30926 msgstr ""
30927
30928 # type: verbatim
30929 #. type: verbatim
30930 #: ../fish/guestfish-actions.pod:4539
30931 #, no-wrap
30932 msgid ""
30933 " tgz-in (tarball|-) directory\n"
30934 "\n"
30935 msgstr ""
30936
30937 # type: textblock
30938 #. type: textblock
30939 #: ../fish/guestfish-actions.pod:4544
30940 msgid "To upload an uncompressed tarball, use L</tar-in>."
30941 msgstr ""
30942
30943 # type: =head2
30944 #. type: =head2
30945 #: ../fish/guestfish-actions.pod:4548
30946 msgid "tgz-out"
30947 msgstr ""
30948
30949 # type: verbatim
30950 #. type: verbatim
30951 #: ../fish/guestfish-actions.pod:4550
30952 #, no-wrap
30953 msgid ""
30954 " tgz-out directory (tarball|-)\n"
30955 "\n"
30956 msgstr ""
30957
30958 # type: textblock
30959 #. type: textblock
30960 #: ../fish/guestfish-actions.pod:4555
30961 msgid "To download an uncompressed tarball, use L</tar-out>."
30962 msgstr ""
30963
30964 # type: =head2
30965 #. type: =head2
30966 #: ../fish/guestfish-actions.pod:4559
30967 msgid "touch"
30968 msgstr ""
30969
30970 # type: verbatim
30971 #. type: verbatim
30972 #: ../fish/guestfish-actions.pod:4561
30973 #, no-wrap
30974 msgid ""
30975 " touch path\n"
30976 "\n"
30977 msgstr ""
30978
30979 # type: =head2
30980 #. type: =head2
30981 #: ../fish/guestfish-actions.pod:4570
30982 msgid "truncate"
30983 msgstr ""
30984
30985 # type: verbatim
30986 #. type: verbatim
30987 #: ../fish/guestfish-actions.pod:4572
30988 #, no-wrap
30989 msgid ""
30990 " truncate path\n"
30991 "\n"
30992 msgstr ""
30993
30994 # type: =head2
30995 #. type: =head2
30996 #: ../fish/guestfish-actions.pod:4577
30997 msgid "truncate-size"
30998 msgstr ""
30999
31000 # type: verbatim
31001 #. type: verbatim
31002 #: ../fish/guestfish-actions.pod:4579
31003 #, no-wrap
31004 msgid ""
31005 " truncate-size path size\n"
31006 "\n"
31007 msgstr ""
31008
31009 # type: textblock
31010 #. type: textblock
31011 #: ../fish/guestfish-actions.pod:4584
31012 msgid ""
31013 "If the current file size is less than C<size> then the file is extended to "
31014 "the required size with zero bytes.  This creates a sparse file (ie. disk "
31015 "blocks are not allocated for the file until you write to it).  To create a "
31016 "non-sparse file of zeroes, use L</fallocate64> instead."
31017 msgstr ""
31018
31019 # type: =head2
31020 #. type: =head2
31021 #: ../fish/guestfish-actions.pod:4590
31022 msgid "tune2fs-l"
31023 msgstr ""
31024
31025 # type: verbatim
31026 #. type: verbatim
31027 #: ../fish/guestfish-actions.pod:4592
31028 #, no-wrap
31029 msgid ""
31030 " tune2fs-l device\n"
31031 "\n"
31032 msgstr ""
31033
31034 # type: =head2
31035 #. type: =head2
31036 #: ../fish/guestfish-actions.pod:4602
31037 msgid "txz-in"
31038 msgstr ""
31039
31040 # type: verbatim
31041 #. type: verbatim
31042 #: ../fish/guestfish-actions.pod:4604
31043 #, no-wrap
31044 msgid ""
31045 " txz-in (tarball|-) directory\n"
31046 "\n"
31047 msgstr ""
31048
31049 # type: =head2
31050 #. type: =head2
31051 #: ../fish/guestfish-actions.pod:4611
31052 msgid "txz-out"
31053 msgstr ""
31054
31055 # type: verbatim
31056 #. type: verbatim
31057 #: ../fish/guestfish-actions.pod:4613
31058 #, no-wrap
31059 msgid ""
31060 " txz-out directory (tarball|-)\n"
31061 "\n"
31062 msgstr ""
31063
31064 # type: =head2
31065 #. type: =head2
31066 #: ../fish/guestfish-actions.pod:4620
31067 msgid "umask"
31068 msgstr ""
31069
31070 # type: verbatim
31071 #. type: verbatim
31072 #: ../fish/guestfish-actions.pod:4622
31073 #, no-wrap
31074 msgid ""
31075 " umask mask\n"
31076 "\n"
31077 msgstr ""
31078
31079 # type: textblock
31080 #. type: textblock
31081 #: ../fish/guestfish-actions.pod:4636
31082 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
31083 msgstr ""
31084
31085 # type: =head2
31086 #. type: =head2
31087 #: ../fish/guestfish-actions.pod:4641
31088 msgid "umount"
31089 msgstr ""
31090
31091 # type: =head2
31092 #. type: =head2
31093 #: ../fish/guestfish-actions.pod:4643
31094 msgid "unmount"
31095 msgstr ""
31096
31097 # type: verbatim
31098 #. type: verbatim
31099 #: ../fish/guestfish-actions.pod:4645
31100 #, no-wrap
31101 msgid ""
31102 " umount pathordevice\n"
31103 "\n"
31104 msgstr ""
31105
31106 # type: =head2
31107 #. type: =head2
31108 #: ../fish/guestfish-actions.pod:4651
31109 msgid "umount-all"
31110 msgstr ""
31111
31112 # type: =head2
31113 #. type: =head2
31114 #: ../fish/guestfish-actions.pod:4653
31115 msgid "unmount-all"
31116 msgstr ""
31117
31118 # type: verbatim
31119 #. type: verbatim
31120 #: ../fish/guestfish-actions.pod:4655
31121 #, no-wrap
31122 msgid ""
31123 " umount-all\n"
31124 "\n"
31125 msgstr ""
31126
31127 # type: =head2
31128 #. type: =head2
31129 #: ../fish/guestfish-actions.pod:4661
31130 msgid "upload"
31131 msgstr ""
31132
31133 # type: verbatim
31134 #. type: verbatim
31135 #: ../fish/guestfish-actions.pod:4663
31136 #, no-wrap
31137 msgid ""
31138 " upload (filename|-) remotefilename\n"
31139 "\n"
31140 msgstr ""
31141
31142 # type: textblock
31143 #. type: textblock
31144 #: ../fish/guestfish-actions.pod:4670
31145 msgid "See also L</download>."
31146 msgstr ""
31147
31148 # type: =head2
31149 #. type: =head2
31150 #: ../fish/guestfish-actions.pod:4674
31151 msgid "upload-offset"
31152 msgstr ""
31153
31154 # type: verbatim
31155 #. type: verbatim
31156 #: ../fish/guestfish-actions.pod:4676
31157 #, no-wrap
31158 msgid ""
31159 " upload-offset (filename|-) remotefilename offset\n"
31160 "\n"
31161 msgstr ""
31162
31163 # type: textblock
31164 #. type: textblock
31165 #: ../fish/guestfish-actions.pod:4688
31166 msgid ""
31167 "Note that there is no limit on the amount of data that can be uploaded with "
31168 "this call, unlike with L</pwrite>, and this call always writes the full "
31169 "amount unless an error occurs."
31170 msgstr ""
31171
31172 # type: textblock
31173 #. type: textblock
31174 #: ../fish/guestfish-actions.pod:4693
31175 msgid "See also L</upload>, L</pwrite>."
31176 msgstr ""
31177
31178 # type: =head2
31179 #. type: =head2
31180 #: ../fish/guestfish-actions.pod:4697
31181 msgid "utimens"
31182 msgstr ""
31183
31184 # type: verbatim
31185 #. type: verbatim
31186 #: ../fish/guestfish-actions.pod:4699
31187 #, no-wrap
31188 msgid ""
31189 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
31190 "\n"
31191 msgstr ""
31192
31193 # type: =head2
31194 #. type: =head2
31195 #: ../fish/guestfish-actions.pod:4718
31196 msgid "version"
31197 msgstr ""
31198
31199 # type: verbatim
31200 #. type: verbatim
31201 #: ../fish/guestfish-actions.pod:4720
31202 #, no-wrap
31203 msgid ""
31204 " version\n"
31205 "\n"
31206 msgstr ""
31207
31208 # type: textblock
31209 #. type: textblock
31210 #: ../fish/guestfish-actions.pod:4747
31211 msgid ""
31212 "I<Note:> Don't use this call to test for availability of features.  In "
31213 "enterprise distributions we backport features from later versions into "
31214 "earlier versions, making this an unreliable way to test for features.  Use "
31215 "L</available> instead."
31216 msgstr ""
31217
31218 # type: =head2
31219 #. type: =head2
31220 #: ../fish/guestfish-actions.pod:4753
31221 msgid "vfs-label"
31222 msgstr ""
31223
31224 # type: verbatim
31225 #. type: verbatim
31226 #: ../fish/guestfish-actions.pod:4755
31227 #, no-wrap
31228 msgid ""
31229 " vfs-label device\n"
31230 "\n"
31231 msgstr ""
31232
31233 # type: textblock
31234 #. type: textblock
31235 #: ../fish/guestfish-actions.pod:4762
31236 msgid "To find a filesystem from the label, use L</findfs-label>."
31237 msgstr ""
31238
31239 # type: =head2
31240 #. type: =head2
31241 #: ../fish/guestfish-actions.pod:4764
31242 msgid "vfs-type"
31243 msgstr ""
31244
31245 # type: verbatim
31246 #. type: verbatim
31247 #: ../fish/guestfish-actions.pod:4766
31248 #, no-wrap
31249 msgid ""
31250 " vfs-type device\n"
31251 "\n"
31252 msgstr ""
31253
31254 # type: =head2
31255 #. type: =head2
31256 #: ../fish/guestfish-actions.pod:4776
31257 msgid "vfs-uuid"
31258 msgstr ""
31259
31260 # type: verbatim
31261 #. type: verbatim
31262 #: ../fish/guestfish-actions.pod:4778
31263 #, no-wrap
31264 msgid ""
31265 " vfs-uuid device\n"
31266 "\n"
31267 msgstr ""
31268
31269 # type: textblock
31270 #. type: textblock
31271 #: ../fish/guestfish-actions.pod:4785
31272 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
31273 msgstr ""
31274
31275 # type: =head2
31276 #. type: =head2
31277 #: ../fish/guestfish-actions.pod:4787
31278 msgid "vg-activate"
31279 msgstr ""
31280
31281 # type: verbatim
31282 #. type: verbatim
31283 #: ../fish/guestfish-actions.pod:4789
31284 #, no-wrap
31285 msgid ""
31286 " vg-activate true|false 'volgroups ...'\n"
31287 "\n"
31288 msgstr ""
31289
31290 # type: =head2
31291 #. type: =head2
31292 #: ../fish/guestfish-actions.pod:4802
31293 msgid "vg-activate-all"
31294 msgstr ""
31295
31296 # type: verbatim
31297 #. type: verbatim
31298 #: ../fish/guestfish-actions.pod:4804
31299 #, no-wrap
31300 msgid ""
31301 " vg-activate-all true|false\n"
31302 "\n"
31303 msgstr ""
31304
31305 # type: =head2
31306 #. type: =head2
31307 #: ../fish/guestfish-actions.pod:4814
31308 msgid "vgcreate"
31309 msgstr ""
31310
31311 # type: verbatim
31312 #. type: verbatim
31313 #: ../fish/guestfish-actions.pod:4816
31314 #, no-wrap
31315 msgid ""
31316 " vgcreate volgroup 'physvols ...'\n"
31317 "\n"
31318 msgstr ""
31319
31320 # type: =head2
31321 #. type: =head2
31322 #: ../fish/guestfish-actions.pod:4821
31323 msgid "vglvuuids"
31324 msgstr ""
31325
31326 # type: verbatim
31327 #. type: verbatim
31328 #: ../fish/guestfish-actions.pod:4823
31329 #, no-wrap
31330 msgid ""
31331 " vglvuuids vgname\n"
31332 "\n"
31333 msgstr ""
31334
31335 # type: textblock
31336 #. type: textblock
31337 #: ../fish/guestfish-actions.pod:4828
31338 msgid ""
31339 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
31340 "logical volumes and volume groups."
31341 msgstr ""
31342
31343 # type: textblock
31344 #. type: textblock
31345 #: ../fish/guestfish-actions.pod:4831
31346 msgid "See also L</vgpvuuids>."
31347 msgstr ""
31348
31349 # type: =head2
31350 #. type: =head2
31351 #: ../fish/guestfish-actions.pod:4833
31352 msgid "vgpvuuids"
31353 msgstr ""
31354
31355 # type: verbatim
31356 #. type: verbatim
31357 #: ../fish/guestfish-actions.pod:4835
31358 #, no-wrap
31359 msgid ""
31360 " vgpvuuids vgname\n"
31361 "\n"
31362 msgstr ""
31363
31364 # type: textblock
31365 #. type: textblock
31366 #: ../fish/guestfish-actions.pod:4840
31367 msgid ""
31368 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
31369 "physical volumes and volume groups."
31370 msgstr ""
31371
31372 # type: textblock
31373 #. type: textblock
31374 #: ../fish/guestfish-actions.pod:4843
31375 msgid "See also L</vglvuuids>."
31376 msgstr ""
31377
31378 # type: =head2
31379 #. type: =head2
31380 #: ../fish/guestfish-actions.pod:4845
31381 msgid "vgremove"
31382 msgstr ""
31383
31384 # type: verbatim
31385 #. type: verbatim
31386 #: ../fish/guestfish-actions.pod:4847
31387 #, no-wrap
31388 msgid ""
31389 " vgremove vgname\n"
31390 "\n"
31391 msgstr ""
31392
31393 # type: =head2
31394 #. type: =head2
31395 #: ../fish/guestfish-actions.pod:4854
31396 msgid "vgrename"
31397 msgstr ""
31398
31399 # type: verbatim
31400 #. type: verbatim
31401 #: ../fish/guestfish-actions.pod:4856
31402 #, no-wrap
31403 msgid ""
31404 " vgrename volgroup newvolgroup\n"
31405 "\n"
31406 msgstr ""
31407
31408 # type: =head2
31409 #. type: =head2
31410 #: ../fish/guestfish-actions.pod:4860
31411 msgid "vgs"
31412 msgstr ""
31413
31414 # type: verbatim
31415 #. type: verbatim
31416 #: ../fish/guestfish-actions.pod:4862
31417 #, no-wrap
31418 msgid ""
31419 " vgs\n"
31420 "\n"
31421 msgstr ""
31422
31423 # type: textblock
31424 #. type: textblock
31425 #: ../fish/guestfish-actions.pod:4870
31426 msgid "See also L</vgs-full>."
31427 msgstr ""
31428
31429 # type: =head2
31430 #. type: =head2
31431 #: ../fish/guestfish-actions.pod:4872
31432 msgid "vgs-full"
31433 msgstr ""
31434
31435 # type: verbatim
31436 #. type: verbatim
31437 #: ../fish/guestfish-actions.pod:4874
31438 #, no-wrap
31439 msgid ""
31440 " vgs-full\n"
31441 "\n"
31442 msgstr ""
31443
31444 # type: =head2
31445 #. type: =head2
31446 #: ../fish/guestfish-actions.pod:4879
31447 msgid "vgscan"
31448 msgstr ""
31449
31450 # type: verbatim
31451 #. type: verbatim
31452 #: ../fish/guestfish-actions.pod:4881
31453 #, no-wrap
31454 msgid ""
31455 " vgscan\n"
31456 "\n"
31457 msgstr ""
31458
31459 # type: =head2
31460 #. type: =head2
31461 #: ../fish/guestfish-actions.pod:4886
31462 msgid "vguuid"
31463 msgstr ""
31464
31465 # type: verbatim
31466 #. type: verbatim
31467 #: ../fish/guestfish-actions.pod:4888
31468 #, no-wrap
31469 msgid ""
31470 " vguuid vgname\n"
31471 "\n"
31472 msgstr ""
31473
31474 # type: =head2
31475 #. type: =head2
31476 #: ../fish/guestfish-actions.pod:4892
31477 msgid "wc-c"
31478 msgstr ""
31479
31480 # type: verbatim
31481 #. type: verbatim
31482 #: ../fish/guestfish-actions.pod:4894
31483 #, no-wrap
31484 msgid ""
31485 " wc-c path\n"
31486 "\n"
31487 msgstr ""
31488
31489 # type: =head2
31490 #. type: =head2
31491 #: ../fish/guestfish-actions.pod:4899
31492 msgid "wc-l"
31493 msgstr ""
31494
31495 # type: verbatim
31496 #. type: verbatim
31497 #: ../fish/guestfish-actions.pod:4901
31498 #, no-wrap
31499 msgid ""
31500 " wc-l path\n"
31501 "\n"
31502 msgstr ""
31503
31504 # type: =head2
31505 #. type: =head2
31506 #: ../fish/guestfish-actions.pod:4906
31507 msgid "wc-w"
31508 msgstr ""
31509
31510 # type: verbatim
31511 #. type: verbatim
31512 #: ../fish/guestfish-actions.pod:4908
31513 #, no-wrap
31514 msgid ""
31515 " wc-w path\n"
31516 "\n"
31517 msgstr ""
31518
31519 # type: =head2
31520 #. type: =head2
31521 #: ../fish/guestfish-actions.pod:4913
31522 msgid "write"
31523 msgstr ""
31524
31525 # type: verbatim
31526 #. type: verbatim
31527 #: ../fish/guestfish-actions.pod:4915
31528 #, no-wrap
31529 msgid ""
31530 " write path content\n"
31531 "\n"
31532 msgstr ""
31533
31534 # type: =head2
31535 #. type: =head2
31536 #: ../fish/guestfish-actions.pod:4923
31537 msgid "write-file"
31538 msgstr ""
31539
31540 # type: verbatim
31541 #. type: verbatim
31542 #: ../fish/guestfish-actions.pod:4925
31543 #, no-wrap
31544 msgid ""
31545 " write-file path content size\n"
31546 "\n"
31547 msgstr ""
31548
31549 # type: =head2
31550 #. type: =head2
31551 #: ../fish/guestfish-actions.pod:4948
31552 msgid "zegrep"
31553 msgstr ""
31554
31555 # type: verbatim
31556 #. type: verbatim
31557 #: ../fish/guestfish-actions.pod:4950
31558 #, no-wrap
31559 msgid ""
31560 " zegrep regex path\n"
31561 "\n"
31562 msgstr ""
31563
31564 # type: =head2
31565 #. type: =head2
31566 #: ../fish/guestfish-actions.pod:4958
31567 msgid "zegrepi"
31568 msgstr ""
31569
31570 # type: verbatim
31571 #. type: verbatim
31572 #: ../fish/guestfish-actions.pod:4960
31573 #, no-wrap
31574 msgid ""
31575 " zegrepi regex path\n"
31576 "\n"
31577 msgstr ""
31578
31579 # type: =head2
31580 #. type: =head2
31581 #: ../fish/guestfish-actions.pod:4968
31582 msgid "zero"
31583 msgstr ""
31584
31585 # type: verbatim
31586 #. type: verbatim
31587 #: ../fish/guestfish-actions.pod:4970
31588 #, no-wrap
31589 msgid ""
31590 " zero device\n"
31591 "\n"
31592 msgstr ""
31593
31594 #. type: textblock
31595 #: ../fish/guestfish-actions.pod:4978
31596 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
31597 msgstr ""
31598
31599 # type: =head2
31600 #. type: =head2
31601 #: ../fish/guestfish-actions.pod:4981
31602 msgid "zero-device"
31603 msgstr ""
31604
31605 # type: verbatim
31606 #. type: verbatim
31607 #: ../fish/guestfish-actions.pod:4983
31608 #, no-wrap
31609 msgid ""
31610 " zero-device device\n"
31611 "\n"
31612 msgstr ""
31613
31614 # type: textblock
31615 #. type: textblock
31616 #: ../fish/guestfish-actions.pod:4985
31617 msgid ""
31618 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
31619 "which just zeroes the first few blocks of a device."
31620 msgstr ""
31621
31622 # type: =head2
31623 #. type: =head2
31624 #: ../fish/guestfish-actions.pod:4992
31625 msgid "zerofree"
31626 msgstr ""
31627
31628 # type: verbatim
31629 #. type: verbatim
31630 #: ../fish/guestfish-actions.pod:4994
31631 #, no-wrap
31632 msgid ""
31633 " zerofree device\n"
31634 "\n"
31635 msgstr ""
31636
31637 # type: =head2
31638 #. type: =head2
31639 #: ../fish/guestfish-actions.pod:5007
31640 msgid "zfgrep"
31641 msgstr ""
31642
31643 # type: verbatim
31644 #. type: verbatim
31645 #: ../fish/guestfish-actions.pod:5009
31646 #, no-wrap
31647 msgid ""
31648 " zfgrep pattern path\n"
31649 "\n"
31650 msgstr ""
31651
31652 # type: =head2
31653 #. type: =head2
31654 #: ../fish/guestfish-actions.pod:5017
31655 msgid "zfgrepi"
31656 msgstr ""
31657
31658 # type: verbatim
31659 #. type: verbatim
31660 #: ../fish/guestfish-actions.pod:5019
31661 #, no-wrap
31662 msgid ""
31663 " zfgrepi pattern path\n"
31664 "\n"
31665 msgstr ""
31666
31667 # type: =head2
31668 #. type: =head2
31669 #: ../fish/guestfish-actions.pod:5027
31670 msgid "zfile"
31671 msgstr ""
31672
31673 # type: verbatim
31674 #. type: verbatim
31675 #: ../fish/guestfish-actions.pod:5029
31676 #, no-wrap
31677 msgid ""
31678 " zfile meth path\n"
31679 "\n"
31680 msgstr ""
31681
31682 # type: textblock
31683 #. type: textblock
31684 #: ../fish/guestfish-actions.pod:5036
31685 msgid ""
31686 "Since 1.0.63, use L</file> instead which can now process compressed files."
31687 msgstr ""
31688
31689 # type: =head2
31690 #. type: =head2
31691 #: ../fish/guestfish-actions.pod:5046
31692 msgid "zgrep"
31693 msgstr ""
31694
31695 # type: verbatim
31696 #. type: verbatim
31697 #: ../fish/guestfish-actions.pod:5048
31698 #, no-wrap
31699 msgid ""
31700 " zgrep regex path\n"
31701 "\n"
31702 msgstr ""
31703
31704 # type: =head2
31705 #. type: =head2
31706 #: ../fish/guestfish-actions.pod:5056
31707 msgid "zgrepi"
31708 msgstr ""
31709
31710 # type: verbatim
31711 #. type: verbatim
31712 #: ../fish/guestfish-actions.pod:5058
31713 #, no-wrap
31714 msgid ""
31715 " zgrepi regex path\n"
31716 "\n"
31717 msgstr ""
31718
31719 # type: =head2
31720 #. type: =head2
31721 #: ../fish/guestfish-commands.pod:1
31722 msgid "alloc"
31723 msgstr ""
31724
31725 # type: =head2
31726 #. type: =head2
31727 #: ../fish/guestfish-commands.pod:3
31728 msgid "allocate"
31729 msgstr ""
31730
31731 # type: verbatim
31732 #. type: verbatim
31733 #: ../fish/guestfish-commands.pod:5
31734 #, no-wrap
31735 msgid ""
31736 " alloc filename size\n"
31737 "\n"
31738 msgstr ""
31739
31740 # type: textblock
31741 #. type: textblock
31742 #: ../fish/guestfish-commands.pod:7
31743 msgid ""
31744 "This creates an empty (zeroed) file of the given size, and then adds so it "
31745 "can be further examined."
31746 msgstr ""
31747
31748 # type: textblock
31749 #. type: textblock
31750 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:182
31751 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
31752 msgstr ""
31753
31754 # type: textblock
31755 #. type: textblock
31756 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:184
31757 msgid "Size can be specified using standard suffixes, eg. C<1M>."
31758 msgstr ""
31759
31760 # type: textblock
31761 #. type: textblock
31762 #: ../fish/guestfish-commands.pod:14
31763 msgid ""
31764 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
31765 "image, see L</PREPARED DISK IMAGES>."
31766 msgstr ""
31767
31768 # type: =head2
31769 #. type: =head2
31770 #: ../fish/guestfish-commands.pod:17
31771 msgid "copy-in"
31772 msgstr ""
31773
31774 # type: verbatim
31775 #. type: verbatim
31776 #: ../fish/guestfish-commands.pod:19
31777 #, no-wrap
31778 msgid ""
31779 " copy-in local [local ...] /remotedir\n"
31780 "\n"
31781 msgstr ""
31782
31783 # type: textblock
31784 #. type: textblock
31785 #: ../fish/guestfish-commands.pod:21
31786 msgid ""
31787 "C<copy-in> copies local files or directories recursively into the disk "
31788 "image, placing them in the directory called C</remotedir> (which must "
31789 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
31790 "other commands as necessary."
31791 msgstr ""
31792
31793 # type: textblock
31794 #. type: textblock
31795 #: ../fish/guestfish-commands.pod:26
31796 msgid ""
31797 "Multiple local files and directories can be specified, but the last "
31798 "parameter must always be a remote directory.  Wildcards cannot be used."
31799 msgstr ""
31800
31801 # type: =head2
31802 #. type: =head2
31803 #: ../fish/guestfish-commands.pod:30
31804 msgid "copy-out"
31805 msgstr ""
31806
31807 # type: verbatim
31808 #. type: verbatim
31809 #: ../fish/guestfish-commands.pod:32
31810 #, no-wrap
31811 msgid ""
31812 " copy-out remote [remote ...] localdir\n"
31813 "\n"
31814 msgstr ""
31815
31816 # type: textblock
31817 #. type: textblock
31818 #: ../fish/guestfish-commands.pod:34
31819 msgid ""
31820 "C<copy-out> copies remote files or directories recursively out of the disk "
31821 "image, placing them on the host disk in a local directory called C<localdir> "
31822 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
31823 "download>, L</tar-out> and other commands as necessary."
31824 msgstr ""
31825
31826 # type: textblock
31827 #. type: textblock
31828 #: ../fish/guestfish-commands.pod:40
31829 msgid ""
31830 "Multiple remote files and directories can be specified, but the last "
31831 "parameter must always be a local directory.  To download to the current "
31832 "directory, use C<.> as in:"
31833 msgstr ""
31834
31835 # type: verbatim
31836 #. type: verbatim
31837 #: ../fish/guestfish-commands.pod:44
31838 #, no-wrap
31839 msgid ""
31840 " copy-out /home .\n"
31841 "\n"
31842 msgstr ""
31843
31844 # type: textblock
31845 #. type: textblock
31846 #: ../fish/guestfish-commands.pod:46
31847 msgid ""
31848 "Wildcards cannot be used in the ordinary command, but you can use them with "
31849 "the help of L</glob> like this:"
31850 msgstr ""
31851
31852 # type: verbatim
31853 #. type: verbatim
31854 #: ../fish/guestfish-commands.pod:49
31855 #, no-wrap
31856 msgid ""
31857 " glob copy-out /home/* .\n"
31858 "\n"
31859 msgstr ""
31860
31861 #. type: =head2
31862 #: ../fish/guestfish-commands.pod:51
31863 msgid "display"
31864 msgstr ""
31865
31866 #. type: verbatim
31867 #: ../fish/guestfish-commands.pod:53
31868 #, no-wrap
31869 msgid ""
31870 " display filename\n"
31871 "\n"
31872 msgstr ""
31873
31874 #. type: textblock
31875 #: ../fish/guestfish-commands.pod:55
31876 msgid ""
31877 "Use C<display> (a graphical display program) to display an image file.  It "
31878 "downloads the file, and runs C<display> on it."
31879 msgstr ""
31880
31881 #. type: textblock
31882 #: ../fish/guestfish-commands.pod:58
31883 msgid ""
31884 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
31885 "environment variable.  For example to use the GNOME display program:"
31886 msgstr ""
31887
31888 #. type: verbatim
31889 #: ../fish/guestfish-commands.pod:61
31890 #, no-wrap
31891 msgid ""
31892 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
31893 "\n"
31894 msgstr ""
31895
31896 #. type: textblock
31897 #: ../fish/guestfish-commands.pod:63
31898 msgid "See also L<display(1)>."
31899 msgstr ""
31900
31901 # type: =head2
31902 #. type: =head2
31903 #: ../fish/guestfish-commands.pod:65
31904 msgid "echo"
31905 msgstr ""
31906
31907 # type: verbatim
31908 #. type: verbatim
31909 #: ../fish/guestfish-commands.pod:67
31910 #, no-wrap
31911 msgid ""
31912 " echo [params ...]\n"
31913 "\n"
31914 msgstr ""
31915
31916 # type: textblock
31917 #. type: textblock
31918 #: ../fish/guestfish-commands.pod:69
31919 msgid "This echos the parameters to the terminal."
31920 msgstr ""
31921
31922 # type: =head2
31923 #. type: =head2
31924 #: ../fish/guestfish-commands.pod:71
31925 msgid "edit"
31926 msgstr ""
31927
31928 # type: =head2
31929 #. type: =head2
31930 #: ../fish/guestfish-commands.pod:73
31931 msgid "vi"
31932 msgstr ""
31933
31934 # type: =head2
31935 #. type: =head2
31936 #: ../fish/guestfish-commands.pod:75
31937 msgid "emacs"
31938 msgstr ""
31939
31940 # type: verbatim
31941 #. type: verbatim
31942 #: ../fish/guestfish-commands.pod:77
31943 #, no-wrap
31944 msgid ""
31945 " edit filename\n"
31946 "\n"
31947 msgstr ""
31948
31949 # type: textblock
31950 #. type: textblock
31951 #: ../fish/guestfish-commands.pod:79
31952 msgid ""
31953 "This is used to edit a file.  It downloads the file, edits it locally using "
31954 "your editor, then uploads the result."
31955 msgstr ""
31956
31957 # type: textblock
31958 #. type: textblock
31959 #: ../fish/guestfish-commands.pod:82
31960 msgid ""
31961 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
31962 "or C<emacs> you will get those corresponding editors."
31963 msgstr ""
31964
31965 # type: =head2
31966 #. type: =head2
31967 #: ../fish/guestfish-commands.pod:86
31968 msgid "glob"
31969 msgstr ""
31970
31971 # type: verbatim
31972 #. type: verbatim
31973 #: ../fish/guestfish-commands.pod:88
31974 #, no-wrap
31975 msgid ""
31976 " glob command args...\n"
31977 "\n"
31978 msgstr ""
31979
31980 # type: textblock
31981 #. type: textblock
31982 #: ../fish/guestfish-commands.pod:90
31983 msgid ""
31984 "Expand wildcards in any paths in the args list, and run C<command> "
31985 "repeatedly on each matching path."
31986 msgstr ""
31987
31988 # type: textblock
31989 #. type: textblock
31990 #: ../fish/guestfish-commands.pod:93
31991 msgid "See L</WILDCARDS AND GLOBBING>."
31992 msgstr ""
31993
31994 # type: =head2
31995 #. type: =head2
31996 #: ../fish/guestfish-commands.pod:95
31997 msgid "hexedit"
31998 msgstr ""
31999
32000 # type: verbatim
32001 #. type: verbatim
32002 #: ../fish/guestfish-commands.pod:97
32003 #, no-wrap
32004 msgid ""
32005 " hexedit <filename|device>\n"
32006 " hexedit <filename|device> <max>\n"
32007 " hexedit <filename|device> <start> <max>\n"
32008 "\n"
32009 msgstr ""
32010
32011 # type: textblock
32012 #. type: textblock
32013 #: ../fish/guestfish-commands.pod:101
32014 msgid ""
32015 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
32016 "device."
32017 msgstr ""
32018
32019 # type: textblock
32020 #. type: textblock
32021 #: ../fish/guestfish-commands.pod:104
32022 msgid ""
32023 "This command works by downloading potentially the whole file or device, "
32024 "editing it locally, then uploading it.  If the file or device is large, you "
32025 "have to specify which part you wish to edit by using C<max> and/or C<start> "
32026 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
32027 "usual modifiers allowed such as C<1M> (1 megabyte)."
32028 msgstr ""
32029
32030 # type: textblock
32031 #. type: textblock
32032 #: ../fish/guestfish-commands.pod:111
32033 msgid "For example to edit the first few sectors of a disk you might do:"
32034 msgstr ""
32035
32036 # type: verbatim
32037 #. type: verbatim
32038 #: ../fish/guestfish-commands.pod:114
32039 #, no-wrap
32040 msgid ""
32041 " hexedit /dev/sda 1M\n"
32042 "\n"
32043 msgstr ""
32044
32045 # type: textblock
32046 #. type: textblock
32047 #: ../fish/guestfish-commands.pod:116
32048 msgid ""
32049 "which would allow you to edit anywhere within the first megabyte of the disk."
32050 msgstr ""
32051
32052 # type: textblock
32053 #. type: textblock
32054 #: ../fish/guestfish-commands.pod:119
32055 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
32056 msgstr ""
32057
32058 # type: verbatim
32059 #. type: verbatim
32060 #: ../fish/guestfish-commands.pod:121
32061 #, no-wrap
32062 msgid ""
32063 " hexedit /dev/sda1 0x400 0x400\n"
32064 "\n"
32065 msgstr ""
32066
32067 # type: textblock
32068 #. type: textblock
32069 #: ../fish/guestfish-commands.pod:123
32070 msgid "(assuming the superblock is in the standard location)."
32071 msgstr ""
32072
32073 # type: textblock
32074 #. type: textblock
32075 #: ../fish/guestfish-commands.pod:125
32076 msgid ""
32077 "This command requires the external L<hexedit(1)> program.  You can specify "
32078 "another program to use by setting the C<HEXEDITOR> environment variable."
32079 msgstr ""
32080
32081 # type: textblock
32082 #. type: textblock
32083 #: ../fish/guestfish-commands.pod:129
32084 msgid "See also L</hexdump>."
32085 msgstr ""
32086
32087 # type: =head2
32088 #. type: =head2
32089 #: ../fish/guestfish-commands.pod:131
32090 msgid "lcd"
32091 msgstr ""
32092
32093 # type: verbatim
32094 #. type: verbatim
32095 #: ../fish/guestfish-commands.pod:133
32096 #, no-wrap
32097 msgid ""
32098 " lcd directory\n"
32099 "\n"
32100 msgstr ""
32101
32102 # type: textblock
32103 #. type: textblock
32104 #: ../fish/guestfish-commands.pod:135
32105 msgid ""
32106 "Change the local directory, ie. the current directory of guestfish itself."
32107 msgstr ""
32108
32109 # type: textblock
32110 #. type: textblock
32111 #: ../fish/guestfish-commands.pod:138
32112 msgid "Note that C<!cd> won't do what you might expect."
32113 msgstr ""
32114
32115 # type: =head2
32116 #. type: =head2
32117 #: ../fish/guestfish-commands.pod:140
32118 msgid "man"
32119 msgstr ""
32120
32121 # type: =head2
32122 #. type: =head2
32123 #: ../fish/guestfish-commands.pod:142
32124 msgid "manual"
32125 msgstr ""
32126
32127 # type: verbatim
32128 #. type: verbatim
32129 #: ../fish/guestfish-commands.pod:144
32130 #, no-wrap
32131 msgid ""
32132 "  man\n"
32133 "\n"
32134 msgstr ""
32135
32136 # type: textblock
32137 #. type: textblock
32138 #: ../fish/guestfish-commands.pod:146
32139 msgid "Opens the manual page for guestfish."
32140 msgstr ""
32141
32142 # type: =head2
32143 #. type: =head2
32144 #: ../fish/guestfish-commands.pod:148
32145 msgid "more"
32146 msgstr ""
32147
32148 # type: =head2
32149 #. type: =head2
32150 #: ../fish/guestfish-commands.pod:150
32151 msgid "less"
32152 msgstr ""
32153
32154 # type: verbatim
32155 #. type: verbatim
32156 #: ../fish/guestfish-commands.pod:152
32157 #, no-wrap
32158 msgid ""
32159 " more filename\n"
32160 "\n"
32161 msgstr ""
32162
32163 # type: verbatim
32164 #. type: verbatim
32165 #: ../fish/guestfish-commands.pod:154
32166 #, no-wrap
32167 msgid ""
32168 " less filename\n"
32169 "\n"
32170 msgstr ""
32171
32172 # type: textblock
32173 #. type: textblock
32174 #: ../fish/guestfish-commands.pod:156
32175 msgid "This is used to view a file."
32176 msgstr ""
32177
32178 # type: textblock
32179 #. type: textblock
32180 #: ../fish/guestfish-commands.pod:158
32181 msgid ""
32182 "The default viewer is C<$PAGER>.  However if you use the alternate command "
32183 "C<less> you will get the C<less> command specifically."
32184 msgstr ""
32185
32186 # type: =head2
32187 #. type: =head2
32188 #: ../fish/guestfish-commands.pod:161
32189 msgid "reopen"
32190 msgstr ""
32191
32192 # type: verbatim
32193 #. type: verbatim
32194 #: ../fish/guestfish-commands.pod:163
32195 #, no-wrap
32196 msgid ""
32197 "  reopen\n"
32198 "\n"
32199 msgstr ""
32200
32201 # type: textblock
32202 #. type: textblock
32203 #: ../fish/guestfish-commands.pod:165
32204 msgid ""
32205 "Close and reopen the libguestfs handle.  It is not necessary to use this "
32206 "normally, because the handle is closed properly when guestfish exits.  "
32207 "However this is occasionally useful for testing."
32208 msgstr ""
32209
32210 # type: =head2
32211 #. type: =head2
32212 #: ../fish/guestfish-commands.pod:169
32213 msgid "sparse"
32214 msgstr ""
32215
32216 # type: verbatim
32217 #. type: verbatim
32218 #: ../fish/guestfish-commands.pod:171
32219 #, no-wrap
32220 msgid ""
32221 " sparse filename size\n"
32222 "\n"
32223 msgstr ""
32224
32225 # type: textblock
32226 #. type: textblock
32227 #: ../fish/guestfish-commands.pod:173
32228 msgid ""
32229 "This creates an empty sparse file of the given size, and then adds so it can "
32230 "be further examined."
32231 msgstr ""
32232
32233 # type: textblock
32234 #. type: textblock
32235 #: ../fish/guestfish-commands.pod:176
32236 msgid ""
32237 "In all respects it works the same as the L</alloc> command, except that the "
32238 "image file is allocated sparsely, which means that disk blocks are not "
32239 "assigned to the file until they are needed.  Sparse disk files only use "
32240 "space when written to, but they are slower and there is a danger you could "
32241 "run out of real disk space during a write operation."
32242 msgstr ""
32243
32244 # type: =head2
32245 #. type: =head2
32246 #: ../fish/guestfish-commands.pod:186
32247 msgid "supported"
32248 msgstr ""
32249
32250 # type: verbatim
32251 #. type: verbatim
32252 #: ../fish/guestfish-commands.pod:188
32253 #, no-wrap
32254 msgid ""
32255 " supported\n"
32256 "\n"
32257 msgstr ""
32258
32259 # type: textblock
32260 #. type: textblock
32261 #: ../fish/guestfish-commands.pod:190
32262 msgid ""
32263 "This command returns a list of the optional groups known to the daemon, and "
32264 "indicates which ones are supported by this build of the libguestfs appliance."
32265 msgstr ""
32266
32267 # type: textblock
32268 #. type: textblock
32269 #: ../fish/guestfish-commands.pod:194
32270 msgid "See also L<guestfs(3)/AVAILABILITY>."
32271 msgstr ""
32272
32273 # type: =head2
32274 #. type: =head2
32275 #: ../fish/guestfish-commands.pod:196
32276 msgid "time"
32277 msgstr ""
32278
32279 # type: verbatim
32280 #. type: verbatim
32281 #: ../fish/guestfish-commands.pod:198
32282 #, no-wrap
32283 msgid ""
32284 " time command args...\n"
32285 "\n"
32286 msgstr ""
32287
32288 # type: textblock
32289 #. type: textblock
32290 #: ../fish/guestfish-commands.pod:200
32291 msgid ""
32292 "Run the command as usual, but print the elapsed time afterwards.  This can "
32293 "be useful for benchmarking operations."
32294 msgstr ""
32295
32296 # type: textblock
32297 #. type: textblock
32298 #: ../test-tool/libguestfs-test-tool.pod:5
32299 msgid "libguestfs-test-tool - End user tests for libguestfs"
32300 msgstr ""
32301
32302 # type: verbatim
32303 #. type: verbatim
32304 #: ../test-tool/libguestfs-test-tool.pod:9
32305 #, no-wrap
32306 msgid ""
32307 " libguestfs-test-tool [--options]\n"
32308 "\n"
32309 msgstr ""
32310
32311 # type: textblock
32312 #. type: textblock
32313 #: ../test-tool/libguestfs-test-tool.pod:13
32314 msgid ""
32315 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
32316 "and developers, to allow them to check basic libguestfs functionality is "
32317 "working.  This is needed because libguestfs occasionally breaks for reasons "
32318 "beyond our control: usually because of changes in the underlying qemu or "
32319 "kernel packages, or the host environment."
32320 msgstr ""
32321
32322 # type: textblock
32323 #. type: textblock
32324 #: ../test-tool/libguestfs-test-tool.pod:20
32325 msgid "If you suspect a problem in libguestfs, then just run:"
32326 msgstr ""
32327
32328 # type: verbatim
32329 #. type: verbatim
32330 #: ../test-tool/libguestfs-test-tool.pod:22
32331 #, no-wrap
32332 msgid ""
32333 " libguestfs-test-tool\n"
32334 "\n"
32335 msgstr ""
32336
32337 # type: textblock
32338 #. type: textblock
32339 #: ../test-tool/libguestfs-test-tool.pod:24
32340 msgid "It will print lots of diagnostic messages."
32341 msgstr ""
32342
32343 # type: textblock
32344 #. type: textblock
32345 #: ../test-tool/libguestfs-test-tool.pod:26
32346 msgid "If it runs to completion successfully, you will see this near the end:"
32347 msgstr ""
32348
32349 # type: verbatim
32350 #. type: verbatim
32351 #: ../test-tool/libguestfs-test-tool.pod:28
32352 #, no-wrap
32353 msgid ""
32354 " ===== TEST FINISHED OK =====\n"
32355 "\n"
32356 msgstr ""
32357
32358 # type: textblock
32359 #. type: textblock
32360 #: ../test-tool/libguestfs-test-tool.pod:30
32361 msgid "and the test tool will exit with code 0."
32362 msgstr ""
32363
32364 # type: textblock
32365 #. type: textblock
32366 #: ../test-tool/libguestfs-test-tool.pod:32
32367 msgid ""
32368 "If it fails (and/or exits with non-zero error code), please paste the "
32369 "B<complete, unedited> output of the test tool into a bug report.  More "
32370 "information about reporting bugs can be found on the L<http://libguestfs.org/"
32371 "> website."
32372 msgstr ""
32373
32374 # type: =item
32375 #. type: =item
32376 #: ../test-tool/libguestfs-test-tool.pod:41
32377 msgid "I<--help>"
32378 msgstr ""
32379
32380 # type: textblock
32381 #. type: textblock
32382 #: ../test-tool/libguestfs-test-tool.pod:43
32383 msgid "Display short usage information and exit."
32384 msgstr ""
32385
32386 # type: =item
32387 #. type: =item
32388 #: ../test-tool/libguestfs-test-tool.pod:45
32389 msgid "I<--qemu qemu_binary>"
32390 msgstr ""
32391
32392 # type: textblock
32393 #. type: textblock
32394 #: ../test-tool/libguestfs-test-tool.pod:47
32395 msgid ""
32396 "If you have downloaded another qemu binary, point this option at the full "
32397 "path of the binary to try it."
32398 msgstr ""
32399
32400 # type: =item
32401 #. type: =item
32402 #: ../test-tool/libguestfs-test-tool.pod:50
32403 msgid "I<--qemudir qemu_source_dir>"
32404 msgstr ""
32405
32406 # type: textblock
32407 #. type: textblock
32408 #: ../test-tool/libguestfs-test-tool.pod:52
32409 msgid ""
32410 "If you have compiled qemu from source, point this option at the source "
32411 "directory to try it."
32412 msgstr ""
32413
32414 # type: =item
32415 #. type: =item
32416 #: ../test-tool/libguestfs-test-tool.pod:55
32417 msgid "I<--timeout N>"
32418 msgstr ""
32419
32420 # type: textblock
32421 #. type: textblock
32422 #: ../test-tool/libguestfs-test-tool.pod:57
32423 msgid ""
32424 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
32425 "does not usually need to be adjusted unless your machine is very slow."
32426 msgstr ""
32427
32428 # type: =head1
32429 #. type: =head1
32430 #: ../test-tool/libguestfs-test-tool.pod:63
32431 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
32432 msgstr ""
32433
32434 # type: textblock
32435 #. type: textblock
32436 #: ../test-tool/libguestfs-test-tool.pod:65
32437 msgid ""
32438 "If you have compiled another version of qemu from source and would like to "
32439 "try that, then you can use the I<--qemudir> option to point to the qemu "
32440 "source directory."
32441 msgstr ""
32442
32443 # type: textblock
32444 #. type: textblock
32445 #: ../test-tool/libguestfs-test-tool.pod:69
32446 msgid ""
32447 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
32448 "option to point to the binary."
32449 msgstr ""
32450
32451 # type: textblock
32452 #. type: textblock
32453 #: ../test-tool/libguestfs-test-tool.pod:72
32454 msgid ""
32455 "When using an alternate qemu with libguestfs, usually you would need to "
32456 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
32457 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
32458 "use either of the I<--qemudir> or I<--qemu> options."
32459 msgstr ""
32460
32461 # type: textblock
32462 #. type: textblock
32463 #: ../test-tool/libguestfs-test-tool.pod:79
32464 msgid ""
32465 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
32466 "I<1> if there was an error."
32467 msgstr ""
32468
32469 # type: textblock
32470 #. type: textblock
32471 #: ../test-tool/libguestfs-test-tool.pod:84
32472 msgid ""
32473 "For the full list of environment variables which may affect libguestfs, "
32474 "please see the L<guestfs(3)> manual page."
32475 msgstr ""
32476
32477 # type: textblock
32478 #. type: textblock
32479 #: ../test-tool/libguestfs-test-tool.pod:89
32480 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
32481 msgstr ""
32482
32483 # type: textblock
32484 #. type: textblock
32485 #: ../fuse/guestmount.pod:5
32486 msgid ""
32487 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
32488 msgstr ""
32489
32490 # type: verbatim
32491 #. type: verbatim
32492 #: ../fuse/guestmount.pod:9
32493 #, no-wrap
32494 msgid ""
32495 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
32496 "\n"
32497 msgstr ""
32498
32499 # type: verbatim
32500 #. type: verbatim
32501 #: ../fuse/guestmount.pod:11
32502 #, no-wrap
32503 msgid ""
32504 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
32505 "\n"
32506 msgstr ""
32507
32508 # type: verbatim
32509 #. type: verbatim
32510 #: ../fuse/guestmount.pod:13
32511 #, no-wrap
32512 msgid ""
32513 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
32514 "\n"
32515 msgstr ""
32516
32517 # type: textblock
32518 #. type: textblock
32519 #: ../fuse/guestmount.pod:17
32520 msgid ""
32521 "You must I<not> use C<guestmount> in read-write mode on live virtual "
32522 "machines.  If you do this, you risk disk corruption in the VM."
32523 msgstr ""
32524
32525 # type: textblock
32526 #. type: textblock
32527 #: ../fuse/guestmount.pod:22
32528 msgid ""
32529 "The guestmount program can be used to mount virtual machine filesystems and "
32530 "other disk images on the host.  It uses libguestfs for access to the guest "
32531 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
32532 "a mountable device."
32533 msgstr ""
32534
32535 # type: textblock
32536 #. type: textblock
32537 #: ../fuse/guestmount.pod:27
32538 msgid ""
32539 "Along with other options, you have to give at least one device (I<-a> "
32540 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
32541 "option) or use the I<-i> inspection option.  How this works is better "
32542 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
32543 "below."
32544 msgstr ""
32545
32546 # type: textblock
32547 #. type: textblock
32548 #: ../fuse/guestmount.pod:33
32549 msgid ""
32550 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
32551 "by you, and the filesystem will not be visible to any other users unless you "
32552 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
32553 "the filesystem, use the C<fusermount -u> command."
32554 msgstr ""
32555
32556 # type: textblock
32557 #. type: textblock
32558 #: ../fuse/guestmount.pod:41
32559 msgid ""
32560 "For a typical Windows guest which has its main filesystem on the first "
32561 "partition:"
32562 msgstr ""
32563
32564 # type: verbatim
32565 #. type: verbatim
32566 #: ../fuse/guestmount.pod:44
32567 #, no-wrap
32568 msgid ""
32569 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
32570 "\n"
32571 msgstr ""
32572
32573 # type: textblock
32574 #. type: textblock
32575 #: ../fuse/guestmount.pod:46
32576 msgid ""
32577 "For a typical Linux guest which has a /boot filesystem on the first "
32578 "partition, and the root filesystem on a logical volume:"
32579 msgstr ""
32580
32581 # type: verbatim
32582 #. type: verbatim
32583 #: ../fuse/guestmount.pod:49
32584 #, no-wrap
32585 msgid ""
32586 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
32587 "\n"
32588 msgstr ""
32589
32590 # type: textblock
32591 #. type: textblock
32592 #: ../fuse/guestmount.pod:51
32593 msgid "To get libguestfs to detect guest mountpoints for you:"
32594 msgstr ""
32595
32596 # type: verbatim
32597 #. type: verbatim
32598 #: ../fuse/guestmount.pod:53
32599 #, no-wrap
32600 msgid ""
32601 " guestmount -a guest.img -i --ro /mnt\n"
32602 "\n"
32603 msgstr ""
32604
32605 # type: textblock
32606 #. type: textblock
32607 #: ../fuse/guestmount.pod:55
32608 msgid "For a libvirt guest called \"Guest\" you could do:"
32609 msgstr ""
32610
32611 # type: verbatim
32612 #. type: verbatim
32613 #: ../fuse/guestmount.pod:57
32614 #, no-wrap
32615 msgid ""
32616 " guestmount -d Guest -i --ro /mnt\n"
32617 "\n"
32618 msgstr ""
32619
32620 # type: textblock
32621 #. type: textblock
32622 #: ../fuse/guestmount.pod:59
32623 msgid ""
32624 "If you don't know what filesystems are contained in a guest or disk image, "
32625 "use L<virt-filesystems(1)> first:"
32626 msgstr ""
32627
32628 # type: verbatim
32629 #. type: verbatim
32630 #: ../fuse/guestmount.pod:62
32631 #, no-wrap
32632 msgid ""
32633 " virt-filesystems MyGuest\n"
32634 "\n"
32635 msgstr ""
32636
32637 # type: textblock
32638 #. type: textblock
32639 #: ../fuse/guestmount.pod:64
32640 msgid ""
32641 "If you want to trace the libguestfs calls but without excessive debugging "
32642 "information, we recommend:"
32643 msgstr ""
32644
32645 # type: verbatim
32646 #. type: verbatim
32647 #: ../fuse/guestmount.pod:67
32648 #, no-wrap
32649 msgid ""
32650 " guestmount [...] --trace /mnt\n"
32651 "\n"
32652 msgstr ""
32653
32654 # type: textblock
32655 #. type: textblock
32656 #: ../fuse/guestmount.pod:69
32657 msgid "If you want to debug the program, we recommend:"
32658 msgstr ""
32659
32660 # type: verbatim
32661 #. type: verbatim
32662 #: ../fuse/guestmount.pod:71
32663 #, no-wrap
32664 msgid ""
32665 " guestmount [...] --trace --verbose /mnt\n"
32666 "\n"
32667 msgstr ""
32668
32669 #. type: =head1
32670 #: ../fuse/guestmount.pod:73
32671 msgid "NOTES"
32672 msgstr ""
32673
32674 #. type: =head2
32675 #: ../fuse/guestmount.pod:75
32676 msgid "Other users cannot see the filesystem by default"
32677 msgstr ""
32678
32679 #. type: textblock
32680 #: ../fuse/guestmount.pod:77
32681 msgid ""
32682 "If you mount a filesystem as one user (eg. root), then other users will not "
32683 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
32684 "option when mounting:"
32685 msgstr ""
32686
32687 #. type: verbatim
32688 #: ../fuse/guestmount.pod:81
32689 #, no-wrap
32690 msgid ""
32691 " sudo guestmount [...] -o allow_other /mnt\n"
32692 "\n"
32693 msgstr ""
32694
32695 # type: =item
32696 #. type: =item
32697 #: ../fuse/guestmount.pod:87
32698 msgid "B<-a image> | B<--add image>"
32699 msgstr ""
32700
32701 # type: textblock
32702 #. type: textblock
32703 #: ../fuse/guestmount.pod:89
32704 msgid "Add a block device or virtual machine image."
32705 msgstr ""
32706
32707 # type: =item
32708 #. type: =item
32709 #: ../fuse/guestmount.pod:94
32710 msgid "B<-c URI> | B<--connect URI>"
32711 msgstr ""
32712
32713 # type: =item
32714 #. type: =item
32715 #: ../fuse/guestmount.pod:100
32716 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
32717 msgstr ""
32718
32719 # type: =item
32720 #. type: =item
32721 #: ../fuse/guestmount.pod:108
32722 msgid "B<--dir-cache-timeout N>"
32723 msgstr ""
32724
32725 # type: textblock
32726 #. type: textblock
32727 #: ../fuse/guestmount.pod:110
32728 msgid ""
32729 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
32730 "seconds.  The readdir cache [actually, there are several semi-independent "
32731 "caches] is populated after a readdir(2) call with the stat and extended "
32732 "attributes of the files in the directory, in anticipation that they will be "
32733 "requested soon after."
32734 msgstr ""
32735
32736 # type: textblock
32737 #. type: textblock
32738 #: ../fuse/guestmount.pod:116
32739 msgid ""
32740 "There is also a different attribute cache implemented by FUSE (see the FUSE "
32741 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
32742 "requests, only cache existing ones."
32743 msgstr ""
32744
32745 # type: =item
32746 #. type: =item
32747 #: ../fuse/guestmount.pod:127
32748 msgid "B<--format=raw|qcow2|..> | B<--format>"
32749 msgstr ""
32750
32751 # type: textblock
32752 #. type: textblock
32753 #: ../fuse/guestmount.pod:134
32754 msgid ""
32755 "If you have untrusted raw-format guest disk images, you should use this "
32756 "option to specify the disk format.  This avoids a possible security problem "
32757 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
32758 "guestfs_add_drive_opts>."
32759 msgstr ""
32760
32761 # type: =item
32762 #. type: =item
32763 #: ../fuse/guestmount.pod:139
32764 msgid "B<--fuse-help>"
32765 msgstr ""
32766
32767 # type: textblock
32768 #. type: textblock
32769 #: ../fuse/guestmount.pod:141
32770 msgid "Display help on special FUSE options (see I<-o> below)."
32771 msgstr ""
32772
32773 # type: textblock
32774 #. type: textblock
32775 #: ../fuse/guestmount.pod:145
32776 msgid "Display brief help and exit."
32777 msgstr ""
32778
32779 # type: =item
32780 #. type: =item
32781 #: ../fuse/guestmount.pod:147
32782 msgid "B<-i> | B<--inspector>"
32783 msgstr ""
32784
32785 # type: textblock
32786 #. type: textblock
32787 #: ../fuse/guestmount.pod:167
32788 msgid ""
32789 "Mount the named partition or logical volume on the given mountpoint B<in the "
32790 "guest> (this has nothing to do with mountpoints in the host)."
32791 msgstr ""
32792
32793 # type: textblock
32794 #. type: textblock
32795 #: ../fuse/guestmount.pod:170
32796 msgid ""
32797 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
32798 "something on C</>."
32799 msgstr ""
32800
32801 # type: =item
32802 #. type: =item
32803 #: ../fuse/guestmount.pod:183
32804 msgid "B<-n> | B<--no-sync>"
32805 msgstr ""
32806
32807 # type: textblock
32808 #. type: textblock
32809 #: ../fuse/guestmount.pod:185
32810 msgid ""
32811 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
32812 "unmounted.  If you specify this option, then we don't attempt to sync the "
32813 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
32814 msgstr ""
32815
32816 # type: =item
32817 #. type: =item
32818 #: ../fuse/guestmount.pod:190
32819 msgid "B<-o option> | B<--option option>"
32820 msgstr ""
32821
32822 # type: textblock
32823 #. type: textblock
32824 #: ../fuse/guestmount.pod:192
32825 msgid "Pass extra options to FUSE."
32826 msgstr ""
32827
32828 # type: textblock
32829 #. type: textblock
32830 #: ../fuse/guestmount.pod:194
32831 msgid ""
32832 "To get a list of all the extra options supported by FUSE, use the command "
32833 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
32834 "of them are a good idea."
32835 msgstr ""
32836
32837 # type: verbatim
32838 #. type: verbatim
32839 #: ../fuse/guestmount.pod:198
32840 #, no-wrap
32841 msgid ""
32842 " guestmount --fuse-help\n"
32843 "\n"
32844 msgstr ""
32845
32846 # type: textblock
32847 #. type: textblock
32848 #: ../fuse/guestmount.pod:200
32849 msgid "Some potentially useful FUSE options:"
32850 msgstr ""
32851
32852 # type: =item
32853 #. type: =item
32854 #: ../fuse/guestmount.pod:204
32855 msgid "B<-o allow_other>"
32856 msgstr ""
32857
32858 # type: textblock
32859 #. type: textblock
32860 #: ../fuse/guestmount.pod:206
32861 msgid "Allow other users to see the filesystem."
32862 msgstr ""
32863
32864 # type: =item
32865 #. type: =item
32866 #: ../fuse/guestmount.pod:208
32867 msgid "B<-o attr_timeout=N>"
32868 msgstr ""
32869
32870 # type: textblock
32871 #. type: textblock
32872 #: ../fuse/guestmount.pod:210
32873 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
32874 msgstr ""
32875
32876 # type: =item
32877 #. type: =item
32878 #: ../fuse/guestmount.pod:212
32879 msgid "B<-o kernel_cache>"
32880 msgstr ""
32881
32882 # type: textblock
32883 #. type: textblock
32884 #: ../fuse/guestmount.pod:214
32885 msgid ""
32886 "Allow the kernel to cache files (reduces the number of reads that have to go "
32887 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
32888 "afford the extra memory usage."
32889 msgstr ""
32890
32891 # type: =item
32892 #. type: =item
32893 #: ../fuse/guestmount.pod:218
32894 msgid "B<-o uid=N> B<-o gid=N>"
32895 msgstr ""
32896
32897 # type: textblock
32898 #. type: textblock
32899 #: ../fuse/guestmount.pod:220
32900 msgid ""
32901 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
32902 "the chosen values."
32903 msgstr ""
32904
32905 # type: =item
32906 #. type: =item
32907 #: ../fuse/guestmount.pod:225
32908 msgid "B<-r> | B<--ro>"
32909 msgstr ""
32910
32911 # type: textblock
32912 #. type: textblock
32913 #: ../fuse/guestmount.pod:227
32914 msgid ""
32915 "Add devices and mount everything read-only.  Also disallow writes and make "
32916 "the disk appear read-only to FUSE."
32917 msgstr ""
32918
32919 # type: textblock
32920 #. type: textblock
32921 #: ../fuse/guestmount.pod:230
32922 msgid ""
32923 "This is highly recommended if you are not going to edit the guest disk.  If "
32924 "the guest is running and this option is I<not> supplied, then there is a "
32925 "strong risk of disk corruption in the guest.  We try to prevent this from "
32926 "happening, but it is not always possible."
32927 msgstr ""
32928
32929 # type: textblock
32930 #. type: textblock
32931 #: ../fuse/guestmount.pod:235
32932 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
32933 msgstr ""
32934
32935 # type: textblock
32936 #. type: textblock
32937 #: ../fuse/guestmount.pod:239
32938 msgid "Enable SELinux support for the guest."
32939 msgstr ""
32940
32941 # type: =item
32942 #. type: =item
32943 #: ../fuse/guestmount.pod:241
32944 msgid "B<-v> | B<--verbose>"
32945 msgstr ""
32946
32947 # type: textblock
32948 #. type: textblock
32949 #: ../fuse/guestmount.pod:243
32950 msgid "Enable verbose messages from underlying libguestfs."
32951 msgstr ""
32952
32953 # type: =item
32954 #. type: =item
32955 #: ../fuse/guestmount.pod:245
32956 msgid "B<-V> | B<--version>"
32957 msgstr ""
32958
32959 # type: textblock
32960 #. type: textblock
32961 #: ../fuse/guestmount.pod:247
32962 msgid "Display the program version and exit."
32963 msgstr ""
32964
32965 # type: =item
32966 #. type: =item
32967 #: ../fuse/guestmount.pod:249
32968 msgid "B<-w> | B<--rw>"
32969 msgstr ""
32970
32971 #. type: textblock
32972 #: ../fuse/guestmount.pod:254 ../fuse/guestmount.pod:275
32973 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
32974 msgstr ""
32975
32976 # type: =item
32977 #. type: =item
32978 #: ../fuse/guestmount.pod:256
32979 msgid "B<-x> | B<--trace>"
32980 msgstr ""
32981
32982 # type: textblock
32983 #. type: textblock
32984 #: ../fuse/guestmount.pod:258
32985 msgid "Trace libguestfs calls and entry into each FUSE function."
32986 msgstr ""
32987
32988 # type: textblock
32989 #. type: textblock
32990 #: ../fuse/guestmount.pod:260
32991 msgid "This also stops the daemon from forking into the background."
32992 msgstr ""
32993
32994 # type: textblock
32995 #. type: textblock
32996 #: ../fuse/guestmount.pod:281
32997 msgid ""
32998 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
32999 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
33000 "net/>."
33001 msgstr ""
33002
33003 # type: textblock
33004 #. type: textblock
33005 #: ../fuse/guestmount.pod:296
33006 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
33007 msgstr ""
33008
33009 # type: textblock
33010 #. type: textblock
33011 #: ../tools/virt-win-reg.pl:37
33012 msgid ""
33013 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
33014 msgstr ""
33015
33016 # type: verbatim
33017 #. type: verbatim
33018 #: ../tools/virt-win-reg.pl:41
33019 #, no-wrap
33020 msgid ""
33021 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
33022 "\n"
33023 msgstr ""
33024
33025 # type: verbatim
33026 #. type: verbatim
33027 #: ../tools/virt-win-reg.pl:43
33028 #, no-wrap
33029 msgid ""
33030 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
33031 "\n"
33032 msgstr ""
33033
33034 # type: verbatim
33035 #. type: verbatim
33036 #: ../tools/virt-win-reg.pl:45
33037 #, no-wrap
33038 msgid ""
33039 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
33040 "\n"
33041 msgstr ""
33042
33043 # type: verbatim
33044 #. type: verbatim
33045 #: ../tools/virt-win-reg.pl:47
33046 #, no-wrap
33047 msgid ""
33048 " virt-win-reg --merge domname [input.reg ...]\n"
33049 "\n"
33050 msgstr ""
33051
33052 # type: verbatim
33053 #. type: verbatim
33054 #: ../tools/virt-win-reg.pl:49
33055 #, no-wrap
33056 msgid ""
33057 " virt-win-reg [--options] disk.img ... # instead of domname\n"
33058 "\n"
33059 msgstr ""
33060
33061 #. type: textblock
33062 #: ../tools/virt-win-reg.pl:53
33063 msgid ""
33064 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
33065 "virtual machines.  If you do this, you I<will> get irreversible disk "
33066 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
33067 "but doesn't catch all cases."
33068 msgstr ""
33069
33070 #. type: textblock
33071 #: ../tools/virt-win-reg.pl:58
33072 msgid ""
33073 "Modifying the Windows Registry is an inherently risky operation.  The format "
33074 "is deliberately obscure and undocumented, and Registry changes can leave the "
33075 "system unbootable.  Therefore when using the I<--merge> option, make sure "
33076 "you have a reliable backup first."
33077 msgstr ""
33078
33079 # type: textblock
33080 #. type: textblock
33081 #: ../tools/virt-win-reg.pl:65
33082 msgid ""
33083 "This program can export and merge Windows Registry entries from a Windows "
33084 "guest."
33085 msgstr ""
33086
33087 # type: textblock
33088 #. type: textblock
33089 #: ../tools/virt-win-reg.pl:68
33090 msgid ""
33091 "The first parameter is the libvirt guest name or the raw disk image of a "
33092 "Windows guest."
33093 msgstr ""
33094
33095 #. type: textblock
33096 #: ../tools/virt-win-reg.pl:71
33097 msgid ""
33098 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
33099 "exported (recursively).  For example:"
33100 msgstr ""
33101
33102 # type: verbatim
33103 #. type: verbatim
33104 #: ../tools/virt-win-reg.pl:74
33105 #, no-wrap
33106 msgid ""
33107 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
33108 "\n"
33109 msgstr ""
33110
33111 # type: textblock
33112 #. type: textblock
33113 #: ../tools/virt-win-reg.pl:76
33114 msgid ""
33115 "You can also display single values from within registry keys, for example:"
33116 msgstr ""
33117
33118 # type: verbatim
33119 #. type: verbatim
33120 #: ../tools/virt-win-reg.pl:79
33121 #, no-wrap
33122 msgid ""
33123 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
33124 " $ virt-win-reg Windows7 $cvkey ProductName\n"
33125 " Windows 7 Enterprise\n"
33126 "\n"
33127 msgstr ""
33128
33129 #. type: textblock
33130 #: ../tools/virt-win-reg.pl:83
33131 msgid ""
33132 "With I<--merge>, you can merge a textual regedit file into the Windows "
33133 "Registry:"
33134 msgstr ""
33135
33136 # type: verbatim
33137 #. type: verbatim
33138 #: ../tools/virt-win-reg.pl:86
33139 #, no-wrap
33140 msgid ""
33141 " $ virt-win-reg --merge Windows7 changes.reg\n"
33142 "\n"
33143 msgstr ""
33144
33145 # type: =head2
33146 #. type: =head1
33147 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
33148 msgid "NOTE"
33149 msgstr ""
33150
33151 # type: textblock
33152 #. type: textblock
33153 #: ../tools/virt-win-reg.pl:90
33154 msgid ""
33155 "This program is only meant for simple access to the registry.  If you want "
33156 "to do complicated things with the registry, we suggest you download the "
33157 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
33158 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
33159 "L<hivexregedit(1)>."
33160 msgstr ""
33161
33162 # type: textblock
33163 #. type: textblock
33164 #: ../tools/virt-win-reg.pl:106 ../tools/virt-list-filesystems.pl:63
33165 #: ../tools/virt-tar.pl:113 ../tools/virt-make-fs.pl:163
33166 #: ../tools/virt-list-partitions.pl:64
33167 msgid "Display brief help."
33168 msgstr ""
33169
33170 # type: textblock
33171 #. type: textblock
33172 #: ../tools/virt-win-reg.pl:114 ../tools/virt-list-filesystems.pl:71
33173 #: ../tools/virt-tar.pl:121 ../tools/virt-make-fs.pl:171
33174 #: ../tools/virt-list-partitions.pl:72
33175 msgid "Display version number and exit."
33176 msgstr ""
33177
33178 # type: =item
33179 #. type: =item
33180 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
33181 msgid "B<--debug>"
33182 msgstr ""
33183
33184 # type: textblock
33185 #. type: textblock
33186 #: ../tools/virt-win-reg.pl:122
33187 msgid "Enable debugging messages."
33188 msgstr ""
33189
33190 # type: =item
33191 #. type: =item
33192 #: ../tools/virt-win-reg.pl:128 ../tools/virt-list-filesystems.pl:77
33193 #: ../tools/virt-tar.pl:127 ../tools/virt-list-partitions.pl:78
33194 msgid "B<--connect URI> | B<-c URI>"
33195 msgstr ""
33196
33197 # type: textblock
33198 #. type: textblock
33199 #: ../tools/virt-win-reg.pl:130 ../tools/virt-list-filesystems.pl:79
33200 #: ../tools/virt-tar.pl:129 ../tools/virt-list-partitions.pl:80
33201 msgid ""
33202 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
33203 "to the default libvirt hypervisor."
33204 msgstr ""
33205
33206 # type: textblock
33207 #. type: textblock
33208 #: ../tools/virt-win-reg.pl:133 ../tools/virt-list-filesystems.pl:82
33209 #: ../tools/virt-tar.pl:132 ../tools/virt-list-partitions.pl:83
33210 msgid ""
33211 "If you specify guest block devices directly, then libvirt is not used at all."
33212 msgstr ""
33213
33214 # type: =item
33215 #. type: =item
33216 #: ../tools/virt-win-reg.pl:140 ../tools/virt-list-filesystems.pl:89
33217 #: ../tools/virt-tar.pl:139 ../tools/virt-list-partitions.pl:90
33218 msgid "B<--format> raw"
33219 msgstr ""
33220
33221 # type: textblock
33222 #. type: textblock
33223 #: ../tools/virt-win-reg.pl:142 ../tools/virt-list-filesystems.pl:91
33224 #: ../tools/virt-tar.pl:141 ../tools/virt-list-partitions.pl:92
33225 msgid ""
33226 "Specify the format of disk images given on the command line.  If this is "
33227 "omitted then the format is autodetected from the content of the disk image."
33228 msgstr ""
33229
33230 # type: textblock
33231 #. type: textblock
33232 #: ../tools/virt-win-reg.pl:146 ../tools/virt-list-filesystems.pl:95
33233 #: ../tools/virt-tar.pl:145 ../tools/virt-list-partitions.pl:96
33234 msgid ""
33235 "If disk images are requested from libvirt, then this program asks libvirt "
33236 "for this information.  In this case, the value of the format parameter is "
33237 "ignored."
33238 msgstr ""
33239
33240 # type: textblock
33241 #. type: textblock
33242 #: ../tools/virt-win-reg.pl:150 ../tools/virt-list-filesystems.pl:99
33243 #: ../tools/virt-tar.pl:149 ../tools/virt-list-partitions.pl:100
33244 msgid ""
33245 "If working with untrusted raw-format guest disk images, you should ensure "
33246 "the format is always specified."
33247 msgstr ""
33248
33249 # type: =item
33250 #. type: =item
33251 #: ../tools/virt-win-reg.pl:157
33252 msgid "B<--merge>"
33253 msgstr ""
33254
33255 # type: textblock
33256 #. type: textblock
33257 #: ../tools/virt-win-reg.pl:159
33258 msgid ""
33259 "In merge mode, this merges a textual regedit file into the Windows Registry "
33260 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
33261 "displays or exports Registry entries instead."
33262 msgstr ""
33263
33264 #. type: textblock
33265 #: ../tools/virt-win-reg.pl:163
33266 msgid ""
33267 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
33268 "result in disk corruption.  However exporting (without this flag)  is always "
33269 "safe."
33270 msgstr ""
33271
33272 # type: =item
33273 #. type: =item
33274 #: ../tools/virt-win-reg.pl:171
33275 msgid "B<--encoding> UTF-16LE|ASCII"
33276 msgstr ""
33277
33278 # type: textblock
33279 #. type: textblock
33280 #: ../tools/virt-win-reg.pl:173
33281 msgid ""
33282 "When merging (only), you may need to specify the encoding for strings to be "
33283 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
33284 "(3)/ENCODING STRINGS>."
33285 msgstr ""
33286
33287 # type: textblock
33288 #. type: textblock
33289 #: ../tools/virt-win-reg.pl:177
33290 msgid ""
33291 "The default is to use UTF-16LE, which should work with recent versions of "
33292 "Windows."
33293 msgstr ""
33294
33295 #. type: =item
33296 #: ../tools/virt-win-reg.pl:184
33297 msgid "B<--unsafe-printable-strings>"
33298 msgstr ""
33299
33300 #. type: textblock
33301 #: ../tools/virt-win-reg.pl:186
33302 msgid ""
33303 "When exporting (only), assume strings are UTF-16LE and print them as strings "
33304 "instead of hex sequences.  Remove the final zero codepoint from strings if "
33305 "present."
33306 msgstr ""
33307
33308 #. type: textblock
33309 #: ../tools/virt-win-reg.pl:190
33310 msgid ""
33311 "This is unsafe and does not preserve the fidelity of strings in the original "
33312 "Registry for various reasons:"
33313 msgstr ""
33314
33315 #. type: textblock
33316 #: ../tools/virt-win-reg.pl:197
33317 msgid ""
33318 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
33319 "other encodings will be corrupted by this transformation."
33320 msgstr ""
33321
33322 #. type: textblock
33323 #: ../tools/virt-win-reg.pl:202
33324 msgid ""
33325 "Assumes that everything which has type 1 or 2 is really a string and that "
33326 "everything else is not a string, but the type field in real Registries is "
33327 "not reliable."
33328 msgstr ""
33329
33330 #. type: textblock
33331 #: ../tools/virt-win-reg.pl:208
33332 msgid ""
33333 "Loses information about whether a zero codepoint followed the string in the "
33334 "Registry or not."
33335 msgstr ""
33336
33337 #. type: textblock
33338 #: ../tools/virt-win-reg.pl:213
33339 msgid ""
33340 "This all happens because the Registry itself contains no information about "
33341 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
33342 msgstr ""
33343
33344 #. type: textblock
33345 #: ../tools/virt-win-reg.pl:217
33346 msgid ""
33347 "You should only use this option for quick hacking and debugging of the "
33348 "Registry contents, and I<never> use it if the output is going to be passed "
33349 "into another program or stored in another Registry."
33350 msgstr ""
33351
33352 # type: =head2
33353 #. type: =head1
33354 #: ../tools/virt-win-reg.pl:554
33355 msgid "SUPPORTED SYSTEMS"
33356 msgstr ""
33357
33358 # type: textblock
33359 #. type: textblock
33360 #: ../tools/virt-win-reg.pl:556
33361 msgid ""
33362 "The program currently supports Windows NT-derived guests starting with "
33363 "Windows XP through to at least Windows 7."
33364 msgstr ""
33365
33366 #. type: textblock
33367 #: ../tools/virt-win-reg.pl:559
33368 msgid "The following Registry keys are supported:"
33369 msgstr ""
33370
33371 #. type: =item
33372 #: ../tools/virt-win-reg.pl:563
33373 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
33374 msgstr ""
33375
33376 #. type: =item
33377 #: ../tools/virt-win-reg.pl:565
33378 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
33379 msgstr ""
33380
33381 #. type: =item
33382 #: ../tools/virt-win-reg.pl:567
33383 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
33384 msgstr ""
33385
33386 #. type: =item
33387 #: ../tools/virt-win-reg.pl:569
33388 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
33389 msgstr ""
33390
33391 #. type: =item
33392 #: ../tools/virt-win-reg.pl:571
33393 msgid "C<HKEY_USERS\\.DEFAULT>"
33394 msgstr ""
33395
33396 #. type: =item
33397 #: ../tools/virt-win-reg.pl:573
33398 msgid "C<HKEY_USERS\\I<SID>>"
33399 msgstr ""
33400
33401 #. type: textblock
33402 #: ../tools/virt-win-reg.pl:575
33403 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
33404 msgstr ""
33405
33406 #. type: =item
33407 #: ../tools/virt-win-reg.pl:577
33408 msgid "C<HKEY_USERS\\I<username>>"
33409 msgstr ""
33410
33411 #. type: textblock
33412 #: ../tools/virt-win-reg.pl:579
33413 msgid ""
33414 "where I<username> is a local user name (this is a libguestfs extension)."
33415 msgstr ""
33416
33417 # type: textblock
33418 #. type: textblock
33419 #: ../tools/virt-win-reg.pl:583
33420 msgid ""
33421 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
33422 "C<HKEY_USERS>."
33423 msgstr ""
33424
33425 #. type: textblock
33426 #: ../tools/virt-win-reg.pl:586
33427 msgid ""
33428 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
33429 "supported (there is no \"current user\")."
33430 msgstr ""
33431
33432 # type: =head2
33433 #. type: =head1
33434 #: ../tools/virt-win-reg.pl:589
33435 msgid "ENCODING"
33436 msgstr ""
33437
33438 # type: textblock
33439 #. type: textblock
33440 #: ../tools/virt-win-reg.pl:591
33441 msgid ""
33442 "C<virt-win-reg> expects that regedit files have already been reencoded in "
33443 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
33444 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
33445 "Windows-style line endings, you may need to reencode the whole file before "
33446 "or after processing."
33447 msgstr ""
33448
33449 #. type: textblock
33450 #: ../tools/virt-win-reg.pl:597
33451 msgid ""
33452 "To reencode a file from Windows format to Linux (before processing it with "
33453 "the I<--merge> option), you would do something like this:"
33454 msgstr ""
33455
33456 # type: verbatim
33457 #. type: verbatim
33458 #: ../tools/virt-win-reg.pl:600
33459 #, no-wrap
33460 msgid ""
33461 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
33462 "\n"
33463 msgstr ""
33464
33465 # type: textblock
33466 #. type: textblock
33467 #: ../tools/virt-win-reg.pl:602
33468 msgid ""
33469 "To go in the opposite direction, after exporting and before sending the file "
33470 "to a Windows user, do something like this:"
33471 msgstr ""
33472
33473 # type: verbatim
33474 #. type: verbatim
33475 #: ../tools/virt-win-reg.pl:605
33476 #, no-wrap
33477 msgid ""
33478 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
33479 "\n"
33480 msgstr ""
33481
33482 # type: textblock
33483 #. type: textblock
33484 #: ../tools/virt-win-reg.pl:607
33485 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
33486 msgstr ""
33487
33488 # type: textblock
33489 #. type: textblock
33490 #: ../tools/virt-win-reg.pl:609
33491 msgid ""
33492 "If you are unsure about the current encoding, use the L<file(1)> command.  "
33493 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
33494 "style (CRLF) line endings, like this:"
33495 msgstr ""
33496
33497 # type: verbatim
33498 #. type: verbatim
33499 #: ../tools/virt-win-reg.pl:613
33500 #, no-wrap
33501 msgid ""
33502 " $ file software.reg\n"
33503 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
33504 " with CRLF line terminators\n"
33505 "\n"
33506 msgstr ""
33507
33508 #. type: textblock
33509 #: ../tools/virt-win-reg.pl:617
33510 msgid "This file would need conversion before you could I<--merge> it."
33511 msgstr ""
33512
33513 # type: =head2
33514 #. type: =head1
33515 #: ../tools/virt-win-reg.pl:619
33516 msgid "CurrentControlSet etc."
33517 msgstr ""
33518
33519 # type: textblock
33520 #. type: textblock
33521 #: ../tools/virt-win-reg.pl:621
33522 msgid ""
33523 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
33524 "Registry at the level of the hive file, and therefore you cannot modify "
33525 "these."
33526 msgstr ""
33527
33528 # type: textblock
33529 #. type: textblock
33530 #: ../tools/virt-win-reg.pl:625
33531 msgid ""
33532 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
33533 "circumstances it might refer to another control set.  The way to find out is "
33534 "to look at the C<HKLM\\SYSTEM\\Select> key:"
33535 msgstr ""
33536
33537 # type: verbatim
33538 #. type: verbatim
33539 #: ../tools/virt-win-reg.pl:629
33540 #, no-wrap
33541 msgid ""
33542 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
33543 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
33544 " \"Current\"=dword:00000001\n"
33545 " \"Default\"=dword:00000001\n"
33546 " \"Failed\"=dword:00000000\n"
33547 " \"LastKnownGood\"=dword:00000002\n"
33548 "\n"
33549 msgstr ""
33550
33551 # type: textblock
33552 #. type: textblock
33553 #: ../tools/virt-win-reg.pl:636
33554 msgid "\"Current\" is the one which Windows will choose when it boots."
33555 msgstr ""
33556
33557 # type: textblock
33558 #. type: textblock
33559 #: ../tools/virt-win-reg.pl:638
33560 msgid ""
33561 "Similarly, other C<Current...> keys in the path may need to be replaced."
33562 msgstr ""
33563
33564 # type: =head1
33565 #. type: =head1
33566 #: ../tools/virt-win-reg.pl:641
33567 msgid "WINDOWS TIPS"
33568 msgstr ""
33569
33570 # type: textblock
33571 #. type: textblock
33572 #: ../tools/virt-win-reg.pl:643
33573 msgid ""
33574 "Note that some of these tips modify the guest disk image.  The guest I<must> "
33575 "be shut off, else you will get disk corruption."
33576 msgstr ""
33577
33578 # type: =head2
33579 #. type: =head2
33580 #: ../tools/virt-win-reg.pl:646
33581 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
33582 msgstr ""
33583
33584 # type: textblock
33585 #. type: textblock
33586 #: ../tools/virt-win-reg.pl:648
33587 msgid ""
33588 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
33589 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
33590 "is uploaded into C<C:\\>:"
33591 msgstr ""
33592
33593 # type: verbatim
33594 #. type: verbatim
33595 #: ../tools/virt-win-reg.pl:652
33596 #, no-wrap
33597 msgid ""
33598 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
33599 "\n"
33600 msgstr ""
33601
33602 # type: textblock
33603 #. type: textblock
33604 #: ../tools/virt-win-reg.pl:654
33605 msgid "Prepare a regedit file containing the registry change:"
33606 msgstr ""
33607
33608 # type: verbatim
33609 #. type: verbatim
33610 #: ../tools/virt-win-reg.pl:656
33611 #, no-wrap
33612 msgid ""
33613 " cat > test.reg <<'EOF'\n"
33614 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
33615 " \"Test\"=\"c:\\\\test.bat\"\n"
33616 " EOF\n"
33617 "\n"
33618 msgstr ""
33619
33620 # type: textblock
33621 #. type: textblock
33622 #: ../tools/virt-win-reg.pl:661
33623 msgid ""
33624 "In this example we use the key C<RunOnce> which means that the script will "
33625 "run precisely once when the first user logs in.  If you want it to run every "
33626 "time a user logs in, replace C<RunOnce> with C<Run>."
33627 msgstr ""
33628
33629 # type: textblock
33630 #. type: textblock
33631 #: ../tools/virt-win-reg.pl:665
33632 msgid "Now update the registry:"
33633 msgstr ""
33634
33635 # type: verbatim
33636 #. type: verbatim
33637 #: ../tools/virt-win-reg.pl:667
33638 #, no-wrap
33639 msgid ""
33640 " virt-win-reg --merge WindowsGuest test.reg\n"
33641 "\n"
33642 msgstr ""
33643
33644 # type: =head2
33645 #. type: =head2
33646 #: ../tools/virt-win-reg.pl:669
33647 msgid "INSTALLING A SERVICE"
33648 msgstr ""
33649
33650 # type: textblock
33651 #. type: textblock
33652 #: ../tools/virt-win-reg.pl:671
33653 msgid ""
33654 "This section assumes you are familiar with Windows services, and you either "
33655 "have a program which handles the Windows Service Control Protocol directly "
33656 "or you want to run any program using a service wrapper like SrvAny or the "
33657 "free RHSrvAny."
33658 msgstr ""
33659
33660 # type: textblock
33661 #. type: textblock
33662 #: ../tools/virt-win-reg.pl:676
33663 msgid ""
33664 "First upload the program and optionally the service wrapper.  In this case "
33665 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
33666 msgstr ""
33667
33668 # type: verbatim
33669 #. type: verbatim
33670 #: ../tools/virt-win-reg.pl:680
33671 #, no-wrap
33672 msgid ""
33673 " guestfish -i -d WindowsGuest <<EOF\n"
33674 "   upload rhsrvany.exe /rhsrvany.exe\n"
33675 "   upload test.exe /test.exe\n"
33676 " EOF\n"
33677 "\n"
33678 msgstr ""
33679
33680 # type: textblock
33681 #. type: textblock
33682 #: ../tools/virt-win-reg.pl:685
33683 msgid ""
33684 "Prepare a regedit file containing the registry changes.  In this example, "
33685 "the first registry change is needed for the service itself or the service "
33686 "wrapper (if used).  The second registry change is only needed because I am "
33687 "using the RHSrvAny service wrapper."
33688 msgstr ""
33689
33690 # type: verbatim
33691 #. type: verbatim
33692 #: ../tools/virt-win-reg.pl:690
33693 #, no-wrap
33694 msgid ""
33695 " cat > service.reg <<'EOF'\n"
33696 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
33697 " \"Type\"=dword:00000010\n"
33698 " \"Start\"=dword:00000002\n"
33699 " \"ErrorControl\"=dword:00000001\n"
33700 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
33701 " \"DisplayName\"=\"RHSrvAny\"\n"
33702 " \"ObjectName\"=\"NetworkService\"\n"
33703 " \n"
33704 msgstr ""
33705
33706 # type: verbatim
33707 #. type: verbatim
33708 #: ../tools/virt-win-reg.pl:699
33709 #, no-wrap
33710 msgid ""
33711 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
33712 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
33713 " \"PWD\"=\"c:\\\\Temp\"\n"
33714 " EOF\n"
33715 "\n"
33716 msgstr ""
33717
33718 # type: textblock
33719 #. type: textblock
33720 #: ../tools/virt-win-reg.pl:710
33721 msgid ""
33722 "For use of C<ControlSet001> see the section above in this manual page.  You "
33723 "may need to adjust this according to the control set that is in use by the "
33724 "guest."
33725 msgstr ""
33726
33727 # type: textblock
33728 #. type: textblock
33729 #: ../tools/virt-win-reg.pl:716
33730 msgid ""
33731 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
33732 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
33733 "privileged account."
33734 msgstr ""
33735
33736 # type: textblock
33737 #. type: textblock
33738 #: ../tools/virt-win-reg.pl:722
33739 msgid ""
33740 "For the meaning of the magic numbers, see this Microsoft KB article: "
33741 "L<http://support.microsoft.com/kb/103000>."
33742 msgstr ""
33743
33744 # type: textblock
33745 #. type: textblock
33746 #: ../tools/virt-win-reg.pl:727
33747 msgid "Update the registry:"
33748 msgstr ""
33749
33750 # type: verbatim
33751 #. type: verbatim
33752 #: ../tools/virt-win-reg.pl:729
33753 #, no-wrap
33754 msgid ""
33755 " virt-win-reg --merge WindowsGuest service.reg\n"
33756 "\n"
33757 msgstr ""
33758
33759 # type: =head2
33760 #. type: =head1
33761 #: ../tools/virt-win-reg.pl:731 ../tools/virt-list-filesystems.pl:182
33762 #: ../tools/virt-tar.pl:279 ../tools/virt-make-fs.pl:532
33763 #: ../tools/virt-list-partitions.pl:250
33764 msgid "SHELL QUOTING"
33765 msgstr ""
33766
33767 # type: textblock
33768 #. type: textblock
33769 #: ../tools/virt-win-reg.pl:733
33770 msgid ""
33771 "Be careful when passing parameters containing C<\\> (backslash) in the "
33772 "shell.  Usually you will have to use 'single quotes' or double backslashes "
33773 "(but not both) to protect them from the shell."
33774 msgstr ""
33775
33776 # type: textblock
33777 #. type: textblock
33778 #: ../tools/virt-win-reg.pl:737
33779 msgid "Paths and value names are case-insensitive."
33780 msgstr ""
33781
33782 # type: textblock
33783 #. type: textblock
33784 #: ../tools/virt-win-reg.pl:739 ../tools/virt-list-filesystems.pl:184
33785 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534
33786 #: ../tools/virt-list-partitions.pl:252
33787 msgid ""
33788 "Libvirt guest names can contain arbitrary characters, some of which have "
33789 "meaning to the shell such as C<#> and space.  You may need to quote or "
33790 "escape these characters on the command line.  See the shell manual page L<sh"
33791 "(1)> for details."
33792 msgstr ""
33793
33794 # type: textblock
33795 #. type: textblock
33796 #: ../tools/virt-win-reg.pl:746
33797 msgid ""
33798 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
33799 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
33800 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
33801 msgstr ""
33802
33803 # type: textblock
33804 #. type: textblock
33805 #: ../tools/virt-win-reg.pl:761 ../tools/virt-make-fs.pl:555
33806 msgid ""
33807 "When reporting bugs, please enable debugging and capture the I<complete> "
33808 "output:"
33809 msgstr ""
33810
33811 # type: verbatim
33812 #. type: verbatim
33813 #: ../tools/virt-win-reg.pl:764
33814 #, no-wrap
33815 msgid ""
33816 " export LIBGUESTFS_DEBUG=1\n"
33817 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
33818 "\n"
33819 msgstr ""
33820
33821 # type: textblock
33822 #. type: textblock
33823 #: ../tools/virt-win-reg.pl:767
33824 msgid ""
33825 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
33826 "redhat.com/>"
33827 msgstr ""
33828
33829 # type: =head1
33830 #. type: =head1
33831 #: ../tools/virt-win-reg.pl:770 ../tools/virt-list-filesystems.pl:202
33832 #: ../tools/virt-tar.pl:301 ../tools/virt-make-fs.pl:564
33833 #: ../tools/virt-list-partitions.pl:269
33834 msgid "AUTHOR"
33835 msgstr ""
33836
33837 # type: textblock
33838 #. type: textblock
33839 #: ../tools/virt-win-reg.pl:772 ../tools/virt-list-filesystems.pl:204
33840 #: ../tools/virt-tar.pl:303 ../tools/virt-make-fs.pl:566
33841 #: ../tools/virt-list-partitions.pl:271
33842 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
33843 msgstr ""
33844
33845 # type: textblock
33846 #. type: textblock
33847 #: ../tools/virt-win-reg.pl:776 ../tools/virt-make-fs.pl:570
33848 msgid "Copyright (C) 2010 Red Hat Inc."
33849 msgstr ""
33850
33851 # type: textblock
33852 #. type: textblock
33853 #: ../tools/virt-list-filesystems.pl:32
33854 msgid ""
33855 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
33856 msgstr ""
33857
33858 # type: verbatim
33859 #. type: verbatim
33860 #: ../tools/virt-list-filesystems.pl:36
33861 #, no-wrap
33862 msgid ""
33863 " virt-list-filesystems [--options] domname\n"
33864 "\n"
33865 msgstr ""
33866
33867 # type: verbatim
33868 #. type: verbatim
33869 #: ../tools/virt-list-filesystems.pl:38
33870 #, no-wrap
33871 msgid ""
33872 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
33873 "\n"
33874 msgstr ""
33875
33876 # type: textblock
33877 #. type: textblock
33878 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
33879 msgid ""
33880 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
33881 "replacement."
33882 msgstr ""
33883
33884 # type: textblock
33885 #. type: textblock
33886 #: ../tools/virt-list-filesystems.pl:45
33887 msgid ""
33888 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
33889 "are contained in a virtual machine or disk image."
33890 msgstr ""
33891
33892 # type: textblock
33893 #. type: textblock
33894 #: ../tools/virt-list-filesystems.pl:49
33895 msgid ""
33896 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
33897 "functionality.  For more complex cases you should look at the L<guestfish(1)"
33898 "> tool."
33899 msgstr ""
33900
33901 # type: =item
33902 #. type: =item
33903 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
33904 msgid "B<-l> | B<--long>"
33905 msgstr ""
33906
33907 # type: textblock
33908 #. type: textblock
33909 #: ../tools/virt-list-filesystems.pl:108
33910 msgid ""
33911 "With this option, C<virt-list-filesystems> displays the type of each "
33912 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
33913 msgstr ""
33914
33915 # type: =item
33916 #. type: =item
33917 #: ../tools/virt-list-filesystems.pl:115
33918 msgid "B<-a> | B<--all>"
33919 msgstr ""
33920
33921 # type: textblock
33922 #. type: textblock
33923 #: ../tools/virt-list-filesystems.pl:117
33924 msgid ""
33925 "Normally we only show mountable filesystems.  If this option is given then "
33926 "swap devices are shown too."
33927 msgstr ""
33928
33929 # type: textblock
33930 #. type: textblock
33931 #: ../tools/virt-list-filesystems.pl:191
33932 msgid ""
33933 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
33934 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
33935 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
33936 msgstr ""
33937
33938 # type: textblock
33939 #. type: textblock
33940 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:307
33941 msgid "Copyright (C) 2009 Red Hat Inc."
33942 msgstr ""
33943
33944 # type: textblock
33945 #. type: textblock
33946 #: ../tools/virt-tar.pl:33
33947 msgid "virt-tar - Extract or upload files to a virtual machine"
33948 msgstr ""
33949
33950 # type: verbatim
33951 #. type: verbatim
33952 #: ../tools/virt-tar.pl:37
33953 #, no-wrap
33954 msgid ""
33955 " virt-tar [--options] -x domname directory tarball\n"
33956 "\n"
33957 msgstr ""
33958
33959 # type: verbatim
33960 #. type: verbatim
33961 #: ../tools/virt-tar.pl:39
33962 #, no-wrap
33963 msgid ""
33964 " virt-tar [--options] -u domname tarball directory\n"
33965 "\n"
33966 msgstr ""
33967
33968 # type: verbatim
33969 #. type: verbatim
33970 #: ../tools/virt-tar.pl:41
33971 #, no-wrap
33972 msgid ""
33973 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
33974 "\n"
33975 msgstr ""
33976
33977 # type: verbatim
33978 #. type: verbatim
33979 #: ../tools/virt-tar.pl:43
33980 #, no-wrap
33981 msgid ""
33982 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
33983 "\n"
33984 msgstr ""
33985
33986 #. type: textblock
33987 #: ../tools/virt-tar.pl:47
33988 msgid ""
33989 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
33990 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
33991 msgstr ""
33992
33993 # type: textblock
33994 #. type: textblock
33995 #: ../tools/virt-tar.pl:52
33996 msgid "Download C</home> from the VM into a local tarball:"
33997 msgstr ""
33998
33999 # type: verbatim
34000 #. type: verbatim
34001 #: ../tools/virt-tar.pl:54
34002 #, no-wrap
34003 msgid ""
34004 " virt-tar -x domname /home home.tar\n"
34005 "\n"
34006 msgstr ""
34007
34008 # type: verbatim
34009 #. type: verbatim
34010 #: ../tools/virt-tar.pl:56
34011 #, no-wrap
34012 msgid ""
34013 " virt-tar -zx domname /home home.tar.gz\n"
34014 "\n"
34015 msgstr ""
34016
34017 # type: textblock
34018 #. type: textblock
34019 #: ../tools/virt-tar.pl:58
34020 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
34021 msgstr ""
34022
34023 # type: verbatim
34024 #. type: verbatim
34025 #: ../tools/virt-tar.pl:60
34026 #, no-wrap
34027 msgid ""
34028 " virt-tar -u domname uploadstuff.tar /tmp\n"
34029 "\n"
34030 msgstr ""
34031
34032 # type: verbatim
34033 #. type: verbatim
34034 #: ../tools/virt-tar.pl:62
34035 #, no-wrap
34036 msgid ""
34037 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
34038 "\n"
34039 msgstr ""
34040
34041 #. type: textblock
34042 #: ../tools/virt-tar.pl:66
34043 msgid ""
34044 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
34045 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
34046 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
34047 msgstr ""
34048
34049 #. type: textblock
34050 #: ../tools/virt-tar.pl:71
34051 msgid ""
34052 "You can use I<-x> (extract) on live virtual machines, but you might get "
34053 "inconsistent results or errors if there is filesystem activity inside the "
34054 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
34055 "work, but the only way to guarantee consistent results is if the virtual "
34056 "machine is shut down."
34057 msgstr ""
34058
34059 # type: textblock
34060 #. type: textblock
34061 #: ../tools/virt-tar.pl:79
34062 msgid ""
34063 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
34064 "parts of a guest filesystem.  There are many possibilities: making backups, "
34065 "uploading data files, snooping on guest activity, fixing or customizing "
34066 "guests, etc."
34067 msgstr ""
34068
34069 # type: textblock
34070 #. type: textblock
34071 #: ../tools/virt-tar.pl:84
34072 msgid ""
34073 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
34074 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
34075 "should look at the L<guestfish(1)> tool."
34076 msgstr ""
34077
34078 #. type: textblock
34079 #: ../tools/virt-tar.pl:88
34080 msgid ""
34081 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
34082 "its contents (recursively) from the virtual machine into a local tarball.  "
34083 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
34084 "virtual machine.  You cannot use these two options together."
34085 msgstr ""
34086
34087 #. type: textblock
34088 #: ../tools/virt-tar.pl:94
34089 msgid ""
34090 "In addition, you may need to use the I<-z> (gZip) option to enable "
34091 "compression.  When uploading, you have to specify I<-z> if the upload file "
34092 "is compressed because virt-tar won't detect this on its own."
34093 msgstr ""
34094
34095 # type: textblock
34096 #. type: textblock
34097 #: ../tools/virt-tar.pl:98
34098 msgid ""
34099 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
34100 "example it cannot do PKZip files or bzip2 compression.  If you want that "
34101 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
34102 "the L<libguestfs(3)> API)."
34103 msgstr ""
34104
34105 # type: =item
34106 #. type: =item
34107 #: ../tools/virt-tar.pl:156
34108 msgid "B<-x> | B<--extract> | B<--download>"
34109 msgstr ""
34110
34111 # type: =item
34112 #. type: =item
34113 #: ../tools/virt-tar.pl:158
34114 msgid "B<-u> | B<--upload>"
34115 msgstr ""
34116
34117 #. type: textblock
34118 #: ../tools/virt-tar.pl:160
34119 msgid ""
34120 "Use I<-x> to extract (download) a directory from a virtual machine to a "
34121 "local tarball."
34122 msgstr ""
34123
34124 #. type: textblock
34125 #: ../tools/virt-tar.pl:163
34126 msgid ""
34127 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
34128 "Please read the L</WARNING> section above before using this option."
34129 msgstr ""
34130
34131 # type: textblock
34132 #. type: textblock
34133 #: ../tools/virt-tar.pl:167
34134 msgid "You must specify exactly one of these options."
34135 msgstr ""
34136
34137 # type: =item
34138 #. type: =item
34139 #: ../tools/virt-tar.pl:173
34140 msgid "B<-z> | B<--gzip>"
34141 msgstr ""
34142
34143 # type: textblock
34144 #. type: textblock
34145 #: ../tools/virt-tar.pl:175
34146 msgid "Specify that the input or output tarball is gzip-compressed."
34147 msgstr ""
34148
34149 #. type: textblock
34150 #: ../tools/virt-tar.pl:288
34151 msgid ""
34152 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
34153 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
34154 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
34155 "org/>."
34156 msgstr ""
34157
34158 # type: textblock
34159 #. type: textblock
34160 #: ../tools/virt-make-fs.pl:37
34161 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
34162 msgstr ""
34163
34164 # type: verbatim
34165 #. type: verbatim
34166 #: ../tools/virt-make-fs.pl:41
34167 #, no-wrap
34168 msgid ""
34169 " virt-make-fs [--options] input.tar output.img\n"
34170 "\n"
34171 msgstr ""
34172
34173 # type: verbatim
34174 #. type: verbatim
34175 #: ../tools/virt-make-fs.pl:43
34176 #, no-wrap
34177 msgid ""
34178 " virt-make-fs [--options] input.tar.gz output.img\n"
34179 "\n"
34180 msgstr ""
34181
34182 # type: verbatim
34183 #. type: verbatim
34184 #: ../tools/virt-make-fs.pl:45
34185 #, no-wrap
34186 msgid ""
34187 " virt-make-fs [--options] directory output.img\n"
34188 "\n"
34189 msgstr ""
34190
34191 # type: textblock
34192 #. type: textblock
34193 #: ../tools/virt-make-fs.pl:49
34194 msgid ""
34195 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
34196 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
34197 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
34198 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
34199 "you want to attach these filesystems to existing virtual machines (eg. to "
34200 "import large amounts of read-only data to a VM)."
34201 msgstr ""
34202
34203 # type: textblock
34204 #. type: textblock
34205 #: ../tools/virt-make-fs.pl:57
34206 msgid "Basic usage is:"
34207 msgstr ""
34208
34209 # type: verbatim
34210 #. type: verbatim
34211 #: ../tools/virt-make-fs.pl:59
34212 #, no-wrap
34213 msgid ""
34214 " virt-make-fs input output\n"
34215 "\n"
34216 msgstr ""
34217
34218 # type: textblock
34219 #. type: textblock
34220 #: ../tools/virt-make-fs.pl:61
34221 msgid ""
34222 "where C<input> is either a directory containing files that you want to add, "
34223 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
34224 "C<output> is a disk image.  The input type is detected automatically.  The "
34225 "output disk image defaults to a raw ext2 image unless you specify extra "
34226 "flags (see L</OPTIONS> below)."
34227 msgstr ""
34228
34229 # type: =head2
34230 #. type: =head2
34231 #: ../tools/virt-make-fs.pl:67
34232 msgid "EXTRA SPACE"
34233 msgstr ""
34234
34235 #. type: textblock
34236 #: ../tools/virt-make-fs.pl:69
34237 msgid ""
34238 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
34239 "the files that it contains, but might have extra space.  Depending on how "
34240 "you are going to use the output, you might think this extra space is wasted "
34241 "and want to minimize it, or you might want to leave space so that more files "
34242 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
34243 "but you can use the I<--size> flag to leave space in the filesystem if you "
34244 "want it."
34245 msgstr ""
34246
34247 #. type: textblock
34248 #: ../tools/virt-make-fs.pl:77
34249 msgid ""
34250 "An alternative way to leave extra space but not make the output image any "
34251 "bigger is to use an alternative disk image format (instead of the default "
34252 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
34253 "image format (check your hypervisor supports this before using it).  This "
34254 "allows you to choose a large I<--size> but the extra space won't actually be "
34255 "allocated in the image until you try to store something in it."
34256 msgstr ""
34257
34258 #. type: textblock
34259 #: ../tools/virt-make-fs.pl:85
34260 msgid ""
34261 "Don't forget that you can also use local commands including L<resize2fs(8)> "
34262 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
34263 "to build another image from scratch."
34264 msgstr ""
34265
34266 # type: =head3
34267 #. type: =head3
34268 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
34269 #: ../tools/virt-make-fs.pl:142
34270 msgid "EXAMPLE"
34271 msgstr ""
34272
34273 # type: verbatim
34274 #. type: verbatim
34275 #: ../tools/virt-make-fs.pl:91
34276 #, no-wrap
34277 msgid ""
34278 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
34279 "\n"
34280 msgstr ""
34281
34282 # type: =head2
34283 #. type: =head2
34284 #: ../tools/virt-make-fs.pl:93
34285 msgid "FILESYSTEM TYPE"
34286 msgstr ""
34287
34288 # type: textblock
34289 #. type: textblock
34290 #: ../tools/virt-make-fs.pl:95
34291 msgid ""
34292 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
34293 "libguestfs supports can be used (but I<not> read-only formats like "
34294 "ISO9660).  Here are some of the more common choices:"
34295 msgstr ""
34296
34297 # type: =item
34298 #. type: =item
34299 #: ../tools/virt-make-fs.pl:101
34300 msgid "I<ext3>"
34301 msgstr ""
34302
34303 # type: textblock
34304 #. type: textblock
34305 #: ../tools/virt-make-fs.pl:103
34306 msgid ""
34307 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
34308 "you are not going to use the filesystem in a way that requires the journal, "
34309 "then this is just wasted overhead."
34310 msgstr ""
34311
34312 # type: =item
34313 #. type: =item
34314 #: ../tools/virt-make-fs.pl:107
34315 msgid "I<ntfs> or I<vfat>"
34316 msgstr ""
34317
34318 # type: textblock
34319 #. type: textblock
34320 #: ../tools/virt-make-fs.pl:109
34321 msgid "Useful if exporting data to a Windows guest."
34322 msgstr ""
34323
34324 # type: textblock
34325 #. type: textblock
34326 #: ../tools/virt-make-fs.pl:111
34327 msgid ""
34328 "I<Note for vfat>: The tar archive or local directory must only contain files "
34329 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
34330 "program running within libguestfs is unable to change the ownership of non-"
34331 "root files, since vfat itself does not support this."
34332 msgstr ""
34333
34334 # type: =item
34335 #. type: =item
34336 #: ../tools/virt-make-fs.pl:116
34337 msgid "I<minix>"
34338 msgstr ""
34339
34340 # type: textblock
34341 #. type: textblock
34342 #: ../tools/virt-make-fs.pl:118
34343 msgid ""
34344 "Lower overhead than C<ext2>, but certain limitations on filename length and "
34345 "total filesystem size."
34346 msgstr ""
34347
34348 # type: verbatim
34349 #. type: verbatim
34350 #: ../tools/virt-make-fs.pl:125
34351 #, no-wrap
34352 msgid ""
34353 " virt-make-fs --type=minix input minixfs.img\n"
34354 "\n"
34355 msgstr ""
34356
34357 # type: =head2
34358 #. type: =head2
34359 #: ../tools/virt-make-fs.pl:127
34360 msgid "TO PARTITION OR NOT TO PARTITION"
34361 msgstr ""
34362
34363 # type: textblock
34364 #. type: textblock
34365 #: ../tools/virt-make-fs.pl:129
34366 msgid "Optionally virt-make-fs can add a partition table to the output disk."
34367 msgstr ""
34368
34369 # type: textblock
34370 #. type: textblock
34371 #: ../tools/virt-make-fs.pl:131
34372 msgid ""
34373 "Adding a partition can make the disk image more compatible with certain "
34374 "virtualized operating systems which don't expect to see a filesystem "
34375 "directly located on a block device (Linux doesn't care and will happily "
34376 "handle both types)."
34377 msgstr ""
34378
34379 # type: textblock
34380 #. type: textblock
34381 #: ../tools/virt-make-fs.pl:136
34382 msgid ""
34383 "On the other hand, if you have a partition table then the output image is no "
34384 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
34385 "directly on a partitioned disk image.  (However libguestfs tools such as "
34386 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
34387 msgstr ""
34388
34389 # type: textblock
34390 #. type: textblock
34391 #: ../tools/virt-make-fs.pl:144
34392 msgid "Add an MBR partition:"
34393 msgstr ""
34394
34395 # type: verbatim
34396 #. type: verbatim
34397 #: ../tools/virt-make-fs.pl:146
34398 #, no-wrap
34399 msgid ""
34400 " virt-make-fs --partition -- input disk.img\n"
34401 "\n"
34402 msgstr ""
34403
34404 # type: textblock
34405 #. type: textblock
34406 #: ../tools/virt-make-fs.pl:148
34407 msgid ""
34408 "If the output disk image could be terabyte-sized or larger, it's better to "
34409 "use an EFI/GPT-compatible partition table:"
34410 msgstr ""
34411
34412 # type: verbatim
34413 #. type: verbatim
34414 #: ../tools/virt-make-fs.pl:151
34415 #, no-wrap
34416 msgid ""
34417 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
34418 "\n"
34419 msgstr ""
34420
34421 # type: textblock
34422 #. type: textblock
34423 #: ../tools/virt-make-fs.pl:179
34424 msgid "Enable debugging information."
34425 msgstr ""
34426
34427 # type: =item
34428 #. type: =item
34429 #: ../tools/virt-make-fs.pl:185
34430 msgid "B<--size=E<lt>NE<gt>>"
34431 msgstr ""
34432
34433 # type: =item
34434 #. type: =item
34435 #: ../tools/virt-make-fs.pl:187
34436 msgid "B<--size=+E<lt>NE<gt>>"
34437 msgstr ""
34438
34439 # type: =item
34440 #. type: =item
34441 #: ../tools/virt-make-fs.pl:189
34442 msgid "B<-s E<lt>NE<gt>>"
34443 msgstr ""
34444
34445 # type: =item
34446 #. type: =item
34447 #: ../tools/virt-make-fs.pl:191
34448 msgid "B<-s +E<lt>NE<gt>>"
34449 msgstr ""
34450
34451 #. type: textblock
34452 #: ../tools/virt-make-fs.pl:193
34453 msgid ""
34454 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
34455 msgstr ""
34456
34457 # type: textblock
34458 #. type: textblock
34459 #: ../tools/virt-make-fs.pl:196
34460 msgid ""
34461 "If this option is I<not> given, then the output image will be just large "
34462 "enough to contain all the files, with not much wasted space."
34463 msgstr ""
34464
34465 # type: textblock
34466 #. type: textblock
34467 #: ../tools/virt-make-fs.pl:199
34468 msgid ""
34469 "To choose a fixed size output disk, specify an absolute number followed by b/"
34470 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
34471 "Petabytes or Exabytes.  This must be large enough to contain all the input "
34472 "files, else you will get an error."
34473 msgstr ""
34474
34475 #. type: textblock
34476 #: ../tools/virt-make-fs.pl:204
34477 msgid ""
34478 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
34479 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
34480 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
34481 "the input files, and (approximately) an extra 200 MB free space."
34482 msgstr ""
34483
34484 # type: textblock
34485 #. type: textblock
34486 #: ../tools/virt-make-fs.pl:210
34487 msgid ""
34488 "Note that virt-make-fs estimates free space, and therefore will not produce "
34489 "filesystems containing precisely the free space requested.  (It is much more "
34490 "expensive and time-consuming to produce a filesystem which has precisely the "
34491 "desired free space)."
34492 msgstr ""
34493
34494 # type: =item
34495 #. type: =item
34496 #: ../tools/virt-make-fs.pl:219
34497 msgid "B<--format=E<lt>fmtE<gt>>"
34498 msgstr ""
34499
34500 # type: =item
34501 #. type: =item
34502 #: ../tools/virt-make-fs.pl:221
34503 msgid "B<-F E<lt>fmtE<gt>>"
34504 msgstr ""
34505
34506 # type: textblock
34507 #. type: textblock
34508 #: ../tools/virt-make-fs.pl:223
34509 msgid "Choose the output disk image format."
34510 msgstr ""
34511
34512 # type: textblock
34513 #. type: textblock
34514 #: ../tools/virt-make-fs.pl:225
34515 msgid "The default is C<raw> (raw disk image)."
34516 msgstr ""
34517
34518 # type: textblock
34519 #. type: textblock
34520 #: ../tools/virt-make-fs.pl:227
34521 msgid ""
34522 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
34523 "that would really make sense here is C<qcow2>."
34524 msgstr ""
34525
34526 # type: =item
34527 #. type: =item
34528 #: ../tools/virt-make-fs.pl:234
34529 msgid "B<--type=E<lt>fsE<gt>>"
34530 msgstr ""
34531
34532 # type: =item
34533 #. type: =item
34534 #: ../tools/virt-make-fs.pl:236
34535 msgid "B<-t E<lt>fsE<gt>>"
34536 msgstr ""
34537
34538 # type: textblock
34539 #. type: textblock
34540 #: ../tools/virt-make-fs.pl:238
34541 msgid "Choose the output filesystem type."
34542 msgstr ""
34543
34544 # type: textblock
34545 #. type: textblock
34546 #: ../tools/virt-make-fs.pl:240
34547 msgid "The default is C<ext2>."
34548 msgstr ""
34549
34550 # type: textblock
34551 #. type: textblock
34552 #: ../tools/virt-make-fs.pl:242
34553 msgid ""
34554 "Any filesystem which is supported read-write by libguestfs can be used here."
34555 msgstr ""
34556
34557 # type: =item
34558 #. type: =item
34559 #: ../tools/virt-make-fs.pl:249
34560 msgid "B<--partition>"
34561 msgstr ""
34562
34563 # type: =item
34564 #. type: =item
34565 #: ../tools/virt-make-fs.pl:251
34566 msgid "B<--partition=E<lt>parttypeE<gt>>"
34567 msgstr ""
34568
34569 # type: textblock
34570 #. type: textblock
34571 #: ../tools/virt-make-fs.pl:253
34572 msgid ""
34573 "If specified, this flag adds an MBR partition table to the output disk image."
34574 msgstr ""
34575
34576 #. type: textblock
34577 #: ../tools/virt-make-fs.pl:256
34578 msgid ""
34579 "You can change the partition table type, eg. I<--partition=gpt> for large "
34580 "disks."
34581 msgstr ""
34582
34583 #. type: textblock
34584 #: ../tools/virt-make-fs.pl:259
34585 msgid ""
34586 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
34587 "might consider the next parameter to be the partition type.  For example:"
34588 msgstr ""
34589
34590 # type: verbatim
34591 #. type: verbatim
34592 #: ../tools/virt-make-fs.pl:263
34593 #, no-wrap
34594 msgid ""
34595 " virt-make-fs --partition input.tar ...\n"
34596 "\n"
34597 msgstr ""
34598
34599 #. type: textblock
34600 #: ../tools/virt-make-fs.pl:265
34601 msgid ""
34602 "would cause virt-make-fs to think you wanted to use a partition type of "
34603 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
34604 "dash) between options and the input file argument:"
34605 msgstr ""
34606
34607 # type: verbatim
34608 #. type: verbatim
34609 #: ../tools/virt-make-fs.pl:269
34610 #, no-wrap
34611 msgid ""
34612 " virt-make-fs --partition -- input.tar ...\n"
34613 "\n"
34614 msgstr ""
34615
34616 #. type: textblock
34617 #: ../tools/virt-make-fs.pl:541
34618 msgid ""
34619 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
34620 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
34621 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
34622 msgstr ""
34623
34624 # type: verbatim
34625 #. type: verbatim
34626 #: ../tools/virt-make-fs.pl:558
34627 #, no-wrap
34628 msgid ""
34629 " export LIBGUESTFS_DEBUG=1\n"
34630 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
34631 "\n"
34632 msgstr ""
34633
34634 # type: textblock
34635 #. type: textblock
34636 #: ../tools/virt-make-fs.pl:561
34637 msgid ""
34638 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
34639 "redhat.com/>"
34640 msgstr ""
34641
34642 # type: textblock
34643 #. type: textblock
34644 #: ../tools/virt-list-partitions.pl:32
34645 msgid ""
34646 "virt-list-partitions - List partitions in a virtual machine or disk image"
34647 msgstr ""
34648
34649 # type: verbatim
34650 #. type: verbatim
34651 #: ../tools/virt-list-partitions.pl:36
34652 #, no-wrap
34653 msgid ""
34654 " virt-list-partitions [--options] domname\n"
34655 "\n"
34656 msgstr ""
34657
34658 # type: verbatim
34659 #. type: verbatim
34660 #: ../tools/virt-list-partitions.pl:38
34661 #, no-wrap
34662 msgid ""
34663 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
34664 "\n"
34665 msgstr ""
34666
34667 # type: textblock
34668 #. type: textblock
34669 #: ../tools/virt-list-partitions.pl:45
34670 msgid ""
34671 "C<virt-list-partitions> is a command line tool to list the partitions that "
34672 "are contained in a virtual machine or disk image.  It is mainly useful as a "
34673 "first step to using L<virt-resize(1)>."
34674 msgstr ""
34675
34676 # type: textblock
34677 #. type: textblock
34678 #: ../tools/virt-list-partitions.pl:50
34679 msgid ""
34680 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
34681 "functionality.  For more complex cases you should look at the L<guestfish(1)"
34682 "> tool."
34683 msgstr ""
34684
34685 # type: =item
34686 #. type: =item
34687 #: ../tools/virt-list-partitions.pl:107
34688 msgid "B<-h> | B<--human-readable>"
34689 msgstr ""
34690
34691 # type: textblock
34692 #. type: textblock
34693 #: ../tools/virt-list-partitions.pl:109
34694 msgid "Show sizes in human-readable form (eg. \"1G\")."
34695 msgstr ""
34696
34697 # type: textblock
34698 #. type: textblock
34699 #: ../tools/virt-list-partitions.pl:117
34700 msgid ""
34701 "With this option, C<virt-list-partitions> displays the type and size of each "
34702 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
34703 msgstr ""
34704
34705 # type: =item
34706 #. type: =item
34707 #: ../tools/virt-list-partitions.pl:124
34708 msgid "B<-t> | B<--total>"
34709 msgstr ""
34710
34711 # type: textblock
34712 #. type: textblock
34713 #: ../tools/virt-list-partitions.pl:126
34714 msgid ""
34715 "Display the total size of each block device (as a separate row or rows)."
34716 msgstr ""
34717
34718 # type: textblock
34719 #. type: textblock
34720 #: ../tools/virt-list-partitions.pl:259
34721 msgid ""
34722 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
34723 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
34724 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
34725 msgstr ""
34726
34727 # type: textblock
34728 #. type: textblock
34729 #: ../tools/virt-list-partitions.pl:275
34730 msgid "Copyright (C) 2009-2010 Red Hat Inc."
34731 msgstr ""